config

package
v2.0.8+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ReconcilerPrefix = "reconcilers"

ReconcilerPrefix defines the viper configuration prefix for all reconcilers and sub-reconcilers.

Variables

This section is empty.

Functions

func GetReconcilerOption

func GetReconcilerOption(name ReconcilerName, option OptionName) interface{}

GetReconcilerOption returns the value of the specified option as an Interface value; otherwise nil is returned if the option does not exist in the config.

func GetReconcilerOptionBool

func GetReconcilerOptionBool(name ReconcilerName, option OptionName, defaultValue bool) bool

GetReconcilerOptionBool returns the value of the specified option as a Bool value; otherwise the specified default value is returned if the option does not exist.

func IsReconcilerEnabled

func IsReconcilerEnabled(name ReconcilerName) bool

IsReconcilerEnabled returns whether a specific reconciler is enabled or not.

func ReadConfig

func ReadConfig() (err error)

ReadConfig is a utility which loads the current manager configuration into memory.

func ReconcilerConfigPath

func ReconcilerConfigPath(name ReconcilerName) string

ReconcilerConfigPath returns the config attribute path which represents the top-level path for the specified reconciler.

func ReconcilerOptionPath

func ReconcilerOptionPath(name ReconcilerName, option OptionName) string

ReconcilerOptionPath returns the config attribute path which represents the option value of the specified reconciler option.

func ReconcilerStatePath

func ReconcilerStatePath(name ReconcilerName) string

ReconcilerStatePath returns the config attribute path which represents the current configured state of the reconciler.

Types

type OptionName

type OptionName string

OptionName is the type alias that represents the path for a reconciler or sub-reconciler.

const (
	HTTPSRequired   OptionName = "httpsRequired"
	StopAfterInSync OptionName = "stopAfterInSync"
)

Defines the current list of supported reconciler options.

type ReconcilerName

type ReconcilerName string

ReconcilerName is the type alias that represents the path for a reconciler or sub-reconciler.

const (
	DataNetwork       ReconcilerName = "dataNetwork"
	Host              ReconcilerName = "host"
	BMC               ReconcilerName = "host.bmc"
	Memory            ReconcilerName = "host.memory"
	Processor         ReconcilerName = "host.processor"
	Storage           ReconcilerName = "host.storage"
	FileSystems       ReconcilerName = "host.storage.filesystems"
	StorageMonitor    ReconcilerName = "host.storage.monitor"
	OSD               ReconcilerName = "host.storage.osd"
	Partition         ReconcilerName = "host.storage.partition"
	PhysicalVolume    ReconcilerName = "host.storage.physicalVolume"
	VolumeGroup       ReconcilerName = "host.storage.volumeGroup"
	Networking        ReconcilerName = "host.networking"
	Address           ReconcilerName = "host.networking.address"
	Interface         ReconcilerName = "host.networking.interface"
	Route             ReconcilerName = "host.networking.route"
	HostProfile       ReconcilerName = "hostProfile"
	PlatformNetwork   ReconcilerName = "platformNetwork"
	System            ReconcilerName = "system"
	Certificate       ReconcilerName = "system.certificate"
	DNS               ReconcilerName = "system.dns"
	DRBD              ReconcilerName = "system.drbd"
	SystemFileSystems ReconcilerName = "system.filesystems"
	License           ReconcilerName = "system.license"
	NTP               ReconcilerName = "system.ntp"
	PTP               ReconcilerName = "system.ptp"
	Backends          ReconcilerName = "system.storage.backend"
	ServiceParameters ReconcilerName = "system.serviceParameters"
)

Defines the current list of supported reconcilers and sub-reconcilers.

Jump to

Keyboard shortcuts

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