Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Username string `yaml:"username"` Timeout int `yaml:"timeout"` Password string `yaml:"password"` SSHKey string `yaml:"ssh_key"` AllowedTargets []string `yaml:"allowed_targets"` Collectors []string `yaml:"enabled_collectors"` InterfaceDescKeys []string `yaml:"interface_description_keys"` InterfaceMetricKeys []string `yaml:"interface_metric_keys"` BGPTypeKeys []string `yaml:"bgp_peer_type_keys"` }
Config contains the information required by junos_collector to create SSH based NETCONF connections.
type Configuration ¶
type Configuration struct { Config map[string]Config `yaml:"configs"` Global Global `yaml:"global"` }
Configuration contains a slice of all configurations in the format of a map, where the key is the name of the config and the values are a Config type.
func LoadConfigFile ¶
func LoadConfigFile(path string, collectors []string) (*Configuration, error)
LoadConfigFile returns a Configs type from a passed file.
type Global ¶
type Global struct { AllowedTargets []string `yaml:"allowed_targets"` Timeout int `yaml:"timeout"` InterfaceDescKeys []string `yaml:"interface_description_keys"` InterfaceMetricKeys []string `yaml:"interface_metric_keys"` BGPTypeKeys []string `yaml:"bgp_peer_type_keys"` }
Global contains the global information required by junos_collector to create SSH based NETCONF connections.
Click to show internal directories.
Click to hide internal directories.