config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2019 License: BSD-3-Clause 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 {
	Devices  map[string]Device `yaml:"devices"`
	Features struct {
		HWMon bool `yaml:"hwmon,omitempty"`
		POE   bool `yaml:"poe,omitempty"`
	} `yaml:"features,omitempty"`
}

Config represents the configuration for the exporter

func Load

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

Load reads YAML from reader and unmashals in Config

type Device

type Device struct {
	Address  string `yaml:"address"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	Schema   string `yaml:"schema"`
}

Device represents a target device

Jump to

Keyboard shortcuts

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