batchv1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JobKind = batchv1.SchemeGroupVersion.WithKind("Job")
)

Functions

func NewJobPatcher

func NewJobPatcher(upd, orig *Job) lifecycle.Persister

Types

type Job

type Job struct {
	Key    client.ObjectKey
	Object *batchv1.Job
}

func NewJob

func NewJob(key client.ObjectKey) *Job

func NewJobFromObject

func NewJobFromObject(obj *batchv1.Job) *Job

func (*Job) Copy

func (j *Job) Copy() *Job

func (*Job) Delete

func (j *Job) Delete(ctx context.Context, cl client.Client, opts ...lifecycle.DeleteOption) (bool, error)

func (*Job) LabelAnnotateFrom

func (j *Job) LabelAnnotateFrom(ctx context.Context, from metav1.Object)

func (*Job) Load

func (j *Job) Load(ctx context.Context, cl client.Client) (bool, error)

func (*Job) Owned

func (j *Job) Owned(ctx context.Context, owner lifecycle.TypedObject) error

func (*Job) Persist

func (j *Job) Persist(ctx context.Context, cl client.Client) error

Jump to

Keyboard shortcuts

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