v1

package
v1.6.20 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JobKind = resource.Kind{
	Group:   "batch",
	Version: "v1",
	Kind:    "Job",
	Scoped:  true,
}
View Source
var JobResource = resource.Type{
	Kind: JobKind,
	Name: "jobs",
}

Functions

This section is empty.

Types

type Client

type Client interface {
	JobsClient
}

func NewClient

func NewClient(resources resource.Client, filter resource.Filter) Client

type Job

type Job struct {
	*resource.Resource
	Object *batchv1.Job
}

func NewJob

func NewJob(job *batchv1.Job, client resource.Client) *Job

func (*Job) Delete

func (r *Job) Delete(ctx context.Context) error

type JobsClient

type JobsClient interface {
	Jobs() JobsReader
}

func NewJobsClient

func NewJobsClient(resources resource.Client, filter resource.Filter) JobsClient

type JobsReader

type JobsReader interface {
	Get(ctx context.Context, name string) (*Job, error)
	List(ctx context.Context) ([]*Job, error)
}

func NewJobsReader

func NewJobsReader(client resource.Client, filter resource.Filter) JobsReader

Jump to

Keyboard shortcuts

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