mocks

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockGitFetcher) LatestCommit

func (m *MockGitFetcher) LatestCommit(arg0 context.Context, arg1 *v1.GitJob, arg2 client.Client) (string, error)

LatestCommit mocks base method.

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) Finish

func (m *MockWatcher) Finish()

Finish mocks base method.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL