Documentation
¶
Index ¶
- func NewCreateBackupCommand() *cobra.Command
- func NewCreateRestoreCommand() *cobra.Command
- func NewCreateScheduleCommand() *cobra.Command
- type CreateOptions
- func (o *CreateOptions) GenerateBackupObjectWithPlatform(platform string) (*unstructured.Unstructured, string, error)
- func (o *CreateOptions) GenerateRestoreObject() (*unstructured.Unstructured, string, error)
- func (o *CreateOptions) GenerateScheduleObject(platform string) (*unstructured.Unstructured, string, error)
- func (o *CreateOptions) RunBackup(ctx context.Context) error
- func (o *CreateOptions) RunRestore(ctx context.Context) error
- func (o *CreateOptions) RunSchedule(ctx context.Context) error
- func (o *CreateOptions) ValidateBackupName() error
- func (o *CreateOptions) ValidateRestoreName() error
- func (o *CreateOptions) ValidateScheduleName() error
- func (o *CreateOptions) ValidateSchedulePace() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreateBackupCommand ¶
func NewCreateRestoreCommand ¶
Types ¶
type CreateOptions ¶
type CreateOptions struct {
// Required flags (common)
HCName string
HCNamespace string
// Restore-specific required flags
BackupName string
ScheduleName string
// Schedule-specific required flags
Schedule string
// Optional flags with defaults (common)
OADPNamespace string
Render bool
// Backup-specific optional flags
BackupCustomName string
StorageLocation string
TTL time.Duration
SnapshotMoveData bool
DefaultVolumesToFsBackup bool
IncludedResources []string
// Restore-specific optional flags
RestoreName string
ExistingResourcePolicy string
IncludeNamespaces []string
RestorePVs *bool
PreserveNodePorts *bool
// Schedule-specific optional flags
Paused bool
UseOwnerReferences bool
SkipImmediately bool
// Client context (common)
Log logr.Logger
Client client.Client
}
CreateOptions contains all configuration for both backup and restore operations
func (*CreateOptions) GenerateBackupObjectWithPlatform ¶
func (o *CreateOptions) GenerateBackupObjectWithPlatform(platform string) (*unstructured.Unstructured, string, error)
func (*CreateOptions) GenerateRestoreObject ¶
func (o *CreateOptions) GenerateRestoreObject() (*unstructured.Unstructured, string, error)
func (*CreateOptions) GenerateScheduleObject ¶
func (o *CreateOptions) GenerateScheduleObject(platform string) (*unstructured.Unstructured, string, error)
func (*CreateOptions) RunRestore ¶
func (o *CreateOptions) RunRestore(ctx context.Context) error
func (*CreateOptions) RunSchedule ¶
func (o *CreateOptions) RunSchedule(ctx context.Context) error
func (*CreateOptions) ValidateBackupName ¶
func (o *CreateOptions) ValidateBackupName() error
ValidateBackupName validates the custom backup name if provided
func (*CreateOptions) ValidateRestoreName ¶
func (o *CreateOptions) ValidateRestoreName() error
ValidateRestoreName validates the custom restore name if provided
func (*CreateOptions) ValidateScheduleName ¶
func (o *CreateOptions) ValidateScheduleName() error
ValidateScheduleName validates the custom schedule name if provided
func (*CreateOptions) ValidateSchedulePace ¶
func (o *CreateOptions) ValidateSchedulePace() error
Click to show internal directories.
Click to hide internal directories.