Documentation ¶
Index ¶
- func NewCommand(f client.Factory) *cobra.Command
- func NewCreateCommand(f client.Factory, use string) *cobra.Command
- func NewDeleteCommand(f client.Factory, use string) *cobra.Command
- func NewDescribeCommand(f client.Factory, use string) *cobra.Command
- func NewGetCommand(f client.Factory, use string) *cobra.Command
- func NewLogsCommand(f client.Factory) *cobra.Command
- func Run(o *cli.DeleteOptions) error
- type CreateOptions
- type LogsOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeleteCommand ¶
NewDeleteCommand creates and returns a new cobra command for deleting restores.
func Run ¶ added in v0.10.0
func Run(o *cli.DeleteOptions) error
Run performs the deletion of restore(s).
Types ¶
type CreateOptions ¶
type CreateOptions struct { BackupName string ScheduleName string RestoreName string RestoreVolumes flag.OptionalBool Labels flag.Map IncludeNamespaces flag.StringArray ExcludeNamespaces flag.StringArray IncludeResources flag.StringArray ExcludeResources flag.StringArray NamespaceMappings flag.Map Selector flag.LabelSelector IncludeClusterResources flag.OptionalBool Wait bool // contains filtered or unexported fields }
func NewCreateOptions ¶
func NewCreateOptions() *CreateOptions
func (*CreateOptions) BindFlags ¶
func (o *CreateOptions) BindFlags(flags *pflag.FlagSet)
type LogsOptions ¶ added in v0.8.0
type LogsOptions struct { RestoreName string // contains filtered or unexported fields }
LogsOptions contains the fields required to retrieve logs of a restore
func NewLogsOptions ¶ added in v0.8.0
func NewLogsOptions() *LogsOptions
NewLogsOptions returns a new instance of LogsOptions
func (*LogsOptions) Complete ¶ added in v0.8.0
func (l *LogsOptions) Complete(args []string) error
Complete fills in LogsOptions with the given parameters, like populating the restore name from the input args
Click to show internal directories.
Click to hide internal directories.