backuplocation

package
Version: v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 20 Imported by: 9

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 added in v1.6.0

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

NewDeleteCommand creates and returns a new cobra command for deleting backup-locations.

func NewGetCommand

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

func NewSetCommand added in v1.6.0

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

func Run added in v1.6.0

Run performs the delete backup-location operation.

Types

type CreateOptions

type CreateOptions struct {
	Name                                  string
	Provider                              string
	Bucket                                string
	Credential                            flag.Map
	DefaultBackupStorageLocation          bool
	Prefix                                string
	BackupSyncPeriod, ValidationFrequency time.Duration
	Config                                flag.Map
	Labels                                flag.Map
	CACertFile                            string
	AccessMode                            *flag.Enum
}

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 SetOptions added in v1.6.0

type SetOptions struct {
	Name                         string
	CACertFile                   string
	Credential                   flag.Map
	DefaultBackupStorageLocation bool
}

func NewSetOptions added in v1.6.0

func NewSetOptions() *SetOptions

func (*SetOptions) BindFlags added in v1.6.0

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

func (*SetOptions) Complete added in v1.6.0

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

func (*SetOptions) Run added in v1.6.0

func (o *SetOptions) Run(c *cobra.Command, f client.Factory) error

func (*SetOptions) Validate added in v1.6.0

func (o *SetOptions) 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