Documentation ¶
Index ¶
- type AppService
- func (_m *AppService) GetChartRepoName(gitRepoUrl string) string
- func (_m *AppService) GetCmSecretNew(appId int, envId int) (*bean.ConfigMapJson, *bean.ConfigSecretJson, error)
- func (_m *AppService) GetConfigMapAndSecretJson(appId int, envId int, pipelineId int) ([]byte, error)
- func (_m *AppService) MarkImageScanDeployed(appId int, envId int, imageDigest string, clusterId int) error
- func (_m *AppService) TriggerCD(artifact *repository.CiArtifact, cdWorkflowId int, wfrId int, ...) error
- func (_m *AppService) TriggerRelease(overrideRequest *bean.ValuesOverrideRequest, ctx context.Context, ...) (int, error)
- func (_m *AppService) UpdateCdWorkflowRunnerByACDObject(_a0 *v1alpha1.Application, cdWorkflowId int, statusTimeoutDuration int, ...) error
- func (_m *AppService) UpdateDeploymentStatusAndCheckIsSucceeded(_a0 *v1alpha1.Application, statusTime time.Time) (bool, error)
- func (_m *AppService) UpdateDeploymentStatusForGitOpsCdPipelines(_a0 *v1alpha1.Application, statusTime time.Time) (bool, bool, error)
- func (_m *AppService) UpdateReleaseStatus(request *bean.ReleaseStatusUpdateRequest) (bool, error)
- type PipelineStatusSyncDetailService
- type PipelineStatusTimelineResourcesService
- func (_m *PipelineStatusTimelineResourcesService) GetTimelineResourcesForATimeline(cdWfrId int) ([]*app.SyncStageResourceDetailDto, error)
- func (_m *PipelineStatusTimelineResourcesService) SaveOrUpdateCdPipelineTimelineResources(cdWfrId int, application *v1alpha1.Application, tx *pg.Tx, userId int32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppService ¶
AppService is an autogenerated mock type for the AppService type
func NewAppService ¶
func NewAppService(t mockConstructorTestingTNewAppService) *AppService
NewAppService creates a new instance of AppService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AppService) GetChartRepoName ¶
func (_m *AppService) GetChartRepoName(gitRepoUrl string) string
GetChartRepoName provides a mock function with given fields: gitRepoUrl
func (*AppService) GetCmSecretNew ¶
func (_m *AppService) GetCmSecretNew(appId int, envId int) (*bean.ConfigMapJson, *bean.ConfigSecretJson, error)
GetCmSecretNew provides a mock function with given fields: appId, envId
func (*AppService) GetConfigMapAndSecretJson ¶
func (_m *AppService) GetConfigMapAndSecretJson(appId int, envId int, pipelineId int) ([]byte, error)
GetConfigMapAndSecretJson provides a mock function with given fields: appId, envId, pipelineId
func (*AppService) MarkImageScanDeployed ¶
func (_m *AppService) MarkImageScanDeployed(appId int, envId int, imageDigest string, clusterId int) error
MarkImageScanDeployed provides a mock function with given fields: appId, envId, imageDigest, clusterId
func (*AppService) TriggerCD ¶
func (_m *AppService) TriggerCD(artifact *repository.CiArtifact, cdWorkflowId int, wfrId int, pipeline *pipelineConfig.Pipeline, async bool, triggeredAt time.Time) error
TriggerCD provides a mock function with given fields: artifact, cdWorkflowId, wfrId, pipeline, async, triggeredAt
func (*AppService) TriggerRelease ¶
func (_m *AppService) TriggerRelease(overrideRequest *bean.ValuesOverrideRequest, ctx context.Context, triggeredAt time.Time, triggeredBy int32, wfrId int) (int, error)
TriggerRelease provides a mock function with given fields: overrideRequest, ctx, triggeredAt, triggeredBy, wfrId
func (*AppService) UpdateCdWorkflowRunnerByACDObject ¶
func (_m *AppService) UpdateCdWorkflowRunnerByACDObject(_a0 *v1alpha1.Application, cdWorkflowId int, statusTimeoutDuration int, latestTimeline *pipelineConfig.PipelineStatusTimeline) error
UpdateCdWorkflowRunnerByACDObject provides a mock function with given fields: _a0, cdWorkflowId, statusTimeoutDuration, latestTimeline
func (*AppService) UpdateDeploymentStatusAndCheckIsSucceeded ¶
func (_m *AppService) UpdateDeploymentStatusAndCheckIsSucceeded(_a0 *v1alpha1.Application, statusTime time.Time) (bool, error)
UpdateDeploymentStatusAndCheckIsSucceeded provides a mock function with given fields: _a0, statusTime
func (*AppService) UpdateDeploymentStatusForGitOpsCdPipelines ¶
func (_m *AppService) UpdateDeploymentStatusForGitOpsCdPipelines(_a0 *v1alpha1.Application, statusTime time.Time) (bool, bool, error)
UpdateDeploymentStatusForGitOpsCdPipelines provides a mock function with given fields: _a0, statusTime
func (*AppService) UpdateReleaseStatus ¶
func (_m *AppService) UpdateReleaseStatus(request *bean.ReleaseStatusUpdateRequest) (bool, error)
UpdateReleaseStatus provides a mock function with given fields: request
type PipelineStatusSyncDetailService ¶
PipelineStatusSyncDetailService is an autogenerated mock type for the PipelineStatusSyncDetailService type
func NewPipelineStatusSyncDetailService ¶
func NewPipelineStatusSyncDetailService(t mockConstructorTestingTNewPipelineStatusSyncDetailService) *PipelineStatusSyncDetailService
NewPipelineStatusSyncDetailService creates a new instance of PipelineStatusSyncDetailService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PipelineStatusSyncDetailService) GetSyncTimeAndCountByCdWfrId ¶
func (_m *PipelineStatusSyncDetailService) GetSyncTimeAndCountByCdWfrId(cdWfrId int) (time.Time, int, error)
GetSyncTimeAndCountByCdWfrId provides a mock function with given fields: cdWfrId
func (*PipelineStatusSyncDetailService) SaveOrUpdateSyncDetail ¶
func (_m *PipelineStatusSyncDetailService) SaveOrUpdateSyncDetail(cdWfrId int, userId int32) error
SaveOrUpdateSyncDetail provides a mock function with given fields: cdWfrId, userId
type PipelineStatusTimelineResourcesService ¶
PipelineStatusTimelineResourcesService is an autogenerated mock type for the PipelineStatusTimelineResourcesService type
func NewPipelineStatusTimelineResourcesService ¶
func NewPipelineStatusTimelineResourcesService(t mockConstructorTestingTNewPipelineStatusTimelineResourcesService) *PipelineStatusTimelineResourcesService
NewPipelineStatusTimelineResourcesService creates a new instance of PipelineStatusTimelineResourcesService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PipelineStatusTimelineResourcesService) GetTimelineResourcesForATimeline ¶
func (_m *PipelineStatusTimelineResourcesService) GetTimelineResourcesForATimeline(cdWfrId int) ([]*app.SyncStageResourceDetailDto, error)
GetTimelineResourcesForATimeline provides a mock function with given fields: cdWfrId
func (*PipelineStatusTimelineResourcesService) SaveOrUpdateCdPipelineTimelineResources ¶
func (_m *PipelineStatusTimelineResourcesService) SaveOrUpdateCdPipelineTimelineResources(cdWfrId int, application *v1alpha1.Application, tx *pg.Tx, userId int32) error
SaveOrUpdateCdPipelineTimelineResources provides a mock function with given fields: cdWfrId, application, tx, userId