job

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: Apache-2.0 Imports: 16 Imported by: 1

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(stopCh <-chan struct{}) 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