Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnabledState ¶
type EnabledState string
EnabledState represents the desired enabled state of a module.
const ( Enabled EnabledState = "enabled" Disabled EnabledState = "disabled" )
type ExperimentalModuleError ¶
type ExperimentalModuleError struct {
ModuleName string
}
ExperimentalModuleError represents an error when trying to enable an experimental module.
func (*ExperimentalModuleError) Error ¶
func (e *ExperimentalModuleError) Error() string
type Result ¶
type Result struct {
Status ResultStatus
}
Result contains the result of a SetEnabledState operation.
func SetEnabledState ¶
func SetEnabledState(dynamicClient dynamic.Interface, name string, state EnabledState) (*Result, error)
SetEnabledState sets the enabled state of a module via its ModuleConfig resource. If the ModuleConfig does not exist, it will be created.
type ResultStatus ¶
type ResultStatus int
ResultStatus represents the status of a SetEnabledState operation.
const ( // Changed indicates the module state was changed. Changed ResultStatus = iota // AlreadyInState indicates the module is already in the desired state. AlreadyInState )
Click to show internal directories.
Click to hide internal directories.