mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-28 12:03:33 +00:00
refactor cluster server to initialise state when initialising cluster, allow machine to be reinitialised
This commit is contained in:
@@ -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