backup

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2018 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 a new command that deletes a backup.

func NewDescribeCommand

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

func NewDownloadCommand added in v0.4.0

func NewDownloadCommand(f client.Factory) *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

Types

type CreateOptions

type CreateOptions struct {
	Name                    string
	TTL                     time.Duration
	SnapshotVolumes         flag.OptionalBool
	IncludeNamespaces       flag.StringArray
	ExcludeNamespaces       flag.StringArray
	IncludeResources        flag.StringArray
	ExcludeResources        flag.StringArray
	Labels                  flag.Map
	Selector                flag.LabelSelector
	IncludeClusterResources flag.OptionalBool
}

func NewCreateOptions

func NewCreateOptions() *CreateOptions

func (*CreateOptions) BindFlags

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

func (*CreateOptions) Complete

func (o *CreateOptions) Complete(args []string) error

func (*CreateOptions) Run

func (*CreateOptions) Validate

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

type DeleteOptions added in v0.8.0

type DeleteOptions struct {
	Name    string
	Confirm bool
	// contains filtered or unexported fields
}

DeleteOptions contains parameters for deleting a backup.

func (*DeleteOptions) BindFlags added in v0.8.0

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

BindFlags binds options for this command to flags.

func (*DeleteOptions) Complete added in v0.8.0

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

Complete fills out the remainder of the parameters based on user input.

func (*DeleteOptions) Run added in v0.8.0

func (o *DeleteOptions) Run() error

Run performs the delete backup operation.

func (*DeleteOptions) Validate added in v0.8.0

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

Validate ensures all of the parameters have been filled in correctly.

type DownloadOptions added in v0.4.0

type DownloadOptions struct {
	Name    string
	Output  string
	Force   bool
	Timeout time.Duration
	// contains filtered or unexported fields
}

func NewDownloadOptions added in v0.4.0

func NewDownloadOptions() *DownloadOptions

func (*DownloadOptions) BindFlags added in v0.4.0

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

func (*DownloadOptions) Complete added in v0.4.0

func (o *DownloadOptions) Complete(args []string) error

func (*DownloadOptions) Run added in v0.4.0

func (*DownloadOptions) Validate added in v0.4.0

func (o *DownloadOptions) Validate(c *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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