Documentation ¶ Index ¶ func LoadConfig() error func SaveConfig(values map[string]interface{}) error func SaveHostToConfig(host Host) error func SetActiveHost(hostname string) error type Config type Host func AppendHost(host Host) []Host func GetHostByName(name string) (host Host, err error) type Service Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func LoadConfig ¶ func LoadConfig() error func SaveConfig ¶ func SaveConfig(values map[string]interface{}) error func SaveHostToConfig ¶ func SaveHostToConfig(host Host) error func SetActiveHost ¶ func SetActiveHost(hostname string) error Types ¶ type Config ¶ type Config struct { // contains filtered or unexported fields } type Host ¶ type Host struct { ID string `mapstructure:"id"` Name string `mapstructure:"name"` Addr string `mapstructure:"addr"` Port uint `mapstructure:"port"` User string `mapstructure:"user"` Keyfile string `mapstructure:"keyfile"` } func AppendHost ¶ func AppendHost(host Host) []Host func GetHostByName ¶ func GetHostByName(name string) (host Host, err error) type Service ¶ type Service struct { Name string `mapstructure:"name"` Url string `mapstructure:"url"` } Source Files ¶ View all Source files config.go Click to show internal directories. Click to hide internal directories.