Documentation ¶
Overview ¶
Package blob is a generated GoMock package.
Index ¶
- func Base64ToUrl(s string) (string, error)
- type Blob
- type MockStorage
- func (m *MockStorage) EXPECT() *MockStorageMockRecorder
- func (m *MockStorage) Head(ctx context.Context) (uint64, error)
- func (m *MockStorage) Save(ctx context.Context, blob Blob) error
- func (m *MockStorage) SaveBulk(ctx context.Context, blobs []Blob) error
- func (m *MockStorage) UpdateHead(ctx context.Context, head uint64) error
- type MockStorageHeadCall
- type MockStorageMockRecorder
- func (mr *MockStorageMockRecorder) Head(ctx any) *MockStorageHeadCall
- func (mr *MockStorageMockRecorder) Save(ctx, blob any) *MockStorageSaveCall
- func (mr *MockStorageMockRecorder) SaveBulk(ctx, blobs any) *MockStorageSaveBulkCall
- func (mr *MockStorageMockRecorder) UpdateHead(ctx, head any) *MockStorageUpdateHeadCall
- type MockStorageSaveBulkCall
- type MockStorageSaveCall
- type MockStorageUpdateHeadCall
- func (c *MockStorageUpdateHeadCall) Do(f func(context.Context, uint64) error) *MockStorageUpdateHeadCall
- func (c *MockStorageUpdateHeadCall) DoAndReturn(f func(context.Context, uint64) error) *MockStorageUpdateHeadCall
- func (c *MockStorageUpdateHeadCall) Return(arg0 error) *MockStorageUpdateHeadCall
- type R2
- func (r2 R2) Blob(ctx context.Context, height pkgTypes.Level, namespace, commitment string) (blob nodeTypes.Blob, err error)
- func (r2 R2) Blobs(ctx context.Context, height pkgTypes.Level, hash ...string) ([]nodeTypes.Blob, error)
- func (r2 R2) Head(ctx context.Context) (uint64, error)
- func (r2 *R2) Init(ctx context.Context) error
- func (r2 R2) Save(ctx context.Context, blob Blob) error
- func (r2 R2) SaveBulk(ctx context.Context, blobs []Blob) error
- func (r2 R2) UpdateHead(ctx context.Context, head uint64) error
- type R2Config
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64ToUrl ¶
Types ¶
type Blob ¶
func (Blob) ContentType ¶
type MockStorage ¶
type MockStorage struct {
// contains filtered or unexported fields
}
MockStorage is a mock of Storage interface.
func NewMockStorage ¶
func NewMockStorage(ctrl *gomock.Controller) *MockStorage
NewMockStorage creates a new mock instance.
func (*MockStorage) EXPECT ¶
func (m *MockStorage) EXPECT() *MockStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStorage) Head ¶
func (m *MockStorage) Head(ctx context.Context) (uint64, error)
Head mocks base method.
func (*MockStorage) Save ¶
func (m *MockStorage) Save(ctx context.Context, blob Blob) error
Save mocks base method.
func (*MockStorage) SaveBulk ¶
func (m *MockStorage) SaveBulk(ctx context.Context, blobs []Blob) error
SaveBulk mocks base method.
func (*MockStorage) UpdateHead ¶
func (m *MockStorage) UpdateHead(ctx context.Context, head uint64) error
UpdateHead mocks base method.
type MockStorageHeadCall ¶ added in v1.9.9
MockStorageHeadCall wrap *gomock.Call
func (*MockStorageHeadCall) Do ¶ added in v1.9.9
func (c *MockStorageHeadCall) Do(f func(context.Context) (uint64, error)) *MockStorageHeadCall
Do rewrite *gomock.Call.Do
func (*MockStorageHeadCall) DoAndReturn ¶ added in v1.9.9
func (c *MockStorageHeadCall) DoAndReturn(f func(context.Context) (uint64, error)) *MockStorageHeadCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStorageHeadCall) Return ¶ added in v1.9.9
func (c *MockStorageHeadCall) Return(arg0 uint64, arg1 error) *MockStorageHeadCall
Return rewrite *gomock.Call.Return
type MockStorageMockRecorder ¶
type MockStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageMockRecorder is the mock recorder for MockStorage.
func (*MockStorageMockRecorder) Head ¶
func (mr *MockStorageMockRecorder) Head(ctx any) *MockStorageHeadCall
Head indicates an expected call of Head.
func (*MockStorageMockRecorder) Save ¶
func (mr *MockStorageMockRecorder) Save(ctx, blob any) *MockStorageSaveCall
Save indicates an expected call of Save.
func (*MockStorageMockRecorder) SaveBulk ¶
func (mr *MockStorageMockRecorder) SaveBulk(ctx, blobs any) *MockStorageSaveBulkCall
SaveBulk indicates an expected call of SaveBulk.
func (*MockStorageMockRecorder) UpdateHead ¶
func (mr *MockStorageMockRecorder) UpdateHead(ctx, head any) *MockStorageUpdateHeadCall
UpdateHead indicates an expected call of UpdateHead.
type MockStorageSaveBulkCall ¶ added in v1.9.9
MockStorageSaveBulkCall wrap *gomock.Call
func (*MockStorageSaveBulkCall) Do ¶ added in v1.9.9
func (c *MockStorageSaveBulkCall) Do(f func(context.Context, []Blob) error) *MockStorageSaveBulkCall
Do rewrite *gomock.Call.Do
func (*MockStorageSaveBulkCall) DoAndReturn ¶ added in v1.9.9
func (c *MockStorageSaveBulkCall) DoAndReturn(f func(context.Context, []Blob) error) *MockStorageSaveBulkCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStorageSaveBulkCall) Return ¶ added in v1.9.9
func (c *MockStorageSaveBulkCall) Return(arg0 error) *MockStorageSaveBulkCall
Return rewrite *gomock.Call.Return
type MockStorageSaveCall ¶ added in v1.9.9
MockStorageSaveCall wrap *gomock.Call
func (*MockStorageSaveCall) Do ¶ added in v1.9.9
func (c *MockStorageSaveCall) Do(f func(context.Context, Blob) error) *MockStorageSaveCall
Do rewrite *gomock.Call.Do
func (*MockStorageSaveCall) DoAndReturn ¶ added in v1.9.9
func (c *MockStorageSaveCall) DoAndReturn(f func(context.Context, Blob) error) *MockStorageSaveCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStorageSaveCall) Return ¶ added in v1.9.9
func (c *MockStorageSaveCall) Return(arg0 error) *MockStorageSaveCall
Return rewrite *gomock.Call.Return
type MockStorageUpdateHeadCall ¶ added in v1.9.9
MockStorageUpdateHeadCall wrap *gomock.Call
func (*MockStorageUpdateHeadCall) Do ¶ added in v1.9.9
func (c *MockStorageUpdateHeadCall) Do(f func(context.Context, uint64) error) *MockStorageUpdateHeadCall
Do rewrite *gomock.Call.Do
func (*MockStorageUpdateHeadCall) DoAndReturn ¶ added in v1.9.9
func (c *MockStorageUpdateHeadCall) DoAndReturn(f func(context.Context, uint64) error) *MockStorageUpdateHeadCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStorageUpdateHeadCall) Return ¶ added in v1.9.9
func (c *MockStorageUpdateHeadCall) Return(arg0 error) *MockStorageUpdateHeadCall
Return rewrite *gomock.Call.Return
type R2 ¶
type R2 struct {
// contains filtered or unexported fields
}