Documentation
¶
Index ¶
- type ClassifierScope
- func (s *ClassifierScope) Close(ctx context.Context) error
- func (s *ClassifierScope) ControllerName() string
- func (s *ClassifierScope) Name() string
- func (s *ClassifierScope) PatchObject(ctx context.Context) error
- func (s *ClassifierScope) SetClusterInfo(clusterInfo []libsveltosv1beta1.ClusterInfo)
- func (s *ClassifierScope) SetMachingClusterStatuses(matchingClusters []libsveltosv1beta1.MachingClusterStatus)
- type ClassifierScopeParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClassifierScope ¶
type ClassifierScope struct { logr.Logger Classifier *libsveltosv1beta1.Classifier // contains filtered or unexported fields }
ClassifierScope defines the basic context for an actuator to operate upon.
func NewClassifierScope ¶
func NewClassifierScope(params ClassifierScopeParams) (*ClassifierScope, error)
NewClassifierScope creates a new Classifier Scope from the supplied parameters. This is meant to be called for each reconcile iteration.
func (*ClassifierScope) Close ¶
func (s *ClassifierScope) Close(ctx context.Context) error
Close closes the current scope persisting the Classifier configuration and status.
func (*ClassifierScope) ControllerName ¶
func (s *ClassifierScope) ControllerName() string
ControllerName returns the name of the controller that created the ClassifierScope.
func (*ClassifierScope) Name ¶
func (s *ClassifierScope) Name() string
Name returns the Classifier name.
func (*ClassifierScope) PatchObject ¶
func (s *ClassifierScope) PatchObject(ctx context.Context) error
PatchObject persists the feature configuration and status.
func (*ClassifierScope) SetClusterInfo ¶
func (s *ClassifierScope) SetClusterInfo(clusterInfo []libsveltosv1beta1.ClusterInfo)
SetClusterInfo sets the ClusterInfo status field.
func (*ClassifierScope) SetMachingClusterStatuses ¶
func (s *ClassifierScope) SetMachingClusterStatuses(matchingClusters []libsveltosv1beta1.MachingClusterStatus)
SetMachingClusterStatuses sets the MachingClusterStatuses status.
type ClassifierScopeParams ¶
type ClassifierScopeParams struct { Client client.Client Logger logr.Logger Classifier *libsveltosv1beta1.Classifier ControllerName string }
ClassifierScopeParams defines the input parameters used to create a new Classifier Scope.