Documentation
¶
Index ¶
- Variables
- type MockBucket
- func (_m *MockBucket) Attributes(ctx context.Context, name string) (objstore.ObjectAttributes, error)
- func (_m *MockBucket) Close() error
- func (_m *MockBucket) Delete(ctx context.Context, name string) error
- func (_m *MockBucket) EXPECT() *MockBucket_Expecter
- func (_m *MockBucket) Exists(ctx context.Context, name string) (bool, error)
- func (_m *MockBucket) Get(ctx context.Context, name string) (io.ReadCloser, error)
- func (_m *MockBucket) GetRange(ctx context.Context, name string, off int64, length int64) (io.ReadCloser, error)
- func (_m *MockBucket) IsAccessDeniedErr(err error) bool
- func (_m *MockBucket) IsObjNotFoundErr(err error) bool
- func (_m *MockBucket) Iter(ctx context.Context, dir string, f func(string) error, ...) error
- func (_m *MockBucket) IterWithAttributes(ctx context.Context, dir string, f func(objstore.IterObjectAttributes) error, ...) error
- func (m *MockBucket) MockAttributes(name string, attrs objstore.ObjectAttributes, err error)
- func (m *MockBucket) MockDelete(name string, err error)
- func (m *MockBucket) MockExists(name string, exists bool, err error)
- func (m *MockBucket) MockGet(name, content string, err error)
- func (m *MockBucket) MockIter(prefix string, objects []string, err error)
- func (m *MockBucket) MockIterWithCallback(prefix string, objects []string, err error, cb func())
- func (m *MockBucket) MockUpload(name string, err error)
- func (_m *MockBucket) Name() string
- func (_m *MockBucket) Provider() objstore.ObjProvider
- func (_m *MockBucket) ReaderAt(ctx context.Context, filename string) (pkgobjstore.ReaderAtCloser, error)
- func (_m *MockBucket) SupportedIterOptions() []objstore.IterOptionType
- func (_m *MockBucket) Upload(ctx context.Context, name string, r io.Reader) error
- type MockBucket_Attributes_Call
- func (_c *MockBucket_Attributes_Call) Return(_a0 objstore.ObjectAttributes, _a1 error) *MockBucket_Attributes_Call
- func (_c *MockBucket_Attributes_Call) Run(run func(ctx context.Context, name string)) *MockBucket_Attributes_Call
- func (_c *MockBucket_Attributes_Call) RunAndReturn(run func(context.Context, string) (objstore.ObjectAttributes, error)) *MockBucket_Attributes_Call
- type MockBucket_Close_Call
- type MockBucket_Delete_Call
- type MockBucket_Exists_Call
- func (_c *MockBucket_Exists_Call) Return(_a0 bool, _a1 error) *MockBucket_Exists_Call
- func (_c *MockBucket_Exists_Call) Run(run func(ctx context.Context, name string)) *MockBucket_Exists_Call
- func (_c *MockBucket_Exists_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *MockBucket_Exists_Call
- type MockBucket_Expecter
- func (_e *MockBucket_Expecter) Attributes(ctx interface{}, name interface{}) *MockBucket_Attributes_Call
- func (_e *MockBucket_Expecter) Close() *MockBucket_Close_Call
- func (_e *MockBucket_Expecter) Delete(ctx interface{}, name interface{}) *MockBucket_Delete_Call
- func (_e *MockBucket_Expecter) Exists(ctx interface{}, name interface{}) *MockBucket_Exists_Call
- func (_e *MockBucket_Expecter) Get(ctx interface{}, name interface{}) *MockBucket_Get_Call
- func (_e *MockBucket_Expecter) GetRange(ctx interface{}, name interface{}, off interface{}, length interface{}) *MockBucket_GetRange_Call
- func (_e *MockBucket_Expecter) IsAccessDeniedErr(err interface{}) *MockBucket_IsAccessDeniedErr_Call
- func (_e *MockBucket_Expecter) IsObjNotFoundErr(err interface{}) *MockBucket_IsObjNotFoundErr_Call
- func (_e *MockBucket_Expecter) Iter(ctx interface{}, dir interface{}, f interface{}, options ...interface{}) *MockBucket_Iter_Call
- func (_e *MockBucket_Expecter) IterWithAttributes(ctx interface{}, dir interface{}, f interface{}, options ...interface{}) *MockBucket_IterWithAttributes_Call
- func (_e *MockBucket_Expecter) Name() *MockBucket_Name_Call
- func (_e *MockBucket_Expecter) Provider() *MockBucket_Provider_Call
- func (_e *MockBucket_Expecter) ReaderAt(ctx interface{}, filename interface{}) *MockBucket_ReaderAt_Call
- func (_e *MockBucket_Expecter) SupportedIterOptions() *MockBucket_SupportedIterOptions_Call
- func (_e *MockBucket_Expecter) Upload(ctx interface{}, name interface{}, r interface{}) *MockBucket_Upload_Call
- type MockBucket_GetRange_Call
- func (_c *MockBucket_GetRange_Call) Return(_a0 io.ReadCloser, _a1 error) *MockBucket_GetRange_Call
- func (_c *MockBucket_GetRange_Call) Run(run func(ctx context.Context, name string, off int64, length int64)) *MockBucket_GetRange_Call
- func (_c *MockBucket_GetRange_Call) RunAndReturn(run func(context.Context, string, int64, int64) (io.ReadCloser, error)) *MockBucket_GetRange_Call
- type MockBucket_Get_Call
- func (_c *MockBucket_Get_Call) Return(_a0 io.ReadCloser, _a1 error) *MockBucket_Get_Call
- func (_c *MockBucket_Get_Call) Run(run func(ctx context.Context, name string)) *MockBucket_Get_Call
- func (_c *MockBucket_Get_Call) RunAndReturn(run func(context.Context, string) (io.ReadCloser, error)) *MockBucket_Get_Call
- type MockBucket_IsAccessDeniedErr_Call
- func (_c *MockBucket_IsAccessDeniedErr_Call) Return(_a0 bool) *MockBucket_IsAccessDeniedErr_Call
- func (_c *MockBucket_IsAccessDeniedErr_Call) Run(run func(err error)) *MockBucket_IsAccessDeniedErr_Call
- func (_c *MockBucket_IsAccessDeniedErr_Call) RunAndReturn(run func(error) bool) *MockBucket_IsAccessDeniedErr_Call
- type MockBucket_IsObjNotFoundErr_Call
- func (_c *MockBucket_IsObjNotFoundErr_Call) Return(_a0 bool) *MockBucket_IsObjNotFoundErr_Call
- func (_c *MockBucket_IsObjNotFoundErr_Call) Run(run func(err error)) *MockBucket_IsObjNotFoundErr_Call
- func (_c *MockBucket_IsObjNotFoundErr_Call) RunAndReturn(run func(error) bool) *MockBucket_IsObjNotFoundErr_Call
- type MockBucket_IterWithAttributes_Call
- type MockBucket_Iter_Call
- type MockBucket_Name_Call
- type MockBucket_Provider_Call
- type MockBucket_ReaderAt_Call
- func (_c *MockBucket_ReaderAt_Call) Return(_a0 pkgobjstore.ReaderAtCloser, _a1 error) *MockBucket_ReaderAt_Call
- func (_c *MockBucket_ReaderAt_Call) Run(run func(ctx context.Context, filename string)) *MockBucket_ReaderAt_Call
- func (_c *MockBucket_ReaderAt_Call) RunAndReturn(run func(context.Context, string) (pkgobjstore.ReaderAtCloser, error)) *MockBucket_ReaderAt_Call
- type MockBucket_SupportedIterOptions_Call
- func (_c *MockBucket_SupportedIterOptions_Call) Return(_a0 []objstore.IterOptionType) *MockBucket_SupportedIterOptions_Call
- func (_c *MockBucket_SupportedIterOptions_Call) Run(run func()) *MockBucket_SupportedIterOptions_Call
- func (_c *MockBucket_SupportedIterOptions_Call) RunAndReturn(run func() []objstore.IterOptionType) *MockBucket_SupportedIterOptions_Call
- type MockBucket_Upload_Call
- func (_c *MockBucket_Upload_Call) Return(_a0 error) *MockBucket_Upload_Call
- func (_c *MockBucket_Upload_Call) Run(run func(ctx context.Context, name string, r io.Reader)) *MockBucket_Upload_Call
- func (_c *MockBucket_Upload_Call) RunAndReturn(run func(context.Context, string, io.Reader) error) *MockBucket_Upload_Call
Constants ¶
This section is empty.
Variables ¶
var ErrObjectDoesNotExist = errors.New("object does not exist")
ErrObjectDoesNotExist is used in tests to simulate objstore.Bucket.IsObjNotFoundErr().
Functions ¶
This section is empty.
Types ¶
type MockBucket ¶
MockBucket is an autogenerated mock type for the Bucket type
func NewMockBucket ¶
func NewMockBucket(t interface { mock.TestingT Cleanup(func()) }) *MockBucket
NewMockBucket creates a new instance of MockBucket. 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 NewMockBucketWithHelper ¶ added in v1.13.0
func NewMockBucketWithHelper(t testing.TB) *MockBucket
func (*MockBucket) Attributes ¶
func (_m *MockBucket) Attributes(ctx context.Context, name string) (objstore.ObjectAttributes, error)
Attributes provides a mock function with given fields: ctx, name
func (*MockBucket) Close ¶
func (_m *MockBucket) Close() error
Close provides a mock function with given fields:
func (*MockBucket) Delete ¶
func (_m *MockBucket) Delete(ctx context.Context, name string) error
Delete provides a mock function with given fields: ctx, name
func (*MockBucket) EXPECT ¶
func (_m *MockBucket) EXPECT() *MockBucket_Expecter
func (*MockBucket) Get ¶
func (_m *MockBucket) Get(ctx context.Context, name string) (io.ReadCloser, error)
Get provides a mock function with given fields: ctx, name
func (*MockBucket) GetRange ¶
func (_m *MockBucket) GetRange(ctx context.Context, name string, off int64, length int64) (io.ReadCloser, error)
GetRange provides a mock function with given fields: ctx, name, off, length
func (*MockBucket) IsAccessDeniedErr ¶
func (_m *MockBucket) IsAccessDeniedErr(err error) bool
IsAccessDeniedErr provides a mock function with given fields: err
func (*MockBucket) IsObjNotFoundErr ¶
func (_m *MockBucket) IsObjNotFoundErr(err error) bool
IsObjNotFoundErr provides a mock function with given fields: err
func (*MockBucket) Iter ¶
func (_m *MockBucket) Iter(ctx context.Context, dir string, f func(string) error, options ...objstore.IterOption) error
Iter provides a mock function with given fields: ctx, dir, f, options
func (*MockBucket) IterWithAttributes ¶ added in v1.13.0
func (_m *MockBucket) IterWithAttributes(ctx context.Context, dir string, f func(objstore.IterObjectAttributes) error, options ...objstore.IterOption) error
IterWithAttributes provides a mock function with given fields: ctx, dir, f, options
func (*MockBucket) MockAttributes ¶ added in v1.13.0
func (m *MockBucket) MockAttributes(name string, attrs objstore.ObjectAttributes, err error)
func (*MockBucket) MockDelete ¶ added in v1.13.0
func (m *MockBucket) MockDelete(name string, err error)
func (*MockBucket) MockExists ¶ added in v1.13.0
func (m *MockBucket) MockExists(name string, exists bool, err error)
func (*MockBucket) MockGet ¶ added in v1.13.0
func (m *MockBucket) MockGet(name, content string, err error)
MockGet is a convenient method to mock Get() and Exists()
func (*MockBucket) MockIter ¶ added in v1.13.0
func (m *MockBucket) MockIter(prefix string, objects []string, err error)
func (*MockBucket) MockIterWithCallback ¶ added in v1.13.0
func (m *MockBucket) MockIterWithCallback(prefix string, objects []string, err error, cb func())
MockIterWithCallback is a convenient method to mock Iter() and get a callback called when the Iter API is called.
func (*MockBucket) MockUpload ¶ added in v1.13.0
func (m *MockBucket) MockUpload(name string, err error)
func (*MockBucket) Name ¶
func (_m *MockBucket) Name() string
Name provides a mock function with given fields:
func (*MockBucket) Provider ¶ added in v1.13.0
func (_m *MockBucket) Provider() objstore.ObjProvider
Provider provides a mock function with given fields:
func (*MockBucket) ReaderAt ¶
func (_m *MockBucket) ReaderAt(ctx context.Context, filename string) (pkgobjstore.ReaderAtCloser, error)
ReaderAt provides a mock function with given fields: ctx, filename
func (*MockBucket) SupportedIterOptions ¶ added in v1.13.0
func (_m *MockBucket) SupportedIterOptions() []objstore.IterOptionType
SupportedIterOptions provides a mock function with given fields:
type MockBucket_Attributes_Call ¶
MockBucket_Attributes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Attributes'
func (*MockBucket_Attributes_Call) Return ¶
func (_c *MockBucket_Attributes_Call) Return(_a0 objstore.ObjectAttributes, _a1 error) *MockBucket_Attributes_Call
func (*MockBucket_Attributes_Call) Run ¶
func (_c *MockBucket_Attributes_Call) Run(run func(ctx context.Context, name string)) *MockBucket_Attributes_Call
func (*MockBucket_Attributes_Call) RunAndReturn ¶
func (_c *MockBucket_Attributes_Call) RunAndReturn(run func(context.Context, string) (objstore.ObjectAttributes, error)) *MockBucket_Attributes_Call
type MockBucket_Close_Call ¶
MockBucket_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockBucket_Close_Call) Return ¶
func (_c *MockBucket_Close_Call) Return(_a0 error) *MockBucket_Close_Call
func (*MockBucket_Close_Call) Run ¶
func (_c *MockBucket_Close_Call) Run(run func()) *MockBucket_Close_Call
func (*MockBucket_Close_Call) RunAndReturn ¶
func (_c *MockBucket_Close_Call) RunAndReturn(run func() error) *MockBucket_Close_Call
type MockBucket_Delete_Call ¶
MockBucket_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockBucket_Delete_Call) Return ¶
func (_c *MockBucket_Delete_Call) Return(_a0 error) *MockBucket_Delete_Call
func (*MockBucket_Delete_Call) Run ¶
func (_c *MockBucket_Delete_Call) Run(run func(ctx context.Context, name string)) *MockBucket_Delete_Call
func (*MockBucket_Delete_Call) RunAndReturn ¶
func (_c *MockBucket_Delete_Call) RunAndReturn(run func(context.Context, string) error) *MockBucket_Delete_Call
type MockBucket_Exists_Call ¶
MockBucket_Exists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exists'
func (*MockBucket_Exists_Call) Return ¶
func (_c *MockBucket_Exists_Call) Return(_a0 bool, _a1 error) *MockBucket_Exists_Call
func (*MockBucket_Exists_Call) Run ¶
func (_c *MockBucket_Exists_Call) Run(run func(ctx context.Context, name string)) *MockBucket_Exists_Call
func (*MockBucket_Exists_Call) RunAndReturn ¶
func (_c *MockBucket_Exists_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *MockBucket_Exists_Call
type MockBucket_Expecter ¶
type MockBucket_Expecter struct {
// contains filtered or unexported fields
}
func (*MockBucket_Expecter) Attributes ¶
func (_e *MockBucket_Expecter) Attributes(ctx interface{}, name interface{}) *MockBucket_Attributes_Call
Attributes is a helper method to define mock.On call
- ctx context.Context
- name string
func (*MockBucket_Expecter) Close ¶
func (_e *MockBucket_Expecter) Close() *MockBucket_Close_Call
Close is a helper method to define mock.On call
func (*MockBucket_Expecter) Delete ¶
func (_e *MockBucket_Expecter) Delete(ctx interface{}, name interface{}) *MockBucket_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- name string
func (*MockBucket_Expecter) Exists ¶
func (_e *MockBucket_Expecter) Exists(ctx interface{}, name interface{}) *MockBucket_Exists_Call
Exists is a helper method to define mock.On call
- ctx context.Context
- name string
func (*MockBucket_Expecter) Get ¶
func (_e *MockBucket_Expecter) Get(ctx interface{}, name interface{}) *MockBucket_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- name string
func (*MockBucket_Expecter) GetRange ¶
func (_e *MockBucket_Expecter) GetRange(ctx interface{}, name interface{}, off interface{}, length interface{}) *MockBucket_GetRange_Call
GetRange is a helper method to define mock.On call
- ctx context.Context
- name string
- off int64
- length int64
func (*MockBucket_Expecter) IsAccessDeniedErr ¶
func (_e *MockBucket_Expecter) IsAccessDeniedErr(err interface{}) *MockBucket_IsAccessDeniedErr_Call
IsAccessDeniedErr is a helper method to define mock.On call
- err error
func (*MockBucket_Expecter) IsObjNotFoundErr ¶
func (_e *MockBucket_Expecter) IsObjNotFoundErr(err interface{}) *MockBucket_IsObjNotFoundErr_Call
IsObjNotFoundErr is a helper method to define mock.On call
- err error
func (*MockBucket_Expecter) Iter ¶
func (_e *MockBucket_Expecter) Iter(ctx interface{}, dir interface{}, f interface{}, options ...interface{}) *MockBucket_Iter_Call
Iter is a helper method to define mock.On call
- ctx context.Context
- dir string
- f func(string) error
- options ...objstore.IterOption
func (*MockBucket_Expecter) IterWithAttributes ¶ added in v1.13.0
func (_e *MockBucket_Expecter) IterWithAttributes(ctx interface{}, dir interface{}, f interface{}, options ...interface{}) *MockBucket_IterWithAttributes_Call
IterWithAttributes is a helper method to define mock.On call
- ctx context.Context
- dir string
- f func(objstore.IterObjectAttributes) error
- options ...objstore.IterOption
func (*MockBucket_Expecter) Name ¶
func (_e *MockBucket_Expecter) Name() *MockBucket_Name_Call
Name is a helper method to define mock.On call
func (*MockBucket_Expecter) Provider ¶ added in v1.13.0
func (_e *MockBucket_Expecter) Provider() *MockBucket_Provider_Call
Provider is a helper method to define mock.On call
func (*MockBucket_Expecter) ReaderAt ¶
func (_e *MockBucket_Expecter) ReaderAt(ctx interface{}, filename interface{}) *MockBucket_ReaderAt_Call
ReaderAt is a helper method to define mock.On call
- ctx context.Context
- filename string
func (*MockBucket_Expecter) SupportedIterOptions ¶ added in v1.13.0
func (_e *MockBucket_Expecter) SupportedIterOptions() *MockBucket_SupportedIterOptions_Call
SupportedIterOptions is a helper method to define mock.On call
func (*MockBucket_Expecter) Upload ¶
func (_e *MockBucket_Expecter) Upload(ctx interface{}, name interface{}, r interface{}) *MockBucket_Upload_Call
Upload is a helper method to define mock.On call
- ctx context.Context
- name string
- r io.Reader
type MockBucket_GetRange_Call ¶
MockBucket_GetRange_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRange'
func (*MockBucket_GetRange_Call) Return ¶
func (_c *MockBucket_GetRange_Call) Return(_a0 io.ReadCloser, _a1 error) *MockBucket_GetRange_Call
func (*MockBucket_GetRange_Call) Run ¶
func (_c *MockBucket_GetRange_Call) Run(run func(ctx context.Context, name string, off int64, length int64)) *MockBucket_GetRange_Call
func (*MockBucket_GetRange_Call) RunAndReturn ¶
func (_c *MockBucket_GetRange_Call) RunAndReturn(run func(context.Context, string, int64, int64) (io.ReadCloser, error)) *MockBucket_GetRange_Call
type MockBucket_Get_Call ¶
MockBucket_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockBucket_Get_Call) Return ¶
func (_c *MockBucket_Get_Call) Return(_a0 io.ReadCloser, _a1 error) *MockBucket_Get_Call
func (*MockBucket_Get_Call) Run ¶
func (_c *MockBucket_Get_Call) Run(run func(ctx context.Context, name string)) *MockBucket_Get_Call
func (*MockBucket_Get_Call) RunAndReturn ¶
func (_c *MockBucket_Get_Call) RunAndReturn(run func(context.Context, string) (io.ReadCloser, error)) *MockBucket_Get_Call
type MockBucket_IsAccessDeniedErr_Call ¶
MockBucket_IsAccessDeniedErr_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsAccessDeniedErr'
func (*MockBucket_IsAccessDeniedErr_Call) Return ¶
func (_c *MockBucket_IsAccessDeniedErr_Call) Return(_a0 bool) *MockBucket_IsAccessDeniedErr_Call
func (*MockBucket_IsAccessDeniedErr_Call) Run ¶
func (_c *MockBucket_IsAccessDeniedErr_Call) Run(run func(err error)) *MockBucket_IsAccessDeniedErr_Call
func (*MockBucket_IsAccessDeniedErr_Call) RunAndReturn ¶
func (_c *MockBucket_IsAccessDeniedErr_Call) RunAndReturn(run func(error) bool) *MockBucket_IsAccessDeniedErr_Call
type MockBucket_IsObjNotFoundErr_Call ¶
MockBucket_IsObjNotFoundErr_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsObjNotFoundErr'
func (*MockBucket_IsObjNotFoundErr_Call) Return ¶
func (_c *MockBucket_IsObjNotFoundErr_Call) Return(_a0 bool) *MockBucket_IsObjNotFoundErr_Call
func (*MockBucket_IsObjNotFoundErr_Call) Run ¶
func (_c *MockBucket_IsObjNotFoundErr_Call) Run(run func(err error)) *MockBucket_IsObjNotFoundErr_Call
func (*MockBucket_IsObjNotFoundErr_Call) RunAndReturn ¶
func (_c *MockBucket_IsObjNotFoundErr_Call) RunAndReturn(run func(error) bool) *MockBucket_IsObjNotFoundErr_Call
type MockBucket_IterWithAttributes_Call ¶ added in v1.13.0
MockBucket_IterWithAttributes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IterWithAttributes'
func (*MockBucket_IterWithAttributes_Call) Return ¶ added in v1.13.0
func (_c *MockBucket_IterWithAttributes_Call) Return(_a0 error) *MockBucket_IterWithAttributes_Call
func (*MockBucket_IterWithAttributes_Call) Run ¶ added in v1.13.0
func (_c *MockBucket_IterWithAttributes_Call) Run(run func(ctx context.Context, dir string, f func(objstore.IterObjectAttributes) error, options ...objstore.IterOption)) *MockBucket_IterWithAttributes_Call
func (*MockBucket_IterWithAttributes_Call) RunAndReturn ¶ added in v1.13.0
func (_c *MockBucket_IterWithAttributes_Call) RunAndReturn(run func(context.Context, string, func(objstore.IterObjectAttributes) error, ...objstore.IterOption) error) *MockBucket_IterWithAttributes_Call
type MockBucket_Iter_Call ¶
MockBucket_Iter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Iter'
func (*MockBucket_Iter_Call) Return ¶
func (_c *MockBucket_Iter_Call) Return(_a0 error) *MockBucket_Iter_Call
func (*MockBucket_Iter_Call) Run ¶
func (_c *MockBucket_Iter_Call) Run(run func(ctx context.Context, dir string, f func(string) error, options ...objstore.IterOption)) *MockBucket_Iter_Call
func (*MockBucket_Iter_Call) RunAndReturn ¶
func (_c *MockBucket_Iter_Call) RunAndReturn(run func(context.Context, string, func(string) error, ...objstore.IterOption) error) *MockBucket_Iter_Call
type MockBucket_Name_Call ¶
MockBucket_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
func (*MockBucket_Name_Call) Return ¶
func (_c *MockBucket_Name_Call) Return(_a0 string) *MockBucket_Name_Call
func (*MockBucket_Name_Call) Run ¶
func (_c *MockBucket_Name_Call) Run(run func()) *MockBucket_Name_Call
func (*MockBucket_Name_Call) RunAndReturn ¶
func (_c *MockBucket_Name_Call) RunAndReturn(run func() string) *MockBucket_Name_Call
type MockBucket_Provider_Call ¶ added in v1.13.0
MockBucket_Provider_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Provider'
func (*MockBucket_Provider_Call) Return ¶ added in v1.13.0
func (_c *MockBucket_Provider_Call) Return(_a0 objstore.ObjProvider) *MockBucket_Provider_Call
func (*MockBucket_Provider_Call) Run ¶ added in v1.13.0
func (_c *MockBucket_Provider_Call) Run(run func()) *MockBucket_Provider_Call
func (*MockBucket_Provider_Call) RunAndReturn ¶ added in v1.13.0
func (_c *MockBucket_Provider_Call) RunAndReturn(run func() objstore.ObjProvider) *MockBucket_Provider_Call
type MockBucket_ReaderAt_Call ¶
MockBucket_ReaderAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReaderAt'
func (*MockBucket_ReaderAt_Call) Return ¶
func (_c *MockBucket_ReaderAt_Call) Return(_a0 pkgobjstore.ReaderAtCloser, _a1 error) *MockBucket_ReaderAt_Call
func (*MockBucket_ReaderAt_Call) Run ¶
func (_c *MockBucket_ReaderAt_Call) Run(run func(ctx context.Context, filename string)) *MockBucket_ReaderAt_Call
func (*MockBucket_ReaderAt_Call) RunAndReturn ¶
func (_c *MockBucket_ReaderAt_Call) RunAndReturn(run func(context.Context, string) (pkgobjstore.ReaderAtCloser, error)) *MockBucket_ReaderAt_Call
type MockBucket_SupportedIterOptions_Call ¶ added in v1.13.0
MockBucket_SupportedIterOptions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SupportedIterOptions'
func (*MockBucket_SupportedIterOptions_Call) Return ¶ added in v1.13.0
func (_c *MockBucket_SupportedIterOptions_Call) Return(_a0 []objstore.IterOptionType) *MockBucket_SupportedIterOptions_Call
func (*MockBucket_SupportedIterOptions_Call) Run ¶ added in v1.13.0
func (_c *MockBucket_SupportedIterOptions_Call) Run(run func()) *MockBucket_SupportedIterOptions_Call
func (*MockBucket_SupportedIterOptions_Call) RunAndReturn ¶ added in v1.13.0
func (_c *MockBucket_SupportedIterOptions_Call) RunAndReturn(run func() []objstore.IterOptionType) *MockBucket_SupportedIterOptions_Call
type MockBucket_Upload_Call ¶
MockBucket_Upload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upload'
func (*MockBucket_Upload_Call) Return ¶
func (_c *MockBucket_Upload_Call) Return(_a0 error) *MockBucket_Upload_Call
func (*MockBucket_Upload_Call) Run ¶
func (_c *MockBucket_Upload_Call) Run(run func(ctx context.Context, name string, r io.Reader)) *MockBucket_Upload_Call
func (*MockBucket_Upload_Call) RunAndReturn ¶
func (_c *MockBucket_Upload_Call) RunAndReturn(run func(context.Context, string, io.Reader) error) *MockBucket_Upload_Call