Documentation ¶
Index ¶
- type ClusterHealthCheckScope
- func (s *ClusterHealthCheckScope) Close(ctx context.Context) error
- func (s *ClusterHealthCheckScope) ControllerName() string
- func (s *ClusterHealthCheckScope) GetSelector() string
- func (s *ClusterHealthCheckScope) Name() string
- func (s *ClusterHealthCheckScope) PatchObject(ctx context.Context) error
- func (s *ClusterHealthCheckScope) SetClusterConditions(clusterConditions []libsveltosv1alpha1.ClusterCondition)
- func (s *ClusterHealthCheckScope) SetMatchingClusterRefs(matchingClusters []corev1.ObjectReference)
- type ClusterHealthCheckScopeParams
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 ¶
func (s *ClusterHealthCheckScope) Close(ctx context.Context) error
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.