Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SveltosClusterScope ¶
type SveltosClusterScope struct { logr.Logger SveltosCluster *libsveltosv1beta1.SveltosCluster // contains filtered or unexported fields }
SveltosClusterScope defines the basic context for an actuator to operate upon.
func NewSveltosClusterScope ¶
func NewSveltosClusterScope(params SveltosClusterScopeParams) (*SveltosClusterScope, error)
NewSveltosClusterScope creates a new SveltosCluster Scope from the supplied parameters. This is meant to be called for each reconcile iteration.
func (*SveltosClusterScope) Close ¶
func (s *SveltosClusterScope) Close(ctx context.Context) error
Close closes the current scope persisting the sveltoscluster configuration and status.
func (*SveltosClusterScope) ControllerName ¶
func (s *SveltosClusterScope) ControllerName() string
ControllerName returns the name of the controller that created the SveltosClusterScope.
func (*SveltosClusterScope) Name ¶
func (s *SveltosClusterScope) Name() string
Name returns the SveltosCluster name.
func (*SveltosClusterScope) PatchObject ¶
func (s *SveltosClusterScope) PatchObject(ctx context.Context) error
PatchObject persists the feature configuration and status.
func (*SveltosClusterScope) SetLabel ¶ added in v0.33.0
func (s *SveltosClusterScope) SetLabel(key, value string)
SetLabel add label key:value
type SveltosClusterScopeParams ¶
type SveltosClusterScopeParams struct { Client client.Client Logger logr.Logger SveltosCluster *libsveltosv1beta1.SveltosCluster ControllerName string }
SveltosClusterScopeParams defines the input parameters used to create a new SveltosCluster Scope.
Click to show internal directories.
Click to hide internal directories.