azureblobstorage

package
v0.0.0-...-ae6cc27 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2018 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_BLOCK_SIZE = 1024 * 1024 * 4 // 4MB

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureBlobStorage

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

func NewAzureBlobStorage

func NewAzureBlobStorage(accountName string, accountKey string, containerName string, prefix string) (*AzureBlobStorage, error)

func (*AzureBlobStorage) Delete

func (azureBlob *AzureBlobStorage) Delete(path string) error

func (*AzureBlobStorage) Get

func (azureBlob *AzureBlobStorage) Get(path string) (io.ReadCloser, error)

func (*AzureBlobStorage) List

func (azureBlob *AzureBlobStorage) List(prefix string, maxSize int) ([]string, error)

func (*AzureBlobStorage) Lock

func (azureBlob *AzureBlobStorage) Lock(path string) error

Lock is not implemented

func (*AzureBlobStorage) Put

func (azureBlob *AzureBlobStorage) Put(path string, data []byte) error

func (*AzureBlobStorage) PutReader

func (azureBlob *AzureBlobStorage) PutReader(path string, reader io.Reader) error

func (*AzureBlobStorage) Unlock

func (azureBlob *AzureBlobStorage) Unlock(path string) error

Unlock is not implemented

type AzureMock

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

func NewMockAzure

func NewMockAzure(t *testing.T) *AzureMock

func (*AzureMock) Start

func (azureMock *AzureMock) Start(t *testing.T)

func (*AzureMock) Stop

func (azureMock *AzureMock) Stop()

Jump to

Keyboard shortcuts

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