Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = &Configuration{}
DefaultConfig ...
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct {
Protocol string `yaml:"protocol"`
Port string `yaml:"port"`
LogLevel string `yaml:"log_level"`
HTTPSConfig struct {
Cert string `yaml:"cert"`
Key string `yaml:"key"`
} `yaml:"https_config,omitempty"`
}
Configuration loads the configuration of registry controller.
func (*Configuration) Load ¶
func (c *Configuration) Load(yamlFilePath string, detectEnv bool) error
Load the configuration options from the specified yaml file.
Source Files
¶
- config.go
Click to show internal directories.
Click to hide internal directories.