Documentation
¶
Index ¶
- type Storage
- func NewABSStorage(kubecli kubernetes.Interface, clusterName, ns string, p api.BackupPolicy) (Storage, error)
- func NewPVStorage(kubecli kubernetes.Interface, cn, ns, sc string, backupPolicy api.BackupPolicy) (Storage, error)
- func NewS3Storage(kubecli kubernetes.Interface, clusterName, ns string, p api.BackupPolicy) (Storage, error)
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 api.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 api.BackupPolicy) (Storage, error)
func NewS3Storage ¶
func NewS3Storage(kubecli kubernetes.Interface, clusterName, ns string, p api.BackupPolicy) (Storage, error)
Click to show internal directories.
Click to hide internal directories.