batch

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiffAnalyzer

type DiffAnalyzer struct {
	// contains filtered or unexported fields
}

func NewDiffAnalyzer

func NewDiffAnalyzer(clientSet *kubernetes.Clientset, conf *rest.Config) (*DiffAnalyzer, error)

func (*DiffAnalyzer) DiffPod

func (d *DiffAnalyzer) DiffPod(podName string) error

func (*DiffAnalyzer) DoAction

func (d *DiffAnalyzer) DoAction(jobName, action string) error

func (*DiffAnalyzer) GetDetailOfJob

func (d *DiffAnalyzer) GetDetailOfJob(jobName string) error

func (*DiffAnalyzer) ListDiffPods

func (d *DiffAnalyzer) ListDiffPods() error

func (*DiffAnalyzer) ListJobs

func (d *DiffAnalyzer) ListJobs() error

func (*DiffAnalyzer) LoadUpgradeConfig

func (d *DiffAnalyzer) LoadUpgradeConfig(ctx context.Context, configName string) (*jConfig.BatchConfig, error)

func (*DiffAnalyzer) NewUpgradeJob

func (d *DiffAnalyzer) NewUpgradeJob(pvcName, nodeName string, worker int, ignoreErr bool, quiet bool) error

type JobList

type JobList []batchv1.Job

func (JobList) Len

func (l JobList) Len() int

func (JobList) Less

func (l JobList) Less(i, j int) bool

func (JobList) Swap

func (l JobList) Swap(i, j int)

type PodDiffList

type PodDiffList []dashboard.PodDiff

func (PodDiffList) Len

func (p PodDiffList) Len() int

func (PodDiffList) Less

func (p PodDiffList) Less(i, j int) bool

func (PodDiffList) Swap

func (p PodDiffList) Swap(i, j int)

Jump to

Keyboard shortcuts

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