Documentation ¶
Index ¶
- Constants
- 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 NewDownloadCommand(f client.Factory) *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
- func (o *CreateOptions) BindFlags(flags *pflag.FlagSet)
- func (o *CreateOptions) BindFromSchedule(flags *pflag.FlagSet)
- func (o *CreateOptions) BindWait(flags *pflag.FlagSet)
- func (o *CreateOptions) BuildBackup(namespace string) (*velerov1api.Backup, error)
- func (o *CreateOptions) Complete(args []string, f client.Factory) error
- func (o *CreateOptions) Run(c *cobra.Command, f client.Factory) error
- func (o *CreateOptions) Validate(c *cobra.Command, args []string, f client.Factory) error
- type DownloadOptions
Constants ¶
View Source
const DefaultBackupTTL time.Duration = 30 * 24 * time.Hour
Variables ¶
This section is empty.
Functions ¶
func NewDeleteCommand ¶
NewDeleteCommand creates a new command that deletes a backup.
Types ¶
type CreateOptions ¶
type CreateOptions struct { Name string TTL time.Duration SnapshotVolumes flag.OptionalBool DefaultVolumesToRestic flag.OptionalBool IncludeNamespaces flag.StringArray ExcludeNamespaces flag.StringArray IncludeResources flag.StringArray ExcludeResources flag.StringArray Labels flag.Map Selector flag.LabelSelector IncludeClusterResources flag.OptionalBool Wait bool StorageLocation string SnapshotLocations []string FromSchedule string OrderedResources string // contains filtered or unexported fields }
func NewCreateOptions ¶
func NewCreateOptions() *CreateOptions
func (*CreateOptions) BindFlags ¶
func (o *CreateOptions) BindFlags(flags *pflag.FlagSet)
func (*CreateOptions) BindFromSchedule ¶
func (o *CreateOptions) BindFromSchedule(flags *pflag.FlagSet)
BindFromSchedule binds the from-schedule flag separately so it is not called by other create commands that reuse CreateOptions's BindFlags method.
func (*CreateOptions) BindWait ¶
func (o *CreateOptions) BindWait(flags *pflag.FlagSet)
BindWait binds the wait flag separately so it is not called by other create commands that reuse CreateOptions's BindFlags method.
func (*CreateOptions) BuildBackup ¶
func (o *CreateOptions) BuildBackup(namespace string) (*velerov1api.Backup, error)
type DownloadOptions ¶
type DownloadOptions struct { Name string Output string Force bool Timeout time.Duration InsecureSkipTLSVerify bool // contains filtered or unexported fields }
func NewDownloadOptions ¶
func NewDownloadOptions() *DownloadOptions
func (*DownloadOptions) BindFlags ¶
func (o *DownloadOptions) BindFlags(flags *pflag.FlagSet)
func (*DownloadOptions) Complete ¶
func (o *DownloadOptions) Complete(args []string) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.