jobs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContainer

func WithContainer(name, imageRef string, containerOptions ...containerOption) (
	option kubernetesJobOption,
)

func WithEnvironmentVariable

func WithEnvironmentVariable(key, value string) (option containerOption)

func WithHostPathVolume

func WithHostPathVolume(name, hostPath string) (option kubernetesJobOption)

func WithImagePullSecrets

func WithImagePullSecrets(names ...string) (option kubernetesJobOption)

func WithLabel

func WithLabel(key, value string) (option kubernetesJobOption)

func WithServiceAccount

func WithServiceAccount(name string) (option kubernetesJobOption)

func WithVolumeMount

func WithVolumeMount(volumeName, mountPath string) (option containerOption)

Types

type KubernetesJob

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

func NewKubernetesJob

func NewKubernetesJob(
	name, kubeconfigPath string, options ...kubernetesJobOption,
) (
	j *KubernetesJob, e error,
)

func (*KubernetesJob) Destroy

func (j *KubernetesJob) Destroy() (e error)

Jump to

Keyboard shortcuts

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