Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStatePath ¶
GetStatePath returns the path to the state file
Types ¶
type InstallState ¶
type InstallState struct {
DistroName string `yaml:"distro_name"`
Version string `yaml:"version"`
Mode string `yaml:"mode"`
}
InstallState represents the saved state for a single distro installation
type State ¶
type State struct {
Installations map[string]InstallState `yaml:"installations"`
}
State represents the persisted state file
func (*State) GetInstallState ¶
func (s *State) GetInstallState(distroKey string) (InstallState, bool)
GetInstallState retrieves the saved state for a distro
func (*State) SetInstallState ¶
func (s *State) SetInstallState(distroKey string, installState InstallState)
SetInstallState saves the state for a distro
Click to show internal directories.
Click to hide internal directories.