backup

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(cl client.Client, kc *rest.Config, opts ...ConfigOpt) *Config

func (*Config) GetBackupType

func (c *Config) GetBackupType(ctx context.Context, instance *kcmv1.Backup, reqName string) (Typ, error)

func (*Config) ReconcileBackup

func (*Config) ReconcileBackup(ctx context.Context, backup *kcmv1.Backup) error

func (*Config) ReconcileScheduledBackup

func (*Config) ReconcileScheduledBackup(ctx context.Context, schedule *kcmv1.Backup) error

func (*Config) ReconcileVeleroInstallation

func (c *Config) ReconcileVeleroInstallation(ctx context.Context) (ctrl.Result, error)

ReconcileVeleroInstallation reconciles installation of velero stack within a management cluster.

type ConfigOpt

type ConfigOpt func(*Config)

func WithFeatures

func WithFeatures(features ...string) ConfigOpt

func WithRequeueAfter

func WithRequeueAfter(d time.Duration) ConfigOpt

func WithVeleroImage

func WithVeleroImage(image string) ConfigOpt

func WithVeleroSystemNamespace

func WithVeleroSystemNamespace(ns string) ConfigOpt

type Typ

type Typ uint
const (
	TypeNone Typ = iota
	TypeSchedule
	TypeBackup
)

Jump to

Keyboard shortcuts

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