Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.6.18 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppService

type AppService struct {
	mock.Mock
}

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

type PipelineStatusSyncDetailService struct {
	mock.Mock
}

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

type PipelineStatusTimelineResourcesService struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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