Documentation ¶
Index ¶
- Constants
- func Setup(configFile string) (err error)
- type Config
- func (c *Config) Bootstrap(configFile string, migrations []*migration) error
- func (c *Config) ConfigFile() string
- func (c *Config) Consume(configFile string) error
- func (c *Config) GetAuth() map[string]string
- func (c *Config) GetServerUrl() string
- func (c *Config) LayerConfigs()
- func (c *Config) Migrate(migrations []*migration) error
- func (c *Config) SetBasicAuth(user, pass string) error
- func (c *Config) SetRequestsAreUnauthenticated() error
- func (c *Config) SetServerUrl(urlArg string) error
- func (c *Config) SetTokenAuth(token string) error
- func (c *Config) Unset(key string) error
- func (c *Config) WithBaseUrlValidation(urlArg string, onValid func(string) error) error
Constants ¶
View Source
const ( CONFIG_DIRNAME = `.gocd` CONFIG_FILENAME = `settings` CONFIG_FILETYPE = `yaml` CONFIG_ENV_PFX = `gocdcli` CONFIG_VERSION = `config_version` CURRENT_VERSION = 1 // format version )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) ConfigFile ¶
func (*Config) GetServerUrl ¶
func (*Config) LayerConfigs ¶
func (c *Config) LayerConfigs()
Configures any default values and enables environment variable overrides
func (*Config) SetBasicAuth ¶
func (*Config) SetRequestsAreUnauthenticated ¶
func (*Config) SetServerUrl ¶
func (*Config) SetTokenAuth ¶
Click to show internal directories.
Click to hide internal directories.