restore

package
v1.15.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 28 Imported by: 20

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 restores.

func NewDescribeCommand

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

func NewGetCommand

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

func NewLogsCommand added in v0.4.0

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

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
	PreserveNodePorts         flag.OptionalBool
	Labels                    flag.Map
	IncludeNamespaces         flag.StringArray
	ExcludeNamespaces         flag.StringArray
	ExistingResourcePolicy    string
	IncludeResources          flag.StringArray
	ExcludeResources          flag.StringArray
	StatusIncludeResources    flag.StringArray
	StatusExcludeResources    flag.StringArray
	NamespaceMappings         flag.Map
	Selector                  flag.LabelSelector
	OrSelector                flag.OrLabelSelector
	IncludeClusterResources   flag.OptionalBool
	Wait                      bool
	AllowPartiallyFailed      flag.OptionalBool
	ItemOperationTimeout      time.Duration
	ResourceModifierConfigMap string
	WriteSparseFiles          flag.OptionalBool
	ParallelFilesDownload     int
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

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