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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterHealthCheckScope

type ClusterHealthCheckScope struct {
	logr.Logger

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

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

func NewClusterHealthCheckScope

func NewClusterHealthCheckScope(params ClusterHealthCheckScopeParams) (*ClusterHealthCheckScope, error)

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

func (*ClusterHealthCheckScope) Close

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

func (*ClusterHealthCheckScope) ControllerName

func (s *ClusterHealthCheckScope) ControllerName() string

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

func (*ClusterHealthCheckScope) GetSelector

func (s *ClusterHealthCheckScope) GetSelector() string

GetSelector returns the ClusterSelector

func (*ClusterHealthCheckScope) Name

func (s *ClusterHealthCheckScope) Name() string

Name returns the ClusterHealthCheck name.

func (*ClusterHealthCheckScope) PatchObject

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

PatchObject persists the feature configuration and status.

func (*ClusterHealthCheckScope) SetClusterConditions

func (s *ClusterHealthCheckScope) SetClusterConditions(clusterConditions []libsveltosv1alpha1.ClusterCondition)

SetClusterConditions sets the ClusterConditions Status field.

func (*ClusterHealthCheckScope) SetMatchingClusterRefs

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

SetMatchingClusterRefs sets the feature status.

type ClusterHealthCheckScopeParams

type ClusterHealthCheckScopeParams struct {
	Client             client.Client
	Logger             logr.Logger
	ClusterHealthCheck *libsveltosv1alpha1.ClusterHealthCheck
	ControllerName     string
}

ClusterHealthCheckScopeParams defines the input parameters used to create a new ClusterHealthCheck Scope.

Jump to

Keyboard shortcuts

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