job_context

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterJobContext

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

func NewClusterJobContext

func NewClusterJobContext(clusterContext context.ClusterContext) *ClusterJobContext

func (ClusterJobContext) DeleteJobs

func (c ClusterJobContext) DeleteJobs(jobs []*RunningJob)

func (ClusterJobContext) GetRunningJobs

func (c ClusterJobContext) GetRunningJobs() ([]*RunningJob, error)

type JobContext

type JobContext interface {
	GetRunningJobs() ([]*RunningJob, error)
	DeleteJobs(jobs []*RunningJob)
}

type RunningJob

type RunningJob struct {
	JobId string
	Pods  []*v1.Pod
}

Jump to

Keyboard shortcuts

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