Documentation
¶
Index ¶
- type Builder
- func (b *Builder) Build() (*batchv1beta1.CronJob, error)
- func (b *Builder) WithConcurrencyPolicy(concurrencyPolicy batchv1beta1.ConcurrencyPolicy) *Builder
- func (b *Builder) WithFailedJobHistoryLimit(limit *int32) *Builder
- func (b *Builder) WithJobTemplateSpecBuilder(tmplbuilder *jobtemplatespec.Builder) *Builder
- func (b *Builder) WithLabels(labels map[string]string) *Builder
- func (b *Builder) WithName(name string) *Builder
- func (b *Builder) WithNamespace(namespace string) *Builder
- func (b *Builder) WithSchedule(schedule string) *Builder
- func (b *Builder) WithStartingDeadlineSeconds(startingDeadlineSeconds *int64) *Builder
- func (b *Builder) WithSuccessfulJobHistoryLimit(limit *int32) *Builder
- type CronJob
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 (*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 ¶
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 ¶
WithLabels sets the labels field of CronJob with provided value
func (*Builder) WithNamespace ¶
WithNamespace sets the Namespace field of CronJob with provided value.
func (*Builder) WithSchedule ¶
WithSchedule sets the Schedule field of CronJob with provided value.
func (*Builder) WithStartingDeadlineSeconds ¶
WithStartingDeadlineSeconds sets the StartingDeadlineSeconds field of CronJob with provided value.
func (*Builder) WithSuccessfulJobHistoryLimit ¶
WithSuccessfulJobHistoryLimit sets the SuccessfulJobHistoryLimit field of CronJob with provided value.