Documentation
¶
Index ¶
- func RegisterClusterPolicyGeneratingHandler(ctx context.Context, controller ClusterPolicyController, apply apply.Apply, ...)
- func RegisterClusterPolicyStatusHandler(ctx context.Context, controller ClusterPolicyController, ...)
- type ClusterPolicyCache
- type ClusterPolicyClient
- type ClusterPolicyController
- type ClusterPolicyGeneratingHandler
- type ClusterPolicyStatusHandler
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterClusterPolicyGeneratingHandler ¶
func RegisterClusterPolicyGeneratingHandler(ctx context.Context, controller ClusterPolicyController, apply apply.Apply, condition condition.Cond, name string, handler ClusterPolicyGeneratingHandler, opts *generic.GeneratingHandlerOptions)
RegisterClusterPolicyGeneratingHandler configures a ClusterPolicyController to execute a ClusterPolicyGeneratingHandler 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 RegisterClusterPolicyStatusHandler ¶
func RegisterClusterPolicyStatusHandler(ctx context.Context, controller ClusterPolicyController, condition condition.Cond, name string, handler ClusterPolicyStatusHandler)
RegisterClusterPolicyStatusHandler configures a ClusterPolicyController to execute a ClusterPolicyStatusHandler 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 ClusterPolicyCache ¶
type ClusterPolicyCache interface { generic.NonNamespacedCacheInterface[*v1.ClusterPolicy] }
ClusterPolicyCache interface for retrieving ClusterPolicy resources in memory.
type ClusterPolicyClient ¶
type ClusterPolicyClient interface { generic.NonNamespacedClientInterface[*v1.ClusterPolicy, *v1.ClusterPolicyList] }
ClusterPolicyClient interface for managing ClusterPolicy resources in Kubernetes.
type ClusterPolicyController ¶
type ClusterPolicyController interface { generic.NonNamespacedControllerInterface[*v1.ClusterPolicy, *v1.ClusterPolicyList] }
ClusterPolicyController interface for managing ClusterPolicy resources.
type ClusterPolicyGeneratingHandler ¶
type ClusterPolicyGeneratingHandler func(obj *v1.ClusterPolicy, status v1.ClusterPolicyStatus) ([]runtime.Object, v1.ClusterPolicyStatus, error)
ClusterPolicyGeneratingHandler is the top-level handler that is executed for every ClusterPolicy event. It extends ClusterPolicyStatusHandler by a returning a slice of child objects to be passed to apply.Apply
type ClusterPolicyStatusHandler ¶
type ClusterPolicyStatusHandler func(obj *v1.ClusterPolicy, status v1.ClusterPolicyStatus) (v1.ClusterPolicyStatus, error)
ClusterPolicyStatusHandler is executed for every added or modified ClusterPolicy. Should return the new status to be updated
type Interface ¶
type Interface interface {
ClusterPolicy() ClusterPolicyController
}
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface