Documentation ¶
Index ¶
- func PublicAccessTypePtr(pab azblob.PublicAccessType) *azblob.PublicAccessType
- type MockAccountOperations
- func (m *MockAccountOperations) Create(ctx context.Context, params storage.AccountCreateParameters) (*storage.Account, error)
- func (m *MockAccountOperations) Delete(ctx context.Context) error
- func (m *MockAccountOperations) Get(ctx context.Context) (*storage.Account, error)
- func (m *MockAccountOperations) IsAccountNameAvailable(ctx context.Context, name string) error
- func (m *MockAccountOperations) ListKeys(ctx context.Context) ([]storage.AccountKey, error)
- func (m *MockAccountOperations) Update(ctx context.Context, params storage.AccountUpdateParameters) (*storage.Account, error)
- type MockContainerOperations
- func (m *MockContainerOperations) Create(ctx context.Context, pat azblob.PublicAccessType, meta azblob.Metadata) error
- func (m *MockContainerOperations) Delete(ctx context.Context) error
- func (m *MockContainerOperations) Get(ctx context.Context) (*azblob.PublicAccessType, azblob.Metadata, error)
- func (m *MockContainerOperations) Update(ctx context.Context, pat azblob.PublicAccessType, meta azblob.Metadata) error
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 ¶
func (m *MockAccountOperations) Create(ctx context.Context, params storage.AccountCreateParameters) (*storage.Account, error)
Create mock create
func (*MockAccountOperations) Delete ¶
func (m *MockAccountOperations) Delete(ctx context.Context) error
Delete mock delete
func (*MockAccountOperations) IsAccountNameAvailable ¶
func (m *MockAccountOperations) IsAccountNameAvailable(ctx context.Context, name string) error
IsAccountNameAvailable mock check
func (*MockAccountOperations) ListKeys ¶
func (m *MockAccountOperations) ListKeys(ctx context.Context) ([]storage.AccountKey, error)
ListKeys mock list keys
func (*MockAccountOperations) Update ¶
func (m *MockAccountOperations) Update(ctx context.Context, params storage.AccountUpdateParameters) (*storage.Account, error)
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 ¶
func (m *MockContainerOperations) Create(ctx context.Context, pat azblob.PublicAccessType, meta azblob.Metadata) error
Create mock create function
func (*MockContainerOperations) Delete ¶
func (m *MockContainerOperations) Delete(ctx context.Context) error
Delete mock delete function
func (*MockContainerOperations) Get ¶
func (m *MockContainerOperations) Get(ctx context.Context) (*azblob.PublicAccessType, azblob.Metadata, error)
Get mock get function
func (*MockContainerOperations) Update ¶
func (m *MockContainerOperations) Update(ctx context.Context, pat azblob.PublicAccessType, meta azblob.Metadata) error
Update mock update function
Click to show internal directories.
Click to hide internal directories.