gc

package
v2.6.1 Latest Latest
Warning

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

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

Documentation

Overview

Package gc provides a way to handle AWS garbage collection on deletion.

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) Configure added in v2.4.0

func (c *CmdProcessor) Configure(ctx context.Context, gcTasks []string) error

Configure is used to configure external resource garbage collection for a cluster.

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