cron

package
v0.0.0-...-1dfa148 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteCron

func DeleteCron(name, namespace, jobType string) error

func DisplayAllCrons

func DisplayAllCrons(crons []*types.CronInfo, allNamespaces bool, format types.FormatStyle)

func DisplayCron

func DisplayCron(cron *types.CronInfo, format types.FormatStyle)

func GetCronInfo

func GetCronInfo(name, namespace string) (*types.CronInfo, error)

func ListCrons

func ListCrons(namespace string, allNamespaces bool) ([]*types.CronInfo, error)

func SubmitCronTFJob

func SubmitCronTFJob(namespace string, submitArgs *types.CronTFJobArgs) (err error)

func SuspendCron

func SuspendCron(name string, namespace string, suspend bool) error

Types

type CronHandler

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

CronHandler cron handler

func GetCronHandler

func GetCronHandler() *CronHandler

func NewCronHandler

func NewCronHandler() *CronHandler

func (*CronHandler) DeleteCron

func (ch *CronHandler) DeleteCron(namespace string, name string) error

func (*CronHandler) GetCron

func (ch *CronHandler) GetCron(namespace string, name string) (*types.CronInfo, error)

func (*CronHandler) ListCrons

func (ch *CronHandler) ListCrons(namespace string, allNamespaces bool) ([]*types.CronInfo, error)

func (*CronHandler) UpdateCron

func (ch *CronHandler) UpdateCron(namespace string, name string, suspend bool) error

Jump to

Keyboard shortcuts

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