config

package
v0.0.0-...-447a163 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 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  []Target `yaml:"targets"`
	Identity string   `yaml:"identity,omitempty"`
	Features struct {
		Optics           bool `yaml:"optics,omitempty"`
		OpticsWithNoLink bool `yaml:"opticsWithNoLink,omitempty"`
		System           bool `yaml:"system,omitempty"`
		Dhcp             bool `yaml:"dhcp,omitempty"`
		Ospf             bool `yaml:"ospf,omitempty"`
	} `yaml:"features"`
}

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

type Target

type Target struct {
	Name     string `yaml:"name,omitempty"`
	Address  string `yaml:"address,omitempty"`
	User     string `yaml:"user,omitempty"`
	Password string `yaml:"password,omitempty"`
}

Jump to

Keyboard shortcuts

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