Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OSVersionToString ¶
OSVersionToString converts OSVersion to a string
Types ¶
type Config ¶
type Config struct {
Devices map[string]*DeviceConfig `yaml:"devices,omitempty"`
}
Config provides means of reading the configuration file
type DeviceConfig ¶
type DeviceConfig struct { OSVersion OSVersion Host string Port int `yaml:"port,omitempty"` Username string `yaml:"username"` KeyFile string `yaml:"key_file,omitempty"` Password string `yaml:"password,omitempty"` ConnectTimeout int `yaml:"connect_timeout,omitempty"` CommandTimeout int `yaml:"command_timeout,omitempty"` EnabledCollectors []string `yaml:"enabled_collectors,flow"` Interfaces []string `yaml:"interfaces,flow"` }
DeviceConfig is used to read device configuration from the config file DeviceConfig describe how to connect to a remote device and what metrics to extract from the remote device.
Click to show internal directories.
Click to hide internal directories.