backupstorage

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage interface {
	// Create creates the actual persistent storage.
	// We need this method because this has side effect, e.g. creating PVC.
	// We might not create the persistent storage again when we know it already exists.
	Create() error
	// Clone will try to clone another storage referenced by cluster name.
	// It takes place on restore path.
	Clone(from string) error
	// Delete will delete this storage.
	Delete() error
}

Storage defines the underlying storage used by backup sidecar.

func NewABSStorage added in v0.5.2

func NewABSStorage(kubecli kubernetes.Interface, clusterName, ns string, p spec.BackupPolicy) (Storage, error)

NewABSStorage returns a new ABS Storage implementation using the given kubecli, cluster name, namespace and backup policy

func NewPVStorage

func NewPVStorage(kubecli kubernetes.Interface, cn, ns, sc string, backupPolicy spec.BackupPolicy) (Storage, error)

func NewS3Storage

func NewS3Storage(s3Ctx s3config.S3Context, kubecli kubernetes.Interface, clusterName, ns string, p spec.BackupPolicy) (Storage, error)

Jump to

Keyboard shortcuts

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