job

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxContainerTerminationMessageLength is the upper bound any one container may write to
	// its termination message path. Contents above this length will cause a failure.
	MaxContainerTerminationMessageLength = 1024 * 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	Ctx             *meta.JobContext
	StartTime       time.Time
	ActiveWorkspace string
	UserEnvs        map[string]string
}

func NewJob

func NewJob() (*Job, error)

func (*Job) AfterRun

func (j *Job) AfterRun(ctx context.Context) error

func (*Job) EnsureActiveWorkspace

func (j *Job) EnsureActiveWorkspace(workspace string) error

func (*Job) Run

func (j *Job) Run(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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