scope

package
v0.32.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 *v1alpha1.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() string

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 []libsveltosv1alpha1.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   *v1alpha1.EventTrigger
	ControllerName string
}

EventTriggerScopeParams defines the input parameters used to create a new EventTrigger Scope.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL