scope

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 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 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.

Jump to

Keyboard shortcuts

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