fake

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublicAccessTypePtr

func PublicAccessTypePtr(pab azblob.PublicAccessType) *azblob.PublicAccessType

PublicAccessTypePtr returns pointer of the PublicAccessType value

Types

type MockAccountOperations

type MockAccountOperations struct {
	MockCreate                 func(context.Context, storage.AccountCreateParameters) (*storage.Account, error)
	MockUpdate                 func(context.Context, storage.AccountUpdateParameters) (*storage.Account, error)
	MockGet                    func(ctx context.Context) (*storage.Account, error)
	MockDelete                 func(ctx context.Context) error
	MockIsAccountNameAvailable func(context.Context, string) error
	MockListKeys               func(context.Context) ([]storage.AccountKey, error)
}

MockAccountOperations mock implementation of AccountOperations

func NewMockAccountOperations

func NewMockAccountOperations() *MockAccountOperations

NewMockAccountOperations returns new mock instance with default mocks

func (*MockAccountOperations) Create

Create mock create

func (*MockAccountOperations) Delete

func (m *MockAccountOperations) Delete(ctx context.Context) error

Delete mock delete

func (*MockAccountOperations) Get

Get mock get

func (*MockAccountOperations) IsAccountNameAvailable

func (m *MockAccountOperations) IsAccountNameAvailable(ctx context.Context, name string) error

IsAccountNameAvailable mock check

func (*MockAccountOperations) ListKeys

ListKeys mock list keys

func (*MockAccountOperations) Update

Update mock update

type MockContainerOperations

type MockContainerOperations struct {
	MockCreate func(context.Context, azblob.PublicAccessType, azblob.Metadata) error
	MockUpdate func(context.Context, azblob.PublicAccessType, azblob.Metadata) error
	MockGet    func(ctx context.Context) (*azblob.PublicAccessType, azblob.Metadata, error)
	MockDelete func(ctx context.Context) error
}

MockContainerOperations mock implementation of ContainerOperations

func NewMockContainerOperations

func NewMockContainerOperations() *MockContainerOperations

NewMockContainerOperations create new mock instance with default mocks

func (*MockContainerOperations) Create

Create mock create function

func (*MockContainerOperations) Delete

Delete mock delete function

func (*MockContainerOperations) Get

Get mock get function

func (*MockContainerOperations) Update

Update mock update function

Jump to

Keyboard shortcuts

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