scope

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 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 ClusterSummaryScope

type ClusterSummaryScope struct {
	logr.Logger

	Profile        client.Object
	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 clusterprofile configuration and status.

func (*ClusterSummaryScope) IsContinuousSync

func (s *ClusterSummaryScope) IsContinuousSync() bool

IsContinuousSync returns true if ClusterProfile is set to keep updating workload cluster

func (*ClusterSummaryScope) IsContinuousWithDriftDetection added in v0.21.1

func (s *ClusterSummaryScope) IsContinuousWithDriftDetection() bool

IsContinuousWithDriftDetection returns true if ClusterProfile is set to SyncModeContinuousWithDriftDetection

func (*ClusterSummaryScope) IsDryRunSync

func (s *ClusterSummaryScope) IsDryRunSync() bool

IsDryRunSync returns true if ClusterProfile sync mod is set to dryRun

func (*ClusterSummaryScope) IsOneTimeSync

func (s *ClusterSummaryScope) IsOneTimeSync() bool

IsOneTimeSync returns true if ClusterProfile sync mod is set to one time

func (*ClusterSummaryScope) Name

func (s *ClusterSummaryScope) Name() string

Name returns the ClusterSummary name.

func (*ClusterSummaryScope) Namespace

func (s *ClusterSummaryScope) Namespace() string

Namespace returns the ClusterSummary namespace.

func (*ClusterSummaryScope) PatchObject

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

PatchObject persists the cluster configuration and status.

func (*ClusterSummaryScope) SetDependenciesMessage added in v0.20.0

func (s *ClusterSummaryScope) SetDependenciesMessage(message *string)

SetDependenciesMessage sets the dependencies 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.

func (*ClusterSummaryScope) SetLastAppliedTime

func (s *ClusterSummaryScope) SetLastAppliedTime(featureID configv1alpha1.FeatureID,
	lastAppliedTime *metav1.Time)

type ClusterSummaryScopeParams

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

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

type ProfileScope added in v0.21.0

type ProfileScope struct {
	logr.Logger

	Profile client.Object
	// contains filtered or unexported fields
}

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

func NewProfileScope added in v0.21.0

func NewProfileScope(params ProfileScopeParams) (*ProfileScope, error)

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

func (*ProfileScope) Close added in v0.21.0

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

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

func (*ProfileScope) ControllerName added in v0.21.0

func (s *ProfileScope) ControllerName() string

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

func (*ProfileScope) GetClusterProfile added in v0.21.0

func (s *ProfileScope) GetClusterProfile() *configv1alpha1.ClusterProfile

func (*ProfileScope) GetKind added in v0.21.0

func (s *ProfileScope) GetKind() string

func (*ProfileScope) GetProfile added in v0.21.0

func (s *ProfileScope) GetProfile() *configv1alpha1.Profile

func (*ProfileScope) GetSelector added in v0.21.0

func (s *ProfileScope) GetSelector() string

GetSelector returns the ClusterSelector

func (*ProfileScope) GetSpec added in v0.21.0

func (s *ProfileScope) GetSpec() *configv1alpha1.Spec

func (*ProfileScope) GetStatus added in v0.21.0

func (s *ProfileScope) GetStatus() *configv1alpha1.Status

func (*ProfileScope) IsContinuousSync added in v0.21.0

func (s *ProfileScope) IsContinuousSync() bool

IsContinuousSync returns true if Profile is set to keep updating workload cluster

func (*ProfileScope) IsDryRunSync added in v0.21.0

func (s *ProfileScope) IsDryRunSync() bool

IsDryRunSync returns true if Profile sync mod is set to dryRun

func (*ProfileScope) IsOneTimeSync added in v0.21.0

func (s *ProfileScope) IsOneTimeSync() bool

IsOneTimeSync returns true if Profile sync mod is set to one time

func (*ProfileScope) Name added in v0.21.0

func (s *ProfileScope) Name() string

Name returns the Profile name.

func (*ProfileScope) PatchObject added in v0.21.0

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

PatchObject persists the feature configuration and status.

func (*ProfileScope) SetMatchingClusterRefs added in v0.21.0

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

SetMatchingClusterRefs sets the feature status.

type ProfileScopeParams added in v0.21.0

type ProfileScopeParams struct {
	Client         client.Client
	Logger         logr.Logger
	Profile        client.Object
	ControllerName string
}

ProfileScopeParams defines the input parameters used to create a new Profile Scope.

Jump to

Keyboard shortcuts

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