cronjob

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 deployment

Args:

  • Client struct from client module
  • Deployment from this module

Returns:

  • error

Types

type Instance

type Instance struct {
	Name                       string
	Namespace                  string
	Schedule                   string
	ConcurrencyPolicy          string // Allow, Forbid and Replace
	RestartPolicy              string
	Command                    []string
	Parallelism                int32 // 0 means unlimited parallelism.
	BackoffLimit               int32 // default is 6
	Completions                int32
	SuccessfulJobsHistoryLimit int32
	FailedJobsHistoryLimit     int32

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

Instance type refers to the Deployment object

Jump to

Keyboard shortcuts

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