Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TrySetConfigFromFile ¶
func TrySetConfigFromFile(c *cli.Context) error
Get available configuration settings from supplied or default configuration file.
Types ¶
type Config ¶
type Config struct { ActiveConfig string `mapstructure:"active_configuration" yaml:"active_configuration"` Configurations map[string]Configuration `mapstructure:"configurations"` // contains filtered or unexported fields }
func LoadConfiguration ¶
Loads configuration settings from specified file path.
func (*Config) PrintConfigurationContent ¶
Print specified configuration to stdout.
func (*Config) PrintConfigurations ¶
func (c *Config) PrintConfigurations()
type Configuration ¶
type Configuration struct { Username string `mapstructure:"username" yaml:"username"` Token string `mapstructure:"token" yaml:"token"` DefaultDomainID string `mapstructure:"domain-id" yaml:"domain-id"` DefaultRegion string `mapstructure:"region" yaml:"region"` DefaultProjectID string `mapstructure:"project-id" yaml:"project-id"` }
Click to show internal directories.
Click to hide internal directories.