azure

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2019 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxBlobSize at this time
	MaxBlobSize = 1024 * 1024 * 4
	// MaxListResults is the current default value, setting explicitly
	MaxListResults = 5000
)

Variables

This section is empty.

Functions

func NewAzureBackend

func NewAzureBackend(conf map[string]string, logger log.Logger) (physical.Backend, error)

NewAzureBackend constructs an Azure backend using a pre-existing bucket. Credentials can be provided to the backend, sourced from the environment, AWS credential files or by IAM role.

Types

type AzureBackend

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

AzureBackend is a physical backend that stores data within an Azure blob container.

func (*AzureBackend) Delete

func (a *AzureBackend) Delete(ctx context.Context, key string) error

Delete is used to permanently delete an entry

func (*AzureBackend) Get

func (a *AzureBackend) Get(ctx context.Context, key string) (*physical.Entry, error)

Get is used to fetch an entry

func (*AzureBackend) List

func (a *AzureBackend) List(ctx context.Context, prefix string) ([]string, error)

List is used to list all the keys under a given prefix, up to the next prefix.

func (*AzureBackend) Put

func (a *AzureBackend) Put(ctx context.Context, entry *physical.Entry) error

Put is used to insert or update an entry

Jump to

Keyboard shortcuts

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