Documentation
¶
Index ¶
Constants ¶
View Source
const ( FileName = "config.yaml" HistoryFileName = "cli.hist" Usw2a1 = "usw2a1" Use1a1 = "use1a1" Euc1a1 = "euc1a1" Apt2a1 = "apt2a1" )
Variables ¶
View Source
var ( NoSelectionErr = errors.New("no context selected") NotFoundErr = errors.New("context not found") ContextAlreadyExistErr = errors.New("context already exists") TokenExpiredErr = errors.New("token expired") )
View Source
var File string
Functions ¶
func HistoryFile ¶
Types ¶
type Config ¶
type Config struct {
Current string `yaml:"current"`
Keys map[string]APIKey `yaml:"keys"`
Tokens map[string]Token `yaml:"tokens"`
}
func Load ¶
Load loads the CLI configuration, and if the config doesn't exist, it returns an empty config.
func (*Config) AsOptions ¶
func (c *Config) AsOptions(override string) ([]rockset.RockOption, error)
func (*Config) DeleteContext ¶ added in v0.0.14
Click to show internal directories.
Click to hide internal directories.