scope

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: Apache-2.0 Imports: 6 Imported by: 1 module, 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 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.

Jump to

Keyboard shortcuts

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