Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Entries map[string]*Entry `yaml:"configs"`
Current string `yaml:"current"`
// contains filtered or unexported fields
}
Config is a set of sd-local config entities
func (*Config) DeleteEntry ¶ added in v1.0.0
DeleteEntry deletes Entry object named `name`
func (*Config) SetCurrent ¶ added in v1.0.0
SetCurrent set a specified entry as current config
type Entry ¶ added in v1.0.0
type Entry struct {
APIURL string `yaml:"api-url" mapstructure:"api-url"`
StoreURL string `yaml:"store-url" mapstructure:"store-url"`
Token string `yaml:"token" mapstructure:"token"`
UUID string `yaml:"UUID" mapstructure:"uuid"`
Launcher Launcher `yaml:"launcher" mapstructure:",squash"`
}
Entry is entity struct of sd-local config
func DefaultEntry ¶ added in v1.0.28
func DefaultEntry() *Entry
DefaultEntry describes the initial value of an entry
Click to show internal directories.
Click to hide internal directories.