config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DaemonConfig

type DaemonConfig struct {
	// Interval between every check for the added and deleted pods
	PeriodicUpdate int `env:"DAEMON_PERIODIC_UPDATE" envDefault:"5"`
	GUIDPool       GUIDPoolConfig
	// Subnet manager plugin name
	Plugin string `env:"DAEMON_SM_PLUGIN"`
	// Subnet manager plugins path
	PluginPath string `env:"DAEMON_SM_PLUGIN_PATH" envDefault:"/plugins"`
}

func (*DaemonConfig) ReadConfig

func (dc *DaemonConfig) ReadConfig() error

func (*DaemonConfig) ValidateConfig

func (dc *DaemonConfig) ValidateConfig() error

type GUIDPoolConfig added in v1.0.1

type GUIDPoolConfig struct {
	// First guid in the pool
	RangeStart string `env:"GUID_POOL_RANGE_START" envDefault:"02:00:00:00:00:00:00:00"`
	// Last guid in the pool
	RangeEnd string `env:"GUID_POOL_RANGE_END"   envDefault:"02:FF:FF:FF:FF:FF:FF:FF"`
}

Jump to

Keyboard shortcuts

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