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