Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockInstallationService
- func (m *MockInstallationService) EXPECT() *MockInstallationServiceMockRecorder
- func (m *MockInstallationService) FindMembership(ctx context.Context, user *core.User, org string) (*core.Membership, error)
- func (m *MockInstallationService) List(ctx context.Context, user *core.User) ([]*core.Installation, error)
- type MockInstallationServiceMockRecorder
- type MockInstallationStore
- func (m *MockInstallationStore) Count(ctx context.Context) (int64, error)
- func (m *MockInstallationStore) Create(ctx context.Context, installation *core.Installation) error
- func (m *MockInstallationStore) Delete(ctx context.Context, installation *core.Installation) error
- func (m *MockInstallationStore) EXPECT() *MockInstallationStoreMockRecorder
- func (m *MockInstallationStore) Find(ctx context.Context, id int64) (*core.Installation, error)
- func (m *MockInstallationStore) FindLogin(ctx context.Context, login string) (*core.Installation, error)
- func (m *MockInstallationStore) List(ctx context.Context, user *core.User) ([]*core.Installation, error)
- func (m *MockInstallationStore) Update(ctx context.Context, installation *core.Installation) error
- type MockInstallationStoreMockRecorder
- func (mr *MockInstallationStoreMockRecorder) Count(ctx any) *gomock.Call
- func (mr *MockInstallationStoreMockRecorder) Create(ctx, installation any) *gomock.Call
- func (mr *MockInstallationStoreMockRecorder) Delete(ctx, installation any) *gomock.Call
- func (mr *MockInstallationStoreMockRecorder) Find(ctx, id any) *gomock.Call
- func (mr *MockInstallationStoreMockRecorder) FindLogin(ctx, login any) *gomock.Call
- func (mr *MockInstallationStoreMockRecorder) List(ctx, user any) *gomock.Call
- func (mr *MockInstallationStoreMockRecorder) Update(ctx, installation any) *gomock.Call
- type MockJobStore
- func (m *MockJobStore) Count(arg0 context.Context) (int64, error)
- func (m *MockJobStore) Create(ctx context.Context, job *core.Job) error
- func (m *MockJobStore) Delete(ctx context.Context, job *core.Job) error
- func (m *MockJobStore) EXPECT() *MockJobStoreMockRecorder
- func (m *MockJobStore) Find(ctx context.Context, owner string, id int64) (*core.Job, error)
- func (m *MockJobStore) ListCompleted(ctx context.Context, owner string, limit, offset int) ([]*core.Job, error)
- func (m *MockJobStore) ListIncomplete(ctx context.Context, owner string) ([]*core.Job, error)
- func (m *MockJobStore) Purge(ctx context.Context, before int64) error
- func (m *MockJobStore) Update(ctx context.Context, job *core.Job) error
- type MockJobStoreMockRecorder
- func (mr *MockJobStoreMockRecorder) Count(arg0 any) *gomock.Call
- func (mr *MockJobStoreMockRecorder) Create(ctx, job any) *gomock.Call
- func (mr *MockJobStoreMockRecorder) Delete(ctx, job any) *gomock.Call
- func (mr *MockJobStoreMockRecorder) Find(ctx, owner, id any) *gomock.Call
- func (mr *MockJobStoreMockRecorder) ListCompleted(ctx, owner, limit, offset any) *gomock.Call
- func (mr *MockJobStoreMockRecorder) ListIncomplete(ctx, owner any) *gomock.Call
- func (mr *MockJobStoreMockRecorder) Purge(ctx, before any) *gomock.Call
- func (mr *MockJobStoreMockRecorder) Update(ctx, job any) *gomock.Call
- type MockRefresher
- type MockRefresherMockRecorder
- type MockRunnerStore
- func (m *MockRunnerStore) Create(ctx context.Context, runner *core.Runner) error
- func (m *MockRunnerStore) Delete(ctx context.Context, runner *core.Runner) error
- func (m *MockRunnerStore) EXPECT() *MockRunnerStoreMockRecorder
- func (m *MockRunnerStore) Find(ctx context.Context, name string) (*core.Runner, error)
- func (m *MockRunnerStore) FindID(ctx context.Context, id int64) (*core.Runner, error)
- func (m *MockRunnerStore) ListMachine(arg0 context.Context, arg1 *core.Machine) ([]*core.Runner, error)
- func (m *MockRunnerStore) ListStatus(ctx context.Context, status core.RunnerStatus) ([]*core.Runner, error)
- func (m *MockRunnerStore) Purge(ctx context.Context, before int64) error
- func (m *MockRunnerStore) Update(ctx context.Context, runner *core.Runner) error
- type MockRunnerStoreMockRecorder
- func (mr *MockRunnerStoreMockRecorder) Create(ctx, runner any) *gomock.Call
- func (mr *MockRunnerStoreMockRecorder) Delete(ctx, runner any) *gomock.Call
- func (mr *MockRunnerStoreMockRecorder) Find(ctx, name any) *gomock.Call
- func (mr *MockRunnerStoreMockRecorder) FindID(ctx, id any) *gomock.Call
- func (mr *MockRunnerStoreMockRecorder) ListMachine(arg0, arg1 any) *gomock.Call
- func (mr *MockRunnerStoreMockRecorder) ListStatus(ctx, status any) *gomock.Call
- func (mr *MockRunnerStoreMockRecorder) Purge(ctx, before any) *gomock.Call
- func (mr *MockRunnerStoreMockRecorder) Update(ctx, runner any) *gomock.Call
- type MockScheduler
- func (m *MockScheduler) Cancel(ctx context.Context, runnerName string) error
- func (m *MockScheduler) Cancelled(ctx context.Context, runnerName string) (bool, error)
- func (m *MockScheduler) EXPECT() *MockSchedulerMockRecorder
- func (m *MockScheduler) Request(ctx context.Context, machine *core.Machine) (*core.Runner, error)
- func (m *MockScheduler) Schedule(ctx context.Context, runner *core.Runner) error
- type MockSchedulerMockRecorder
- func (mr *MockSchedulerMockRecorder) Cancel(ctx, runnerName any) *gomock.Call
- func (mr *MockSchedulerMockRecorder) Cancelled(ctx, runnerName any) *gomock.Call
- func (mr *MockSchedulerMockRecorder) Request(ctx, machine any) *gomock.Call
- func (mr *MockSchedulerMockRecorder) Schedule(ctx, runner any) *gomock.Call
- type MockSession
- type MockSessionMockRecorder
- type MockUserService
- func (m *MockUserService) EXPECT() *MockUserServiceMockRecorder
- func (m *MockUserService) Find(ctx context.Context, access, refresh string) (*core.User, error)
- func (m *MockUserService) FindEmail(ctx context.Context, user *core.User) (*core.Email, error)
- func (m *MockUserService) ListEmail(ctx context.Context, user *core.User) ([]*core.Email, error)
- type MockUserServiceMockRecorder
- type MockUserStore
- func (m *MockUserStore) Count(arg0 context.Context) (int64, error)
- func (m *MockUserStore) Create(ctx context.Context, user *core.User) error
- func (m *MockUserStore) Delete(ctx context.Context, user *core.User) error
- func (m *MockUserStore) EXPECT() *MockUserStoreMockRecorder
- func (m *MockUserStore) Find(ctx context.Context, id int64) (*core.User, error)
- func (m *MockUserStore) FindLogin(ctx context.Context, login string) (*core.User, error)
- func (m *MockUserStore) FindToken(ctx context.Context, token string) (*core.User, error)
- func (m *MockUserStore) List(ctx context.Context, params core.UserParams) ([]*core.User, error)
- func (m *MockUserStore) Update(ctx context.Context, user *core.User) error
- type MockUserStoreMockRecorder
- func (mr *MockUserStoreMockRecorder) Count(arg0 any) *gomock.Call
- func (mr *MockUserStoreMockRecorder) Create(ctx, user any) *gomock.Call
- func (mr *MockUserStoreMockRecorder) Delete(ctx, user any) *gomock.Call
- func (mr *MockUserStoreMockRecorder) Find(ctx, id any) *gomock.Call
- func (mr *MockUserStoreMockRecorder) FindLogin(ctx, login any) *gomock.Call
- func (mr *MockUserStoreMockRecorder) FindToken(ctx, token any) *gomock.Call
- func (mr *MockUserStoreMockRecorder) List(ctx, params any) *gomock.Call
- func (mr *MockUserStoreMockRecorder) Update(ctx, user any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInstallationService ¶
type MockInstallationService struct {
// contains filtered or unexported fields
}
MockInstallationService is a mock of InstallationService interface.
func NewMockInstallationService ¶
func NewMockInstallationService(ctrl *gomock.Controller) *MockInstallationService
NewMockInstallationService creates a new mock instance.
func (*MockInstallationService) EXPECT ¶
func (m *MockInstallationService) EXPECT() *MockInstallationServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInstallationService) FindMembership ¶
func (m *MockInstallationService) FindMembership(ctx context.Context, user *core.User, org string) (*core.Membership, error)
FindMembership mocks base method.
func (*MockInstallationService) List ¶
func (m *MockInstallationService) List(ctx context.Context, user *core.User) ([]*core.Installation, error)
List mocks base method.
type MockInstallationServiceMockRecorder ¶
type MockInstallationServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockInstallationServiceMockRecorder is the mock recorder for MockInstallationService.
func (*MockInstallationServiceMockRecorder) FindMembership ¶
func (mr *MockInstallationServiceMockRecorder) FindMembership(ctx, user, org any) *gomock.Call
FindMembership indicates an expected call of FindMembership.
type MockInstallationStore ¶
type MockInstallationStore struct {
// contains filtered or unexported fields
}
MockInstallationStore is a mock of InstallationStore interface.
func NewMockInstallationStore ¶
func NewMockInstallationStore(ctrl *gomock.Controller) *MockInstallationStore
NewMockInstallationStore creates a new mock instance.
func (*MockInstallationStore) Count ¶ added in v0.2.0
func (m *MockInstallationStore) Count(ctx context.Context) (int64, error)
Count mocks base method.
func (*MockInstallationStore) Create ¶
func (m *MockInstallationStore) Create(ctx context.Context, installation *core.Installation) error
Create mocks base method.
func (*MockInstallationStore) Delete ¶
func (m *MockInstallationStore) Delete(ctx context.Context, installation *core.Installation) error
Delete mocks base method.
func (*MockInstallationStore) EXPECT ¶
func (m *MockInstallationStore) EXPECT() *MockInstallationStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInstallationStore) Find ¶
func (m *MockInstallationStore) Find(ctx context.Context, id int64) (*core.Installation, error)
Find mocks base method.
func (*MockInstallationStore) FindLogin ¶
func (m *MockInstallationStore) FindLogin(ctx context.Context, login string) (*core.Installation, error)
FindLogin mocks base method.
func (*MockInstallationStore) List ¶
func (m *MockInstallationStore) List(ctx context.Context, user *core.User) ([]*core.Installation, error)
List mocks base method.
func (*MockInstallationStore) Update ¶
func (m *MockInstallationStore) Update(ctx context.Context, installation *core.Installation) error
Update mocks base method.
type MockInstallationStoreMockRecorder ¶
type MockInstallationStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockInstallationStoreMockRecorder is the mock recorder for MockInstallationStore.
func (*MockInstallationStoreMockRecorder) Count ¶ added in v0.2.0
func (mr *MockInstallationStoreMockRecorder) Count(ctx any) *gomock.Call
Count indicates an expected call of Count.
func (*MockInstallationStoreMockRecorder) Create ¶
func (mr *MockInstallationStoreMockRecorder) Create(ctx, installation any) *gomock.Call
Create indicates an expected call of Create.
func (*MockInstallationStoreMockRecorder) Delete ¶
func (mr *MockInstallationStoreMockRecorder) Delete(ctx, installation any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockInstallationStoreMockRecorder) Find ¶
func (mr *MockInstallationStoreMockRecorder) Find(ctx, id any) *gomock.Call
Find indicates an expected call of Find.
func (*MockInstallationStoreMockRecorder) FindLogin ¶
func (mr *MockInstallationStoreMockRecorder) FindLogin(ctx, login any) *gomock.Call
FindLogin indicates an expected call of FindLogin.
type MockJobStore ¶
type MockJobStore struct {
// contains filtered or unexported fields
}
MockJobStore is a mock of JobStore interface.
func NewMockJobStore ¶
func NewMockJobStore(ctrl *gomock.Controller) *MockJobStore
NewMockJobStore creates a new mock instance.
func (*MockJobStore) Count ¶
func (m *MockJobStore) Count(arg0 context.Context) (int64, error)
Count mocks base method.
func (*MockJobStore) EXPECT ¶
func (m *MockJobStore) EXPECT() *MockJobStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockJobStore) ListCompleted ¶
func (m *MockJobStore) ListCompleted(ctx context.Context, owner string, limit, offset int) ([]*core.Job, error)
ListCompleted mocks base method.
func (*MockJobStore) ListIncomplete ¶
ListIncomplete mocks base method.
type MockJobStoreMockRecorder ¶
type MockJobStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockJobStoreMockRecorder is the mock recorder for MockJobStore.
func (*MockJobStoreMockRecorder) Count ¶
func (mr *MockJobStoreMockRecorder) Count(arg0 any) *gomock.Call
Count indicates an expected call of Count.
func (*MockJobStoreMockRecorder) Create ¶
func (mr *MockJobStoreMockRecorder) Create(ctx, job any) *gomock.Call
Create indicates an expected call of Create.
func (*MockJobStoreMockRecorder) Delete ¶
func (mr *MockJobStoreMockRecorder) Delete(ctx, job any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockJobStoreMockRecorder) Find ¶
func (mr *MockJobStoreMockRecorder) Find(ctx, owner, id any) *gomock.Call
Find indicates an expected call of Find.
func (*MockJobStoreMockRecorder) ListCompleted ¶
func (mr *MockJobStoreMockRecorder) ListCompleted(ctx, owner, limit, offset any) *gomock.Call
ListCompleted indicates an expected call of ListCompleted.
func (*MockJobStoreMockRecorder) ListIncomplete ¶
func (mr *MockJobStoreMockRecorder) ListIncomplete(ctx, owner any) *gomock.Call
ListIncomplete indicates an expected call of ListIncomplete.
type MockRefresher ¶
type MockRefresher struct {
// contains filtered or unexported fields
}
MockRefresher is a mock of Refresher interface.
func NewMockRefresher ¶
func NewMockRefresher(ctrl *gomock.Controller) *MockRefresher
NewMockRefresher creates a new mock instance.
func (*MockRefresher) EXPECT ¶
func (m *MockRefresher) EXPECT() *MockRefresherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRefresherMockRecorder ¶
type MockRefresherMockRecorder struct {
// contains filtered or unexported fields
}
MockRefresherMockRecorder is the mock recorder for MockRefresher.
type MockRunnerStore ¶
type MockRunnerStore struct {
// contains filtered or unexported fields
}
MockRunnerStore is a mock of RunnerStore interface.
func NewMockRunnerStore ¶
func NewMockRunnerStore(ctrl *gomock.Controller) *MockRunnerStore
NewMockRunnerStore creates a new mock instance.
func (*MockRunnerStore) EXPECT ¶
func (m *MockRunnerStore) EXPECT() *MockRunnerStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRunnerStore) ListMachine ¶
func (m *MockRunnerStore) ListMachine(arg0 context.Context, arg1 *core.Machine) ([]*core.Runner, error)
ListMachine mocks base method.
func (*MockRunnerStore) ListStatus ¶ added in v0.2.0
func (m *MockRunnerStore) ListStatus(ctx context.Context, status core.RunnerStatus) ([]*core.Runner, error)
ListStatus mocks base method.
type MockRunnerStoreMockRecorder ¶
type MockRunnerStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockRunnerStoreMockRecorder is the mock recorder for MockRunnerStore.
func (*MockRunnerStoreMockRecorder) Create ¶
func (mr *MockRunnerStoreMockRecorder) Create(ctx, runner any) *gomock.Call
Create indicates an expected call of Create.
func (*MockRunnerStoreMockRecorder) Delete ¶
func (mr *MockRunnerStoreMockRecorder) Delete(ctx, runner any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockRunnerStoreMockRecorder) Find ¶
func (mr *MockRunnerStoreMockRecorder) Find(ctx, name any) *gomock.Call
Find indicates an expected call of Find.
func (*MockRunnerStoreMockRecorder) FindID ¶
func (mr *MockRunnerStoreMockRecorder) FindID(ctx, id any) *gomock.Call
FindID indicates an expected call of FindID.
func (*MockRunnerStoreMockRecorder) ListMachine ¶
func (mr *MockRunnerStoreMockRecorder) ListMachine(arg0, arg1 any) *gomock.Call
ListMachine indicates an expected call of ListMachine.
func (*MockRunnerStoreMockRecorder) ListStatus ¶ added in v0.2.0
func (mr *MockRunnerStoreMockRecorder) ListStatus(ctx, status any) *gomock.Call
ListStatus indicates an expected call of ListStatus.
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) Cancel ¶
func (m *MockScheduler) Cancel(ctx context.Context, runnerName string) error
Cancel mocks base method.
func (*MockScheduler) EXPECT ¶
func (m *MockScheduler) EXPECT() *MockSchedulerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSchedulerMockRecorder ¶
type MockSchedulerMockRecorder struct {
// contains filtered or unexported fields
}
MockSchedulerMockRecorder is the mock recorder for MockScheduler.
func (*MockSchedulerMockRecorder) Cancel ¶
func (mr *MockSchedulerMockRecorder) Cancel(ctx, runnerName any) *gomock.Call
Cancel indicates an expected call of Cancel.
func (*MockSchedulerMockRecorder) Cancelled ¶
func (mr *MockSchedulerMockRecorder) Cancelled(ctx, runnerName any) *gomock.Call
Cancelled indicates an expected call of Cancelled.
type MockSession ¶
type MockSession struct {
// contains filtered or unexported fields
}
MockSession is a mock of Session interface.
func NewMockSession ¶
func NewMockSession(ctrl *gomock.Controller) *MockSession
NewMockSession creates a new mock instance.
func (*MockSession) Create ¶
func (m *MockSession) Create(arg0 http.ResponseWriter, arg1 *core.User) error
Create mocks base method.
func (*MockSession) Delete ¶
func (m *MockSession) Delete(arg0 http.ResponseWriter) error
Delete mocks base method.
func (*MockSession) EXPECT ¶
func (m *MockSession) EXPECT() *MockSessionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSessionMockRecorder ¶
type MockSessionMockRecorder struct {
// contains filtered or unexported fields
}
MockSessionMockRecorder is the mock recorder for MockSession.
func (*MockSessionMockRecorder) Create ¶
func (mr *MockSessionMockRecorder) Create(arg0, arg1 any) *gomock.Call
Create indicates an expected call of Create.
type MockUserService ¶
type MockUserService struct {
// contains filtered or unexported fields
}
MockUserService is a mock of UserService interface.
func NewMockUserService ¶
func NewMockUserService(ctrl *gomock.Controller) *MockUserService
NewMockUserService creates a new mock instance.
func (*MockUserService) EXPECT ¶
func (m *MockUserService) EXPECT() *MockUserServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUserServiceMockRecorder ¶
type MockUserServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockUserServiceMockRecorder is the mock recorder for MockUserService.
func (*MockUserServiceMockRecorder) Find ¶
func (mr *MockUserServiceMockRecorder) Find(ctx, access, refresh any) *gomock.Call
Find indicates an expected call of Find.
type MockUserStore ¶
type MockUserStore struct {
// contains filtered or unexported fields
}
MockUserStore is a mock of UserStore interface.
func NewMockUserStore ¶
func NewMockUserStore(ctrl *gomock.Controller) *MockUserStore
NewMockUserStore creates a new mock instance.
func (*MockUserStore) Count ¶
func (m *MockUserStore) Count(arg0 context.Context) (int64, error)
Count mocks base method.
func (*MockUserStore) EXPECT ¶
func (m *MockUserStore) EXPECT() *MockUserStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserStore) List ¶
func (m *MockUserStore) List(ctx context.Context, params core.UserParams) ([]*core.User, error)
List mocks base method.
type MockUserStoreMockRecorder ¶
type MockUserStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockUserStoreMockRecorder is the mock recorder for MockUserStore.
func (*MockUserStoreMockRecorder) Count ¶
func (mr *MockUserStoreMockRecorder) Count(arg0 any) *gomock.Call
Count indicates an expected call of Count.
func (*MockUserStoreMockRecorder) Create ¶
func (mr *MockUserStoreMockRecorder) Create(ctx, user any) *gomock.Call
Create indicates an expected call of Create.
func (*MockUserStoreMockRecorder) Delete ¶
func (mr *MockUserStoreMockRecorder) Delete(ctx, user any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockUserStoreMockRecorder) Find ¶
func (mr *MockUserStoreMockRecorder) Find(ctx, id any) *gomock.Call
Find indicates an expected call of Find.
func (*MockUserStoreMockRecorder) FindLogin ¶
func (mr *MockUserStoreMockRecorder) FindLogin(ctx, login any) *gomock.Call
FindLogin indicates an expected call of FindLogin.
func (*MockUserStoreMockRecorder) FindToken ¶
func (mr *MockUserStoreMockRecorder) FindToken(ctx, token any) *gomock.Call
FindToken indicates an expected call of FindToken.