scope

package
v0.41.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 6 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 ClassifierScope

type ClassifierScope struct {
	logr.Logger

	Classifier *libsveltosv1beta1.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 []libsveltosv1beta1.ClusterInfo)

SetClusterInfo sets the ClusterInfo status field.

func (*ClassifierScope) SetMachingClusterStatuses

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

SetMachingClusterStatuses sets the MachingClusterStatuses status.

type ClassifierScopeParams

type ClassifierScopeParams struct {
	Client         client.Client
	Logger         logr.Logger
	Classifier     *libsveltosv1beta1.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