v1

package
v0.0.0-kuberlr.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterBackupGeneratingHandler

func RegisterBackupGeneratingHandler(ctx context.Context, controller BackupController, apply apply.Apply,
	condition condition.Cond, name string, handler BackupGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterBackupGeneratingHandler configures a BackupController to execute a BackupGeneratingHandler for every events observed, passing the returned objects to the provided apply.Apply. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution

func RegisterBackupStatusHandler

func RegisterBackupStatusHandler(ctx context.Context, controller BackupController, condition condition.Cond, name string, handler BackupStatusHandler)

RegisterBackupStatusHandler configures a BackupController to execute a BackupStatusHandler for every events observed. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution

func RegisterRestoreGeneratingHandler

func RegisterRestoreGeneratingHandler(ctx context.Context, controller RestoreController, apply apply.Apply,
	condition condition.Cond, name string, handler RestoreGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterRestoreGeneratingHandler configures a RestoreController to execute a RestoreGeneratingHandler for every events observed, passing the returned objects to the provided apply.Apply. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution

func RegisterRestoreStatusHandler

func RegisterRestoreStatusHandler(ctx context.Context, controller RestoreController, condition condition.Cond, name string, handler RestoreStatusHandler)

RegisterRestoreStatusHandler configures a RestoreController to execute a RestoreStatusHandler for every events observed. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution

Types

type BackupCache

type BackupCache interface {
	generic.NonNamespacedCacheInterface[*v1.Backup]
}

BackupCache interface for retrieving Backup resources in memory.

type BackupClient

type BackupClient interface {
	generic.NonNamespacedClientInterface[*v1.Backup, *v1.BackupList]
}

BackupClient interface for managing Backup resources in Kubernetes.

type BackupController

type BackupController interface {
	generic.NonNamespacedControllerInterface[*v1.Backup, *v1.BackupList]
}

BackupController interface for managing Backup resources.

type BackupGeneratingHandler

type BackupGeneratingHandler func(obj *v1.Backup, status v1.BackupStatus) ([]runtime.Object, v1.BackupStatus, error)

BackupGeneratingHandler is the top-level handler that is executed for every Backup event. It extends BackupStatusHandler by a returning a slice of child objects to be passed to apply.Apply

type BackupStatusHandler

type BackupStatusHandler func(obj *v1.Backup, status v1.BackupStatus) (v1.BackupStatus, error)

BackupStatusHandler is executed for every added or modified Backup. Should return the new status to be updated

type Interface

type Interface interface {
	Backup() BackupController
	ResourceSet() ResourceSetController
	Restore() RestoreController
}

func New

func New(controllerFactory controller.SharedControllerFactory) Interface

type ResourceSetCache

type ResourceSetCache interface {
	generic.NonNamespacedCacheInterface[*v1.ResourceSet]
}

ResourceSetCache interface for retrieving ResourceSet resources in memory.

type ResourceSetClient

type ResourceSetClient interface {
	generic.NonNamespacedClientInterface[*v1.ResourceSet, *v1.ResourceSetList]
}

ResourceSetClient interface for managing ResourceSet resources in Kubernetes.

type ResourceSetController

type ResourceSetController interface {
	generic.NonNamespacedControllerInterface[*v1.ResourceSet, *v1.ResourceSetList]
}

ResourceSetController interface for managing ResourceSet resources.

type RestoreCache

type RestoreCache interface {
	generic.NonNamespacedCacheInterface[*v1.Restore]
}

RestoreCache interface for retrieving Restore resources in memory.

type RestoreClient

type RestoreClient interface {
	generic.NonNamespacedClientInterface[*v1.Restore, *v1.RestoreList]
}

RestoreClient interface for managing Restore resources in Kubernetes.

type RestoreController

type RestoreController interface {
	generic.NonNamespacedControllerInterface[*v1.Restore, *v1.RestoreList]
}

RestoreController interface for managing Restore resources.

type RestoreGeneratingHandler

type RestoreGeneratingHandler func(obj *v1.Restore, status v1.RestoreStatus) ([]runtime.Object, v1.RestoreStatus, error)

RestoreGeneratingHandler is the top-level handler that is executed for every Restore event. It extends RestoreStatusHandler by a returning a slice of child objects to be passed to apply.Apply

type RestoreStatusHandler

type RestoreStatusHandler func(obj *v1.Restore, status v1.RestoreStatus) (v1.RestoreStatus, error)

RestoreStatusHandler is executed for every added or modified Restore. Should return the new status to be updated

Jump to

Keyboard shortcuts

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