scope

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 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 ClusterFeatureScope

type ClusterFeatureScope struct {
	logr.Logger

	ClusterFeature *configv1alpha1.ClusterFeature
	// contains filtered or unexported fields
}

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

func NewClusterFeatureScope

func NewClusterFeatureScope(params ClusterFeatureScopeParams) (*ClusterFeatureScope, error)

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

func (*ClusterFeatureScope) Close

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

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

func (*ClusterFeatureScope) ControllerName

func (s *ClusterFeatureScope) ControllerName() string

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

func (*ClusterFeatureScope) GetSelector

func (s *ClusterFeatureScope) GetSelector() string

GetSelector returns the ClusterSelector

func (*ClusterFeatureScope) IsContinuosSync

func (s *ClusterFeatureScope) IsContinuosSync() bool

IsContinuosSync returns true if ClusterFeature is set to keep updating workload cluster

func (*ClusterFeatureScope) Name

func (s *ClusterFeatureScope) Name() string

Name returns the ClusterFeature name.

func (*ClusterFeatureScope) PatchObject

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

PatchObject persists the cluster configuration and status.

func (*ClusterFeatureScope) SetMatchingClusters

func (s *ClusterFeatureScope) SetMatchingClusters(matchingClusters []corev1.ObjectReference)

SetMatchingClusters sets the feature status.

type ClusterFeatureScopeParams

type ClusterFeatureScopeParams struct {
	Client         client.Client
	Logger         logr.Logger
	ClusterFeature *configv1alpha1.ClusterFeature
	ControllerName string
}

ClusterFeatureScopeParams defines the input parameters used to create a new ClusterFeature Scope.

type ClusterSummaryScope

type ClusterSummaryScope struct {
	logr.Logger

	ClusterFeature *configv1alpha1.ClusterFeature
	ClusterSummary *configv1alpha1.ClusterSummary
	// contains filtered or unexported fields
}

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

func NewClusterSummaryScope

func NewClusterSummaryScope(params ClusterSummaryScopeParams) (*ClusterSummaryScope, error)

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

func (*ClusterSummaryScope) Close

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

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

func (*ClusterSummaryScope) Name

func (s *ClusterSummaryScope) Name() string

Name returns the ClusterSummary name.

func (*ClusterSummaryScope) PatchObject

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

PatchObject persists the cluster configuration and status.

func (*ClusterSummaryScope) SetFailureMessage

func (s *ClusterSummaryScope) SetFailureMessage(featureID configv1alpha1.FeatureID, failureMessage *string)

SetFailureMessage sets the infrastructure status failure message.

func (*ClusterSummaryScope) SetFailureReason

func (s *ClusterSummaryScope) SetFailureReason(featureID configv1alpha1.FeatureID,
	failureReason *string)

SetFailureReason sets the feature status failure reason.

func (*ClusterSummaryScope) SetFeatureStatus

func (s *ClusterSummaryScope) SetFeatureStatus(featureID configv1alpha1.FeatureID,
	status configv1alpha1.FeatureStatus, hash []byte)

SetFeatureStatus sets the feature status.

type ClusterSummaryScopeParams

type ClusterSummaryScopeParams struct {
	Client         client.Client
	Logger         logr.Logger
	ClusterFeature *configv1alpha1.ClusterFeature
	ClusterSummary *configv1alpha1.ClusterSummary
	ControllerName string
}

ClusterSummaryScopeParams defines the input parameters used to create a new ClusterSummary Scope.

Jump to

Keyboard shortcuts

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