mocks

package
v0.6.18-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppLevelMetricsRepository added in v0.6.17

type AppLevelMetricsRepository struct {
	mock.Mock
}

AppLevelMetricsRepository is an autogenerated mock type for the AppLevelMetricsRepository type

func NewAppLevelMetricsRepository added in v0.6.17

func NewAppLevelMetricsRepository(t mockConstructorTestingTNewAppLevelMetricsRepository) *AppLevelMetricsRepository

NewAppLevelMetricsRepository creates a new instance of AppLevelMetricsRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AppLevelMetricsRepository) FindByAppId added in v0.6.17

FindByAppId provides a mock function with given fields: id

func (*AppLevelMetricsRepository) Save added in v0.6.17

Save provides a mock function with given fields: metrics

func (*AppLevelMetricsRepository) Update added in v0.6.17

Update provides a mock function with given fields: metrics

type AppListingRepository added in v0.6.11

type AppListingRepository struct {
	mock.Mock
}

AppListingRepository is an autogenerated mock type for the AppListingRepository type

func NewAppListingRepository added in v0.6.11

func NewAppListingRepository(t mockConstructorTestingTNewAppListingRepository) *AppListingRepository

NewAppListingRepository creates a new instance of AppListingRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AppListingRepository) DeploymentDetailByArtifactId added in v0.6.11

func (_m *AppListingRepository) DeploymentDetailByArtifactId(ciArtifactId int) (bean.DeploymentDetailContainer, error)

DeploymentDetailByArtifactId provides a mock function with given fields: ciArtifactId

func (*AppListingRepository) DeploymentDetailsByAppIdAndEnvId added in v0.6.11

func (_m *AppListingRepository) DeploymentDetailsByAppIdAndEnvId(appId int, envId int) (bean.DeploymentDetailContainer, error)

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

func (*AppListingRepository) FetchAppDetail added in v0.6.11

func (_m *AppListingRepository) FetchAppDetail(appId int, envId int) (bean.AppDetailContainer, error)

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

func (*AppListingRepository) FetchAppStageStatus added in v0.6.11

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

FetchAppStageStatus provides a mock function with given fields: appId

func (*AppListingRepository) FetchAppTriggerView added in v0.6.11

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

FetchAppTriggerView provides a mock function with given fields: appId

func (*AppListingRepository) FetchAppsByEnvironment added in v0.6.11

func (_m *AppListingRepository) FetchAppsByEnvironment(appListingFilter helper.AppListingFilter) ([]*bean.AppEnvironmentContainer, error)

FetchAppsByEnvironment provides a mock function with given fields: appListingFilter

func (*AppListingRepository) FetchOtherEnvironment added in v0.6.11

func (_m *AppListingRepository) FetchOtherEnvironment(appId int) ([]*bean.Environment, error)

FetchOtherEnvironment provides a mock function with given fields: appId

func (*AppListingRepository) FindAppCount added in v0.6.11

func (_m *AppListingRepository) FindAppCount(isProd bool) (int, error)

FindAppCount provides a mock function with given fields: isProd

func (*AppListingRepository) PrometheusApiByEnvId added in v0.6.11

func (_m *AppListingRepository) PrometheusApiByEnvId(id int) (*string, error)

PrometheusApiByEnvId provides a mock function with given fields: id

type CiArtifactRepository added in v0.6.17

type CiArtifactRepository struct {
	mock.Mock
}

CiArtifactRepository is an autogenerated mock type for the CiArtifactRepository type

func NewCiArtifactRepository added in v0.6.17

func NewCiArtifactRepository(t mockConstructorTestingTNewCiArtifactRepository) *CiArtifactRepository

NewCiArtifactRepository creates a new instance of CiArtifactRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CiArtifactRepository) Delete added in v0.6.17

func (_m *CiArtifactRepository) Delete(artifact *repository.CiArtifact) error

Delete provides a mock function with given fields: artifact

func (*CiArtifactRepository) FinDByParentCiArtifactAndCiId added in v0.6.17

func (_m *CiArtifactRepository) FinDByParentCiArtifactAndCiId(parentCiArtifact int, ciPipelineIds []int) ([]*repository.CiArtifact, error)

FinDByParentCiArtifactAndCiId provides a mock function with given fields: parentCiArtifact, ciPipelineIds

func (*CiArtifactRepository) Get added in v0.6.17

Get provides a mock function with given fields: id

func (*CiArtifactRepository) GetArtifactByCdWorkflowId added in v0.6.17

func (_m *CiArtifactRepository) GetArtifactByCdWorkflowId(cdWorkflowId int) (*repository.CiArtifact, error)

GetArtifactByCdWorkflowId provides a mock function with given fields: cdWorkflowId

func (*CiArtifactRepository) GetArtifactParentCiAndWorkflowDetailsByIds added in v0.6.17

func (_m *CiArtifactRepository) GetArtifactParentCiAndWorkflowDetailsByIds(ids []int) ([]*repository.CiArtifact, error)

GetArtifactParentCiAndWorkflowDetailsByIds provides a mock function with given fields: ids

