config

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 8 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 {
	Log      *logConfig      `yaml:"log"`
	Exporter *exporterConfig `yaml:"exporter"`
	Nsxt     *NSXConfig      `yaml:"nsxt"`
}

func NewConfig

func NewConfig(file io.Reader) *Config

NewConfig - Creates and validates config from given reader

func (*Config) UnmarshalYAML

func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error

type NSXConfig

type NSXConfig struct {
	URL            string   `yaml:"url"`
	Username       string   `yaml:"username"`
	Password       string   `yaml:"password"`
	ClientCertPath string   `yaml:"client_cert_path"`
	ClientKeyPath  string   `yaml:"client_key_path"`
	SkipSslVerify  bool     `yaml:"skip_ssl_verify"`
	CaCertPath     string   `yaml:"ca_cert_path"`
	MaxRetries     int      `yaml:"max_retries"`
	T0Filters      []string `yaml:"t0_filters"`
	T1Filters      []string `yaml:"t1_filters"`
	LBFilters      []string `yaml:"lb_filters"`
	VSFilters      []string `yaml:"vs_filters"`
}

func (*NSXConfig) NSXHost

func (n *NSXConfig) NSXHost() (string, error)

func (*NSXConfig) NeedPasswordLogin

func (n *NSXConfig) NeedPasswordLogin() bool

func (*NSXConfig) UnmarshalYAML

func (n *NSXConfig) UnmarshalYAML(unmarshal func(interface{}) error) error

type Regexp

type Regexp struct {
	*regexp.Regexp
}

func (*Regexp) UnmarshalYAML

func (re *Regexp) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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