Documentation
¶
Index ¶
- type ConfigV2
- func (c *ConfigV2) GetDefaultProfile() *Profile
- func (c *ConfigV2) GetProfile(domain string) (*Profile, error)
- func (c *ConfigV2) GetToken(domain string) string
- func (c *ConfigV2) HasDomain(domain string) bool
- func (c *ConfigV2) Load() error
- func (c *ConfigV2) Save() error
- func (c *ConfigV2) SetProfile(domain string, profile Profile)
- func (c *ConfigV2) SetToken(domain, token string)
- type Profile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigV2 ¶
type ConfigV2 struct { Profiles map[string]Profile `yaml:"profiles"` DefalutProfile string `yaml:"default_profile"` }
func (*ConfigV2) GetDefaultProfile ¶
func (*ConfigV2) SetProfile ¶
Click to show internal directories.
Click to hide internal directories.