medusa

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBackups added in v1.9.0

func GetBackups(ctx context.Context, pod *corev1.Pod, clientFactory medusa.ClientFactory) ([]*medusa.BackupSummary, error)

Types

type Clock added in v1.2.0

type Clock interface {
	Now() time.Time
}

type MedusaBackupJobReconciler added in v1.1.0

type MedusaBackupJobReconciler struct {
	*config.ReconcilerConfig
	client.Client
	Scheme *runtime.Scheme
	medusa.ClientFactory
}

MedusaBackupJobReconciler reconciles a MedusaBackupJob object

func (*MedusaBackupJobReconciler) Reconcile added in v1.1.0

func (*MedusaBackupJobReconciler) SetupWithManager added in v1.1.0

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

SetupWithManager sets up the controller with the Manager.

type MedusaBackupScheduleReconciler added in v1.2.0

type MedusaBackupScheduleReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Clock  Clock
}

MedusaBackupScheduleReconciler reconciles a MedusaBackupSchedule object

func (*MedusaBackupScheduleReconciler) Reconcile added in v1.2.0

func (*MedusaBackupScheduleReconciler) SetupWithManager added in v1.2.0

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

SetupWithManager sets up the controller with the Manager.

type MedusaConfigurationReconciler added in v1.12.0

type MedusaConfigurationReconciler struct {
	*config.ReconcilerConfig
	client.Client
	Scheme *runtime.Scheme
}

MedusaConfigurationReconciler reconciles a MedusaConfiguration object

func (*MedusaConfigurationReconciler) GetSecret added in v1.15.0

func (r *MedusaConfigurationReconciler) GetSecret(ctx context.Context, client client.Client, req ctrl.Request, secretName string) (*corev1.Secret, error)

func (*MedusaConfigurationReconciler) Reconcile added in v1.12.0

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the MedusaConfiguration object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile

func (*MedusaConfigurationReconciler) SetupWithManager added in v1.12.0

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

SetupWithManager sets up the controller with the Manager.

type MedusaRestoreJobReconciler added in v1.1.0

type MedusaRestoreJobReconciler struct {
	*config.ReconcilerConfig
	client.Client
	Scheme *runtime.Scheme
	medusa.ClientFactory
}

MedusaRestoreJobReconciler reconciles a MedusaRestoreJob object

func (*MedusaRestoreJobReconciler) Reconcile added in v1.1.0

func (*MedusaRestoreJobReconciler) SetupWithManager added in v1.1.0

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

SetupWithManager sets up the controller with the Manager.

type MedusaTaskReconciler added in v1.1.0

type MedusaTaskReconciler struct {
	*config.ReconcilerConfig
	client.Client
	Scheme *runtime.Scheme
	medusa.ClientFactory
}

MedusaTaskReconciler reconciles a MedusaTask object

func (*MedusaTaskReconciler) Reconcile added in v1.1.0

func (r *MedusaTaskReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*MedusaTaskReconciler) SetupWithManager added in v1.1.0

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

SetupWithManager sets up the controller with the Manager.

type RealClock added in v1.2.0

type RealClock struct{}

func (*RealClock) Now added in v1.2.0

func (r *RealClock) Now() time.Time

Jump to

Keyboard shortcuts

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