restore

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2018 License: Apache-2.0 Imports: 15 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

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

Types

type CreateOptions

type CreateOptions struct {
	BackupName              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
	// 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

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

func (*LogsOptions) Validate added in v0.8.0

func (l *LogsOptions) Validate(f client.Factory) error

Validate validates the LogsOptions against the cluster, like validating if the given restore exists in the cluster or not

Jump to

Keyboard shortcuts

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