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
Click to show internal directories.
Click to hide internal directories.