blobstore

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Overview

Package blobstore is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blob

type Blob struct {
	Tags map[string]string
	Body []byte
}

Blob defines a blob which can be stored and fetched from blobstore

type Client

Client defines the interface to a blobstore client.

func NewRetryableClient added in v0.5.2

func NewRetryableClient(client Client, policy backoff.RetryPolicy) Client

NewRetryableClient constructs a blobstorre client which retries transient errors.

type DeleteRequest added in v0.13.0

type DeleteRequest struct {
	Key string
}

DeleteRequest is the request to Delete

type DeleteResponse added in v0.13.0

type DeleteResponse struct{}

DeleteResponse is the response from Delete

type ExistsRequest added in v0.13.0

type ExistsRequest struct {
	Key string
}

ExistsRequest is the request to Exists

type ExistsResponse added in v0.13.0

type ExistsResponse struct {
	Exists bool
}

ExistsResponse is the response from Exists

type GetRequest added in v0.13.0

type GetRequest struct {
	Key string
}

GetRequest is the request to Get

type GetResponse added in v0.13.0

type GetResponse struct {
	Blob Blob
}

GetResponse is the response from Get

type MockClient added in v0.13.0

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

MockClient is a mock of Client interface.

func NewMockClient added in v1.3.6

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) Delete added in v0.13.0

func (m *MockClient) Delete(arg0 context.Context, arg1 *DeleteRequest) (*DeleteResponse, error)

Delete mocks base method.

func (*MockClient) EXPECT added in v1.3.6

func (m *MockClient) EXPECT() *MockClientMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockClient) Exists added in v0.13.0

func (m *MockClient) Exists(arg0 context.Context, arg1 *ExistsRequest) (*ExistsResponse, error)

Exists mocks base method.

func (*MockClient) Get added in v0.13.0

func (m *MockClient) Get(arg0 context.Context, arg1 *GetRequest) (*GetResponse, error)

Get mocks base method.

func (*MockClient) IsRetryableError added in v0.13.0

func (m *MockClient) IsRetryableError(arg0 error) bool

IsRetryableError mocks base method.

func (*MockClient) Put added in v0.13.0

func (m *MockClient) Put(arg0 context.Context, arg1 *PutRequest) (*PutResponse, error)

Put mocks base method.

type MockClientMockRecorder added in v1.3.6

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) Delete added in v1.3.6

func (mr *MockClientMockRecorder) Delete(arg0, arg1 any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockClientMockRecorder) Exists added in v1.3.6

func (mr *MockClientMockRecorder) Exists(arg0, arg1 any) *gomock.Call

Exists indicates an expected call of Exists.

func (*MockClientMockRecorder) Get added in v1.3.6

func (mr *MockClientMockRecorder) Get(arg0, arg1 any) *gomock.Call

Get indicates an expected call of Get.

func (*MockClientMockRecorder) IsRetryableError added in v1.3.6

func (mr *MockClientMockRecorder) IsRetryableError(arg0 any) *gomock.Call

IsRetryableError indicates an expected call of IsRetryableError.

func (*MockClientMockRecorder) Put added in v1.3.6

func (mr *MockClientMockRecorder) Put(arg0, arg1 any) *gomock.Call

Put indicates an expected call of Put.

type PutRequest added in v0.13.0

type PutRequest struct {
	Key  string
	Blob Blob
}

PutRequest is the request to Put

type PutResponse added in v0.13.0

type PutResponse struct{}

PutResponse is the response from Put

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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