pods

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 13 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
	Age        time.Duration
	KubeClient kubernetes.Interface
}

Options containers the CLI options

func NewCmdGCPods

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

NewCmdGCPods creates the command object

func (*Options) MatchesPod

func (o *Options) MatchesPod(pod *corev1.Pod) (bool, time.Duration)

MatchesPod returns true if this pod can be garbage collected

func (*Options) Run

func (o *Options) Run() error

Run implements this command

Jump to

Keyboard shortcuts

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