job

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(c *client.Client, i *Instance) error

Create will create a job

Args:

  • Client struct from client module
  • Instance from this module

Returns:

  • error

Types

type Instance

type Instance struct {
	Name          string
	Namespace     string
	Command       string
	RestartPolicy string // never, always, onfailure
	BackoffLimit  int32  // default is 6

	Pod struct {
		Name    string
		Image   string
		Command []string
	}
}

Instance type refers to the Job object

Jump to

Keyboard shortcuts

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