nebularestore

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	S3AccessKey = "access-key"
	S3SecretKey = "secret-key"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlInterface

type ControlInterface interface {
	UpdateNebulaRestore(rt *v1alpha1.NebulaRestore) error
}

func NewRestoreControl

func NewRestoreControl(clientSet kube.ClientSet, restoreManager Manager) ControlInterface

type Manager

type Manager interface {
	// Sync	implements the logic for syncing NebulaRestore.
	Sync(restore *v1alpha1.NebulaRestore) error

	// UpdateCondition updates the condition for a NebulaRestore.
	UpdateCondition(restore *v1alpha1.NebulaRestore, condition *v1alpha1.RestoreCondition) error
}

func NewRestoreManager

func NewRestoreManager(clientSet kube.ClientSet) Manager

type Reconciler

type Reconciler struct {
	Control ControlInterface
	client.Client
	Log logr.Logger
}

Reconciler reconciles a NebulaRestore object

func NewRestoreReconciler

func NewRestoreReconciler(mgr ctrl.Manager) (*Reconciler, error)

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (res reconcile.Result, retErr error)

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager, opts controller.Options) error

SetupWithManager sets up the controller with the Manager.

type Restore

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

Jump to

Keyboard shortcuts

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