Documentation
¶
Index ¶
- func GetModuleFileTree(name string, module *ModuleState, dotfilesDir string, simple bool) (*tree.Node, error)
- func GetStateFileTree(state *State, dotfilesDir string, simple bool) (*tree.Node, error)
- func SaveState(state *State, dotfilesDir string) error
- type DeployStatus
- type Entry
- type ModuleState
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetModuleFileTree ¶
func GetStateFileTree ¶
Types ¶
type Entry ¶
type Entry struct {
Status DeployStatus `json:"status"`
SourceHash string `json:"hash"`
IntermediatePath string `json:"intermediatePath"`
SymlinkPath string `json:"symlinkPath"`
}
type ModuleState ¶
type ModuleState struct {
Status DeployStatus `json:"status"`
DeployedAt time.Time `json:"deployedAt"`
Files map[string]*Entry `json:"files"`
}
type State ¶
type State struct {
Modules map[string]*ModuleState `json:"modules"`
}
State should only be created once, via peridot init. Modifications to state should only be made after loading it from a state file, and the state file should be updated right after.
Click to show internal directories.
Click to hide internal directories.