scope

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: Apache-2.0 Imports: 8 Imported by: ? modules, 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 AddonComplianceScope

type AddonComplianceScope struct {
	logr.Logger

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

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

func NewAddonComplianceScope

func NewAddonComplianceScope(params AddonComplianceScopeParams) (*AddonComplianceScope, error)

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

func (*AddonComplianceScope) Close

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

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

func (*AddonComplianceScope) ControllerName

func (s *AddonComplianceScope) ControllerName() string

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

func (*AddonComplianceScope) GetSelector

func (s *AddonComplianceScope) GetSelector() string

GetSelector returns the ClusterSelector

func (*AddonComplianceScope) Name

func (s *AddonComplianceScope) Name() string

Name returns the AddonCompliance name.

func (*AddonComplianceScope) PatchObject

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

PatchObject persists the feature configuration and status.

func (*AddonComplianceScope) SetFailureMessage

func (s *AddonComplianceScope) SetFailureMessage(failureMessage *string)

SetFailureMessage sets the failureMessage .

func (*AddonComplianceScope) SetMatchingClusterRefs

func (s *AddonComplianceScope) SetMatchingClusterRefs(matchingClusters []corev1.ObjectReference)

SetMatchingClusterRefs sets the feature status.

func (*AddonComplianceScope) UpdateLabels

func (s *AddonComplianceScope) UpdateLabels(matchingClusters []corev1.ObjectReference)

UpdateLabels updates AddonCompliance labels using matching clusters

type AddonComplianceScopeParams

type AddonComplianceScopeParams struct {
	Client          client.Client
	Logger          logr.Logger
	AddonCompliance *libsveltosv1alpha1.AddonCompliance
	ControllerName  string
}

AddonComplianceScopeParams defines the input parameters used to create a new AddonCompliance Scope.

Jump to

Keyboard shortcuts

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