mocks

package
v0.6.28 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppListingService added in v0.6.24

type AppListingService struct {
	mock.Mock
}

AppListingService is an autogenerated mock type for the AppListingService type

func NewAppListingService added in v0.6.24

func NewAppListingService(t interface {
	mock.TestingT
	Cleanup(func())
}) *AppListingService

NewAppListingService creates a new instance of AppListingService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AppListingService) BuildAppListingResponse added in v0.6.24

func (_m *AppListingService) BuildAppListingResponse(fetchAppListingRequest app.FetchAppListingRequest, envContainers []*bean.AppEnvironmentContainer) ([]*bean.AppContainer, error)

BuildAppListingResponse provides a mock function with given fields: fetchAppListingRequest, envContainers

func (*AppListingService) BuildAppListingResponseV2 added in v0.6.24

func (_m *AppListingService) BuildAppListingResponseV2(fetchAppListingRequest app.FetchAppListingRequest, envContainers []*bean.AppEnvironmentContainer) ([]*bean.AppContainer, error)

BuildAppListingResponseV2 provides a mock function with given fields: fetchAppListingRequest, envContainers

func (*AppListingService) CpuRequestGroupByContainer added in v0.6.24

func (_m *AppListingService) CpuRequestGroupByContainer(podName string, namespace string, env string, proEndpoint string) map[string]string

CpuRequestGroupByContainer provides a mock function with given fields: podName, namespace, env, proEndpoint

func (*AppListingService) CpuRequestGroupByPod added in v0.6.24

func (_m *AppListingService) CpuRequestGroupByPod(namespace string, env string, proEndpoint string) map[string]string

CpuRequestGroupByPod provides a mock function with given fields: namespace, env, proEndpoint

func (*AppListingService) CpuUsageGroupByContainer added in v0.6.24

func (_m *AppListingService) CpuUsageGroupByContainer(podName string, namespace string, env string, proEndpoint string) map[string]string

CpuUsageGroupByContainer provides a mock function with given fields: podName, namespace, env, proEndpoint

func (*AppListingService) CpuUsageGroupByPod added in v0.6.24

func (_m *AppListingService) CpuUsageGroupByPod(namespace string, env string, proEndpoint string) map[string]string

CpuUsageGroupByPod provides a mock function with given fields: namespace, env, proEndpoint

func (*AppListingService) CpuUsageGroupByPodGraph added in v0.6.24

func (_m *AppListingService) CpuUsageGroupByPodGraph(podName string, namespace string, env string, proEndpoint string, r v1.Range) map[string][]interface{}

CpuUsageGroupByPodGraph provides a mock function with given fields: podName, namespace, env, proEndpoint, r

func (*AppListingService) FetchAllDevtronManagedApps added in v0.6.24

func (_m *AppListingService) FetchAllDevtronManagedApps() ([]app.AppNameTypeIdContainer, error)

FetchAllDevtronManagedApps provides a mock function with given fields:

func (*AppListingService) FetchAppDetails added in v0.6.24

func (_m *AppListingService) FetchAppDetails(ctx context.Context, appId int, envId int) (bean.AppDetailContainer, error)

FetchAppDetails provides a mock function with given fields: ctx, appId, envId

func (*AppListingService) FetchAppStageStatus added in v0.6.24

func (_m *AppListingService) FetchAppStageStatus(appId int, appType int) ([]bean.AppStageStatus, error)

FetchAppStageStatus provides a mock function with given fields: appId, appType

func (*AppListingService) FetchAppTriggerView added in v0.6.24

func (_m *AppListingService) FetchAppTriggerView(appId int) ([]bean.TriggerView, error)

FetchAppTriggerView provides a mock function with given fields: appId

func (*AppListingService) FetchAppsByEnvironment added in v0.6.24

func (_m *AppListingService) FetchAppsByEnvironment(fetchAppListingRequest app.FetchAppListingRequest, w http.ResponseWriter, r *http.Request, token string, apiVersion string) ([]*bean.AppEnvironmentContainer, error)

FetchAppsByEnvironment provides a mock function with given fields: fetchAppListingRequest, w, r, token, apiVersion

func (*AppListingService) FetchAppsByEnvironmentV2 added in v0.6.24

func (_m *AppListingService) FetchAppsByEnvironmentV2(fetchAppListingRequest app.FetchAppListingRequest, w http.ResponseWriter, r *http.Request, token string) ([]*bean.AppEnvironmentContainer, int, error)

FetchAppsByEnvironmentV2 provides a mock function with given fields: fetchAppListingRequest, w, r, token

func (*AppListingService) FetchJobs added in v0.6.24

