Documentation ¶
Index ¶
- type CiWorkflowRepository
- func (_m *CiWorkflowRepository) ExistsByStatus(status string) (bool, error)
- func (_m *CiWorkflowRepository) FindBuildTypeAndStatusDataOfLast1Day() []*pipelineConfig.BuildTypeCount
- func (_m *CiWorkflowRepository) FindById(id int) (*pipelineConfig.CiWorkflow, error)
- func (_m *CiWorkflowRepository) FindByName(name string) (*pipelineConfig.CiWorkflow, error)
- func (_m *CiWorkflowRepository) FindByPipelineId(pipelineId int, offset int, size int) ([]pipelineConfig.WorkflowWithArtifact, error)
- func (_m *CiWorkflowRepository) FindByStatusesIn(activeStatuses []string) ([]*pipelineConfig.CiWorkflow, error)
- func (_m *CiWorkflowRepository) FindConfigByPipelineId(pipelineId int) (*pipelineConfig.CiWorkflowConfig, error)
- func (_m *CiWorkflowRepository) FindLastTriggeredWorkflow(pipelineId int) (*pipelineConfig.CiWorkflow, error)
- func (_m *CiWorkflowRepository) FindLastTriggeredWorkflowByArtifactId(ciArtifactId int) (*pipelineConfig.CiWorkflow, error)
- func (_m *CiWorkflowRepository) FindLastTriggeredWorkflowByCiIds(pipelineId []int) ([]*pipelineConfig.CiWorkflow, error)
- func (_m *CiWorkflowRepository) SaveWorkFlow(wf *pipelineConfig.CiWorkflow) error
- func (_m *CiWorkflowRepository) SaveWorkFlowConfig(config *pipelineConfig.CiWorkflowConfig) error
- func (_m *CiWorkflowRepository) UpdateWorkFlow(wf *pipelineConfig.CiWorkflow) error
- type PipelineRepository
- func (_m *PipelineRepository) Delete(id int, tx *pg.Tx) error
- func (_m *PipelineRepository) FindActiveByAppId(appId int) ([]*pipelineConfig.Pipeline, error)
- func (_m *PipelineRepository) FindActiveByAppIdAndEnvironmentId(appId int, environmentId int) ([]*pipelineConfig.Pipeline, error)
- func (_m *PipelineRepository) FindActiveByAppIdAndEnvironmentIdV2() ([]*pipelineConfig.Pipeline, error)
- func (_m *PipelineRepository) FindActiveByAppIdAndPipelineId(appId int, pipelineId int) ([]*pipelineConfig.Pipeline, error)
- func (_m *PipelineRepository) FindActiveByEnvId(envId int) ([]*pipelineConfig.Pipeline, error)
- func (_m *PipelineRepository) FindActiveByInFilter(envId int, appIdIncludes []int) ([]*pipelineConfig.Pipeline, error)
- func (_m *PipelineRepository) FindActiveByNotFilter(envId int, appIdExcludes []int) ([]*pipelineConfig.Pipeline, error)
- func (_m *PipelineRepository) FindAllPipelineInLast24Hour() ([]*pipelineConfig.Pipeline, error)
- func (_m *PipelineRepository) FindAllPipelinesByChartsOverrideAndAppIdAndChartId(chartOverridden bool, appId int, chartId int) ([]*pipelineConfig.Pipeline, error)
- func (_m *PipelineRepository) FindAutomaticByCiPipelineId(ciPipelineId int) ([]*pipelineConfig.Pipeline, error)
- func (_m *PipelineRepository) FindByCiPipelineId(ciPipelineId int) ([]*pipelineConfig.Pipeline, error)
- func (_m *PipelineRepository) FindByCiPipelineIdsIn(ciPipelineIds []int) ([]*pipelineConfig.Pipeline, error)
- func (_m *PipelineRepository) FindById(id int) (*pipelineConfig.Pipeline, error)
- func (_m *PipelineRepository) FindByIdsIn(ids []int) ([]*pipelineConfig.Pipeline, error)
- func (_m *PipelineRepository) FindByIdsInAndEnvironment(ids []int, environmentId int) ([]*pipelineConfig.Pipeline, error)
- func (_m *PipelineRepository) FindByName(pipelineName string) (*pipelineConfig.Pipeline, error)
- func (_m *PipelineRepository) FindByParentCiPipelineId(ciPipelineId int) ([]*pipelineConfig.Pipeline, error)
- func (_m *PipelineRepository) FindByPipelineTriggerGitHash(gitHash string) (*pipelineConfig.Pipeline, error)
- func (_m *PipelineRepository) FindIdsByAppIdsAndEnvironmentIds(appIds []int, environmentIds []int) ([]int, error)
- func (_m *PipelineRepository) FindIdsByProjectIdsAndEnvironmentIds(projectIds []int, environmentIds []int) ([]int, error)
- func (_m *PipelineRepository) FindNumberOfAppsWithCdPipeline(appIds []int) (int, error)
- func (_m *PipelineRepository) GetAppAndEnvDetailsForDeploymentAppTypePipeline(deploymentAppType string, clusterIds []int) ([]*pipelineConfig.Pipeline, error)
- func (_m *PipelineRepository) GetByEnvOverrideId(envOverrideId int) ([]pipelineConfig.Pipeline, error)
- func (_m *PipelineRepository) GetByEnvOverrideIdAndEnvId(envOverrideId int, envId int) (pipelineConfig.Pipeline, error)
- func (_m *PipelineRepository) GetConnection() *pg.DB
- func (_m *PipelineRepository) GetPipelineIdsHavingStatusTimelinesPendingAfterKubectlApplyStatus(pendingSinceSeconds int) ([]int, error)
- func (_m *PipelineRepository) PipelineExists(pipelineName string) (bool, error)
- func (_m *PipelineRepository) Save(pipeline []*pipelineConfig.Pipeline, tx *pg.Tx) error
- func (_m *PipelineRepository) UndoDelete(id int) error
- func (_m *PipelineRepository) UniqueAppEnvironmentPipelines() ([]*pipelineConfig.Pipeline, error)
- func (_m *PipelineRepository) Update(pipeline *pipelineConfig.Pipeline, tx *pg.Tx) error
- func (_m *PipelineRepository) UpdateCdPipeline(pipeline *pipelineConfig.Pipeline) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CiWorkflowRepository ¶ added in v0.6.10
CiWorkflowRepository is an autogenerated mock type for the CiWorkflowRepository type
func NewCiWorkflowRepository ¶ added in v0.6.10
func NewCiWorkflowRepository(t mockConstructorTestingTNewCiWorkflowRepository) *CiWorkflowRepository
func (*CiWorkflowRepository) ExistsByStatus ¶ added in v0.6.10
func (_m *CiWorkflowRepository) ExistsByStatus(status string) (bool, error)
ExistsByStatus provides a mock function with given fields: status
func (*CiWorkflowRepository) FindBuildTypeAndStatusDataOfLast1Day ¶ added in v0.6.10
func (_m *CiWorkflowRepository) FindBuildTypeAndStatusDataOfLast1Day() []*pipelineConfig.BuildTypeCount
FindBuildTypeAndStatusDataOfLast1Day provides a mock function with given fields:
func (*CiWorkflowRepository) FindById ¶ added in v0.6.10
func (_m *CiWorkflowRepository) FindById(id int) (*pipelineConfig.CiWorkflow, error)
FindById provides a mock function with given fields: id
func (*CiWorkflowRepository) FindByName ¶ added in v0.6.10
func (_m *CiWorkflowRepository) FindByName(name string) (*pipelineConfig.CiWorkflow, error)
FindByName provides a mock function with given fields: name
func (*CiWorkflowRepository) FindByPipelineId ¶ added in v0.6.10
func (_m *CiWorkflowRepository) FindByPipelineId(pipelineId int, offset int, size int) ([]pipelineConfig.WorkflowWithArtifact, error)
FindByPipelineId provides a mock function with given fields: pipelineId, offset, size
func (*CiWorkflowRepository) FindByStatusesIn ¶ added in v0.6.10
func (_m *CiWorkflowRepository) FindByStatusesIn(activeStatuses []string) ([]*pipelineConfig.CiWorkflow, error)
FindByStatusesIn provides a mock function with given fields: activeStatuses
func (*CiWorkflowRepository) FindConfigByPipelineId ¶ added in v0.6.10
func (_m *CiWorkflowRepository) FindConfigByPipelineId(pipelineId int) (*pipelineConfig.CiWorkflowConfig, error)
FindConfigByPipelineId provides a mock function with given fields: pipelineId
func (*CiWorkflowRepository) FindLastTriggeredWorkflow ¶ added in v0.6.10
func (_m *CiWorkflowRepository) FindLastTriggeredWorkflow(pipelineId int) (*pipelineConfig.CiWorkflow, error)
FindLastTriggeredWorkflow provides a mock function with given fields: pipelineId
func (*CiWorkflowRepository) FindLastTriggeredWorkflowByArtifactId ¶ added in v0.6.10
func (_m *CiWorkflowRepository) FindLastTriggeredWorkflowByArtifactId(ciArtifactId int) (*pipelineConfig.CiWorkflow, error)
FindLastTriggeredWorkflowByArtifactId provides a mock function with given fields: ciArtifactId
func (*CiWorkflowRepository) FindLastTriggeredWorkflowByCiIds ¶ added in v0.6.10
func (_m *CiWorkflowRepository) FindLastTriggeredWorkflowByCiIds(pipelineId []int) ([]*pipelineConfig.CiWorkflow, error)
FindLastTriggeredWorkflowByCiIds provides a mock function with given fields: pipelineId
func (*CiWorkflowRepository) SaveWorkFlow ¶ added in v0.6.10
func (_m *CiWorkflowRepository) SaveWorkFlow(wf *pipelineConfig.CiWorkflow) error
SaveWorkFlow provides a mock function with given fields: wf
func (*CiWorkflowRepository) SaveWorkFlowConfig ¶ added in v0.6.10
func (_m *CiWorkflowRepository) SaveWorkFlowConfig(config *pipelineConfig.CiWorkflowConfig) error
SaveWorkFlowConfig provides a mock function with given fields: config
func (*CiWorkflowRepository) UpdateWorkFlow ¶ added in v0.6.10
func (_m *CiWorkflowRepository) UpdateWorkFlow(wf *pipelineConfig.CiWorkflow) error
UpdateWorkFlow provides a mock function with given fields: wf
type PipelineRepository ¶
PipelineRepository is an autogenerated mock type for the PipelineRepository type
func NewPipelineRepository ¶
func NewPipelineRepository(t mockConstructorTestingTNewPipelineRepository) *PipelineRepository
NewPipelineRepository creates a new instance of PipelineRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PipelineRepository) Delete ¶
func (_m *PipelineRepository) Delete(id int, tx *pg.Tx) error
Delete provides a mock function with given fields: id, tx
func (*PipelineRepository) FindActiveByAppId ¶
func (_m *PipelineRepository) FindActiveByAppId(appId int) ([]*pipelineConfig.Pipeline, error)
FindActiveByAppId provides a mock function with given fields: appId
func (*PipelineRepository) FindActiveByAppIdAndEnvironmentId ¶
func (_m *PipelineRepository) FindActiveByAppIdAndEnvironmentId(appId int, environmentId int) ([]*pipelineConfig.Pipeline, error)
FindActiveByAppIdAndEnvironmentId provides a mock function with given fields: appId, environmentId
func (*PipelineRepository) FindActiveByAppIdAndEnvironmentIdV2 ¶
func (_m *PipelineRepository) FindActiveByAppIdAndEnvironmentIdV2() ([]*pipelineConfig.Pipeline, error)
FindActiveByAppIdAndEnvironmentIdV2 provides a mock function with given fields:
func (*PipelineRepository) FindActiveByAppIdAndPipelineId ¶
func (_m *PipelineRepository) FindActiveByAppIdAndPipelineId(appId int, pipelineId int) ([]*pipelineConfig.Pipeline, error)
FindActiveByAppIdAndPipelineId provides a mock function with given fields: appId, pipelineId
func (*PipelineRepository) FindActiveByEnvId ¶
func (_m *PipelineRepository) FindActiveByEnvId(envId int) ([]*pipelineConfig.Pipeline, error)
FindActiveByEnvId provides a mock function with given fields: envId
func (*PipelineRepository) FindActiveByInFilter ¶
func (_m *PipelineRepository) FindActiveByInFilter(envId int, appIdIncludes []int) ([]*pipelineConfig.Pipeline, error)
FindActiveByInFilter provides a mock function with given fields: envId, appIdIncludes
func (*PipelineRepository) FindActiveByNotFilter ¶
func (_m *PipelineRepository) FindActiveByNotFilter(envId int, appIdExcludes []int) ([]*pipelineConfig.Pipeline, error)
FindActiveByNotFilter provides a mock function with given fields: envId, appIdExcludes
func (*PipelineRepository) FindAllPipelineInLast24Hour ¶
func (_m *PipelineRepository) FindAllPipelineInLast24Hour() ([]*pipelineConfig.Pipeline, error)
FindAllPipelineInLast24Hour provides a mock function with given fields:
func (*PipelineRepository) FindAllPipelinesByChartsOverrideAndAppIdAndChartId ¶
func (_m *PipelineRepository) FindAllPipelinesByChartsOverrideAndAppIdAndChartId(chartOverridden bool, appId int, chartId int) ([]*pipelineConfig.Pipeline, error)
FindAllPipelinesByChartsOverrideAndAppIdAndChartId provides a mock function with given fields: chartOverridden, appId, chartId
func (*PipelineRepository) FindAutomaticByCiPipelineId ¶
func (_m *PipelineRepository) FindAutomaticByCiPipelineId(ciPipelineId int) ([]*pipelineConfig.Pipeline, error)
FindAutomaticByCiPipelineId provides a mock function with given fields: ciPipelineId
func (*PipelineRepository) FindByCiPipelineId ¶
func (_m *PipelineRepository) FindByCiPipelineId(ciPipelineId int) ([]*pipelineConfig.Pipeline, error)
FindByCiPipelineId provides a mock function with given fields: ciPipelineId
func (*PipelineRepository) FindByCiPipelineIdsIn ¶
func (_m *PipelineRepository) FindByCiPipelineIdsIn(ciPipelineIds []int) ([]*pipelineConfig.Pipeline, error)
FindByCiPipelineIdsIn provides a mock function with given fields: ciPipelineIds
func (*PipelineRepository) FindById ¶
func (_m *PipelineRepository) FindById(id int) (*pipelineConfig.Pipeline, error)
FindById provides a mock function with given fields: id
func (*PipelineRepository) FindByIdsIn ¶
func (_m *PipelineRepository) FindByIdsIn(ids []int) ([]*pipelineConfig.Pipeline, error)
FindByIdsIn provides a mock function with given fields: ids
func (*PipelineRepository) FindByIdsInAndEnvironment ¶
func (_m *PipelineRepository) FindByIdsInAndEnvironment(ids []int, environmentId int) ([]*pipelineConfig.Pipeline, error)
FindByIdsInAndEnvironment provides a mock function with given fields: ids, environmentId
func (*PipelineRepository) FindByName ¶
func (_m *PipelineRepository) FindByName(pipelineName string) (*pipelineConfig.Pipeline, error)
FindByName provides a mock function with given fields: pipelineName
func (*PipelineRepository) FindByParentCiPipelineId ¶
func (_m *PipelineRepository) FindByParentCiPipelineId(ciPipelineId int) ([]*pipelineConfig.Pipeline, error)
FindByParentCiPipelineId provides a mock function with given fields: ciPipelineId
func (*PipelineRepository) FindByPipelineTriggerGitHash ¶
func (_m *PipelineRepository) FindByPipelineTriggerGitHash(gitHash string) (*pipelineConfig.Pipeline, error)
FindByPipelineTriggerGitHash provides a mock function with given fields: gitHash
func (*PipelineRepository) FindIdsByAppIdsAndEnvironmentIds ¶
func (_m *PipelineRepository) FindIdsByAppIdsAndEnvironmentIds(appIds []int, environmentIds []int) ([]int, error)
FindIdsByAppIdsAndEnvironmentIds provides a mock function with given fields: appIds, environmentIds
func (*PipelineRepository) FindIdsByProjectIdsAndEnvironmentIds ¶
func (_m *PipelineRepository) FindIdsByProjectIdsAndEnvironmentIds(projectIds []int, environmentIds []int) ([]int, error)
FindIdsByProjectIdsAndEnvironmentIds provides a mock function with given fields: projectIds, environmentIds
func (*PipelineRepository) FindNumberOfAppsWithCdPipeline ¶
func (_m *PipelineRepository) FindNumberOfAppsWithCdPipeline(appIds []int) (int, error)
FindNumberOfAppsWithCdPipeline provides a mock function with given fields: appIds
func (*PipelineRepository) GetAppAndEnvDetailsForDeploymentAppTypePipeline ¶
func (_m *PipelineRepository) GetAppAndEnvDetailsForDeploymentAppTypePipeline(deploymentAppType string, clusterIds []int) ([]*pipelineConfig.Pipeline, error)
GetAppAndEnvDetailsForDeploymentAppTypePipeline provides a mock function with given fields: deploymentAppType, clusterIds
func (*PipelineRepository) GetByEnvOverrideId ¶
func (_m *PipelineRepository) GetByEnvOverrideId(envOverrideId int) ([]pipelineConfig.Pipeline, error)
GetByEnvOverrideId provides a mock function with given fields: envOverrideId
func (*PipelineRepository) GetByEnvOverrideIdAndEnvId ¶
func (_m *PipelineRepository) GetByEnvOverrideIdAndEnvId(envOverrideId int, envId int) (pipelineConfig.Pipeline, error)
GetByEnvOverrideIdAndEnvId provides a mock function with given fields: envOverrideId, envId
func (*PipelineRepository) GetConnection ¶
func (_m *PipelineRepository) GetConnection() *pg.DB
GetConnection provides a mock function with given fields:
func (*PipelineRepository) GetPipelineIdsHavingStatusTimelinesPendingAfterKubectlApplyStatus ¶
func (_m *PipelineRepository) GetPipelineIdsHavingStatusTimelinesPendingAfterKubectlApplyStatus(pendingSinceSeconds int) ([]int, error)
GetPipelineIdsHavingStatusTimelinesPendingAfterKubectlApplyStatus provides a mock function with given fields: pendingSinceSeconds
func (*PipelineRepository) PipelineExists ¶
func (_m *PipelineRepository) PipelineExists(pipelineName string) (bool, error)
PipelineExists provides a mock function with given fields: pipelineName
func (*PipelineRepository) Save ¶
func (_m *PipelineRepository) Save(pipeline []*pipelineConfig.Pipeline, tx *pg.Tx) error
Save provides a mock function with given fields: pipeline, tx
func (*PipelineRepository) UndoDelete ¶
func (_m *PipelineRepository) UndoDelete(id int) error
UndoDelete provides a mock function with given fields: id
func (*PipelineRepository) UniqueAppEnvironmentPipelines ¶
func (_m *PipelineRepository) UniqueAppEnvironmentPipelines() ([]*pipelineConfig.Pipeline, error)
UniqueAppEnvironmentPipelines provides a mock function with given fields:
func (*PipelineRepository) Update ¶
func (_m *PipelineRepository) Update(pipeline *pipelineConfig.Pipeline, tx *pg.Tx) error
Update provides a mock function with given fields: pipeline, tx
func (*PipelineRepository) UpdateCdPipeline ¶
func (_m *PipelineRepository) UpdateCdPipeline(pipeline *pipelineConfig.Pipeline) error
UpdateCdPipeline provides a mock function with given fields: pipeline