mocks

package
v0.6.11 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 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) 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) 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 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