Documentation
¶
Index ¶
- type BatchRunner
- type BatchRunner_Expecter
- type BatchRunner_Run_Call
- type DataExporter
- type DataExporter_Expecter
- type DataExporter_ExportAllObjects_Call
- func (_c *DataExporter_ExportAllObjects_Call) Return(_a0 blob.StoreEntries, _a1 error) *DataExporter_ExportAllObjects_Call
- func (_c *DataExporter_ExportAllObjects_Call) Run(run func(ctx context.Context)) *DataExporter_ExportAllObjects_Call
- func (_c *DataExporter_ExportAllObjects_Call) RunAndReturn(run func(context.Context) (blob.StoreEntries, error)) *DataExporter_ExportAllObjects_Call
- type FixtureReader
- type FixtureReader_Chan_Call
- type FixtureReader_Expecter
- type FixtureReader_Run_Call
- type FixtureReader_Source_Call
- type FixtureReader_Stop_Call
- type ReadCloser
- type ReadCloser_Close_Call
- type ReadCloser_Expecter
- type ReadCloser_Read_Call
- type ReadSeekerCloser
- type ReadSeekerCloser_Close_Call
- type ReadSeekerCloser_Expecter
- type ReadSeekerCloser_Read_Call
- type ReadSeekerCloser_Seek_Call
- func (_c *ReadSeekerCloser_Seek_Call) Return(_a0 int64, _a1 error) *ReadSeekerCloser_Seek_Call
- func (_c *ReadSeekerCloser_Seek_Call) Run(run func(offset int64, whence int)) *ReadSeekerCloser_Seek_Call
- func (_c *ReadSeekerCloser_Seek_Call) RunAndReturn(run func(int64, int) (int64, error)) *ReadSeekerCloser_Seek_Call
- type Store
- func (_m *Store) BucketName() string
- func (_m *Store) Copy(batch blob.CopyBatch)
- func (_m *Store) CopyOne(obj *blob.CopyObject) error
- func (_m *Store) Delete(batch blob.Batch)
- func (_m *Store) DeleteBucket(ctx context.Context) error
- func (_m *Store) DeleteOne(obj *blob.Object) error
- func (_m *Store) DeletePrefix(ctx context.Context, prefix string) error
- func (_m *Store) EXPECT() *Store_Expecter
- func (_m *Store) ListObjects(ctx context.Context, prefix string) (blob.Batch, error)
- func (_m *Store) Read(batch blob.Batch)
- func (_m *Store) ReadOne(obj *blob.Object) error
- func (_m *Store) Write(batch blob.Batch) error
- func (_m *Store) WriteOne(obj *blob.Object) error
- type Store_BucketName_Call
- type Store_CopyOne_Call
- type Store_Copy_Call
- type Store_DeleteBucket_Call
- type Store_DeleteOne_Call
- type Store_DeletePrefix_Call
- func (_c *Store_DeletePrefix_Call) Return(_a0 error) *Store_DeletePrefix_Call
- func (_c *Store_DeletePrefix_Call) Run(run func(ctx context.Context, prefix string)) *Store_DeletePrefix_Call
- func (_c *Store_DeletePrefix_Call) RunAndReturn(run func(context.Context, string) error) *Store_DeletePrefix_Call
- type Store_Delete_Call
- type Store_Expecter
- func (_e *Store_Expecter) BucketName() *Store_BucketName_Call
- func (_e *Store_Expecter) Copy(batch interface{}) *Store_Copy_Call
- func (_e *Store_Expecter) CopyOne(obj interface{}) *Store_CopyOne_Call
- func (_e *Store_Expecter) Delete(batch interface{}) *Store_Delete_Call
- func (_e *Store_Expecter) DeleteBucket(ctx interface{}) *Store_DeleteBucket_Call
- func (_e *Store_Expecter) DeleteOne(obj interface{}) *Store_DeleteOne_Call
- func (_e *Store_Expecter) DeletePrefix(ctx interface{}, prefix interface{}) *Store_DeletePrefix_Call
- func (_e *Store_Expecter) ListObjects(ctx interface{}, prefix interface{}) *Store_ListObjects_Call
- func (_e *Store_Expecter) Read(batch interface{}) *Store_Read_Call
- func (_e *Store_Expecter) ReadOne(obj interface{}) *Store_ReadOne_Call
- func (_e *Store_Expecter) Write(batch interface{}) *Store_Write_Call
- func (_e *Store_Expecter) WriteOne(obj interface{}) *Store_WriteOne_Call
- type Store_ListObjects_Call
- func (_c *Store_ListObjects_Call) Return(_a0 blob.Batch, _a1 error) *Store_ListObjects_Call
- func (_c *Store_ListObjects_Call) Run(run func(ctx context.Context, prefix string)) *Store_ListObjects_Call
- func (_c *Store_ListObjects_Call) RunAndReturn(run func(context.Context, string) (blob.Batch, error)) *Store_ListObjects_Call
- type Store_ReadOne_Call
- type Store_Read_Call
- type Store_WriteOne_Call
- type Store_Write_Call
- type Stream
- type Stream_AsReader_Call
- type Stream_Expecter
- type Stream_ReadAll_Call
- type UrlBuilder
- type UrlBuilder_Expecter
- type UrlBuilder_GetAbsoluteUrl_Call
- func (_c *UrlBuilder_GetAbsoluteUrl_Call) Return(_a0 string, _a1 error) *UrlBuilder_GetAbsoluteUrl_Call
- func (_c *UrlBuilder_GetAbsoluteUrl_Call) Run(run func(path string)) *UrlBuilder_GetAbsoluteUrl_Call
- func (_c *UrlBuilder_GetAbsoluteUrl_Call) RunAndReturn(run func(string) (string, error)) *UrlBuilder_GetAbsoluteUrl_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchRunner ¶
BatchRunner is an autogenerated mock type for the BatchRunner type
func NewBatchRunner ¶
func NewBatchRunner(t interface {
mock.TestingT
Cleanup(func())
}) *BatchRunner
NewBatchRunner creates a new instance of BatchRunner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*BatchRunner) EXPECT ¶
func (_m *BatchRunner) EXPECT() *BatchRunner_Expecter
type BatchRunner_Expecter ¶
type BatchRunner_Expecter struct {
// contains filtered or unexported fields
}
func (*BatchRunner_Expecter) Run ¶
func (_e *BatchRunner_Expecter) Run(ctx interface{}) *BatchRunner_Run_Call
Run is a helper method to define mock.On call
- ctx context.Context
type BatchRunner_Run_Call ¶
BatchRunner_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*BatchRunner_Run_Call) Return ¶
func (_c *BatchRunner_Run_Call) Return(_a0 error) *BatchRunner_Run_Call
func (*BatchRunner_Run_Call) Run ¶
func (_c *BatchRunner_Run_Call) Run(run func(ctx context.Context)) *BatchRunner_Run_Call
func (*BatchRunner_Run_Call) RunAndReturn ¶
func (_c *BatchRunner_Run_Call) RunAndReturn(run func(context.Context) error) *BatchRunner_Run_Call
type DataExporter ¶ added in v0.50.0
DataExporter is an autogenerated mock type for the DataExporter type
func NewDataExporter ¶ added in v0.50.0
func NewDataExporter(t interface {
mock.TestingT
Cleanup(func())
}) *DataExporter
NewDataExporter creates a new instance of DataExporter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DataExporter) EXPECT ¶ added in v0.50.0
func (_m *DataExporter) EXPECT() *DataExporter_Expecter
func (*DataExporter) ExportAllObjects ¶ added in v0.50.0
func (_m *DataExporter) ExportAllObjects(ctx context.Context) (blob.StoreEntries, error)
ExportAllObjects provides a mock function with given fields: ctx
type DataExporter_Expecter ¶ added in v0.50.0
type DataExporter_Expecter struct {
// contains filtered or unexported fields
}
func (*DataExporter_Expecter) ExportAllObjects ¶ added in v0.50.0
func (_e *DataExporter_Expecter) ExportAllObjects(ctx interface{}) *DataExporter_ExportAllObjects_Call
ExportAllObjects is a helper method to define mock.On call
- ctx context.Context
type DataExporter_ExportAllObjects_Call ¶ added in v0.50.0
DataExporter_ExportAllObjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExportAllObjects'
func (*DataExporter_ExportAllObjects_Call) Return ¶ added in v0.50.0
func (_c *DataExporter_ExportAllObjects_Call) Return(_a0 blob.StoreEntries, _a1 error) *DataExporter_ExportAllObjects_Call
func (*DataExporter_ExportAllObjects_Call) Run ¶ added in v0.50.0
func (_c *DataExporter_ExportAllObjects_Call) Run(run func(ctx context.Context)) *DataExporter_ExportAllObjects_Call
func (*DataExporter_ExportAllObjects_Call) RunAndReturn ¶ added in v0.50.0
func (_c *DataExporter_ExportAllObjects_Call) RunAndReturn(run func(context.Context) (blob.StoreEntries, error)) *DataExporter_ExportAllObjects_Call
type FixtureReader ¶ added in v0.48.0
FixtureReader is an autogenerated mock type for the FixtureReader type
func NewFixtureReader ¶ added in v0.48.0
func NewFixtureReader(t interface {
mock.TestingT
Cleanup(func())
}) *FixtureReader
NewFixtureReader creates a new instance of FixtureReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*FixtureReader) Chan ¶ added in v0.48.0
func (_m *FixtureReader) Chan() <-chan *blob.Object
Chan provides a mock function with no fields
func (*FixtureReader) EXPECT ¶ added in v0.48.0
func (_m *FixtureReader) EXPECT() *FixtureReader_Expecter
func (*FixtureReader) Run ¶ added in v0.48.0
func (_m *FixtureReader) Run(ctx context.Context) error
Run provides a mock function with given fields: ctx
func (*FixtureReader) Source ¶ added in v0.48.0
func (_m *FixtureReader) Source() string
Source provides a mock function with no fields
func (*FixtureReader) Stop ¶ added in v0.48.0
func (_m *FixtureReader) Stop()
Stop provides a mock function with no fields
type FixtureReader_Chan_Call ¶ added in v0.48.0
FixtureReader_Chan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Chan'
func (*FixtureReader_Chan_Call) Return ¶ added in v0.48.0
func (_c *FixtureReader_Chan_Call) Return(_a0 <-chan *blob.Object) *FixtureReader_Chan_Call
func (*FixtureReader_Chan_Call) Run ¶ added in v0.48.0
func (_c *FixtureReader_Chan_Call) Run(run func()) *FixtureReader_Chan_Call
func (*FixtureReader_Chan_Call) RunAndReturn ¶ added in v0.48.0
func (_c *FixtureReader_Chan_Call) RunAndReturn(run func() <-chan *blob.Object) *FixtureReader_Chan_Call
type FixtureReader_Expecter ¶ added in v0.48.0
type FixtureReader_Expecter struct {
// contains filtered or unexported fields
}
func (*FixtureReader_Expecter) Chan ¶ added in v0.48.0
func (_e *FixtureReader_Expecter) Chan() *FixtureReader_Chan_Call
Chan is a helper method to define mock.On call
func (*FixtureReader_Expecter) Run ¶ added in v0.48.0
func (_e *FixtureReader_Expecter) Run(ctx interface{}) *FixtureReader_Run_Call
Run is a helper method to define mock.On call
- ctx context.Context
func (*FixtureReader_Expecter) Source ¶ added in v0.48.0
func (_e *FixtureReader_Expecter) Source() *FixtureReader_Source_Call
Source is a helper method to define mock.On call
func (*FixtureReader_Expecter) Stop ¶ added in v0.48.0
func (_e *FixtureReader_Expecter) Stop() *FixtureReader_Stop_Call
Stop is a helper method to define mock.On call
type FixtureReader_Run_Call ¶ added in v0.48.0
FixtureReader_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*FixtureReader_Run_Call) Return ¶ added in v0.48.0
func (_c *FixtureReader_Run_Call) Return(_a0 error) *FixtureReader_Run_Call
func (*FixtureReader_Run_Call) Run ¶ added in v0.48.0
func (_c *FixtureReader_Run_Call) Run(run func(ctx context.Context)) *FixtureReader_Run_Call
func (*FixtureReader_Run_Call) RunAndReturn ¶ added in v0.48.0
func (_c *FixtureReader_Run_Call) RunAndReturn(run func(context.Context) error) *FixtureReader_Run_Call
type FixtureReader_Source_Call ¶ added in v0.48.0
FixtureReader_Source_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Source'
func (*FixtureReader_Source_Call) Return ¶ added in v0.48.0
func (_c *FixtureReader_Source_Call) Return(_a0 string) *FixtureReader_Source_Call
func (*FixtureReader_Source_Call) Run ¶ added in v0.48.0
func (_c *FixtureReader_Source_Call) Run(run func()) *FixtureReader_Source_Call
func (*FixtureReader_Source_Call) RunAndReturn ¶ added in v0.48.0
func (_c *FixtureReader_Source_Call) RunAndReturn(run func() string) *FixtureReader_Source_Call
type FixtureReader_Stop_Call ¶ added in v0.48.0
FixtureReader_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*FixtureReader_Stop_Call) Return ¶ added in v0.48.0
func (_c *FixtureReader_Stop_Call) Return() *FixtureReader_Stop_Call
func (*FixtureReader_Stop_Call) Run ¶ added in v0.48.0
func (_c *FixtureReader_Stop_Call) Run(run func()) *FixtureReader_Stop_Call
func (*FixtureReader_Stop_Call) RunAndReturn ¶ added in v0.48.0
func (_c *FixtureReader_Stop_Call) RunAndReturn(run func()) *FixtureReader_Stop_Call
type ReadCloser ¶
ReadCloser is an autogenerated mock type for the ReadCloser type
func NewReadCloser ¶
func NewReadCloser(t interface {
mock.TestingT
Cleanup(func())
}) *ReadCloser
NewReadCloser creates a new instance of ReadCloser. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ReadCloser) Close ¶
func (_m *ReadCloser) Close() error
Close provides a mock function with no fields
func (*ReadCloser) EXPECT ¶
func (_m *ReadCloser) EXPECT() *ReadCloser_Expecter
type ReadCloser_Close_Call ¶
ReadCloser_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*ReadCloser_Close_Call) Return ¶
func (_c *ReadCloser_Close_Call) Return(_a0 error) *ReadCloser_Close_Call
func (*ReadCloser_Close_Call) Run ¶
func (_c *ReadCloser_Close_Call) Run(run func()) *ReadCloser_Close_Call
func (*ReadCloser_Close_Call) RunAndReturn ¶
func (_c *ReadCloser_Close_Call) RunAndReturn(run func() error) *ReadCloser_Close_Call
type ReadCloser_Expecter ¶
type ReadCloser_Expecter struct {
// contains filtered or unexported fields
}
func (*ReadCloser_Expecter) Close ¶
func (_e *ReadCloser_Expecter) Close() *ReadCloser_Close_Call
Close is a helper method to define mock.On call
func (*ReadCloser_Expecter) Read ¶
func (_e *ReadCloser_Expecter) Read(p interface{}) *ReadCloser_Read_Call
Read is a helper method to define mock.On call
- p []byte
type ReadCloser_Read_Call ¶
ReadCloser_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*ReadCloser_Read_Call) Return ¶
func (_c *ReadCloser_Read_Call) Return(n int, err error) *ReadCloser_Read_Call
func (*ReadCloser_Read_Call) Run ¶
func (_c *ReadCloser_Read_Call) Run(run func(p []byte)) *ReadCloser_Read_Call
func (*ReadCloser_Read_Call) RunAndReturn ¶
func (_c *ReadCloser_Read_Call) RunAndReturn(run func([]byte) (int, error)) *ReadCloser_Read_Call
type ReadSeekerCloser ¶
ReadSeekerCloser is an autogenerated mock type for the ReadSeekerCloser type
func NewReadSeekerCloser ¶
func NewReadSeekerCloser(t interface {
mock.TestingT
Cleanup(func())
}) *ReadSeekerCloser
NewReadSeekerCloser creates a new instance of ReadSeekerCloser. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ReadSeekerCloser) Close ¶
func (_m *ReadSeekerCloser) Close() error
Close provides a mock function with no fields
func (*ReadSeekerCloser) EXPECT ¶
func (_m *ReadSeekerCloser) EXPECT() *ReadSeekerCloser_Expecter
type ReadSeekerCloser_Close_Call ¶
ReadSeekerCloser_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*ReadSeekerCloser_Close_Call) Return ¶
func (_c *ReadSeekerCloser_Close_Call) Return(_a0 error) *ReadSeekerCloser_Close_Call
func (*ReadSeekerCloser_Close_Call) Run ¶
func (_c *ReadSeekerCloser_Close_Call) Run(run func()) *ReadSeekerCloser_Close_Call
func (*ReadSeekerCloser_Close_Call) RunAndReturn ¶
func (_c *ReadSeekerCloser_Close_Call) RunAndReturn(run func() error) *ReadSeekerCloser_Close_Call
type ReadSeekerCloser_Expecter ¶
type ReadSeekerCloser_Expecter struct {
// contains filtered or unexported fields
}
func (*ReadSeekerCloser_Expecter) Close ¶
func (_e *ReadSeekerCloser_Expecter) Close() *ReadSeekerCloser_Close_Call
Close is a helper method to define mock.On call
func (*ReadSeekerCloser_Expecter) Read ¶
func (_e *ReadSeekerCloser_Expecter) Read(p interface{}) *ReadSeekerCloser_Read_Call
Read is a helper method to define mock.On call
- p []byte
func (*ReadSeekerCloser_Expecter) Seek ¶
func (_e *ReadSeekerCloser_Expecter) Seek(offset interface{}, whence interface{}) *ReadSeekerCloser_Seek_Call
Seek is a helper method to define mock.On call
- offset int64
- whence int
type ReadSeekerCloser_Read_Call ¶
ReadSeekerCloser_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*ReadSeekerCloser_Read_Call) Return ¶
func (_c *ReadSeekerCloser_Read_Call) Return(n int, err error) *ReadSeekerCloser_Read_Call
func (*ReadSeekerCloser_Read_Call) Run ¶
func (_c *ReadSeekerCloser_Read_Call) Run(run func(p []byte)) *ReadSeekerCloser_Read_Call
func (*ReadSeekerCloser_Read_Call) RunAndReturn ¶
func (_c *ReadSeekerCloser_Read_Call) RunAndReturn(run func([]byte) (int, error)) *ReadSeekerCloser_Read_Call
type ReadSeekerCloser_Seek_Call ¶
ReadSeekerCloser_Seek_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Seek'
func (*ReadSeekerCloser_Seek_Call) Return ¶
func (_c *ReadSeekerCloser_Seek_Call) Return(_a0 int64, _a1 error) *ReadSeekerCloser_Seek_Call
func (*ReadSeekerCloser_Seek_Call) Run ¶
func (_c *ReadSeekerCloser_Seek_Call) Run(run func(offset int64, whence int)) *ReadSeekerCloser_Seek_Call
func (*ReadSeekerCloser_Seek_Call) RunAndReturn ¶
func (_c *ReadSeekerCloser_Seek_Call) RunAndReturn(run func(int64, int) (int64, error)) *ReadSeekerCloser_Seek_Call
type Store ¶
Store is an autogenerated mock type for the Store type
func NewStore ¶
NewStore creates a new instance of Store. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Store) BucketName ¶
BucketName provides a mock function with no fields
func (*Store) CopyOne ¶
func (_m *Store) CopyOne(obj *blob.CopyObject) error
CopyOne provides a mock function with given fields: obj
func (*Store) DeleteBucket ¶
DeleteBucket provides a mock function with given fields: ctx
func (*Store) DeletePrefix ¶ added in v0.47.0
DeletePrefix provides a mock function with given fields: ctx, prefix
func (*Store) EXPECT ¶
func (_m *Store) EXPECT() *Store_Expecter
func (*Store) ListObjects ¶ added in v0.47.0
ListObjects provides a mock function with given fields: ctx, prefix
type Store_BucketName_Call ¶
Store_BucketName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BucketName'
func (*Store_BucketName_Call) Return ¶
func (_c *Store_BucketName_Call) Return(_a0 string) *Store_BucketName_Call
func (*Store_BucketName_Call) Run ¶
func (_c *Store_BucketName_Call) Run(run func()) *Store_BucketName_Call
func (*Store_BucketName_Call) RunAndReturn ¶
func (_c *Store_BucketName_Call) RunAndReturn(run func() string) *Store_BucketName_Call
type Store_CopyOne_Call ¶
Store_CopyOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CopyOne'
func (*Store_CopyOne_Call) Return ¶
func (_c *Store_CopyOne_Call) Return(_a0 error) *Store_CopyOne_Call
func (*Store_CopyOne_Call) Run ¶
func (_c *Store_CopyOne_Call) Run(run func(obj *blob.CopyObject)) *Store_CopyOne_Call
func (*Store_CopyOne_Call) RunAndReturn ¶
func (_c *Store_CopyOne_Call) RunAndReturn(run func(*blob.CopyObject) error) *Store_CopyOne_Call
type Store_Copy_Call ¶
Store_Copy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Copy'
func (*Store_Copy_Call) Return ¶
func (_c *Store_Copy_Call) Return() *Store_Copy_Call
func (*Store_Copy_Call) Run ¶
func (_c *Store_Copy_Call) Run(run func(batch blob.CopyBatch)) *Store_Copy_Call
func (*Store_Copy_Call) RunAndReturn ¶
func (_c *Store_Copy_Call) RunAndReturn(run func(blob.CopyBatch)) *Store_Copy_Call
type Store_DeleteBucket_Call ¶
Store_DeleteBucket_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBucket'
func (*Store_DeleteBucket_Call) Return ¶
func (_c *Store_DeleteBucket_Call) Return(_a0 error) *Store_DeleteBucket_Call
func (*Store_DeleteBucket_Call) Run ¶
func (_c *Store_DeleteBucket_Call) Run(run func(ctx context.Context)) *Store_DeleteBucket_Call
func (*Store_DeleteBucket_Call) RunAndReturn ¶
func (_c *Store_DeleteBucket_Call) RunAndReturn(run func(context.Context) error) *Store_DeleteBucket_Call
type Store_DeleteOne_Call ¶
Store_DeleteOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteOne'
func (*Store_DeleteOne_Call) Return ¶
func (_c *Store_DeleteOne_Call) Return(_a0 error) *Store_DeleteOne_Call
func (*Store_DeleteOne_Call) Run ¶
func (_c *Store_DeleteOne_Call) Run(run func(obj *blob.Object)) *Store_DeleteOne_Call
func (*Store_DeleteOne_Call) RunAndReturn ¶
func (_c *Store_DeleteOne_Call) RunAndReturn(run func(*blob.Object) error) *Store_DeleteOne_Call
type Store_DeletePrefix_Call ¶ added in v0.47.0
Store_DeletePrefix_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeletePrefix'
func (*Store_DeletePrefix_Call) Return ¶ added in v0.47.0
func (_c *Store_DeletePrefix_Call) Return(_a0 error) *Store_DeletePrefix_Call
func (*Store_DeletePrefix_Call) Run ¶ added in v0.47.0
func (_c *Store_DeletePrefix_Call) Run(run func(ctx context.Context, prefix string)) *Store_DeletePrefix_Call
func (*Store_DeletePrefix_Call) RunAndReturn ¶ added in v0.47.0
func (_c *Store_DeletePrefix_Call) RunAndReturn(run func(context.Context, string) error) *Store_DeletePrefix_Call
type Store_Delete_Call ¶
Store_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Store_Delete_Call) Return ¶
func (_c *Store_Delete_Call) Return() *Store_Delete_Call
func (*Store_Delete_Call) Run ¶
func (_c *Store_Delete_Call) Run(run func(batch blob.Batch)) *Store_Delete_Call
func (*Store_Delete_Call) RunAndReturn ¶
func (_c *Store_Delete_Call) RunAndReturn(run func(blob.Batch)) *Store_Delete_Call
type Store_Expecter ¶
type Store_Expecter struct {
// contains filtered or unexported fields
}
func (*Store_Expecter) BucketName ¶
func (_e *Store_Expecter) BucketName() *Store_BucketName_Call
BucketName is a helper method to define mock.On call
func (*Store_Expecter) Copy ¶
func (_e *Store_Expecter) Copy(batch interface{}) *Store_Copy_Call
Copy is a helper method to define mock.On call
- batch blob.CopyBatch
func (*Store_Expecter) CopyOne ¶
func (_e *Store_Expecter) CopyOne(obj interface{}) *Store_CopyOne_Call
CopyOne is a helper method to define mock.On call
- obj *blob.CopyObject
func (*Store_Expecter) Delete ¶
func (_e *Store_Expecter) Delete(batch interface{}) *Store_Delete_Call
Delete is a helper method to define mock.On call
- batch blob.Batch
func (*Store_Expecter) DeleteBucket ¶
func (_e *Store_Expecter) DeleteBucket(ctx interface{}) *Store_DeleteBucket_Call
DeleteBucket is a helper method to define mock.On call
- ctx context.Context
func (*Store_Expecter) DeleteOne ¶
func (_e *Store_Expecter) DeleteOne(obj interface{}) *Store_DeleteOne_Call
DeleteOne is a helper method to define mock.On call
- obj *blob.Object
func (*Store_Expecter) DeletePrefix ¶ added in v0.47.0
func (_e *Store_Expecter) DeletePrefix(ctx interface{}, prefix interface{}) *Store_DeletePrefix_Call
DeletePrefix is a helper method to define mock.On call
- ctx context.Context
- prefix string
func (*Store_Expecter) ListObjects ¶ added in v0.47.0
func (_e *Store_Expecter) ListObjects(ctx interface{}, prefix interface{}) *Store_ListObjects_Call
ListObjects is a helper method to define mock.On call
- ctx context.Context
- prefix string
func (*Store_Expecter) Read ¶
func (_e *Store_Expecter) Read(batch interface{}) *Store_Read_Call
Read is a helper method to define mock.On call
- batch blob.Batch
func (*Store_Expecter) ReadOne ¶
func (_e *Store_Expecter) ReadOne(obj interface{}) *Store_ReadOne_Call
ReadOne is a helper method to define mock.On call
- obj *blob.Object
func (*Store_Expecter) Write ¶
func (_e *Store_Expecter) Write(batch interface{}) *Store_Write_Call
Write is a helper method to define mock.On call
- batch blob.Batch
func (*Store_Expecter) WriteOne ¶
func (_e *Store_Expecter) WriteOne(obj interface{}) *Store_WriteOne_Call
WriteOne is a helper method to define mock.On call
- obj *blob.Object
type Store_ListObjects_Call ¶ added in v0.47.0
Store_ListObjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListObjects'
func (*Store_ListObjects_Call) Return ¶ added in v0.47.0
func (_c *Store_ListObjects_Call) Return(_a0 blob.Batch, _a1 error) *Store_ListObjects_Call
func (*Store_ListObjects_Call) Run ¶ added in v0.47.0
func (_c *Store_ListObjects_Call) Run(run func(ctx context.Context, prefix string)) *Store_ListObjects_Call
func (*Store_ListObjects_Call) RunAndReturn ¶ added in v0.47.0
func (_c *Store_ListObjects_Call) RunAndReturn(run func(context.Context, string) (blob.Batch, error)) *Store_ListObjects_Call
type Store_ReadOne_Call ¶
Store_ReadOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadOne'
func (*Store_ReadOne_Call) Return ¶
func (_c *Store_ReadOne_Call) Return(_a0 error) *Store_ReadOne_Call
func (*Store_ReadOne_Call) Run ¶
func (_c *Store_ReadOne_Call) Run(run func(obj *blob.Object)) *Store_ReadOne_Call
func (*Store_ReadOne_Call) RunAndReturn ¶
func (_c *Store_ReadOne_Call) RunAndReturn(run func(*blob.Object) error) *Store_ReadOne_Call
type Store_Read_Call ¶
Store_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*Store_Read_Call) Return ¶
func (_c *Store_Read_Call) Return() *Store_Read_Call
func (*Store_Read_Call) Run ¶
func (_c *Store_Read_Call) Run(run func(batch blob.Batch)) *Store_Read_Call
func (*Store_Read_Call) RunAndReturn ¶
func (_c *Store_Read_Call) RunAndReturn(run func(blob.Batch)) *Store_Read_Call
type Store_WriteOne_Call ¶
Store_WriteOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteOne'
func (*Store_WriteOne_Call) Return ¶
func (_c *Store_WriteOne_Call) Return(_a0 error) *Store_WriteOne_Call
func (*Store_WriteOne_Call) Run ¶
func (_c *Store_WriteOne_Call) Run(run func(obj *blob.Object)) *Store_WriteOne_Call
func (*Store_WriteOne_Call) RunAndReturn ¶
func (_c *Store_WriteOne_Call) RunAndReturn(run func(*blob.Object) error) *Store_WriteOne_Call
type Store_Write_Call ¶
Store_Write_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Write'
func (*Store_Write_Call) Return ¶
func (_c *Store_Write_Call) Return(_a0 error) *Store_Write_Call
func (*Store_Write_Call) Run ¶
func (_c *Store_Write_Call) Run(run func(batch blob.Batch)) *Store_Write_Call
func (*Store_Write_Call) RunAndReturn ¶
func (_c *Store_Write_Call) RunAndReturn(run func(blob.Batch) error) *Store_Write_Call
type Stream ¶
Stream is an autogenerated mock type for the Stream type
func NewStream ¶
NewStream creates a new instance of Stream. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Stream) AsReader ¶
func (_m *Stream) AsReader() blob.ReadSeekerCloser
AsReader provides a mock function with no fields
func (*Stream) EXPECT ¶
func (_m *Stream) EXPECT() *Stream_Expecter
type Stream_AsReader_Call ¶
Stream_AsReader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AsReader'
func (*Stream_AsReader_Call) Return ¶
func (_c *Stream_AsReader_Call) Return(_a0 blob.ReadSeekerCloser) *Stream_AsReader_Call
func (*Stream_AsReader_Call) Run ¶
func (_c *Stream_AsReader_Call) Run(run func()) *Stream_AsReader_Call
func (*Stream_AsReader_Call) RunAndReturn ¶
func (_c *Stream_AsReader_Call) RunAndReturn(run func() blob.ReadSeekerCloser) *Stream_AsReader_Call
type Stream_Expecter ¶
type Stream_Expecter struct {
// contains filtered or unexported fields
}
func (*Stream_Expecter) AsReader ¶
func (_e *Stream_Expecter) AsReader() *Stream_AsReader_Call
AsReader is a helper method to define mock.On call
func (*Stream_Expecter) ReadAll ¶
func (_e *Stream_Expecter) ReadAll() *Stream_ReadAll_Call
ReadAll is a helper method to define mock.On call
type Stream_ReadAll_Call ¶
Stream_ReadAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadAll'
func (*Stream_ReadAll_Call) Return ¶
func (_c *Stream_ReadAll_Call) Return(_a0 []byte, _a1 error) *Stream_ReadAll_Call
func (*Stream_ReadAll_Call) Run ¶
func (_c *Stream_ReadAll_Call) Run(run func()) *Stream_ReadAll_Call
func (*Stream_ReadAll_Call) RunAndReturn ¶
func (_c *Stream_ReadAll_Call) RunAndReturn(run func() ([]byte, error)) *Stream_ReadAll_Call
type UrlBuilder ¶
UrlBuilder is an autogenerated mock type for the UrlBuilder type
func NewUrlBuilder ¶
func NewUrlBuilder(t interface {
mock.TestingT
Cleanup(func())
}) *UrlBuilder
NewUrlBuilder creates a new instance of UrlBuilder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*UrlBuilder) EXPECT ¶
func (_m *UrlBuilder) EXPECT() *UrlBuilder_Expecter
func (*UrlBuilder) GetAbsoluteUrl ¶
func (_m *UrlBuilder) GetAbsoluteUrl(path string) (string, error)
GetAbsoluteUrl provides a mock function with given fields: path
type UrlBuilder_Expecter ¶
type UrlBuilder_Expecter struct {
// contains filtered or unexported fields
}
func (*UrlBuilder_Expecter) GetAbsoluteUrl ¶
func (_e *UrlBuilder_Expecter) GetAbsoluteUrl(path interface{}) *UrlBuilder_GetAbsoluteUrl_Call
GetAbsoluteUrl is a helper method to define mock.On call
- path string
type UrlBuilder_GetAbsoluteUrl_Call ¶
UrlBuilder_GetAbsoluteUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAbsoluteUrl'
func (*UrlBuilder_GetAbsoluteUrl_Call) Return ¶
func (_c *UrlBuilder_GetAbsoluteUrl_Call) Return(_a0 string, _a1 error) *UrlBuilder_GetAbsoluteUrl_Call
func (*UrlBuilder_GetAbsoluteUrl_Call) Run ¶
func (_c *UrlBuilder_GetAbsoluteUrl_Call) Run(run func(path string)) *UrlBuilder_GetAbsoluteUrl_Call
func (*UrlBuilder_GetAbsoluteUrl_Call) RunAndReturn ¶
func (_c *UrlBuilder_GetAbsoluteUrl_Call) RunAndReturn(run func(string) (string, error)) *UrlBuilder_GetAbsoluteUrl_Call