Documentation ¶
Index ¶
- func NewCommand(f client.Factory) *cobra.Command
- type InstallOptions
- func (o *InstallOptions) AsVeleroOptions() (*install.VeleroOptions, error)
- func (o *InstallOptions) BindFlags(flags *pflag.FlagSet)
- func (o *InstallOptions) Complete(args []string, f client.Factory) error
- func (o *InstallOptions) Run(c *cobra.Command) error
- func (o *InstallOptions) Validate(c *cobra.Command, args []string, f client.Factory) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InstallOptions ¶
type InstallOptions struct { Namespace string Image string BucketName string Prefix string ProviderName string RestoreOnly bool SecretFile string DryRun bool BackupStorageConfig flag.Map VolumeSnapshotConfig flag.Map UseRestic bool Wait bool }
InstallOptions collects all the options for installing Velero into a Kubernetes cluster.
func NewInstallOptions ¶
func NewInstallOptions() *InstallOptions
NewInstallOptions instantiates a new, default InstallOptions stuct.
func (*InstallOptions) AsVeleroOptions ¶
func (o *InstallOptions) AsVeleroOptions() (*install.VeleroOptions, error)
AsVeleroOptions translates the values provided at the command line into values used to instantiate Kubernetes resources
func (*InstallOptions) BindFlags ¶
func (o *InstallOptions) BindFlags(flags *pflag.FlagSet)
BindFlags adds command line values to the options struct.
func (*InstallOptions) Complete ¶
func (o *InstallOptions) Complete(args []string, f client.Factory) error
Complete completes options for a command.
Click to show internal directories.
Click to hide internal directories.