scope

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: Apache-2.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 *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) GetFailureMessage added in v0.51.1

func (s *EventTriggerScope) GetFailureMessage(clusterRef *corev1.ObjectReference) *string

GetFailureMessage returns the ClusterInfo FailureMessage

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.

Jump to

Keyboard shortcuts

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