func (*CiArtifactRepository) GetArtifactsByCDPipeline added in v0.6.17

func (_m *CiArtifactRepository) GetArtifactsByCDPipeline(cdPipelineId int, limit int, parentId int, parentType bean.WorkflowType) ([]repository.CiArtifact, error)

GetArtifactsByCDPipeline provides a mock function with given fields: cdPipelineId, limit, parentId, parentType

func (*CiArtifactRepository) GetArtifactsByCDPipelineAndRunnerType added in v0.6.17

func (_m *CiArtifactRepository) GetArtifactsByCDPipelineAndRunnerType(cdPipelineId int, runnerType bean.WorkflowType) ([]repository.CiArtifact, error)

GetArtifactsByCDPipelineAndRunnerType provides a mock function with given fields: cdPipelineId, runnerType

func (*CiArtifactRepository) GetArtifactsByCDPipelineV2 added in v0.6.17

func (_m *CiArtifactRepository) GetArtifactsByCDPipelineV2(cdPipelineId int) ([]repository.CiArtifact, error)

GetArtifactsByCDPipelineV2 provides a mock function with given fields: cdPipelineId

func (*CiArtifactRepository) GetArtifactsByCiPipelineId added in v0.6.17

func (_m *CiArtifactRepository) GetArtifactsByCiPipelineId(ciPipelineId int) ([]repository.CiArtifact, error)

GetArtifactsByCiPipelineId provides a mock function with given fields: ciPipelineId

func (*CiArtifactRepository) GetByIds added in v0.6.17

func (_m *CiArtifactRepository) GetByIds(ids []int) ([]*repository.CiArtifact, error)

GetByIds provides a mock function with given fields: ids

func (*CiArtifactRepository) GetByImageDigest added in v0.6.17

func (_m *CiArtifactRepository) GetByImageDigest(imageDigest string) (*repository.CiArtifact, error)

GetByImageDigest provides a mock function with given fields: imageDigest

func (*CiArtifactRepository) GetByWfId added in v0.6.17

func (_m *CiArtifactRepository) GetByWfId(wfId int) (*repository.CiArtifact, error)

GetByWfId provides a mock function with given fields: wfId

func (*CiArtifactRepository) GetLatest added in v0.6.17

func (_m *CiArtifactRepository) GetLatest(cdPipelineId int) (int, error)

GetLatest provides a mock function with given fields: cdPipelineId

func (*CiArtifactRepository) Save added in v0.6.17

func (_m *CiArtifactRepository) Save(artifact *repository.CiArtifact) error

Save provides a mock function with given fields: artifact

func (*CiArtifactRepository) SaveAll added in v0.6.17

func (_m *CiArtifactRepository) SaveAll(artifacts []*repository.CiArtifact) error

SaveAll provides a mock function with given fields: artifacts

type CiTemplateOverrideRepository

type CiTemplateOverrideRepository struct {
	mock.Mock
}

CiTemplateOverrideRepository is an autogenerated mock type for the CiTemplateOverrideRepository type

func NewCiTemplateOverrideRepository

func NewCiTemplateOverrideRepository(t mockConstructorTestingTNewCiTemplateOverrideRepository) *CiTemplateOverrideRepository

NewCiTemplateOverrideRepository creates a new instance of CiTemplateOverrideRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CiTemplateOverrideRepository) FindByAppId

FindByAppId provides a mock function with given fields: appId

func (*CiTemplateOverrideRepository) FindByCiPipelineId

func (_m *CiTemplateOverrideRepository) FindByCiPipelineId(ciPipelineId int) (*pipelineConfig.CiTemplateOverride, error)

FindByCiPipelineId provides a mock function with given fields: ciPipelineId

func (*CiTemplateOverrideRepository) FindByCiPipelineIds added in v0.6.16

func (_m *CiTemplateOverrideRepository) FindByCiPipelineIds(ciPipelineIds []int) ([]*pipelineConfig.CiTemplateOverride, error)

func (*CiTemplateOverrideRepository) Save

Save provides a mock function with given fields: templateOverrideConfig

func (*CiTemplateOverrideRepository) Update

Update provides a mock function with given fields: templateOverrideConfig

type CiTemplateRepository

type CiTemplateRepository struct {
	mock.Mock
}

CiTemplateRepository is an autogenerated mock type for the CiTemplateRepository type

func NewCiTemplateRepository

func NewCiTemplateRepository(t mockConstructorTestingTNewCiTemplateRepository) *CiTemplateRepository

NewCiTemplateRepository creates a new instance of CiTemplateRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CiTemplateRepository) FindByAppId

func (_m *CiTemplateRepository) FindByAppId(appId int) (*pipelineConfig.CiTemplate, error)

FindByAppId provides a mock function with given fields: appId

func (*CiTemplateRepository) FindByAppIds added in v0.6.16

func (_m *CiTemplateRepository) FindByAppIds(appId []int) ([]*pipelineConfig.CiTemplate, error)

func (*CiTemplateRepository) FindByDockerRegistryId

func (_m *CiTemplateRepository) FindByDockerRegistryId(dockerRegistryId string) ([]*pipelineConfig.CiTemplate, error)

