dataprotection

package
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: AGPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

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 NewDataProtectionCmd(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command

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

Jump to

Keyboard shortcuts

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