Documentation ¶
Index ¶
- Constants
- func GetReconcilerOption(name ReconcilerName, option OptionName) interface{}
- func GetReconcilerOptionBool(name ReconcilerName, option OptionName, defaultValue bool) bool
- func IsReconcilerEnabled(name ReconcilerName) bool
- func ReadConfig() (err error)
- func ReconcilerConfigPath(name ReconcilerName) string
- func ReconcilerOptionPath(name ReconcilerName, option OptionName) string
- func ReconcilerStatePath(name ReconcilerName) string
- type OptionName
- type ReconcilerName
Constants ¶
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" SNMP ReconcilerName = "system.snmp" Backends ReconcilerName = "system.storage.backend" ServiceParameters ReconcilerName = "system.serviceParameters" )
Defines the current list of supported reconcilers and sub-reconcilers.