Documentation ¶
Index ¶
- type FakeAccountsClient
- func (a *FakeAccountsClient) Create(ctx context.Context, resourceGroupName string, accountName string, ...) error
- func (a *FakeAccountsClient) ListByResourceGroup(context context.Context, resourceGroup string) (storage.AccountListResult, error)
- func (a *FakeAccountsClient) ListKeys(context context.Context, resourceGroup, accountName string) (storage.AccountListKeysResult, error)
- type FakeBlobClient
- func (b *FakeBlobClient) CreateBlockBlob(options *storage.PutBlobOptions) error
- func (b *FakeBlobClient) CreateBlockBlobFromReader(blob io.Reader, options *storage.PutBlobOptions) error
- func (b *FakeBlobClient) Delete(options *storage.DeleteBlobOptions) error
- func (b *FakeBlobClient) Exists() (bool, error)
- func (b *FakeBlobClient) Get(options *storage.GetBlobOptions) (io.ReadCloser, error)
- func (b *FakeBlobClient) GetSASURI(options storage.BlobSASOptions) (string, error)
- func (b *FakeBlobClient) PutBlock(blockID string, chunk []byte, options *storage.PutBlockOptions) error
- func (b *FakeBlobClient) PutBlockList(blocks []storage.Block, options *storage.PutBlockListOptions) error
- type FakeBlobStorageClient
- type FakeContainerClient
- func (c *FakeContainerClient) CreateIfNotExists(options *azstorage.CreateContainerOptions) (bool, error)
- func (c *FakeContainerClient) Exists() (bool, error)
- func (c *FakeContainerClient) GetBlobReference(name string) storage.Blob
- func (c *FakeContainerClient) ListBlobs(params azstorage.ListBlobsParameters) (azstorage.BlobListResponse, error)
- type FakeStorageClient
- type StorageRP
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 (b *FakeBlobClient) Get(options *storage.GetBlobOptions) (io.ReadCloser, error)
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 ¶
func (c *FakeContainerClient) ListBlobs(params azstorage.ListBlobsParameters) (azstorage.BlobListResponse, error)
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
Click to show internal directories.
Click to hide internal directories.