Documentation ¶
Overview ¶
TODO inject to a global interface e.g. command factory as soon as it exists and remove this file.
Index ¶
- func AddCondition(name, description string, conditionFunc func() bool)
- func GetGlobal() types.RemoteConfig
- func InitGlobal(config Config, stateManager statetypes.State, isInternetActive func() bool) types.RemoteConfig
- func ListConditions() (conditions map[string]string)
- func New(config *Config, stateManager statetypes.State, isInternetActive func() bool) types.RemoteConfig
- type Config
- type Local
- type Remote
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCondition ¶
func GetGlobal ¶
func GetGlobal() types.RemoteConfig
GetGlobal returns the global remote config. InitGlobal must be called in advance or the function will panic.
func InitGlobal ¶
func InitGlobal(config Config, stateManager statetypes.State, isInternetActive func() bool) types.RemoteConfig
InitGlobal initializes the global remote config. This is done once, subsequent calls do not have any effect.
func ListConditions ¶
func New ¶
func New(config *Config, stateManager statetypes.State, isInternetActive func() bool) types.RemoteConfig
New creates and returns a new RemoteConfig.
Types ¶
Click to show internal directories.
Click to hide internal directories.