config

package
v1.26.6 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 1 Imported by: 3 modules, 8 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	// Key possible values
	// "" - reset the whole config
	// "batch" - set global and modules config at once
	// "global" - set only global config
	// "<moduleName> - set only config for the module <moduleName>
	Key    string
	Config *KubeConfig
	Err    error
	Op     Op
}

type GlobalKubeConfig

type GlobalKubeConfig struct {
	Values   utils.Values
	Checksum string
}

func (GlobalKubeConfig) GetValues

func (gkc GlobalKubeConfig) GetValues() utils.Values

GetValues returns global values, enrich them with top level key 'global'

type KubeConfig

type KubeConfig struct {
	Global  *GlobalKubeConfig
	Modules map[string]*ModuleKubeConfig
}

func NewConfig

func NewConfig() *KubeConfig

type KubeConfigEvent

type KubeConfigEvent struct {
	Type                      KubeConfigType
	ModuleEnabledStateChanged []string
	ModuleValuesChanged       []string
	GlobalSectionChanged      bool
	ModuleMaintenanceChanged  map[string]utils.Maintenance
}

type KubeConfigType added in v1.4.0

type KubeConfigType string
const (
	KubeConfigChanged KubeConfigType = "Changed"
	KubeConfigInvalid KubeConfigType = "Invalid"
)

type ModuleKubeConfig

type ModuleKubeConfig struct {
	utils.ModuleConfig
	Checksum string
}

type Op added in v1.3.7

type Op string
const (
	EventDelete Op = "Delete"
	EventUpdate Op = "Update"
	EventAdd    Op = "Add"
)

Jump to

Keyboard shortcuts

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