Help us shape the future of Go! Take the 2026 Go Developer Survey

cronjob

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCronJobWithName

func GetCronJobWithName(
	ctx context.Context,
	h *helper.Helper,
	name string,
	namespace string,
) (*batchv1.CronJob, error)

GetCronJobWithName func

Types

type CronJob

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

CronJob -

func GetCronJobByName

func GetCronJobByName(
	ctx context.Context,
	h *helper.Helper,
	name string,
	namespace string,
) (*CronJob, error)

GetCronJobByName - returns a *CronJob object with specified name and namespace

func NewCronJob

func NewCronJob(
	cronjob *batchv1.CronJob,
	timeout time.Duration,
) *CronJob

NewCronJob returns an initialized CronJob.

func (*CronJob) CreateOrPatch

func (cj *CronJob) CreateOrPatch(
	ctx context.Context,
	h *helper.Helper,
) (ctrl.Result, error)

CreateOrPatch - creates or patches a cronjob, reconciles after Xs if object won't exist.

func (*CronJob) Delete

func (cj *CronJob) Delete(
	ctx context.Context,
	h *helper.Helper,
) error

Delete - delete a cronjob.

func (*CronJob) GetCronJob

func (cj *CronJob) GetCronJob() batchv1.CronJob

GetCronJob - get the cronjob object.

Jump to

Keyboard shortcuts

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