mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-08 22:24:54 +00:00
refactor cluster server to initialise state when initialising cluster, allow machine to be reinitialised
This commit is contained in:
1 parent
676f22a935
commit
da72c0515a
3 files changed
+121
-77
No files matched your search
@@ -10,6 +10,11 @@ import (
|
||||
|
||||
const StateFile = "cluster.pb"
|
||||
|
||||
type State struct {
|
||||
State *pb.State
|
||||
path string
|
||||
}
|
||||
|
||||
func StatePath(dataDir string) string {
|
||||
return filepath.Join(dataDir, StateFile)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user