scope

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: Apache-2.0 Imports: 8 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 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