Documentation ¶
Index ¶
- type MockBucketClient
- func (m *MockBucketClient) Attrs(ctx context.Context) (*storage.BucketAttrs, error)
- func (m *MockBucketClient) Create(ctx context.Context, projectID string, attrs *storage.BucketAttrs) error
- func (m *MockBucketClient) Delete(ctx context.Context) error
- func (m *MockBucketClient) Update(ctx context.Context, attrs storage.BucketAttrsToUpdate) (*storage.BucketAttrs, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBucketClient ¶
type MockBucketClient struct { MockAttrs func(context.Context) (*storage.BucketAttrs, error) MockCreate func(context.Context, string, *storage.BucketAttrs) error MockUpdate func(context.Context, storage.BucketAttrsToUpdate) (*storage.BucketAttrs, error) MockDelete func(context.Context) error }
MockBucketClient Client interface implementation
func NewMockBucketClient ¶
func NewMockBucketClient() *MockBucketClient
NewMockBucketClient returns new MockBucketClient with default mock implementations
func (*MockBucketClient) Attrs ¶
func (m *MockBucketClient) Attrs(ctx context.Context) (*storage.BucketAttrs, error)
Attrs retrieves bucket attributes
func (*MockBucketClient) Create ¶
func (m *MockBucketClient) Create(ctx context.Context, projectID string, attrs *storage.BucketAttrs) error
Create new bucket resource
func (*MockBucketClient) Delete ¶
func (m *MockBucketClient) Delete(ctx context.Context) error
Delete existing bucket resource
func (*MockBucketClient) Update ¶
func (m *MockBucketClient) Update(ctx context.Context, attrs storage.BucketAttrsToUpdate) (*storage.BucketAttrs, error)
Update existing bucket resource
Click to show internal directories.
Click to hide internal directories.