copybackupstask

package
v1.99.3 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultInterval is the default interval for retry operations.
	DefaultInterval = 5 * time.Second
	// DefaultSevereThreshold is the default threshold until an error reported by another component is treated as 'severe'.
	DefaultSevereThreshold = 3 * time.Minute
	// DefaultTimeout is the default timeout and defines how long Gardener should wait
	// for a successful reconciliation of an EtcdCopyBackupsTasks resource.
	DefaultTimeout = 5 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	component.DeployWaiter
	// SetSourceStore sets the specifications for the object store provider from which backups will be copied.
	SetSourceStore(druidv1alpha1.StoreSpec)
	// SetTargetStore sets the specifications for the object store provider to which backups will be copied.
	SetTargetStore(druidv1alpha1.StoreSpec)
}

Interface contains functions to manage EtcdCopyBackupsTasks.

func New

func New(
	log logr.Logger,
	client client.Client,
	values *Values,
	waitInterval time.Duration,
	waitSevereThreshold time.Duration,
	waitTimeout time.Duration,
) Interface

New creates a new instance of Interface

type Values

type Values struct {
	// Name is the name of the EtcdCopyBackupsTask.
	Name string
	// Namespace is the namespace of the EtcdCopyBackupsTask.
	Namespace string
	// SourceStore is the specification of the objct store from which etcd backups will be copied.
	SourceStore druidv1alpha1.StoreSpec
	// TargetStore is the specification of the objcet store to which etcd backups will be copied.
	TargetStore druidv1alpha1.StoreSpec
	// MaxBackups is the maximum number of backups that will be copied starting with the most recent ones.
	MaxBackups *uint32
	// MaxBackupAge is the maximum age in days that a backup must have in order to be copied.
	MaxBackupAge *uint32
	// WaitForFinalSnapshot defines the parameters for waiting for a final full snapshot before copying backups.
	WaitForFinalSnapshot *druidv1alpha1.WaitForFinalSnapshotSpec
}

Values contains the values used to create an EtcdCopyBackupsTask resources.

Directories

Path Synopsis
Package etcdcopybackupstask is a generated GoMock package.
Package etcdcopybackupstask is a generated GoMock package.

Jump to

Keyboard shortcuts

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