storagetest

package
v0.118.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockStorageExtension

func NewMockStorageExtension(getClientError error) storage.Extension

func NewMockStorageExtensionWithDelay

func NewMockStorageExtensionWithDelay(getClientError error, executionDelay time.Duration) storage.Extension

Types

type MockStorageClient

type MockStorageClient struct {
	// contains filtered or unexported fields
}

func (*MockStorageClient) Batch

func (m *MockStorageClient) Batch(_ context.Context, ops ...*storage.Operation) error

func (*MockStorageClient) Close

func (*MockStorageClient) Delete

func (m *MockStorageClient) Delete(ctx context.Context, s string) error

func (*MockStorageClient) Get

func (m *MockStorageClient) Get(ctx context.Context, s string) ([]byte, error)

func (*MockStorageClient) IsClosed

func (m *MockStorageClient) IsClosed() bool

func (*MockStorageClient) Set

func (m *MockStorageClient) Set(ctx context.Context, s string, bytes []byte) error

Jump to

Keyboard shortcuts

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