storage

package
v0.0.0-...-a94b34c Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxBlobBockCount = 50000
	MaxBlobBlockSize = as.MaxBlobBlockSize
)

MaxBlobBlockSize

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentSetting

type ContentSetting as.BlobHeaders

type StorageAttributes

type StorageAttributes struct {
	Key     string
	Account string

	WorkerCount int
	Verbose     bool
	Logger      *log.Logger
	// contains filtered or unexported fields
}

func NewStorageClient

func NewStorageClient(key string, account string, worker int) (StorageAttributes, error)

func (*StorageAttributes) CreateContainer

func (a *StorageAttributes) CreateContainer(container string) error

CreateContainer creates Container

func (*StorageAttributes) DeleteBlob

func (a *StorageAttributes) DeleteBlob(container string, name string) error

DeleteBlob deletes the given blob

func (*StorageAttributes) DeleteContainer

func (a *StorageAttributes) DeleteContainer(container string) error

DeleteContainer deletes the given container

func (*StorageAttributes) ListContainer

func (a *StorageAttributes) ListContainer(prefix string) ([]string, error)

ListContainer shows all container in storage account

func (*StorageAttributes) LoadBlob

func (a *StorageAttributes) LoadBlob(w io.Writer, container string, name string) error

LoadBlob downloads the blob. It desides wether this is a bundle with spilt files or not.

func (*StorageAttributes) SaveBlob

func (a *StorageAttributes) SaveBlob(reader io.Reader, container string, name string, big bool, contentSetting ContentSetting) error

func (*StorageAttributes) ShowContainer

func (a *StorageAttributes) ShowContainer(container string, prefix string) ([]string, error)

ShowContainer shows all blobs in Container

Jump to

Keyboard shortcuts

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