moduleconfig

package
v0.26.4 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

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
)

Jump to

Keyboard shortcuts

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