Documentation ¶
Index ¶
- type CronJob
- func (c *CronJob) Build() *batchv1.CronJob
- func (c *CronJob) SetAnnotations(annotation map[string]string) *CronJob
- func (c *CronJob) SetJobTemplate(cronJobTemplate batchv1.JobTemplateSpec) *CronJob
- func (c *CronJob) SetLabels(labels map[string]string) *CronJob
- func (c *CronJob) SetNamespace(namespace string) *CronJob
- func (c *CronJob) SetSchedule(schedule string) *CronJob
- func (c *CronJob) ToYaml() []byte
- type Job
- func (j *Job) Build() *batchv1.Job
- func (j *Job) BuildTemplate() *batchv1.JobTemplateSpec
- func (j *Job) SetAnnotations(annotation map[string]string) *Job
- func (j *Job) SetBackOffLimit(backOffLimit int32) *Job
- func (j *Job) SetLabels(labels map[string]string) *Job
- func (j *Job) SetMatchLabels(matchLabels map[string]string) *Job
- func (j *Job) SetNamespace(namespace string) *Job
- func (j *Job) SetPodTemplate(podTemplate corev1.PodTemplateSpec) *Job
- func (j *Job) SetTTLSecondsAfterFinished(ttlSecondsAfterFinished int32) *Job
- func (j *Job) ToYaml() []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronJob ¶
type CronJob struct { Name string Namespace string Labels map[string]string Annotations map[string]string Schedule string JobTemplate batchv1.JobTemplateSpec CronJob *batchv1.CronJob }
CronJob struct for build a cronJob
func NewCronJobBuilder ¶
NewCronJobBuilder return a cronJob builder
func (*CronJob) SetAnnotations ¶
SetAnnotations sets cronJob annotations
func (*CronJob) SetJobTemplate ¶
func (c *CronJob) SetJobTemplate(cronJobTemplate batchv1.JobTemplateSpec) *CronJob
SetJobTemplate set pod template for deployment
func (*CronJob) SetNamespace ¶
SetNamespace set cronJob namespace
func (*CronJob) SetSchedule ¶
SetSchedule set job schedule
type Job ¶
type Job struct { Name string Namespace string Labels map[string]string Annotations map[string]string MatchLabels map[string]string PodTemplate corev1.PodTemplateSpec BackOffLimit *int32 TTLSecondsAfterFinished *int32 Job *batchv1.Job JobTemplate *batchv1.JobTemplateSpec }
Job struct for build a job
func (*Job) BuildTemplate ¶
func (j *Job) BuildTemplate() *batchv1.JobTemplateSpec
BuildTemplate build a job
func (*Job) SetAnnotations ¶
SetAnnotations sets job annotations
func (*Job) SetBackOffLimit ¶
SetBackOffLimit set backoff limits in the job
func (*Job) SetMatchLabels ¶
SetMatchLabels sets job match labels
func (*Job) SetNamespace ¶
SetNamespace set job namespace
func (*Job) SetPodTemplate ¶
func (j *Job) SetPodTemplate(podTemplate corev1.PodTemplateSpec) *Job
SetPodTemplate set pod template for deployment
func (*Job) SetTTLSecondsAfterFinished ¶
SetTTLSecondsAfterFinished set ttl seconds after finished Job
Click to show internal directories.
Click to hide internal directories.