mock

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

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

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

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.

func (*MockInstallationServiceMockRecorder) List

func (mr *MockInstallationServiceMockRecorder) List(ctx, user any) *gomock.Call

List indicates an expected call of List.

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

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

func (*MockInstallationStore) Find

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

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

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.

func (*MockInstallationStoreMockRecorder) List

func (mr *MockInstallationStoreMockRecorder) List(ctx, user any) *gomock.Call

List indicates an expected call of List.

func (*MockInstallationStoreMockRecorder) Update

func (mr *MockInstallationStoreMockRecorder) Update(ctx, installation any) *gomock.Call

Update indicates an expected call of Update.

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

func (m *MockJobStore) Create(ctx context.Context, job *core.Job) error

Create mocks base method.

func (*MockJobStore) Delete

func (m *MockJobStore) Delete(ctx context.Context, job *core.Job) error

Delete mocks base method.

func (*MockJobStore) EXPECT

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

func (*MockJobStore) Find

func (m *MockJobStore) Find(ctx context.Context, owner string, id int64) (*core.Job, error)

Find mocks base method.

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

func (m *MockJobStore) ListIncomplete(ctx context.Context, owner string) ([]*core.Job, error)

ListIncomplete mocks base method.

func (*MockJobStore) Purge

func (m *MockJobStore) Purge(ctx context.Context, before int64) error

Purge mocks base method.

func (*MockJobStore) Update

func (m *MockJobStore) Update(ctx context.Context, job *core.Job) error

Update 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.

func (*MockJobStoreMockRecorder) Purge

func (mr *MockJobStoreMockRecorder) Purge(ctx, before any) *gomock.Call

Purge indicates an expected call of Purge.

func (*MockJobStoreMockRecorder) Update

func (mr *MockJobStoreMockRecorder) Update(ctx, job any) *gomock.Call

Update indicates an expected call of Update.

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

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

func (*MockRefresher) Refresh

func (m *MockRefresher) Refresh(ctx context.Context, user *core.User, force bool) error

Refresh mocks base method.

type MockRefresherMockRecorder

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

MockRefresherMockRecorder is the mock recorder for MockRefresher.

func (*MockRefresherMockRecorder) Refresh

func (mr *MockRefresherMockRecorder) Refresh(ctx, user, force any) *gomock.Call

Refresh indicates an expected call of Refresh.

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

func (m *MockRunnerStore) Create(ctx context.Context, runner *core.Runner) error

Create mocks base method.

func (*MockRunnerStore) Delete

func (m *MockRunnerStore) Delete(ctx context.Context, runner *core.Runner) error

Delete mocks base method.

func (*MockRunnerStore) EXPECT

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

func (*MockRunnerStore) Find

func (m *MockRunnerStore) Find(ctx context.Context, name string) (*core.Runner, error)

Find mocks base method.

func (*MockRunnerStore) FindID

func (m *MockRunnerStore) FindID(ctx context.Context, id int64) (*core.Runner, error)

FindID mocks base method.

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.

func (*MockRunnerStore) Purge

func (m *MockRunnerStore) Purge(ctx context.Context, before int64) error

Purge mocks base method.

func (*MockRunnerStore) Update

func (m *MockRunnerStore) Update(ctx context.Context, runner *core.Runner) error

Update 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.

func (*MockRunnerStoreMockRecorder) Purge

func (mr *MockRunnerStoreMockRecorder) Purge(ctx, before any) *gomock.Call

Purge indicates an expected call of Purge.

func (*MockRunnerStoreMockRecorder) Update

func (mr *MockRunnerStoreMockRecorder) Update(ctx, runner any) *gomock.Call

Update indicates an expected call of Update.

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

func (m *MockScheduler) Cancelled(ctx context.Context, runnerName string) (bool, error)

Cancelled mocks base method.

func (*MockScheduler) EXPECT

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

func (*MockScheduler) Request

func (m *MockScheduler) Request(ctx context.Context, machine *core.Machine) (*core.Runner, error)

Request mocks base method.

func (*MockScheduler) Schedule

func (m *MockScheduler) Schedule(ctx context.Context, runner *core.Runner) error

Schedule mocks base method.

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.

func (*MockSchedulerMockRecorder) Request

func (mr *MockSchedulerMockRecorder) Request(ctx, machine any) *gomock.Call

Request indicates an expected call of Request.

func (*MockSchedulerMockRecorder) Schedule

func (mr *MockSchedulerMockRecorder) Schedule(ctx, runner any) *gomock.Call

Schedule indicates an expected call of Schedule.

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.

func (*MockSession) Get

func (m *MockSession) Get(arg0 *http.Request) (*core.User, error)

Get mocks base method.

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.

func (*MockSessionMockRecorder) Delete

func (mr *MockSessionMockRecorder) Delete(arg0 any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockSessionMockRecorder) Get

func (mr *MockSessionMockRecorder) Get(arg0 any) *gomock.Call

Get indicates an expected call of Get.

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

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

func (*MockUserService) Find

func (m *MockUserService) Find(ctx context.Context, access, refresh string) (*core.User, error)

Find mocks base method.

func (*MockUserService) FindEmail

func (m *MockUserService) FindEmail(ctx context.Context, user *core.User) (*core.Email, error)

FindEmail mocks base method.

func (*MockUserService) ListEmail

func (m *MockUserService) ListEmail(ctx context.Context, user *core.User) ([]*core.Email, error)

ListEmail mocks base method.

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.

func (*MockUserServiceMockRecorder) FindEmail

func (mr *MockUserServiceMockRecorder) FindEmail(ctx, user any) *gomock.Call

FindEmail indicates an expected call of FindEmail.

func (*MockUserServiceMockRecorder) ListEmail

func (mr *MockUserServiceMockRecorder) ListEmail(ctx, user any) *gomock.Call

ListEmail indicates an expected call of ListEmail.

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

func (m *MockUserStore) Create(ctx context.Context, user *core.User) error

Create mocks base method.

func (*MockUserStore) Delete

func (m *MockUserStore) Delete(ctx context.Context, user *core.User) error

Delete mocks base method.

func (*MockUserStore) EXPECT

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

func (*MockUserStore) Find

func (m *MockUserStore) Find(ctx context.Context, id int64) (*core.User, error)

Find mocks base method.

func (*MockUserStore) FindLogin

func (m *MockUserStore) FindLogin(ctx context.Context, login string) (*core.User, error)

FindLogin mocks base method.

func (*MockUserStore) FindToken

func (m *MockUserStore) FindToken(ctx context.Context, token string) (*core.User, error)

FindToken mocks base method.

func (*MockUserStore) List

func (m *MockUserStore) List(ctx context.Context, params core.UserParams) ([]*core.User, error)

List mocks base method.

func (*MockUserStore) Update

func (m *MockUserStore) Update(ctx context.Context, user *core.User) error

Update 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.

func (*MockUserStoreMockRecorder) List

func (mr *MockUserStoreMockRecorder) List(ctx, params any) *gomock.Call

List indicates an expected call of List.

func (*MockUserStoreMockRecorder) Update

func (mr *MockUserStoreMockRecorder) Update(ctx, user any) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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