cron

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0, Apache-2.0 Imports: 22 Imported by: 1

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 added in v0.8.4

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

CronHandler cron handler

func GetCronHandler added in v0.8.4

func GetCronHandler() *CronHandler

func NewCronHandler added in v0.8.4

func NewCronHandler() *CronHandler

func (*CronHandler) DeleteCron added in v0.8.4

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

func (*CronHandler) GetCron added in v0.8.4

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

func (*CronHandler) ListCrons added in v0.8.4

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

func (*CronHandler) UpdateCron added in v0.8.4

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