Documentation
¶
Overview ¶
Package blobstore is a generated GoMock package.
Index ¶
- type Blob
- type Client
- type DeleteRequest
- type DeleteResponse
- type ExistsRequest
- type ExistsResponse
- type GetRequest
- type GetResponse
- type MockClient
- func (m *MockClient) Delete(arg0 context.Context, arg1 *DeleteRequest) (*DeleteResponse, error)
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) Exists(arg0 context.Context, arg1 *ExistsRequest) (*ExistsResponse, error)
- func (m *MockClient) Get(arg0 context.Context, arg1 *GetRequest) (*GetResponse, error)
- func (m *MockClient) IsRetryableError(arg0 error) bool
- func (m *MockClient) Put(arg0 context.Context, arg1 *PutRequest) (*PutResponse, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) Delete(arg0, arg1 any) *gomock.Call
- func (mr *MockClientMockRecorder) Exists(arg0, arg1 any) *gomock.Call
- func (mr *MockClientMockRecorder) Get(arg0, arg1 any) *gomock.Call
- func (mr *MockClientMockRecorder) IsRetryableError(arg0 any) *gomock.Call
- func (mr *MockClientMockRecorder) Put(arg0, arg1 any) *gomock.Call
- type PutRequest
- type PutResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Put(context.Context, *PutRequest) (*PutResponse, error)
Get(context.Context, *GetRequest) (*GetResponse, error)
Exists(context.Context, *ExistsRequest) (*ExistsResponse, error)
Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
IsRetryableError(error) bool
}
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.
type PutRequest ¶ added in v0.13.0
PutRequest is the request to Put