Documentation ¶
Index ¶
- func DefaultOperatingSystemSpec(osys providerconfigtypes.OperatingSystem, ...) (runtime.RawExtension, error)
- type ConfigVarResolver
- func (cvr *ConfigVarResolver) GetConfigVarBoolValue(configVar providerconfigtypes.ConfigVarBool) (bool, bool, error)
- func (cvr *ConfigVarResolver) GetConfigVarBoolValueOrEnv(configVar providerconfigtypes.ConfigVarBool, envVarName string) (bool, error)
- func (cvr *ConfigVarResolver) GetConfigVarDurationValue(configVar providerconfigtypes.ConfigVarString) (time.Duration, error)
- func (cvr *ConfigVarResolver) GetConfigVarDurationValueOrDefault(configVar providerconfigtypes.ConfigVarString, defaultDuration time.Duration) (time.Duration, error)
- func (cvr *ConfigVarResolver) GetConfigVarStringValue(configVar providerconfigtypes.ConfigVarString) (string, error)
- func (cvr *ConfigVarResolver) GetConfigVarStringValueOrEnv(configVar providerconfigtypes.ConfigVarString, envVarName string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultOperatingSystemSpec ¶
func DefaultOperatingSystemSpec( osys providerconfigtypes.OperatingSystem, cloudProvider providerconfigtypes.CloudProvider, operatingSystemSpec runtime.RawExtension, externalBootstrapEnabled bool, ) (runtime.RawExtension, error)
Types ¶
type ConfigVarResolver ¶
type ConfigVarResolver struct {
// contains filtered or unexported fields
}
func NewConfigVarResolver ¶
func NewConfigVarResolver(ctx context.Context, client ctrlruntimeclient.Client) *ConfigVarResolver
func (*ConfigVarResolver) GetConfigVarBoolValue ¶
func (cvr *ConfigVarResolver) GetConfigVarBoolValue(configVar providerconfigtypes.ConfigVarBool) (bool, bool, error)
GetConfigVarBoolValue returns a boolean from a ConfigVarBool. If there is no valid source for the boolean, the second bool returned will be false (to be able to differentiate between "false" and "unset").
func (*ConfigVarResolver) GetConfigVarBoolValueOrEnv ¶
func (cvr *ConfigVarResolver) GetConfigVarBoolValueOrEnv(configVar providerconfigtypes.ConfigVarBool, envVarName string) (bool, error)
func (*ConfigVarResolver) GetConfigVarDurationValue ¶
func (cvr *ConfigVarResolver) GetConfigVarDurationValue(configVar providerconfigtypes.ConfigVarString) (time.Duration, error)
func (*ConfigVarResolver) GetConfigVarDurationValueOrDefault ¶
func (cvr *ConfigVarResolver) GetConfigVarDurationValueOrDefault(configVar providerconfigtypes.ConfigVarString, defaultDuration time.Duration) (time.Duration, error)
func (*ConfigVarResolver) GetConfigVarStringValue ¶
func (cvr *ConfigVarResolver) GetConfigVarStringValue(configVar providerconfigtypes.ConfigVarString) (string, error)
func (*ConfigVarResolver) GetConfigVarStringValueOrEnv ¶
func (cvr *ConfigVarResolver) GetConfigVarStringValueOrEnv(configVar providerconfigtypes.ConfigVarString, envVarName string) (string, error)
GetConfigVarStringValueOrEnv tries to get the value from ConfigVarString, when it fails, it falls back to getting the value from an environment variable specified by envVarName parameter.
Click to show internal directories.
Click to hide internal directories.