Help us shape the future of Go! Take the 2026 Go Developer Survey

controllers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: AGPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultRsyncContainerImage is the default container image name of the rsync data mover
	DefaultRsyncContainerImage = "quay.io/backube/scribe-mover-rsync:latest"
	// DefaultRcloneContainerImage is the default container image name of the rclone data mover
	DefaultRcloneContainerImage = "quay.io/backube/scribe-mover-rclone:latest"
	// DefaultResticContainerImage is the default container image name of the restic data mover
	DefaultResticContainerImage = "quay.io/backube/scribe-mover-restic:latest"
	// DefaultSCCName is the default name of the scribe security context constraint
	DefaultSCCName = "scribe-mover"
)

Variables

View Source
var (
	// RsyncContainerImage is the container image name of the rsync data mover
	RsyncContainerImage string
	// RcloneContainerImage is the container image name of the rclone data mover
	RcloneContainerImage string
	// ResticContainerImage is the container image name of the restic data mover
	ResticContainerImage string
	// SCCName is the name of the scribe security context constraint
	SCCName string
)

Functions

func RunRcloneDestReconciler

func RunRcloneDestReconciler(
	ctx context.Context,
	instance *scribev1alpha1.ReplicationDestination,
	dr *ReplicationDestinationReconciler,
	logger logr.Logger,
) (ctrl.Result, error)

RunRcloneDestReconciler reconciles rclone mover related objects.

func RunRcloneSrcReconciler

func RunRcloneSrcReconciler(
	ctx context.Context,
	instance *scribev1alpha1.ReplicationSource,
	sr *ReplicationSourceReconciler,
	logger logr.Logger,
) (ctrl.Result, error)

RunRcloneSrcReconciler is invoked when ReplicationSource.Spec.Rclone != nil

func RunResticDestReconciler added in v0.2.0

func RunResticDestReconciler(
	ctx context.Context,
	instance *scribev1alpha1.ReplicationDestination,
	dr *ReplicationDestinationReconciler,
	logger logr.Logger,
) (ctrl.Result, error)

RunResticDestReconciler is invokded when ReplicationDestination.Spec>Restic != nil

func RunResticSrcReconciler added in v0.2.0

func RunResticSrcReconciler(
	ctx context.Context,
	instance *scribev1alpha1.ReplicationSource,
	sr *ReplicationSourceReconciler,
	logger logr.Logger,
) (ctrl.Result, error)

RunResticSrcReconciler is invokded when ReplicationSource.Spec>Restic != nil

func RunRsyncSrcReconciler

func RunRsyncSrcReconciler(
	ctx context.Context,
	instance *scribev1alpha1.ReplicationSource,
	sr *ReplicationSourceReconciler,
	logger logr.Logger,
) (ctrl.Result, error)

Types

type ReplicationDestinationReconciler

type ReplicationDestinationReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

ReplicationDestinationReconciler reconciles a ReplicationDestination object

func (*ReplicationDestinationReconciler) Reconcile

func (*ReplicationDestinationReconciler) SetupWithManager

func (r *ReplicationDestinationReconciler) SetupWithManager(mgr ctrl.Manager) error

type ReplicationSourceReconciler

type ReplicationSourceReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

ReplicationSourceReconciler reconciles a ReplicationSource object

func (*ReplicationSourceReconciler) Reconcile

func (*ReplicationSourceReconciler) SetupWithManager

func (r *ReplicationSourceReconciler) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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