Documentation ¶
Index ¶
- func RegisterUIPluginGeneratingHandler(ctx context.Context, controller UIPluginController, apply apply.Apply, ...)
- func RegisterUIPluginStatusHandler(ctx context.Context, controller UIPluginController, condition condition.Cond, ...)
- type Interface
- type UIPluginCache
- type UIPluginClient
- type UIPluginController
- type UIPluginGeneratingHandler
- type UIPluginStatusHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUIPluginGeneratingHandler ¶
func RegisterUIPluginGeneratingHandler(ctx context.Context, controller UIPluginController, apply apply.Apply, condition condition.Cond, name string, handler UIPluginGeneratingHandler, opts *generic.GeneratingHandlerOptions)
RegisterUIPluginGeneratingHandler configures a UIPluginController to execute a UIPluginGeneratingHandler for every events observed, passing the returned objects to the provided apply.Apply. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution
func RegisterUIPluginStatusHandler ¶
func RegisterUIPluginStatusHandler(ctx context.Context, controller UIPluginController, condition condition.Cond, name string, handler UIPluginStatusHandler)
RegisterUIPluginStatusHandler configures a UIPluginController to execute a UIPluginStatusHandler for every events observed. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution
Types ¶
type Interface ¶
type Interface interface {
UIPlugin() UIPluginController
}
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface
type UIPluginCache ¶
type UIPluginCache interface { generic.CacheInterface[*v1.UIPlugin] }
UIPluginCache interface for retrieving UIPlugin resources in memory.
type UIPluginClient ¶
type UIPluginClient interface { generic.ClientInterface[*v1.UIPlugin, *v1.UIPluginList] }
UIPluginClient interface for managing UIPlugin resources in Kubernetes.
type UIPluginController ¶
type UIPluginController interface { generic.ControllerInterface[*v1.UIPlugin, *v1.UIPluginList] }
UIPluginController interface for managing UIPlugin resources.
type UIPluginGeneratingHandler ¶
type UIPluginGeneratingHandler func(obj *v1.UIPlugin, status v1.UIPluginStatus) ([]runtime.Object, v1.UIPluginStatus, error)
UIPluginGeneratingHandler is the top-level handler that is executed for every UIPlugin event. It extends UIPluginStatusHandler by a returning a slice of child objects to be passed to apply.Apply
type UIPluginStatusHandler ¶
type UIPluginStatusHandler func(obj *v1.UIPlugin, status v1.UIPluginStatus) (v1.UIPluginStatus, error)
UIPluginStatusHandler is executed for every added or modified UIPlugin. Should return the new status to be updated