Documentation ¶
Overview ¶
Package fake is a generated GoMock package.
Package fake is a generated GoMock package.
Index ¶
- type MockService
- func (m *MockService) ByName(arg0 string) (watcher.Watcher, error)
- func (m *MockService) Delete(arg0 context.Context, arg1, arg2 string) error
- func (m *MockService) Dispose(arg0 context.Context, arg1, arg2 string) error
- func (m *MockService) Download(arg0 context.Context, arg1, arg2, arg3 string) error
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) Watchers() []watcher.Watcher
- type MockServiceByNameCall
- func (c *MockServiceByNameCall) Do(f func(string) (watcher.Watcher, error)) *MockServiceByNameCall
- func (c *MockServiceByNameCall) DoAndReturn(f func(string) (watcher.Watcher, error)) *MockServiceByNameCall
- func (c *MockServiceByNameCall) Return(arg0 watcher.Watcher, arg1 error) *MockServiceByNameCall
- type MockServiceDeleteCall
- type MockServiceDisposeCall
- type MockServiceDownloadCall
- func (c *MockServiceDownloadCall) Do(f func(context.Context, string, string, string) error) *MockServiceDownloadCall
- func (c *MockServiceDownloadCall) DoAndReturn(f func(context.Context, string, string, string) error) *MockServiceDownloadCall
- func (c *MockServiceDownloadCall) Return(arg0 error) *MockServiceDownloadCall
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) ByName(arg0 any) *MockServiceByNameCall
- func (mr *MockServiceMockRecorder) Delete(arg0, arg1, arg2 any) *MockServiceDeleteCall
- func (mr *MockServiceMockRecorder) Dispose(arg0, arg1, arg2 any) *MockServiceDisposeCall
- func (mr *MockServiceMockRecorder) Download(arg0, arg1, arg2, arg3 any) *MockServiceDownloadCall
- func (mr *MockServiceMockRecorder) Watchers() *MockServiceWatchersCall
- type MockServiceWatchersCall
- type MockWatcher
- func (m *MockWatcher) CompletedDir() string
- func (m *MockWatcher) Download(arg0 context.Context, arg1, arg2 string) error
- func (m *MockWatcher) EXPECT() *MockWatcherMockRecorder
- func (m *MockWatcher) OpenBucket(arg0 context.Context) (*blob.Bucket, error)
- func (m *MockWatcher) Path() string
- func (m *MockWatcher) RetentionPeriod() *time.Duration
- func (m *MockWatcher) String() string
- func (m *MockWatcher) StripTopLevelDir() bool
- func (m *MockWatcher) Watch(arg0 context.Context) (*watcher.BlobEvent, watcher.Cleanup, error)
- type MockWatcherCompletedDirCall
- type MockWatcherDownloadCall
- func (c *MockWatcherDownloadCall) Do(f func(context.Context, string, string) error) *MockWatcherDownloadCall
- func (c *MockWatcherDownloadCall) DoAndReturn(f func(context.Context, string, string) error) *MockWatcherDownloadCall
- func (c *MockWatcherDownloadCall) Return(arg0 error) *MockWatcherDownloadCall
- type MockWatcherMockRecorder
- func (mr *MockWatcherMockRecorder) CompletedDir() *MockWatcherCompletedDirCall
- func (mr *MockWatcherMockRecorder) Download(arg0, arg1, arg2 any) *MockWatcherDownloadCall
- func (mr *MockWatcherMockRecorder) OpenBucket(arg0 any) *MockWatcherOpenBucketCall
- func (mr *MockWatcherMockRecorder) Path() *MockWatcherPathCall
- func (mr *MockWatcherMockRecorder) RetentionPeriod() *MockWatcherRetentionPeriodCall
- func (mr *MockWatcherMockRecorder) String() *MockWatcherStringCall
- func (mr *MockWatcherMockRecorder) StripTopLevelDir() *MockWatcherStripTopLevelDirCall
- func (mr *MockWatcherMockRecorder) Watch(arg0 any) *MockWatcherWatchCall
- type MockWatcherOpenBucketCall
- func (c *MockWatcherOpenBucketCall) Do(f func(context.Context) (*blob.Bucket, error)) *MockWatcherOpenBucketCall
- func (c *MockWatcherOpenBucketCall) DoAndReturn(f func(context.Context) (*blob.Bucket, error)) *MockWatcherOpenBucketCall
- func (c *MockWatcherOpenBucketCall) Return(arg0 *blob.Bucket, arg1 error) *MockWatcherOpenBucketCall
- type MockWatcherPathCall
- type MockWatcherRetentionPeriodCall
- func (c *MockWatcherRetentionPeriodCall) Do(f func() *time.Duration) *MockWatcherRetentionPeriodCall
- func (c *MockWatcherRetentionPeriodCall) DoAndReturn(f func() *time.Duration) *MockWatcherRetentionPeriodCall
- func (c *MockWatcherRetentionPeriodCall) Return(arg0 *time.Duration) *MockWatcherRetentionPeriodCall
- type MockWatcherStringCall
- type MockWatcherStripTopLevelDirCall
- type MockWatcherWatchCall
- func (c *MockWatcherWatchCall) Do(f func(context.Context) (*watcher.BlobEvent, watcher.Cleanup, error)) *MockWatcherWatchCall
- func (c *MockWatcherWatchCall) DoAndReturn(f func(context.Context) (*watcher.BlobEvent, watcher.Cleanup, error)) *MockWatcherWatchCall
- func (c *MockWatcherWatchCall) Return(arg0 *watcher.BlobEvent, arg1 watcher.Cleanup, arg2 error) *MockWatcherWatchCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) ByName ¶
func (m *MockService) ByName(arg0 string) (watcher.Watcher, error)
ByName mocks base method.
func (*MockService) Delete ¶
func (m *MockService) Delete(arg0 context.Context, arg1, arg2 string) error
Delete mocks base method.
func (*MockService) Dispose ¶
func (m *MockService) Dispose(arg0 context.Context, arg1, arg2 string) error
Dispose mocks base method.
func (*MockService) Download ¶
func (m *MockService) Download(arg0 context.Context, arg1, arg2, arg3 string) error
Download mocks base method.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockService) Watchers ¶
func (m *MockService) Watchers() []watcher.Watcher
Watchers mocks base method.
type MockServiceByNameCall ¶
MockServiceByNameCall wrap *gomock.Call
func (*MockServiceByNameCall) Do ¶
func (c *MockServiceByNameCall) Do(f func(string) (watcher.Watcher, error)) *MockServiceByNameCall
Do rewrite *gomock.Call.Do
func (*MockServiceByNameCall) DoAndReturn ¶
func (c *MockServiceByNameCall) DoAndReturn(f func(string) (watcher.Watcher, error)) *MockServiceByNameCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockServiceByNameCall) Return ¶
func (c *MockServiceByNameCall) Return(arg0 watcher.Watcher, arg1 error) *MockServiceByNameCall
Return rewrite *gomock.Call.Return
type MockServiceDeleteCall ¶
MockServiceDeleteCall wrap *gomock.Call
func (*MockServiceDeleteCall) Do ¶
func (c *MockServiceDeleteCall) Do(f func(context.Context, string, string) error) *MockServiceDeleteCall
Do rewrite *gomock.Call.Do
func (*MockServiceDeleteCall) DoAndReturn ¶
func (c *MockServiceDeleteCall) DoAndReturn(f func(context.Context, string, string) error) *MockServiceDeleteCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockServiceDeleteCall) Return ¶
func (c *MockServiceDeleteCall) Return(arg0 error) *MockServiceDeleteCall
Return rewrite *gomock.Call.Return
type MockServiceDisposeCall ¶
MockServiceDisposeCall wrap *gomock.Call
func (*MockServiceDisposeCall) Do ¶
func (c *MockServiceDisposeCall) Do(f func(context.Context, string, string) error) *MockServiceDisposeCall
Do rewrite *gomock.Call.Do
func (*MockServiceDisposeCall) DoAndReturn ¶
func (c *MockServiceDisposeCall) DoAndReturn(f func(context.Context, string, string) error) *MockServiceDisposeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockServiceDisposeCall) Return ¶
func (c *MockServiceDisposeCall) Return(arg0 error) *MockServiceDisposeCall
Return rewrite *gomock.Call.Return
type MockServiceDownloadCall ¶
MockServiceDownloadCall wrap *gomock.Call
func (*MockServiceDownloadCall) Do ¶
func (c *MockServiceDownloadCall) Do(f func(context.Context, string, string, string) error) *MockServiceDownloadCall
Do rewrite *gomock.Call.Do
func (*MockServiceDownloadCall) DoAndReturn ¶
func (c *MockServiceDownloadCall) DoAndReturn(f func(context.Context, string, string, string) error) *MockServiceDownloadCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockServiceDownloadCall) Return ¶
func (c *MockServiceDownloadCall) Return(arg0 error) *MockServiceDownloadCall
Return rewrite *gomock.Call.Return
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) ByName ¶
func (mr *MockServiceMockRecorder) ByName(arg0 any) *MockServiceByNameCall
ByName indicates an expected call of ByName.
func (*MockServiceMockRecorder) Delete ¶
func (mr *MockServiceMockRecorder) Delete(arg0, arg1, arg2 any) *MockServiceDeleteCall
Delete indicates an expected call of Delete.
func (*MockServiceMockRecorder) Dispose ¶
func (mr *MockServiceMockRecorder) Dispose(arg0, arg1, arg2 any) *MockServiceDisposeCall
Dispose indicates an expected call of Dispose.
func (*MockServiceMockRecorder) Download ¶
func (mr *MockServiceMockRecorder) Download(arg0, arg1, arg2, arg3 any) *MockServiceDownloadCall
Download indicates an expected call of Download.
func (*MockServiceMockRecorder) Watchers ¶
func (mr *MockServiceMockRecorder) Watchers() *MockServiceWatchersCall
Watchers indicates an expected call of Watchers.
type MockServiceWatchersCall ¶
MockServiceWatchersCall wrap *gomock.Call
func (*MockServiceWatchersCall) Do ¶
func (c *MockServiceWatchersCall) Do(f func() []watcher.Watcher) *MockServiceWatchersCall
Do rewrite *gomock.Call.Do
func (*MockServiceWatchersCall) DoAndReturn ¶
func (c *MockServiceWatchersCall) DoAndReturn(f func() []watcher.Watcher) *MockServiceWatchersCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockServiceWatchersCall) Return ¶
func (c *MockServiceWatchersCall) Return(arg0 []watcher.Watcher) *MockServiceWatchersCall
Return rewrite *gomock.Call.Return
type MockWatcher ¶
type MockWatcher struct {
// contains filtered or unexported fields
}
MockWatcher is a mock of Watcher interface.
func NewMockWatcher ¶
func NewMockWatcher(ctrl *gomock.Controller) *MockWatcher
NewMockWatcher creates a new mock instance.
func (*MockWatcher) CompletedDir ¶
func (m *MockWatcher) CompletedDir() string
CompletedDir mocks base method.
func (*MockWatcher) Download ¶
func (m *MockWatcher) Download(arg0 context.Context, arg1, arg2 string) error
Download mocks base method.
func (*MockWatcher) EXPECT ¶
func (m *MockWatcher) EXPECT() *MockWatcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWatcher) OpenBucket ¶
OpenBucket mocks base method.
func (*MockWatcher) RetentionPeriod ¶
func (m *MockWatcher) RetentionPeriod() *time.Duration
RetentionPeriod mocks base method.
func (*MockWatcher) StripTopLevelDir ¶
func (m *MockWatcher) StripTopLevelDir() bool
StripTopLevelDir mocks base method.
type MockWatcherCompletedDirCall ¶
MockWatcherCompletedDirCall wrap *gomock.Call
func (*MockWatcherCompletedDirCall) Do ¶
func (c *MockWatcherCompletedDirCall) Do(f func() string) *MockWatcherCompletedDirCall
Do rewrite *gomock.Call.Do
func (*MockWatcherCompletedDirCall) DoAndReturn ¶
func (c *MockWatcherCompletedDirCall) DoAndReturn(f func() string) *MockWatcherCompletedDirCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockWatcherCompletedDirCall) Return ¶
func (c *MockWatcherCompletedDirCall) Return(arg0 string) *MockWatcherCompletedDirCall
Return rewrite *gomock.Call.Return
type MockWatcherDownloadCall ¶
MockWatcherDownloadCall wrap *gomock.Call
func (*MockWatcherDownloadCall) Do ¶
func (c *MockWatcherDownloadCall) Do(f func(context.Context, string, string) error) *MockWatcherDownloadCall
Do rewrite *gomock.Call.Do
func (*MockWatcherDownloadCall) DoAndReturn ¶
func (c *MockWatcherDownloadCall) DoAndReturn(f func(context.Context, string, string) error) *MockWatcherDownloadCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockWatcherDownloadCall) Return ¶
func (c *MockWatcherDownloadCall) Return(arg0 error) *MockWatcherDownloadCall
Return rewrite *gomock.Call.Return
type MockWatcherMockRecorder ¶
type MockWatcherMockRecorder struct {
// contains filtered or unexported fields
}
MockWatcherMockRecorder is the mock recorder for MockWatcher.
func (*MockWatcherMockRecorder) CompletedDir ¶
func (mr *MockWatcherMockRecorder) CompletedDir() *MockWatcherCompletedDirCall
CompletedDir indicates an expected call of CompletedDir.
func (*MockWatcherMockRecorder) Download ¶
func (mr *MockWatcherMockRecorder) Download(arg0, arg1, arg2 any) *MockWatcherDownloadCall
Download indicates an expected call of Download.
func (*MockWatcherMockRecorder) OpenBucket ¶
func (mr *MockWatcherMockRecorder) OpenBucket(arg0 any) *MockWatcherOpenBucketCall
OpenBucket indicates an expected call of OpenBucket.
func (*MockWatcherMockRecorder) Path ¶
func (mr *MockWatcherMockRecorder) Path() *MockWatcherPathCall
Path indicates an expected call of Path.
func (*MockWatcherMockRecorder) RetentionPeriod ¶
func (mr *MockWatcherMockRecorder) RetentionPeriod() *MockWatcherRetentionPeriodCall
RetentionPeriod indicates an expected call of RetentionPeriod.
func (*MockWatcherMockRecorder) String ¶
func (mr *MockWatcherMockRecorder) String() *MockWatcherStringCall
String indicates an expected call of String.
func (*MockWatcherMockRecorder) StripTopLevelDir ¶
func (mr *MockWatcherMockRecorder) StripTopLevelDir() *MockWatcherStripTopLevelDirCall
StripTopLevelDir indicates an expected call of StripTopLevelDir.
func (*MockWatcherMockRecorder) Watch ¶
func (mr *MockWatcherMockRecorder) Watch(arg0 any) *MockWatcherWatchCall
Watch indicates an expected call of Watch.
type MockWatcherOpenBucketCall ¶
MockWatcherOpenBucketCall wrap *gomock.Call
func (*MockWatcherOpenBucketCall) Do ¶
func (c *MockWatcherOpenBucketCall) Do(f func(context.Context) (*blob.Bucket, error)) *MockWatcherOpenBucketCall
Do rewrite *gomock.Call.Do
func (*MockWatcherOpenBucketCall) DoAndReturn ¶
func (c *MockWatcherOpenBucketCall) DoAndReturn(f func(context.Context) (*blob.Bucket, error)) *MockWatcherOpenBucketCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockWatcherOpenBucketCall) Return ¶
func (c *MockWatcherOpenBucketCall) Return(arg0 *blob.Bucket, arg1 error) *MockWatcherOpenBucketCall
Return rewrite *gomock.Call.Return
type MockWatcherPathCall ¶
MockWatcherPathCall wrap *gomock.Call
func (*MockWatcherPathCall) Do ¶
func (c *MockWatcherPathCall) Do(f func() string) *MockWatcherPathCall
Do rewrite *gomock.Call.Do
func (*MockWatcherPathCall) DoAndReturn ¶
func (c *MockWatcherPathCall) DoAndReturn(f func() string) *MockWatcherPathCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockWatcherPathCall) Return ¶
func (c *MockWatcherPathCall) Return(arg0 string) *MockWatcherPathCall
Return rewrite *gomock.Call.Return
type MockWatcherRetentionPeriodCall ¶
MockWatcherRetentionPeriodCall wrap *gomock.Call
func (*MockWatcherRetentionPeriodCall) Do ¶
func (c *MockWatcherRetentionPeriodCall) Do(f func() *time.Duration) *MockWatcherRetentionPeriodCall
Do rewrite *gomock.Call.Do
func (*MockWatcherRetentionPeriodCall) DoAndReturn ¶
func (c *MockWatcherRetentionPeriodCall) DoAndReturn(f func() *time.Duration) *MockWatcherRetentionPeriodCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockWatcherRetentionPeriodCall) Return ¶
func (c *MockWatcherRetentionPeriodCall) Return(arg0 *time.Duration) *MockWatcherRetentionPeriodCall
Return rewrite *gomock.Call.Return
type MockWatcherStringCall ¶
MockWatcherStringCall wrap *gomock.Call
func (*MockWatcherStringCall) Do ¶
func (c *MockWatcherStringCall) Do(f func() string) *MockWatcherStringCall
Do rewrite *gomock.Call.Do
func (*MockWatcherStringCall) DoAndReturn ¶
func (c *MockWatcherStringCall) DoAndReturn(f func() string) *MockWatcherStringCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockWatcherStringCall) Return ¶
func (c *MockWatcherStringCall) Return(arg0 string) *MockWatcherStringCall
Return rewrite *gomock.Call.Return
type MockWatcherStripTopLevelDirCall ¶
MockWatcherStripTopLevelDirCall wrap *gomock.Call
func (*MockWatcherStripTopLevelDirCall) Do ¶
func (c *MockWatcherStripTopLevelDirCall) Do(f func() bool) *MockWatcherStripTopLevelDirCall
Do rewrite *gomock.Call.Do
func (*MockWatcherStripTopLevelDirCall) DoAndReturn ¶
func (c *MockWatcherStripTopLevelDirCall) DoAndReturn(f func() bool) *MockWatcherStripTopLevelDirCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockWatcherStripTopLevelDirCall) Return ¶
func (c *MockWatcherStripTopLevelDirCall) Return(arg0 bool) *MockWatcherStripTopLevelDirCall
Return rewrite *gomock.Call.Return
type MockWatcherWatchCall ¶
MockWatcherWatchCall wrap *gomock.Call
func (*MockWatcherWatchCall) Do ¶
func (c *MockWatcherWatchCall) Do(f func(context.Context) (*watcher.BlobEvent, watcher.Cleanup, error)) *MockWatcherWatchCall
Do rewrite *gomock.Call.Do
func (*MockWatcherWatchCall) DoAndReturn ¶
func (c *MockWatcherWatchCall) DoAndReturn(f func(context.Context) (*watcher.BlobEvent, watcher.Cleanup, error)) *MockWatcherWatchCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockWatcherWatchCall) Return ¶
func (c *MockWatcherWatchCall) Return(arg0 *watcher.BlobEvent, arg1 watcher.Cleanup, arg2 error) *MockWatcherWatchCall
Return rewrite *gomock.Call.Return