scope

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceSummaryScope

type ResourceSummaryScope struct {
	logr.Logger

	ResourceSummary *libsveltosv1beta1.ResourceSummary
	// contains filtered or unexported fields
}

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

func NewResourceSummaryScope

func NewResourceSummaryScope(params ResourceSummaryScopeParams) (*ResourceSummaryScope, error)

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

func (*ResourceSummaryScope) Close

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

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

func (*ResourceSummaryScope) Name

func (s *ResourceSummaryScope) Name() string

Name returns the ResourceSummary name.

func (*ResourceSummaryScope) PatchObject

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

PatchObject persists the feature configuration and status.

type ResourceSummaryScopeParams

type ResourceSummaryScopeParams struct {
	Client          client.Client
	Logger          logr.Logger
	ResourceSummary *libsveltosv1beta1.ResourceSummary
	ControllerName  string
}

ResourceSummaryScopeParams defines the input parameters used to create a new ResourceSummary Scope.

Jump to

Keyboard shortcuts

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