Documentation ¶
Index ¶
- func DeleteCron(name, namespace, jobType string) error
- func DisplayAllCrons(crons []*types.CronInfo, allNamespaces bool, format types.FormatStyle)
- func DisplayCron(cron *types.CronInfo, format types.FormatStyle)
- func GetCronInfo(name, namespace string) (*types.CronInfo, error)
- func ListCrons(namespace string, allNamespaces bool) ([]*types.CronInfo, error)
- func SubmitCronTFJob(namespace string, submitArgs *types.CronTFJobArgs) (err error)
- func SuspendCron(name string, namespace string, suspend bool) error
- type CronHandler
- func (ch *CronHandler) DeleteCron(namespace string, name string) error
- func (ch *CronHandler) GetCron(namespace string, name string) (*types.CronInfo, error)
- func (ch *CronHandler) ListCrons(namespace string, allNamespaces bool) ([]*types.CronInfo, error)
- func (ch *CronHandler) UpdateCron(namespace string, name string, suspend bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteCron ¶
func DisplayAllCrons ¶
func DisplayAllCrons(crons []*types.CronInfo, allNamespaces bool, format types.FormatStyle)
func DisplayCron ¶
func DisplayCron(cron *types.CronInfo, format types.FormatStyle)
func SubmitCronTFJob ¶
func SubmitCronTFJob(namespace string, submitArgs *types.CronTFJobArgs) (err 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) UpdateCron ¶
func (ch *CronHandler) UpdateCron(namespace string, name string, suspend bool) error
Click to show internal directories.
Click to hide internal directories.