scope

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClassifierScope

type ClassifierScope struct {
	logr.Logger

	Classifier *libsveltosv1alpha1.Classifier
	// contains filtered or unexported fields
}

ClassifierScope defines the basic context for an actuator to operate upon.

func NewClassifierScope

func NewClassifierScope(params ClassifierScopeParams) (*ClassifierScope, error)

NewClassifierScope creates a new Classifier Scope from the supplied parameters. This is meant to be called for each reconcile iteration.

func (*ClassifierScope) Close

func (s *ClassifierScope) Close(ctx context.Context) error

Close closes the current scope persisting the Classifier configuration and status.

func (*ClassifierScope) ControllerName

func (s *ClassifierScope) ControllerName() string

ControllerName returns the name of the controller that created the ClassifierScope.

func (*ClassifierScope) Name

func (s *ClassifierScope) Name() string

Name returns the Classifier name.

func (*ClassifierScope) PatchObject

func (s *ClassifierScope) PatchObject(ctx context.Context) error

PatchObject persists the feature configuration and status.

func (*ClassifierScope) SetClusterInfo

func (s *ClassifierScope) SetClusterInfo(clusterInfo []libsveltosv1alpha1.ClusterInfo)

SetClusterInfo sets the ClusterInfo status field.

func (*ClassifierScope) SetMachingClusterStatuses

func (s *ClassifierScope) SetMachingClusterStatuses(matchingClusters []libsveltosv1alpha1.MachingClusterStatus)

SetMachingClusterStatuses sets the MachingClusterStatuses status.

type ClassifierScopeParams

type ClassifierScopeParams struct {
	Client         client.Client
	Logger         logr.Logger
	Classifier     *libsveltosv1alpha1.Classifier
	ControllerName string
}

ClassifierScopeParams defines the input parameters used to create a new Classifier Scope.

Jump to

Keyboard shortcuts

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