mocks

package
v0.10.0-rc.17 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

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 *v1alpha1.GitRepo, 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 MockScheduledJob

type MockScheduledJob struct {
	Detail          *quartz.JobDetail
	TriggerDuration time.Duration
}

func (*MockScheduledJob) JobDetail

func (m *MockScheduledJob) JobDetail() *quartz.JobDetail

func (*MockScheduledJob) NextRunTime

func (m *MockScheduledJob) NextRunTime() int64

func (*MockScheduledJob) Trigger

func (m *MockScheduledJob) Trigger() quartz.Trigger

type MockScheduler

type MockScheduler struct {
	// contains filtered or unexported fields
}

MockScheduler is a mock of Scheduler interface.

func NewMockScheduler

func NewMockScheduler(ctrl *gomock.Controller) *MockScheduler

NewMockScheduler creates a new mock instance.

func (*MockScheduler) Clear

func (m *MockScheduler) Clear() error

Clear mocks base method.

func (*MockScheduler) DeleteJob

func (m *MockScheduler) DeleteJob(arg0 *quartz.JobKey) error

DeleteJob mocks base method.

func (*MockScheduler) EXPECT

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

func (*MockScheduler) GetJobKeys

func (m *MockScheduler) GetJobKeys(arg0 ...quartz.Matcher[quartz.ScheduledJob]) []*quartz.JobKey

GetJobKeys mocks base method.

func (*MockScheduler) GetScheduledJob

func (m *MockScheduler) GetScheduledJob(arg0 *quartz.JobKey) (quartz.ScheduledJob, error)

GetScheduledJob mocks base method.

func (*MockScheduler) IsStarted

func (m *MockScheduler) IsStarted() bool

IsStarted mocks base method.

func (*MockScheduler) PauseJob

func (m *MockScheduler) PauseJob(arg0 *quartz.JobKey) error

PauseJob mocks base method.

func (*MockScheduler) ResumeJob

func (m *MockScheduler) ResumeJob(arg0 *quartz.JobKey) error

ResumeJob mocks base method.

func (*MockScheduler) ScheduleJob

func (m *MockScheduler) ScheduleJob(arg0 *quartz.JobDetail, arg1 quartz.Trigger) error

ScheduleJob mocks base method.

func (*MockScheduler) Start

func (m *MockScheduler) Start(arg0 context.Context)

Start mocks base method.

func (*MockScheduler) Stop

func (m *MockScheduler) Stop()

Stop mocks base method.

func (*MockScheduler) Wait

func (m *MockScheduler) Wait(arg0 context.Context)

Wait mocks base method.

type MockSchedulerMockRecorder

type MockSchedulerMockRecorder struct {
	// contains filtered or unexported fields
}

MockSchedulerMockRecorder is the mock recorder for MockScheduler.

func (*MockSchedulerMockRecorder) Clear

func (mr *MockSchedulerMockRecorder) Clear() *gomock.Call

Clear indicates an expected call of Clear.

func (*MockSchedulerMockRecorder) DeleteJob

func (mr *MockSchedulerMockRecorder) DeleteJob(arg0 interface{}) *gomock.Call

DeleteJob indicates an expected call of DeleteJob.

func (*MockSchedulerMockRecorder) GetJobKeys

func (mr *MockSchedulerMockRecorder) GetJobKeys(arg0 ...interface{}) *gomock.Call

GetJobKeys indicates an expected call of GetJobKeys.

func (*MockSchedulerMockRecorder) GetScheduledJob

func (mr *MockSchedulerMockRecorder) GetScheduledJob(arg0 interface{}) *gomock.Call

GetScheduledJob indicates an expected call of GetScheduledJob.

func (*MockSchedulerMockRecorder) IsStarted

func (mr *MockSchedulerMockRecorder) IsStarted() *gomock.Call

IsStarted indicates an expected call of IsStarted.

func (*MockSchedulerMockRecorder) PauseJob

func (mr *MockSchedulerMockRecorder) PauseJob(arg0 interface{}) *gomock.Call

PauseJob indicates an expected call of PauseJob.

func (*MockSchedulerMockRecorder) ResumeJob

func (mr *MockSchedulerMockRecorder) ResumeJob(arg0 interface{}) *gomock.Call

ResumeJob indicates an expected call of ResumeJob.

func (*MockSchedulerMockRecorder) ScheduleJob

func (mr *MockSchedulerMockRecorder) ScheduleJob(arg0, arg1 interface{}) *gomock.Call

ScheduleJob indicates an expected call of ScheduleJob.

func (*MockSchedulerMockRecorder) Start

func (mr *MockSchedulerMockRecorder) Start(arg0 interface{}) *gomock.Call

Start indicates an expected call of Start.

func (*MockSchedulerMockRecorder) Stop

Stop indicates an expected call of Stop.

func (*MockSchedulerMockRecorder) Wait

func (mr *MockSchedulerMockRecorder) Wait(arg0 interface{}) *gomock.Call

Wait indicates an expected call of Wait.

Jump to

Keyboard shortcuts

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