config

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Targets  []string `yaml:"targets"`
	Features struct {
		Environment         bool `yaml:"environment,omitempty"`
		BGP                 bool `yaml:"bgp,omitempty"`
		OSPF                bool `yaml:"ospf,omitempty"`
		ISIS                bool `yaml:"isis,omitempty"`
		L2Circuit           bool `yaml:"l2circuit,omitempty"`
		Routes              bool `yaml:"routes,omitempty"`
		RoutingEngine       bool `yaml:"routing_engine,omitempty"`
		Interfaces          bool `yaml:"interfaces,omitempty"`
		InterfaceDiagnostic bool `yaml:"interface_diagnostic,omitempty"`
	} `yaml:"features,omitempty"`
}

Config represents the configuration for the exporter

func Load

func Load(reader io.Reader) (*Config, error)

Load loads a config from reader

func New

func New() *Config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL