schedule

package
v0.0.0-...-c1b1270 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(f client.Factory) *cobra.Command

func NewCreateCommand

func NewCreateCommand(f client.Factory, use string) *cobra.Command

func NewDeleteCommand

func NewDeleteCommand(f client.Factory, use string) *cobra.Command

NewDeleteCommand creates and returns a new cobra command for deleting schedules.

func NewDescribeCommand

func NewDescribeCommand(f client.Factory, use string) *cobra.Command

func NewGetCommand

func NewGetCommand(f client.Factory, use string) *cobra.Command

func NewPauseCommand

func NewPauseCommand(f client.Factory, use string) *cobra.Command

NewPauseCommand creates the command for pause

func NewUnpauseCommand

func NewUnpauseCommand(f client.Factory, use string) *cobra.Command

NewUnpauseCommand creates the command for unpause

func Run

func Run(o *cli.DeleteOptions) error

Run performs the deletion of schedules.

Types

type CreateOptions

type CreateOptions struct {
	BackupOptions              *backup.CreateOptions
	SkipOptions                *SkipOptions
	Schedule                   string
	UseOwnerReferencesInBackup bool
	Paused                     bool
}

func NewCreateOptions

func NewCreateOptions() *CreateOptions

func (*CreateOptions) BindFlags

func (o *CreateOptions) BindFlags(flags *pflag.FlagSet)

func (*CreateOptions) Complete

func (o *CreateOptions) Complete(args []string, f client.Factory) error

func (*CreateOptions) Run

func (*CreateOptions) Validate

func (o *CreateOptions) Validate(c *cobra.Command, args []string, f client.Factory) error

type PauseOptions

type PauseOptions struct {
	SkipOptions *SkipOptions
}

func NewPauseOptions

func NewPauseOptions() *PauseOptions

func (*PauseOptions) BindFlags

func (o *PauseOptions) BindFlags(flags *pflag.FlagSet)

type SkipOptions

type SkipOptions struct {
	SkipImmediately flag.OptionalBool
}

func NewSkipOptions

func NewSkipOptions() *SkipOptions

func (*SkipOptions) BindFlags

func (o *SkipOptions) BindFlags(flags *pflag.FlagSet)

Jump to

Keyboard shortcuts

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