Documentation
¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/rancher/gitjob/pkg/git/poll (interfaces: GitFetcher)
Generated by this command:
mockgen --build_flags=--mod=mod -destination=../mocks/fetch_mock.go -package=mocks github.com/rancher/gitjob/pkg/git/poll GitFetcher
Package mocks is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: github.com/rancher/gitjob/pkg/git/poll (interfaces: Watcher)
Generated by this command:
mockgen --build_flags=--mod=mod -destination=../mocks/watch_mock.go -package=mocks github.com/rancher/gitjob/pkg/git/poll Watcher
Package mocks is a generated GoMock package.
Index ¶
- type MockGitFetcher
- type MockGitFetcherMockRecorder
- type MockWatcher
- type MockWatcherMockRecorder
- func (mr *MockWatcherMockRecorder) Finish() *gomock.Call
- func (mr *MockWatcherMockRecorder) GetSyncInterval() *gomock.Call
- func (mr *MockWatcherMockRecorder) Restart(arg0 any) *gomock.Call
- func (mr *MockWatcherMockRecorder) StartBackgroundSync(arg0 any) *gomock.Call
- func (mr *MockWatcherMockRecorder) UpdateGitJob(arg0 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockGitFetcher ¶
type MockGitFetcher struct {
// contains filtered or unexported fields
}
MockGitFetcher is a mock of GitFetcher interface.
func NewMockGitFetcher ¶
func NewMockGitFetcher(ctrl *gomock.Controller) *MockGitFetcher
NewMockGitFetcher creates a new mock instance.
func (*MockGitFetcher) EXPECT ¶
func (m *MockGitFetcher) EXPECT() *MockGitFetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockGitFetcherMockRecorder ¶
type MockGitFetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockGitFetcherMockRecorder is the mock recorder for MockGitFetcher.
func (*MockGitFetcherMockRecorder) LatestCommit ¶
func (mr *MockGitFetcherMockRecorder) LatestCommit(arg0, arg1, arg2 any) *gomock.Call
LatestCommit indicates an expected call of LatestCommit.
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) EXPECT ¶
func (m *MockWatcher) EXPECT() *MockWatcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWatcher) GetSyncInterval ¶
func (m *MockWatcher) GetSyncInterval() int
GetSyncInterval mocks base method.
func (*MockWatcher) Restart ¶
func (m *MockWatcher) Restart(arg0 context.Context)
Restart mocks base method.
func (*MockWatcher) StartBackgroundSync ¶
func (m *MockWatcher) StartBackgroundSync(arg0 context.Context)
StartBackgroundSync mocks base method.
func (*MockWatcher) UpdateGitJob ¶
func (m *MockWatcher) UpdateGitJob(arg0 v1.GitJob)
UpdateGitJob mocks base method.
type MockWatcherMockRecorder ¶
type MockWatcherMockRecorder struct {
// contains filtered or unexported fields
}
MockWatcherMockRecorder is the mock recorder for MockWatcher.
func (*MockWatcherMockRecorder) Finish ¶
func (mr *MockWatcherMockRecorder) Finish() *gomock.Call
Finish indicates an expected call of Finish.
func (*MockWatcherMockRecorder) GetSyncInterval ¶
func (mr *MockWatcherMockRecorder) GetSyncInterval() *gomock.Call
GetSyncInterval indicates an expected call of GetSyncInterval.
func (*MockWatcherMockRecorder) Restart ¶
func (mr *MockWatcherMockRecorder) Restart(arg0 any) *gomock.Call
Restart indicates an expected call of Restart.
func (*MockWatcherMockRecorder) StartBackgroundSync ¶
func (mr *MockWatcherMockRecorder) StartBackgroundSync(arg0 any) *gomock.Call
StartBackgroundSync indicates an expected call of StartBackgroundSync.
func (*MockWatcherMockRecorder) UpdateGitJob ¶
func (mr *MockWatcherMockRecorder) UpdateGitJob(arg0 any) *gomock.Call
UpdateGitJob indicates an expected call of UpdateGitJob.