Documentation ¶
Index ¶
- Constants
- type ContentSetting
- type StorageAttributes
- func (a *StorageAttributes) CreateContainer(container string) error
- func (a *StorageAttributes) DeleteBlob(container string, name string) error
- func (a *StorageAttributes) DeleteContainer(container string) error
- func (a *StorageAttributes) ListContainer(prefix string) ([]string, error)
- func (a *StorageAttributes) LoadBlob(w io.Writer, container string, name string) error
- func (a *StorageAttributes) SaveBlob(reader io.Reader, container string, name string, big bool, ...) error
- func (a *StorageAttributes) ShowContainer(container string, prefix string) ([]string, error)
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 ¶
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
Click to show internal directories.
Click to hide internal directories.