jobspec

package
v0.0.0-...-6b51de2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

Builder is the builder object for JobSpec

func NewBuilder

func NewBuilder() *Builder

NewBuilder returns new instance of Builder

func (*Builder) Build

func (b *Builder) Build() (*JobSpec, error)

Build returns a jobspec object

func (*Builder) WithBackOffLimit

func (b *Builder) WithBackOffLimit(backoff *int32) *Builder

WithBackOffLimit sets the number of retries before marking this job failed

func (*Builder) WithPodTemplateSpecBuilder

func (b *Builder) WithPodTemplateSpecBuilder(
	tmplbuilder *templatespec.Builder,
) *Builder

WithPodTemplateSpecBuilder sets the template of pod to be created by this job

type JobSpec

type JobSpec struct {
	Object *batchv1.JobSpec
}

JobSpec holds the api's JobSpec objects

Jump to

Keyboard shortcuts

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