storage

package
v5.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeAccountsClient

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

FakeAccountsClient is a mock of AccountsClient interface

func NewFakeAccountsClient

func NewFakeAccountsClient(rp *StorageRP) *FakeAccountsClient

NewFakeAccountsClient creates a new mock instance

func (*FakeAccountsClient) Create

func (a *FakeAccountsClient) Create(ctx context.Context, resourceGroupName string, accountName string, parameters storage.AccountCreateParameters) error

Create mocks base method

func (*FakeAccountsClient) ListByResourceGroup

func (a *FakeAccountsClient) ListByResourceGroup(context context.Context, resourceGroup string) (storage.AccountListResult, error)

ListByResourceGroup mocks base method

func (*FakeAccountsClient) ListKeys

func (a *FakeAccountsClient) ListKeys(context context.Context, resourceGroup, accountName string) (storage.AccountListKeysResult, error)

ListKeys mocks base method

type FakeBlobClient

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

func NewFakeBlobClient

func NewFakeBlobClient(rp *StorageRP) *FakeBlobClient

NewFakeBlobClient creates a new mock instance

func (*FakeBlobClient) CreateBlockBlob

func (b *FakeBlobClient) CreateBlockBlob(options *storage.PutBlobOptions) error

func (*FakeBlobClient) CreateBlockBlobFromReader

func (b *FakeBlobClient) CreateBlockBlobFromReader(blob io.Reader, options *storage.PutBlobOptions) error

func (*FakeBlobClient) Delete

func (b *FakeBlobClient) Delete(options *storage.DeleteBlobOptions) error

func (*FakeBlobClient) Exists

func (b *FakeBlobClient) Exists() (bool, error)

func (*FakeBlobClient) Get

func (*FakeBlobClient) GetSASURI

func (b *FakeBlobClient) GetSASURI(options storage.BlobSASOptions) (string, error)

func (*FakeBlobClient) PutBlock

func (b *FakeBlobClient) PutBlock(blockID string, chunk []byte, options *storage.PutBlockOptions) error

func (*FakeBlobClient) PutBlockList

func (b *FakeBlobClient) PutBlockList(blocks []storage.Block, options *storage.PutBlockListOptions) error

type FakeBlobStorageClient

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

func (*FakeBlobStorageClient) GetContainerReference

func (bs *FakeBlobStorageClient) GetContainerReference(name string) storage.Container

type FakeContainerClient

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

func (*FakeContainerClient) CreateIfNotExists

func (c *FakeContainerClient) CreateIfNotExists(options *azstorage.CreateContainerOptions) (bool, error)

func (*FakeContainerClient) Exists

func (c *FakeContainerClient) Exists() (bool, error)

func (*FakeContainerClient) GetBlobReference

func (c *FakeContainerClient) GetBlobReference(name string) storage.Blob

func (*FakeContainerClient) ListBlobs

type FakeStorageClient

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

FakeStorageClient is a mock of StorageClient interface

func NewFakeStorageClient

func NewFakeStorageClient(rp *StorageRP) *FakeStorageClient

NewFakeStorageClient creates a new mock instance

func (*FakeStorageClient) GetBlobService

func (s *FakeStorageClient) GetBlobService() storage.BlobStorageClient

type StorageRP

type StorageRP struct {
	Log   *logrus.Entry
	Accts []storage.Account
	Blobs map[string]map[string][]byte
}

Jump to

Keyboard shortcuts

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