storage

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrDockerAPI

type ErrDockerAPI string

func (ErrDockerAPI) Error

func (eap ErrDockerAPI) Error() string

type VolumeStorage

type VolumeStorage struct {
	// contains filtered or unexported fields
}

func Default

func Default(provider backup.Backup, cli *client.Client, encryption cryptor.Cryptor) *VolumeStorage

func New

func New(provider backup.Backup, cli *client.Client, encryption cryptor.Cryptor, tempDir string, driver string, interval time.Duration) *VolumeStorage

func (*VolumeStorage) Backup

func (sw *VolumeStorage) Backup(ctx context.Context, name string, volumeNames []string) error

func (*VolumeStorage) Restore

func (sw *VolumeStorage) Restore(ctx context.Context, name string, volumeNames []string) error

func (*VolumeStorage) Schedule

func (sw *VolumeStorage) Schedule(ctx context.Context, name string, volumeNames []string) *internal.Task

Jump to

Keyboard shortcuts

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