backup

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler added in v0.1.0

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

Reconciler has logic to create and reconcile github.com/vmware-tanzu/velero/pkg/apis/velero/v1.Backup objects.

func NewReconciler added in v0.1.0

func NewReconciler(cl client.Client, scheme *runtime.Scheme, systemNamespace string) *Reconciler

NewReconciler creates instance of the Reconciler.

func (*Reconciler) ReconcileBackup added in v0.1.0

func (r *Reconciler) ReconcileBackup(ctx context.Context, mgmtBackup *kcmv1alpha1.ManagementBackup) (ctrl.Result, error)

type Runner added in v0.1.0

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

Runner is a periodic runner which enqueues github.com/K0rdent/kcm/api/v1alpha1.ManagementBackup for reconciliation on a schedule.

func NewRunner added in v0.1.0

func NewRunner(opts ...RunnerOpt) *Runner

NewRunner creates a new periodic Runner and configures it using the provided RunnerOpt.

func (*Runner) GetEventChannel added in v0.1.0

func (r *Runner) GetEventChannel() <-chan event.GenericEvent

GetEventChannel returns the channel sigs.k8s.io/controller-runtime/pkg/event.GenericEvent typed.

func (*Runner) Start added in v0.1.0

func (r *Runner) Start(ctx context.Context) error

Start implements the sigs.k8s.io/controller-runtime/pkg/manager.Runnable interface.

type RunnerOpt added in v0.1.0

type RunnerOpt func(c *Runner)

RunnerOpt is a function which configures the Runner.

func WithClient added in v0.1.0

func WithClient(cl client.Client) RunnerOpt

WithClient configures the Runner with the given client.

func WithInterval added in v0.1.0

func WithInterval(interval time.Duration) RunnerOpt

WithInterval configures the Runner with the given interval.

Jump to

Keyboard shortcuts

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