configmanager

package
v1.12.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigManager

type ConfigManager interface {
	CustomAccessors() map[schema.GroupVersionKind]CustomAccessor
	HasSynced() bool
	LoadConfig(customizations []*configv1alpha1.ResourceInterpreterCustomization)
}

ConfigManager can list custom resource interpreter.

func NewInterpreterConfigManager

func NewInterpreterConfigManager(informer genericmanager.SingleClusterInformerManager) ConfigManager

NewInterpreterConfigManager watches ResourceInterpreterCustomization and organizes the configurations in the cache.

type CustomAccessor

type CustomAccessor interface {
	LuaScriptAccessor
}

CustomAccessor provides a common interface to get custom interpreter configuration.

func NewResourceCustomAccessor

func NewResourceCustomAccessor() CustomAccessor

NewResourceCustomAccessor creates an accessor for resource interpreter customization.

type CustomConfiguration

type CustomConfiguration interface {
	Merge(rules configv1alpha1.CustomizationRules)
}

CustomConfiguration provides base information about custom interpreter configuration

type LuaScriptAccessor

type LuaScriptAccessor interface {
	CustomConfiguration

	GetRetentionLuaScript() string
	GetReplicaResourceLuaScript() string
	GetReplicaRevisionLuaScript() string
	GetStatusReflectionLuaScript() string
	GetStatusAggregationLuaScript() string
	GetHealthInterpretationLuaScript() string
	GetDependencyInterpretationLuaScripts() []string
}

LuaScriptAccessor provides a common interface to get custom interpreter lua script

Jump to

Keyboard shortcuts

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