reaper

package
v0.0.0-...-deb04dd Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotAVAlidTarget = errors.New("not a valid target")

Functions

This section is empty.

Types

type Kreaper

type Kreaper struct {
	Client          client.WithWatch
	Lifetime        time.Duration
	Target          Target
	TargetNamespace string
	// contains filtered or unexported fields
}

func (Kreaper) Kill

func (k Kreaper) Kill(ctx context.Context) (err error)

type Target

type Target string

func ParseTarget

func ParseTarget(val string) (Target, error)

func (Target) Selector

func (t Target) Selector() (labels.Selector, error)

func (*Target) Set

func (t *Target) Set(s string) error

func (Target) String

func (t Target) String() string

Jump to

Keyboard shortcuts

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