jobs

package
v0.0.0-...-f6da7c5 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobOptions

type JobOptions struct {
	Namespace     string
	Name          string
	Image         string
	Command       []string
	RestartPolicy coreV1.RestartPolicy
}

type Jobs

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

func New

func New(client *kubernetes.Clientset, metaOptions metav1.ListOptions, ctx context.Context) *Jobs

func (*Jobs) Apply

func (obj *Jobs) Apply(yaml string, namespace string) (v1.Job, error)

func (*Jobs) Create

func (obj *Jobs) Create(options JobOptions) (v1.Job, error)

func (*Jobs) Delete

func (obj *Jobs) Delete(name, namespace string) error

func (*Jobs) Get

func (obj *Jobs) Get(name, namespace string) (v1.Job, error)

func (*Jobs) Kill deprecated

func (obj *Jobs) Kill(name, namespace string) error

Deprecated: Use Delete instead.

func (*Jobs) List

func (obj *Jobs) List(namespace string) ([]v1.Job, error)

Jump to

Keyboard shortcuts

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