Documentation ¶
Overview ¶
Package mock_manager is a generated GoMock package.
Package mock_manager is a generated GoMock package.
Index ¶
- type MockCheckManager
- func (m *MockCheckManager) Create(ctx context.Context, check *models.Check) (*models.Check, error)
- func (m *MockCheckManager) CreateCheckRun(ctx context.Context, checkRun *models.CheckRun) (*models.CheckRun, error)
- func (m *MockCheckManager) EXPECT() *MockCheckManagerMockRecorder
- func (m *MockCheckManager) GetByResource(ctx context.Context, resources ...common.Resource) ([]*models.Check, error)
- func (m *MockCheckManager) GetCheckRunByID(ctx context.Context, checkRunID uint) (*models.CheckRun, error)
- func (m *MockCheckManager) ListCheckRuns(ctx context.Context, pipelinerunID uint) ([]*models.CheckRun, error)
- func (m *MockCheckManager) UpdateByID(ctx context.Context, checkRunID uint, newCheckRun *models.CheckRun) error
- type MockCheckManagerMockRecorder
- func (mr *MockCheckManagerMockRecorder) Create(ctx, check interface{}) *gomock.Call
- func (mr *MockCheckManagerMockRecorder) CreateCheckRun(ctx, checkRun interface{}) *gomock.Call
- func (mr *MockCheckManagerMockRecorder) GetByResource(ctx interface{}, resources ...interface{}) *gomock.Call
- func (mr *MockCheckManagerMockRecorder) GetCheckRunByID(ctx, checkRunID interface{}) *gomock.Call
- func (mr *MockCheckManagerMockRecorder) ListCheckRuns(ctx, pipelinerunID interface{}) *gomock.Call
- func (mr *MockCheckManagerMockRecorder) UpdateByID(ctx, checkRunID, newCheckRun interface{}) *gomock.Call
- type MockPipelineRunManager
- func (m *MockPipelineRunManager) Create(ctx context.Context, pipelinerun *models.Pipelinerun) (*models.Pipelinerun, error)
- func (m *MockPipelineRunManager) DeleteByClusterID(ctx context.Context, clusterID uint) error
- func (m *MockPipelineRunManager) DeleteByID(ctx context.Context, pipelinerunID uint) error
- func (m *MockPipelineRunManager) EXPECT() *MockPipelineRunManagerMockRecorder
- func (m *MockPipelineRunManager) GetByCIEventID(ctx context.Context, ciEventID string) (*models.Pipelinerun, error)
- func (m *MockPipelineRunManager) GetByClusterID(ctx context.Context, clusterID uint, canRollback bool, query q.Query) (int, []*models.Pipelinerun, error)
- func (m *MockPipelineRunManager) GetByID(ctx context.Context, pipelinerunID uint) (*models.Pipelinerun, error)
- func (m *MockPipelineRunManager) GetFirstCanRollbackPipelinerun(ctx context.Context, clusterID uint) (*models.Pipelinerun, error)
- func (m *MockPipelineRunManager) GetLatestByClusterIDAndActionAndStatus(ctx context.Context, clusterID uint, action, status string) (*models.Pipelinerun, error)
- func (m *MockPipelineRunManager) GetLatestByClusterIDAndActions(ctx context.Context, clusterID uint, actions ...string) (*models.Pipelinerun, error)
- func (m *MockPipelineRunManager) GetLatestSuccessByClusterID(ctx context.Context, clusterID uint) (*models.Pipelinerun, error)
- func (m *MockPipelineRunManager) UpdateCIEventIDByID(ctx context.Context, pipelinerunID uint, ciEventID string) error
- func (m *MockPipelineRunManager) UpdateColumns(ctx context.Context, pipelinerunID uint, columns map[string]interface{}) error
- func (m *MockPipelineRunManager) UpdateConfigCommitByID(ctx context.Context, pipelinerunID uint, commit string) error
- func (m *MockPipelineRunManager) UpdateResultByID(ctx context.Context, pipelinerunID uint, result *models.Result) error
- func (m *MockPipelineRunManager) UpdateStatusByID(ctx context.Context, pipelinerunID uint, result models.PipelineStatus) error
- type MockPipelineRunManagerMockRecorder
- func (mr *MockPipelineRunManagerMockRecorder) Create(ctx, pipelinerun interface{}) *gomock.Call
- func (mr *MockPipelineRunManagerMockRecorder) DeleteByClusterID(ctx, clusterID interface{}) *gomock.Call
- func (mr *MockPipelineRunManagerMockRecorder) DeleteByID(ctx, pipelinerunID interface{}) *gomock.Call
- func (mr *MockPipelineRunManagerMockRecorder) GetByCIEventID(ctx, ciEventID interface{}) *gomock.Call
- func (mr *MockPipelineRunManagerMockRecorder) GetByClusterID(ctx, clusterID, canRollback, query interface{}) *gomock.Call
- func (mr *MockPipelineRunManagerMockRecorder) GetByID(ctx, pipelinerunID interface{}) *gomock.Call
- func (mr *MockPipelineRunManagerMockRecorder) GetFirstCanRollbackPipelinerun(ctx, clusterID interface{}) *gomock.Call
- func (mr *MockPipelineRunManagerMockRecorder) GetLatestByClusterIDAndActionAndStatus(ctx, clusterID, action, status interface{}) *gomock.Call
- func (mr *MockPipelineRunManagerMockRecorder) GetLatestByClusterIDAndActions(ctx, clusterID interface{}, actions ...interface{}) *gomock.Call
- func (mr *MockPipelineRunManagerMockRecorder) GetLatestSuccessByClusterID(ctx, clusterID interface{}) *gomock.Call
- func (mr *MockPipelineRunManagerMockRecorder) UpdateCIEventIDByID(ctx, pipelinerunID, ciEventID interface{}) *gomock.Call
- func (mr *MockPipelineRunManagerMockRecorder) UpdateColumns(ctx, pipelinerunID, columns interface{}) *gomock.Call
- func (mr *MockPipelineRunManagerMockRecorder) UpdateConfigCommitByID(ctx, pipelinerunID, commit interface{}) *gomock.Call
- func (mr *MockPipelineRunManagerMockRecorder) UpdateResultByID(ctx, pipelinerunID, result interface{}) *gomock.Call
- func (mr *MockPipelineRunManagerMockRecorder) UpdateStatusByID(ctx, pipelinerunID, result interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCheckManager ¶
type MockCheckManager struct {
// contains filtered or unexported fields
}
MockCheckManager is a mock of CheckManager interface.
func NewMockCheckManager ¶
func NewMockCheckManager(ctrl *gomock.Controller) *MockCheckManager
NewMockCheckManager creates a new mock instance.
func (*MockCheckManager) CreateCheckRun ¶
func (m *MockCheckManager) CreateCheckRun(ctx context.Context, checkRun *models.CheckRun) (*models.CheckRun, error)
CreateCheckRun mocks base method.
func (*MockCheckManager) EXPECT ¶
func (m *MockCheckManager) EXPECT() *MockCheckManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCheckManager) GetByResource ¶
func (m *MockCheckManager) GetByResource(ctx context.Context, resources ...common.Resource) ([]*models.Check, error)
GetByResource mocks base method.
func (*MockCheckManager) GetCheckRunByID ¶
func (m *MockCheckManager) GetCheckRunByID(ctx context.Context, checkRunID uint) (*models.CheckRun, error)
GetCheckRunByID mocks base method.
func (*MockCheckManager) ListCheckRuns ¶
func (m *MockCheckManager) ListCheckRuns(ctx context.Context, pipelinerunID uint) ([]*models.CheckRun, error)
ListCheckRuns mocks base method.
func (*MockCheckManager) UpdateByID ¶
func (m *MockCheckManager) UpdateByID(ctx context.Context, checkRunID uint, newCheckRun *models.CheckRun) error
UpdateByID mocks base method.
type MockCheckManagerMockRecorder ¶
type MockCheckManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockCheckManagerMockRecorder is the mock recorder for MockCheckManager.
func (*MockCheckManagerMockRecorder) Create ¶
func (mr *MockCheckManagerMockRecorder) Create(ctx, check interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockCheckManagerMockRecorder) CreateCheckRun ¶
func (mr *MockCheckManagerMockRecorder) CreateCheckRun(ctx, checkRun interface{}) *gomock.Call
CreateCheckRun indicates an expected call of CreateCheckRun.
func (*MockCheckManagerMockRecorder) GetByResource ¶
func (mr *MockCheckManagerMockRecorder) GetByResource(ctx interface{}, resources ...interface{}) *gomock.Call
GetByResource indicates an expected call of GetByResource.
func (*MockCheckManagerMockRecorder) GetCheckRunByID ¶
func (mr *MockCheckManagerMockRecorder) GetCheckRunByID(ctx, checkRunID interface{}) *gomock.Call
GetCheckRunByID indicates an expected call of GetCheckRunByID.
func (*MockCheckManagerMockRecorder) ListCheckRuns ¶
func (mr *MockCheckManagerMockRecorder) ListCheckRuns(ctx, pipelinerunID interface{}) *gomock.Call
ListCheckRuns indicates an expected call of ListCheckRuns.
func (*MockCheckManagerMockRecorder) UpdateByID ¶
func (mr *MockCheckManagerMockRecorder) UpdateByID(ctx, checkRunID, newCheckRun interface{}) *gomock.Call
UpdateByID indicates an expected call of UpdateByID.
type MockPipelineRunManager ¶
type MockPipelineRunManager struct {
// contains filtered or unexported fields
}
MockPipelineRunManager is a mock of PipelineRunManager interface.
func NewMockPipelineRunManager ¶
func NewMockPipelineRunManager(ctrl *gomock.Controller) *MockPipelineRunManager
NewMockPipelineRunManager creates a new mock instance.
func (*MockPipelineRunManager) Create ¶
func (m *MockPipelineRunManager) Create(ctx context.Context, pipelinerun *models.Pipelinerun) (*models.Pipelinerun, error)
Create mocks base method.
func (*MockPipelineRunManager) DeleteByClusterID ¶
func (m *MockPipelineRunManager) DeleteByClusterID(ctx context.Context, clusterID uint) error
DeleteByClusterID mocks base method.
func (*MockPipelineRunManager) DeleteByID ¶
func (m *MockPipelineRunManager) DeleteByID(ctx context.Context, pipelinerunID uint) error
DeleteByID mocks base method.
func (*MockPipelineRunManager) EXPECT ¶
func (m *MockPipelineRunManager) EXPECT() *MockPipelineRunManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPipelineRunManager) GetByCIEventID ¶
func (m *MockPipelineRunManager) GetByCIEventID(ctx context.Context, ciEventID string) (*models.Pipelinerun, error)
GetByCIEventID mocks base method.
func (*MockPipelineRunManager) GetByClusterID ¶
func (m *MockPipelineRunManager) GetByClusterID(ctx context.Context, clusterID uint, canRollback bool, query q.Query) (int, []*models.Pipelinerun, error)
GetByClusterID mocks base method.
func (*MockPipelineRunManager) GetByID ¶
func (m *MockPipelineRunManager) GetByID(ctx context.Context, pipelinerunID uint) (*models.Pipelinerun, error)
GetByID mocks base method.
func (*MockPipelineRunManager) GetFirstCanRollbackPipelinerun ¶
func (m *MockPipelineRunManager) GetFirstCanRollbackPipelinerun(ctx context.Context, clusterID uint) (*models.Pipelinerun, error)
GetFirstCanRollbackPipelinerun mocks base method.
func (*MockPipelineRunManager) GetLatestByClusterIDAndActionAndStatus ¶
func (m *MockPipelineRunManager) GetLatestByClusterIDAndActionAndStatus(ctx context.Context, clusterID uint, action, status string) (*models.Pipelinerun, error)
GetLatestByClusterIDAndActionAndStatus mocks base method.
func (*MockPipelineRunManager) GetLatestByClusterIDAndActions ¶
func (m *MockPipelineRunManager) GetLatestByClusterIDAndActions(ctx context.Context, clusterID uint, actions ...string) (*models.Pipelinerun, error)
GetLatestByClusterIDAndActions mocks base method.
func (*MockPipelineRunManager) GetLatestSuccessByClusterID ¶
func (m *MockPipelineRunManager) GetLatestSuccessByClusterID(ctx context.Context, clusterID uint) (*models.Pipelinerun, error)
GetLatestSuccessByClusterID mocks base method.
func (*MockPipelineRunManager) UpdateCIEventIDByID ¶
func (m *MockPipelineRunManager) UpdateCIEventIDByID(ctx context.Context, pipelinerunID uint, ciEventID string) error
UpdateCIEventIDByID mocks base method.
func (*MockPipelineRunManager) UpdateColumns ¶
func (m *MockPipelineRunManager) UpdateColumns(ctx context.Context, pipelinerunID uint, columns map[string]interface{}) error
UpdateColumns mocks base method.
func (*MockPipelineRunManager) UpdateConfigCommitByID ¶
func (m *MockPipelineRunManager) UpdateConfigCommitByID(ctx context.Context, pipelinerunID uint, commit string) error
UpdateConfigCommitByID mocks base method.
func (*MockPipelineRunManager) UpdateResultByID ¶
func (m *MockPipelineRunManager) UpdateResultByID(ctx context.Context, pipelinerunID uint, result *models.Result) error
UpdateResultByID mocks base method.
func (*MockPipelineRunManager) UpdateStatusByID ¶
func (m *MockPipelineRunManager) UpdateStatusByID(ctx context.Context, pipelinerunID uint, result models.PipelineStatus) error
UpdateStatusByID mocks base method.
type MockPipelineRunManagerMockRecorder ¶
type MockPipelineRunManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockPipelineRunManagerMockRecorder is the mock recorder for MockPipelineRunManager.
func (*MockPipelineRunManagerMockRecorder) Create ¶
func (mr *MockPipelineRunManagerMockRecorder) Create(ctx, pipelinerun interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockPipelineRunManagerMockRecorder) DeleteByClusterID ¶
func (mr *MockPipelineRunManagerMockRecorder) DeleteByClusterID(ctx, clusterID interface{}) *gomock.Call
DeleteByClusterID indicates an expected call of DeleteByClusterID.
func (*MockPipelineRunManagerMockRecorder) DeleteByID ¶
func (mr *MockPipelineRunManagerMockRecorder) DeleteByID(ctx, pipelinerunID interface{}) *gomock.Call
DeleteByID indicates an expected call of DeleteByID.
func (*MockPipelineRunManagerMockRecorder) GetByCIEventID ¶
func (mr *MockPipelineRunManagerMockRecorder) GetByCIEventID(ctx, ciEventID interface{}) *gomock.Call
GetByCIEventID indicates an expected call of GetByCIEventID.
func (*MockPipelineRunManagerMockRecorder) GetByClusterID ¶
func (mr *MockPipelineRunManagerMockRecorder) GetByClusterID(ctx, clusterID, canRollback, query interface{}) *gomock.Call
GetByClusterID indicates an expected call of GetByClusterID.
func (*MockPipelineRunManagerMockRecorder) GetByID ¶
func (mr *MockPipelineRunManagerMockRecorder) GetByID(ctx, pipelinerunID interface{}) *gomock.Call
GetByID indicates an expected call of GetByID.
func (*MockPipelineRunManagerMockRecorder) GetFirstCanRollbackPipelinerun ¶
func (mr *MockPipelineRunManagerMockRecorder) GetFirstCanRollbackPipelinerun(ctx, clusterID interface{}) *gomock.Call
GetFirstCanRollbackPipelinerun indicates an expected call of GetFirstCanRollbackPipelinerun.
func (*MockPipelineRunManagerMockRecorder) GetLatestByClusterIDAndActionAndStatus ¶
func (mr *MockPipelineRunManagerMockRecorder) GetLatestByClusterIDAndActionAndStatus(ctx, clusterID, action, status interface{}) *gomock.Call
GetLatestByClusterIDAndActionAndStatus indicates an expected call of GetLatestByClusterIDAndActionAndStatus.
func (*MockPipelineRunManagerMockRecorder) GetLatestByClusterIDAndActions ¶
func (mr *MockPipelineRunManagerMockRecorder) GetLatestByClusterIDAndActions(ctx, clusterID interface{}, actions ...interface{}) *gomock.Call
GetLatestByClusterIDAndActions indicates an expected call of GetLatestByClusterIDAndActions.
func (*MockPipelineRunManagerMockRecorder) GetLatestSuccessByClusterID ¶
func (mr *MockPipelineRunManagerMockRecorder) GetLatestSuccessByClusterID(ctx, clusterID interface{}) *gomock.Call
GetLatestSuccessByClusterID indicates an expected call of GetLatestSuccessByClusterID.
func (*MockPipelineRunManagerMockRecorder) UpdateCIEventIDByID ¶
func (mr *MockPipelineRunManagerMockRecorder) UpdateCIEventIDByID(ctx, pipelinerunID, ciEventID interface{}) *gomock.Call
UpdateCIEventIDByID indicates an expected call of UpdateCIEventIDByID.
func (*MockPipelineRunManagerMockRecorder) UpdateColumns ¶
func (mr *MockPipelineRunManagerMockRecorder) UpdateColumns(ctx, pipelinerunID, columns interface{}) *gomock.Call
UpdateColumns indicates an expected call of UpdateColumns.
func (*MockPipelineRunManagerMockRecorder) UpdateConfigCommitByID ¶
func (mr *MockPipelineRunManagerMockRecorder) UpdateConfigCommitByID(ctx, pipelinerunID, commit interface{}) *gomock.Call
UpdateConfigCommitByID indicates an expected call of UpdateConfigCommitByID.
func (*MockPipelineRunManagerMockRecorder) UpdateResultByID ¶
func (mr *MockPipelineRunManagerMockRecorder) UpdateResultByID(ctx, pipelinerunID, result interface{}) *gomock.Call
UpdateResultByID indicates an expected call of UpdateResultByID.
func (*MockPipelineRunManagerMockRecorder) UpdateStatusByID ¶
func (mr *MockPipelineRunManagerMockRecorder) UpdateStatusByID(ctx, pipelinerunID, result interface{}) *gomock.Call
UpdateStatusByID indicates an expected call of UpdateStatusByID.