abs

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ABS

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

ABS is a helper to wrap complex ABS logic

func New

func New(container, accountName, accountKey, prefix string) (*ABS, error)

New returns a new ABS object for a given container using credentials set in the environment

func NewFromClient

func NewFromClient(container, prefix string, storageClient *storage.Client) (*ABS, error)

NewFromClient returns a new ABS object for a given container using the supplied storageClient

func (*ABS) CopyPrefix

func (w *ABS) CopyPrefix(from string) error

CopyPrefix copies all blobs with given prefix

func (*ABS) Delete

func (w *ABS) Delete(key string) error

Delete deletes the blob object specified by key from a ABS container

func (*ABS) Get

func (w *ABS) Get(key string) (io.ReadCloser, error)

Get gets the blob object specified by key from a ABS container

func (*ABS) List

func (w *ABS) List() ([]string, error)

List lists all blobs in a given ABS container

func (*ABS) Put

func (w *ABS) Put(key string, r io.Reader) error

Put puts a chunk of data into a ABS container using the provided key for its reference

func (*ABS) TotalSize

func (w *ABS) TotalSize() (int64, error)

TotalSize returns the total size of all blobs in a ABS container

Jump to

Keyboard shortcuts

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