runner

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogMode

type LogMode string
const (
	LogModeAll    LogMode = "all"
	LogModeFailed LogMode = "failed"
	LogModeNone   LogMode = "none"
)

type Options

type Options struct {
	Namespace string
	Selector  string
	JobNames  []string
	Timeout   time.Duration
	LogMode   LogMode
}

type Printer

type Printer interface {
	Start(total int, namespace string, timeout time.Duration)
	UpdateJob(name string, status k8s.JobStatus, age time.Duration)
	PrintLogs(jobName string, status k8s.JobStatus, logs string)
	PrintSummary(failed, deleted int)
}

type Result

type Result struct {
	Failed   int
	Deleted  int
	TimedOut bool
}

func Run

func Run(ctx context.Context, client kubernetes.Interface, p Printer, opts Options) (Result, error)

Jump to

Keyboard shortcuts

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