backupentry

package
v1.70.3 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 14 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 = 30 * time.Second
	// DefaultTimeout is the default timeout and defines how long Gardener should wait
	// for a successful reconciliation of a BackupEntry resource.
	DefaultTimeout = 10 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	component.DeployMigrateWaiter
	SetType(string)
	SetProviderConfig(*runtime.RawExtension)
	SetRegion(string)
	SetBackupBucketProviderStatus(*runtime.RawExtension)
}

Interface is an interface for managing BackupEntries.

func New

func New(
	log logr.Logger,
	client client.Client,
	clock clock.Clock,
	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 BackupEntry extension.
	Name string
	// Type is the type of BackupEntry plugin/extension.
	Type string
	// ProviderConfig contains the provider config for the BackupEntry extension.
	ProviderConfig *runtime.RawExtension
	// Region is the infrastructure region of the BackupEntry.
	Region string
	// SecretRef is a reference to a secret with the infrastructure credentials.
	SecretRef corev1.SecretReference
	// BucketName is the name of the bucket in which the entry shall be created.
	BucketName string
	// BackupBucketProviderStatus is the optional provider status of the BackupBucket.
	BackupBucketProviderStatus *runtime.RawExtension
}

Values contains the values used to create a BackupEntry CRD

Directories

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

Jump to

Keyboard shortcuts

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