func (_m *AppListingService) FetchJobs(fetchJobListingRequest app.FetchAppListingRequest) ([]*bean.JobContainer, error)

FetchJobs provides a mock function with given fields: fetchJobListingRequest

func (*AppListingService) FetchMinDetailOtherEnvironment added in v0.6.24

func (_m *AppListingService) FetchMinDetailOtherEnvironment(appId int) ([]*bean.Environment, error)

FetchMinDetailOtherEnvironment provides a mock function with given fields: appId

func (*AppListingService) FetchOtherEnvironment added in v0.6.24

func (_m *AppListingService) FetchOtherEnvironment(ctx context.Context, appId int) ([]*bean.Environment, error)

FetchOtherEnvironment provides a mock function with given fields: ctx, appId

func (*AppListingService) FetchOverviewAppsByEnvironment added in v0.6.24

func (_m *AppListingService) FetchOverviewAppsByEnvironment(envId int, limit int, offset int) (*app.OverviewAppsByEnvironmentBean, error)

FetchOverviewAppsByEnvironment provides a mock function with given fields: envId, limit, offset

func (*AppListingService) FetchOverviewCiPipelines added in v0.6.24

func (_m *AppListingService) FetchOverviewCiPipelines(jobId int) ([]*bean.JobListingContainer, error)

FetchOverviewCiPipelines provides a mock function with given fields: jobId

func (*AppListingService) GetReleaseCount added in v0.6.24

func (_m *AppListingService) GetReleaseCount(appId int, envId int) (int, error)

GetReleaseCount provides a mock function with given fields: appId, envId

func (*AppListingService) GraphAPI added in v0.6.24

func (_m *AppListingService) GraphAPI(appId int, envId int) error

GraphAPI provides a mock function with given fields: appId, envId

func (*AppListingService) ISLastReleaseStopType added in v0.6.24

func (_m *AppListingService) ISLastReleaseStopType(appId int, envId int) (bool, error)

ISLastReleaseStopType provides a mock function with given fields: appId, envId

func (*AppListingService) ISLastReleaseStopTypeV2 added in v0.6.24

func (_m *AppListingService) ISLastReleaseStopTypeV2(pipelineIds []int) (map[int]bool, error)

ISLastReleaseStopTypeV2 provides a mock function with given fields: pipelineIds

func (*AppListingService) MemoryRequestGroupByContainer added in v0.6.24

func (_m *AppListingService) MemoryRequestGroupByContainer(podName string, namespace string, env string, proEndpoint string) map[string]string

MemoryRequestGroupByContainer provides a mock function with given fields: podName, namespace, env, proEndpoint

func (*AppListingService) MemoryRequestGroupByPod added in v0.6.24

func (_m *AppListingService) MemoryRequestGroupByPod(namespace string, env string, proEndpoint string) map[string]string

MemoryRequestGroupByPod provides a mock function with given fields: namespace, env, proEndpoint

func (*AppListingService) MemoryUsageGroupByContainer added in v0.6.24

func (_m *AppListingService) MemoryUsageGroupByContainer(podName string, namespace string, env string, proEndpoint string) map[string]string

MemoryUsageGroupByContainer provides a mock function with given fields: podName, namespace, env, proEndpoint

func (*AppListingService) MemoryUsageGroupByPod added in v0.6.24

func (_m *AppListingService) MemoryUsageGroupByPod(namespace string, env string, proEndpoint string) map[string]string

MemoryUsageGroupByPod provides a mock function with given fields: namespace, env, proEndpoint

func (*AppListingService) MemoryUsageGroupByPodGraph added in v0.6.24

func (_m *AppListingService) MemoryUsageGroupByPodGraph(podName string, namespace string, env string, proEndpoint string, r v1.Range) map[string][]interface{}

MemoryUsageGroupByPodGraph provides a mock function with given fields: podName, namespace, env, proEndpoint, r

func (*AppListingService) PodCountByAppLabel added in v0.6.24

func (_m *AppListingService) PodCountByAppLabel(appLabel string, namespace string, env string, proEndpoint string) int

PodCountByAppLabel provides a mock function with given fields: appLabel, namespace, env, proEndpoint

func (*AppListingService) PodListByAppLabel added in v0.6.24

func (_m *AppListingService) PodListByAppLabel(appLabel string, namespace string, env string, proEndpoint string) map[string]string

PodListByAppLabel provides a mock function with given fields: appLabel, namespace, env, proEndpoint

func (*AppListingService) RedirectToLinkouts added in v0.6.24

func (_m *AppListingService) RedirectToLinkouts(Id int, appId int, envId int, podName string, containerName string) (string, error)

RedirectToLinkouts provides a mock function with given fields: Id, appId, envId, podName, containerName

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