config

package
v1.24.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

func MustReInit added in v1.10.0

func MustReInit()

func ReInit added in v1.10.0

func ReInit() error

Types

type AuthKeys

type AuthKeys map[Target]TargetAuth

type FortiExporterConfig

type FortiExporterConfig struct {
	AuthKeys      AuthKeys
	Listen        string
	ScrapeTimeout int
	TLSTimeout    int
	TLSInsecure   bool
	TlsExtraCAs   []LocalCert
	MaxBGPPaths   int
	MaxVPNUsers   int
}

func GetConfig

func GetConfig() FortiExporterConfig

type FortiExporterParameter

type FortiExporterParameter struct {
	AuthFile      *string
	Listen        *string
	ScrapeTimeout *int
	TLSTimeout    *int
	TLSInsecure   *bool
	TlsExtraCAs   *string
	MaxBGPPaths   *int
	MaxVPNUsers   *int
}

type LocalCert

type LocalCert struct {
	Path    string
	Content []byte
}

type ProbeList added in v1.9.0

type ProbeList []string

type Probes added in v1.9.0

type Probes struct {
	Include ProbeList
	Exclude ProbeList
}

type Target

type Target string

type TargetAuth added in v1.5.2

type TargetAuth struct {
	Token  Token
	Probes Probes
}

type Token

type Token string

Jump to

Keyboard shortcuts

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