cronjob

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: 0

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 CronJob

func NewBuilder

func NewBuilder() *Builder

NewBuilder returns new instance of Builder

func (*Builder) Build

func (b *Builder) Build() (*batchv1beta1.CronJob, error)

Build returns a job object

func (*Builder) WithConcurrencyPolicy

func (b *Builder) WithConcurrencyPolicy(concurrencyPolicy batchv1beta1.ConcurrencyPolicy) *Builder

WithConcurrencyPolicy sets the ConcurrencyPolicy field of CronJob with provided value.

func (*Builder) WithFailedJobHistoryLimit

func (b *Builder) WithFailedJobHistoryLimit(limit *int32) *Builder

WithFailedJobHistoryLimit sets the FailedJobHistoryLimit field of CronJob with provided value.

func (*Builder) WithJobTemplateSpecBuilder

func (b *Builder) WithJobTemplateSpecBuilder(tmplbuilder *jobtemplatespec.Builder) *Builder

WithJobTemplateSpecBuilder sets the jobtemplate of this cronjob

func (*Builder) WithLabels

func (b *Builder) WithLabels(labels map[string]string) *Builder

WithLabels sets the labels field of CronJob with provided value

func (*Builder) WithName

func (b *Builder) WithName(name string) *Builder

WithName sets the Name field of CronJob with provided value.

func (*Builder) WithNamespace

func (b *Builder) WithNamespace(namespace string) *Builder

WithNamespace sets the Namespace field of CronJob with provided value.

func (*Builder) WithSchedule

func (b *Builder) WithSchedule(schedule string) *Builder

WithSchedule sets the Schedule field of CronJob with provided value.

func (*Builder) WithStartingDeadlineSeconds

func (b *Builder) WithStartingDeadlineSeconds(startingDeadlineSeconds *int64) *Builder

WithStartingDeadlineSeconds sets the StartingDeadlineSeconds field of CronJob with provided value.

func (*Builder) WithSuccessfulJobHistoryLimit

func (b *Builder) WithSuccessfulJobHistoryLimit(limit *int32) *Builder

WithSuccessfulJobHistoryLimit sets the SuccessfulJobHistoryLimit field of CronJob with provided value.

type CronJob

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

CronJob holds the api's CronJob objects

Jump to

Keyboard shortcuts

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