Versions in this module Expand all Collapse all v0 v0.3.0 Aug 2, 2017 Changes in this version + type BackupGetter interface + GetAllBackups func(bucket string) ([]*api.Backup, error) + func NewBackupCache(ctx context.Context, delegate BackupGetter, resyncPeriod time.Duration) BackupGetter + type BackupService interface + DeleteBackup func(bucket, backupName string) error + DownloadBackup func(bucket, name string) (io.ReadCloser, error) + UploadBackup func(bucket, name string, metadata, backup io.ReadSeeker) error + func NewBackupService(objectStorage ObjectStorageAdapter) BackupService + func NewBackupServiceWithCachedBackupGetter(ctx context.Context, delegate BackupService, resyncPeriod time.Duration) BackupService + type BlockStorageAdapter interface + CreateSnapshot func(volumeID string, tags map[string]string) (snapshotID string, err error) + CreateVolumeFromSnapshot func(snapshotID, volumeType string, iops *int) (volumeID string, err error) + DeleteSnapshot func(snapshotID string) error + GetVolumeInfo func(volumeID string) (string, *int, error) + IsVolumeReady func(volumeID string) (ready bool, err error) + ListSnapshots func(tagFilters map[string]string) ([]string, error) + type ObjectStorageAdapter interface + DeleteObject func(bucket string, key string) error + GetObject func(bucket string, key string) (io.ReadCloser, error) + ListCommonPrefixes func(bucket string, delimiter string) ([]string, error) + PutObject func(bucket string, key string, body io.ReadSeeker) error + type SnapshotService interface + CreateSnapshot func(volumeID string) (string, error) + CreateVolumeFromSnapshot func(snapshotID, volumeType string, iops *int) (string, error) + DeleteSnapshot func(snapshotID string) error + GetAllSnapshots func() ([]string, error) + GetVolumeInfo func(volumeID string) (string, *int, error) + func NewSnapshotService(blockStorage BlockStorageAdapter) SnapshotService + type StorageAdapter interface + BlockStorage func() BlockStorageAdapter + ObjectStorage func() ObjectStorageAdapter