azure

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResticEnvVars added in v0.10.0

func GetResticEnvVars(config map[string]string) (map[string]string, error)

GetResticEnvVars gets the environment variables that restic relies on (AZURE_ACCOUNT_NAME and AZURE_ACCOUNT_KEY) based on info in the provided object storage location config map.

Types

type ObjectStore added in v1.0.0

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

func NewObjectStore added in v0.6.0

func NewObjectStore(logger logrus.FieldLogger) *ObjectStore

func (*ObjectStore) CreateSignedURL added in v1.0.0

func (o *ObjectStore) CreateSignedURL(bucket, key string, ttl time.Duration) (string, error)

func (*ObjectStore) DeleteObject added in v1.0.0

func (o *ObjectStore) DeleteObject(bucket string, key string) error

func (*ObjectStore) GetObject added in v1.0.0

func (o *ObjectStore) GetObject(bucket, key string) (io.ReadCloser, error)

func (*ObjectStore) Init added in v1.0.0

func (o *ObjectStore) Init(config map[string]string) error

func (*ObjectStore) ListCommonPrefixes added in v1.0.0

func (o *ObjectStore) ListCommonPrefixes(bucket, prefix, delimiter string) ([]string, error)

func (*ObjectStore) ListObjects added in v1.0.0

func (o *ObjectStore) ListObjects(bucket, prefix string) ([]string, error)

func (*ObjectStore) ObjectExists added in v1.0.0

func (o *ObjectStore) ObjectExists(bucket, key string) (bool, error)

func (*ObjectStore) PutObject added in v1.0.0

func (o *ObjectStore) PutObject(bucket, key string, body io.Reader) error

type VolumeSnapshotter added in v1.0.0

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

func NewVolumeSnapshotter added in v1.0.0

func NewVolumeSnapshotter(logger logrus.FieldLogger) *VolumeSnapshotter

func (*VolumeSnapshotter) CreateSnapshot added in v1.0.0

func (b *VolumeSnapshotter) CreateSnapshot(volumeID, volumeAZ string, tags map[string]string) (string, error)

func (*VolumeSnapshotter) CreateVolumeFromSnapshot added in v1.0.0

func (b *VolumeSnapshotter) CreateVolumeFromSnapshot(snapshotID, volumeType, volumeAZ string, iops *int64) (string, error)

func (*VolumeSnapshotter) DeleteSnapshot added in v1.0.0

func (b *VolumeSnapshotter) DeleteSnapshot(snapshotID string) error

func (*VolumeSnapshotter) GetVolumeID added in v1.0.0

func (b *VolumeSnapshotter) GetVolumeID(unstructuredPV runtime.Unstructured) (string, error)

func (*VolumeSnapshotter) GetVolumeInfo added in v1.0.0

func (b *VolumeSnapshotter) GetVolumeInfo(volumeID, volumeAZ string) (string, *int64, error)

func (*VolumeSnapshotter) Init added in v1.0.0

func (b *VolumeSnapshotter) Init(config map[string]string) error

func (*VolumeSnapshotter) SetVolumeID added in v1.0.0

func (b *VolumeSnapshotter) SetVolumeID(unstructuredPV runtime.Unstructured, volumeID string) (runtime.Unstructured, error)

Jump to

Keyboard shortcuts

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