Documentation ¶
Index ¶
- func NewMockStorageExtension(getClientError error) storage.Extension
- func NewMockStorageExtensionWithDelay(getClientError error, executionDelay time.Duration) storage.Extension
- type MockStorageClient
- func (m *MockStorageClient) Batch(_ context.Context, ops ...*storage.Operation) error
- func (m *MockStorageClient) Close(context.Context) error
- func (m *MockStorageClient) Delete(ctx context.Context, s string) error
- func (m *MockStorageClient) Get(ctx context.Context, s string) ([]byte, error)
- func (m *MockStorageClient) IsClosed() bool
- func (m *MockStorageClient) Set(ctx context.Context, s string, bytes []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockStorageExtension ¶
Types ¶
type MockStorageClient ¶
type MockStorageClient struct {
// contains filtered or unexported fields
}
func (*MockStorageClient) Delete ¶
func (m *MockStorageClient) Delete(ctx context.Context, s string) error
func (*MockStorageClient) IsClosed ¶
func (m *MockStorageClient) IsClosed() bool
Click to show internal directories.
Click to hide internal directories.