Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
API struct {
Username string `yaml:"username"`
Password string `yaml:"password"`
CertFile string `yaml:"certfile"`
Path string `yaml:"path"`
} `yaml:"api"`
Logging struct {
Filename string `yaml:"filename"`
Journal bool `yaml:"journal"`
LevelStr string `yaml:"level"`
} `yaml:"logging"`
Exporter struct {
Hostname string `yaml:"hostname"`
Port int `yaml:"port"`
} `yaml:"exporter"`
}
func ParseConfig ¶
ParseConfig imports a yaml formatted config file into a Config struct
func (*Config) WriteConfig ¶
WriteConfig will create a YAML formatted config file from a Config struct
Click to show internal directories.
Click to hide internal directories.