gc

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdProcessor

type CmdProcessor struct {
	// contains filtered or unexported fields
}

CmdProcessor handles the garbage collection commands.

func New

func New(input GCInput, opts ...CmdProcessorOption) (*CmdProcessor, error)

New creates a new instance of the command processor.

func (*CmdProcessor) Disable

func (c *CmdProcessor) Disable(ctx context.Context) error

Disable is used to disable external resource garbage collection for a cluster.

func (*CmdProcessor) Enable

func (c *CmdProcessor) Enable(ctx context.Context) error

Enable is used to enable external resource garbage collection for a cluster.

type CmdProcessorOption

type CmdProcessorOption func(proc *CmdProcessor) error

CmdProcessorOption is a function type to supply options when creating the command processor.

func WithClient

func WithClient(client client.Client) CmdProcessorOption

WithClient is an option that enable you to explicitly supply a client.

type GCInput

type GCInput struct {
	ClusterName    string
	Namespace      string
	KubeconfigPath string
}

GCInput holds the configuration for the command processor.

Jump to

Keyboard shortcuts

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