Documentation ¶
Index ¶
- Constants
- func DescribeBackupPolicies(o *DescribeDPOptions, bpNames []string) error
- func DescribeBackups(o *DescribeDPOptions, backupNames []string) error
- func DescribeRestores(o *DescribeDPOptions, restoreNames []string) error
- func NewDataProtectionCmd(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command
- func PrintBackupList(o *action.ListOptions) error
- func PrintBackupObjDescribe(o *DescribeDPOptions, obj *dpv1alpha1.Backup) error
- func PrintBackupPolicyDescribe(o *DescribeDPOptions, obj *dpv1alpha1.BackupPolicy)
- func PrintBackupPolicyList(o *action.ListOptions) error
- func PrintRestoreDescribe(o *DescribeDPOptions, obj *dpv1alpha1.Restore) error
- func PrintRestoreList(o *action.ListOptions) error
- type CreateBackupOptions
- type CreateRestoreOptions
- type DescribeDPOptions
- type EditBackupPolicyOptions
Constants ¶
View Source
const ( TrueValue = "true" DPEnvRestoreKeyPatterns = "DP_RESTORE_KEY_PATTERNS" DPEnvRestoreKeyIgnoreErrors = "DP_RESTORE_KEY_IGNORE_ERRORS" )
Variables ¶
This section is empty.
Functions ¶
func DescribeBackupPolicies ¶
func DescribeBackupPolicies(o *DescribeDPOptions, bpNames []string) error
func DescribeBackups ¶
func DescribeBackups(o *DescribeDPOptions, backupNames []string) error
func DescribeRestores ¶
func DescribeRestores(o *DescribeDPOptions, restoreNames []string) error
func NewDataProtectionCmd ¶
func PrintBackupList ¶
func PrintBackupList(o *action.ListOptions) error
func PrintBackupObjDescribe ¶
func PrintBackupObjDescribe(o *DescribeDPOptions, obj *dpv1alpha1.Backup) error
func PrintBackupPolicyDescribe ¶
func PrintBackupPolicyDescribe(o *DescribeDPOptions, obj *dpv1alpha1.BackupPolicy)
func PrintBackupPolicyList ¶
func PrintBackupPolicyList(o *action.ListOptions) error
PrintBackupPolicyList prints the backup policy list.
func PrintRestoreDescribe ¶
func PrintRestoreDescribe(o *DescribeDPOptions, obj *dpv1alpha1.Restore) error
func PrintRestoreList ¶
func PrintRestoreList(o *action.ListOptions) error
Types ¶
type CreateBackupOptions ¶
type CreateBackupOptions struct { BackupSpec opsv1alpha1.Backup `json:"backupSpec"` ClusterName string `json:"clusterName"` OpsType string `json:"opsType"` OpsRequestName string `json:"opsRequestName"` Force bool `json:"force"` action.CreateOptions `json:"-"` }
func (*CreateBackupOptions) CompleteBackup ¶
func (o *CreateBackupOptions) CompleteBackup() error
func (*CreateBackupOptions) RegisterBackupFlagCompletionFunc ¶
func (o *CreateBackupOptions) RegisterBackupFlagCompletionFunc(cmd *cobra.Command, f cmdutil.Factory)
func (*CreateBackupOptions) Validate ¶
func (o *CreateBackupOptions) Validate() error
type CreateRestoreOptions ¶
type CreateRestoreOptions struct { RestoreSpec opsv1alpha1.Restore `json:"restoreSpec"` ClusterName string `json:"clusterName"` OpsType string `json:"opsType"` OpsRequestName string `json:"opsRequestName"` Force bool `json:"force"` action.CreateOptions `json:"-"` }
func (*CreateRestoreOptions) Validate ¶
func (o *CreateRestoreOptions) Validate() error
type DescribeDPOptions ¶
type DescribeDPOptions struct { Factory cmdutil.Factory Client clientset.Interface Dynamic dynamic.Interface Namespace string Names []string // resource type and names Gvr schema.GroupVersionResource genericiooptions.IOStreams }
func (*DescribeDPOptions) Complete ¶
func (o *DescribeDPOptions) Complete() error
func (*DescribeDPOptions) GetObjListByArgs ¶
func (o *DescribeDPOptions) GetObjListByArgs(args []string) (*unstructured.UnstructuredList, error)
func (*DescribeDPOptions) Validate ¶
func (o *DescribeDPOptions) Validate(args []string) error
func (*DescribeDPOptions) ValidateForClusterCmd ¶
func (o *DescribeDPOptions) ValidateForClusterCmd(args []string) error
type EditBackupPolicyOptions ¶
type EditBackupPolicyOptions struct { Namespace string Name string Dynamic dynamic.Interface Client clientset.Interface Factory cmdutil.Factory GVR schema.GroupVersionResource genericiooptions.IOStreams }
func (*EditBackupPolicyOptions) Complete ¶
func (o *EditBackupPolicyOptions) Complete(args []string) error
func (*EditBackupPolicyOptions) RunEditBackupPolicy ¶
func (o *EditBackupPolicyOptions) RunEditBackupPolicy() error
Click to show internal directories.
Click to hide internal directories.