FindByDockerRegistryId provides a mock function with given fields: dockerRegistryId

func (*CiTemplateRepository) FindNumberOfAppsWithDockerConfigured

func (_m *CiTemplateRepository) FindNumberOfAppsWithDockerConfigured(appIds []int) (int, error)

FindNumberOfAppsWithDockerConfigured provides a mock function with given fields: appIds

func (*CiTemplateRepository) Save

Save provides a mock function with given fields: material

func (*CiTemplateRepository) Update

func (_m *CiTemplateRepository) Update(material *pipelineConfig.CiTemplate) error

Update provides a mock function with given fields: material

type EnvLevelAppMetricsRepository added in v0.6.17

type EnvLevelAppMetricsRepository struct {
	mock.Mock
}

EnvLevelAppMetricsRepository is an autogenerated mock type for the EnvLevelAppMetricsRepository type

func NewEnvLevelAppMetricsRepository added in v0.6.17

func NewEnvLevelAppMetricsRepository(t mockConstructorTestingTNewEnvLevelAppMetricsRepository) *EnvLevelAppMetricsRepository

NewEnvLevelAppMetricsRepository creates a new instance of EnvLevelAppMetricsRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*EnvLevelAppMetricsRepository) Delete added in v0.6.17

Delete provides a mock function with given fields: metrics

func (*EnvLevelAppMetricsRepository) FindByAppId added in v0.6.17

FindByAppId provides a mock function with given fields: appId

func (*EnvLevelAppMetricsRepository) FindByAppIdAndEnvId added in v0.6.17

func (_m *EnvLevelAppMetricsRepository) FindByAppIdAndEnvId(appId int, envId int) (*repository.EnvLevelAppMetrics, error)

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

func (*EnvLevelAppMetricsRepository) FindByAppIdAndEnvIds added in v0.6.17

func (_m *EnvLevelAppMetricsRepository) FindByAppIdAndEnvIds(appId int, envIds []int) ([]*repository.EnvLevelAppMetrics, error)

FindByAppIdAndEnvIds provides a mock function with given fields: appId, envIds

func (*EnvLevelAppMetricsRepository) Save added in v0.6.17

Save provides a mock function with given fields: metrics

func (*EnvLevelAppMetricsRepository) Update added in v0.6.17

Update provides a mock function with given fields: metrics

type TerminalAccessRepository added in v0.6.10

type TerminalAccessRepository struct {
	mock.Mock
}

TerminalAccessRepository is an autogenerated mock type for the TerminalAccessRepository type

func NewTerminalAccessRepository added in v0.6.10

func NewTerminalAccessRepository(t mockConstructorTestingTNewTerminalAccessRepository) *TerminalAccessRepository

NewTerminalAccessRepository creates a new instance of TerminalAccessRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TerminalAccessRepository) FetchAllTemplates added in v0.6.10

func (_m *TerminalAccessRepository) FetchAllTemplates() ([]*models.TerminalAccessTemplates, error)

FetchAllTemplates provides a mock function with given fields:

func (*TerminalAccessRepository) FetchTerminalAccessTemplate added in v0.6.10

func (_m *TerminalAccessRepository) FetchTerminalAccessTemplate(templateName string) (*models.TerminalAccessTemplates, error)

FetchTerminalAccessTemplate provides a mock function with given fields: templateName

func (*TerminalAccessRepository) GetAllRunningUserTerminalData added in v0.6.10

func (_m *TerminalAccessRepository) GetAllRunningUserTerminalData() ([]*models.UserTerminalAccessData, error)

GetAllRunningUserTerminalData provides a mock function with given fields:

func (*TerminalAccessRepository) GetUserTerminalAccessData added in v0.6.10

func (_m *TerminalAccessRepository) GetUserTerminalAccessData(id int) (*models.UserTerminalAccessData, error)

GetUserTerminalAccessData provides a mock function with given fields: id

func (*TerminalAccessRepository) GetUserTerminalAccessDataByUser added in v0.6.10

func (_m *TerminalAccessRepository) GetUserTerminalAccessDataByUser(userId int32) ([]*models.UserTerminalAccessData, error)

GetUserTerminalAccessDataByUser provides a mock function with given fields: userId

func (*TerminalAccessRepository) SaveUserTerminalAccessData added in v0.6.10

func (_m *TerminalAccessRepository) SaveUserTerminalAccessData(data *models.UserTerminalAccessData) error

SaveUserTerminalAccessData provides a mock function with given fields: data

func (*TerminalAccessRepository) UpdateUserTerminalAccessData added in v0.6.10

func (_m *TerminalAccessRepository) UpdateUserTerminalAccessData(data *models.UserTerminalAccessData) error

UpdateUserTerminalAccessData provides a mock function with given fields: data

func (*TerminalAccessRepository) UpdateUserTerminalStatus added in v0.6.10

func (_m *TerminalAccessRepository) UpdateUserTerminalStatus(id int, status string) error

UpdateUserTerminalStatus provides a mock function with given fields: id, status

Jump to

Keyboard shortcuts

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