Documentation ¶
Index ¶
- type EventTriggerScope
- func (s *EventTriggerScope) Close(ctx context.Context) error
- func (s *EventTriggerScope) ControllerName() string
- func (s *EventTriggerScope) GetSelector() *metav1.LabelSelector
- func (s *EventTriggerScope) Name() string
- func (s *EventTriggerScope) PatchObject(ctx context.Context) error
- func (s *EventTriggerScope) SetClusterInfo(clusterInfo []libsveltosv1beta1.ClusterInfo)
- func (s *EventTriggerScope) SetMatchingClusterRefs(matchingClusters []corev1.ObjectReference)
- type EventTriggerScopeParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventTriggerScope ¶ added in v0.21.0
type EventTriggerScope struct { logr.Logger EventTrigger *v1beta1.EventTrigger // contains filtered or unexported fields }
EventTriggerScope defines the basic context for an actuator to operate upon.
func NewEventTriggerScope ¶ added in v0.21.0
func NewEventTriggerScope(params EventTriggerScopeParams) (*EventTriggerScope, error)
NewEventTriggerScope creates a new EventTrigger Scope from the supplied parameters. This is meant to be called for each reconcile iteration.
func (*EventTriggerScope) Close ¶ added in v0.21.0
func (s *EventTriggerScope) Close(ctx context.Context) error
Close closes the current scope persisting the EventTrigger configuration and status.
func (*EventTriggerScope) ControllerName ¶ added in v0.21.0
func (s *EventTriggerScope) ControllerName() string
ControllerName returns the name of the controller that created the EventTriggerScope.
func (*EventTriggerScope) GetSelector ¶ added in v0.21.0
func (s *EventTriggerScope) GetSelector() *metav1.LabelSelector
GetSelector returns the ClusterSelector
func (*EventTriggerScope) Name ¶ added in v0.21.0
func (s *EventTriggerScope) Name() string
Name returns the EventTrigger name.
func (*EventTriggerScope) PatchObject ¶ added in v0.21.0
func (s *EventTriggerScope) PatchObject(ctx context.Context) error
PatchObject persists the feature configuration and status.
func (*EventTriggerScope) SetClusterInfo ¶ added in v0.21.0
func (s *EventTriggerScope) SetClusterInfo(clusterInfo []libsveltosv1beta1.ClusterInfo)
SetClusterInfo sets the ClusterInfo status.
func (*EventTriggerScope) SetMatchingClusterRefs ¶ added in v0.21.0
func (s *EventTriggerScope) SetMatchingClusterRefs(matchingClusters []corev1.ObjectReference)
SetMatchingClusterRefs sets the MatchingClusterRefs status.
type EventTriggerScopeParams ¶ added in v0.21.0
type EventTriggerScopeParams struct { Client client.Client Logger logr.Logger EventTrigger *v1beta1.EventTrigger ControllerName string }
EventTriggerScopeParams defines the input parameters used to create a new EventTrigger Scope.