Documentation ¶
Index ¶
- type AppLevelMetricsRepository
- type AppListingRepository
- func (_m *AppListingRepository) DeploymentDetailByArtifactId(ciArtifactId int, envId int) (bean.DeploymentDetailContainer, error)
- func (_m *AppListingRepository) FetchAppDetail(ctx context.Context, appId int, envId int) (bean.AppDetailContainer, error)
- func (_m *AppListingRepository) FetchAppStageStatus(appId int, appType int) ([]bean.AppStageStatus, error)
- func (_m *AppListingRepository) FetchAppTriggerView(appId int) ([]bean.TriggerView, error)
- func (_m *AppListingRepository) FetchAppsByEnvironment(appListingFilter helper.AppListingFilter) ([]*bean.AppEnvironmentContainer, error)
- func (_m *AppListingRepository) FetchAppsByEnvironmentV2(appListingFilter helper.AppListingFilter) ([]*bean.AppEnvironmentContainer, int, error)
- func (_m *AppListingRepository) FetchJobs(appIds []int, statuses []string, environmentIds []int, sortOrder string) ([]*bean.JobListingContainer, error)
- func (_m *AppListingRepository) FetchJobsLastSucceededOn(ciPipelineIDs []int) ([]*bean.CiPipelineLastSucceededTime, error)
- func (_m *AppListingRepository) FetchMinDetailOtherEnvironment(appId int) ([]*bean.Environment, error)
- func (_m *AppListingRepository) FetchOtherEnvironment(appId int) ([]*bean.Environment, error)
- func (_m *AppListingRepository) FetchOverviewAppsByEnvironment(envId int, limit int, offset int) ([]*bean.AppEnvironmentContainer, error)
- func (_m *AppListingRepository) FetchOverviewCiPipelines(jobId int) ([]*bean.JobListingContainer, error)
- func (_m *AppListingRepository) FindAppCount(isProd bool) (int, error)
- func (_m *AppListingRepository) PrometheusApiByEnvId(id int) (*string, error)
- type AttributesRepository
- func (_m *AttributesRepository) FindActiveList() ([]*repository.Attributes, error)
- func (_m *AttributesRepository) FindById(id int) (*repository.Attributes, error)
- func (_m *AttributesRepository) FindByKey(key string) (*repository.Attributes, error)
- func (_m *AttributesRepository) GetConnection() *pg.DB
- func (_m *AttributesRepository) Save(model *repository.Attributes, tx *pg.Tx) (*repository.Attributes, error)
- func (_m *AttributesRepository) Update(model *repository.Attributes, tx *pg.Tx) error
- type CiArtifactRepository
- func (_m *CiArtifactRepository) Delete(artifact *repository.CiArtifact) error
- func (_m *CiArtifactRepository) FinDByParentCiArtifactAndCiId(parentCiArtifact int, ciPipelineIds []int) ([]*repository.CiArtifact, error)
- func (_m *CiArtifactRepository) Get(id int) (*repository.CiArtifact, error)
- func (_m *CiArtifactRepository) GetArtifactByCdWorkflowId(cdWorkflowId int) (*repository.CiArtifact, error)
- func (_m *CiArtifactRepository) GetArtifactParentCiAndWorkflowDetailsByIds(ids []int) ([]*repository.CiArtifact, error)
- func (_m *CiArtifactRepository) GetArtifactsByCDPipeline(cdPipelineId int, limit int, parentId int, parentType bean.WorkflowType) ([]repository.CiArtifact, error)
- func (_m *CiArtifactRepository) GetArtifactsByCDPipelineAndRunnerType(cdPipelineId int, runnerType bean.WorkflowType) ([]repository.CiArtifact, error)
- func (_m *CiArtifactRepository) GetArtifactsByCDPipelineV2(cdPipelineId int) ([]repository.CiArtifact, error)
- func (_m *CiArtifactRepository) GetArtifactsByCiPipelineId(ciPipelineId int) ([]repository.CiArtifact, error)
- func (_m *CiArtifactRepository) GetByIds(ids []int) ([]*repository.CiArtifact, error)
- func (_m *CiArtifactRepository) GetByImageDigest(imageDigest string) (*repository.CiArtifact, error)
- func (_m *CiArtifactRepository) GetByWfId(wfId int) (*repository.CiArtifact, error)
- func (_m *CiArtifactRepository) GetLatest(cdPipelineId int) (int, error)
- func (_m *CiArtifactRepository) Save(artifact *repository.CiArtifact) error
- func (_m *CiArtifactRepository) SaveAll(artifacts []*repository.CiArtifact) error
- type CiTemplateOverrideRepository
- func (_m *CiTemplateOverrideRepository) FindByAppId(appId int) ([]*pipelineConfig.CiTemplateOverride, error)
- func (_m *CiTemplateOverrideRepository) FindByCiPipelineId(ciPipelineId int) (*pipelineConfig.CiTemplateOverride, error)
- func (_m *CiTemplateOverrideRepository) FindByCiPipelineIds(ciPipelineIds []int) ([]*pipelineConfig.CiTemplateOverride, error)
- func (_m *CiTemplateOverrideRepository) Save(templateOverrideConfig *pipelineConfig.CiTemplateOverride) (*pipelineConfig.CiTemplateOverride, error)
- func (_m *CiTemplateOverrideRepository) Update(templateOverrideConfig *pipelineConfig.CiTemplateOverride) (*pipelineConfig.CiTemplateOverride, error)
- type CiTemplateRepository
- func (_m *CiTemplateRepository) FindByAppId(appId int) (*pipelineConfig.CiTemplate, error)
- func (_m *CiTemplateRepository) FindByAppIds(appId []int) ([]*pipelineConfig.CiTemplate, error)
- func (_m *CiTemplateRepository) FindByDockerRegistryId(dockerRegistryId string) ([]*pipelineConfig.CiTemplate, error)
- func (_m *CiTemplateRepository) FindNumberOfAppsWithDockerConfigured(appIds []int) (int, error)
- func (_m *CiTemplateRepository) Save(material *pipelineConfig.CiTemplate) error
- func (_m *CiTemplateRepository) Update(material *pipelineConfig.CiTemplate) error
- type DeploymentTemplateRepository
- func (_m *DeploymentTemplateRepository) FetchDeploymentHistoryWithChartRefs(appId int, envId int) ([]*repository.DeploymentTemplateComparisonMetadata, error)
- func (_m *DeploymentTemplateRepository) FetchLatestDeploymentWithChartRefs(appId int, envId int) ([]*repository.DeploymentTemplateComparisonMetadata, error)
- func (_m *DeploymentTemplateRepository) FetchPipelineOverrideValues(id int) (string, error)
- type EnvLevelAppMetricsRepository
- func (_m *EnvLevelAppMetricsRepository) Delete(metrics *repository.EnvLevelAppMetrics) error
- func (_m *EnvLevelAppMetricsRepository) FindByAppId(appId int) ([]*repository.EnvLevelAppMetrics, error)
- func (_m *EnvLevelAppMetricsRepository) FindByAppIdAndEnvId(appId int, envId int) (*repository.EnvLevelAppMetrics, error)
- func (_m *EnvLevelAppMetricsRepository) FindByAppIdAndEnvIds(appId int, envIds []int) ([]*repository.EnvLevelAppMetrics, error)
- func (_m *EnvLevelAppMetricsRepository) Save(metrics *repository.EnvLevelAppMetrics) error
- func (_m *EnvLevelAppMetricsRepository) Update(metrics *repository.EnvLevelAppMetrics) error
- type NotificationSettingsRepository
- func (_m *NotificationSettingsRepository) DeleteNotificationSettingsByConfigId(viewId int, tx *pg.Tx) (int, error)
- func (_m *NotificationSettingsRepository) DeleteNotificationSettingsViewById(id int, tx *pg.Tx) (int, error)
- func (_m *NotificationSettingsRepository) FetchNotificationSettingGroupBy(viewId int) ([]repository.NotificationSettings, error)
- func (_m *NotificationSettingsRepository) FindAll(offset int, size int) ([]*repository.NotificationSettingsView, error)
- func (_m *NotificationSettingsRepository) FindNSViewCount() (int, error)
- func (_m *NotificationSettingsRepository) FindNotificationSettingBuildOptions(settingRequest *repository.SearchRequest) ([]*repository.SettingOptionDTO, error)
- func (_m *NotificationSettingsRepository) FindNotificationSettingDeploymentOptions(settingRequest *repository.SearchRequest) ([]*repository.SettingOptionDTO, error)
- func (_m *NotificationSettingsRepository) FindNotificationSettingsByConfigIdAndConfigType(configId int, configType string) ([]*repository.NotificationSettings, error)
- func (_m *NotificationSettingsRepository) FindNotificationSettingsByViewId(viewId int) ([]repository.NotificationSettings, error)
- func (_m *NotificationSettingsRepository) FindNotificationSettingsViewById(id int) (*repository.NotificationSettingsView, error)
- func (_m *NotificationSettingsRepository) FindNotificationSettingsViewByIds(id []*int) ([]*repository.NotificationSettingsView, error)
- func (_m *NotificationSettingsRepository) SaveAllNotificationSettings(notificationSettings []repository.NotificationSettings, tx *pg.Tx) (int, error)
- func (_m *NotificationSettingsRepository) SaveNotificationSetting(notificationSettings *repository.NotificationSettings, tx *pg.Tx) (*repository.NotificationSettings, error)
- func (_m *NotificationSettingsRepository) SaveNotificationSettingsConfig(notificationSettingsView *repository.NotificationSettingsView, tx *pg.Tx) (*repository.NotificationSettingsView, error)
- func (_m *NotificationSettingsRepository) UpdateNotificationSettings(notificationSettings *repository.NotificationSettings, tx *pg.Tx) (*repository.NotificationSettings, error)
- func (_m *NotificationSettingsRepository) UpdateNotificationSettingsView(notificationSettingsView *repository.NotificationSettingsView, tx *pg.Tx) (*repository.NotificationSettingsView, error)
- type TerminalAccessRepository
- func (_m *TerminalAccessRepository) FetchAllTemplates() ([]*models.TerminalAccessTemplates, error)
- func (_m *TerminalAccessRepository) FetchTerminalAccessTemplate(templateName string) (*models.TerminalAccessTemplates, error)
- func (_m *TerminalAccessRepository) GetAllRunningUserTerminalData() ([]*models.UserTerminalAccessData, error)
- func (_m *TerminalAccessRepository) GetUserTerminalAccessData(id int) (*models.UserTerminalAccessData, error)
- func (_m *TerminalAccessRepository) GetUserTerminalAccessDataByUser(userId int32) ([]*models.UserTerminalAccessData, error)
- func (_m *TerminalAccessRepository) SaveUserTerminalAccessData(data *models.UserTerminalAccessData) error
- func (_m *TerminalAccessRepository) UpdateUserTerminalAccessData(data *models.UserTerminalAccessData) error
- func (_m *TerminalAccessRepository) UpdateUserTerminalStatus(id int, status string) error
- type WebhookNotificationRepository
- func (_m *WebhookNotificationRepository) FindAll() ([]repository.WebhookConfig, error)
- func (_m *WebhookNotificationRepository) FindByIds(ids []*int) ([]*repository.WebhookConfig, error)
- func (_m *WebhookNotificationRepository) FindByName(value string) ([]repository.WebhookConfig, error)
- func (_m *WebhookNotificationRepository) FindOne(id int) (*repository.WebhookConfig, error)
- func (_m *WebhookNotificationRepository) MarkWebhookConfigDeleted(webhookConfig *repository.WebhookConfig) error
- func (_m *WebhookNotificationRepository) SaveWebhookConfig(webhookConfig *repository.WebhookConfig) (*repository.WebhookConfig, error)
- func (_m *WebhookNotificationRepository) UpdateWebhookConfig(webhookConfig *repository.WebhookConfig) (*repository.WebhookConfig, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppLevelMetricsRepository ¶ added in v0.6.17
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
func (_m *AppLevelMetricsRepository) FindByAppId(id int) (*repository.AppLevelMetrics, error)
FindByAppId provides a mock function with given fields: id
func (*AppLevelMetricsRepository) Save ¶ added in v0.6.17
func (_m *AppLevelMetricsRepository) Save(metrics *repository.AppLevelMetrics) error
Save provides a mock function with given fields: metrics
func (*AppLevelMetricsRepository) Update ¶ added in v0.6.17
func (_m *AppLevelMetricsRepository) Update(metrics *repository.AppLevelMetrics) error
Update provides a mock function with given fields: metrics
type AppListingRepository ¶ added in v0.6.11
AppListingRepository is an autogenerated mock type for the AppListingRepository type
func NewAppListingRepository ¶ added in v0.6.11
func NewAppListingRepository(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*AppListingRepository) DeploymentDetailByArtifactId ¶ added in v0.6.11
func (_m *AppListingRepository) DeploymentDetailByArtifactId(ciArtifactId int, envId int) (bean.DeploymentDetailContainer, error)
DeploymentDetailByArtifactId provides a mock function with given fields: ciArtifactId, envId
func (*AppListingRepository) FetchAppDetail ¶ added in v0.6.11
func (_m *AppListingRepository) FetchAppDetail(ctx context.Context, appId int, envId int) (bean.AppDetailContainer, error)
FetchAppDetail provides a mock function with given fields: ctx, appId, envId
func (*AppListingRepository) FetchAppStageStatus ¶ added in v0.6.11
func (_m *AppListingRepository) FetchAppStageStatus(appId int, appType int) ([]bean.AppStageStatus, error)
FetchAppStageStatus provides a mock function with given fields: appId, appType
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) FetchAppsByEnvironmentV2 ¶ added in v0.6.24
func (_m *AppListingRepository) FetchAppsByEnvironmentV2(appListingFilter helper.AppListingFilter) ([]*bean.AppEnvironmentContainer, int, error)
FetchAppsByEnvironmentV2 provides a mock function with given fields: appListingFilter
func (*AppListingRepository) FetchJobs ¶ added in v0.6.24
func (_m *AppListingRepository) FetchJobs(appIds []int, statuses []string, environmentIds []int, sortOrder string) ([]*bean.JobListingContainer, error)
FetchJobs provides a mock function with given fields: appIds, statuses, environmentIds, sortOrder
func (*AppListingRepository) FetchJobsLastSucceededOn ¶ added in v0.6.24
func (_m *AppListingRepository) FetchJobsLastSucceededOn(ciPipelineIDs []int) ([]*bean.CiPipelineLastSucceededTime, error)
FetchJobsLastSucceededOn provides a mock function with given fields: ciPipelineIDs
func (*AppListingRepository) FetchMinDetailOtherEnvironment ¶ added in v0.6.24
func (_m *AppListingRepository) FetchMinDetailOtherEnvironment(appId int) ([]*bean.Environment, error)
FetchMinDetailOtherEnvironment provides a mock function with given fields: appId
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) FetchOverviewAppsByEnvironment ¶ added in v0.6.24
func (_m *AppListingRepository) FetchOverviewAppsByEnvironment(envId int, limit int, offset int) ([]*bean.AppEnvironmentContainer, error)
FetchOverviewAppsByEnvironment provides a mock function with given fields: envId, limit, offset
func (*AppListingRepository) FetchOverviewCiPipelines ¶ added in v0.6.24
func (_m *AppListingRepository) FetchOverviewCiPipelines(jobId int) ([]*bean.JobListingContainer, error)
FetchOverviewCiPipelines provides a mock function with given fields: jobId
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 AttributesRepository ¶ added in v0.6.18
AttributesRepository is an autogenerated mock type for the AttributesRepository type
func NewAttributesRepository ¶ added in v0.6.18
func NewAttributesRepository(t interface { mock.TestingT Cleanup(func()) }) *AttributesRepository
NewAttributesRepository creates a new instance of AttributesRepository. 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 (*AttributesRepository) FindActiveList ¶ added in v0.6.18
func (_m *AttributesRepository) FindActiveList() ([]*repository.Attributes, error)
FindActiveList provides a mock function with given fields:
func (*AttributesRepository) FindById ¶ added in v0.6.18
func (_m *AttributesRepository) FindById(id int) (*repository.Attributes, error)
FindById provides a mock function with given fields: id
func (*AttributesRepository) FindByKey ¶ added in v0.6.18
func (_m *AttributesRepository) FindByKey(key string) (*repository.Attributes, error)
FindByKey provides a mock function with given fields: key
func (*AttributesRepository) GetConnection ¶ added in v0.6.18
func (_m *AttributesRepository) GetConnection() *pg.DB
GetConnection provides a mock function with given fields:
func (*AttributesRepository) Save ¶ added in v0.6.18
func (_m *AttributesRepository) Save(model *repository.Attributes, tx *pg.Tx) (*repository.Attributes, error)
Save provides a mock function with given fields: model, tx
func (*AttributesRepository) Update ¶ added in v0.6.18
func (_m *AttributesRepository) Update(model *repository.Attributes, tx *pg.Tx) error
Update provides a mock function with given fields: model, tx
type CiArtifactRepository ¶ added in v0.6.17
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
func (_m *CiArtifactRepository) Get(id int) (*repository.CiArtifact, error)
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 ¶
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 ¶
func (_m *CiTemplateOverrideRepository) FindByAppId(appId int) ([]*pipelineConfig.CiTemplateOverride, error)
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 ¶
func (_m *CiTemplateOverrideRepository) Save(templateOverrideConfig *pipelineConfig.CiTemplateOverride) (*pipelineConfig.CiTemplateOverride, error)
Save provides a mock function with given fields: templateOverrideConfig
func (*CiTemplateOverrideRepository) Update ¶
func (_m *CiTemplateOverrideRepository) Update(templateOverrideConfig *pipelineConfig.CiTemplateOverride) (*pipelineConfig.CiTemplateOverride, error)
Update provides a mock function with given fields: templateOverrideConfig
type CiTemplateRepository ¶
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 ¶
func (_m *CiTemplateRepository) Save(material *pipelineConfig.CiTemplate) error
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 DeploymentTemplateRepository ¶ added in v0.6.24
DeploymentTemplateRepository is an autogenerated mock type for the DeploymentTemplateRepository type
func NewDeploymentTemplateRepository ¶ added in v0.6.24
func NewDeploymentTemplateRepository(t interface { mock.TestingT Cleanup(func()) }) *DeploymentTemplateRepository
NewDeploymentTemplateRepository creates a new instance of DeploymentTemplateRepository. 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 (*DeploymentTemplateRepository) FetchDeploymentHistoryWithChartRefs ¶ added in v0.6.24
func (_m *DeploymentTemplateRepository) FetchDeploymentHistoryWithChartRefs(appId int, envId int) ([]*repository.DeploymentTemplateComparisonMetadata, error)
FetchDeploymentHistoryWithChartRefs provides a mock function with given fields: appId, envId
func (*DeploymentTemplateRepository) FetchLatestDeploymentWithChartRefs ¶ added in v0.6.24
func (_m *DeploymentTemplateRepository) FetchLatestDeploymentWithChartRefs(appId int, envId int) ([]*repository.DeploymentTemplateComparisonMetadata, error)
FetchLatestDeploymentWithChartRefs provides a mock function with given fields: appId, envId
func (*DeploymentTemplateRepository) FetchPipelineOverrideValues ¶ added in v0.6.24
func (_m *DeploymentTemplateRepository) FetchPipelineOverrideValues(id int) (string, error)
FetchPipelineOverrideValues provides a mock function with given fields: id
type EnvLevelAppMetricsRepository ¶ added in v0.6.17
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
func (_m *EnvLevelAppMetricsRepository) Delete(metrics *repository.EnvLevelAppMetrics) error
Delete provides a mock function with given fields: metrics
func (*EnvLevelAppMetricsRepository) FindByAppId ¶ added in v0.6.17
func (_m *EnvLevelAppMetricsRepository) FindByAppId(appId int) ([]*repository.EnvLevelAppMetrics, error)
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
func (_m *EnvLevelAppMetricsRepository) Save(metrics *repository.EnvLevelAppMetrics) error
Save provides a mock function with given fields: metrics
func (*EnvLevelAppMetricsRepository) Update ¶ added in v0.6.17
func (_m *EnvLevelAppMetricsRepository) Update(metrics *repository.EnvLevelAppMetrics) error
Update provides a mock function with given fields: metrics
type NotificationSettingsRepository ¶ added in v0.6.18
NotificationSettingsRepository is an autogenerated mock type for the NotificationSettingsRepository type
func NewNotificationSettingsRepository ¶ added in v0.6.18
func NewNotificationSettingsRepository(t mockConstructorTestingTNewNotificationSettingsRepository) *NotificationSettingsRepository
NewNotificationSettingsRepository creates a new instance of NotificationSettingsRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*NotificationSettingsRepository) DeleteNotificationSettingsByConfigId ¶ added in v0.6.18
func (_m *NotificationSettingsRepository) DeleteNotificationSettingsByConfigId(viewId int, tx *pg.Tx) (int, error)
DeleteNotificationSettingsByConfigId provides a mock function with given fields: viewId, tx
func (*NotificationSettingsRepository) DeleteNotificationSettingsViewById ¶ added in v0.6.18
func (_m *NotificationSettingsRepository) DeleteNotificationSettingsViewById(id int, tx *pg.Tx) (int, error)
DeleteNotificationSettingsViewById provides a mock function with given fields: id, tx
func (*NotificationSettingsRepository) FetchNotificationSettingGroupBy ¶ added in v0.6.18
func (_m *NotificationSettingsRepository) FetchNotificationSettingGroupBy(viewId int) ([]repository.NotificationSettings, error)
FetchNotificationSettingGroupBy provides a mock function with given fields: viewId
func (*NotificationSettingsRepository) FindAll ¶ added in v0.6.18
func (_m *NotificationSettingsRepository) FindAll(offset int, size int) ([]*repository.NotificationSettingsView, error)
FindAll provides a mock function with given fields: offset, size
func (*NotificationSettingsRepository) FindNSViewCount ¶ added in v0.6.18
func (_m *NotificationSettingsRepository) FindNSViewCount() (int, error)
FindNSViewCount provides a mock function with given fields:
func (*NotificationSettingsRepository) FindNotificationSettingBuildOptions ¶ added in v0.6.18
func (_m *NotificationSettingsRepository) FindNotificationSettingBuildOptions(settingRequest *repository.SearchRequest) ([]*repository.SettingOptionDTO, error)
FindNotificationSettingBuildOptions provides a mock function with given fields: settingRequest
func (*NotificationSettingsRepository) FindNotificationSettingDeploymentOptions ¶ added in v0.6.18
func (_m *NotificationSettingsRepository) FindNotificationSettingDeploymentOptions(settingRequest *repository.SearchRequest) ([]*repository.SettingOptionDTO, error)
FindNotificationSettingDeploymentOptions provides a mock function with given fields: settingRequest
func (*NotificationSettingsRepository) FindNotificationSettingsByConfigIdAndConfigType ¶ added in v0.6.18
func (_m *NotificationSettingsRepository) FindNotificationSettingsByConfigIdAndConfigType(configId int, configType string) ([]*repository.NotificationSettings, error)
FindNotificationSettingsByConfigIdAndConfigType provides a mock function with given fields: configId, configType
func (*NotificationSettingsRepository) FindNotificationSettingsByViewId ¶ added in v0.6.18
func (_m *NotificationSettingsRepository) FindNotificationSettingsByViewId(viewId int) ([]repository.NotificationSettings, error)
FindNotificationSettingsByViewId provides a mock function with given fields: viewId
func (*NotificationSettingsRepository) FindNotificationSettingsViewById ¶ added in v0.6.18
func (_m *NotificationSettingsRepository) FindNotificationSettingsViewById(id int) (*repository.NotificationSettingsView, error)
FindNotificationSettingsViewById provides a mock function with given fields: id
func (*NotificationSettingsRepository) FindNotificationSettingsViewByIds ¶ added in v0.6.18
func (_m *NotificationSettingsRepository) FindNotificationSettingsViewByIds(id []*int) ([]*repository.NotificationSettingsView, error)
FindNotificationSettingsViewByIds provides a mock function with given fields: id
func (*NotificationSettingsRepository) SaveAllNotificationSettings ¶ added in v0.6.18
func (_m *NotificationSettingsRepository) SaveAllNotificationSettings(notificationSettings []repository.NotificationSettings, tx *pg.Tx) (int, error)
SaveAllNotificationSettings provides a mock function with given fields: notificationSettings, tx
func (*NotificationSettingsRepository) SaveNotificationSetting ¶ added in v0.6.18
func (_m *NotificationSettingsRepository) SaveNotificationSetting(notificationSettings *repository.NotificationSettings, tx *pg.Tx) (*repository.NotificationSettings, error)
SaveNotificationSetting provides a mock function with given fields: notificationSettings, tx
func (*NotificationSettingsRepository) SaveNotificationSettingsConfig ¶ added in v0.6.18
func (_m *NotificationSettingsRepository) SaveNotificationSettingsConfig(notificationSettingsView *repository.NotificationSettingsView, tx *pg.Tx) (*repository.NotificationSettingsView, error)
SaveNotificationSettingsConfig provides a mock function with given fields: notificationSettingsView, tx
func (*NotificationSettingsRepository) UpdateNotificationSettings ¶ added in v0.6.18
func (_m *NotificationSettingsRepository) UpdateNotificationSettings(notificationSettings *repository.NotificationSettings, tx *pg.Tx) (*repository.NotificationSettings, error)
UpdateNotificationSettings provides a mock function with given fields: notificationSettings, tx
func (*NotificationSettingsRepository) UpdateNotificationSettingsView ¶ added in v0.6.18
func (_m *NotificationSettingsRepository) UpdateNotificationSettingsView(notificationSettingsView *repository.NotificationSettingsView, tx *pg.Tx) (*repository.NotificationSettingsView, error)
UpdateNotificationSettingsView provides a mock function with given fields: notificationSettingsView, tx
type TerminalAccessRepository ¶ added in v0.6.10
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
type WebhookNotificationRepository ¶ added in v0.6.18
WebhookNotificationRepository is an autogenerated mock type for the WebhookNotificationRepository type
func NewWebhookNotificationRepository ¶ added in v0.6.18
func NewWebhookNotificationRepository(t mockConstructorTestingTNewWebhookNotificationRepository) *WebhookNotificationRepository
NewWebhookNotificationRepository creates a new instance of WebhookNotificationRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*WebhookNotificationRepository) FindAll ¶ added in v0.6.18
func (_m *WebhookNotificationRepository) FindAll() ([]repository.WebhookConfig, error)
FindAll provides a mock function with given fields:
func (*WebhookNotificationRepository) FindByIds ¶ added in v0.6.18
func (_m *WebhookNotificationRepository) FindByIds(ids []*int) ([]*repository.WebhookConfig, error)
FindByIds provides a mock function with given fields: ids
func (*WebhookNotificationRepository) FindByName ¶ added in v0.6.18
func (_m *WebhookNotificationRepository) FindByName(value string) ([]repository.WebhookConfig, error)
FindByName provides a mock function with given fields: value
func (*WebhookNotificationRepository) FindOne ¶ added in v0.6.18
func (_m *WebhookNotificationRepository) FindOne(id int) (*repository.WebhookConfig, error)
FindOne provides a mock function with given fields: id
func (*WebhookNotificationRepository) MarkWebhookConfigDeleted ¶ added in v0.6.18
func (_m *WebhookNotificationRepository) MarkWebhookConfigDeleted(webhookConfig *repository.WebhookConfig) error
MarkWebhookConfigDeleted provides a mock function with given fields: webhookConfig
func (*WebhookNotificationRepository) SaveWebhookConfig ¶ added in v0.6.18
func (_m *WebhookNotificationRepository) SaveWebhookConfig(webhookConfig *repository.WebhookConfig) (*repository.WebhookConfig, error)
SaveWebhookConfig provides a mock function with given fields: webhookConfig
func (*WebhookNotificationRepository) UpdateWebhookConfig ¶ added in v0.6.18
func (_m *WebhookNotificationRepository) UpdateWebhookConfig(webhookConfig *repository.WebhookConfig) (*repository.WebhookConfig, error)
UpdateWebhookConfig provides a mock function with given fields: webhookConfig
Source Files ¶
- AppLevelMetricsRepository.go
- AppListingRepository.go
- AttributesRepository.go
- CiArtifactRepository.go
- CiTemplateOverrideRepository.go
- CiTemplateRepository.go
- DeploymentTemplateRepository.go
- EnvLevelAppMetricsRepository.go
- NotificationSettingsRepository.go
- TerminalAccessRepository.go
- WebhookNotificationRepository.go