gc

package
v0.0.54 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Selector                 string
	Namespace                string
	TerraformConfigMapPrefix string
	Duration                 time.Duration
	KubeClient               kubernetes.Interface
	DynamicClient            dynamic.Interface
	Ctx                      context.Context
	Client                   dynamic.ResourceInterface
	CommandRunner            cmdrunner.CommandRunner
}

Options the options for the command

func NewCmdGC

func NewCmdGC() (*cobra.Command, *Options)

NewCmdGC creates a command object for the command

func (*Options) GetContext

func (o *Options) GetContext() context.Context

GetContext lazily creates a context if it doesn't exist already

func (*Options) Run

func (o *Options) Run() error

Run implements the command

func (*Options) Validate

func (o *Options) Validate() error

Jump to

Keyboard shortcuts

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