job_context

package
v0.1.36 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: Apache-2.0 Imports: 4 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)

func (*ClusterJobContext) IsActiveJob added in v0.1.34

func (c *ClusterJobContext) IsActiveJob(id string) bool

func (*ClusterJobContext) RegisterActiveJobs added in v0.1.34

func (c *ClusterJobContext) RegisterActiveJobs(ids []string)

func (*ClusterJobContext) RegisterDoneJobs added in v0.1.34

func (c *ClusterJobContext) RegisterDoneJobs(ids []string)

type JobContext

type JobContext interface {
	GetRunningJobs() ([]*RunningJob, error)
	DeleteJobs(jobs []*RunningJob)
	RegisterActiveJobs(ids []string)
	RegisterDoneJobs(ids []string)
	IsActiveJob(id string) bool
}

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