genericactuator

package
v0.0.0-...-2faeebd Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2019 License: Apache-2.0, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EtcdBackupSecretName is the name of secret having credentials for etcd backups.
	EtcdBackupSecretName string = "etcd-backup"
)

Variables

This section is empty.

Functions

func NewActuator

func NewActuator(backupEntryDelegate BackupEntryDelegate, logger logr.Logger) backupentry.Actuator

NewActuator creates a new Actuator that updates the status of the handled BackupEntry resources.

Types

type BackupEntryDelegate

type BackupEntryDelegate interface {
	// Delete deletes the BackupBucket.
	Delete(context.Context, *extensionsv1alpha1.BackupEntry) error
	// GetETCDSecretData returns the updated secret data as per provider requirement.
	GetETCDSecretData(context.Context, *extensionsv1alpha1.BackupEntry, map[string][]byte) (map[string][]byte, error)
}

BackupEntryDelegate preforms provider specific operation with BackupBucket resources.

Jump to

Keyboard shortcuts

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