Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllActionTypes = []struct { Value Action TSName string }{ {ActionInstall, "INSTALL"}, {ActionUninstall, "UNINSTALL"}, {ActionEnable, "ENABLE"}, {ActionDisable, "DISABLE"}, {ActionSelectInstall, "SELECT_INSTALL"}, {ActionToggleMods, "TOGGLE_MODS"}, {ActionSelectProfile, "SELECT_PROFILE"}, {ActionImportProfile, "IMPORT_PROFILE"}, {ActionUpdate, "UPDATE"}, {ActionApply, "APPLY"}, }
View Source
var AllInstallationStates = []struct { Value InstallState TSName string }{ {InstallStateUnknown, "UNKNOWN"}, {InstallStateLoading, "LOADING"}, {InstallStateInvalid, "INVALID"}, {InstallStateValid, "VALID"}, }
View Source
var ErrInstallNotServer = fmt.Errorf("installation is not a server")
View Source
var FicsitCLI *ficsitCLI
View Source
var ServerPicker = &serverPicker{ disks: make(map[string]diskData), }
Functions ¶
Types ¶
type Action ¶
type Action string
const ( ActionInstall Action = "install" ActionUninstall Action = "uninstall" ActionEnable Action = "enable" ActionDisable Action = "disable" ActionSelectInstall Action = "selectInstall" ActionToggleMods Action = "toggleMods" ActionSelectProfile Action = "selectProfile" ActionImportProfile Action = "importProfile" ActionUpdate Action = "update" ActionApply Action = "apply" )
type ExportedProfile ¶
type ExportedProfile struct { Profile cli.Profile `json:"profile"` LockFile resolver.LockFile `json:"lockfile"` Metadata *ExportedProfileMetadata `json:"metadata"` }
type ExportedProfileMetadata ¶
type ExportedProfileMetadata struct {
GameVersion int `json:"gameVersion"`
}
type InstallState ¶
type InstallState string
const ( InstallStateUnknown InstallState = "unknown" InstallStateLoading InstallState = "loading" InstallStateInvalid InstallState = "invalid" InstallStateValid InstallState = "valid" )
type PickerDirectory ¶
type PickerResult ¶
type PickerResult struct { IsValidInstall bool `json:"isValidInstall"` Items []PickerDirectory `json:"items"` }
type Progress ¶
type Progress struct { Action Action `json:"action"` Item ProgressItem `json:"item"` Tasks map[string]utils.Progress `json:"tasks"` }
type ProgressItem ¶
Click to show internal directories.
Click to hide internal directories.