jobs

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package jobs provides implementation of Job resources for Kubernetes

Deprecated: Use the resources package instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobOptions deprecated

type JobOptions struct {
	Namespace     string
	Name          string
	NodeName      string
	Image         string
	PullPolicy    coreV1.PullPolicy
	Command       []string
	RestartPolicy coreV1.RestartPolicy
	Wait          string
	Autodelete    bool
}

JobOptions provide configuration settings for creation of Job resources

Deprecated: No longer used in favor of generic resources.

type Jobs deprecated

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

Jobs provides API for manipulating Job resources within a Kubernetes cluster

Deprecated: No longer used in favor of generic resources.

func New deprecated

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

New creates a new instance backed by the provided client

Deprecated: No longer used.

func (*Jobs) Apply deprecated

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

Apply creates the Kubernetes resource given the supplied YAML configuration

Deprecated: Use resources.Apply instead.

func (*Jobs) Create deprecated

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

Create creates the Kubernetes resource given the supplied object

Deprecated: Use resources.Create instead.

func (*Jobs) Delete deprecated

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

Delete removes the named Job from the namespace

Deprecated: Use resources.Delete instead.

func (*Jobs) Get deprecated

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

Get returns the named Jobs instance within the namespace if available

Deprecated: Use resources.Get instead.

func (*Jobs) Kill deprecated

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

Kill removes the named Job from the namespace

Deprecated: Use resources.Delete instead.

func (*Jobs) List deprecated

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

List returns a collection of Jobs available within the namespace

Deprecated: Use resources.List instead.

func (*Jobs) Wait deprecated

func (obj *Jobs) Wait(options WaitOptions) (bool, error)

Wait for all pods to complete

Deprecated: No longer used.

type WaitOptions deprecated

type WaitOptions struct {
	Name      string
	Namespace string
	Timeout   string
}

WaitOptions specify the options for waiting for a Job to complete

Deprecated: no longer used.

Jump to

Keyboard shortcuts

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