job

package
v0.0.0-...-be065d1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Running    = "running"
	Failed     = "failed"
	Unfinished = "unfinished"
	Completed  = "completed"
	Pause      = "pause"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JobController

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

func NewJobController

func NewJobController(jobInformer batchv1informers.JobInformer, client clientset.Interface) *JobController

func (*JobController) Run

func (v *JobController) Run(workers int, stopCh <-chan struct{}) error

func (*JobController) Start

func (v *JobController) Start(ctx context.Context) error

type JobRevision

type JobRevision struct {
	Status         string    `json:"status"`
	Reasons        []string  `json:"reasons,omitempty"`
	Messages       []string  `json:"messages,omitempty"`
	Succeed        int32     `json:"succeed,omitempty"`
	DesirePodNum   int32     `json:"desire,omitempty"`
	Failed         int32     `json:"failed,omitempty"`
	Uid            string    `json:"uid"`
	StartTime      time.Time `json:"start-time,omitempty"`
	CompletionTime time.Time `json:"completion-time,omitempty"`
}

type JobRevisions

type JobRevisions map[int]JobRevision

Jump to

Keyboard shortcuts

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