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 NewPVStorage ¶
func NewPVStorage(kubecli kubernetes.Interface, cn, ns, pvp string, backupPolicy spec.BackupPolicy) (Storage, error)
func NewS3Storage ¶
func NewS3Storage(s3Ctx s3config.S3Context, kubecli kubernetes.Interface, clusterName, ns string, p spec.BackupPolicy) (Storage, error)
Click to show internal directories.
Click to hide internal directories.