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