Documentation
¶
Index ¶
- type AssetAssetComponentsLoader
- func (_m *AssetAssetComponentsLoader) EXPECT() *AssetAssetComponentsLoader_Expecter
- func (_m *AssetAssetComponentsLoader) GetVersions(tx *gorm.DB, _a1 models.Asset) ([]string, error)
- func (_m *AssetAssetComponentsLoader) LoadAssetComponents(tx *gorm.DB, _a1 models.Asset, scanType string, version string) ([]models.ComponentDependency, error)
- type AssetAssetComponentsLoader_Expecter
- func (_e *AssetAssetComponentsLoader_Expecter) GetVersions(tx interface{}, _a1 interface{}) *AssetAssetComponentsLoader_GetVersions_Call
- func (_e *AssetAssetComponentsLoader_Expecter) LoadAssetComponents(tx interface{}, _a1 interface{}, scanType interface{}, version interface{}) *AssetAssetComponentsLoader_LoadAssetComponents_Call
- type AssetAssetComponentsLoader_GetVersions_Call
- func (_c *AssetAssetComponentsLoader_GetVersions_Call) Return(_a0 []string, _a1 error) *AssetAssetComponentsLoader_GetVersions_Call
- func (_c *AssetAssetComponentsLoader_GetVersions_Call) Run(run func(tx *gorm.DB, _a1 models.Asset)) *AssetAssetComponentsLoader_GetVersions_Call
- func (_c *AssetAssetComponentsLoader_GetVersions_Call) RunAndReturn(run func(*gorm.DB, models.Asset) ([]string, error)) *AssetAssetComponentsLoader_GetVersions_Call
- type AssetAssetComponentsLoader_LoadAssetComponents_Call
- func (_c *AssetAssetComponentsLoader_LoadAssetComponents_Call) Return(_a0 []models.ComponentDependency, _a1 error) *AssetAssetComponentsLoader_LoadAssetComponents_Call
- func (_c *AssetAssetComponentsLoader_LoadAssetComponents_Call) Run(run func(tx *gorm.DB, _a1 models.Asset, scanType string, version string)) *AssetAssetComponentsLoader_LoadAssetComponents_Call
- func (_c *AssetAssetComponentsLoader_LoadAssetComponents_Call) RunAndReturn(...) *AssetAssetComponentsLoader_LoadAssetComponents_Call
- type AssetAssetRepository
- type AssetAssetRepository_Expecter
- type AssetAssetRepository_Save_Call
- func (_c *AssetAssetRepository_Save_Call) Return(_a0 error) *AssetAssetRepository_Save_Call
- func (_c *AssetAssetRepository_Save_Call) Run(run func(tx *gorm.DB, _a1 *models.Asset)) *AssetAssetRepository_Save_Call
- func (_c *AssetAssetRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.Asset) error) *AssetAssetRepository_Save_Call
- type AssetAssetService
- type AssetAssetService_BuildSBOM_Call
- func (_c *AssetAssetService_BuildSBOM_Call) Return(_a0 *cyclonedx.BOM) *AssetAssetService_BuildSBOM_Call
- func (_c *AssetAssetService_BuildSBOM_Call) Run(run func(_a0 models.Asset, version string, orgName string, ...)) *AssetAssetService_BuildSBOM_Call
- func (_c *AssetAssetService_BuildSBOM_Call) RunAndReturn(...) *AssetAssetService_BuildSBOM_Call
- type AssetAssetService_Expecter
- func (_e *AssetAssetService_Expecter) BuildSBOM(_a0 interface{}, version interface{}, orgName interface{}, ...) *AssetAssetService_BuildSBOM_Call
- func (_e *AssetAssetService_Expecter) UpdateAssetRequirements(_a0 interface{}, responsible interface{}, justification interface{}) *AssetAssetService_UpdateAssetRequirements_Call
- type AssetAssetService_UpdateAssetRequirements_Call
- func (_c *AssetAssetService_UpdateAssetRequirements_Call) Return(_a0 error) *AssetAssetService_UpdateAssetRequirements_Call
- func (_c *AssetAssetService_UpdateAssetRequirements_Call) Run(run func(_a0 models.Asset, responsible string, justification string)) *AssetAssetService_UpdateAssetRequirements_Call
- func (_c *AssetAssetService_UpdateAssetRequirements_Call) RunAndReturn(run func(models.Asset, string, string) error) *AssetAssetService_UpdateAssetRequirements_Call
- type AssetComponentRepository
- func (_m *AssetComponentRepository) EXPECT() *AssetComponentRepository_Expecter
- func (_m *AssetComponentRepository) FindByPurl(tx *gorm.DB, purl string) (models.Component, error)
- func (_m *AssetComponentRepository) HandleStateDiff(tx *gorm.DB, assetID uuid.UUID, version string, ...) error
- func (_m *AssetComponentRepository) LoadAssetComponents(tx *gorm.DB, _a1 models.Asset, scanType string, version string) ([]models.ComponentDependency, error)
- func (_m *AssetComponentRepository) SaveBatch(tx *gorm.DB, components []models.Component) error
- type AssetComponentRepository_Expecter
- func (_e *AssetComponentRepository_Expecter) FindByPurl(tx interface{}, purl interface{}) *AssetComponentRepository_FindByPurl_Call
- func (_e *AssetComponentRepository_Expecter) HandleStateDiff(tx interface{}, assetID interface{}, version interface{}, oldState interface{}, ...) *AssetComponentRepository_HandleStateDiff_Call
- func (_e *AssetComponentRepository_Expecter) LoadAssetComponents(tx interface{}, _a1 interface{}, scanType interface{}, version interface{}) *AssetComponentRepository_LoadAssetComponents_Call
- func (_e *AssetComponentRepository_Expecter) SaveBatch(tx interface{}, components interface{}) *AssetComponentRepository_SaveBatch_Call
- type AssetComponentRepository_FindByPurl_Call
- func (_c *AssetComponentRepository_FindByPurl_Call) Return(_a0 models.Component, _a1 error) *AssetComponentRepository_FindByPurl_Call
- func (_c *AssetComponentRepository_FindByPurl_Call) Run(run func(tx *gorm.DB, purl string)) *AssetComponentRepository_FindByPurl_Call
- func (_c *AssetComponentRepository_FindByPurl_Call) RunAndReturn(run func(*gorm.DB, string) (models.Component, error)) *AssetComponentRepository_FindByPurl_Call
- type AssetComponentRepository_HandleStateDiff_Call
- func (_c *AssetComponentRepository_HandleStateDiff_Call) Return(_a0 error) *AssetComponentRepository_HandleStateDiff_Call
- func (_c *AssetComponentRepository_HandleStateDiff_Call) Run(run func(tx *gorm.DB, assetID uuid.UUID, version string, ...)) *AssetComponentRepository_HandleStateDiff_Call
- func (_c *AssetComponentRepository_HandleStateDiff_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID, string, []models.ComponentDependency, ...) error) *AssetComponentRepository_HandleStateDiff_Call
- type AssetComponentRepository_LoadAssetComponents_Call
- func (_c *AssetComponentRepository_LoadAssetComponents_Call) Return(_a0 []models.ComponentDependency, _a1 error) *AssetComponentRepository_LoadAssetComponents_Call
- func (_c *AssetComponentRepository_LoadAssetComponents_Call) Run(run func(tx *gorm.DB, _a1 models.Asset, scanType string, version string)) *AssetComponentRepository_LoadAssetComponents_Call
- func (_c *AssetComponentRepository_LoadAssetComponents_Call) RunAndReturn(...) *AssetComponentRepository_LoadAssetComponents_Call
- type AssetComponentRepository_SaveBatch_Call
- func (_c *AssetComponentRepository_SaveBatch_Call) Return(_a0 error) *AssetComponentRepository_SaveBatch_Call
- func (_c *AssetComponentRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, components []models.Component)) *AssetComponentRepository_SaveBatch_Call
- func (_c *AssetComponentRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Component) error) *AssetComponentRepository_SaveBatch_Call
- type AssetFlawRepository
- func (_m *AssetFlawRepository) EXPECT() *AssetFlawRepository_Expecter
- func (_m *AssetFlawRepository) GetAllFlawsByAssetID(tx *gorm.DB, assetID uuid.UUID) ([]models.Flaw, error)
- func (_m *AssetFlawRepository) GetFlawsByPurl(tx *gorm.DB, purl []string) ([]models.Flaw, error)
- func (_m *AssetFlawRepository) ListByScanner(assetID uuid.UUID, scannerID string) ([]models.Flaw, error)
- func (_m *AssetFlawRepository) SaveBatch(db *gorm.DB, flaws []models.Flaw) error
- func (_m *AssetFlawRepository) Transaction(txFunc func(*gorm.DB) error) error
- type AssetFlawRepository_Expecter
- func (_e *AssetFlawRepository_Expecter) GetAllFlawsByAssetID(tx interface{}, assetID interface{}) *AssetFlawRepository_GetAllFlawsByAssetID_Call
- func (_e *AssetFlawRepository_Expecter) GetFlawsByPurl(tx interface{}, purl interface{}) *AssetFlawRepository_GetFlawsByPurl_Call
- func (_e *AssetFlawRepository_Expecter) ListByScanner(assetID interface{}, scannerID interface{}) *AssetFlawRepository_ListByScanner_Call
- func (_e *AssetFlawRepository_Expecter) SaveBatch(db interface{}, flaws interface{}) *AssetFlawRepository_SaveBatch_Call
- func (_e *AssetFlawRepository_Expecter) Transaction(txFunc interface{}) *AssetFlawRepository_Transaction_Call
- type AssetFlawRepository_GetAllFlawsByAssetID_Call
- func (_c *AssetFlawRepository_GetAllFlawsByAssetID_Call) Return(_a0 []models.Flaw, _a1 error) *AssetFlawRepository_GetAllFlawsByAssetID_Call
- func (_c *AssetFlawRepository_GetAllFlawsByAssetID_Call) Run(run func(tx *gorm.DB, assetID uuid.UUID)) *AssetFlawRepository_GetAllFlawsByAssetID_Call
- func (_c *AssetFlawRepository_GetAllFlawsByAssetID_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) ([]models.Flaw, error)) *AssetFlawRepository_GetAllFlawsByAssetID_Call
- type AssetFlawRepository_GetFlawsByPurl_Call
- func (_c *AssetFlawRepository_GetFlawsByPurl_Call) Return(_a0 []models.Flaw, _a1 error) *AssetFlawRepository_GetFlawsByPurl_Call
- func (_c *AssetFlawRepository_GetFlawsByPurl_Call) Run(run func(tx *gorm.DB, purl []string)) *AssetFlawRepository_GetFlawsByPurl_Call
- func (_c *AssetFlawRepository_GetFlawsByPurl_Call) RunAndReturn(run func(*gorm.DB, []string) ([]models.Flaw, error)) *AssetFlawRepository_GetFlawsByPurl_Call
- type AssetFlawRepository_ListByScanner_Call
- func (_c *AssetFlawRepository_ListByScanner_Call) Return(_a0 []models.Flaw, _a1 error) *AssetFlawRepository_ListByScanner_Call
- func (_c *AssetFlawRepository_ListByScanner_Call) Run(run func(assetID uuid.UUID, scannerID string)) *AssetFlawRepository_ListByScanner_Call
- func (_c *AssetFlawRepository_ListByScanner_Call) RunAndReturn(run func(uuid.UUID, string) ([]models.Flaw, error)) *AssetFlawRepository_ListByScanner_Call
- type AssetFlawRepository_SaveBatch_Call
- func (_c *AssetFlawRepository_SaveBatch_Call) Return(_a0 error) *AssetFlawRepository_SaveBatch_Call
- func (_c *AssetFlawRepository_SaveBatch_Call) Run(run func(db *gorm.DB, flaws []models.Flaw)) *AssetFlawRepository_SaveBatch_Call
- func (_c *AssetFlawRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Flaw) error) *AssetFlawRepository_SaveBatch_Call
- type AssetFlawRepository_Transaction_Call
- func (_c *AssetFlawRepository_Transaction_Call) Return(_a0 error) *AssetFlawRepository_Transaction_Call
- func (_c *AssetFlawRepository_Transaction_Call) Run(run func(txFunc func(*gorm.DB) error)) *AssetFlawRepository_Transaction_Call
- func (_c *AssetFlawRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *AssetFlawRepository_Transaction_Call
- type AssetFlawService
- func (_m *AssetFlawService) EXPECT() *AssetFlawService_Expecter
- func (_m *AssetFlawService) RecalculateRawRiskAssessment(tx *gorm.DB, userID string, flaws []models.Flaw, justification string, ...) error
- func (_m *AssetFlawService) UpdateFlawState(tx *gorm.DB, userID string, flaw *models.Flaw, statusType string, ...) error
- func (_m *AssetFlawService) UserDetectedFlaws(tx *gorm.DB, userID string, flaws []models.Flaw, _a3 models.Asset) error
- func (_m *AssetFlawService) UserFixedFlaws(tx *gorm.DB, userID string, flaws []models.Flaw) error
- type AssetFlawService_Expecter
- func (_e *AssetFlawService_Expecter) RecalculateRawRiskAssessment(tx interface{}, userID interface{}, flaws interface{}, ...) *AssetFlawService_RecalculateRawRiskAssessment_Call
- func (_e *AssetFlawService_Expecter) UpdateFlawState(tx interface{}, userID interface{}, flaw interface{}, statusType interface{}, ...) *AssetFlawService_UpdateFlawState_Call
- func (_e *AssetFlawService_Expecter) UserDetectedFlaws(tx interface{}, userID interface{}, flaws interface{}, _a3 interface{}) *AssetFlawService_UserDetectedFlaws_Call
- func (_e *AssetFlawService_Expecter) UserFixedFlaws(tx interface{}, userID interface{}, flaws interface{}) *AssetFlawService_UserFixedFlaws_Call
- type AssetFlawService_RecalculateRawRiskAssessment_Call
- func (_c *AssetFlawService_RecalculateRawRiskAssessment_Call) Return(_a0 error) *AssetFlawService_RecalculateRawRiskAssessment_Call
- func (_c *AssetFlawService_RecalculateRawRiskAssessment_Call) Run(...) *AssetFlawService_RecalculateRawRiskAssessment_Call
- func (_c *AssetFlawService_RecalculateRawRiskAssessment_Call) RunAndReturn(run func(*gorm.DB, string, []models.Flaw, string, models.Asset) error) *AssetFlawService_RecalculateRawRiskAssessment_Call
- type AssetFlawService_UpdateFlawState_Call
- func (_c *AssetFlawService_UpdateFlawState_Call) Return(_a0 error) *AssetFlawService_UpdateFlawState_Call
- func (_c *AssetFlawService_UpdateFlawState_Call) Run(...) *AssetFlawService_UpdateFlawState_Call
- func (_c *AssetFlawService_UpdateFlawState_Call) RunAndReturn(run func(*gorm.DB, string, *models.Flaw, string, *string) error) *AssetFlawService_UpdateFlawState_Call
- type AssetFlawService_UserDetectedFlaws_Call
- func (_c *AssetFlawService_UserDetectedFlaws_Call) Return(_a0 error) *AssetFlawService_UserDetectedFlaws_Call
- func (_c *AssetFlawService_UserDetectedFlaws_Call) Run(run func(tx *gorm.DB, userID string, flaws []models.Flaw, _a3 models.Asset)) *AssetFlawService_UserDetectedFlaws_Call
- func (_c *AssetFlawService_UserDetectedFlaws_Call) RunAndReturn(run func(*gorm.DB, string, []models.Flaw, models.Asset) error) *AssetFlawService_UserDetectedFlaws_Call
- type AssetFlawService_UserFixedFlaws_Call
- func (_c *AssetFlawService_UserFixedFlaws_Call) Return(_a0 error) *AssetFlawService_UserFixedFlaws_Call
- func (_c *AssetFlawService_UserFixedFlaws_Call) Run(run func(tx *gorm.DB, userID string, flaws []models.Flaw)) *AssetFlawService_UserFixedFlaws_Call
- func (_c *AssetFlawService_UserFixedFlaws_Call) RunAndReturn(run func(*gorm.DB, string, []models.Flaw) error) *AssetFlawService_UserFixedFlaws_Call
- type AssetRepository
- func (_m *AssetRepository) Begin() *gorm.DB
- func (_m *AssetRepository) Create(tx *gorm.DB, t *models.Asset) error
- func (_m *AssetRepository) CreateBatch(tx *gorm.DB, ts []models.Asset) error
- func (_m *AssetRepository) Delete(tx *gorm.DB, id uuid.UUID) error
- func (_m *AssetRepository) EXPECT() *AssetRepository_Expecter
- func (_m *AssetRepository) FindByName(name string) (models.Asset, error)
- func (_m *AssetRepository) FindOrCreate(tx *gorm.DB, name string) (models.Asset, error)
- func (_m *AssetRepository) GetAssetIDBySlug(projectID uuid.UUID, slug string) (uuid.UUID, error)
- func (_m *AssetRepository) GetByProjectID(projectID uuid.UUID) ([]models.Asset, error)
- func (_m *AssetRepository) GetDB(tx *gorm.DB) *gorm.DB
- func (_m *AssetRepository) List(ids []uuid.UUID) ([]models.Asset, error)
- func (_m *AssetRepository) Read(id uuid.UUID) (models.Asset, error)
- func (_m *AssetRepository) ReadBySlug(projectID uuid.UUID, slug string) (models.Asset, error)
- func (_m *AssetRepository) Save(tx *gorm.DB, t *models.Asset) error
- func (_m *AssetRepository) SaveBatch(tx *gorm.DB, ts []models.Asset) error
- func (_m *AssetRepository) Transaction(_a0 func(*gorm.DB) error) error
- func (_m *AssetRepository) Update(tx *gorm.DB, _a1 *models.Asset) error
- type AssetRepository_Begin_Call
- type AssetRepository_CreateBatch_Call
- func (_c *AssetRepository_CreateBatch_Call) Return(_a0 error) *AssetRepository_CreateBatch_Call
- func (_c *AssetRepository_CreateBatch_Call) Run(run func(tx *gorm.DB, ts []models.Asset)) *AssetRepository_CreateBatch_Call
- func (_c *AssetRepository_CreateBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Asset) error) *AssetRepository_CreateBatch_Call
- type AssetRepository_Create_Call
- func (_c *AssetRepository_Create_Call) Return(_a0 error) *AssetRepository_Create_Call
- func (_c *AssetRepository_Create_Call) Run(run func(tx *gorm.DB, t *models.Asset)) *AssetRepository_Create_Call
- func (_c *AssetRepository_Create_Call) RunAndReturn(run func(*gorm.DB, *models.Asset) error) *AssetRepository_Create_Call
- type AssetRepository_Delete_Call
- func (_c *AssetRepository_Delete_Call) Return(_a0 error) *AssetRepository_Delete_Call
- func (_c *AssetRepository_Delete_Call) Run(run func(tx *gorm.DB, id uuid.UUID)) *AssetRepository_Delete_Call
- func (_c *AssetRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *AssetRepository_Delete_Call
- type AssetRepository_Expecter
- func (_e *AssetRepository_Expecter) Begin() *AssetRepository_Begin_Call
- func (_e *AssetRepository_Expecter) Create(tx interface{}, t interface{}) *AssetRepository_Create_Call
- func (_e *AssetRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *AssetRepository_CreateBatch_Call
- func (_e *AssetRepository_Expecter) Delete(tx interface{}, id interface{}) *AssetRepository_Delete_Call
- func (_e *AssetRepository_Expecter) FindByName(name interface{}) *AssetRepository_FindByName_Call
- func (_e *AssetRepository_Expecter) FindOrCreate(tx interface{}, name interface{}) *AssetRepository_FindOrCreate_Call
- func (_e *AssetRepository_Expecter) GetAssetIDBySlug(projectID interface{}, slug interface{}) *AssetRepository_GetAssetIDBySlug_Call
- func (_e *AssetRepository_Expecter) GetByProjectID(projectID interface{}) *AssetRepository_GetByProjectID_Call
- func (_e *AssetRepository_Expecter) GetDB(tx interface{}) *AssetRepository_GetDB_Call
- func (_e *AssetRepository_Expecter) List(ids interface{}) *AssetRepository_List_Call
- func (_e *AssetRepository_Expecter) Read(id interface{}) *AssetRepository_Read_Call
- func (_e *AssetRepository_Expecter) ReadBySlug(projectID interface{}, slug interface{}) *AssetRepository_ReadBySlug_Call
- func (_e *AssetRepository_Expecter) Save(tx interface{}, t interface{}) *AssetRepository_Save_Call
- func (_e *AssetRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *AssetRepository_SaveBatch_Call
- func (_e *AssetRepository_Expecter) Transaction(_a0 interface{}) *AssetRepository_Transaction_Call
- func (_e *AssetRepository_Expecter) Update(tx interface{}, _a1 interface{}) *AssetRepository_Update_Call
- type AssetRepository_FindByName_Call
- func (_c *AssetRepository_FindByName_Call) Return(_a0 models.Asset, _a1 error) *AssetRepository_FindByName_Call
- func (_c *AssetRepository_FindByName_Call) Run(run func(name string)) *AssetRepository_FindByName_Call
- func (_c *AssetRepository_FindByName_Call) RunAndReturn(run func(string) (models.Asset, error)) *AssetRepository_FindByName_Call
- type AssetRepository_FindOrCreate_Call
- func (_c *AssetRepository_FindOrCreate_Call) Return(_a0 models.Asset, _a1 error) *AssetRepository_FindOrCreate_Call
- func (_c *AssetRepository_FindOrCreate_Call) Run(run func(tx *gorm.DB, name string)) *AssetRepository_FindOrCreate_Call
- func (_c *AssetRepository_FindOrCreate_Call) RunAndReturn(run func(*gorm.DB, string) (models.Asset, error)) *AssetRepository_FindOrCreate_Call
- type AssetRepository_GetAssetIDBySlug_Call
- func (_c *AssetRepository_GetAssetIDBySlug_Call) Return(_a0 uuid.UUID, _a1 error) *AssetRepository_GetAssetIDBySlug_Call
- func (_c *AssetRepository_GetAssetIDBySlug_Call) Run(run func(projectID uuid.UUID, slug string)) *AssetRepository_GetAssetIDBySlug_Call
- func (_c *AssetRepository_GetAssetIDBySlug_Call) RunAndReturn(run func(uuid.UUID, string) (uuid.UUID, error)) *AssetRepository_GetAssetIDBySlug_Call
- type AssetRepository_GetByProjectID_Call
- func (_c *AssetRepository_GetByProjectID_Call) Return(_a0 []models.Asset, _a1 error) *AssetRepository_GetByProjectID_Call
- func (_c *AssetRepository_GetByProjectID_Call) Run(run func(projectID uuid.UUID)) *AssetRepository_GetByProjectID_Call
- func (_c *AssetRepository_GetByProjectID_Call) RunAndReturn(run func(uuid.UUID) ([]models.Asset, error)) *AssetRepository_GetByProjectID_Call
- type AssetRepository_GetDB_Call
- type AssetRepository_List_Call
- func (_c *AssetRepository_List_Call) Return(_a0 []models.Asset, _a1 error) *AssetRepository_List_Call
- func (_c *AssetRepository_List_Call) Run(run func(ids []uuid.UUID)) *AssetRepository_List_Call
- func (_c *AssetRepository_List_Call) RunAndReturn(run func([]uuid.UUID) ([]models.Asset, error)) *AssetRepository_List_Call
- type AssetRepository_ReadBySlug_Call
- func (_c *AssetRepository_ReadBySlug_Call) Return(_a0 models.Asset, _a1 error) *AssetRepository_ReadBySlug_Call
- func (_c *AssetRepository_ReadBySlug_Call) Run(run func(projectID uuid.UUID, slug string)) *AssetRepository_ReadBySlug_Call
- func (_c *AssetRepository_ReadBySlug_Call) RunAndReturn(run func(uuid.UUID, string) (models.Asset, error)) *AssetRepository_ReadBySlug_Call
- type AssetRepository_Read_Call
- func (_c *AssetRepository_Read_Call) Return(_a0 models.Asset, _a1 error) *AssetRepository_Read_Call
- func (_c *AssetRepository_Read_Call) Run(run func(id uuid.UUID)) *AssetRepository_Read_Call
- func (_c *AssetRepository_Read_Call) RunAndReturn(run func(uuid.UUID) (models.Asset, error)) *AssetRepository_Read_Call
- type AssetRepository_SaveBatch_Call
- func (_c *AssetRepository_SaveBatch_Call) Return(_a0 error) *AssetRepository_SaveBatch_Call
- func (_c *AssetRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, ts []models.Asset)) *AssetRepository_SaveBatch_Call
- func (_c *AssetRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Asset) error) *AssetRepository_SaveBatch_Call
- type AssetRepository_Save_Call
- func (_c *AssetRepository_Save_Call) Return(_a0 error) *AssetRepository_Save_Call
- func (_c *AssetRepository_Save_Call) Run(run func(tx *gorm.DB, t *models.Asset)) *AssetRepository_Save_Call
- func (_c *AssetRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.Asset) error) *AssetRepository_Save_Call
- type AssetRepository_Transaction_Call
- func (_c *AssetRepository_Transaction_Call) Return(_a0 error) *AssetRepository_Transaction_Call
- func (_c *AssetRepository_Transaction_Call) Run(run func(_a0 func(*gorm.DB) error)) *AssetRepository_Transaction_Call
- func (_c *AssetRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *AssetRepository_Transaction_Call
- type AssetRepository_Update_Call
- func (_c *AssetRepository_Update_Call) Return(_a0 error) *AssetRepository_Update_Call
- func (_c *AssetRepository_Update_Call) Run(run func(tx *gorm.DB, _a1 *models.Asset)) *AssetRepository_Update_Call
- func (_c *AssetRepository_Update_Call) RunAndReturn(run func(*gorm.DB, *models.Asset) error) *AssetRepository_Update_Call
- type AssetVulnService
- type AssetVulnService_Expecter
- type AssetVulnService_GetVulnsForAll_Call
- func (_c *AssetVulnService_GetVulnsForAll_Call) Return(_a0 []models.VulnInPackage, _a1 error) *AssetVulnService_GetVulnsForAll_Call
- func (_c *AssetVulnService_GetVulnsForAll_Call) Run(run func(purls []string)) *AssetVulnService_GetVulnsForAll_Call
- func (_c *AssetVulnService_GetVulnsForAll_Call) RunAndReturn(run func([]string) ([]models.VulnInPackage, error)) *AssetVulnService_GetVulnsForAll_Call
- type ConfigConfigRepository
- type ConfigConfigRepository_Expecter
- type ConfigConfigRepository_GetDB_Call
- func (_c *ConfigConfigRepository_GetDB_Call) Return(_a0 *gorm.DB) *ConfigConfigRepository_GetDB_Call
- func (_c *ConfigConfigRepository_GetDB_Call) Run(run func(tx *gorm.DB)) *ConfigConfigRepository_GetDB_Call
- func (_c *ConfigConfigRepository_GetDB_Call) RunAndReturn(run func(*gorm.DB) *gorm.DB) *ConfigConfigRepository_GetDB_Call
- type ConfigConfigRepository_Save_Call
- func (_c *ConfigConfigRepository_Save_Call) Return(_a0 error) *ConfigConfigRepository_Save_Call
- func (_c *ConfigConfigRepository_Save_Call) Run(run func(tx *gorm.DB, _a1 *models.Config)) *ConfigConfigRepository_Save_Call
- func (_c *ConfigConfigRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.Config) error) *ConfigConfigRepository_Save_Call
- type CoreAuthSession
- type CoreAuthSession_Expecter
- type CoreAuthSession_GetUserID_Call
- type CoreThirdPartyIntegration
- func (_m *CoreThirdPartyIntegration) EXPECT() *CoreThirdPartyIntegration_Expecter
- func (_m *CoreThirdPartyIntegration) FinishInstallation(ctx echo.Context) error
- func (_m *CoreThirdPartyIntegration) HandleEvent(event interface{}) error
- func (_m *CoreThirdPartyIntegration) HandleWebhook(ctx echo.Context) error
- func (_m *CoreThirdPartyIntegration) IntegrationEnabled(ctx echo.Context) bool
- func (_m *CoreThirdPartyIntegration) ListRepositories(ctx echo.Context) ([]core.Repository, error)
- func (_m *CoreThirdPartyIntegration) WantsToFinishInstallation(ctx echo.Context) bool
- func (_m *CoreThirdPartyIntegration) WantsToHandleWebhook(ctx echo.Context) bool
- type CoreThirdPartyIntegration_Expecter
- func (_e *CoreThirdPartyIntegration_Expecter) FinishInstallation(ctx interface{}) *CoreThirdPartyIntegration_FinishInstallation_Call
- func (_e *CoreThirdPartyIntegration_Expecter) HandleEvent(event interface{}) *CoreThirdPartyIntegration_HandleEvent_Call
- func (_e *CoreThirdPartyIntegration_Expecter) HandleWebhook(ctx interface{}) *CoreThirdPartyIntegration_HandleWebhook_Call
- func (_e *CoreThirdPartyIntegration_Expecter) IntegrationEnabled(ctx interface{}) *CoreThirdPartyIntegration_IntegrationEnabled_Call
- func (_e *CoreThirdPartyIntegration_Expecter) ListRepositories(ctx interface{}) *CoreThirdPartyIntegration_ListRepositories_Call
- func (_e *CoreThirdPartyIntegration_Expecter) WantsToFinishInstallation(ctx interface{}) *CoreThirdPartyIntegration_WantsToFinishInstallation_Call
- func (_e *CoreThirdPartyIntegration_Expecter) WantsToHandleWebhook(ctx interface{}) *CoreThirdPartyIntegration_WantsToHandleWebhook_Call
- type CoreThirdPartyIntegration_FinishInstallation_Call
- func (_c *CoreThirdPartyIntegration_FinishInstallation_Call) Return(_a0 error) *CoreThirdPartyIntegration_FinishInstallation_Call
- func (_c *CoreThirdPartyIntegration_FinishInstallation_Call) Run(run func(ctx echo.Context)) *CoreThirdPartyIntegration_FinishInstallation_Call
- func (_c *CoreThirdPartyIntegration_FinishInstallation_Call) RunAndReturn(run func(echo.Context) error) *CoreThirdPartyIntegration_FinishInstallation_Call
- type CoreThirdPartyIntegration_HandleEvent_Call
- func (_c *CoreThirdPartyIntegration_HandleEvent_Call) Return(_a0 error) *CoreThirdPartyIntegration_HandleEvent_Call
- func (_c *CoreThirdPartyIntegration_HandleEvent_Call) Run(run func(event interface{})) *CoreThirdPartyIntegration_HandleEvent_Call
- func (_c *CoreThirdPartyIntegration_HandleEvent_Call) RunAndReturn(run func(interface{}) error) *CoreThirdPartyIntegration_HandleEvent_Call
- type CoreThirdPartyIntegration_HandleWebhook_Call
- func (_c *CoreThirdPartyIntegration_HandleWebhook_Call) Return(_a0 error) *CoreThirdPartyIntegration_HandleWebhook_Call
- func (_c *CoreThirdPartyIntegration_HandleWebhook_Call) Run(run func(ctx echo.Context)) *CoreThirdPartyIntegration_HandleWebhook_Call
- func (_c *CoreThirdPartyIntegration_HandleWebhook_Call) RunAndReturn(run func(echo.Context) error) *CoreThirdPartyIntegration_HandleWebhook_Call
- type CoreThirdPartyIntegration_IntegrationEnabled_Call
- func (_c *CoreThirdPartyIntegration_IntegrationEnabled_Call) Return(_a0 bool) *CoreThirdPartyIntegration_IntegrationEnabled_Call
- func (_c *CoreThirdPartyIntegration_IntegrationEnabled_Call) Run(run func(ctx echo.Context)) *CoreThirdPartyIntegration_IntegrationEnabled_Call
- func (_c *CoreThirdPartyIntegration_IntegrationEnabled_Call) RunAndReturn(run func(echo.Context) bool) *CoreThirdPartyIntegration_IntegrationEnabled_Call
- type CoreThirdPartyIntegration_ListRepositories_Call
- func (_c *CoreThirdPartyIntegration_ListRepositories_Call) Return(_a0 []core.Repository, _a1 error) *CoreThirdPartyIntegration_ListRepositories_Call
- func (_c *CoreThirdPartyIntegration_ListRepositories_Call) Run(run func(ctx echo.Context)) *CoreThirdPartyIntegration_ListRepositories_Call
- func (_c *CoreThirdPartyIntegration_ListRepositories_Call) RunAndReturn(run func(echo.Context) ([]core.Repository, error)) *CoreThirdPartyIntegration_ListRepositories_Call
- type CoreThirdPartyIntegration_WantsToFinishInstallation_Call
- func (_c *CoreThirdPartyIntegration_WantsToFinishInstallation_Call) Return(_a0 bool) *CoreThirdPartyIntegration_WantsToFinishInstallation_Call
- func (_c *CoreThirdPartyIntegration_WantsToFinishInstallation_Call) Run(run func(ctx echo.Context)) *CoreThirdPartyIntegration_WantsToFinishInstallation_Call
- func (_c *CoreThirdPartyIntegration_WantsToFinishInstallation_Call) RunAndReturn(run func(echo.Context) bool) *CoreThirdPartyIntegration_WantsToFinishInstallation_Call
- type CoreThirdPartyIntegration_WantsToHandleWebhook_Call
- func (_c *CoreThirdPartyIntegration_WantsToHandleWebhook_Call) Return(_a0 bool) *CoreThirdPartyIntegration_WantsToHandleWebhook_Call
- func (_c *CoreThirdPartyIntegration_WantsToHandleWebhook_Call) Run(run func(ctx echo.Context)) *CoreThirdPartyIntegration_WantsToHandleWebhook_Call
- func (_c *CoreThirdPartyIntegration_WantsToHandleWebhook_Call) RunAndReturn(run func(echo.Context) bool) *CoreThirdPartyIntegration_WantsToHandleWebhook_Call
- type FlawAssetRepository
- type FlawAssetRepository_Expecter
- type FlawAssetRepository_GetAllAssetsFromDB_Call
- func (_c *FlawAssetRepository_GetAllAssetsFromDB_Call) Return(_a0 []models.Asset, _a1 error) *FlawAssetRepository_GetAllAssetsFromDB_Call
- func (_c *FlawAssetRepository_GetAllAssetsFromDB_Call) Run(run func()) *FlawAssetRepository_GetAllAssetsFromDB_Call
- func (_c *FlawAssetRepository_GetAllAssetsFromDB_Call) RunAndReturn(run func() ([]models.Asset, error)) *FlawAssetRepository_GetAllAssetsFromDB_Call
- type FlawAssetRepository_Update_Call
- func (_c *FlawAssetRepository_Update_Call) Return(_a0 error) *FlawAssetRepository_Update_Call
- func (_c *FlawAssetRepository_Update_Call) Run(run func(tx *gorm.DB, asset *models.Asset)) *FlawAssetRepository_Update_Call
- func (_c *FlawAssetRepository_Update_Call) RunAndReturn(run func(*gorm.DB, *models.Asset) error) *FlawAssetRepository_Update_Call
- type FlawCtrFlawEventRepository
- type FlawCtrFlawEventRepository_Create_Call
- func (_c *FlawCtrFlawEventRepository_Create_Call) Return(_a0 error) *FlawCtrFlawEventRepository_Create_Call
- func (_c *FlawCtrFlawEventRepository_Create_Call) Run(run func(tx *gorm.DB, flawEvent *models.FlawEvent)) *FlawCtrFlawEventRepository_Create_Call
- func (_c *FlawCtrFlawEventRepository_Create_Call) RunAndReturn(run func(*gorm.DB, *models.FlawEvent) error) *FlawCtrFlawEventRepository_Create_Call
- type FlawCtrFlawEventRepository_Expecter
- type FlawCveRepository
- type FlawCveRepository_Expecter
- type FlawCveRepository_FindCVE_Call
- func (_c *FlawCveRepository_FindCVE_Call) Return(_a0 models.CVE, _a1 error) *FlawCveRepository_FindCVE_Call
- func (_c *FlawCveRepository_FindCVE_Call) Run(run func(tx *gorm.DB, cveId string)) *FlawCveRepository_FindCVE_Call
- func (_c *FlawCveRepository_FindCVE_Call) RunAndReturn(run func(*gorm.DB, string) (models.CVE, error)) *FlawCveRepository_FindCVE_Call
- type FlawFlawEventRepository
- type FlawFlawEventRepository_Expecter
- type FlawFlawEventRepository_SaveBatch_Call
- func (_c *FlawFlawEventRepository_SaveBatch_Call) Return(_a0 error) *FlawFlawEventRepository_SaveBatch_Call
- func (_c *FlawFlawEventRepository_SaveBatch_Call) Run(run func(db *gorm.DB, events []models.FlawEvent)) *FlawFlawEventRepository_SaveBatch_Call
- func (_c *FlawFlawEventRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.FlawEvent) error) *FlawFlawEventRepository_SaveBatch_Call
- type FlawFlawEventRepository_Save_Call
- func (_c *FlawFlawEventRepository_Save_Call) Return(_a0 error) *FlawFlawEventRepository_Save_Call
- func (_c *FlawFlawEventRepository_Save_Call) Run(run func(db *gorm.DB, event *models.FlawEvent)) *FlawFlawEventRepository_Save_Call
- func (_c *FlawFlawEventRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.FlawEvent) error) *FlawFlawEventRepository_Save_Call
- type FlawFlawRepository
- func (_m *FlawFlawRepository) Begin() *gorm.DB
- func (_m *FlawFlawRepository) EXPECT() *FlawFlawRepository_Expecter
- func (_m *FlawFlawRepository) GetAllFlawsByAssetID(tx *gorm.DB, assetID uuid.UUID) ([]models.Flaw, error)
- func (_m *FlawFlawRepository) Save(db *gorm.DB, flaws *models.Flaw) error
- func (_m *FlawFlawRepository) SaveBatch(db *gorm.DB, flaws []models.Flaw) error
- func (_m *FlawFlawRepository) Transaction(txFunc func(*gorm.DB) error) error
- type FlawFlawRepository_Begin_Call
- type FlawFlawRepository_Expecter
- func (_e *FlawFlawRepository_Expecter) Begin() *FlawFlawRepository_Begin_Call
- func (_e *FlawFlawRepository_Expecter) GetAllFlawsByAssetID(tx interface{}, assetID interface{}) *FlawFlawRepository_GetAllFlawsByAssetID_Call
- func (_e *FlawFlawRepository_Expecter) Save(db interface{}, flaws interface{}) *FlawFlawRepository_Save_Call
- func (_e *FlawFlawRepository_Expecter) SaveBatch(db interface{}, flaws interface{}) *FlawFlawRepository_SaveBatch_Call
- func (_e *FlawFlawRepository_Expecter) Transaction(txFunc interface{}) *FlawFlawRepository_Transaction_Call
- type FlawFlawRepository_GetAllFlawsByAssetID_Call
- func (_c *FlawFlawRepository_GetAllFlawsByAssetID_Call) Return(_a0 []models.Flaw, _a1 error) *FlawFlawRepository_GetAllFlawsByAssetID_Call
- func (_c *FlawFlawRepository_GetAllFlawsByAssetID_Call) Run(run func(tx *gorm.DB, assetID uuid.UUID)) *FlawFlawRepository_GetAllFlawsByAssetID_Call
- func (_c *FlawFlawRepository_GetAllFlawsByAssetID_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) ([]models.Flaw, error)) *FlawFlawRepository_GetAllFlawsByAssetID_Call
- type FlawFlawRepository_SaveBatch_Call
- func (_c *FlawFlawRepository_SaveBatch_Call) Return(_a0 error) *FlawFlawRepository_SaveBatch_Call
- func (_c *FlawFlawRepository_SaveBatch_Call) Run(run func(db *gorm.DB, flaws []models.Flaw)) *FlawFlawRepository_SaveBatch_Call
- func (_c *FlawFlawRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Flaw) error) *FlawFlawRepository_SaveBatch_Call
- type FlawFlawRepository_Save_Call
- func (_c *FlawFlawRepository_Save_Call) Return(_a0 error) *FlawFlawRepository_Save_Call
- func (_c *FlawFlawRepository_Save_Call) Run(run func(db *gorm.DB, flaws *models.Flaw)) *FlawFlawRepository_Save_Call
- func (_c *FlawFlawRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.Flaw) error) *FlawFlawRepository_Save_Call
- type FlawFlawRepository_Transaction_Call
- func (_c *FlawFlawRepository_Transaction_Call) Return(_a0 error) *FlawFlawRepository_Transaction_Call
- func (_c *FlawFlawRepository_Transaction_Call) Run(run func(txFunc func(*gorm.DB) error)) *FlawFlawRepository_Transaction_Call
- func (_c *FlawFlawRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *FlawFlawRepository_Transaction_Call
- type FlawFlawService
- type FlawFlawService_Expecter
- type FlawFlawService_UpdateFlawState_Call
- func (_c *FlawFlawService_UpdateFlawState_Call) Return(_a0 error) *FlawFlawService_UpdateFlawState_Call
- func (_c *FlawFlawService_UpdateFlawState_Call) Run(run func(tx *gorm.DB, userID string, _a2 *models.Flaw, statusType string, ...)) *FlawFlawService_UpdateFlawState_Call
- func (_c *FlawFlawService_UpdateFlawState_Call) RunAndReturn(run func(*gorm.DB, string, *models.Flaw, string, *string) error) *FlawFlawService_UpdateFlawState_Call
- type FlawRepository
- func (_m *FlawRepository) Begin() *gorm.DB
- func (_m *FlawRepository) Create(tx *gorm.DB, t *models.Flaw) error
- func (_m *FlawRepository) CreateBatch(tx *gorm.DB, ts []models.Flaw) error
- func (_m *FlawRepository) Delete(tx *gorm.DB, id string) error
- func (_m *FlawRepository) EXPECT() *FlawRepository_Expecter
- func (_m *FlawRepository) GetByAssetId(tx *gorm.DB, assetId uuid.UUID) ([]models.Flaw, error)
- func (_m *FlawRepository) GetByAssetIdPaged(tx *gorm.DB, pageInfo core.PageInfo, search string, filter []core.FilterQuery, ...) (core.Paged[models.Flaw], map[string]int, error)
- func (_m *FlawRepository) GetDB(tx *gorm.DB) *gorm.DB
- func (_m *FlawRepository) List(ids []string) ([]models.Flaw, error)
- func (_m *FlawRepository) Read(id string) (models.Flaw, error)
- func (_m *FlawRepository) Save(tx *gorm.DB, t *models.Flaw) error
- func (_m *FlawRepository) SaveBatch(tx *gorm.DB, ts []models.Flaw) error
- func (_m *FlawRepository) Transaction(_a0 func(*gorm.DB) error) error
- type FlawRepository_Begin_Call
- type FlawRepository_CreateBatch_Call
- func (_c *FlawRepository_CreateBatch_Call) Return(_a0 error) *FlawRepository_CreateBatch_Call
- func (_c *FlawRepository_CreateBatch_Call) Run(run func(tx *gorm.DB, ts []models.Flaw)) *FlawRepository_CreateBatch_Call
- func (_c *FlawRepository_CreateBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Flaw) error) *FlawRepository_CreateBatch_Call
- type FlawRepository_Create_Call
- func (_c *FlawRepository_Create_Call) Return(_a0 error) *FlawRepository_Create_Call
- func (_c *FlawRepository_Create_Call) Run(run func(tx *gorm.DB, t *models.Flaw)) *FlawRepository_Create_Call
- func (_c *FlawRepository_Create_Call) RunAndReturn(run func(*gorm.DB, *models.Flaw) error) *FlawRepository_Create_Call
- type FlawRepository_Delete_Call
- func (_c *FlawRepository_Delete_Call) Return(_a0 error) *FlawRepository_Delete_Call
- func (_c *FlawRepository_Delete_Call) Run(run func(tx *gorm.DB, id string)) *FlawRepository_Delete_Call
- func (_c *FlawRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, string) error) *FlawRepository_Delete_Call
- type FlawRepository_Expecter
- func (_e *FlawRepository_Expecter) Begin() *FlawRepository_Begin_Call
- func (_e *FlawRepository_Expecter) Create(tx interface{}, t interface{}) *FlawRepository_Create_Call
- func (_e *FlawRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *FlawRepository_CreateBatch_Call
- func (_e *FlawRepository_Expecter) Delete(tx interface{}, id interface{}) *FlawRepository_Delete_Call
- func (_e *FlawRepository_Expecter) GetByAssetId(tx interface{}, assetId interface{}) *FlawRepository_GetByAssetId_Call
- func (_e *FlawRepository_Expecter) GetByAssetIdPaged(tx interface{}, pageInfo interface{}, search interface{}, filter interface{}, ...) *FlawRepository_GetByAssetIdPaged_Call
- func (_e *FlawRepository_Expecter) GetDB(tx interface{}) *FlawRepository_GetDB_Call
- func (_e *FlawRepository_Expecter) List(ids interface{}) *FlawRepository_List_Call
- func (_e *FlawRepository_Expecter) Read(id interface{}) *FlawRepository_Read_Call
- func (_e *FlawRepository_Expecter) Save(tx interface{}, t interface{}) *FlawRepository_Save_Call
- func (_e *FlawRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *FlawRepository_SaveBatch_Call
- func (_e *FlawRepository_Expecter) Transaction(_a0 interface{}) *FlawRepository_Transaction_Call
- type FlawRepository_GetByAssetIdPaged_Call
- func (_c *FlawRepository_GetByAssetIdPaged_Call) Return(_a0 core.Paged[models.Flaw], _a1 map[string]int, _a2 error) *FlawRepository_GetByAssetIdPaged_Call
- func (_c *FlawRepository_GetByAssetIdPaged_Call) Run(...) *FlawRepository_GetByAssetIdPaged_Call
- func (_c *FlawRepository_GetByAssetIdPaged_Call) RunAndReturn(...) *FlawRepository_GetByAssetIdPaged_Call
- type FlawRepository_GetByAssetId_Call
- func (_c *FlawRepository_GetByAssetId_Call) Return(_a0 []models.Flaw, _a1 error) *FlawRepository_GetByAssetId_Call
- func (_c *FlawRepository_GetByAssetId_Call) Run(run func(tx *gorm.DB, assetId uuid.UUID)) *FlawRepository_GetByAssetId_Call
- func (_c *FlawRepository_GetByAssetId_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) ([]models.Flaw, error)) *FlawRepository_GetByAssetId_Call
- type FlawRepository_GetDB_Call
- type FlawRepository_List_Call
- func (_c *FlawRepository_List_Call) Return(_a0 []models.Flaw, _a1 error) *FlawRepository_List_Call
- func (_c *FlawRepository_List_Call) Run(run func(ids []string)) *FlawRepository_List_Call
- func (_c *FlawRepository_List_Call) RunAndReturn(run func([]string) ([]models.Flaw, error)) *FlawRepository_List_Call
- type FlawRepository_Read_Call
- type FlawRepository_SaveBatch_Call
- func (_c *FlawRepository_SaveBatch_Call) Return(_a0 error) *FlawRepository_SaveBatch_Call
- func (_c *FlawRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, ts []models.Flaw)) *FlawRepository_SaveBatch_Call
- func (_c *FlawRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Flaw) error) *FlawRepository_SaveBatch_Call
- type FlawRepository_Save_Call
- type FlawRepository_Transaction_Call
- func (_c *FlawRepository_Transaction_Call) Return(_a0 error) *FlawRepository_Transaction_Call
- func (_c *FlawRepository_Transaction_Call) Run(run func(_a0 func(*gorm.DB) error)) *FlawRepository_Transaction_Call
- func (_c *FlawRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *FlawRepository_Transaction_Call
- type IntegrationsGithubAppInstallationRepository
- func (_m *IntegrationsGithubAppInstallationRepository) Delete(tx *gorm.DB, installationID int) error
- func (_m *IntegrationsGithubAppInstallationRepository) EXPECT() *IntegrationsGithubAppInstallationRepository_Expecter
- func (_m *IntegrationsGithubAppInstallationRepository) FindByOrganizationId(orgID uuid.UUID) ([]models.GithubAppInstallation, error)
- func (_m *IntegrationsGithubAppInstallationRepository) Read(installationID int) (models.GithubAppInstallation, error)
- func (_m *IntegrationsGithubAppInstallationRepository) Save(tx *gorm.DB, model *models.GithubAppInstallation) error
- type IntegrationsGithubAppInstallationRepository_Delete_Call
- func (_c *IntegrationsGithubAppInstallationRepository_Delete_Call) Return(_a0 error) *IntegrationsGithubAppInstallationRepository_Delete_Call
- func (_c *IntegrationsGithubAppInstallationRepository_Delete_Call) Run(run func(tx *gorm.DB, installationID int)) *IntegrationsGithubAppInstallationRepository_Delete_Call
- func (_c *IntegrationsGithubAppInstallationRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, int) error) *IntegrationsGithubAppInstallationRepository_Delete_Call
- type IntegrationsGithubAppInstallationRepository_Expecter
- func (_e *IntegrationsGithubAppInstallationRepository_Expecter) Delete(tx interface{}, installationID interface{}) *IntegrationsGithubAppInstallationRepository_Delete_Call
- func (_e *IntegrationsGithubAppInstallationRepository_Expecter) FindByOrganizationId(orgID interface{}) *IntegrationsGithubAppInstallationRepository_FindByOrganizationId_Call
- func (_e *IntegrationsGithubAppInstallationRepository_Expecter) Read(installationID interface{}) *IntegrationsGithubAppInstallationRepository_Read_Call
- func (_e *IntegrationsGithubAppInstallationRepository_Expecter) Save(tx interface{}, model interface{}) *IntegrationsGithubAppInstallationRepository_Save_Call
- type IntegrationsGithubAppInstallationRepository_FindByOrganizationId_Call
- func (_c *IntegrationsGithubAppInstallationRepository_FindByOrganizationId_Call) Return(_a0 []models.GithubAppInstallation, _a1 error) *IntegrationsGithubAppInstallationRepository_FindByOrganizationId_Call
- func (_c *IntegrationsGithubAppInstallationRepository_FindByOrganizationId_Call) Run(run func(orgID uuid.UUID)) *IntegrationsGithubAppInstallationRepository_FindByOrganizationId_Call
- func (_c *IntegrationsGithubAppInstallationRepository_FindByOrganizationId_Call) RunAndReturn(run func(uuid.UUID) ([]models.GithubAppInstallation, error)) *IntegrationsGithubAppInstallationRepository_FindByOrganizationId_Call
- type IntegrationsGithubAppInstallationRepository_Read_Call
- func (_c *IntegrationsGithubAppInstallationRepository_Read_Call) Return(_a0 models.GithubAppInstallation, _a1 error) *IntegrationsGithubAppInstallationRepository_Read_Call
- func (_c *IntegrationsGithubAppInstallationRepository_Read_Call) Run(run func(installationID int)) *IntegrationsGithubAppInstallationRepository_Read_Call
- func (_c *IntegrationsGithubAppInstallationRepository_Read_Call) RunAndReturn(run func(int) (models.GithubAppInstallation, error)) *IntegrationsGithubAppInstallationRepository_Read_Call
- type IntegrationsGithubAppInstallationRepository_Save_Call
- func (_c *IntegrationsGithubAppInstallationRepository_Save_Call) Return(_a0 error) *IntegrationsGithubAppInstallationRepository_Save_Call
- func (_c *IntegrationsGithubAppInstallationRepository_Save_Call) Run(run func(tx *gorm.DB, model *models.GithubAppInstallation)) *IntegrationsGithubAppInstallationRepository_Save_Call
- func (_c *IntegrationsGithubAppInstallationRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.GithubAppInstallation) error) *IntegrationsGithubAppInstallationRepository_Save_Call
- type LeaderelectionConfigService
- type LeaderelectionConfigService_Expecter
- type LeaderelectionConfigService_GetJSONConfig_Call
- func (_c *LeaderelectionConfigService_GetJSONConfig_Call) Return(_a0 error) *LeaderelectionConfigService_GetJSONConfig_Call
- func (_c *LeaderelectionConfigService_GetJSONConfig_Call) Run(run func(key string, v interface{})) *LeaderelectionConfigService_GetJSONConfig_Call
- func (_c *LeaderelectionConfigService_GetJSONConfig_Call) RunAndReturn(run func(string, interface{}) error) *LeaderelectionConfigService_GetJSONConfig_Call
- type LeaderelectionConfigService_SetJSONConfig_Call
- func (_c *LeaderelectionConfigService_SetJSONConfig_Call) Return(_a0 error) *LeaderelectionConfigService_SetJSONConfig_Call
- func (_c *LeaderelectionConfigService_SetJSONConfig_Call) Run(run func(key string, v interface{})) *LeaderelectionConfigService_SetJSONConfig_Call
- func (_c *LeaderelectionConfigService_SetJSONConfig_Call) RunAndReturn(run func(string, interface{}) error) *LeaderelectionConfigService_SetJSONConfig_Call
- type NormalizeSBOM
- type NormalizeSBOM_Expecter
- type NormalizeSBOM_GetComponents_Call
- func (_c *NormalizeSBOM_GetComponents_Call) Return(_a0 *[]cyclonedx.Component) *NormalizeSBOM_GetComponents_Call
- func (_c *NormalizeSBOM_GetComponents_Call) Run(run func()) *NormalizeSBOM_GetComponents_Call
- func (_c *NormalizeSBOM_GetComponents_Call) RunAndReturn(run func() *[]cyclonedx.Component) *NormalizeSBOM_GetComponents_Call
- type NormalizeSBOM_GetDependencies_Call
- func (_c *NormalizeSBOM_GetDependencies_Call) Return(_a0 *[]cyclonedx.Dependency) *NormalizeSBOM_GetDependencies_Call
- func (_c *NormalizeSBOM_GetDependencies_Call) Run(run func()) *NormalizeSBOM_GetDependencies_Call
- func (_c *NormalizeSBOM_GetDependencies_Call) RunAndReturn(run func() *[]cyclonedx.Dependency) *NormalizeSBOM_GetDependencies_Call
- type NormalizeSBOM_GetMetadata_Call
- func (_c *NormalizeSBOM_GetMetadata_Call) Return(_a0 *cyclonedx.Metadata) *NormalizeSBOM_GetMetadata_Call
- func (_c *NormalizeSBOM_GetMetadata_Call) Run(run func()) *NormalizeSBOM_GetMetadata_Call
- func (_c *NormalizeSBOM_GetMetadata_Call) RunAndReturn(run func() *cyclonedx.Metadata) *NormalizeSBOM_GetMetadata_Call
- type OrgRepository
- func (_m *OrgRepository) Begin() *gorm.DB
- func (_m *OrgRepository) Create(tx *gorm.DB, t *models.Org) error
- func (_m *OrgRepository) CreateBatch(tx *gorm.DB, ts []models.Org) error
- func (_m *OrgRepository) Delete(tx *gorm.DB, id uuid.UUID) error
- func (_m *OrgRepository) EXPECT() *OrgRepository_Expecter
- func (_m *OrgRepository) GetDB(tx *gorm.DB) *gorm.DB
- func (_m *OrgRepository) List(ids []uuid.UUID) ([]models.Org, error)
- func (_m *OrgRepository) Read(id uuid.UUID) (models.Org, error)
- func (_m *OrgRepository) ReadBySlug(slug string) (models.Org, error)
- func (_m *OrgRepository) Save(tx *gorm.DB, t *models.Org) error
- func (_m *OrgRepository) SaveBatch(tx *gorm.DB, ts []models.Org) error
- func (_m *OrgRepository) Transaction(_a0 func(*gorm.DB) error) error
- type OrgRepository_Begin_Call
- type OrgRepository_CreateBatch_Call
- func (_c *OrgRepository_CreateBatch_Call) Return(_a0 error) *OrgRepository_CreateBatch_Call
- func (_c *OrgRepository_CreateBatch_Call) Run(run func(tx *gorm.DB, ts []models.Org)) *OrgRepository_CreateBatch_Call
- func (_c *OrgRepository_CreateBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Org) error) *OrgRepository_CreateBatch_Call
- type OrgRepository_Create_Call
- func (_c *OrgRepository_Create_Call) Return(_a0 error) *OrgRepository_Create_Call
- func (_c *OrgRepository_Create_Call) Run(run func(tx *gorm.DB, t *models.Org)) *OrgRepository_Create_Call
- func (_c *OrgRepository_Create_Call) RunAndReturn(run func(*gorm.DB, *models.Org) error) *OrgRepository_Create_Call
- type OrgRepository_Delete_Call
- func (_c *OrgRepository_Delete_Call) Return(_a0 error) *OrgRepository_Delete_Call
- func (_c *OrgRepository_Delete_Call) Run(run func(tx *gorm.DB, id uuid.UUID)) *OrgRepository_Delete_Call
- func (_c *OrgRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *OrgRepository_Delete_Call
- type OrgRepository_Expecter
- func (_e *OrgRepository_Expecter) Begin() *OrgRepository_Begin_Call
- func (_e *OrgRepository_Expecter) Create(tx interface{}, t interface{}) *OrgRepository_Create_Call
- func (_e *OrgRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *OrgRepository_CreateBatch_Call
- func (_e *OrgRepository_Expecter) Delete(tx interface{}, id interface{}) *OrgRepository_Delete_Call
- func (_e *OrgRepository_Expecter) GetDB(tx interface{}) *OrgRepository_GetDB_Call
- func (_e *OrgRepository_Expecter) List(ids interface{}) *OrgRepository_List_Call
- func (_e *OrgRepository_Expecter) Read(id interface{}) *OrgRepository_Read_Call
- func (_e *OrgRepository_Expecter) ReadBySlug(slug interface{}) *OrgRepository_ReadBySlug_Call
- func (_e *OrgRepository_Expecter) Save(tx interface{}, t interface{}) *OrgRepository_Save_Call
- func (_e *OrgRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *OrgRepository_SaveBatch_Call
- func (_e *OrgRepository_Expecter) Transaction(_a0 interface{}) *OrgRepository_Transaction_Call
- type OrgRepository_GetDB_Call
- type OrgRepository_List_Call
- func (_c *OrgRepository_List_Call) Return(_a0 []models.Org, _a1 error) *OrgRepository_List_Call
- func (_c *OrgRepository_List_Call) Run(run func(ids []uuid.UUID)) *OrgRepository_List_Call
- func (_c *OrgRepository_List_Call) RunAndReturn(run func([]uuid.UUID) ([]models.Org, error)) *OrgRepository_List_Call
- type OrgRepository_ReadBySlug_Call
- func (_c *OrgRepository_ReadBySlug_Call) Return(_a0 models.Org, _a1 error) *OrgRepository_ReadBySlug_Call
- func (_c *OrgRepository_ReadBySlug_Call) Run(run func(slug string)) *OrgRepository_ReadBySlug_Call
- func (_c *OrgRepository_ReadBySlug_Call) RunAndReturn(run func(string) (models.Org, error)) *OrgRepository_ReadBySlug_Call
- type OrgRepository_Read_Call
- type OrgRepository_SaveBatch_Call
- func (_c *OrgRepository_SaveBatch_Call) Return(_a0 error) *OrgRepository_SaveBatch_Call
- func (_c *OrgRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, ts []models.Org)) *OrgRepository_SaveBatch_Call
- func (_c *OrgRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Org) error) *OrgRepository_SaveBatch_Call
- type OrgRepository_Save_Call
- type OrgRepository_Transaction_Call
- func (_c *OrgRepository_Transaction_Call) Return(_a0 error) *OrgRepository_Transaction_Call
- func (_c *OrgRepository_Transaction_Call) Run(run func(_a0 func(*gorm.DB) error)) *OrgRepository_Transaction_Call
- func (_c *OrgRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *OrgRepository_Transaction_Call
- type PatRepository
- func (_m *PatRepository) Begin() *gorm.DB
- func (_m *PatRepository) Create(tx *gorm.DB, t *models.PAT) error
- func (_m *PatRepository) CreateBatch(tx *gorm.DB, ts []models.PAT) error
- func (_m *PatRepository) Delete(tx *gorm.DB, id uuid.UUID) error
- func (_m *PatRepository) EXPECT() *PatRepository_Expecter
- func (_m *PatRepository) GetByFingerprint(fingerprint string) (models.PAT, error)
- func (_m *PatRepository) GetDB(tx *gorm.DB) *gorm.DB
- func (_m *PatRepository) GetUserIDByToken(token string) (string, error)
- func (_m *PatRepository) List(ids []uuid.UUID) ([]models.PAT, error)
- func (_m *PatRepository) ListByUserID(userId string) ([]models.PAT, error)
- func (_m *PatRepository) Read(id uuid.UUID) (models.PAT, error)
- func (_m *PatRepository) ReadByToken(token string) (models.PAT, error)
- func (_m *PatRepository) Save(tx *gorm.DB, t *models.PAT) error
- func (_m *PatRepository) SaveBatch(tx *gorm.DB, ts []models.PAT) error
- func (_m *PatRepository) Transaction(_a0 func(*gorm.DB) error) error
- type PatRepository_Begin_Call
- type PatRepository_CreateBatch_Call
- func (_c *PatRepository_CreateBatch_Call) Return(_a0 error) *PatRepository_CreateBatch_Call
- func (_c *PatRepository_CreateBatch_Call) Run(run func(tx *gorm.DB, ts []models.PAT)) *PatRepository_CreateBatch_Call
- func (_c *PatRepository_CreateBatch_Call) RunAndReturn(run func(*gorm.DB, []models.PAT) error) *PatRepository_CreateBatch_Call
- type PatRepository_Create_Call
- func (_c *PatRepository_Create_Call) Return(_a0 error) *PatRepository_Create_Call
- func (_c *PatRepository_Create_Call) Run(run func(tx *gorm.DB, t *models.PAT)) *PatRepository_Create_Call
- func (_c *PatRepository_Create_Call) RunAndReturn(run func(*gorm.DB, *models.PAT) error) *PatRepository_Create_Call
- type PatRepository_Delete_Call
- func (_c *PatRepository_Delete_Call) Return(_a0 error) *PatRepository_Delete_Call
- func (_c *PatRepository_Delete_Call) Run(run func(tx *gorm.DB, id uuid.UUID)) *PatRepository_Delete_Call
- func (_c *PatRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *PatRepository_Delete_Call
- type PatRepository_Expecter
- func (_e *PatRepository_Expecter) Begin() *PatRepository_Begin_Call
- func (_e *PatRepository_Expecter) Create(tx interface{}, t interface{}) *PatRepository_Create_Call
- func (_e *PatRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *PatRepository_CreateBatch_Call
- func (_e *PatRepository_Expecter) Delete(tx interface{}, id interface{}) *PatRepository_Delete_Call
- func (_e *PatRepository_Expecter) GetByFingerprint(fingerprint interface{}) *PatRepository_GetByFingerprint_Call
- func (_e *PatRepository_Expecter) GetDB(tx interface{}) *PatRepository_GetDB_Call
- func (_e *PatRepository_Expecter) GetUserIDByToken(token interface{}) *PatRepository_GetUserIDByToken_Call
- func (_e *PatRepository_Expecter) List(ids interface{}) *PatRepository_List_Call
- func (_e *PatRepository_Expecter) ListByUserID(userId interface{}) *PatRepository_ListByUserID_Call
- func (_e *PatRepository_Expecter) Read(id interface{}) *PatRepository_Read_Call
- func (_e *PatRepository_Expecter) ReadByToken(token interface{}) *PatRepository_ReadByToken_Call
- func (_e *PatRepository_Expecter) Save(tx interface{}, t interface{}) *PatRepository_Save_Call
- func (_e *PatRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *PatRepository_SaveBatch_Call
- func (_e *PatRepository_Expecter) Transaction(_a0 interface{}) *PatRepository_Transaction_Call
- type PatRepository_GetByFingerprint_Call
- func (_c *PatRepository_GetByFingerprint_Call) Return(_a0 models.PAT, _a1 error) *PatRepository_GetByFingerprint_Call
- func (_c *PatRepository_GetByFingerprint_Call) Run(run func(fingerprint string)) *PatRepository_GetByFingerprint_Call
- func (_c *PatRepository_GetByFingerprint_Call) RunAndReturn(run func(string) (models.PAT, error)) *PatRepository_GetByFingerprint_Call
- type PatRepository_GetDB_Call
- type PatRepository_GetUserIDByToken_Call
- func (_c *PatRepository_GetUserIDByToken_Call) Return(_a0 string, _a1 error) *PatRepository_GetUserIDByToken_Call
- func (_c *PatRepository_GetUserIDByToken_Call) Run(run func(token string)) *PatRepository_GetUserIDByToken_Call
- func (_c *PatRepository_GetUserIDByToken_Call) RunAndReturn(run func(string) (string, error)) *PatRepository_GetUserIDByToken_Call
- type PatRepository_ListByUserID_Call
- func (_c *PatRepository_ListByUserID_Call) Return(_a0 []models.PAT, _a1 error) *PatRepository_ListByUserID_Call
- func (_c *PatRepository_ListByUserID_Call) Run(run func(userId string)) *PatRepository_ListByUserID_Call
- func (_c *PatRepository_ListByUserID_Call) RunAndReturn(run func(string) ([]models.PAT, error)) *PatRepository_ListByUserID_Call
- type PatRepository_List_Call
- func (_c *PatRepository_List_Call) Return(_a0 []models.PAT, _a1 error) *PatRepository_List_Call
- func (_c *PatRepository_List_Call) Run(run func(ids []uuid.UUID)) *PatRepository_List_Call
- func (_c *PatRepository_List_Call) RunAndReturn(run func([]uuid.UUID) ([]models.PAT, error)) *PatRepository_List_Call
- type PatRepository_ReadByToken_Call
- func (_c *PatRepository_ReadByToken_Call) Return(_a0 models.PAT, _a1 error) *PatRepository_ReadByToken_Call
- func (_c *PatRepository_ReadByToken_Call) Run(run func(token string)) *PatRepository_ReadByToken_Call
- func (_c *PatRepository_ReadByToken_Call) RunAndReturn(run func(string) (models.PAT, error)) *PatRepository_ReadByToken_Call
- type PatRepository_Read_Call
- type PatRepository_SaveBatch_Call
- func (_c *PatRepository_SaveBatch_Call) Return(_a0 error) *PatRepository_SaveBatch_Call
- func (_c *PatRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, ts []models.PAT)) *PatRepository_SaveBatch_Call
- func (_c *PatRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.PAT) error) *PatRepository_SaveBatch_Call
- type PatRepository_Save_Call
- type PatRepository_Transaction_Call
- func (_c *PatRepository_Transaction_Call) Return(_a0 error) *PatRepository_Transaction_Call
- func (_c *PatRepository_Transaction_Call) Run(run func(_a0 func(*gorm.DB) error)) *PatRepository_Transaction_Call
- func (_c *PatRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *PatRepository_Transaction_Call
- type ProjectAssetRepository
- type ProjectAssetRepository_Expecter
- type ProjectAssetRepository_GetByProjectID_Call
- func (_c *ProjectAssetRepository_GetByProjectID_Call) Return(_a0 []models.Asset, _a1 error) *ProjectAssetRepository_GetByProjectID_Call
- func (_c *ProjectAssetRepository_GetByProjectID_Call) Run(run func(projectID uuid.UUID)) *ProjectAssetRepository_GetByProjectID_Call
- func (_c *ProjectAssetRepository_GetByProjectID_Call) RunAndReturn(run func(uuid.UUID) ([]models.Asset, error)) *ProjectAssetRepository_GetByProjectID_Call
- type ProjectProjectRepository
- func (_m *ProjectProjectRepository) Begin() *gorm.DB
- func (_m *ProjectProjectRepository) Create(tx *gorm.DB, t *models.Project) error
- func (_m *ProjectProjectRepository) CreateBatch(tx *gorm.DB, ts []models.Project) error
- func (_m *ProjectProjectRepository) Delete(tx *gorm.DB, id uuid.UUID) error
- func (_m *ProjectProjectRepository) EXPECT() *ProjectProjectRepository_Expecter
- func (_m *ProjectProjectRepository) GetDB(tx *gorm.DB) *gorm.DB
- func (_m *ProjectProjectRepository) List(ids []uuid.UUID) ([]models.Project, error)
- func (_m *ProjectProjectRepository) Read(id uuid.UUID) (models.Project, error)
- func (_m *ProjectProjectRepository) ReadBySlug(organizationID uuid.UUID, slug string) (models.Project, error)
- func (_m *ProjectProjectRepository) Save(tx *gorm.DB, t *models.Project) error
- func (_m *ProjectProjectRepository) SaveBatch(tx *gorm.DB, ts []models.Project) error
- func (_m *ProjectProjectRepository) Transaction(_a0 func(*gorm.DB) error) error
- func (_m *ProjectProjectRepository) Update(tx *gorm.DB, _a1 *models.Project) error
- type ProjectProjectRepository_Begin_Call
- func (_c *ProjectProjectRepository_Begin_Call) Return(_a0 *gorm.DB) *ProjectProjectRepository_Begin_Call
- func (_c *ProjectProjectRepository_Begin_Call) Run(run func()) *ProjectProjectRepository_Begin_Call
- func (_c *ProjectProjectRepository_Begin_Call) RunAndReturn(run func() *gorm.DB) *ProjectProjectRepository_Begin_Call
- type ProjectProjectRepository_CreateBatch_Call
- func (_c *ProjectProjectRepository_CreateBatch_Call) Return(_a0 error) *ProjectProjectRepository_CreateBatch_Call
- func (_c *ProjectProjectRepository_CreateBatch_Call) Run(run func(tx *gorm.DB, ts []models.Project)) *ProjectProjectRepository_CreateBatch_Call
- func (_c *ProjectProjectRepository_CreateBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Project) error) *ProjectProjectRepository_CreateBatch_Call
- type ProjectProjectRepository_Create_Call
- func (_c *ProjectProjectRepository_Create_Call) Return(_a0 error) *ProjectProjectRepository_Create_Call
- func (_c *ProjectProjectRepository_Create_Call) Run(run func(tx *gorm.DB, t *models.Project)) *ProjectProjectRepository_Create_Call
- func (_c *ProjectProjectRepository_Create_Call) RunAndReturn(run func(*gorm.DB, *models.Project) error) *ProjectProjectRepository_Create_Call
- type ProjectProjectRepository_Delete_Call
- func (_c *ProjectProjectRepository_Delete_Call) Return(_a0 error) *ProjectProjectRepository_Delete_Call
- func (_c *ProjectProjectRepository_Delete_Call) Run(run func(tx *gorm.DB, id uuid.UUID)) *ProjectProjectRepository_Delete_Call
- func (_c *ProjectProjectRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *ProjectProjectRepository_Delete_Call
- type ProjectProjectRepository_Expecter
- func (_e *ProjectProjectRepository_Expecter) Begin() *ProjectProjectRepository_Begin_Call
- func (_e *ProjectProjectRepository_Expecter) Create(tx interface{}, t interface{}) *ProjectProjectRepository_Create_Call
- func (_e *ProjectProjectRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *ProjectProjectRepository_CreateBatch_Call
- func (_e *ProjectProjectRepository_Expecter) Delete(tx interface{}, id interface{}) *ProjectProjectRepository_Delete_Call
- func (_e *ProjectProjectRepository_Expecter) GetDB(tx interface{}) *ProjectProjectRepository_GetDB_Call
- func (_e *ProjectProjectRepository_Expecter) List(ids interface{}) *ProjectProjectRepository_List_Call
- func (_e *ProjectProjectRepository_Expecter) Read(id interface{}) *ProjectProjectRepository_Read_Call
- func (_e *ProjectProjectRepository_Expecter) ReadBySlug(organizationID interface{}, slug interface{}) *ProjectProjectRepository_ReadBySlug_Call
- func (_e *ProjectProjectRepository_Expecter) Save(tx interface{}, t interface{}) *ProjectProjectRepository_Save_Call
- func (_e *ProjectProjectRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *ProjectProjectRepository_SaveBatch_Call
- func (_e *ProjectProjectRepository_Expecter) Transaction(_a0 interface{}) *ProjectProjectRepository_Transaction_Call
- func (_e *ProjectProjectRepository_Expecter) Update(tx interface{}, _a1 interface{}) *ProjectProjectRepository_Update_Call
- type ProjectProjectRepository_GetDB_Call
- func (_c *ProjectProjectRepository_GetDB_Call) Return(_a0 *gorm.DB) *ProjectProjectRepository_GetDB_Call
- func (_c *ProjectProjectRepository_GetDB_Call) Run(run func(tx *gorm.DB)) *ProjectProjectRepository_GetDB_Call
- func (_c *ProjectProjectRepository_GetDB_Call) RunAndReturn(run func(*gorm.DB) *gorm.DB) *ProjectProjectRepository_GetDB_Call
- type ProjectProjectRepository_List_Call
- func (_c *ProjectProjectRepository_List_Call) Return(_a0 []models.Project, _a1 error) *ProjectProjectRepository_List_Call
- func (_c *ProjectProjectRepository_List_Call) Run(run func(ids []uuid.UUID)) *ProjectProjectRepository_List_Call
- func (_c *ProjectProjectRepository_List_Call) RunAndReturn(run func([]uuid.UUID) ([]models.Project, error)) *ProjectProjectRepository_List_Call
- type ProjectProjectRepository_ReadBySlug_Call
- func (_c *ProjectProjectRepository_ReadBySlug_Call) Return(_a0 models.Project, _a1 error) *ProjectProjectRepository_ReadBySlug_Call
- func (_c *ProjectProjectRepository_ReadBySlug_Call) Run(run func(organizationID uuid.UUID, slug string)) *ProjectProjectRepository_ReadBySlug_Call
- func (_c *ProjectProjectRepository_ReadBySlug_Call) RunAndReturn(run func(uuid.UUID, string) (models.Project, error)) *ProjectProjectRepository_ReadBySlug_Call
- type ProjectProjectRepository_Read_Call
- func (_c *ProjectProjectRepository_Read_Call) Return(_a0 models.Project, _a1 error) *ProjectProjectRepository_Read_Call
- func (_c *ProjectProjectRepository_Read_Call) Run(run func(id uuid.UUID)) *ProjectProjectRepository_Read_Call
- func (_c *ProjectProjectRepository_Read_Call) RunAndReturn(run func(uuid.UUID) (models.Project, error)) *ProjectProjectRepository_Read_Call
- type ProjectProjectRepository_SaveBatch_Call
- func (_c *ProjectProjectRepository_SaveBatch_Call) Return(_a0 error) *ProjectProjectRepository_SaveBatch_Call
- func (_c *ProjectProjectRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, ts []models.Project)) *ProjectProjectRepository_SaveBatch_Call
- func (_c *ProjectProjectRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Project) error) *ProjectProjectRepository_SaveBatch_Call
- type ProjectProjectRepository_Save_Call
- func (_c *ProjectProjectRepository_Save_Call) Return(_a0 error) *ProjectProjectRepository_Save_Call
- func (_c *ProjectProjectRepository_Save_Call) Run(run func(tx *gorm.DB, t *models.Project)) *ProjectProjectRepository_Save_Call
- func (_c *ProjectProjectRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.Project) error) *ProjectProjectRepository_Save_Call
- type ProjectProjectRepository_Transaction_Call
- func (_c *ProjectProjectRepository_Transaction_Call) Return(_a0 error) *ProjectProjectRepository_Transaction_Call
- func (_c *ProjectProjectRepository_Transaction_Call) Run(run func(_a0 func(*gorm.DB) error)) *ProjectProjectRepository_Transaction_Call
- func (_c *ProjectProjectRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *ProjectProjectRepository_Transaction_Call
- type ProjectProjectRepository_Update_Call
- func (_c *ProjectProjectRepository_Update_Call) Return(_a0 error) *ProjectProjectRepository_Update_Call
- func (_c *ProjectProjectRepository_Update_Call) Run(run func(tx *gorm.DB, _a1 *models.Project)) *ProjectProjectRepository_Update_Call
- func (_c *ProjectProjectRepository_Update_Call) RunAndReturn(run func(*gorm.DB, *models.Project) error) *ProjectProjectRepository_Update_Call
- type RiskCvssInterface
- func (_m *RiskCvssInterface) EXPECT() *RiskCvssInterface_Expecter
- func (_m *RiskCvssInterface) EnvironmentalScore() float64
- func (_m *RiskCvssInterface) Get(key string) (string, error)
- func (_m *RiskCvssInterface) Set(key string, value string) error
- func (_m *RiskCvssInterface) TemporalScore() float64
- func (_m *RiskCvssInterface) Vector() string
- type RiskCvssInterface_EnvironmentalScore_Call
- func (_c *RiskCvssInterface_EnvironmentalScore_Call) Return(_a0 float64) *RiskCvssInterface_EnvironmentalScore_Call
- func (_c *RiskCvssInterface_EnvironmentalScore_Call) Run(run func()) *RiskCvssInterface_EnvironmentalScore_Call
- func (_c *RiskCvssInterface_EnvironmentalScore_Call) RunAndReturn(run func() float64) *RiskCvssInterface_EnvironmentalScore_Call
- type RiskCvssInterface_Expecter
- func (_e *RiskCvssInterface_Expecter) EnvironmentalScore() *RiskCvssInterface_EnvironmentalScore_Call
- func (_e *RiskCvssInterface_Expecter) Get(key interface{}) *RiskCvssInterface_Get_Call
- func (_e *RiskCvssInterface_Expecter) Set(key interface{}, value interface{}) *RiskCvssInterface_Set_Call
- func (_e *RiskCvssInterface_Expecter) TemporalScore() *RiskCvssInterface_TemporalScore_Call
- func (_e *RiskCvssInterface_Expecter) Vector() *RiskCvssInterface_Vector_Call
- type RiskCvssInterface_Get_Call
- func (_c *RiskCvssInterface_Get_Call) Return(_a0 string, _a1 error) *RiskCvssInterface_Get_Call
- func (_c *RiskCvssInterface_Get_Call) Run(run func(key string)) *RiskCvssInterface_Get_Call
- func (_c *RiskCvssInterface_Get_Call) RunAndReturn(run func(string) (string, error)) *RiskCvssInterface_Get_Call
- type RiskCvssInterface_Set_Call
- func (_c *RiskCvssInterface_Set_Call) Return(_a0 error) *RiskCvssInterface_Set_Call
- func (_c *RiskCvssInterface_Set_Call) Run(run func(key string, value string)) *RiskCvssInterface_Set_Call
- func (_c *RiskCvssInterface_Set_Call) RunAndReturn(run func(string, string) error) *RiskCvssInterface_Set_Call
- type RiskCvssInterface_TemporalScore_Call
- func (_c *RiskCvssInterface_TemporalScore_Call) Return(_a0 float64) *RiskCvssInterface_TemporalScore_Call
- func (_c *RiskCvssInterface_TemporalScore_Call) Run(run func()) *RiskCvssInterface_TemporalScore_Call
- func (_c *RiskCvssInterface_TemporalScore_Call) RunAndReturn(run func() float64) *RiskCvssInterface_TemporalScore_Call
- type RiskCvssInterface_Vector_Call
- type ScanAssetService
- func (_m *ScanAssetService) EXPECT() *ScanAssetService_Expecter
- func (_m *ScanAssetService) HandleScanResult(asset models.Asset, vulns []models.VulnInPackage, scanType string, ...) (int, int, []models.Flaw, error)
- func (_m *ScanAssetService) UpdateSBOM(asset models.Asset, scanType string, version string, sbom normalize.SBOM) error
- type ScanAssetService_Expecter
- func (_e *ScanAssetService_Expecter) HandleScanResult(asset interface{}, vulns interface{}, scanType interface{}, ...) *ScanAssetService_HandleScanResult_Call
- func (_e *ScanAssetService_Expecter) UpdateSBOM(asset interface{}, scanType interface{}, version interface{}, sbom interface{}) *ScanAssetService_UpdateSBOM_Call
- type ScanAssetService_HandleScanResult_Call
- func (_c *ScanAssetService_HandleScanResult_Call) Return(amountOpened int, amountClose int, newState []models.Flaw, err error) *ScanAssetService_HandleScanResult_Call
- func (_c *ScanAssetService_HandleScanResult_Call) Run(...) *ScanAssetService_HandleScanResult_Call
- func (_c *ScanAssetService_HandleScanResult_Call) RunAndReturn(...) *ScanAssetService_HandleScanResult_Call
- type ScanAssetService_UpdateSBOM_Call
- func (_c *ScanAssetService_UpdateSBOM_Call) Return(_a0 error) *ScanAssetService_UpdateSBOM_Call
- func (_c *ScanAssetService_UpdateSBOM_Call) Run(...) *ScanAssetService_UpdateSBOM_Call
- func (_c *ScanAssetService_UpdateSBOM_Call) RunAndReturn(run func(models.Asset, string, string, normalize.SBOM) error) *ScanAssetService_UpdateSBOM_Call
- type ScanComparer
- type ScanComparer_Expecter
- type ScanComparer_GetVulns_Call
- func (_c *ScanComparer_GetVulns_Call) Return(_a0 []models.VulnInPackage, _a1 error) *ScanComparer_GetVulns_Call
- func (_c *ScanComparer_GetVulns_Call) Run(run func(purl string, notASemverVersion string, componentType string)) *ScanComparer_GetVulns_Call
- func (_c *ScanComparer_GetVulns_Call) RunAndReturn(run func(string, string, string) ([]models.VulnInPackage, error)) *ScanComparer_GetVulns_Call
- type ScanComponentRepository
- func (_m *ScanComponentRepository) EXPECT() *ScanComponentRepository_Expecter
- func (_m *ScanComponentRepository) LoadAssetComponents(tx *gorm.DB, asset models.Asset, scanType string, version string) ([]models.ComponentDependency, error)
- func (_m *ScanComponentRepository) SaveBatch(tx *gorm.DB, components []models.Component) error
- type ScanComponentRepository_Expecter
- func (_e *ScanComponentRepository_Expecter) LoadAssetComponents(tx interface{}, asset interface{}, scanType interface{}, version interface{}) *ScanComponentRepository_LoadAssetComponents_Call
- func (_e *ScanComponentRepository_Expecter) SaveBatch(tx interface{}, components interface{}) *ScanComponentRepository_SaveBatch_Call
- type ScanComponentRepository_LoadAssetComponents_Call
- func (_c *ScanComponentRepository_LoadAssetComponents_Call) Return(_a0 []models.ComponentDependency, _a1 error) *ScanComponentRepository_LoadAssetComponents_Call
- func (_c *ScanComponentRepository_LoadAssetComponents_Call) Run(run func(tx *gorm.DB, asset models.Asset, scanType string, version string)) *ScanComponentRepository_LoadAssetComponents_Call
- func (_c *ScanComponentRepository_LoadAssetComponents_Call) RunAndReturn(...) *ScanComponentRepository_LoadAssetComponents_Call
- type ScanComponentRepository_SaveBatch_Call
- func (_c *ScanComponentRepository_SaveBatch_Call) Return(_a0 error) *ScanComponentRepository_SaveBatch_Call
- func (_c *ScanComponentRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, components []models.Component)) *ScanComponentRepository_SaveBatch_Call
- func (_c *ScanComponentRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Component) error) *ScanComponentRepository_SaveBatch_Call
- type ScanCveRepository
- type ScanCveRepository_Expecter
- type ScanCveRepository_FindAll_Call
- func (_c *ScanCveRepository_FindAll_Call) Return(_a0 []models.CVE, _a1 error) *ScanCveRepository_FindAll_Call
- func (_c *ScanCveRepository_FindAll_Call) Run(run func(cveIDs []string)) *ScanCveRepository_FindAll_Call
- func (_c *ScanCveRepository_FindAll_Call) RunAndReturn(run func([]string) ([]models.CVE, error)) *ScanCveRepository_FindAll_Call
- type VulndbAffectedCmpRepository
- type VulndbAffectedCmpRepository_Expecter
- type VulndbAffectedCmpRepository_SaveBatch_Call
- func (_c *VulndbAffectedCmpRepository_SaveBatch_Call) Return(_a0 error) *VulndbAffectedCmpRepository_SaveBatch_Call
- func (_c *VulndbAffectedCmpRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, affectedComponents []models.AffectedComponent)) *VulndbAffectedCmpRepository_SaveBatch_Call
- func (_c *VulndbAffectedCmpRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.AffectedComponent) error) *VulndbAffectedCmpRepository_SaveBatch_Call
- type VulndbConfigService
- type VulndbConfigService_Expecter
- type VulndbConfigService_GetJSONConfig_Call
- func (_c *VulndbConfigService_GetJSONConfig_Call) Return(_a0 error) *VulndbConfigService_GetJSONConfig_Call
- func (_c *VulndbConfigService_GetJSONConfig_Call) Run(run func(key string, v interface{})) *VulndbConfigService_GetJSONConfig_Call
- func (_c *VulndbConfigService_GetJSONConfig_Call) RunAndReturn(run func(string, interface{}) error) *VulndbConfigService_GetJSONConfig_Call
- type VulndbConfigService_SetJSONConfig_Call
- func (_c *VulndbConfigService_SetJSONConfig_Call) Return(_a0 error) *VulndbConfigService_SetJSONConfig_Call
- func (_c *VulndbConfigService_SetJSONConfig_Call) Run(run func(key string, v interface{})) *VulndbConfigService_SetJSONConfig_Call
- func (_c *VulndbConfigService_SetJSONConfig_Call) RunAndReturn(run func(string, interface{}) error) *VulndbConfigService_SetJSONConfig_Call
- type VulndbCveRepository
- func (_m *VulndbCveRepository) Begin() *gorm.DB
- func (_m *VulndbCveRepository) Create(tx *gorm.DB, t *models.CVE) error
- func (_m *VulndbCveRepository) CreateBatch(tx *gorm.DB, ts []models.CVE) error
- func (_m *VulndbCveRepository) Delete(tx *gorm.DB, id string) error
- func (_m *VulndbCveRepository) EXPECT() *VulndbCveRepository_Expecter
- func (_m *VulndbCveRepository) FindByID(id string) (models.CVE, error)
- func (_m *VulndbCveRepository) GetDB(tx *gorm.DB) *gorm.DB
- func (_m *VulndbCveRepository) GetLastModDate() (time.Time, error)
- func (_m *VulndbCveRepository) List(ids []string) ([]models.CVE, error)
- func (_m *VulndbCveRepository) Read(id string) (models.CVE, error)
- func (_m *VulndbCveRepository) Save(tx *gorm.DB, t *models.CVE) error
- func (_m *VulndbCveRepository) SaveBatch(tx *gorm.DB, ts []models.CVE) error
- func (_m *VulndbCveRepository) SaveBatchCPEMatch(tx *gorm.DB, matches []models.CPEMatch) error
- func (_m *VulndbCveRepository) Transaction(_a0 func(*gorm.DB) error) error
- type VulndbCveRepository_Begin_Call
- type VulndbCveRepository_CreateBatch_Call
- func (_c *VulndbCveRepository_CreateBatch_Call) Return(_a0 error) *VulndbCveRepository_CreateBatch_Call
- func (_c *VulndbCveRepository_CreateBatch_Call) Run(run func(tx *gorm.DB, ts []models.CVE)) *VulndbCveRepository_CreateBatch_Call
- func (_c *VulndbCveRepository_CreateBatch_Call) RunAndReturn(run func(*gorm.DB, []models.CVE) error) *VulndbCveRepository_CreateBatch_Call
- type VulndbCveRepository_Create_Call
- func (_c *VulndbCveRepository_Create_Call) Return(_a0 error) *VulndbCveRepository_Create_Call
- func (_c *VulndbCveRepository_Create_Call) Run(run func(tx *gorm.DB, t *models.CVE)) *VulndbCveRepository_Create_Call
- func (_c *VulndbCveRepository_Create_Call) RunAndReturn(run func(*gorm.DB, *models.CVE) error) *VulndbCveRepository_Create_Call
- type VulndbCveRepository_Delete_Call
- func (_c *VulndbCveRepository_Delete_Call) Return(_a0 error) *VulndbCveRepository_Delete_Call
- func (_c *VulndbCveRepository_Delete_Call) Run(run func(tx *gorm.DB, id string)) *VulndbCveRepository_Delete_Call
- func (_c *VulndbCveRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, string) error) *VulndbCveRepository_Delete_Call
- type VulndbCveRepository_Expecter
- func (_e *VulndbCveRepository_Expecter) Begin() *VulndbCveRepository_Begin_Call
- func (_e *VulndbCveRepository_Expecter) Create(tx interface{}, t interface{}) *VulndbCveRepository_Create_Call
- func (_e *VulndbCveRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *VulndbCveRepository_CreateBatch_Call
- func (_e *VulndbCveRepository_Expecter) Delete(tx interface{}, id interface{}) *VulndbCveRepository_Delete_Call
- func (_e *VulndbCveRepository_Expecter) FindByID(id interface{}) *VulndbCveRepository_FindByID_Call
- func (_e *VulndbCveRepository_Expecter) GetDB(tx interface{}) *VulndbCveRepository_GetDB_Call
- func (_e *VulndbCveRepository_Expecter) GetLastModDate() *VulndbCveRepository_GetLastModDate_Call
- func (_e *VulndbCveRepository_Expecter) List(ids interface{}) *VulndbCveRepository_List_Call
- func (_e *VulndbCveRepository_Expecter) Read(id interface{}) *VulndbCveRepository_Read_Call
- func (_e *VulndbCveRepository_Expecter) Save(tx interface{}, t interface{}) *VulndbCveRepository_Save_Call
- func (_e *VulndbCveRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *VulndbCveRepository_SaveBatch_Call
- func (_e *VulndbCveRepository_Expecter) SaveBatchCPEMatch(tx interface{}, matches interface{}) *VulndbCveRepository_SaveBatchCPEMatch_Call
- func (_e *VulndbCveRepository_Expecter) Transaction(_a0 interface{}) *VulndbCveRepository_Transaction_Call
- type VulndbCveRepository_FindByID_Call
- func (_c *VulndbCveRepository_FindByID_Call) Return(_a0 models.CVE, _a1 error) *VulndbCveRepository_FindByID_Call
- func (_c *VulndbCveRepository_FindByID_Call) Run(run func(id string)) *VulndbCveRepository_FindByID_Call
- func (_c *VulndbCveRepository_FindByID_Call) RunAndReturn(run func(string) (models.CVE, error)) *VulndbCveRepository_FindByID_Call
- type VulndbCveRepository_GetDB_Call
- func (_c *VulndbCveRepository_GetDB_Call) Return(_a0 *gorm.DB) *VulndbCveRepository_GetDB_Call
- func (_c *VulndbCveRepository_GetDB_Call) Run(run func(tx *gorm.DB)) *VulndbCveRepository_GetDB_Call
- func (_c *VulndbCveRepository_GetDB_Call) RunAndReturn(run func(*gorm.DB) *gorm.DB) *VulndbCveRepository_GetDB_Call
- type VulndbCveRepository_GetLastModDate_Call
- func (_c *VulndbCveRepository_GetLastModDate_Call) Return(_a0 time.Time, _a1 error) *VulndbCveRepository_GetLastModDate_Call
- func (_c *VulndbCveRepository_GetLastModDate_Call) Run(run func()) *VulndbCveRepository_GetLastModDate_Call
- func (_c *VulndbCveRepository_GetLastModDate_Call) RunAndReturn(run func() (time.Time, error)) *VulndbCveRepository_GetLastModDate_Call
- type VulndbCveRepository_List_Call
- func (_c *VulndbCveRepository_List_Call) Return(_a0 []models.CVE, _a1 error) *VulndbCveRepository_List_Call
- func (_c *VulndbCveRepository_List_Call) Run(run func(ids []string)) *VulndbCveRepository_List_Call
- func (_c *VulndbCveRepository_List_Call) RunAndReturn(run func([]string) ([]models.CVE, error)) *VulndbCveRepository_List_Call
- type VulndbCveRepository_Read_Call
- func (_c *VulndbCveRepository_Read_Call) Return(_a0 models.CVE, _a1 error) *VulndbCveRepository_Read_Call
- func (_c *VulndbCveRepository_Read_Call) Run(run func(id string)) *VulndbCveRepository_Read_Call
- func (_c *VulndbCveRepository_Read_Call) RunAndReturn(run func(string) (models.CVE, error)) *VulndbCveRepository_Read_Call
- type VulndbCveRepository_SaveBatchCPEMatch_Call
- func (_c *VulndbCveRepository_SaveBatchCPEMatch_Call) Return(_a0 error) *VulndbCveRepository_SaveBatchCPEMatch_Call
- func (_c *VulndbCveRepository_SaveBatchCPEMatch_Call) Run(run func(tx *gorm.DB, matches []models.CPEMatch)) *VulndbCveRepository_SaveBatchCPEMatch_Call
- func (_c *VulndbCveRepository_SaveBatchCPEMatch_Call) RunAndReturn(run func(*gorm.DB, []models.CPEMatch) error) *VulndbCveRepository_SaveBatchCPEMatch_Call
- type VulndbCveRepository_SaveBatch_Call
- func (_c *VulndbCveRepository_SaveBatch_Call) Return(_a0 error) *VulndbCveRepository_SaveBatch_Call
- func (_c *VulndbCveRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, ts []models.CVE)) *VulndbCveRepository_SaveBatch_Call
- func (_c *VulndbCveRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.CVE) error) *VulndbCveRepository_SaveBatch_Call
- type VulndbCveRepository_Save_Call
- func (_c *VulndbCveRepository_Save_Call) Return(_a0 error) *VulndbCveRepository_Save_Call
- func (_c *VulndbCveRepository_Save_Call) Run(run func(tx *gorm.DB, t *models.CVE)) *VulndbCveRepository_Save_Call
- func (_c *VulndbCveRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.CVE) error) *VulndbCveRepository_Save_Call
- type VulndbCveRepository_Transaction_Call
- func (_c *VulndbCveRepository_Transaction_Call) Return(_a0 error) *VulndbCveRepository_Transaction_Call
- func (_c *VulndbCveRepository_Transaction_Call) Run(run func(_a0 func(*gorm.DB) error)) *VulndbCveRepository_Transaction_Call
- func (_c *VulndbCveRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *VulndbCveRepository_Transaction_Call
- type VulndbCweRepository
- type VulndbCweRepository_Expecter
- type VulndbCweRepository_SaveBatch_Call
- func (_c *VulndbCweRepository_SaveBatch_Call) Return(_a0 error) *VulndbCweRepository_SaveBatch_Call
- func (_c *VulndbCweRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, cwes []models.CWE)) *VulndbCweRepository_SaveBatch_Call
- func (_c *VulndbCweRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.CWE) error) *VulndbCweRepository_SaveBatch_Call
- type VulndbExploitRepository
- type VulndbExploitRepository_Expecter
- type VulndbExploitRepository_SaveBatch_Call
- func (_c *VulndbExploitRepository_SaveBatch_Call) Return(_a0 error) *VulndbExploitRepository_SaveBatch_Call
- func (_c *VulndbExploitRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, exploits []models.Exploit)) *VulndbExploitRepository_SaveBatch_Call
- func (_c *VulndbExploitRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Exploit) error) *VulndbExploitRepository_SaveBatch_Call
- type VulndbFlawService
- type VulndbFlawService_Expecter
- type VulndbFlawService_RecalculateAllRawRiskAssessments_Call
- func (_c *VulndbFlawService_RecalculateAllRawRiskAssessments_Call) Return(_a0 error) *VulndbFlawService_RecalculateAllRawRiskAssessments_Call
- func (_c *VulndbFlawService_RecalculateAllRawRiskAssessments_Call) Run(run func()) *VulndbFlawService_RecalculateAllRawRiskAssessments_Call
- func (_c *VulndbFlawService_RecalculateAllRawRiskAssessments_Call) RunAndReturn(run func() error) *VulndbFlawService_RecalculateAllRawRiskAssessments_Call
- type VulndbGithubExploitRepository
- type VulndbGithubExploitRepository_Expecter
- type VulndbGithubExploitRepository_SaveBatch_Call
- func (_c *VulndbGithubExploitRepository_SaveBatch_Call) Return(_a0 error) *VulndbGithubExploitRepository_SaveBatch_Call
- func (_c *VulndbGithubExploitRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, exploits []models.Exploit)) *VulndbGithubExploitRepository_SaveBatch_Call
- func (_c *VulndbGithubExploitRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Exploit) error) *VulndbGithubExploitRepository_SaveBatch_Call
- type VulndbLeaderElector
- type VulndbLeaderElector_Expecter
- type VulndbLeaderElector_IsLeader_Call
- func (_c *VulndbLeaderElector_IsLeader_Call) Return(_a0 bool) *VulndbLeaderElector_IsLeader_Call
- func (_c *VulndbLeaderElector_IsLeader_Call) Run(run func()) *VulndbLeaderElector_IsLeader_Call
- func (_c *VulndbLeaderElector_IsLeader_Call) RunAndReturn(run func() bool) *VulndbLeaderElector_IsLeader_Call
- type VulndbRepository
- type VulndbRepository_Expecter
- type VulndbRepository_FindAllListPaged_Call
- func (_c *VulndbRepository_FindAllListPaged_Call) Return(_a0 core.Paged[models.CVE], _a1 error) *VulndbRepository_FindAllListPaged_Call
- func (_c *VulndbRepository_FindAllListPaged_Call) Run(run func(tx *gorm.DB, pageInfo core.PageInfo, filter []core.FilterQuery, ...)) *VulndbRepository_FindAllListPaged_Call
- func (_c *VulndbRepository_FindAllListPaged_Call) RunAndReturn(...) *VulndbRepository_FindAllListPaged_Call
- type VulndbRepository_FindCVE_Call
- func (_c *VulndbRepository_FindCVE_Call) Return(_a0 models.CVE, _a1 error) *VulndbRepository_FindCVE_Call
- func (_c *VulndbRepository_FindCVE_Call) Run(run func(tx *gorm.DB, cveId string)) *VulndbRepository_FindCVE_Call
- func (_c *VulndbRepository_FindCVE_Call) RunAndReturn(run func(*gorm.DB, string) (models.CVE, error)) *VulndbRepository_FindCVE_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetAssetComponentsLoader ¶
AssetAssetComponentsLoader is an autogenerated mock type for the assetComponentsLoader type
func NewAssetAssetComponentsLoader ¶
func NewAssetAssetComponentsLoader(t interface {
mock.TestingT
Cleanup(func())
}) *AssetAssetComponentsLoader
NewAssetAssetComponentsLoader creates a new instance of AssetAssetComponentsLoader. 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 (*AssetAssetComponentsLoader) EXPECT ¶
func (_m *AssetAssetComponentsLoader) EXPECT() *AssetAssetComponentsLoader_Expecter
func (*AssetAssetComponentsLoader) GetVersions ¶
GetVersions provides a mock function with given fields: tx, _a1
func (*AssetAssetComponentsLoader) LoadAssetComponents ¶
func (_m *AssetAssetComponentsLoader) LoadAssetComponents(tx *gorm.DB, _a1 models.Asset, scanType string, version string) ([]models.ComponentDependency, error)
LoadAssetComponents provides a mock function with given fields: tx, _a1, scanType, version
type AssetAssetComponentsLoader_Expecter ¶
type AssetAssetComponentsLoader_Expecter struct {
// contains filtered or unexported fields
}
func (*AssetAssetComponentsLoader_Expecter) GetVersions ¶
func (_e *AssetAssetComponentsLoader_Expecter) GetVersions(tx interface{}, _a1 interface{}) *AssetAssetComponentsLoader_GetVersions_Call
GetVersions is a helper method to define mock.On call
- tx *gorm.DB
- _a1 models.Asset
func (*AssetAssetComponentsLoader_Expecter) LoadAssetComponents ¶
func (_e *AssetAssetComponentsLoader_Expecter) LoadAssetComponents(tx interface{}, _a1 interface{}, scanType interface{}, version interface{}) *AssetAssetComponentsLoader_LoadAssetComponents_Call
LoadAssetComponents is a helper method to define mock.On call
- tx *gorm.DB
- _a1 models.Asset
- scanType string
- version string
type AssetAssetComponentsLoader_GetVersions_Call ¶
AssetAssetComponentsLoader_GetVersions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVersions'
func (*AssetAssetComponentsLoader_GetVersions_Call) Return ¶
func (_c *AssetAssetComponentsLoader_GetVersions_Call) Return(_a0 []string, _a1 error) *AssetAssetComponentsLoader_GetVersions_Call
func (*AssetAssetComponentsLoader_GetVersions_Call) Run ¶
func (_c *AssetAssetComponentsLoader_GetVersions_Call) Run(run func(tx *gorm.DB, _a1 models.Asset)) *AssetAssetComponentsLoader_GetVersions_Call
func (*AssetAssetComponentsLoader_GetVersions_Call) RunAndReturn ¶
func (_c *AssetAssetComponentsLoader_GetVersions_Call) RunAndReturn(run func(*gorm.DB, models.Asset) ([]string, error)) *AssetAssetComponentsLoader_GetVersions_Call
type AssetAssetComponentsLoader_LoadAssetComponents_Call ¶
AssetAssetComponentsLoader_LoadAssetComponents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadAssetComponents'
func (*AssetAssetComponentsLoader_LoadAssetComponents_Call) Return ¶
func (_c *AssetAssetComponentsLoader_LoadAssetComponents_Call) Return(_a0 []models.ComponentDependency, _a1 error) *AssetAssetComponentsLoader_LoadAssetComponents_Call
func (*AssetAssetComponentsLoader_LoadAssetComponents_Call) Run ¶
func (_c *AssetAssetComponentsLoader_LoadAssetComponents_Call) Run(run func(tx *gorm.DB, _a1 models.Asset, scanType string, version string)) *AssetAssetComponentsLoader_LoadAssetComponents_Call
func (*AssetAssetComponentsLoader_LoadAssetComponents_Call) RunAndReturn ¶
func (_c *AssetAssetComponentsLoader_LoadAssetComponents_Call) RunAndReturn(run func(*gorm.DB, models.Asset, string, string) ([]models.ComponentDependency, error)) *AssetAssetComponentsLoader_LoadAssetComponents_Call
type AssetAssetRepository ¶
AssetAssetRepository is an autogenerated mock type for the assetRepository type
func NewAssetAssetRepository ¶
func NewAssetAssetRepository(t interface {
mock.TestingT
Cleanup(func())
}) *AssetAssetRepository
NewAssetAssetRepository creates a new instance of AssetAssetRepository. 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 (*AssetAssetRepository) EXPECT ¶
func (_m *AssetAssetRepository) EXPECT() *AssetAssetRepository_Expecter
type AssetAssetRepository_Expecter ¶
type AssetAssetRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*AssetAssetRepository_Expecter) Save ¶
func (_e *AssetAssetRepository_Expecter) Save(tx interface{}, _a1 interface{}) *AssetAssetRepository_Save_Call
Save is a helper method to define mock.On call
- tx *gorm.DB
- _a1 *models.Asset
type AssetAssetRepository_Save_Call ¶
AssetAssetRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*AssetAssetRepository_Save_Call) Return ¶
func (_c *AssetAssetRepository_Save_Call) Return(_a0 error) *AssetAssetRepository_Save_Call
func (*AssetAssetRepository_Save_Call) Run ¶
func (_c *AssetAssetRepository_Save_Call) Run(run func(tx *gorm.DB, _a1 *models.Asset)) *AssetAssetRepository_Save_Call
func (*AssetAssetRepository_Save_Call) RunAndReturn ¶
func (_c *AssetAssetRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.Asset) error) *AssetAssetRepository_Save_Call
type AssetAssetService ¶
AssetAssetService is an autogenerated mock type for the assetService type
func NewAssetAssetService ¶
func NewAssetAssetService(t interface {
mock.TestingT
Cleanup(func())
}) *AssetAssetService
NewAssetAssetService creates a new instance of AssetAssetService. 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 (*AssetAssetService) BuildSBOM ¶ added in v0.5.1
func (_m *AssetAssetService) BuildSBOM(_a0 models.Asset, version string, orgName string, components []models.ComponentDependency) *cyclonedx.BOM
BuildSBOM provides a mock function with given fields: _a0, version, orgName, components
func (*AssetAssetService) EXPECT ¶
func (_m *AssetAssetService) EXPECT() *AssetAssetService_Expecter
func (*AssetAssetService) UpdateAssetRequirements ¶
func (_m *AssetAssetService) UpdateAssetRequirements(_a0 models.Asset, responsible string, justification string) error
UpdateAssetRequirements provides a mock function with given fields: _a0, responsible, justification
type AssetAssetService_BuildSBOM_Call ¶ added in v0.5.1
AssetAssetService_BuildSBOM_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildSBOM'
func (*AssetAssetService_BuildSBOM_Call) Return ¶ added in v0.5.1
func (_c *AssetAssetService_BuildSBOM_Call) Return(_a0 *cyclonedx.BOM) *AssetAssetService_BuildSBOM_Call
func (*AssetAssetService_BuildSBOM_Call) Run ¶ added in v0.5.1
func (_c *AssetAssetService_BuildSBOM_Call) Run(run func(_a0 models.Asset, version string, orgName string, components []models.ComponentDependency)) *AssetAssetService_BuildSBOM_Call
func (*AssetAssetService_BuildSBOM_Call) RunAndReturn ¶ added in v0.5.1
func (_c *AssetAssetService_BuildSBOM_Call) RunAndReturn(run func(models.Asset, string, string, []models.ComponentDependency) *cyclonedx.BOM) *AssetAssetService_BuildSBOM_Call
type AssetAssetService_Expecter ¶
type AssetAssetService_Expecter struct {
// contains filtered or unexported fields
}
func (*AssetAssetService_Expecter) BuildSBOM ¶ added in v0.5.1
func (_e *AssetAssetService_Expecter) BuildSBOM(_a0 interface{}, version interface{}, orgName interface{}, components interface{}) *AssetAssetService_BuildSBOM_Call
BuildSBOM is a helper method to define mock.On call
- _a0 models.Asset
- version string
- orgName string
- components []models.ComponentDependency
func (*AssetAssetService_Expecter) UpdateAssetRequirements ¶
func (_e *AssetAssetService_Expecter) UpdateAssetRequirements(_a0 interface{}, responsible interface{}, justification interface{}) *AssetAssetService_UpdateAssetRequirements_Call
UpdateAssetRequirements is a helper method to define mock.On call
- _a0 models.Asset
- responsible string
- justification string
type AssetAssetService_UpdateAssetRequirements_Call ¶
AssetAssetService_UpdateAssetRequirements_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateAssetRequirements'
func (*AssetAssetService_UpdateAssetRequirements_Call) Return ¶
func (_c *AssetAssetService_UpdateAssetRequirements_Call) Return(_a0 error) *AssetAssetService_UpdateAssetRequirements_Call
func (*AssetAssetService_UpdateAssetRequirements_Call) Run ¶
func (_c *AssetAssetService_UpdateAssetRequirements_Call) Run(run func(_a0 models.Asset, responsible string, justification string)) *AssetAssetService_UpdateAssetRequirements_Call
func (*AssetAssetService_UpdateAssetRequirements_Call) RunAndReturn ¶
func (_c *AssetAssetService_UpdateAssetRequirements_Call) RunAndReturn(run func(models.Asset, string, string) error) *AssetAssetService_UpdateAssetRequirements_Call
type AssetComponentRepository ¶
AssetComponentRepository is an autogenerated mock type for the componentRepository type
func NewAssetComponentRepository ¶
func NewAssetComponentRepository(t interface {
mock.TestingT
Cleanup(func())
}) *AssetComponentRepository
NewAssetComponentRepository creates a new instance of AssetComponentRepository. 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 (*AssetComponentRepository) EXPECT ¶
func (_m *AssetComponentRepository) EXPECT() *AssetComponentRepository_Expecter
func (*AssetComponentRepository) FindByPurl ¶
FindByPurl provides a mock function with given fields: tx, purl
func (*AssetComponentRepository) HandleStateDiff ¶
func (_m *AssetComponentRepository) HandleStateDiff(tx *gorm.DB, assetID uuid.UUID, version string, oldState []models.ComponentDependency, newState []models.ComponentDependency) error
HandleStateDiff provides a mock function with given fields: tx, assetID, version, oldState, newState
func (*AssetComponentRepository) LoadAssetComponents ¶
func (_m *AssetComponentRepository) LoadAssetComponents(tx *gorm.DB, _a1 models.Asset, scanType string, version string) ([]models.ComponentDependency, error)
LoadAssetComponents provides a mock function with given fields: tx, _a1, scanType, version
type AssetComponentRepository_Expecter ¶
type AssetComponentRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*AssetComponentRepository_Expecter) FindByPurl ¶
func (_e *AssetComponentRepository_Expecter) FindByPurl(tx interface{}, purl interface{}) *AssetComponentRepository_FindByPurl_Call
FindByPurl is a helper method to define mock.On call
- tx *gorm.DB
- purl string
func (*AssetComponentRepository_Expecter) HandleStateDiff ¶
func (_e *AssetComponentRepository_Expecter) HandleStateDiff(tx interface{}, assetID interface{}, version interface{}, oldState interface{}, newState interface{}) *AssetComponentRepository_HandleStateDiff_Call
HandleStateDiff is a helper method to define mock.On call
- tx *gorm.DB
- assetID uuid.UUID
- version string
- oldState []models.ComponentDependency
- newState []models.ComponentDependency
func (*AssetComponentRepository_Expecter) LoadAssetComponents ¶
func (_e *AssetComponentRepository_Expecter) LoadAssetComponents(tx interface{}, _a1 interface{}, scanType interface{}, version interface{}) *AssetComponentRepository_LoadAssetComponents_Call
LoadAssetComponents is a helper method to define mock.On call
- tx *gorm.DB
- _a1 models.Asset
- scanType string
- version string
func (*AssetComponentRepository_Expecter) SaveBatch ¶
func (_e *AssetComponentRepository_Expecter) SaveBatch(tx interface{}, components interface{}) *AssetComponentRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx *gorm.DB
- components []models.Component
type AssetComponentRepository_FindByPurl_Call ¶
AssetComponentRepository_FindByPurl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByPurl'
func (*AssetComponentRepository_FindByPurl_Call) Return ¶
func (_c *AssetComponentRepository_FindByPurl_Call) Return(_a0 models.Component, _a1 error) *AssetComponentRepository_FindByPurl_Call
func (*AssetComponentRepository_FindByPurl_Call) Run ¶
func (_c *AssetComponentRepository_FindByPurl_Call) Run(run func(tx *gorm.DB, purl string)) *AssetComponentRepository_FindByPurl_Call
func (*AssetComponentRepository_FindByPurl_Call) RunAndReturn ¶
func (_c *AssetComponentRepository_FindByPurl_Call) RunAndReturn(run func(*gorm.DB, string) (models.Component, error)) *AssetComponentRepository_FindByPurl_Call
type AssetComponentRepository_HandleStateDiff_Call ¶
AssetComponentRepository_HandleStateDiff_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleStateDiff'
func (*AssetComponentRepository_HandleStateDiff_Call) Return ¶
func (_c *AssetComponentRepository_HandleStateDiff_Call) Return(_a0 error) *AssetComponentRepository_HandleStateDiff_Call
func (*AssetComponentRepository_HandleStateDiff_Call) Run ¶
func (_c *AssetComponentRepository_HandleStateDiff_Call) Run(run func(tx *gorm.DB, assetID uuid.UUID, version string, oldState []models.ComponentDependency, newState []models.ComponentDependency)) *AssetComponentRepository_HandleStateDiff_Call
func (*AssetComponentRepository_HandleStateDiff_Call) RunAndReturn ¶
func (_c *AssetComponentRepository_HandleStateDiff_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID, string, []models.ComponentDependency, []models.ComponentDependency) error) *AssetComponentRepository_HandleStateDiff_Call
type AssetComponentRepository_LoadAssetComponents_Call ¶
AssetComponentRepository_LoadAssetComponents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadAssetComponents'
func (*AssetComponentRepository_LoadAssetComponents_Call) Return ¶
func (_c *AssetComponentRepository_LoadAssetComponents_Call) Return(_a0 []models.ComponentDependency, _a1 error) *AssetComponentRepository_LoadAssetComponents_Call
func (*AssetComponentRepository_LoadAssetComponents_Call) Run ¶
func (_c *AssetComponentRepository_LoadAssetComponents_Call) Run(run func(tx *gorm.DB, _a1 models.Asset, scanType string, version string)) *AssetComponentRepository_LoadAssetComponents_Call
func (*AssetComponentRepository_LoadAssetComponents_Call) RunAndReturn ¶
func (_c *AssetComponentRepository_LoadAssetComponents_Call) RunAndReturn(run func(*gorm.DB, models.Asset, string, string) ([]models.ComponentDependency, error)) *AssetComponentRepository_LoadAssetComponents_Call
type AssetComponentRepository_SaveBatch_Call ¶
AssetComponentRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*AssetComponentRepository_SaveBatch_Call) Return ¶
func (_c *AssetComponentRepository_SaveBatch_Call) Return(_a0 error) *AssetComponentRepository_SaveBatch_Call
func (*AssetComponentRepository_SaveBatch_Call) Run ¶
func (_c *AssetComponentRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, components []models.Component)) *AssetComponentRepository_SaveBatch_Call
func (*AssetComponentRepository_SaveBatch_Call) RunAndReturn ¶
func (_c *AssetComponentRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Component) error) *AssetComponentRepository_SaveBatch_Call
type AssetFlawRepository ¶
AssetFlawRepository is an autogenerated mock type for the flawRepository type
func NewAssetFlawRepository ¶
func NewAssetFlawRepository(t interface {
mock.TestingT
Cleanup(func())
}) *AssetFlawRepository
NewAssetFlawRepository creates a new instance of AssetFlawRepository. 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 (*AssetFlawRepository) EXPECT ¶
func (_m *AssetFlawRepository) EXPECT() *AssetFlawRepository_Expecter
func (*AssetFlawRepository) GetAllFlawsByAssetID ¶
func (_m *AssetFlawRepository) GetAllFlawsByAssetID(tx *gorm.DB, assetID uuid.UUID) ([]models.Flaw, error)
GetAllFlawsByAssetID provides a mock function with given fields: tx, assetID
func (*AssetFlawRepository) GetFlawsByPurl ¶ added in v0.5.1
GetFlawsByPurl provides a mock function with given fields: tx, purl
func (*AssetFlawRepository) ListByScanner ¶
func (_m *AssetFlawRepository) ListByScanner(assetID uuid.UUID, scannerID string) ([]models.Flaw, error)
ListByScanner provides a mock function with given fields: assetID, scannerID
func (*AssetFlawRepository) SaveBatch ¶
SaveBatch provides a mock function with given fields: db, flaws
func (*AssetFlawRepository) Transaction ¶
func (_m *AssetFlawRepository) Transaction(txFunc func(*gorm.DB) error) error
Transaction provides a mock function with given fields: txFunc
type AssetFlawRepository_Expecter ¶
type AssetFlawRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*AssetFlawRepository_Expecter) GetAllFlawsByAssetID ¶
func (_e *AssetFlawRepository_Expecter) GetAllFlawsByAssetID(tx interface{}, assetID interface{}) *AssetFlawRepository_GetAllFlawsByAssetID_Call
GetAllFlawsByAssetID is a helper method to define mock.On call
- tx *gorm.DB
- assetID uuid.UUID
func (*AssetFlawRepository_Expecter) GetFlawsByPurl ¶ added in v0.5.1
func (_e *AssetFlawRepository_Expecter) GetFlawsByPurl(tx interface{}, purl interface{}) *AssetFlawRepository_GetFlawsByPurl_Call
GetFlawsByPurl is a helper method to define mock.On call
- tx *gorm.DB
- purl []string
func (*AssetFlawRepository_Expecter) ListByScanner ¶
func (_e *AssetFlawRepository_Expecter) ListByScanner(assetID interface{}, scannerID interface{}) *AssetFlawRepository_ListByScanner_Call
ListByScanner is a helper method to define mock.On call
- assetID uuid.UUID
- scannerID string
func (*AssetFlawRepository_Expecter) SaveBatch ¶
func (_e *AssetFlawRepository_Expecter) SaveBatch(db interface{}, flaws interface{}) *AssetFlawRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- db *gorm.DB
- flaws []models.Flaw
func (*AssetFlawRepository_Expecter) Transaction ¶
func (_e *AssetFlawRepository_Expecter) Transaction(txFunc interface{}) *AssetFlawRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- txFunc func(*gorm.DB) error
type AssetFlawRepository_GetAllFlawsByAssetID_Call ¶
AssetFlawRepository_GetAllFlawsByAssetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllFlawsByAssetID'
func (*AssetFlawRepository_GetAllFlawsByAssetID_Call) Return ¶
func (_c *AssetFlawRepository_GetAllFlawsByAssetID_Call) Return(_a0 []models.Flaw, _a1 error) *AssetFlawRepository_GetAllFlawsByAssetID_Call
func (*AssetFlawRepository_GetAllFlawsByAssetID_Call) Run ¶
func (_c *AssetFlawRepository_GetAllFlawsByAssetID_Call) Run(run func(tx *gorm.DB, assetID uuid.UUID)) *AssetFlawRepository_GetAllFlawsByAssetID_Call
func (*AssetFlawRepository_GetAllFlawsByAssetID_Call) RunAndReturn ¶
func (_c *AssetFlawRepository_GetAllFlawsByAssetID_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) ([]models.Flaw, error)) *AssetFlawRepository_GetAllFlawsByAssetID_Call
type AssetFlawRepository_GetFlawsByPurl_Call ¶ added in v0.5.1
AssetFlawRepository_GetFlawsByPurl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFlawsByPurl'
func (*AssetFlawRepository_GetFlawsByPurl_Call) Return ¶ added in v0.5.1
func (_c *AssetFlawRepository_GetFlawsByPurl_Call) Return(_a0 []models.Flaw, _a1 error) *AssetFlawRepository_GetFlawsByPurl_Call
func (*AssetFlawRepository_GetFlawsByPurl_Call) Run ¶ added in v0.5.1
func (_c *AssetFlawRepository_GetFlawsByPurl_Call) Run(run func(tx *gorm.DB, purl []string)) *AssetFlawRepository_GetFlawsByPurl_Call
func (*AssetFlawRepository_GetFlawsByPurl_Call) RunAndReturn ¶ added in v0.5.1
func (_c *AssetFlawRepository_GetFlawsByPurl_Call) RunAndReturn(run func(*gorm.DB, []string) ([]models.Flaw, error)) *AssetFlawRepository_GetFlawsByPurl_Call
type AssetFlawRepository_ListByScanner_Call ¶
AssetFlawRepository_ListByScanner_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByScanner'
func (*AssetFlawRepository_ListByScanner_Call) Return ¶
func (_c *AssetFlawRepository_ListByScanner_Call) Return(_a0 []models.Flaw, _a1 error) *AssetFlawRepository_ListByScanner_Call
func (*AssetFlawRepository_ListByScanner_Call) Run ¶
func (_c *AssetFlawRepository_ListByScanner_Call) Run(run func(assetID uuid.UUID, scannerID string)) *AssetFlawRepository_ListByScanner_Call
func (*AssetFlawRepository_ListByScanner_Call) RunAndReturn ¶
func (_c *AssetFlawRepository_ListByScanner_Call) RunAndReturn(run func(uuid.UUID, string) ([]models.Flaw, error)) *AssetFlawRepository_ListByScanner_Call
type AssetFlawRepository_SaveBatch_Call ¶
AssetFlawRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*AssetFlawRepository_SaveBatch_Call) Return ¶
func (_c *AssetFlawRepository_SaveBatch_Call) Return(_a0 error) *AssetFlawRepository_SaveBatch_Call
func (*AssetFlawRepository_SaveBatch_Call) Run ¶
func (_c *AssetFlawRepository_SaveBatch_Call) Run(run func(db *gorm.DB, flaws []models.Flaw)) *AssetFlawRepository_SaveBatch_Call
func (*AssetFlawRepository_SaveBatch_Call) RunAndReturn ¶
func (_c *AssetFlawRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Flaw) error) *AssetFlawRepository_SaveBatch_Call
type AssetFlawRepository_Transaction_Call ¶
AssetFlawRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*AssetFlawRepository_Transaction_Call) Return ¶
func (_c *AssetFlawRepository_Transaction_Call) Return(_a0 error) *AssetFlawRepository_Transaction_Call
func (*AssetFlawRepository_Transaction_Call) Run ¶
func (_c *AssetFlawRepository_Transaction_Call) Run(run func(txFunc func(*gorm.DB) error)) *AssetFlawRepository_Transaction_Call
func (*AssetFlawRepository_Transaction_Call) RunAndReturn ¶
func (_c *AssetFlawRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *AssetFlawRepository_Transaction_Call
type AssetFlawService ¶
AssetFlawService is an autogenerated mock type for the flawService type
func NewAssetFlawService ¶
func NewAssetFlawService(t interface {
mock.TestingT
Cleanup(func())
}) *AssetFlawService
NewAssetFlawService creates a new instance of AssetFlawService. 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 (*AssetFlawService) EXPECT ¶
func (_m *AssetFlawService) EXPECT() *AssetFlawService_Expecter
func (*AssetFlawService) RecalculateRawRiskAssessment ¶
func (_m *AssetFlawService) RecalculateRawRiskAssessment(tx *gorm.DB, userID string, flaws []models.Flaw, justification string, _a4 models.Asset) error
RecalculateRawRiskAssessment provides a mock function with given fields: tx, userID, flaws, justification, _a4
func (*AssetFlawService) UpdateFlawState ¶
func (_m *AssetFlawService) UpdateFlawState(tx *gorm.DB, userID string, flaw *models.Flaw, statusType string, justification *string) error
UpdateFlawState provides a mock function with given fields: tx, userID, flaw, statusType, justification
func (*AssetFlawService) UserDetectedFlaws ¶
func (_m *AssetFlawService) UserDetectedFlaws(tx *gorm.DB, userID string, flaws []models.Flaw, _a3 models.Asset) error
UserDetectedFlaws provides a mock function with given fields: tx, userID, flaws, _a3
func (*AssetFlawService) UserFixedFlaws ¶
UserFixedFlaws provides a mock function with given fields: tx, userID, flaws
type AssetFlawService_Expecter ¶
type AssetFlawService_Expecter struct {
// contains filtered or unexported fields
}
func (*AssetFlawService_Expecter) RecalculateRawRiskAssessment ¶
func (_e *AssetFlawService_Expecter) RecalculateRawRiskAssessment(tx interface{}, userID interface{}, flaws interface{}, justification interface{}, _a4 interface{}) *AssetFlawService_RecalculateRawRiskAssessment_Call
RecalculateRawRiskAssessment is a helper method to define mock.On call
- tx *gorm.DB
- userID string
- flaws []models.Flaw
- justification string
- _a4 models.Asset
func (*AssetFlawService_Expecter) UpdateFlawState ¶
func (_e *AssetFlawService_Expecter) UpdateFlawState(tx interface{}, userID interface{}, flaw interface{}, statusType interface{}, justification interface{}) *AssetFlawService_UpdateFlawState_Call
UpdateFlawState is a helper method to define mock.On call
- tx *gorm.DB
- userID string
- flaw *models.Flaw
- statusType string
- justification *string
func (*AssetFlawService_Expecter) UserDetectedFlaws ¶
func (_e *AssetFlawService_Expecter) UserDetectedFlaws(tx interface{}, userID interface{}, flaws interface{}, _a3 interface{}) *AssetFlawService_UserDetectedFlaws_Call
UserDetectedFlaws is a helper method to define mock.On call
- tx *gorm.DB
- userID string
- flaws []models.Flaw
- _a3 models.Asset
func (*AssetFlawService_Expecter) UserFixedFlaws ¶
func (_e *AssetFlawService_Expecter) UserFixedFlaws(tx interface{}, userID interface{}, flaws interface{}) *AssetFlawService_UserFixedFlaws_Call
UserFixedFlaws is a helper method to define mock.On call
- tx *gorm.DB
- userID string
- flaws []models.Flaw
type AssetFlawService_RecalculateRawRiskAssessment_Call ¶
AssetFlawService_RecalculateRawRiskAssessment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RecalculateRawRiskAssessment'
func (*AssetFlawService_RecalculateRawRiskAssessment_Call) Run ¶
func (_c *AssetFlawService_RecalculateRawRiskAssessment_Call) Run(run func(tx *gorm.DB, userID string, flaws []models.Flaw, justification string, _a4 models.Asset)) *AssetFlawService_RecalculateRawRiskAssessment_Call
func (*AssetFlawService_RecalculateRawRiskAssessment_Call) RunAndReturn ¶
type AssetFlawService_UpdateFlawState_Call ¶
AssetFlawService_UpdateFlawState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateFlawState'
func (*AssetFlawService_UpdateFlawState_Call) Return ¶
func (_c *AssetFlawService_UpdateFlawState_Call) Return(_a0 error) *AssetFlawService_UpdateFlawState_Call
func (*AssetFlawService_UpdateFlawState_Call) Run ¶
func (_c *AssetFlawService_UpdateFlawState_Call) Run(run func(tx *gorm.DB, userID string, flaw *models.Flaw, statusType string, justification *string)) *AssetFlawService_UpdateFlawState_Call
func (*AssetFlawService_UpdateFlawState_Call) RunAndReturn ¶
func (_c *AssetFlawService_UpdateFlawState_Call) RunAndReturn(run func(*gorm.DB, string, *models.Flaw, string, *string) error) *AssetFlawService_UpdateFlawState_Call
type AssetFlawService_UserDetectedFlaws_Call ¶
AssetFlawService_UserDetectedFlaws_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserDetectedFlaws'
func (*AssetFlawService_UserDetectedFlaws_Call) Return ¶
func (_c *AssetFlawService_UserDetectedFlaws_Call) Return(_a0 error) *AssetFlawService_UserDetectedFlaws_Call
func (*AssetFlawService_UserDetectedFlaws_Call) Run ¶
func (_c *AssetFlawService_UserDetectedFlaws_Call) Run(run func(tx *gorm.DB, userID string, flaws []models.Flaw, _a3 models.Asset)) *AssetFlawService_UserDetectedFlaws_Call
func (*AssetFlawService_UserDetectedFlaws_Call) RunAndReturn ¶
func (_c *AssetFlawService_UserDetectedFlaws_Call) RunAndReturn(run func(*gorm.DB, string, []models.Flaw, models.Asset) error) *AssetFlawService_UserDetectedFlaws_Call
type AssetFlawService_UserFixedFlaws_Call ¶
AssetFlawService_UserFixedFlaws_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserFixedFlaws'
func (*AssetFlawService_UserFixedFlaws_Call) Return ¶
func (_c *AssetFlawService_UserFixedFlaws_Call) Return(_a0 error) *AssetFlawService_UserFixedFlaws_Call
func (*AssetFlawService_UserFixedFlaws_Call) Run ¶
func (_c *AssetFlawService_UserFixedFlaws_Call) Run(run func(tx *gorm.DB, userID string, flaws []models.Flaw)) *AssetFlawService_UserFixedFlaws_Call
func (*AssetFlawService_UserFixedFlaws_Call) RunAndReturn ¶
func (_c *AssetFlawService_UserFixedFlaws_Call) RunAndReturn(run func(*gorm.DB, string, []models.Flaw) error) *AssetFlawService_UserFixedFlaws_Call
type AssetRepository ¶
AssetRepository is an autogenerated mock type for the repository type
func NewAssetRepository ¶
func NewAssetRepository(t interface {
mock.TestingT
Cleanup(func())
}) *AssetRepository
NewAssetRepository creates a new instance of AssetRepository. 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 (*AssetRepository) Begin ¶
func (_m *AssetRepository) Begin() *gorm.DB
Begin provides a mock function with given fields:
func (*AssetRepository) CreateBatch ¶
CreateBatch provides a mock function with given fields: tx, ts
func (*AssetRepository) EXPECT ¶
func (_m *AssetRepository) EXPECT() *AssetRepository_Expecter
func (*AssetRepository) FindByName ¶
func (_m *AssetRepository) FindByName(name string) (models.Asset, error)
FindByName provides a mock function with given fields: name
func (*AssetRepository) FindOrCreate ¶
FindOrCreate provides a mock function with given fields: tx, name
func (*AssetRepository) GetAssetIDBySlug ¶
GetAssetIDBySlug provides a mock function with given fields: projectID, slug
func (*AssetRepository) GetByProjectID ¶
GetByProjectID provides a mock function with given fields: projectID
func (*AssetRepository) GetDB ¶
func (_m *AssetRepository) GetDB(tx *gorm.DB) *gorm.DB
GetDB provides a mock function with given fields: tx
func (*AssetRepository) ReadBySlug ¶
ReadBySlug provides a mock function with given fields: projectID, slug
func (*AssetRepository) Transaction ¶
func (_m *AssetRepository) Transaction(_a0 func(*gorm.DB) error) error
Transaction provides a mock function with given fields: _a0
type AssetRepository_Begin_Call ¶
AssetRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*AssetRepository_Begin_Call) Return ¶
func (_c *AssetRepository_Begin_Call) Return(_a0 *gorm.DB) *AssetRepository_Begin_Call
func (*AssetRepository_Begin_Call) Run ¶
func (_c *AssetRepository_Begin_Call) Run(run func()) *AssetRepository_Begin_Call
func (*AssetRepository_Begin_Call) RunAndReturn ¶
func (_c *AssetRepository_Begin_Call) RunAndReturn(run func() *gorm.DB) *AssetRepository_Begin_Call
type AssetRepository_CreateBatch_Call ¶
AssetRepository_CreateBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBatch'
func (*AssetRepository_CreateBatch_Call) Return ¶
func (_c *AssetRepository_CreateBatch_Call) Return(_a0 error) *AssetRepository_CreateBatch_Call
func (*AssetRepository_CreateBatch_Call) Run ¶
func (_c *AssetRepository_CreateBatch_Call) Run(run func(tx *gorm.DB, ts []models.Asset)) *AssetRepository_CreateBatch_Call
func (*AssetRepository_CreateBatch_Call) RunAndReturn ¶
func (_c *AssetRepository_CreateBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Asset) error) *AssetRepository_CreateBatch_Call
type AssetRepository_Create_Call ¶
AssetRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*AssetRepository_Create_Call) Return ¶
func (_c *AssetRepository_Create_Call) Return(_a0 error) *AssetRepository_Create_Call
func (*AssetRepository_Create_Call) Run ¶
func (_c *AssetRepository_Create_Call) Run(run func(tx *gorm.DB, t *models.Asset)) *AssetRepository_Create_Call
func (*AssetRepository_Create_Call) RunAndReturn ¶
func (_c *AssetRepository_Create_Call) RunAndReturn(run func(*gorm.DB, *models.Asset) error) *AssetRepository_Create_Call
type AssetRepository_Delete_Call ¶
AssetRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*AssetRepository_Delete_Call) Return ¶
func (_c *AssetRepository_Delete_Call) Return(_a0 error) *AssetRepository_Delete_Call
func (*AssetRepository_Delete_Call) Run ¶
func (_c *AssetRepository_Delete_Call) Run(run func(tx *gorm.DB, id uuid.UUID)) *AssetRepository_Delete_Call
func (*AssetRepository_Delete_Call) RunAndReturn ¶
func (_c *AssetRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *AssetRepository_Delete_Call
type AssetRepository_Expecter ¶
type AssetRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*AssetRepository_Expecter) Begin ¶
func (_e *AssetRepository_Expecter) Begin() *AssetRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*AssetRepository_Expecter) Create ¶
func (_e *AssetRepository_Expecter) Create(tx interface{}, t interface{}) *AssetRepository_Create_Call
Create is a helper method to define mock.On call
- tx *gorm.DB
- t *models.Asset
func (*AssetRepository_Expecter) CreateBatch ¶
func (_e *AssetRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *AssetRepository_CreateBatch_Call
CreateBatch is a helper method to define mock.On call
- tx *gorm.DB
- ts []models.Asset
func (*AssetRepository_Expecter) Delete ¶
func (_e *AssetRepository_Expecter) Delete(tx interface{}, id interface{}) *AssetRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx *gorm.DB
- id uuid.UUID
func (*AssetRepository_Expecter) FindByName ¶
func (_e *AssetRepository_Expecter) FindByName(name interface{}) *AssetRepository_FindByName_Call
FindByName is a helper method to define mock.On call
- name string
func (*AssetRepository_Expecter) FindOrCreate ¶
func (_e *AssetRepository_Expecter) FindOrCreate(tx interface{}, name interface{}) *AssetRepository_FindOrCreate_Call
FindOrCreate is a helper method to define mock.On call
- tx *gorm.DB
- name string
func (*AssetRepository_Expecter) GetAssetIDBySlug ¶
func (_e *AssetRepository_Expecter) GetAssetIDBySlug(projectID interface{}, slug interface{}) *AssetRepository_GetAssetIDBySlug_Call
GetAssetIDBySlug is a helper method to define mock.On call
- projectID uuid.UUID
- slug string
func (*AssetRepository_Expecter) GetByProjectID ¶
func (_e *AssetRepository_Expecter) GetByProjectID(projectID interface{}) *AssetRepository_GetByProjectID_Call
GetByProjectID is a helper method to define mock.On call
- projectID uuid.UUID
func (*AssetRepository_Expecter) GetDB ¶
func (_e *AssetRepository_Expecter) GetDB(tx interface{}) *AssetRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx *gorm.DB
func (*AssetRepository_Expecter) List ¶
func (_e *AssetRepository_Expecter) List(ids interface{}) *AssetRepository_List_Call
List is a helper method to define mock.On call
- ids []uuid.UUID
func (*AssetRepository_Expecter) Read ¶
func (_e *AssetRepository_Expecter) Read(id interface{}) *AssetRepository_Read_Call
Read is a helper method to define mock.On call
- id uuid.UUID
func (*AssetRepository_Expecter) ReadBySlug ¶
func (_e *AssetRepository_Expecter) ReadBySlug(projectID interface{}, slug interface{}) *AssetRepository_ReadBySlug_Call
ReadBySlug is a helper method to define mock.On call
- projectID uuid.UUID
- slug string
func (*AssetRepository_Expecter) Save ¶
func (_e *AssetRepository_Expecter) Save(tx interface{}, t interface{}) *AssetRepository_Save_Call
Save is a helper method to define mock.On call
- tx *gorm.DB
- t *models.Asset
func (*AssetRepository_Expecter) SaveBatch ¶
func (_e *AssetRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *AssetRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx *gorm.DB
- ts []models.Asset
func (*AssetRepository_Expecter) Transaction ¶
func (_e *AssetRepository_Expecter) Transaction(_a0 interface{}) *AssetRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- _a0 func(*gorm.DB) error
func (*AssetRepository_Expecter) Update ¶
func (_e *AssetRepository_Expecter) Update(tx interface{}, _a1 interface{}) *AssetRepository_Update_Call
Update is a helper method to define mock.On call
- tx *gorm.DB
- _a1 *models.Asset
type AssetRepository_FindByName_Call ¶
AssetRepository_FindByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByName'
func (*AssetRepository_FindByName_Call) Return ¶
func (_c *AssetRepository_FindByName_Call) Return(_a0 models.Asset, _a1 error) *AssetRepository_FindByName_Call
func (*AssetRepository_FindByName_Call) Run ¶
func (_c *AssetRepository_FindByName_Call) Run(run func(name string)) *AssetRepository_FindByName_Call
func (*AssetRepository_FindByName_Call) RunAndReturn ¶
func (_c *AssetRepository_FindByName_Call) RunAndReturn(run func(string) (models.Asset, error)) *AssetRepository_FindByName_Call
type AssetRepository_FindOrCreate_Call ¶
AssetRepository_FindOrCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindOrCreate'
func (*AssetRepository_FindOrCreate_Call) Return ¶
func (_c *AssetRepository_FindOrCreate_Call) Return(_a0 models.Asset, _a1 error) *AssetRepository_FindOrCreate_Call
func (*AssetRepository_FindOrCreate_Call) Run ¶
func (_c *AssetRepository_FindOrCreate_Call) Run(run func(tx *gorm.DB, name string)) *AssetRepository_FindOrCreate_Call
func (*AssetRepository_FindOrCreate_Call) RunAndReturn ¶
func (_c *AssetRepository_FindOrCreate_Call) RunAndReturn(run func(*gorm.DB, string) (models.Asset, error)) *AssetRepository_FindOrCreate_Call
type AssetRepository_GetAssetIDBySlug_Call ¶
AssetRepository_GetAssetIDBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAssetIDBySlug'
func (*AssetRepository_GetAssetIDBySlug_Call) Return ¶
func (_c *AssetRepository_GetAssetIDBySlug_Call) Return(_a0 uuid.UUID, _a1 error) *AssetRepository_GetAssetIDBySlug_Call
func (*AssetRepository_GetAssetIDBySlug_Call) Run ¶
func (_c *AssetRepository_GetAssetIDBySlug_Call) Run(run func(projectID uuid.UUID, slug string)) *AssetRepository_GetAssetIDBySlug_Call
func (*AssetRepository_GetAssetIDBySlug_Call) RunAndReturn ¶
func (_c *AssetRepository_GetAssetIDBySlug_Call) RunAndReturn(run func(uuid.UUID, string) (uuid.UUID, error)) *AssetRepository_GetAssetIDBySlug_Call
type AssetRepository_GetByProjectID_Call ¶
AssetRepository_GetByProjectID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByProjectID'
func (*AssetRepository_GetByProjectID_Call) Return ¶
func (_c *AssetRepository_GetByProjectID_Call) Return(_a0 []models.Asset, _a1 error) *AssetRepository_GetByProjectID_Call
func (*AssetRepository_GetByProjectID_Call) Run ¶
func (_c *AssetRepository_GetByProjectID_Call) Run(run func(projectID uuid.UUID)) *AssetRepository_GetByProjectID_Call
func (*AssetRepository_GetByProjectID_Call) RunAndReturn ¶
func (_c *AssetRepository_GetByProjectID_Call) RunAndReturn(run func(uuid.UUID) ([]models.Asset, error)) *AssetRepository_GetByProjectID_Call
type AssetRepository_GetDB_Call ¶
AssetRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*AssetRepository_GetDB_Call) Return ¶
func (_c *AssetRepository_GetDB_Call) Return(_a0 *gorm.DB) *AssetRepository_GetDB_Call
func (*AssetRepository_GetDB_Call) Run ¶
func (_c *AssetRepository_GetDB_Call) Run(run func(tx *gorm.DB)) *AssetRepository_GetDB_Call
func (*AssetRepository_GetDB_Call) RunAndReturn ¶
func (_c *AssetRepository_GetDB_Call) RunAndReturn(run func(*gorm.DB) *gorm.DB) *AssetRepository_GetDB_Call
type AssetRepository_List_Call ¶
AssetRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*AssetRepository_List_Call) Return ¶
func (_c *AssetRepository_List_Call) Return(_a0 []models.Asset, _a1 error) *AssetRepository_List_Call
func (*AssetRepository_List_Call) Run ¶
func (_c *AssetRepository_List_Call) Run(run func(ids []uuid.UUID)) *AssetRepository_List_Call
func (*AssetRepository_List_Call) RunAndReturn ¶
func (_c *AssetRepository_List_Call) RunAndReturn(run func([]uuid.UUID) ([]models.Asset, error)) *AssetRepository_List_Call
type AssetRepository_ReadBySlug_Call ¶
AssetRepository_ReadBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadBySlug'
func (*AssetRepository_ReadBySlug_Call) Return ¶
func (_c *AssetRepository_ReadBySlug_Call) Return(_a0 models.Asset, _a1 error) *AssetRepository_ReadBySlug_Call
func (*AssetRepository_ReadBySlug_Call) Run ¶
func (_c *AssetRepository_ReadBySlug_Call) Run(run func(projectID uuid.UUID, slug string)) *AssetRepository_ReadBySlug_Call
func (*AssetRepository_ReadBySlug_Call) RunAndReturn ¶
func (_c *AssetRepository_ReadBySlug_Call) RunAndReturn(run func(uuid.UUID, string) (models.Asset, error)) *AssetRepository_ReadBySlug_Call
type AssetRepository_Read_Call ¶
AssetRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*AssetRepository_Read_Call) Return ¶
func (_c *AssetRepository_Read_Call) Return(_a0 models.Asset, _a1 error) *AssetRepository_Read_Call
func (*AssetRepository_Read_Call) Run ¶
func (_c *AssetRepository_Read_Call) Run(run func(id uuid.UUID)) *AssetRepository_Read_Call
func (*AssetRepository_Read_Call) RunAndReturn ¶
func (_c *AssetRepository_Read_Call) RunAndReturn(run func(uuid.UUID) (models.Asset, error)) *AssetRepository_Read_Call
type AssetRepository_SaveBatch_Call ¶
AssetRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*AssetRepository_SaveBatch_Call) Return ¶
func (_c *AssetRepository_SaveBatch_Call) Return(_a0 error) *AssetRepository_SaveBatch_Call
func (*AssetRepository_SaveBatch_Call) Run ¶
func (_c *AssetRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, ts []models.Asset)) *AssetRepository_SaveBatch_Call
func (*AssetRepository_SaveBatch_Call) RunAndReturn ¶
func (_c *AssetRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Asset) error) *AssetRepository_SaveBatch_Call
type AssetRepository_Save_Call ¶
AssetRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*AssetRepository_Save_Call) Return ¶
func (_c *AssetRepository_Save_Call) Return(_a0 error) *AssetRepository_Save_Call
func (*AssetRepository_Save_Call) Run ¶
func (_c *AssetRepository_Save_Call) Run(run func(tx *gorm.DB, t *models.Asset)) *AssetRepository_Save_Call
func (*AssetRepository_Save_Call) RunAndReturn ¶
func (_c *AssetRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.Asset) error) *AssetRepository_Save_Call
type AssetRepository_Transaction_Call ¶
AssetRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*AssetRepository_Transaction_Call) Return ¶
func (_c *AssetRepository_Transaction_Call) Return(_a0 error) *AssetRepository_Transaction_Call
func (*AssetRepository_Transaction_Call) Run ¶
func (_c *AssetRepository_Transaction_Call) Run(run func(_a0 func(*gorm.DB) error)) *AssetRepository_Transaction_Call
func (*AssetRepository_Transaction_Call) RunAndReturn ¶
func (_c *AssetRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *AssetRepository_Transaction_Call
type AssetRepository_Update_Call ¶
AssetRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*AssetRepository_Update_Call) Return ¶
func (_c *AssetRepository_Update_Call) Return(_a0 error) *AssetRepository_Update_Call
func (*AssetRepository_Update_Call) Run ¶
func (_c *AssetRepository_Update_Call) Run(run func(tx *gorm.DB, _a1 *models.Asset)) *AssetRepository_Update_Call
func (*AssetRepository_Update_Call) RunAndReturn ¶
func (_c *AssetRepository_Update_Call) RunAndReturn(run func(*gorm.DB, *models.Asset) error) *AssetRepository_Update_Call
type AssetVulnService ¶
AssetVulnService is an autogenerated mock type for the vulnService type
func NewAssetVulnService ¶
func NewAssetVulnService(t interface {
mock.TestingT
Cleanup(func())
}) *AssetVulnService
NewAssetVulnService creates a new instance of AssetVulnService. 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 (*AssetVulnService) EXPECT ¶
func (_m *AssetVulnService) EXPECT() *AssetVulnService_Expecter
func (*AssetVulnService) GetVulnsForAll ¶
func (_m *AssetVulnService) GetVulnsForAll(purls []string) ([]models.VulnInPackage, error)
GetVulnsForAll provides a mock function with given fields: purls
type AssetVulnService_Expecter ¶
type AssetVulnService_Expecter struct {
// contains filtered or unexported fields
}
func (*AssetVulnService_Expecter) GetVulnsForAll ¶
func (_e *AssetVulnService_Expecter) GetVulnsForAll(purls interface{}) *AssetVulnService_GetVulnsForAll_Call
GetVulnsForAll is a helper method to define mock.On call
- purls []string
type AssetVulnService_GetVulnsForAll_Call ¶
AssetVulnService_GetVulnsForAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVulnsForAll'
func (*AssetVulnService_GetVulnsForAll_Call) Return ¶
func (_c *AssetVulnService_GetVulnsForAll_Call) Return(_a0 []models.VulnInPackage, _a1 error) *AssetVulnService_GetVulnsForAll_Call
func (*AssetVulnService_GetVulnsForAll_Call) Run ¶
func (_c *AssetVulnService_GetVulnsForAll_Call) Run(run func(purls []string)) *AssetVulnService_GetVulnsForAll_Call
func (*AssetVulnService_GetVulnsForAll_Call) RunAndReturn ¶
func (_c *AssetVulnService_GetVulnsForAll_Call) RunAndReturn(run func([]string) ([]models.VulnInPackage, error)) *AssetVulnService_GetVulnsForAll_Call
type ConfigConfigRepository ¶
ConfigConfigRepository is an autogenerated mock type for the configRepository type
func NewConfigConfigRepository ¶
func NewConfigConfigRepository(t interface {
mock.TestingT
Cleanup(func())
}) *ConfigConfigRepository
NewConfigConfigRepository creates a new instance of ConfigConfigRepository. 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 (*ConfigConfigRepository) EXPECT ¶
func (_m *ConfigConfigRepository) EXPECT() *ConfigConfigRepository_Expecter
type ConfigConfigRepository_Expecter ¶
type ConfigConfigRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ConfigConfigRepository_Expecter) GetDB ¶
func (_e *ConfigConfigRepository_Expecter) GetDB(tx interface{}) *ConfigConfigRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx *gorm.DB
func (*ConfigConfigRepository_Expecter) Save ¶
func (_e *ConfigConfigRepository_Expecter) Save(tx interface{}, _a1 interface{}) *ConfigConfigRepository_Save_Call
Save is a helper method to define mock.On call
- tx *gorm.DB
- _a1 *models.Config
type ConfigConfigRepository_GetDB_Call ¶
ConfigConfigRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*ConfigConfigRepository_GetDB_Call) Return ¶
func (_c *ConfigConfigRepository_GetDB_Call) Return(_a0 *gorm.DB) *ConfigConfigRepository_GetDB_Call
func (*ConfigConfigRepository_GetDB_Call) Run ¶
func (_c *ConfigConfigRepository_GetDB_Call) Run(run func(tx *gorm.DB)) *ConfigConfigRepository_GetDB_Call
func (*ConfigConfigRepository_GetDB_Call) RunAndReturn ¶
func (_c *ConfigConfigRepository_GetDB_Call) RunAndReturn(run func(*gorm.DB) *gorm.DB) *ConfigConfigRepository_GetDB_Call
type ConfigConfigRepository_Save_Call ¶
ConfigConfigRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*ConfigConfigRepository_Save_Call) Return ¶
func (_c *ConfigConfigRepository_Save_Call) Return(_a0 error) *ConfigConfigRepository_Save_Call
func (*ConfigConfigRepository_Save_Call) Run ¶
func (_c *ConfigConfigRepository_Save_Call) Run(run func(tx *gorm.DB, _a1 *models.Config)) *ConfigConfigRepository_Save_Call
func (*ConfigConfigRepository_Save_Call) RunAndReturn ¶
func (_c *ConfigConfigRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.Config) error) *ConfigConfigRepository_Save_Call
type CoreAuthSession ¶
CoreAuthSession is an autogenerated mock type for the AuthSession type
func NewCoreAuthSession ¶
func NewCoreAuthSession(t interface {
mock.TestingT
Cleanup(func())
}) *CoreAuthSession
NewCoreAuthSession creates a new instance of CoreAuthSession. 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 (*CoreAuthSession) EXPECT ¶
func (_m *CoreAuthSession) EXPECT() *CoreAuthSession_Expecter
func (*CoreAuthSession) GetUserID ¶
func (_m *CoreAuthSession) GetUserID() string
GetUserID provides a mock function with given fields:
type CoreAuthSession_Expecter ¶
type CoreAuthSession_Expecter struct {
// contains filtered or unexported fields
}
func (*CoreAuthSession_Expecter) GetUserID ¶
func (_e *CoreAuthSession_Expecter) GetUserID() *CoreAuthSession_GetUserID_Call
GetUserID is a helper method to define mock.On call
type CoreAuthSession_GetUserID_Call ¶
CoreAuthSession_GetUserID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserID'
func (*CoreAuthSession_GetUserID_Call) Return ¶
func (_c *CoreAuthSession_GetUserID_Call) Return(_a0 string) *CoreAuthSession_GetUserID_Call
func (*CoreAuthSession_GetUserID_Call) Run ¶
func (_c *CoreAuthSession_GetUserID_Call) Run(run func()) *CoreAuthSession_GetUserID_Call
func (*CoreAuthSession_GetUserID_Call) RunAndReturn ¶
func (_c *CoreAuthSession_GetUserID_Call) RunAndReturn(run func() string) *CoreAuthSession_GetUserID_Call
type CoreThirdPartyIntegration ¶ added in v0.5.1
CoreThirdPartyIntegration is an autogenerated mock type for the ThirdPartyIntegration type
func NewCoreThirdPartyIntegration ¶ added in v0.5.1
func NewCoreThirdPartyIntegration(t interface {
mock.TestingT
Cleanup(func())
}) *CoreThirdPartyIntegration
NewCoreThirdPartyIntegration creates a new instance of CoreThirdPartyIntegration. 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 (*CoreThirdPartyIntegration) EXPECT ¶ added in v0.5.1
func (_m *CoreThirdPartyIntegration) EXPECT() *CoreThirdPartyIntegration_Expecter
func (*CoreThirdPartyIntegration) FinishInstallation ¶ added in v0.5.1
func (_m *CoreThirdPartyIntegration) FinishInstallation(ctx echo.Context) error
FinishInstallation provides a mock function with given fields: ctx
func (*CoreThirdPartyIntegration) HandleEvent ¶ added in v0.5.1
func (_m *CoreThirdPartyIntegration) HandleEvent(event interface{}) error
HandleEvent provides a mock function with given fields: event
func (*CoreThirdPartyIntegration) HandleWebhook ¶ added in v0.5.1
func (_m *CoreThirdPartyIntegration) HandleWebhook(ctx echo.Context) error
HandleWebhook provides a mock function with given fields: ctx
func (*CoreThirdPartyIntegration) IntegrationEnabled ¶ added in v0.5.1
func (_m *CoreThirdPartyIntegration) IntegrationEnabled(ctx echo.Context) bool
IntegrationEnabled provides a mock function with given fields: ctx
func (*CoreThirdPartyIntegration) ListRepositories ¶ added in v0.5.1
func (_m *CoreThirdPartyIntegration) ListRepositories(ctx echo.Context) ([]core.Repository, error)
ListRepositories provides a mock function with given fields: ctx
func (*CoreThirdPartyIntegration) WantsToFinishInstallation ¶ added in v0.5.1
func (_m *CoreThirdPartyIntegration) WantsToFinishInstallation(ctx echo.Context) bool
WantsToFinishInstallation provides a mock function with given fields: ctx
func (*CoreThirdPartyIntegration) WantsToHandleWebhook ¶ added in v0.5.1
func (_m *CoreThirdPartyIntegration) WantsToHandleWebhook(ctx echo.Context) bool
WantsToHandleWebhook provides a mock function with given fields: ctx
type CoreThirdPartyIntegration_Expecter ¶ added in v0.5.1
type CoreThirdPartyIntegration_Expecter struct {
// contains filtered or unexported fields
}
func (*CoreThirdPartyIntegration_Expecter) FinishInstallation ¶ added in v0.5.1
func (_e *CoreThirdPartyIntegration_Expecter) FinishInstallation(ctx interface{}) *CoreThirdPartyIntegration_FinishInstallation_Call
FinishInstallation is a helper method to define mock.On call
- ctx echo.Context
func (*CoreThirdPartyIntegration_Expecter) HandleEvent ¶ added in v0.5.1
func (_e *CoreThirdPartyIntegration_Expecter) HandleEvent(event interface{}) *CoreThirdPartyIntegration_HandleEvent_Call
HandleEvent is a helper method to define mock.On call
- event interface{}
func (*CoreThirdPartyIntegration_Expecter) HandleWebhook ¶ added in v0.5.1
func (_e *CoreThirdPartyIntegration_Expecter) HandleWebhook(ctx interface{}) *CoreThirdPartyIntegration_HandleWebhook_Call
HandleWebhook is a helper method to define mock.On call
- ctx echo.Context
func (*CoreThirdPartyIntegration_Expecter) IntegrationEnabled ¶ added in v0.5.1
func (_e *CoreThirdPartyIntegration_Expecter) IntegrationEnabled(ctx interface{}) *CoreThirdPartyIntegration_IntegrationEnabled_Call
IntegrationEnabled is a helper method to define mock.On call
- ctx echo.Context
func (*CoreThirdPartyIntegration_Expecter) ListRepositories ¶ added in v0.5.1
func (_e *CoreThirdPartyIntegration_Expecter) ListRepositories(ctx interface{}) *CoreThirdPartyIntegration_ListRepositories_Call
ListRepositories is a helper method to define mock.On call
- ctx echo.Context
func (*CoreThirdPartyIntegration_Expecter) WantsToFinishInstallation ¶ added in v0.5.1
func (_e *CoreThirdPartyIntegration_Expecter) WantsToFinishInstallation(ctx interface{}) *CoreThirdPartyIntegration_WantsToFinishInstallation_Call
WantsToFinishInstallation is a helper method to define mock.On call
- ctx echo.Context
func (*CoreThirdPartyIntegration_Expecter) WantsToHandleWebhook ¶ added in v0.5.1
func (_e *CoreThirdPartyIntegration_Expecter) WantsToHandleWebhook(ctx interface{}) *CoreThirdPartyIntegration_WantsToHandleWebhook_Call
WantsToHandleWebhook is a helper method to define mock.On call
- ctx echo.Context
type CoreThirdPartyIntegration_FinishInstallation_Call ¶ added in v0.5.1
CoreThirdPartyIntegration_FinishInstallation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FinishInstallation'
func (*CoreThirdPartyIntegration_FinishInstallation_Call) Return ¶ added in v0.5.1
func (_c *CoreThirdPartyIntegration_FinishInstallation_Call) Return(_a0 error) *CoreThirdPartyIntegration_FinishInstallation_Call
func (*CoreThirdPartyIntegration_FinishInstallation_Call) Run ¶ added in v0.5.1
func (_c *CoreThirdPartyIntegration_FinishInstallation_Call) Run(run func(ctx echo.Context)) *CoreThirdPartyIntegration_FinishInstallation_Call
func (*CoreThirdPartyIntegration_FinishInstallation_Call) RunAndReturn ¶ added in v0.5.1
func (_c *CoreThirdPartyIntegration_FinishInstallation_Call) RunAndReturn(run func(echo.Context) error) *CoreThirdPartyIntegration_FinishInstallation_Call
type CoreThirdPartyIntegration_HandleEvent_Call ¶ added in v0.5.1
CoreThirdPartyIntegration_HandleEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleEvent'
func (*CoreThirdPartyIntegration_HandleEvent_Call) Return ¶ added in v0.5.1
func (_c *CoreThirdPartyIntegration_HandleEvent_Call) Return(_a0 error) *CoreThirdPartyIntegration_HandleEvent_Call
func (*CoreThirdPartyIntegration_HandleEvent_Call) Run ¶ added in v0.5.1
func (_c *CoreThirdPartyIntegration_HandleEvent_Call) Run(run func(event interface{})) *CoreThirdPartyIntegration_HandleEvent_Call
func (*CoreThirdPartyIntegration_HandleEvent_Call) RunAndReturn ¶ added in v0.5.1
func (_c *CoreThirdPartyIntegration_HandleEvent_Call) RunAndReturn(run func(interface{}) error) *CoreThirdPartyIntegration_HandleEvent_Call
type CoreThirdPartyIntegration_HandleWebhook_Call ¶ added in v0.5.1
CoreThirdPartyIntegration_HandleWebhook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleWebhook'
func (*CoreThirdPartyIntegration_HandleWebhook_Call) Return ¶ added in v0.5.1
func (_c *CoreThirdPartyIntegration_HandleWebhook_Call) Return(_a0 error) *CoreThirdPartyIntegration_HandleWebhook_Call
func (*CoreThirdPartyIntegration_HandleWebhook_Call) Run ¶ added in v0.5.1
func (_c *CoreThirdPartyIntegration_HandleWebhook_Call) Run(run func(ctx echo.Context)) *CoreThirdPartyIntegration_HandleWebhook_Call
func (*CoreThirdPartyIntegration_HandleWebhook_Call) RunAndReturn ¶ added in v0.5.1
func (_c *CoreThirdPartyIntegration_HandleWebhook_Call) RunAndReturn(run func(echo.Context) error) *CoreThirdPartyIntegration_HandleWebhook_Call
type CoreThirdPartyIntegration_IntegrationEnabled_Call ¶ added in v0.5.1
CoreThirdPartyIntegration_IntegrationEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IntegrationEnabled'
func (*CoreThirdPartyIntegration_IntegrationEnabled_Call) Return ¶ added in v0.5.1
func (_c *CoreThirdPartyIntegration_IntegrationEnabled_Call) Return(_a0 bool) *CoreThirdPartyIntegration_IntegrationEnabled_Call
func (*CoreThirdPartyIntegration_IntegrationEnabled_Call) Run ¶ added in v0.5.1
func (_c *CoreThirdPartyIntegration_IntegrationEnabled_Call) Run(run func(ctx echo.Context)) *CoreThirdPartyIntegration_IntegrationEnabled_Call
func (*CoreThirdPartyIntegration_IntegrationEnabled_Call) RunAndReturn ¶ added in v0.5.1
func (_c *CoreThirdPartyIntegration_IntegrationEnabled_Call) RunAndReturn(run func(echo.Context) bool) *CoreThirdPartyIntegration_IntegrationEnabled_Call
type CoreThirdPartyIntegration_ListRepositories_Call ¶ added in v0.5.1
CoreThirdPartyIntegration_ListRepositories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRepositories'
func (*CoreThirdPartyIntegration_ListRepositories_Call) Return ¶ added in v0.5.1
func (_c *CoreThirdPartyIntegration_ListRepositories_Call) Return(_a0 []core.Repository, _a1 error) *CoreThirdPartyIntegration_ListRepositories_Call
func (*CoreThirdPartyIntegration_ListRepositories_Call) Run ¶ added in v0.5.1
func (_c *CoreThirdPartyIntegration_ListRepositories_Call) Run(run func(ctx echo.Context)) *CoreThirdPartyIntegration_ListRepositories_Call
func (*CoreThirdPartyIntegration_ListRepositories_Call) RunAndReturn ¶ added in v0.5.1
func (_c *CoreThirdPartyIntegration_ListRepositories_Call) RunAndReturn(run func(echo.Context) ([]core.Repository, error)) *CoreThirdPartyIntegration_ListRepositories_Call
type CoreThirdPartyIntegration_WantsToFinishInstallation_Call ¶ added in v0.5.1
CoreThirdPartyIntegration_WantsToFinishInstallation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WantsToFinishInstallation'
func (*CoreThirdPartyIntegration_WantsToFinishInstallation_Call) Run ¶ added in v0.5.1
func (_c *CoreThirdPartyIntegration_WantsToFinishInstallation_Call) Run(run func(ctx echo.Context)) *CoreThirdPartyIntegration_WantsToFinishInstallation_Call
func (*CoreThirdPartyIntegration_WantsToFinishInstallation_Call) RunAndReturn ¶ added in v0.5.1
func (_c *CoreThirdPartyIntegration_WantsToFinishInstallation_Call) RunAndReturn(run func(echo.Context) bool) *CoreThirdPartyIntegration_WantsToFinishInstallation_Call
type CoreThirdPartyIntegration_WantsToHandleWebhook_Call ¶ added in v0.5.1
CoreThirdPartyIntegration_WantsToHandleWebhook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WantsToHandleWebhook'
func (*CoreThirdPartyIntegration_WantsToHandleWebhook_Call) Run ¶ added in v0.5.1
func (_c *CoreThirdPartyIntegration_WantsToHandleWebhook_Call) Run(run func(ctx echo.Context)) *CoreThirdPartyIntegration_WantsToHandleWebhook_Call
func (*CoreThirdPartyIntegration_WantsToHandleWebhook_Call) RunAndReturn ¶ added in v0.5.1
func (_c *CoreThirdPartyIntegration_WantsToHandleWebhook_Call) RunAndReturn(run func(echo.Context) bool) *CoreThirdPartyIntegration_WantsToHandleWebhook_Call
type FlawAssetRepository ¶
FlawAssetRepository is an autogenerated mock type for the assetRepository type
func NewFlawAssetRepository ¶
func NewFlawAssetRepository(t interface {
mock.TestingT
Cleanup(func())
}) *FlawAssetRepository
NewFlawAssetRepository creates a new instance of FlawAssetRepository. 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 (*FlawAssetRepository) EXPECT ¶
func (_m *FlawAssetRepository) EXPECT() *FlawAssetRepository_Expecter
func (*FlawAssetRepository) GetAllAssetsFromDB ¶
func (_m *FlawAssetRepository) GetAllAssetsFromDB() ([]models.Asset, error)
GetAllAssetsFromDB provides a mock function with given fields:
type FlawAssetRepository_Expecter ¶
type FlawAssetRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*FlawAssetRepository_Expecter) GetAllAssetsFromDB ¶
func (_e *FlawAssetRepository_Expecter) GetAllAssetsFromDB() *FlawAssetRepository_GetAllAssetsFromDB_Call
GetAllAssetsFromDB is a helper method to define mock.On call
func (*FlawAssetRepository_Expecter) Update ¶
func (_e *FlawAssetRepository_Expecter) Update(tx interface{}, asset interface{}) *FlawAssetRepository_Update_Call
Update is a helper method to define mock.On call
- tx *gorm.DB
- asset *models.Asset
type FlawAssetRepository_GetAllAssetsFromDB_Call ¶
FlawAssetRepository_GetAllAssetsFromDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllAssetsFromDB'
func (*FlawAssetRepository_GetAllAssetsFromDB_Call) Return ¶
func (_c *FlawAssetRepository_GetAllAssetsFromDB_Call) Return(_a0 []models.Asset, _a1 error) *FlawAssetRepository_GetAllAssetsFromDB_Call
func (*FlawAssetRepository_GetAllAssetsFromDB_Call) Run ¶
func (_c *FlawAssetRepository_GetAllAssetsFromDB_Call) Run(run func()) *FlawAssetRepository_GetAllAssetsFromDB_Call
func (*FlawAssetRepository_GetAllAssetsFromDB_Call) RunAndReturn ¶
func (_c *FlawAssetRepository_GetAllAssetsFromDB_Call) RunAndReturn(run func() ([]models.Asset, error)) *FlawAssetRepository_GetAllAssetsFromDB_Call
type FlawAssetRepository_Update_Call ¶
FlawAssetRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*FlawAssetRepository_Update_Call) Return ¶
func (_c *FlawAssetRepository_Update_Call) Return(_a0 error) *FlawAssetRepository_Update_Call
func (*FlawAssetRepository_Update_Call) Run ¶
func (_c *FlawAssetRepository_Update_Call) Run(run func(tx *gorm.DB, asset *models.Asset)) *FlawAssetRepository_Update_Call
func (*FlawAssetRepository_Update_Call) RunAndReturn ¶
func (_c *FlawAssetRepository_Update_Call) RunAndReturn(run func(*gorm.DB, *models.Asset) error) *FlawAssetRepository_Update_Call
type FlawCtrFlawEventRepository ¶
FlawCtrFlawEventRepository is an autogenerated mock type for the ctrFlawEventRepository type
func NewFlawCtrFlawEventRepository ¶
func NewFlawCtrFlawEventRepository(t interface {
mock.TestingT
Cleanup(func())
}) *FlawCtrFlawEventRepository
NewFlawCtrFlawEventRepository creates a new instance of FlawCtrFlawEventRepository. 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 (*FlawCtrFlawEventRepository) Create ¶
Create provides a mock function with given fields: tx, flawEvent
func (*FlawCtrFlawEventRepository) EXPECT ¶
func (_m *FlawCtrFlawEventRepository) EXPECT() *FlawCtrFlawEventRepository_Expecter
type FlawCtrFlawEventRepository_Create_Call ¶
FlawCtrFlawEventRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*FlawCtrFlawEventRepository_Create_Call) Return ¶
func (_c *FlawCtrFlawEventRepository_Create_Call) Return(_a0 error) *FlawCtrFlawEventRepository_Create_Call
func (*FlawCtrFlawEventRepository_Create_Call) Run ¶
func (_c *FlawCtrFlawEventRepository_Create_Call) Run(run func(tx *gorm.DB, flawEvent *models.FlawEvent)) *FlawCtrFlawEventRepository_Create_Call
func (*FlawCtrFlawEventRepository_Create_Call) RunAndReturn ¶
func (_c *FlawCtrFlawEventRepository_Create_Call) RunAndReturn(run func(*gorm.DB, *models.FlawEvent) error) *FlawCtrFlawEventRepository_Create_Call
type FlawCtrFlawEventRepository_Expecter ¶
type FlawCtrFlawEventRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*FlawCtrFlawEventRepository_Expecter) Create ¶
func (_e *FlawCtrFlawEventRepository_Expecter) Create(tx interface{}, flawEvent interface{}) *FlawCtrFlawEventRepository_Create_Call
Create is a helper method to define mock.On call
- tx *gorm.DB
- flawEvent *models.FlawEvent
type FlawCveRepository ¶
FlawCveRepository is an autogenerated mock type for the cveRepository type
func NewFlawCveRepository ¶
func NewFlawCveRepository(t interface {
mock.TestingT
Cleanup(func())
}) *FlawCveRepository
NewFlawCveRepository creates a new instance of FlawCveRepository. 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 (*FlawCveRepository) EXPECT ¶
func (_m *FlawCveRepository) EXPECT() *FlawCveRepository_Expecter
type FlawCveRepository_Expecter ¶
type FlawCveRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*FlawCveRepository_Expecter) FindCVE ¶
func (_e *FlawCveRepository_Expecter) FindCVE(tx interface{}, cveId interface{}) *FlawCveRepository_FindCVE_Call
FindCVE is a helper method to define mock.On call
- tx *gorm.DB
- cveId string
type FlawCveRepository_FindCVE_Call ¶
FlawCveRepository_FindCVE_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindCVE'
func (*FlawCveRepository_FindCVE_Call) Return ¶
func (_c *FlawCveRepository_FindCVE_Call) Return(_a0 models.CVE, _a1 error) *FlawCveRepository_FindCVE_Call
func (*FlawCveRepository_FindCVE_Call) Run ¶
func (_c *FlawCveRepository_FindCVE_Call) Run(run func(tx *gorm.DB, cveId string)) *FlawCveRepository_FindCVE_Call
func (*FlawCveRepository_FindCVE_Call) RunAndReturn ¶
func (_c *FlawCveRepository_FindCVE_Call) RunAndReturn(run func(*gorm.DB, string) (models.CVE, error)) *FlawCveRepository_FindCVE_Call
type FlawFlawEventRepository ¶
FlawFlawEventRepository is an autogenerated mock type for the flawEventRepository type
func NewFlawFlawEventRepository ¶
func NewFlawFlawEventRepository(t interface {
mock.TestingT
Cleanup(func())
}) *FlawFlawEventRepository
NewFlawFlawEventRepository creates a new instance of FlawFlawEventRepository. 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 (*FlawFlawEventRepository) EXPECT ¶
func (_m *FlawFlawEventRepository) EXPECT() *FlawFlawEventRepository_Expecter
type FlawFlawEventRepository_Expecter ¶
type FlawFlawEventRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*FlawFlawEventRepository_Expecter) Save ¶
func (_e *FlawFlawEventRepository_Expecter) Save(db interface{}, event interface{}) *FlawFlawEventRepository_Save_Call
Save is a helper method to define mock.On call
- db *gorm.DB
- event *models.FlawEvent
func (*FlawFlawEventRepository_Expecter) SaveBatch ¶
func (_e *FlawFlawEventRepository_Expecter) SaveBatch(db interface{}, events interface{}) *FlawFlawEventRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- db *gorm.DB
- events []models.FlawEvent
type FlawFlawEventRepository_SaveBatch_Call ¶
FlawFlawEventRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*FlawFlawEventRepository_SaveBatch_Call) Return ¶
func (_c *FlawFlawEventRepository_SaveBatch_Call) Return(_a0 error) *FlawFlawEventRepository_SaveBatch_Call
func (*FlawFlawEventRepository_SaveBatch_Call) Run ¶
func (_c *FlawFlawEventRepository_SaveBatch_Call) Run(run func(db *gorm.DB, events []models.FlawEvent)) *FlawFlawEventRepository_SaveBatch_Call
func (*FlawFlawEventRepository_SaveBatch_Call) RunAndReturn ¶
func (_c *FlawFlawEventRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.FlawEvent) error) *FlawFlawEventRepository_SaveBatch_Call
type FlawFlawEventRepository_Save_Call ¶
FlawFlawEventRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*FlawFlawEventRepository_Save_Call) Return ¶
func (_c *FlawFlawEventRepository_Save_Call) Return(_a0 error) *FlawFlawEventRepository_Save_Call
func (*FlawFlawEventRepository_Save_Call) Run ¶
func (_c *FlawFlawEventRepository_Save_Call) Run(run func(db *gorm.DB, event *models.FlawEvent)) *FlawFlawEventRepository_Save_Call
func (*FlawFlawEventRepository_Save_Call) RunAndReturn ¶
func (_c *FlawFlawEventRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.FlawEvent) error) *FlawFlawEventRepository_Save_Call
type FlawFlawRepository ¶
FlawFlawRepository is an autogenerated mock type for the flawRepository type
func NewFlawFlawRepository ¶
func NewFlawFlawRepository(t interface {
mock.TestingT
Cleanup(func())
}) *FlawFlawRepository
NewFlawFlawRepository creates a new instance of FlawFlawRepository. 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 (*FlawFlawRepository) Begin ¶
func (_m *FlawFlawRepository) Begin() *gorm.DB
Begin provides a mock function with given fields:
func (*FlawFlawRepository) EXPECT ¶
func (_m *FlawFlawRepository) EXPECT() *FlawFlawRepository_Expecter
func (*FlawFlawRepository) GetAllFlawsByAssetID ¶
func (_m *FlawFlawRepository) GetAllFlawsByAssetID(tx *gorm.DB, assetID uuid.UUID) ([]models.Flaw, error)
GetAllFlawsByAssetID provides a mock function with given fields: tx, assetID
func (*FlawFlawRepository) SaveBatch ¶
SaveBatch provides a mock function with given fields: db, flaws
func (*FlawFlawRepository) Transaction ¶
func (_m *FlawFlawRepository) Transaction(txFunc func(*gorm.DB) error) error
Transaction provides a mock function with given fields: txFunc
type FlawFlawRepository_Begin_Call ¶
FlawFlawRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*FlawFlawRepository_Begin_Call) Return ¶
func (_c *FlawFlawRepository_Begin_Call) Return(_a0 *gorm.DB) *FlawFlawRepository_Begin_Call
func (*FlawFlawRepository_Begin_Call) Run ¶
func (_c *FlawFlawRepository_Begin_Call) Run(run func()) *FlawFlawRepository_Begin_Call
func (*FlawFlawRepository_Begin_Call) RunAndReturn ¶
func (_c *FlawFlawRepository_Begin_Call) RunAndReturn(run func() *gorm.DB) *FlawFlawRepository_Begin_Call
type FlawFlawRepository_Expecter ¶
type FlawFlawRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*FlawFlawRepository_Expecter) Begin ¶
func (_e *FlawFlawRepository_Expecter) Begin() *FlawFlawRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*FlawFlawRepository_Expecter) GetAllFlawsByAssetID ¶
func (_e *FlawFlawRepository_Expecter) GetAllFlawsByAssetID(tx interface{}, assetID interface{}) *FlawFlawRepository_GetAllFlawsByAssetID_Call
GetAllFlawsByAssetID is a helper method to define mock.On call
- tx *gorm.DB
- assetID uuid.UUID
func (*FlawFlawRepository_Expecter) Save ¶
func (_e *FlawFlawRepository_Expecter) Save(db interface{}, flaws interface{}) *FlawFlawRepository_Save_Call
Save is a helper method to define mock.On call
- db *gorm.DB
- flaws *models.Flaw
func (*FlawFlawRepository_Expecter) SaveBatch ¶
func (_e *FlawFlawRepository_Expecter) SaveBatch(db interface{}, flaws interface{}) *FlawFlawRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- db *gorm.DB
- flaws []models.Flaw
func (*FlawFlawRepository_Expecter) Transaction ¶
func (_e *FlawFlawRepository_Expecter) Transaction(txFunc interface{}) *FlawFlawRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- txFunc func(*gorm.DB) error
type FlawFlawRepository_GetAllFlawsByAssetID_Call ¶
FlawFlawRepository_GetAllFlawsByAssetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllFlawsByAssetID'
func (*FlawFlawRepository_GetAllFlawsByAssetID_Call) Return ¶
func (_c *FlawFlawRepository_GetAllFlawsByAssetID_Call) Return(_a0 []models.Flaw, _a1 error) *FlawFlawRepository_GetAllFlawsByAssetID_Call
func (*FlawFlawRepository_GetAllFlawsByAssetID_Call) Run ¶
func (_c *FlawFlawRepository_GetAllFlawsByAssetID_Call) Run(run func(tx *gorm.DB, assetID uuid.UUID)) *FlawFlawRepository_GetAllFlawsByAssetID_Call
func (*FlawFlawRepository_GetAllFlawsByAssetID_Call) RunAndReturn ¶
func (_c *FlawFlawRepository_GetAllFlawsByAssetID_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) ([]models.Flaw, error)) *FlawFlawRepository_GetAllFlawsByAssetID_Call
type FlawFlawRepository_SaveBatch_Call ¶
FlawFlawRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*FlawFlawRepository_SaveBatch_Call) Return ¶
func (_c *FlawFlawRepository_SaveBatch_Call) Return(_a0 error) *FlawFlawRepository_SaveBatch_Call
func (*FlawFlawRepository_SaveBatch_Call) Run ¶
func (_c *FlawFlawRepository_SaveBatch_Call) Run(run func(db *gorm.DB, flaws []models.Flaw)) *FlawFlawRepository_SaveBatch_Call
func (*FlawFlawRepository_SaveBatch_Call) RunAndReturn ¶
func (_c *FlawFlawRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Flaw) error) *FlawFlawRepository_SaveBatch_Call
type FlawFlawRepository_Save_Call ¶
FlawFlawRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*FlawFlawRepository_Save_Call) Return ¶
func (_c *FlawFlawRepository_Save_Call) Return(_a0 error) *FlawFlawRepository_Save_Call
func (*FlawFlawRepository_Save_Call) Run ¶
func (_c *FlawFlawRepository_Save_Call) Run(run func(db *gorm.DB, flaws *models.Flaw)) *FlawFlawRepository_Save_Call
func (*FlawFlawRepository_Save_Call) RunAndReturn ¶
func (_c *FlawFlawRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.Flaw) error) *FlawFlawRepository_Save_Call
type FlawFlawRepository_Transaction_Call ¶
FlawFlawRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*FlawFlawRepository_Transaction_Call) Return ¶
func (_c *FlawFlawRepository_Transaction_Call) Return(_a0 error) *FlawFlawRepository_Transaction_Call
func (*FlawFlawRepository_Transaction_Call) Run ¶
func (_c *FlawFlawRepository_Transaction_Call) Run(run func(txFunc func(*gorm.DB) error)) *FlawFlawRepository_Transaction_Call
func (*FlawFlawRepository_Transaction_Call) RunAndReturn ¶
func (_c *FlawFlawRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *FlawFlawRepository_Transaction_Call
type FlawFlawService ¶
FlawFlawService is an autogenerated mock type for the flawService type
func NewFlawFlawService ¶
func NewFlawFlawService(t interface {
mock.TestingT
Cleanup(func())
}) *FlawFlawService
NewFlawFlawService creates a new instance of FlawFlawService. 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 (*FlawFlawService) EXPECT ¶
func (_m *FlawFlawService) EXPECT() *FlawFlawService_Expecter
type FlawFlawService_Expecter ¶
type FlawFlawService_Expecter struct {
// contains filtered or unexported fields
}
func (*FlawFlawService_Expecter) UpdateFlawState ¶
func (_e *FlawFlawService_Expecter) UpdateFlawState(tx interface{}, userID interface{}, _a2 interface{}, statusType interface{}, justification interface{}) *FlawFlawService_UpdateFlawState_Call
UpdateFlawState is a helper method to define mock.On call
- tx *gorm.DB
- userID string
- _a2 *models.Flaw
- statusType string
- justification *string
type FlawFlawService_UpdateFlawState_Call ¶
FlawFlawService_UpdateFlawState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateFlawState'
func (*FlawFlawService_UpdateFlawState_Call) Return ¶
func (_c *FlawFlawService_UpdateFlawState_Call) Return(_a0 error) *FlawFlawService_UpdateFlawState_Call
func (*FlawFlawService_UpdateFlawState_Call) Run ¶
func (_c *FlawFlawService_UpdateFlawState_Call) Run(run func(tx *gorm.DB, userID string, _a2 *models.Flaw, statusType string, justification *string)) *FlawFlawService_UpdateFlawState_Call
func (*FlawFlawService_UpdateFlawState_Call) RunAndReturn ¶
func (_c *FlawFlawService_UpdateFlawState_Call) RunAndReturn(run func(*gorm.DB, string, *models.Flaw, string, *string) error) *FlawFlawService_UpdateFlawState_Call
type FlawRepository ¶
FlawRepository is an autogenerated mock type for the repository type
func NewFlawRepository ¶
func NewFlawRepository(t interface {
mock.TestingT
Cleanup(func())
}) *FlawRepository
NewFlawRepository creates a new instance of FlawRepository. 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 (*FlawRepository) Begin ¶
func (_m *FlawRepository) Begin() *gorm.DB
Begin provides a mock function with given fields:
func (*FlawRepository) CreateBatch ¶
CreateBatch provides a mock function with given fields: tx, ts
func (*FlawRepository) Delete ¶
func (_m *FlawRepository) Delete(tx *gorm.DB, id string) error
Delete provides a mock function with given fields: tx, id
func (*FlawRepository) EXPECT ¶
func (_m *FlawRepository) EXPECT() *FlawRepository_Expecter
func (*FlawRepository) GetByAssetId ¶
GetByAssetId provides a mock function with given fields: tx, assetId
func (*FlawRepository) GetByAssetIdPaged ¶
func (_m *FlawRepository) GetByAssetIdPaged(tx *gorm.DB, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery, assetId uuid.UUID) (core.Paged[models.Flaw], map[string]int, error)
GetByAssetIdPaged provides a mock function with given fields: tx, pageInfo, search, filter, sort, assetId
func (*FlawRepository) GetDB ¶
func (_m *FlawRepository) GetDB(tx *gorm.DB) *gorm.DB
GetDB provides a mock function with given fields: tx
func (*FlawRepository) List ¶
func (_m *FlawRepository) List(ids []string) ([]models.Flaw, error)
List provides a mock function with given fields: ids
func (*FlawRepository) Read ¶
func (_m *FlawRepository) Read(id string) (models.Flaw, error)
Read provides a mock function with given fields: id
func (*FlawRepository) Transaction ¶
func (_m *FlawRepository) Transaction(_a0 func(*gorm.DB) error) error
Transaction provides a mock function with given fields: _a0
type FlawRepository_Begin_Call ¶
FlawRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*FlawRepository_Begin_Call) Return ¶
func (_c *FlawRepository_Begin_Call) Return(_a0 *gorm.DB) *FlawRepository_Begin_Call
func (*FlawRepository_Begin_Call) Run ¶
func (_c *FlawRepository_Begin_Call) Run(run func()) *FlawRepository_Begin_Call
func (*FlawRepository_Begin_Call) RunAndReturn ¶
func (_c *FlawRepository_Begin_Call) RunAndReturn(run func() *gorm.DB) *FlawRepository_Begin_Call
type FlawRepository_CreateBatch_Call ¶
FlawRepository_CreateBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBatch'
func (*FlawRepository_CreateBatch_Call) Return ¶
func (_c *FlawRepository_CreateBatch_Call) Return(_a0 error) *FlawRepository_CreateBatch_Call
func (*FlawRepository_CreateBatch_Call) Run ¶
func (_c *FlawRepository_CreateBatch_Call) Run(run func(tx *gorm.DB, ts []models.Flaw)) *FlawRepository_CreateBatch_Call
func (*FlawRepository_CreateBatch_Call) RunAndReturn ¶
func (_c *FlawRepository_CreateBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Flaw) error) *FlawRepository_CreateBatch_Call
type FlawRepository_Create_Call ¶
FlawRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*FlawRepository_Create_Call) Return ¶
func (_c *FlawRepository_Create_Call) Return(_a0 error) *FlawRepository_Create_Call
func (*FlawRepository_Create_Call) Run ¶
func (_c *FlawRepository_Create_Call) Run(run func(tx *gorm.DB, t *models.Flaw)) *FlawRepository_Create_Call
func (*FlawRepository_Create_Call) RunAndReturn ¶
func (_c *FlawRepository_Create_Call) RunAndReturn(run func(*gorm.DB, *models.Flaw) error) *FlawRepository_Create_Call
type FlawRepository_Delete_Call ¶
FlawRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*FlawRepository_Delete_Call) Return ¶
func (_c *FlawRepository_Delete_Call) Return(_a0 error) *FlawRepository_Delete_Call
func (*FlawRepository_Delete_Call) Run ¶
func (_c *FlawRepository_Delete_Call) Run(run func(tx *gorm.DB, id string)) *FlawRepository_Delete_Call
func (*FlawRepository_Delete_Call) RunAndReturn ¶
func (_c *FlawRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, string) error) *FlawRepository_Delete_Call
type FlawRepository_Expecter ¶
type FlawRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*FlawRepository_Expecter) Begin ¶
func (_e *FlawRepository_Expecter) Begin() *FlawRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*FlawRepository_Expecter) Create ¶
func (_e *FlawRepository_Expecter) Create(tx interface{}, t interface{}) *FlawRepository_Create_Call
Create is a helper method to define mock.On call
- tx *gorm.DB
- t *models.Flaw
func (*FlawRepository_Expecter) CreateBatch ¶
func (_e *FlawRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *FlawRepository_CreateBatch_Call
CreateBatch is a helper method to define mock.On call
- tx *gorm.DB
- ts []models.Flaw
func (*FlawRepository_Expecter) Delete ¶
func (_e *FlawRepository_Expecter) Delete(tx interface{}, id interface{}) *FlawRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx *gorm.DB
- id string
func (*FlawRepository_Expecter) GetByAssetId ¶
func (_e *FlawRepository_Expecter) GetByAssetId(tx interface{}, assetId interface{}) *FlawRepository_GetByAssetId_Call
GetByAssetId is a helper method to define mock.On call
- tx *gorm.DB
- assetId uuid.UUID
func (*FlawRepository_Expecter) GetByAssetIdPaged ¶
func (_e *FlawRepository_Expecter) GetByAssetIdPaged(tx interface{}, pageInfo interface{}, search interface{}, filter interface{}, sort interface{}, assetId interface{}) *FlawRepository_GetByAssetIdPaged_Call
GetByAssetIdPaged is a helper method to define mock.On call
- tx *gorm.DB
- pageInfo core.PageInfo
- search string
- filter []core.FilterQuery
- sort []core.SortQuery
- assetId uuid.UUID
func (*FlawRepository_Expecter) GetDB ¶
func (_e *FlawRepository_Expecter) GetDB(tx interface{}) *FlawRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx *gorm.DB
func (*FlawRepository_Expecter) List ¶
func (_e *FlawRepository_Expecter) List(ids interface{}) *FlawRepository_List_Call
List is a helper method to define mock.On call
- ids []string
func (*FlawRepository_Expecter) Read ¶
func (_e *FlawRepository_Expecter) Read(id interface{}) *FlawRepository_Read_Call
Read is a helper method to define mock.On call
- id string
func (*FlawRepository_Expecter) Save ¶
func (_e *FlawRepository_Expecter) Save(tx interface{}, t interface{}) *FlawRepository_Save_Call
Save is a helper method to define mock.On call
- tx *gorm.DB
- t *models.Flaw
func (*FlawRepository_Expecter) SaveBatch ¶
func (_e *FlawRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *FlawRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx *gorm.DB
- ts []models.Flaw
func (*FlawRepository_Expecter) Transaction ¶
func (_e *FlawRepository_Expecter) Transaction(_a0 interface{}) *FlawRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- _a0 func(*gorm.DB) error
type FlawRepository_GetByAssetIdPaged_Call ¶
FlawRepository_GetByAssetIdPaged_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByAssetIdPaged'
func (*FlawRepository_GetByAssetIdPaged_Call) Return ¶
func (_c *FlawRepository_GetByAssetIdPaged_Call) Return(_a0 core.Paged[models.Flaw], _a1 map[string]int, _a2 error) *FlawRepository_GetByAssetIdPaged_Call
func (*FlawRepository_GetByAssetIdPaged_Call) Run ¶
func (_c *FlawRepository_GetByAssetIdPaged_Call) Run(run func(tx *gorm.DB, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery, assetId uuid.UUID)) *FlawRepository_GetByAssetIdPaged_Call
func (*FlawRepository_GetByAssetIdPaged_Call) RunAndReturn ¶
type FlawRepository_GetByAssetId_Call ¶
FlawRepository_GetByAssetId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByAssetId'
func (*FlawRepository_GetByAssetId_Call) Return ¶
func (_c *FlawRepository_GetByAssetId_Call) Return(_a0 []models.Flaw, _a1 error) *FlawRepository_GetByAssetId_Call
func (*FlawRepository_GetByAssetId_Call) Run ¶
func (_c *FlawRepository_GetByAssetId_Call) Run(run func(tx *gorm.DB, assetId uuid.UUID)) *FlawRepository_GetByAssetId_Call
func (*FlawRepository_GetByAssetId_Call) RunAndReturn ¶
func (_c *FlawRepository_GetByAssetId_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) ([]models.Flaw, error)) *FlawRepository_GetByAssetId_Call
type FlawRepository_GetDB_Call ¶
FlawRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*FlawRepository_GetDB_Call) Return ¶
func (_c *FlawRepository_GetDB_Call) Return(_a0 *gorm.DB) *FlawRepository_GetDB_Call
func (*FlawRepository_GetDB_Call) Run ¶
func (_c *FlawRepository_GetDB_Call) Run(run func(tx *gorm.DB)) *FlawRepository_GetDB_Call
func (*FlawRepository_GetDB_Call) RunAndReturn ¶
func (_c *FlawRepository_GetDB_Call) RunAndReturn(run func(*gorm.DB) *gorm.DB) *FlawRepository_GetDB_Call
type FlawRepository_List_Call ¶
FlawRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*FlawRepository_List_Call) Return ¶
func (_c *FlawRepository_List_Call) Return(_a0 []models.Flaw, _a1 error) *FlawRepository_List_Call
func (*FlawRepository_List_Call) Run ¶
func (_c *FlawRepository_List_Call) Run(run func(ids []string)) *FlawRepository_List_Call
func (*FlawRepository_List_Call) RunAndReturn ¶
func (_c *FlawRepository_List_Call) RunAndReturn(run func([]string) ([]models.Flaw, error)) *FlawRepository_List_Call
type FlawRepository_Read_Call ¶
FlawRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*FlawRepository_Read_Call) Return ¶
func (_c *FlawRepository_Read_Call) Return(_a0 models.Flaw, _a1 error) *FlawRepository_Read_Call
func (*FlawRepository_Read_Call) Run ¶
func (_c *FlawRepository_Read_Call) Run(run func(id string)) *FlawRepository_Read_Call
func (*FlawRepository_Read_Call) RunAndReturn ¶
func (_c *FlawRepository_Read_Call) RunAndReturn(run func(string) (models.Flaw, error)) *FlawRepository_Read_Call
type FlawRepository_SaveBatch_Call ¶
FlawRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*FlawRepository_SaveBatch_Call) Return ¶
func (_c *FlawRepository_SaveBatch_Call) Return(_a0 error) *FlawRepository_SaveBatch_Call
func (*FlawRepository_SaveBatch_Call) Run ¶
func (_c *FlawRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, ts []models.Flaw)) *FlawRepository_SaveBatch_Call
func (*FlawRepository_SaveBatch_Call) RunAndReturn ¶
func (_c *FlawRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Flaw) error) *FlawRepository_SaveBatch_Call
type FlawRepository_Save_Call ¶
FlawRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*FlawRepository_Save_Call) Return ¶
func (_c *FlawRepository_Save_Call) Return(_a0 error) *FlawRepository_Save_Call
func (*FlawRepository_Save_Call) Run ¶
func (_c *FlawRepository_Save_Call) Run(run func(tx *gorm.DB, t *models.Flaw)) *FlawRepository_Save_Call
func (*FlawRepository_Save_Call) RunAndReturn ¶
func (_c *FlawRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.Flaw) error) *FlawRepository_Save_Call
type FlawRepository_Transaction_Call ¶
FlawRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*FlawRepository_Transaction_Call) Return ¶
func (_c *FlawRepository_Transaction_Call) Return(_a0 error) *FlawRepository_Transaction_Call
func (*FlawRepository_Transaction_Call) Run ¶
func (_c *FlawRepository_Transaction_Call) Run(run func(_a0 func(*gorm.DB) error)) *FlawRepository_Transaction_Call
func (*FlawRepository_Transaction_Call) RunAndReturn ¶
func (_c *FlawRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *FlawRepository_Transaction_Call
type IntegrationsGithubAppInstallationRepository ¶
IntegrationsGithubAppInstallationRepository is an autogenerated mock type for the githubAppInstallationRepository type
func NewIntegrationsGithubAppInstallationRepository ¶
func NewIntegrationsGithubAppInstallationRepository(t interface {
mock.TestingT
Cleanup(func())
}) *IntegrationsGithubAppInstallationRepository
NewIntegrationsGithubAppInstallationRepository creates a new instance of IntegrationsGithubAppInstallationRepository. 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 (*IntegrationsGithubAppInstallationRepository) Delete ¶ added in v0.5.1
func (_m *IntegrationsGithubAppInstallationRepository) Delete(tx *gorm.DB, installationID int) error
Delete provides a mock function with given fields: tx, installationID
func (*IntegrationsGithubAppInstallationRepository) FindByOrganizationId ¶
func (_m *IntegrationsGithubAppInstallationRepository) FindByOrganizationId(orgID uuid.UUID) ([]models.GithubAppInstallation, error)
FindByOrganizationId provides a mock function with given fields: orgID
func (*IntegrationsGithubAppInstallationRepository) Read ¶
func (_m *IntegrationsGithubAppInstallationRepository) Read(installationID int) (models.GithubAppInstallation, error)
Read provides a mock function with given fields: installationID
func (*IntegrationsGithubAppInstallationRepository) Save ¶
func (_m *IntegrationsGithubAppInstallationRepository) Save(tx *gorm.DB, model *models.GithubAppInstallation) error
Save provides a mock function with given fields: tx, model
type IntegrationsGithubAppInstallationRepository_Delete_Call ¶ added in v0.5.1
IntegrationsGithubAppInstallationRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*IntegrationsGithubAppInstallationRepository_Delete_Call) Run ¶ added in v0.5.1
func (_c *IntegrationsGithubAppInstallationRepository_Delete_Call) Run(run func(tx *gorm.DB, installationID int)) *IntegrationsGithubAppInstallationRepository_Delete_Call
func (*IntegrationsGithubAppInstallationRepository_Delete_Call) RunAndReturn ¶ added in v0.5.1
func (_c *IntegrationsGithubAppInstallationRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, int) error) *IntegrationsGithubAppInstallationRepository_Delete_Call
type IntegrationsGithubAppInstallationRepository_Expecter ¶
type IntegrationsGithubAppInstallationRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*IntegrationsGithubAppInstallationRepository_Expecter) Delete ¶ added in v0.5.1
func (_e *IntegrationsGithubAppInstallationRepository_Expecter) Delete(tx interface{}, installationID interface{}) *IntegrationsGithubAppInstallationRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx *gorm.DB
- installationID int
func (*IntegrationsGithubAppInstallationRepository_Expecter) FindByOrganizationId ¶
func (_e *IntegrationsGithubAppInstallationRepository_Expecter) FindByOrganizationId(orgID interface{}) *IntegrationsGithubAppInstallationRepository_FindByOrganizationId_Call
FindByOrganizationId is a helper method to define mock.On call
- orgID uuid.UUID
func (*IntegrationsGithubAppInstallationRepository_Expecter) Read ¶
func (_e *IntegrationsGithubAppInstallationRepository_Expecter) Read(installationID interface{}) *IntegrationsGithubAppInstallationRepository_Read_Call
Read is a helper method to define mock.On call
- installationID int
func (*IntegrationsGithubAppInstallationRepository_Expecter) Save ¶
func (_e *IntegrationsGithubAppInstallationRepository_Expecter) Save(tx interface{}, model interface{}) *IntegrationsGithubAppInstallationRepository_Save_Call
Save is a helper method to define mock.On call
- tx *gorm.DB
- model *models.GithubAppInstallation
type IntegrationsGithubAppInstallationRepository_FindByOrganizationId_Call ¶
IntegrationsGithubAppInstallationRepository_FindByOrganizationId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByOrganizationId'
func (*IntegrationsGithubAppInstallationRepository_FindByOrganizationId_Call) RunAndReturn ¶
func (_c *IntegrationsGithubAppInstallationRepository_FindByOrganizationId_Call) RunAndReturn(run func(uuid.UUID) ([]models.GithubAppInstallation, error)) *IntegrationsGithubAppInstallationRepository_FindByOrganizationId_Call
type IntegrationsGithubAppInstallationRepository_Read_Call ¶
IntegrationsGithubAppInstallationRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*IntegrationsGithubAppInstallationRepository_Read_Call) Run ¶
func (_c *IntegrationsGithubAppInstallationRepository_Read_Call) Run(run func(installationID int)) *IntegrationsGithubAppInstallationRepository_Read_Call
func (*IntegrationsGithubAppInstallationRepository_Read_Call) RunAndReturn ¶
func (_c *IntegrationsGithubAppInstallationRepository_Read_Call) RunAndReturn(run func(int) (models.GithubAppInstallation, error)) *IntegrationsGithubAppInstallationRepository_Read_Call
type IntegrationsGithubAppInstallationRepository_Save_Call ¶
IntegrationsGithubAppInstallationRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*IntegrationsGithubAppInstallationRepository_Save_Call) Run ¶
func (_c *IntegrationsGithubAppInstallationRepository_Save_Call) Run(run func(tx *gorm.DB, model *models.GithubAppInstallation)) *IntegrationsGithubAppInstallationRepository_Save_Call
func (*IntegrationsGithubAppInstallationRepository_Save_Call) RunAndReturn ¶
func (_c *IntegrationsGithubAppInstallationRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.GithubAppInstallation) error) *IntegrationsGithubAppInstallationRepository_Save_Call
type LeaderelectionConfigService ¶
LeaderelectionConfigService is an autogenerated mock type for the configService type
func NewLeaderelectionConfigService ¶
func NewLeaderelectionConfigService(t interface {
mock.TestingT
Cleanup(func())
}) *LeaderelectionConfigService
NewLeaderelectionConfigService creates a new instance of LeaderelectionConfigService. 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 (*LeaderelectionConfigService) EXPECT ¶
func (_m *LeaderelectionConfigService) EXPECT() *LeaderelectionConfigService_Expecter
func (*LeaderelectionConfigService) GetJSONConfig ¶
func (_m *LeaderelectionConfigService) GetJSONConfig(key string, v interface{}) error
GetJSONConfig provides a mock function with given fields: key, v
func (*LeaderelectionConfigService) SetJSONConfig ¶
func (_m *LeaderelectionConfigService) SetJSONConfig(key string, v interface{}) error
SetJSONConfig provides a mock function with given fields: key, v
type LeaderelectionConfigService_Expecter ¶
type LeaderelectionConfigService_Expecter struct {
// contains filtered or unexported fields
}
func (*LeaderelectionConfigService_Expecter) GetJSONConfig ¶
func (_e *LeaderelectionConfigService_Expecter) GetJSONConfig(key interface{}, v interface{}) *LeaderelectionConfigService_GetJSONConfig_Call
GetJSONConfig is a helper method to define mock.On call
- key string
- v interface{}
func (*LeaderelectionConfigService_Expecter) SetJSONConfig ¶
func (_e *LeaderelectionConfigService_Expecter) SetJSONConfig(key interface{}, v interface{}) *LeaderelectionConfigService_SetJSONConfig_Call
SetJSONConfig is a helper method to define mock.On call
- key string
- v interface{}
type LeaderelectionConfigService_GetJSONConfig_Call ¶
LeaderelectionConfigService_GetJSONConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetJSONConfig'
func (*LeaderelectionConfigService_GetJSONConfig_Call) Return ¶
func (_c *LeaderelectionConfigService_GetJSONConfig_Call) Return(_a0 error) *LeaderelectionConfigService_GetJSONConfig_Call
func (*LeaderelectionConfigService_GetJSONConfig_Call) Run ¶
func (_c *LeaderelectionConfigService_GetJSONConfig_Call) Run(run func(key string, v interface{})) *LeaderelectionConfigService_GetJSONConfig_Call
func (*LeaderelectionConfigService_GetJSONConfig_Call) RunAndReturn ¶
func (_c *LeaderelectionConfigService_GetJSONConfig_Call) RunAndReturn(run func(string, interface{}) error) *LeaderelectionConfigService_GetJSONConfig_Call
type LeaderelectionConfigService_SetJSONConfig_Call ¶
LeaderelectionConfigService_SetJSONConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetJSONConfig'
func (*LeaderelectionConfigService_SetJSONConfig_Call) Return ¶
func (_c *LeaderelectionConfigService_SetJSONConfig_Call) Return(_a0 error) *LeaderelectionConfigService_SetJSONConfig_Call
func (*LeaderelectionConfigService_SetJSONConfig_Call) Run ¶
func (_c *LeaderelectionConfigService_SetJSONConfig_Call) Run(run func(key string, v interface{})) *LeaderelectionConfigService_SetJSONConfig_Call
func (*LeaderelectionConfigService_SetJSONConfig_Call) RunAndReturn ¶
func (_c *LeaderelectionConfigService_SetJSONConfig_Call) RunAndReturn(run func(string, interface{}) error) *LeaderelectionConfigService_SetJSONConfig_Call
type NormalizeSBOM ¶ added in v0.5.1
NormalizeSBOM is an autogenerated mock type for the SBOM type
func NewNormalizeSBOM ¶ added in v0.5.1
func NewNormalizeSBOM(t interface {
mock.TestingT
Cleanup(func())
}) *NormalizeSBOM
NewNormalizeSBOM creates a new instance of NormalizeSBOM. 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 (*NormalizeSBOM) EXPECT ¶ added in v0.5.1
func (_m *NormalizeSBOM) EXPECT() *NormalizeSBOM_Expecter
func (*NormalizeSBOM) GetComponents ¶ added in v0.5.1
func (_m *NormalizeSBOM) GetComponents() *[]cyclonedx.Component
GetComponents provides a mock function with given fields:
func (*NormalizeSBOM) GetDependencies ¶ added in v0.5.1
func (_m *NormalizeSBOM) GetDependencies() *[]cyclonedx.Dependency
GetDependencies provides a mock function with given fields:
func (*NormalizeSBOM) GetMetadata ¶ added in v0.5.1
func (_m *NormalizeSBOM) GetMetadata() *cyclonedx.Metadata
GetMetadata provides a mock function with given fields:
type NormalizeSBOM_Expecter ¶ added in v0.5.1
type NormalizeSBOM_Expecter struct {
// contains filtered or unexported fields
}
func (*NormalizeSBOM_Expecter) GetComponents ¶ added in v0.5.1
func (_e *NormalizeSBOM_Expecter) GetComponents() *NormalizeSBOM_GetComponents_Call
GetComponents is a helper method to define mock.On call
func (*NormalizeSBOM_Expecter) GetDependencies ¶ added in v0.5.1
func (_e *NormalizeSBOM_Expecter) GetDependencies() *NormalizeSBOM_GetDependencies_Call
GetDependencies is a helper method to define mock.On call
func (*NormalizeSBOM_Expecter) GetMetadata ¶ added in v0.5.1
func (_e *NormalizeSBOM_Expecter) GetMetadata() *NormalizeSBOM_GetMetadata_Call
GetMetadata is a helper method to define mock.On call
type NormalizeSBOM_GetComponents_Call ¶ added in v0.5.1
NormalizeSBOM_GetComponents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetComponents'
func (*NormalizeSBOM_GetComponents_Call) Return ¶ added in v0.5.1
func (_c *NormalizeSBOM_GetComponents_Call) Return(_a0 *[]cyclonedx.Component) *NormalizeSBOM_GetComponents_Call
func (*NormalizeSBOM_GetComponents_Call) Run ¶ added in v0.5.1
func (_c *NormalizeSBOM_GetComponents_Call) Run(run func()) *NormalizeSBOM_GetComponents_Call
func (*NormalizeSBOM_GetComponents_Call) RunAndReturn ¶ added in v0.5.1
func (_c *NormalizeSBOM_GetComponents_Call) RunAndReturn(run func() *[]cyclonedx.Component) *NormalizeSBOM_GetComponents_Call
type NormalizeSBOM_GetDependencies_Call ¶ added in v0.5.1
NormalizeSBOM_GetDependencies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDependencies'
func (*NormalizeSBOM_GetDependencies_Call) Return ¶ added in v0.5.1
func (_c *NormalizeSBOM_GetDependencies_Call) Return(_a0 *[]cyclonedx.Dependency) *NormalizeSBOM_GetDependencies_Call
func (*NormalizeSBOM_GetDependencies_Call) Run ¶ added in v0.5.1
func (_c *NormalizeSBOM_GetDependencies_Call) Run(run func()) *NormalizeSBOM_GetDependencies_Call
func (*NormalizeSBOM_GetDependencies_Call) RunAndReturn ¶ added in v0.5.1
func (_c *NormalizeSBOM_GetDependencies_Call) RunAndReturn(run func() *[]cyclonedx.Dependency) *NormalizeSBOM_GetDependencies_Call
type NormalizeSBOM_GetMetadata_Call ¶ added in v0.5.1
NormalizeSBOM_GetMetadata_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMetadata'
func (*NormalizeSBOM_GetMetadata_Call) Return ¶ added in v0.5.1
func (_c *NormalizeSBOM_GetMetadata_Call) Return(_a0 *cyclonedx.Metadata) *NormalizeSBOM_GetMetadata_Call
func (*NormalizeSBOM_GetMetadata_Call) Run ¶ added in v0.5.1
func (_c *NormalizeSBOM_GetMetadata_Call) Run(run func()) *NormalizeSBOM_GetMetadata_Call
func (*NormalizeSBOM_GetMetadata_Call) RunAndReturn ¶ added in v0.5.1
func (_c *NormalizeSBOM_GetMetadata_Call) RunAndReturn(run func() *cyclonedx.Metadata) *NormalizeSBOM_GetMetadata_Call
type OrgRepository ¶
OrgRepository is an autogenerated mock type for the repository type
func NewOrgRepository ¶
func NewOrgRepository(t interface {
mock.TestingT
Cleanup(func())
}) *OrgRepository
NewOrgRepository creates a new instance of OrgRepository. 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 (*OrgRepository) Begin ¶
func (_m *OrgRepository) Begin() *gorm.DB
Begin provides a mock function with given fields:
func (*OrgRepository) CreateBatch ¶
CreateBatch provides a mock function with given fields: tx, ts
func (*OrgRepository) EXPECT ¶
func (_m *OrgRepository) EXPECT() *OrgRepository_Expecter
func (*OrgRepository) GetDB ¶
func (_m *OrgRepository) GetDB(tx *gorm.DB) *gorm.DB
GetDB provides a mock function with given fields: tx
func (*OrgRepository) ReadBySlug ¶
func (_m *OrgRepository) ReadBySlug(slug string) (models.Org, error)
ReadBySlug provides a mock function with given fields: slug
func (*OrgRepository) Transaction ¶
func (_m *OrgRepository) Transaction(_a0 func(*gorm.DB) error) error
Transaction provides a mock function with given fields: _a0
type OrgRepository_Begin_Call ¶
OrgRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*OrgRepository_Begin_Call) Return ¶
func (_c *OrgRepository_Begin_Call) Return(_a0 *gorm.DB) *OrgRepository_Begin_Call
func (*OrgRepository_Begin_Call) Run ¶
func (_c *OrgRepository_Begin_Call) Run(run func()) *OrgRepository_Begin_Call
func (*OrgRepository_Begin_Call) RunAndReturn ¶
func (_c *OrgRepository_Begin_Call) RunAndReturn(run func() *gorm.DB) *OrgRepository_Begin_Call
type OrgRepository_CreateBatch_Call ¶
OrgRepository_CreateBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBatch'
func (*OrgRepository_CreateBatch_Call) Return ¶
func (_c *OrgRepository_CreateBatch_Call) Return(_a0 error) *OrgRepository_CreateBatch_Call
func (*OrgRepository_CreateBatch_Call) Run ¶
func (_c *OrgRepository_CreateBatch_Call) Run(run func(tx *gorm.DB, ts []models.Org)) *OrgRepository_CreateBatch_Call
func (*OrgRepository_CreateBatch_Call) RunAndReturn ¶
func (_c *OrgRepository_CreateBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Org) error) *OrgRepository_CreateBatch_Call
type OrgRepository_Create_Call ¶
OrgRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*OrgRepository_Create_Call) Return ¶
func (_c *OrgRepository_Create_Call) Return(_a0 error) *OrgRepository_Create_Call
func (*OrgRepository_Create_Call) Run ¶
func (_c *OrgRepository_Create_Call) Run(run func(tx *gorm.DB, t *models.Org)) *OrgRepository_Create_Call
func (*OrgRepository_Create_Call) RunAndReturn ¶
func (_c *OrgRepository_Create_Call) RunAndReturn(run func(*gorm.DB, *models.Org) error) *OrgRepository_Create_Call
type OrgRepository_Delete_Call ¶
OrgRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*OrgRepository_Delete_Call) Return ¶
func (_c *OrgRepository_Delete_Call) Return(_a0 error) *OrgRepository_Delete_Call
func (*OrgRepository_Delete_Call) Run ¶
func (_c *OrgRepository_Delete_Call) Run(run func(tx *gorm.DB, id uuid.UUID)) *OrgRepository_Delete_Call
func (*OrgRepository_Delete_Call) RunAndReturn ¶
func (_c *OrgRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *OrgRepository_Delete_Call
type OrgRepository_Expecter ¶
type OrgRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*OrgRepository_Expecter) Begin ¶
func (_e *OrgRepository_Expecter) Begin() *OrgRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*OrgRepository_Expecter) Create ¶
func (_e *OrgRepository_Expecter) Create(tx interface{}, t interface{}) *OrgRepository_Create_Call
Create is a helper method to define mock.On call
- tx *gorm.DB
- t *models.Org
func (*OrgRepository_Expecter) CreateBatch ¶
func (_e *OrgRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *OrgRepository_CreateBatch_Call
CreateBatch is a helper method to define mock.On call
- tx *gorm.DB
- ts []models.Org
func (*OrgRepository_Expecter) Delete ¶
func (_e *OrgRepository_Expecter) Delete(tx interface{}, id interface{}) *OrgRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx *gorm.DB
- id uuid.UUID
func (*OrgRepository_Expecter) GetDB ¶
func (_e *OrgRepository_Expecter) GetDB(tx interface{}) *OrgRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx *gorm.DB
func (*OrgRepository_Expecter) List ¶
func (_e *OrgRepository_Expecter) List(ids interface{}) *OrgRepository_List_Call
List is a helper method to define mock.On call
- ids []uuid.UUID
func (*OrgRepository_Expecter) Read ¶
func (_e *OrgRepository_Expecter) Read(id interface{}) *OrgRepository_Read_Call
Read is a helper method to define mock.On call
- id uuid.UUID
func (*OrgRepository_Expecter) ReadBySlug ¶
func (_e *OrgRepository_Expecter) ReadBySlug(slug interface{}) *OrgRepository_ReadBySlug_Call
ReadBySlug is a helper method to define mock.On call
- slug string
func (*OrgRepository_Expecter) Save ¶
func (_e *OrgRepository_Expecter) Save(tx interface{}, t interface{}) *OrgRepository_Save_Call
Save is a helper method to define mock.On call
- tx *gorm.DB
- t *models.Org
func (*OrgRepository_Expecter) SaveBatch ¶
func (_e *OrgRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *OrgRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx *gorm.DB
- ts []models.Org
func (*OrgRepository_Expecter) Transaction ¶
func (_e *OrgRepository_Expecter) Transaction(_a0 interface{}) *OrgRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- _a0 func(*gorm.DB) error
type OrgRepository_GetDB_Call ¶
OrgRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*OrgRepository_GetDB_Call) Return ¶
func (_c *OrgRepository_GetDB_Call) Return(_a0 *gorm.DB) *OrgRepository_GetDB_Call
func (*OrgRepository_GetDB_Call) Run ¶
func (_c *OrgRepository_GetDB_Call) Run(run func(tx *gorm.DB)) *OrgRepository_GetDB_Call
func (*OrgRepository_GetDB_Call) RunAndReturn ¶
func (_c *OrgRepository_GetDB_Call) RunAndReturn(run func(*gorm.DB) *gorm.DB) *OrgRepository_GetDB_Call
type OrgRepository_List_Call ¶
OrgRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*OrgRepository_List_Call) Return ¶
func (_c *OrgRepository_List_Call) Return(_a0 []models.Org, _a1 error) *OrgRepository_List_Call
func (*OrgRepository_List_Call) Run ¶
func (_c *OrgRepository_List_Call) Run(run func(ids []uuid.UUID)) *OrgRepository_List_Call
func (*OrgRepository_List_Call) RunAndReturn ¶
func (_c *OrgRepository_List_Call) RunAndReturn(run func([]uuid.UUID) ([]models.Org, error)) *OrgRepository_List_Call
type OrgRepository_ReadBySlug_Call ¶
OrgRepository_ReadBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadBySlug'
func (*OrgRepository_ReadBySlug_Call) Return ¶
func (_c *OrgRepository_ReadBySlug_Call) Return(_a0 models.Org, _a1 error) *OrgRepository_ReadBySlug_Call
func (*OrgRepository_ReadBySlug_Call) Run ¶
func (_c *OrgRepository_ReadBySlug_Call) Run(run func(slug string)) *OrgRepository_ReadBySlug_Call
func (*OrgRepository_ReadBySlug_Call) RunAndReturn ¶
func (_c *OrgRepository_ReadBySlug_Call) RunAndReturn(run func(string) (models.Org, error)) *OrgRepository_ReadBySlug_Call
type OrgRepository_Read_Call ¶
OrgRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*OrgRepository_Read_Call) Return ¶
func (_c *OrgRepository_Read_Call) Return(_a0 models.Org, _a1 error) *OrgRepository_Read_Call
func (*OrgRepository_Read_Call) Run ¶
func (_c *OrgRepository_Read_Call) Run(run func(id uuid.UUID)) *OrgRepository_Read_Call
func (*OrgRepository_Read_Call) RunAndReturn ¶
func (_c *OrgRepository_Read_Call) RunAndReturn(run func(uuid.UUID) (models.Org, error)) *OrgRepository_Read_Call
type OrgRepository_SaveBatch_Call ¶
OrgRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*OrgRepository_SaveBatch_Call) Return ¶
func (_c *OrgRepository_SaveBatch_Call) Return(_a0 error) *OrgRepository_SaveBatch_Call
func (*OrgRepository_SaveBatch_Call) Run ¶
func (_c *OrgRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, ts []models.Org)) *OrgRepository_SaveBatch_Call
func (*OrgRepository_SaveBatch_Call) RunAndReturn ¶
func (_c *OrgRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Org) error) *OrgRepository_SaveBatch_Call
type OrgRepository_Save_Call ¶
OrgRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*OrgRepository_Save_Call) Return ¶
func (_c *OrgRepository_Save_Call) Return(_a0 error) *OrgRepository_Save_Call
func (*OrgRepository_Save_Call) Run ¶
func (_c *OrgRepository_Save_Call) Run(run func(tx *gorm.DB, t *models.Org)) *OrgRepository_Save_Call
func (*OrgRepository_Save_Call) RunAndReturn ¶
func (_c *OrgRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.Org) error) *OrgRepository_Save_Call
type OrgRepository_Transaction_Call ¶
OrgRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*OrgRepository_Transaction_Call) Return ¶
func (_c *OrgRepository_Transaction_Call) Return(_a0 error) *OrgRepository_Transaction_Call
func (*OrgRepository_Transaction_Call) Run ¶
func (_c *OrgRepository_Transaction_Call) Run(run func(_a0 func(*gorm.DB) error)) *OrgRepository_Transaction_Call
func (*OrgRepository_Transaction_Call) RunAndReturn ¶
func (_c *OrgRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *OrgRepository_Transaction_Call
type PatRepository ¶
PatRepository is an autogenerated mock type for the repository type
func NewPatRepository ¶
func NewPatRepository(t interface {
mock.TestingT
Cleanup(func())
}) *PatRepository
NewPatRepository creates a new instance of PatRepository. 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 (*PatRepository) Begin ¶
func (_m *PatRepository) Begin() *gorm.DB
Begin provides a mock function with given fields:
func (*PatRepository) CreateBatch ¶
CreateBatch provides a mock function with given fields: tx, ts
func (*PatRepository) EXPECT ¶
func (_m *PatRepository) EXPECT() *PatRepository_Expecter
func (*PatRepository) GetByFingerprint ¶
func (_m *PatRepository) GetByFingerprint(fingerprint string) (models.PAT, error)
GetByFingerprint provides a mock function with given fields: fingerprint
func (*PatRepository) GetDB ¶
func (_m *PatRepository) GetDB(tx *gorm.DB) *gorm.DB
GetDB provides a mock function with given fields: tx
func (*PatRepository) GetUserIDByToken ¶
func (_m *PatRepository) GetUserIDByToken(token string) (string, error)
GetUserIDByToken provides a mock function with given fields: token
func (*PatRepository) ListByUserID ¶
func (_m *PatRepository) ListByUserID(userId string) ([]models.PAT, error)
ListByUserID provides a mock function with given fields: userId
func (*PatRepository) ReadByToken ¶
func (_m *PatRepository) ReadByToken(token string) (models.PAT, error)
ReadByToken provides a mock function with given fields: token
func (*PatRepository) Transaction ¶
func (_m *PatRepository) Transaction(_a0 func(*gorm.DB) error) error
Transaction provides a mock function with given fields: _a0
type PatRepository_Begin_Call ¶
PatRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*PatRepository_Begin_Call) Return ¶
func (_c *PatRepository_Begin_Call) Return(_a0 *gorm.DB) *PatRepository_Begin_Call
func (*PatRepository_Begin_Call) Run ¶
func (_c *PatRepository_Begin_Call) Run(run func()) *PatRepository_Begin_Call
func (*PatRepository_Begin_Call) RunAndReturn ¶
func (_c *PatRepository_Begin_Call) RunAndReturn(run func() *gorm.DB) *PatRepository_Begin_Call
type PatRepository_CreateBatch_Call ¶
PatRepository_CreateBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBatch'
func (*PatRepository_CreateBatch_Call) Return ¶
func (_c *PatRepository_CreateBatch_Call) Return(_a0 error) *PatRepository_CreateBatch_Call
func (*PatRepository_CreateBatch_Call) Run ¶
func (_c *PatRepository_CreateBatch_Call) Run(run func(tx *gorm.DB, ts []models.PAT)) *PatRepository_CreateBatch_Call
func (*PatRepository_CreateBatch_Call) RunAndReturn ¶
func (_c *PatRepository_CreateBatch_Call) RunAndReturn(run func(*gorm.DB, []models.PAT) error) *PatRepository_CreateBatch_Call
type PatRepository_Create_Call ¶
PatRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*PatRepository_Create_Call) Return ¶
func (_c *PatRepository_Create_Call) Return(_a0 error) *PatRepository_Create_Call
func (*PatRepository_Create_Call) Run ¶
func (_c *PatRepository_Create_Call) Run(run func(tx *gorm.DB, t *models.PAT)) *PatRepository_Create_Call
func (*PatRepository_Create_Call) RunAndReturn ¶
func (_c *PatRepository_Create_Call) RunAndReturn(run func(*gorm.DB, *models.PAT) error) *PatRepository_Create_Call
type PatRepository_Delete_Call ¶
PatRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*PatRepository_Delete_Call) Return ¶
func (_c *PatRepository_Delete_Call) Return(_a0 error) *PatRepository_Delete_Call
func (*PatRepository_Delete_Call) Run ¶
func (_c *PatRepository_Delete_Call) Run(run func(tx *gorm.DB, id uuid.UUID)) *PatRepository_Delete_Call
func (*PatRepository_Delete_Call) RunAndReturn ¶
func (_c *PatRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *PatRepository_Delete_Call
type PatRepository_Expecter ¶
type PatRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*PatRepository_Expecter) Begin ¶
func (_e *PatRepository_Expecter) Begin() *PatRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*PatRepository_Expecter) Create ¶
func (_e *PatRepository_Expecter) Create(tx interface{}, t interface{}) *PatRepository_Create_Call
Create is a helper method to define mock.On call
- tx *gorm.DB
- t *models.PAT
func (*PatRepository_Expecter) CreateBatch ¶
func (_e *PatRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *PatRepository_CreateBatch_Call
CreateBatch is a helper method to define mock.On call
- tx *gorm.DB
- ts []models.PAT
func (*PatRepository_Expecter) Delete ¶
func (_e *PatRepository_Expecter) Delete(tx interface{}, id interface{}) *PatRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx *gorm.DB
- id uuid.UUID
func (*PatRepository_Expecter) GetByFingerprint ¶
func (_e *PatRepository_Expecter) GetByFingerprint(fingerprint interface{}) *PatRepository_GetByFingerprint_Call
GetByFingerprint is a helper method to define mock.On call
- fingerprint string
func (*PatRepository_Expecter) GetDB ¶
func (_e *PatRepository_Expecter) GetDB(tx interface{}) *PatRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx *gorm.DB
func (*PatRepository_Expecter) GetUserIDByToken ¶
func (_e *PatRepository_Expecter) GetUserIDByToken(token interface{}) *PatRepository_GetUserIDByToken_Call
GetUserIDByToken is a helper method to define mock.On call
- token string
func (*PatRepository_Expecter) List ¶
func (_e *PatRepository_Expecter) List(ids interface{}) *PatRepository_List_Call
List is a helper method to define mock.On call
- ids []uuid.UUID
func (*PatRepository_Expecter) ListByUserID ¶
func (_e *PatRepository_Expecter) ListByUserID(userId interface{}) *PatRepository_ListByUserID_Call
ListByUserID is a helper method to define mock.On call
- userId string
func (*PatRepository_Expecter) Read ¶
func (_e *PatRepository_Expecter) Read(id interface{}) *PatRepository_Read_Call
Read is a helper method to define mock.On call
- id uuid.UUID
func (*PatRepository_Expecter) ReadByToken ¶
func (_e *PatRepository_Expecter) ReadByToken(token interface{}) *PatRepository_ReadByToken_Call
ReadByToken is a helper method to define mock.On call
- token string
func (*PatRepository_Expecter) Save ¶
func (_e *PatRepository_Expecter) Save(tx interface{}, t interface{}) *PatRepository_Save_Call
Save is a helper method to define mock.On call
- tx *gorm.DB
- t *models.PAT
func (*PatRepository_Expecter) SaveBatch ¶
func (_e *PatRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *PatRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx *gorm.DB
- ts []models.PAT
func (*PatRepository_Expecter) Transaction ¶
func (_e *PatRepository_Expecter) Transaction(_a0 interface{}) *PatRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- _a0 func(*gorm.DB) error
type PatRepository_GetByFingerprint_Call ¶
PatRepository_GetByFingerprint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByFingerprint'
func (*PatRepository_GetByFingerprint_Call) Return ¶
func (_c *PatRepository_GetByFingerprint_Call) Return(_a0 models.PAT, _a1 error) *PatRepository_GetByFingerprint_Call
func (*PatRepository_GetByFingerprint_Call) Run ¶
func (_c *PatRepository_GetByFingerprint_Call) Run(run func(fingerprint string)) *PatRepository_GetByFingerprint_Call
func (*PatRepository_GetByFingerprint_Call) RunAndReturn ¶
func (_c *PatRepository_GetByFingerprint_Call) RunAndReturn(run func(string) (models.PAT, error)) *PatRepository_GetByFingerprint_Call
type PatRepository_GetDB_Call ¶
PatRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*PatRepository_GetDB_Call) Return ¶
func (_c *PatRepository_GetDB_Call) Return(_a0 *gorm.DB) *PatRepository_GetDB_Call
func (*PatRepository_GetDB_Call) Run ¶
func (_c *PatRepository_GetDB_Call) Run(run func(tx *gorm.DB)) *PatRepository_GetDB_Call
func (*PatRepository_GetDB_Call) RunAndReturn ¶
func (_c *PatRepository_GetDB_Call) RunAndReturn(run func(*gorm.DB) *gorm.DB) *PatRepository_GetDB_Call
type PatRepository_GetUserIDByToken_Call ¶
PatRepository_GetUserIDByToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserIDByToken'
func (*PatRepository_GetUserIDByToken_Call) Return ¶
func (_c *PatRepository_GetUserIDByToken_Call) Return(_a0 string, _a1 error) *PatRepository_GetUserIDByToken_Call
func (*PatRepository_GetUserIDByToken_Call) Run ¶
func (_c *PatRepository_GetUserIDByToken_Call) Run(run func(token string)) *PatRepository_GetUserIDByToken_Call
func (*PatRepository_GetUserIDByToken_Call) RunAndReturn ¶
func (_c *PatRepository_GetUserIDByToken_Call) RunAndReturn(run func(string) (string, error)) *PatRepository_GetUserIDByToken_Call
type PatRepository_ListByUserID_Call ¶
PatRepository_ListByUserID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByUserID'
func (*PatRepository_ListByUserID_Call) Return ¶
func (_c *PatRepository_ListByUserID_Call) Return(_a0 []models.PAT, _a1 error) *PatRepository_ListByUserID_Call
func (*PatRepository_ListByUserID_Call) Run ¶
func (_c *PatRepository_ListByUserID_Call) Run(run func(userId string)) *PatRepository_ListByUserID_Call
func (*PatRepository_ListByUserID_Call) RunAndReturn ¶
func (_c *PatRepository_ListByUserID_Call) RunAndReturn(run func(string) ([]models.PAT, error)) *PatRepository_ListByUserID_Call
type PatRepository_List_Call ¶
PatRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*PatRepository_List_Call) Return ¶
func (_c *PatRepository_List_Call) Return(_a0 []models.PAT, _a1 error) *PatRepository_List_Call
func (*PatRepository_List_Call) Run ¶
func (_c *PatRepository_List_Call) Run(run func(ids []uuid.UUID)) *PatRepository_List_Call
func (*PatRepository_List_Call) RunAndReturn ¶
func (_c *PatRepository_List_Call) RunAndReturn(run func([]uuid.UUID) ([]models.PAT, error)) *PatRepository_List_Call
type PatRepository_ReadByToken_Call ¶
PatRepository_ReadByToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadByToken'
func (*PatRepository_ReadByToken_Call) Return ¶
func (_c *PatRepository_ReadByToken_Call) Return(_a0 models.PAT, _a1 error) *PatRepository_ReadByToken_Call
func (*PatRepository_ReadByToken_Call) Run ¶
func (_c *PatRepository_ReadByToken_Call) Run(run func(token string)) *PatRepository_ReadByToken_Call
func (*PatRepository_ReadByToken_Call) RunAndReturn ¶
func (_c *PatRepository_ReadByToken_Call) RunAndReturn(run func(string) (models.PAT, error)) *PatRepository_ReadByToken_Call
type PatRepository_Read_Call ¶
PatRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*PatRepository_Read_Call) Return ¶
func (_c *PatRepository_Read_Call) Return(_a0 models.PAT, _a1 error) *PatRepository_Read_Call
func (*PatRepository_Read_Call) Run ¶
func (_c *PatRepository_Read_Call) Run(run func(id uuid.UUID)) *PatRepository_Read_Call
func (*PatRepository_Read_Call) RunAndReturn ¶
func (_c *PatRepository_Read_Call) RunAndReturn(run func(uuid.UUID) (models.PAT, error)) *PatRepository_Read_Call
type PatRepository_SaveBatch_Call ¶
PatRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*PatRepository_SaveBatch_Call) Return ¶
func (_c *PatRepository_SaveBatch_Call) Return(_a0 error) *PatRepository_SaveBatch_Call
func (*PatRepository_SaveBatch_Call) Run ¶
func (_c *PatRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, ts []models.PAT)) *PatRepository_SaveBatch_Call
func (*PatRepository_SaveBatch_Call) RunAndReturn ¶
func (_c *PatRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.PAT) error) *PatRepository_SaveBatch_Call
type PatRepository_Save_Call ¶
PatRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*PatRepository_Save_Call) Return ¶
func (_c *PatRepository_Save_Call) Return(_a0 error) *PatRepository_Save_Call
func (*PatRepository_Save_Call) Run ¶
func (_c *PatRepository_Save_Call) Run(run func(tx *gorm.DB, t *models.PAT)) *PatRepository_Save_Call
func (*PatRepository_Save_Call) RunAndReturn ¶
func (_c *PatRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.PAT) error) *PatRepository_Save_Call
type PatRepository_Transaction_Call ¶
PatRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*PatRepository_Transaction_Call) Return ¶
func (_c *PatRepository_Transaction_Call) Return(_a0 error) *PatRepository_Transaction_Call
func (*PatRepository_Transaction_Call) Run ¶
func (_c *PatRepository_Transaction_Call) Run(run func(_a0 func(*gorm.DB) error)) *PatRepository_Transaction_Call
func (*PatRepository_Transaction_Call) RunAndReturn ¶
func (_c *PatRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *PatRepository_Transaction_Call
type ProjectAssetRepository ¶
ProjectAssetRepository is an autogenerated mock type for the assetRepository type
func NewProjectAssetRepository ¶
func NewProjectAssetRepository(t interface {
mock.TestingT
Cleanup(func())
}) *ProjectAssetRepository
NewProjectAssetRepository creates a new instance of ProjectAssetRepository. 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 (*ProjectAssetRepository) EXPECT ¶
func (_m *ProjectAssetRepository) EXPECT() *ProjectAssetRepository_Expecter
func (*ProjectAssetRepository) GetByProjectID ¶
GetByProjectID provides a mock function with given fields: projectID
type ProjectAssetRepository_Expecter ¶
type ProjectAssetRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ProjectAssetRepository_Expecter) GetByProjectID ¶
func (_e *ProjectAssetRepository_Expecter) GetByProjectID(projectID interface{}) *ProjectAssetRepository_GetByProjectID_Call
GetByProjectID is a helper method to define mock.On call
- projectID uuid.UUID
type ProjectAssetRepository_GetByProjectID_Call ¶
ProjectAssetRepository_GetByProjectID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByProjectID'
func (*ProjectAssetRepository_GetByProjectID_Call) Return ¶
func (_c *ProjectAssetRepository_GetByProjectID_Call) Return(_a0 []models.Asset, _a1 error) *ProjectAssetRepository_GetByProjectID_Call
func (*ProjectAssetRepository_GetByProjectID_Call) Run ¶
func (_c *ProjectAssetRepository_GetByProjectID_Call) Run(run func(projectID uuid.UUID)) *ProjectAssetRepository_GetByProjectID_Call
func (*ProjectAssetRepository_GetByProjectID_Call) RunAndReturn ¶
func (_c *ProjectAssetRepository_GetByProjectID_Call) RunAndReturn(run func(uuid.UUID) ([]models.Asset, error)) *ProjectAssetRepository_GetByProjectID_Call
type ProjectProjectRepository ¶
ProjectProjectRepository is an autogenerated mock type for the projectRepository type
func NewProjectProjectRepository ¶
func NewProjectProjectRepository(t interface {
mock.TestingT
Cleanup(func())
}) *ProjectProjectRepository
NewProjectProjectRepository creates a new instance of ProjectProjectRepository. 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 (*ProjectProjectRepository) Begin ¶
func (_m *ProjectProjectRepository) Begin() *gorm.DB
Begin provides a mock function with given fields:
func (*ProjectProjectRepository) CreateBatch ¶
CreateBatch provides a mock function with given fields: tx, ts
func (*ProjectProjectRepository) EXPECT ¶
func (_m *ProjectProjectRepository) EXPECT() *ProjectProjectRepository_Expecter
func (*ProjectProjectRepository) GetDB ¶
func (_m *ProjectProjectRepository) GetDB(tx *gorm.DB) *gorm.DB
GetDB provides a mock function with given fields: tx
func (*ProjectProjectRepository) ReadBySlug ¶
func (_m *ProjectProjectRepository) ReadBySlug(organizationID uuid.UUID, slug string) (models.Project, error)
ReadBySlug provides a mock function with given fields: organizationID, slug
func (*ProjectProjectRepository) SaveBatch ¶
SaveBatch provides a mock function with given fields: tx, ts
func (*ProjectProjectRepository) Transaction ¶
func (_m *ProjectProjectRepository) Transaction(_a0 func(*gorm.DB) error) error
Transaction provides a mock function with given fields: _a0
type ProjectProjectRepository_Begin_Call ¶
ProjectProjectRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*ProjectProjectRepository_Begin_Call) Return ¶
func (_c *ProjectProjectRepository_Begin_Call) Return(_a0 *gorm.DB) *ProjectProjectRepository_Begin_Call
func (*ProjectProjectRepository_Begin_Call) Run ¶
func (_c *ProjectProjectRepository_Begin_Call) Run(run func()) *ProjectProjectRepository_Begin_Call
func (*ProjectProjectRepository_Begin_Call) RunAndReturn ¶
func (_c *ProjectProjectRepository_Begin_Call) RunAndReturn(run func() *gorm.DB) *ProjectProjectRepository_Begin_Call
type ProjectProjectRepository_CreateBatch_Call ¶
ProjectProjectRepository_CreateBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBatch'
func (*ProjectProjectRepository_CreateBatch_Call) Return ¶
func (_c *ProjectProjectRepository_CreateBatch_Call) Return(_a0 error) *ProjectProjectRepository_CreateBatch_Call
func (*ProjectProjectRepository_CreateBatch_Call) Run ¶
func (_c *ProjectProjectRepository_CreateBatch_Call) Run(run func(tx *gorm.DB, ts []models.Project)) *ProjectProjectRepository_CreateBatch_Call
func (*ProjectProjectRepository_CreateBatch_Call) RunAndReturn ¶
func (_c *ProjectProjectRepository_CreateBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Project) error) *ProjectProjectRepository_CreateBatch_Call
type ProjectProjectRepository_Create_Call ¶
ProjectProjectRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ProjectProjectRepository_Create_Call) Return ¶
func (_c *ProjectProjectRepository_Create_Call) Return(_a0 error) *ProjectProjectRepository_Create_Call
func (*ProjectProjectRepository_Create_Call) Run ¶
func (_c *ProjectProjectRepository_Create_Call) Run(run func(tx *gorm.DB, t *models.Project)) *ProjectProjectRepository_Create_Call
func (*ProjectProjectRepository_Create_Call) RunAndReturn ¶
func (_c *ProjectProjectRepository_Create_Call) RunAndReturn(run func(*gorm.DB, *models.Project) error) *ProjectProjectRepository_Create_Call
type ProjectProjectRepository_Delete_Call ¶
ProjectProjectRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*ProjectProjectRepository_Delete_Call) Return ¶
func (_c *ProjectProjectRepository_Delete_Call) Return(_a0 error) *ProjectProjectRepository_Delete_Call
func (*ProjectProjectRepository_Delete_Call) Run ¶
func (_c *ProjectProjectRepository_Delete_Call) Run(run func(tx *gorm.DB, id uuid.UUID)) *ProjectProjectRepository_Delete_Call
func (*ProjectProjectRepository_Delete_Call) RunAndReturn ¶
func (_c *ProjectProjectRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *ProjectProjectRepository_Delete_Call
type ProjectProjectRepository_Expecter ¶
type ProjectProjectRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ProjectProjectRepository_Expecter) Begin ¶
func (_e *ProjectProjectRepository_Expecter) Begin() *ProjectProjectRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*ProjectProjectRepository_Expecter) Create ¶
func (_e *ProjectProjectRepository_Expecter) Create(tx interface{}, t interface{}) *ProjectProjectRepository_Create_Call
Create is a helper method to define mock.On call
- tx *gorm.DB
- t *models.Project
func (*ProjectProjectRepository_Expecter) CreateBatch ¶
func (_e *ProjectProjectRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *ProjectProjectRepository_CreateBatch_Call
CreateBatch is a helper method to define mock.On call
- tx *gorm.DB
- ts []models.Project
func (*ProjectProjectRepository_Expecter) Delete ¶
func (_e *ProjectProjectRepository_Expecter) Delete(tx interface{}, id interface{}) *ProjectProjectRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx *gorm.DB
- id uuid.UUID
func (*ProjectProjectRepository_Expecter) GetDB ¶
func (_e *ProjectProjectRepository_Expecter) GetDB(tx interface{}) *ProjectProjectRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx *gorm.DB
func (*ProjectProjectRepository_Expecter) List ¶
func (_e *ProjectProjectRepository_Expecter) List(ids interface{}) *ProjectProjectRepository_List_Call
List is a helper method to define mock.On call
- ids []uuid.UUID
func (*ProjectProjectRepository_Expecter) Read ¶
func (_e *ProjectProjectRepository_Expecter) Read(id interface{}) *ProjectProjectRepository_Read_Call
Read is a helper method to define mock.On call
- id uuid.UUID
func (*ProjectProjectRepository_Expecter) ReadBySlug ¶
func (_e *ProjectProjectRepository_Expecter) ReadBySlug(organizationID interface{}, slug interface{}) *ProjectProjectRepository_ReadBySlug_Call
ReadBySlug is a helper method to define mock.On call
- organizationID uuid.UUID
- slug string
func (*ProjectProjectRepository_Expecter) Save ¶
func (_e *ProjectProjectRepository_Expecter) Save(tx interface{}, t interface{}) *ProjectProjectRepository_Save_Call
Save is a helper method to define mock.On call
- tx *gorm.DB
- t *models.Project
func (*ProjectProjectRepository_Expecter) SaveBatch ¶
func (_e *ProjectProjectRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *ProjectProjectRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx *gorm.DB
- ts []models.Project
func (*ProjectProjectRepository_Expecter) Transaction ¶
func (_e *ProjectProjectRepository_Expecter) Transaction(_a0 interface{}) *ProjectProjectRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- _a0 func(*gorm.DB) error
func (*ProjectProjectRepository_Expecter) Update ¶ added in v0.5.1
func (_e *ProjectProjectRepository_Expecter) Update(tx interface{}, _a1 interface{}) *ProjectProjectRepository_Update_Call
Update is a helper method to define mock.On call
- tx *gorm.DB
- _a1 *models.Project
type ProjectProjectRepository_GetDB_Call ¶
ProjectProjectRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*ProjectProjectRepository_GetDB_Call) Return ¶
func (_c *ProjectProjectRepository_GetDB_Call) Return(_a0 *gorm.DB) *ProjectProjectRepository_GetDB_Call
func (*ProjectProjectRepository_GetDB_Call) Run ¶
func (_c *ProjectProjectRepository_GetDB_Call) Run(run func(tx *gorm.DB)) *ProjectProjectRepository_GetDB_Call
func (*ProjectProjectRepository_GetDB_Call) RunAndReturn ¶
func (_c *ProjectProjectRepository_GetDB_Call) RunAndReturn(run func(*gorm.DB) *gorm.DB) *ProjectProjectRepository_GetDB_Call
type ProjectProjectRepository_List_Call ¶
ProjectProjectRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ProjectProjectRepository_List_Call) Return ¶
func (_c *ProjectProjectRepository_List_Call) Return(_a0 []models.Project, _a1 error) *ProjectProjectRepository_List_Call
func (*ProjectProjectRepository_List_Call) Run ¶
func (_c *ProjectProjectRepository_List_Call) Run(run func(ids []uuid.UUID)) *ProjectProjectRepository_List_Call
func (*ProjectProjectRepository_List_Call) RunAndReturn ¶
func (_c *ProjectProjectRepository_List_Call) RunAndReturn(run func([]uuid.UUID) ([]models.Project, error)) *ProjectProjectRepository_List_Call
type ProjectProjectRepository_ReadBySlug_Call ¶
ProjectProjectRepository_ReadBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadBySlug'
func (*ProjectProjectRepository_ReadBySlug_Call) Return ¶
func (_c *ProjectProjectRepository_ReadBySlug_Call) Return(_a0 models.Project, _a1 error) *ProjectProjectRepository_ReadBySlug_Call
func (*ProjectProjectRepository_ReadBySlug_Call) Run ¶
func (_c *ProjectProjectRepository_ReadBySlug_Call) Run(run func(organizationID uuid.UUID, slug string)) *ProjectProjectRepository_ReadBySlug_Call
func (*ProjectProjectRepository_ReadBySlug_Call) RunAndReturn ¶
func (_c *ProjectProjectRepository_ReadBySlug_Call) RunAndReturn(run func(uuid.UUID, string) (models.Project, error)) *ProjectProjectRepository_ReadBySlug_Call
type ProjectProjectRepository_Read_Call ¶
ProjectProjectRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*ProjectProjectRepository_Read_Call) Return ¶
func (_c *ProjectProjectRepository_Read_Call) Return(_a0 models.Project, _a1 error) *ProjectProjectRepository_Read_Call
func (*ProjectProjectRepository_Read_Call) Run ¶
func (_c *ProjectProjectRepository_Read_Call) Run(run func(id uuid.UUID)) *ProjectProjectRepository_Read_Call
func (*ProjectProjectRepository_Read_Call) RunAndReturn ¶
func (_c *ProjectProjectRepository_Read_Call) RunAndReturn(run func(uuid.UUID) (models.Project, error)) *ProjectProjectRepository_Read_Call
type ProjectProjectRepository_SaveBatch_Call ¶
ProjectProjectRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*ProjectProjectRepository_SaveBatch_Call) Return ¶
func (_c *ProjectProjectRepository_SaveBatch_Call) Return(_a0 error) *ProjectProjectRepository_SaveBatch_Call
func (*ProjectProjectRepository_SaveBatch_Call) Run ¶
func (_c *ProjectProjectRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, ts []models.Project)) *ProjectProjectRepository_SaveBatch_Call
func (*ProjectProjectRepository_SaveBatch_Call) RunAndReturn ¶
func (_c *ProjectProjectRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Project) error) *ProjectProjectRepository_SaveBatch_Call
type ProjectProjectRepository_Save_Call ¶
ProjectProjectRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*ProjectProjectRepository_Save_Call) Return ¶
func (_c *ProjectProjectRepository_Save_Call) Return(_a0 error) *ProjectProjectRepository_Save_Call
func (*ProjectProjectRepository_Save_Call) Run ¶
func (_c *ProjectProjectRepository_Save_Call) Run(run func(tx *gorm.DB, t *models.Project)) *ProjectProjectRepository_Save_Call
func (*ProjectProjectRepository_Save_Call) RunAndReturn ¶
func (_c *ProjectProjectRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.Project) error) *ProjectProjectRepository_Save_Call
type ProjectProjectRepository_Transaction_Call ¶
ProjectProjectRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*ProjectProjectRepository_Transaction_Call) Return ¶
func (_c *ProjectProjectRepository_Transaction_Call) Return(_a0 error) *ProjectProjectRepository_Transaction_Call
func (*ProjectProjectRepository_Transaction_Call) Run ¶
func (_c *ProjectProjectRepository_Transaction_Call) Run(run func(_a0 func(*gorm.DB) error)) *ProjectProjectRepository_Transaction_Call
func (*ProjectProjectRepository_Transaction_Call) RunAndReturn ¶
func (_c *ProjectProjectRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *ProjectProjectRepository_Transaction_Call
type ProjectProjectRepository_Update_Call ¶ added in v0.5.1
ProjectProjectRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*ProjectProjectRepository_Update_Call) Return ¶ added in v0.5.1
func (_c *ProjectProjectRepository_Update_Call) Return(_a0 error) *ProjectProjectRepository_Update_Call
func (*ProjectProjectRepository_Update_Call) Run ¶ added in v0.5.1
func (_c *ProjectProjectRepository_Update_Call) Run(run func(tx *gorm.DB, _a1 *models.Project)) *ProjectProjectRepository_Update_Call
func (*ProjectProjectRepository_Update_Call) RunAndReturn ¶ added in v0.5.1
func (_c *ProjectProjectRepository_Update_Call) RunAndReturn(run func(*gorm.DB, *models.Project) error) *ProjectProjectRepository_Update_Call
type RiskCvssInterface ¶
RiskCvssInterface is an autogenerated mock type for the cvssInterface type
func NewRiskCvssInterface ¶
func NewRiskCvssInterface(t interface {
mock.TestingT
Cleanup(func())
}) *RiskCvssInterface
NewRiskCvssInterface creates a new instance of RiskCvssInterface. 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 (*RiskCvssInterface) EXPECT ¶
func (_m *RiskCvssInterface) EXPECT() *RiskCvssInterface_Expecter
func (*RiskCvssInterface) EnvironmentalScore ¶
func (_m *RiskCvssInterface) EnvironmentalScore() float64
EnvironmentalScore provides a mock function with given fields:
func (*RiskCvssInterface) Get ¶
func (_m *RiskCvssInterface) Get(key string) (string, error)
Get provides a mock function with given fields: key
func (*RiskCvssInterface) Set ¶
func (_m *RiskCvssInterface) Set(key string, value string) error
Set provides a mock function with given fields: key, value
func (*RiskCvssInterface) TemporalScore ¶
func (_m *RiskCvssInterface) TemporalScore() float64
TemporalScore provides a mock function with given fields:
func (*RiskCvssInterface) Vector ¶
func (_m *RiskCvssInterface) Vector() string
Vector provides a mock function with given fields:
type RiskCvssInterface_EnvironmentalScore_Call ¶
RiskCvssInterface_EnvironmentalScore_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnvironmentalScore'
func (*RiskCvssInterface_EnvironmentalScore_Call) Return ¶
func (_c *RiskCvssInterface_EnvironmentalScore_Call) Return(_a0 float64) *RiskCvssInterface_EnvironmentalScore_Call
func (*RiskCvssInterface_EnvironmentalScore_Call) Run ¶
func (_c *RiskCvssInterface_EnvironmentalScore_Call) Run(run func()) *RiskCvssInterface_EnvironmentalScore_Call
func (*RiskCvssInterface_EnvironmentalScore_Call) RunAndReturn ¶
func (_c *RiskCvssInterface_EnvironmentalScore_Call) RunAndReturn(run func() float64) *RiskCvssInterface_EnvironmentalScore_Call
type RiskCvssInterface_Expecter ¶
type RiskCvssInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*RiskCvssInterface_Expecter) EnvironmentalScore ¶
func (_e *RiskCvssInterface_Expecter) EnvironmentalScore() *RiskCvssInterface_EnvironmentalScore_Call
EnvironmentalScore is a helper method to define mock.On call
func (*RiskCvssInterface_Expecter) Get ¶
func (_e *RiskCvssInterface_Expecter) Get(key interface{}) *RiskCvssInterface_Get_Call
Get is a helper method to define mock.On call
- key string
func (*RiskCvssInterface_Expecter) Set ¶
func (_e *RiskCvssInterface_Expecter) Set(key interface{}, value interface{}) *RiskCvssInterface_Set_Call
Set is a helper method to define mock.On call
- key string
- value string
func (*RiskCvssInterface_Expecter) TemporalScore ¶
func (_e *RiskCvssInterface_Expecter) TemporalScore() *RiskCvssInterface_TemporalScore_Call
TemporalScore is a helper method to define mock.On call
func (*RiskCvssInterface_Expecter) Vector ¶
func (_e *RiskCvssInterface_Expecter) Vector() *RiskCvssInterface_Vector_Call
Vector is a helper method to define mock.On call
type RiskCvssInterface_Get_Call ¶
RiskCvssInterface_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*RiskCvssInterface_Get_Call) Return ¶
func (_c *RiskCvssInterface_Get_Call) Return(_a0 string, _a1 error) *RiskCvssInterface_Get_Call
func (*RiskCvssInterface_Get_Call) Run ¶
func (_c *RiskCvssInterface_Get_Call) Run(run func(key string)) *RiskCvssInterface_Get_Call
func (*RiskCvssInterface_Get_Call) RunAndReturn ¶
func (_c *RiskCvssInterface_Get_Call) RunAndReturn(run func(string) (string, error)) *RiskCvssInterface_Get_Call
type RiskCvssInterface_Set_Call ¶
RiskCvssInterface_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
func (*RiskCvssInterface_Set_Call) Return ¶
func (_c *RiskCvssInterface_Set_Call) Return(_a0 error) *RiskCvssInterface_Set_Call
func (*RiskCvssInterface_Set_Call) Run ¶
func (_c *RiskCvssInterface_Set_Call) Run(run func(key string, value string)) *RiskCvssInterface_Set_Call
func (*RiskCvssInterface_Set_Call) RunAndReturn ¶
func (_c *RiskCvssInterface_Set_Call) RunAndReturn(run func(string, string) error) *RiskCvssInterface_Set_Call
type RiskCvssInterface_TemporalScore_Call ¶
RiskCvssInterface_TemporalScore_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TemporalScore'
func (*RiskCvssInterface_TemporalScore_Call) Return ¶
func (_c *RiskCvssInterface_TemporalScore_Call) Return(_a0 float64) *RiskCvssInterface_TemporalScore_Call
func (*RiskCvssInterface_TemporalScore_Call) Run ¶
func (_c *RiskCvssInterface_TemporalScore_Call) Run(run func()) *RiskCvssInterface_TemporalScore_Call
func (*RiskCvssInterface_TemporalScore_Call) RunAndReturn ¶
func (_c *RiskCvssInterface_TemporalScore_Call) RunAndReturn(run func() float64) *RiskCvssInterface_TemporalScore_Call
type RiskCvssInterface_Vector_Call ¶
RiskCvssInterface_Vector_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Vector'
func (*RiskCvssInterface_Vector_Call) Return ¶
func (_c *RiskCvssInterface_Vector_Call) Return(_a0 string) *RiskCvssInterface_Vector_Call
func (*RiskCvssInterface_Vector_Call) Run ¶
func (_c *RiskCvssInterface_Vector_Call) Run(run func()) *RiskCvssInterface_Vector_Call
func (*RiskCvssInterface_Vector_Call) RunAndReturn ¶
func (_c *RiskCvssInterface_Vector_Call) RunAndReturn(run func() string) *RiskCvssInterface_Vector_Call
type ScanAssetService ¶
ScanAssetService is an autogenerated mock type for the assetService type
func NewScanAssetService ¶
func NewScanAssetService(t interface {
mock.TestingT
Cleanup(func())
}) *ScanAssetService
NewScanAssetService creates a new instance of ScanAssetService. 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 (*ScanAssetService) EXPECT ¶
func (_m *ScanAssetService) EXPECT() *ScanAssetService_Expecter
func (*ScanAssetService) HandleScanResult ¶
func (_m *ScanAssetService) HandleScanResult(asset models.Asset, vulns []models.VulnInPackage, scanType string, version string, scannerID string, userID string) (int, int, []models.Flaw, error)
HandleScanResult provides a mock function with given fields: asset, vulns, scanType, version, scannerID, userID
func (*ScanAssetService) UpdateSBOM ¶
func (_m *ScanAssetService) UpdateSBOM(asset models.Asset, scanType string, version string, sbom normalize.SBOM) error
UpdateSBOM provides a mock function with given fields: asset, scanType, version, sbom
type ScanAssetService_Expecter ¶
type ScanAssetService_Expecter struct {
// contains filtered or unexported fields
}
func (*ScanAssetService_Expecter) HandleScanResult ¶
func (_e *ScanAssetService_Expecter) HandleScanResult(asset interface{}, vulns interface{}, scanType interface{}, version interface{}, scannerID interface{}, userID interface{}) *ScanAssetService_HandleScanResult_Call
HandleScanResult is a helper method to define mock.On call
- asset models.Asset
- vulns []models.VulnInPackage
- scanType string
- version string
- scannerID string
- userID string
func (*ScanAssetService_Expecter) UpdateSBOM ¶
func (_e *ScanAssetService_Expecter) UpdateSBOM(asset interface{}, scanType interface{}, version interface{}, sbom interface{}) *ScanAssetService_UpdateSBOM_Call
UpdateSBOM is a helper method to define mock.On call
- asset models.Asset
- scanType string
- version string
- sbom normalize.SBOM
type ScanAssetService_HandleScanResult_Call ¶
ScanAssetService_HandleScanResult_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleScanResult'
func (*ScanAssetService_HandleScanResult_Call) Return ¶
func (_c *ScanAssetService_HandleScanResult_Call) Return(amountOpened int, amountClose int, newState []models.Flaw, err error) *ScanAssetService_HandleScanResult_Call
func (*ScanAssetService_HandleScanResult_Call) Run ¶
func (_c *ScanAssetService_HandleScanResult_Call) Run(run func(asset models.Asset, vulns []models.VulnInPackage, scanType string, version string, scannerID string, userID string)) *ScanAssetService_HandleScanResult_Call
func (*ScanAssetService_HandleScanResult_Call) RunAndReturn ¶
func (_c *ScanAssetService_HandleScanResult_Call) RunAndReturn(run func(models.Asset, []models.VulnInPackage, string, string, string, string) (int, int, []models.Flaw, error)) *ScanAssetService_HandleScanResult_Call
type ScanAssetService_UpdateSBOM_Call ¶
ScanAssetService_UpdateSBOM_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSBOM'
func (*ScanAssetService_UpdateSBOM_Call) Return ¶
func (_c *ScanAssetService_UpdateSBOM_Call) Return(_a0 error) *ScanAssetService_UpdateSBOM_Call
func (*ScanAssetService_UpdateSBOM_Call) Run ¶
func (_c *ScanAssetService_UpdateSBOM_Call) Run(run func(asset models.Asset, scanType string, version string, sbom normalize.SBOM)) *ScanAssetService_UpdateSBOM_Call
func (*ScanAssetService_UpdateSBOM_Call) RunAndReturn ¶
func (_c *ScanAssetService_UpdateSBOM_Call) RunAndReturn(run func(models.Asset, string, string, normalize.SBOM) error) *ScanAssetService_UpdateSBOM_Call
type ScanComparer ¶
ScanComparer is an autogenerated mock type for the comparer type
func NewScanComparer ¶
func NewScanComparer(t interface {
mock.TestingT
Cleanup(func())
}) *ScanComparer
NewScanComparer creates a new instance of ScanComparer. 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 (*ScanComparer) EXPECT ¶
func (_m *ScanComparer) EXPECT() *ScanComparer_Expecter
func (*ScanComparer) GetVulns ¶
func (_m *ScanComparer) GetVulns(purl string, notASemverVersion string, componentType string) ([]models.VulnInPackage, error)
GetVulns provides a mock function with given fields: purl, notASemverVersion, componentType
type ScanComparer_Expecter ¶
type ScanComparer_Expecter struct {
// contains filtered or unexported fields
}
func (*ScanComparer_Expecter) GetVulns ¶
func (_e *ScanComparer_Expecter) GetVulns(purl interface{}, notASemverVersion interface{}, componentType interface{}) *ScanComparer_GetVulns_Call
GetVulns is a helper method to define mock.On call
- purl string
- notASemverVersion string
- componentType string
type ScanComparer_GetVulns_Call ¶
ScanComparer_GetVulns_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVulns'
func (*ScanComparer_GetVulns_Call) Return ¶
func (_c *ScanComparer_GetVulns_Call) Return(_a0 []models.VulnInPackage, _a1 error) *ScanComparer_GetVulns_Call
func (*ScanComparer_GetVulns_Call) Run ¶
func (_c *ScanComparer_GetVulns_Call) Run(run func(purl string, notASemverVersion string, componentType string)) *ScanComparer_GetVulns_Call
func (*ScanComparer_GetVulns_Call) RunAndReturn ¶
func (_c *ScanComparer_GetVulns_Call) RunAndReturn(run func(string, string, string) ([]models.VulnInPackage, error)) *ScanComparer_GetVulns_Call
type ScanComponentRepository ¶
ScanComponentRepository is an autogenerated mock type for the componentRepository type
func NewScanComponentRepository ¶
func NewScanComponentRepository(t interface {
mock.TestingT
Cleanup(func())
}) *ScanComponentRepository
NewScanComponentRepository creates a new instance of ScanComponentRepository. 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 (*ScanComponentRepository) EXPECT ¶
func (_m *ScanComponentRepository) EXPECT() *ScanComponentRepository_Expecter
func (*ScanComponentRepository) LoadAssetComponents ¶ added in v0.5.1
func (_m *ScanComponentRepository) LoadAssetComponents(tx *gorm.DB, asset models.Asset, scanType string, version string) ([]models.ComponentDependency, error)
LoadAssetComponents provides a mock function with given fields: tx, asset, scanType, version
type ScanComponentRepository_Expecter ¶
type ScanComponentRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ScanComponentRepository_Expecter) LoadAssetComponents ¶ added in v0.5.1
func (_e *ScanComponentRepository_Expecter) LoadAssetComponents(tx interface{}, asset interface{}, scanType interface{}, version interface{}) *ScanComponentRepository_LoadAssetComponents_Call
LoadAssetComponents is a helper method to define mock.On call
- tx *gorm.DB
- asset models.Asset
- scanType string
- version string
func (*ScanComponentRepository_Expecter) SaveBatch ¶
func (_e *ScanComponentRepository_Expecter) SaveBatch(tx interface{}, components interface{}) *ScanComponentRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx *gorm.DB
- components []models.Component
type ScanComponentRepository_LoadAssetComponents_Call ¶ added in v0.5.1
ScanComponentRepository_LoadAssetComponents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadAssetComponents'
func (*ScanComponentRepository_LoadAssetComponents_Call) Return ¶ added in v0.5.1
func (_c *ScanComponentRepository_LoadAssetComponents_Call) Return(_a0 []models.ComponentDependency, _a1 error) *ScanComponentRepository_LoadAssetComponents_Call
func (*ScanComponentRepository_LoadAssetComponents_Call) Run ¶ added in v0.5.1
func (_c *ScanComponentRepository_LoadAssetComponents_Call) Run(run func(tx *gorm.DB, asset models.Asset, scanType string, version string)) *ScanComponentRepository_LoadAssetComponents_Call
func (*ScanComponentRepository_LoadAssetComponents_Call) RunAndReturn ¶ added in v0.5.1
func (_c *ScanComponentRepository_LoadAssetComponents_Call) RunAndReturn(run func(*gorm.DB, models.Asset, string, string) ([]models.ComponentDependency, error)) *ScanComponentRepository_LoadAssetComponents_Call
type ScanComponentRepository_SaveBatch_Call ¶
ScanComponentRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*ScanComponentRepository_SaveBatch_Call) Return ¶
func (_c *ScanComponentRepository_SaveBatch_Call) Return(_a0 error) *ScanComponentRepository_SaveBatch_Call
func (*ScanComponentRepository_SaveBatch_Call) Run ¶
func (_c *ScanComponentRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, components []models.Component)) *ScanComponentRepository_SaveBatch_Call
func (*ScanComponentRepository_SaveBatch_Call) RunAndReturn ¶
func (_c *ScanComponentRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Component) error) *ScanComponentRepository_SaveBatch_Call
type ScanCveRepository ¶
ScanCveRepository is an autogenerated mock type for the cveRepository type
func NewScanCveRepository ¶
func NewScanCveRepository(t interface {
mock.TestingT
Cleanup(func())
}) *ScanCveRepository
NewScanCveRepository creates a new instance of ScanCveRepository. 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 (*ScanCveRepository) EXPECT ¶
func (_m *ScanCveRepository) EXPECT() *ScanCveRepository_Expecter
type ScanCveRepository_Expecter ¶
type ScanCveRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ScanCveRepository_Expecter) FindAll ¶
func (_e *ScanCveRepository_Expecter) FindAll(cveIDs interface{}) *ScanCveRepository_FindAll_Call
FindAll is a helper method to define mock.On call
- cveIDs []string
type ScanCveRepository_FindAll_Call ¶
ScanCveRepository_FindAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindAll'
func (*ScanCveRepository_FindAll_Call) Return ¶
func (_c *ScanCveRepository_FindAll_Call) Return(_a0 []models.CVE, _a1 error) *ScanCveRepository_FindAll_Call
func (*ScanCveRepository_FindAll_Call) Run ¶
func (_c *ScanCveRepository_FindAll_Call) Run(run func(cveIDs []string)) *ScanCveRepository_FindAll_Call
func (*ScanCveRepository_FindAll_Call) RunAndReturn ¶
func (_c *ScanCveRepository_FindAll_Call) RunAndReturn(run func([]string) ([]models.CVE, error)) *ScanCveRepository_FindAll_Call
type VulndbAffectedCmpRepository ¶
VulndbAffectedCmpRepository is an autogenerated mock type for the affectedCmpRepository type
func NewVulndbAffectedCmpRepository ¶
func NewVulndbAffectedCmpRepository(t interface {
mock.TestingT
Cleanup(func())
}) *VulndbAffectedCmpRepository
NewVulndbAffectedCmpRepository creates a new instance of VulndbAffectedCmpRepository. 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 (*VulndbAffectedCmpRepository) EXPECT ¶
func (_m *VulndbAffectedCmpRepository) EXPECT() *VulndbAffectedCmpRepository_Expecter
func (*VulndbAffectedCmpRepository) SaveBatch ¶
func (_m *VulndbAffectedCmpRepository) SaveBatch(tx *gorm.DB, affectedComponents []models.AffectedComponent) error
SaveBatch provides a mock function with given fields: tx, affectedComponents
type VulndbAffectedCmpRepository_Expecter ¶
type VulndbAffectedCmpRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*VulndbAffectedCmpRepository_Expecter) SaveBatch ¶
func (_e *VulndbAffectedCmpRepository_Expecter) SaveBatch(tx interface{}, affectedComponents interface{}) *VulndbAffectedCmpRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx *gorm.DB
- affectedComponents []models.AffectedComponent
type VulndbAffectedCmpRepository_SaveBatch_Call ¶
VulndbAffectedCmpRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*VulndbAffectedCmpRepository_SaveBatch_Call) Return ¶
func (_c *VulndbAffectedCmpRepository_SaveBatch_Call) Return(_a0 error) *VulndbAffectedCmpRepository_SaveBatch_Call
func (*VulndbAffectedCmpRepository_SaveBatch_Call) Run ¶
func (_c *VulndbAffectedCmpRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, affectedComponents []models.AffectedComponent)) *VulndbAffectedCmpRepository_SaveBatch_Call
func (*VulndbAffectedCmpRepository_SaveBatch_Call) RunAndReturn ¶
func (_c *VulndbAffectedCmpRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.AffectedComponent) error) *VulndbAffectedCmpRepository_SaveBatch_Call
type VulndbConfigService ¶
VulndbConfigService is an autogenerated mock type for the configService type
func NewVulndbConfigService ¶
func NewVulndbConfigService(t interface {
mock.TestingT
Cleanup(func())
}) *VulndbConfigService
NewVulndbConfigService creates a new instance of VulndbConfigService. 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 (*VulndbConfigService) EXPECT ¶
func (_m *VulndbConfigService) EXPECT() *VulndbConfigService_Expecter
func (*VulndbConfigService) GetJSONConfig ¶
func (_m *VulndbConfigService) GetJSONConfig(key string, v interface{}) error
GetJSONConfig provides a mock function with given fields: key, v
func (*VulndbConfigService) SetJSONConfig ¶
func (_m *VulndbConfigService) SetJSONConfig(key string, v interface{}) error
SetJSONConfig provides a mock function with given fields: key, v
type VulndbConfigService_Expecter ¶
type VulndbConfigService_Expecter struct {
// contains filtered or unexported fields
}
func (*VulndbConfigService_Expecter) GetJSONConfig ¶
func (_e *VulndbConfigService_Expecter) GetJSONConfig(key interface{}, v interface{}) *VulndbConfigService_GetJSONConfig_Call
GetJSONConfig is a helper method to define mock.On call
- key string
- v interface{}
func (*VulndbConfigService_Expecter) SetJSONConfig ¶
func (_e *VulndbConfigService_Expecter) SetJSONConfig(key interface{}, v interface{}) *VulndbConfigService_SetJSONConfig_Call
SetJSONConfig is a helper method to define mock.On call
- key string
- v interface{}
type VulndbConfigService_GetJSONConfig_Call ¶
VulndbConfigService_GetJSONConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetJSONConfig'
func (*VulndbConfigService_GetJSONConfig_Call) Return ¶
func (_c *VulndbConfigService_GetJSONConfig_Call) Return(_a0 error) *VulndbConfigService_GetJSONConfig_Call
func (*VulndbConfigService_GetJSONConfig_Call) Run ¶
func (_c *VulndbConfigService_GetJSONConfig_Call) Run(run func(key string, v interface{})) *VulndbConfigService_GetJSONConfig_Call
func (*VulndbConfigService_GetJSONConfig_Call) RunAndReturn ¶
func (_c *VulndbConfigService_GetJSONConfig_Call) RunAndReturn(run func(string, interface{}) error) *VulndbConfigService_GetJSONConfig_Call
type VulndbConfigService_SetJSONConfig_Call ¶
VulndbConfigService_SetJSONConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetJSONConfig'
func (*VulndbConfigService_SetJSONConfig_Call) Return ¶
func (_c *VulndbConfigService_SetJSONConfig_Call) Return(_a0 error) *VulndbConfigService_SetJSONConfig_Call
func (*VulndbConfigService_SetJSONConfig_Call) Run ¶
func (_c *VulndbConfigService_SetJSONConfig_Call) Run(run func(key string, v interface{})) *VulndbConfigService_SetJSONConfig_Call
func (*VulndbConfigService_SetJSONConfig_Call) RunAndReturn ¶
func (_c *VulndbConfigService_SetJSONConfig_Call) RunAndReturn(run func(string, interface{}) error) *VulndbConfigService_SetJSONConfig_Call
type VulndbCveRepository ¶
VulndbCveRepository is an autogenerated mock type for the cveRepository type
func NewVulndbCveRepository ¶
func NewVulndbCveRepository(t interface {
mock.TestingT
Cleanup(func())
}) *VulndbCveRepository
NewVulndbCveRepository creates a new instance of VulndbCveRepository. 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 (*VulndbCveRepository) Begin ¶
func (_m *VulndbCveRepository) Begin() *gorm.DB
Begin provides a mock function with given fields:
func (*VulndbCveRepository) CreateBatch ¶
CreateBatch provides a mock function with given fields: tx, ts
func (*VulndbCveRepository) Delete ¶
func (_m *VulndbCveRepository) Delete(tx *gorm.DB, id string) error
Delete provides a mock function with given fields: tx, id
func (*VulndbCveRepository) EXPECT ¶
func (_m *VulndbCveRepository) EXPECT() *VulndbCveRepository_Expecter
func (*VulndbCveRepository) FindByID ¶
func (_m *VulndbCveRepository) FindByID(id string) (models.CVE, error)
FindByID provides a mock function with given fields: id
func (*VulndbCveRepository) GetDB ¶
func (_m *VulndbCveRepository) GetDB(tx *gorm.DB) *gorm.DB
GetDB provides a mock function with given fields: tx
func (*VulndbCveRepository) GetLastModDate ¶
func (_m *VulndbCveRepository) GetLastModDate() (time.Time, error)
GetLastModDate provides a mock function with given fields:
func (*VulndbCveRepository) List ¶
func (_m *VulndbCveRepository) List(ids []string) ([]models.CVE, error)
List provides a mock function with given fields: ids
func (*VulndbCveRepository) Read ¶
func (_m *VulndbCveRepository) Read(id string) (models.CVE, error)
Read provides a mock function with given fields: id
func (*VulndbCveRepository) SaveBatch ¶
SaveBatch provides a mock function with given fields: tx, ts
func (*VulndbCveRepository) SaveBatchCPEMatch ¶ added in v0.5.1
SaveBatchCPEMatch provides a mock function with given fields: tx, matches
func (*VulndbCveRepository) Transaction ¶
func (_m *VulndbCveRepository) Transaction(_a0 func(*gorm.DB) error) error
Transaction provides a mock function with given fields: _a0
type VulndbCveRepository_Begin_Call ¶
VulndbCveRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*VulndbCveRepository_Begin_Call) Return ¶
func (_c *VulndbCveRepository_Begin_Call) Return(_a0 *gorm.DB) *VulndbCveRepository_Begin_Call
func (*VulndbCveRepository_Begin_Call) Run ¶
func (_c *VulndbCveRepository_Begin_Call) Run(run func()) *VulndbCveRepository_Begin_Call
func (*VulndbCveRepository_Begin_Call) RunAndReturn ¶
func (_c *VulndbCveRepository_Begin_Call) RunAndReturn(run func() *gorm.DB) *VulndbCveRepository_Begin_Call
type VulndbCveRepository_CreateBatch_Call ¶
VulndbCveRepository_CreateBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBatch'
func (*VulndbCveRepository_CreateBatch_Call) Return ¶
func (_c *VulndbCveRepository_CreateBatch_Call) Return(_a0 error) *VulndbCveRepository_CreateBatch_Call
func (*VulndbCveRepository_CreateBatch_Call) Run ¶
func (_c *VulndbCveRepository_CreateBatch_Call) Run(run func(tx *gorm.DB, ts []models.CVE)) *VulndbCveRepository_CreateBatch_Call
func (*VulndbCveRepository_CreateBatch_Call) RunAndReturn ¶
func (_c *VulndbCveRepository_CreateBatch_Call) RunAndReturn(run func(*gorm.DB, []models.CVE) error) *VulndbCveRepository_CreateBatch_Call
type VulndbCveRepository_Create_Call ¶
VulndbCveRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*VulndbCveRepository_Create_Call) Return ¶
func (_c *VulndbCveRepository_Create_Call) Return(_a0 error) *VulndbCveRepository_Create_Call
func (*VulndbCveRepository_Create_Call) Run ¶
func (_c *VulndbCveRepository_Create_Call) Run(run func(tx *gorm.DB, t *models.CVE)) *VulndbCveRepository_Create_Call
func (*VulndbCveRepository_Create_Call) RunAndReturn ¶
func (_c *VulndbCveRepository_Create_Call) RunAndReturn(run func(*gorm.DB, *models.CVE) error) *VulndbCveRepository_Create_Call
type VulndbCveRepository_Delete_Call ¶
VulndbCveRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*VulndbCveRepository_Delete_Call) Return ¶
func (_c *VulndbCveRepository_Delete_Call) Return(_a0 error) *VulndbCveRepository_Delete_Call
func (*VulndbCveRepository_Delete_Call) Run ¶
func (_c *VulndbCveRepository_Delete_Call) Run(run func(tx *gorm.DB, id string)) *VulndbCveRepository_Delete_Call
func (*VulndbCveRepository_Delete_Call) RunAndReturn ¶
func (_c *VulndbCveRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, string) error) *VulndbCveRepository_Delete_Call
type VulndbCveRepository_Expecter ¶
type VulndbCveRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*VulndbCveRepository_Expecter) Begin ¶
func (_e *VulndbCveRepository_Expecter) Begin() *VulndbCveRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*VulndbCveRepository_Expecter) Create ¶
func (_e *VulndbCveRepository_Expecter) Create(tx interface{}, t interface{}) *VulndbCveRepository_Create_Call
Create is a helper method to define mock.On call
- tx *gorm.DB
- t *models.CVE
func (*VulndbCveRepository_Expecter) CreateBatch ¶
func (_e *VulndbCveRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *VulndbCveRepository_CreateBatch_Call
CreateBatch is a helper method to define mock.On call
- tx *gorm.DB
- ts []models.CVE
func (*VulndbCveRepository_Expecter) Delete ¶
func (_e *VulndbCveRepository_Expecter) Delete(tx interface{}, id interface{}) *VulndbCveRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx *gorm.DB
- id string
func (*VulndbCveRepository_Expecter) FindByID ¶
func (_e *VulndbCveRepository_Expecter) FindByID(id interface{}) *VulndbCveRepository_FindByID_Call
FindByID is a helper method to define mock.On call
- id string
func (*VulndbCveRepository_Expecter) GetDB ¶
func (_e *VulndbCveRepository_Expecter) GetDB(tx interface{}) *VulndbCveRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx *gorm.DB
func (*VulndbCveRepository_Expecter) GetLastModDate ¶
func (_e *VulndbCveRepository_Expecter) GetLastModDate() *VulndbCveRepository_GetLastModDate_Call
GetLastModDate is a helper method to define mock.On call
func (*VulndbCveRepository_Expecter) List ¶
func (_e *VulndbCveRepository_Expecter) List(ids interface{}) *VulndbCveRepository_List_Call
List is a helper method to define mock.On call
- ids []string
func (*VulndbCveRepository_Expecter) Read ¶
func (_e *VulndbCveRepository_Expecter) Read(id interface{}) *VulndbCveRepository_Read_Call
Read is a helper method to define mock.On call
- id string
func (*VulndbCveRepository_Expecter) Save ¶
func (_e *VulndbCveRepository_Expecter) Save(tx interface{}, t interface{}) *VulndbCveRepository_Save_Call
Save is a helper method to define mock.On call
- tx *gorm.DB
- t *models.CVE
func (*VulndbCveRepository_Expecter) SaveBatch ¶
func (_e *VulndbCveRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *VulndbCveRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx *gorm.DB
- ts []models.CVE
func (*VulndbCveRepository_Expecter) SaveBatchCPEMatch ¶ added in v0.5.1
func (_e *VulndbCveRepository_Expecter) SaveBatchCPEMatch(tx interface{}, matches interface{}) *VulndbCveRepository_SaveBatchCPEMatch_Call
SaveBatchCPEMatch is a helper method to define mock.On call
- tx *gorm.DB
- matches []models.CPEMatch
func (*VulndbCveRepository_Expecter) Transaction ¶
func (_e *VulndbCveRepository_Expecter) Transaction(_a0 interface{}) *VulndbCveRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- _a0 func(*gorm.DB) error
type VulndbCveRepository_FindByID_Call ¶
VulndbCveRepository_FindByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByID'
func (*VulndbCveRepository_FindByID_Call) Return ¶
func (_c *VulndbCveRepository_FindByID_Call) Return(_a0 models.CVE, _a1 error) *VulndbCveRepository_FindByID_Call
func (*VulndbCveRepository_FindByID_Call) Run ¶
func (_c *VulndbCveRepository_FindByID_Call) Run(run func(id string)) *VulndbCveRepository_FindByID_Call
func (*VulndbCveRepository_FindByID_Call) RunAndReturn ¶
func (_c *VulndbCveRepository_FindByID_Call) RunAndReturn(run func(string) (models.CVE, error)) *VulndbCveRepository_FindByID_Call
type VulndbCveRepository_GetDB_Call ¶
VulndbCveRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*VulndbCveRepository_GetDB_Call) Return ¶
func (_c *VulndbCveRepository_GetDB_Call) Return(_a0 *gorm.DB) *VulndbCveRepository_GetDB_Call
func (*VulndbCveRepository_GetDB_Call) Run ¶
func (_c *VulndbCveRepository_GetDB_Call) Run(run func(tx *gorm.DB)) *VulndbCveRepository_GetDB_Call
func (*VulndbCveRepository_GetDB_Call) RunAndReturn ¶
func (_c *VulndbCveRepository_GetDB_Call) RunAndReturn(run func(*gorm.DB) *gorm.DB) *VulndbCveRepository_GetDB_Call
type VulndbCveRepository_GetLastModDate_Call ¶
VulndbCveRepository_GetLastModDate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastModDate'
func (*VulndbCveRepository_GetLastModDate_Call) Return ¶
func (_c *VulndbCveRepository_GetLastModDate_Call) Return(_a0 time.Time, _a1 error) *VulndbCveRepository_GetLastModDate_Call
func (*VulndbCveRepository_GetLastModDate_Call) Run ¶
func (_c *VulndbCveRepository_GetLastModDate_Call) Run(run func()) *VulndbCveRepository_GetLastModDate_Call
func (*VulndbCveRepository_GetLastModDate_Call) RunAndReturn ¶
func (_c *VulndbCveRepository_GetLastModDate_Call) RunAndReturn(run func() (time.Time, error)) *VulndbCveRepository_GetLastModDate_Call
type VulndbCveRepository_List_Call ¶
VulndbCveRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*VulndbCveRepository_List_Call) Return ¶
func (_c *VulndbCveRepository_List_Call) Return(_a0 []models.CVE, _a1 error) *VulndbCveRepository_List_Call
func (*VulndbCveRepository_List_Call) Run ¶
func (_c *VulndbCveRepository_List_Call) Run(run func(ids []string)) *VulndbCveRepository_List_Call
func (*VulndbCveRepository_List_Call) RunAndReturn ¶
func (_c *VulndbCveRepository_List_Call) RunAndReturn(run func([]string) ([]models.CVE, error)) *VulndbCveRepository_List_Call
type VulndbCveRepository_Read_Call ¶
VulndbCveRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*VulndbCveRepository_Read_Call) Return ¶
func (_c *VulndbCveRepository_Read_Call) Return(_a0 models.CVE, _a1 error) *VulndbCveRepository_Read_Call
func (*VulndbCveRepository_Read_Call) Run ¶
func (_c *VulndbCveRepository_Read_Call) Run(run func(id string)) *VulndbCveRepository_Read_Call
func (*VulndbCveRepository_Read_Call) RunAndReturn ¶
func (_c *VulndbCveRepository_Read_Call) RunAndReturn(run func(string) (models.CVE, error)) *VulndbCveRepository_Read_Call
type VulndbCveRepository_SaveBatchCPEMatch_Call ¶ added in v0.5.1
VulndbCveRepository_SaveBatchCPEMatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatchCPEMatch'
func (*VulndbCveRepository_SaveBatchCPEMatch_Call) Return ¶ added in v0.5.1
func (_c *VulndbCveRepository_SaveBatchCPEMatch_Call) Return(_a0 error) *VulndbCveRepository_SaveBatchCPEMatch_Call
func (*VulndbCveRepository_SaveBatchCPEMatch_Call) Run ¶ added in v0.5.1
func (_c *VulndbCveRepository_SaveBatchCPEMatch_Call) Run(run func(tx *gorm.DB, matches []models.CPEMatch)) *VulndbCveRepository_SaveBatchCPEMatch_Call
func (*VulndbCveRepository_SaveBatchCPEMatch_Call) RunAndReturn ¶ added in v0.5.1
func (_c *VulndbCveRepository_SaveBatchCPEMatch_Call) RunAndReturn(run func(*gorm.DB, []models.CPEMatch) error) *VulndbCveRepository_SaveBatchCPEMatch_Call
type VulndbCveRepository_SaveBatch_Call ¶
VulndbCveRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*VulndbCveRepository_SaveBatch_Call) Return ¶
func (_c *VulndbCveRepository_SaveBatch_Call) Return(_a0 error) *VulndbCveRepository_SaveBatch_Call
func (*VulndbCveRepository_SaveBatch_Call) Run ¶
func (_c *VulndbCveRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, ts []models.CVE)) *VulndbCveRepository_SaveBatch_Call
func (*VulndbCveRepository_SaveBatch_Call) RunAndReturn ¶
func (_c *VulndbCveRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.CVE) error) *VulndbCveRepository_SaveBatch_Call
type VulndbCveRepository_Save_Call ¶
VulndbCveRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*VulndbCveRepository_Save_Call) Return ¶
func (_c *VulndbCveRepository_Save_Call) Return(_a0 error) *VulndbCveRepository_Save_Call
func (*VulndbCveRepository_Save_Call) Run ¶
func (_c *VulndbCveRepository_Save_Call) Run(run func(tx *gorm.DB, t *models.CVE)) *VulndbCveRepository_Save_Call
func (*VulndbCveRepository_Save_Call) RunAndReturn ¶
func (_c *VulndbCveRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.CVE) error) *VulndbCveRepository_Save_Call
type VulndbCveRepository_Transaction_Call ¶
VulndbCveRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*VulndbCveRepository_Transaction_Call) Return ¶
func (_c *VulndbCveRepository_Transaction_Call) Return(_a0 error) *VulndbCveRepository_Transaction_Call
func (*VulndbCveRepository_Transaction_Call) Run ¶
func (_c *VulndbCveRepository_Transaction_Call) Run(run func(_a0 func(*gorm.DB) error)) *VulndbCveRepository_Transaction_Call
func (*VulndbCveRepository_Transaction_Call) RunAndReturn ¶
func (_c *VulndbCveRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *VulndbCveRepository_Transaction_Call
type VulndbCweRepository ¶
VulndbCweRepository is an autogenerated mock type for the cweRepository type
func NewVulndbCweRepository ¶
func NewVulndbCweRepository(t interface {
mock.TestingT
Cleanup(func())
}) *VulndbCweRepository
NewVulndbCweRepository creates a new instance of VulndbCweRepository. 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 (*VulndbCweRepository) EXPECT ¶
func (_m *VulndbCweRepository) EXPECT() *VulndbCweRepository_Expecter
type VulndbCweRepository_Expecter ¶
type VulndbCweRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*VulndbCweRepository_Expecter) SaveBatch ¶
func (_e *VulndbCweRepository_Expecter) SaveBatch(tx interface{}, cwes interface{}) *VulndbCweRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx *gorm.DB
- cwes []models.CWE
type VulndbCweRepository_SaveBatch_Call ¶
VulndbCweRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*VulndbCweRepository_SaveBatch_Call) Return ¶
func (_c *VulndbCweRepository_SaveBatch_Call) Return(_a0 error) *VulndbCweRepository_SaveBatch_Call
func (*VulndbCweRepository_SaveBatch_Call) Run ¶
func (_c *VulndbCweRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, cwes []models.CWE)) *VulndbCweRepository_SaveBatch_Call
func (*VulndbCweRepository_SaveBatch_Call) RunAndReturn ¶
func (_c *VulndbCweRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.CWE) error) *VulndbCweRepository_SaveBatch_Call
type VulndbExploitRepository ¶
VulndbExploitRepository is an autogenerated mock type for the exploitRepository type
func NewVulndbExploitRepository ¶
func NewVulndbExploitRepository(t interface {
mock.TestingT
Cleanup(func())
}) *VulndbExploitRepository
NewVulndbExploitRepository creates a new instance of VulndbExploitRepository. 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 (*VulndbExploitRepository) EXPECT ¶
func (_m *VulndbExploitRepository) EXPECT() *VulndbExploitRepository_Expecter
type VulndbExploitRepository_Expecter ¶
type VulndbExploitRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*VulndbExploitRepository_Expecter) SaveBatch ¶
func (_e *VulndbExploitRepository_Expecter) SaveBatch(tx interface{}, exploits interface{}) *VulndbExploitRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx *gorm.DB
- exploits []models.Exploit
type VulndbExploitRepository_SaveBatch_Call ¶
VulndbExploitRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*VulndbExploitRepository_SaveBatch_Call) Return ¶
func (_c *VulndbExploitRepository_SaveBatch_Call) Return(_a0 error) *VulndbExploitRepository_SaveBatch_Call
func (*VulndbExploitRepository_SaveBatch_Call) Run ¶
func (_c *VulndbExploitRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, exploits []models.Exploit)) *VulndbExploitRepository_SaveBatch_Call
func (*VulndbExploitRepository_SaveBatch_Call) RunAndReturn ¶
func (_c *VulndbExploitRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Exploit) error) *VulndbExploitRepository_SaveBatch_Call
type VulndbFlawService ¶
VulndbFlawService is an autogenerated mock type for the flawService type
func NewVulndbFlawService ¶
func NewVulndbFlawService(t interface {
mock.TestingT
Cleanup(func())
}) *VulndbFlawService
NewVulndbFlawService creates a new instance of VulndbFlawService. 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 (*VulndbFlawService) EXPECT ¶
func (_m *VulndbFlawService) EXPECT() *VulndbFlawService_Expecter
func (*VulndbFlawService) RecalculateAllRawRiskAssessments ¶
func (_m *VulndbFlawService) RecalculateAllRawRiskAssessments() error
RecalculateAllRawRiskAssessments provides a mock function with given fields:
type VulndbFlawService_Expecter ¶
type VulndbFlawService_Expecter struct {
// contains filtered or unexported fields
}
func (*VulndbFlawService_Expecter) RecalculateAllRawRiskAssessments ¶
func (_e *VulndbFlawService_Expecter) RecalculateAllRawRiskAssessments() *VulndbFlawService_RecalculateAllRawRiskAssessments_Call
RecalculateAllRawRiskAssessments is a helper method to define mock.On call
type VulndbFlawService_RecalculateAllRawRiskAssessments_Call ¶
VulndbFlawService_RecalculateAllRawRiskAssessments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RecalculateAllRawRiskAssessments'
func (*VulndbFlawService_RecalculateAllRawRiskAssessments_Call) Run ¶
func (_c *VulndbFlawService_RecalculateAllRawRiskAssessments_Call) Run(run func()) *VulndbFlawService_RecalculateAllRawRiskAssessments_Call
func (*VulndbFlawService_RecalculateAllRawRiskAssessments_Call) RunAndReturn ¶
func (_c *VulndbFlawService_RecalculateAllRawRiskAssessments_Call) RunAndReturn(run func() error) *VulndbFlawService_RecalculateAllRawRiskAssessments_Call
type VulndbGithubExploitRepository ¶
VulndbGithubExploitRepository is an autogenerated mock type for the githubExploitRepository type
func NewVulndbGithubExploitRepository ¶
func NewVulndbGithubExploitRepository(t interface {
mock.TestingT
Cleanup(func())
}) *VulndbGithubExploitRepository
NewVulndbGithubExploitRepository creates a new instance of VulndbGithubExploitRepository. 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 (*VulndbGithubExploitRepository) EXPECT ¶
func (_m *VulndbGithubExploitRepository) EXPECT() *VulndbGithubExploitRepository_Expecter
type VulndbGithubExploitRepository_Expecter ¶
type VulndbGithubExploitRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*VulndbGithubExploitRepository_Expecter) SaveBatch ¶
func (_e *VulndbGithubExploitRepository_Expecter) SaveBatch(tx interface{}, exploits interface{}) *VulndbGithubExploitRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx *gorm.DB
- exploits []models.Exploit
type VulndbGithubExploitRepository_SaveBatch_Call ¶
VulndbGithubExploitRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*VulndbGithubExploitRepository_SaveBatch_Call) Return ¶
func (_c *VulndbGithubExploitRepository_SaveBatch_Call) Return(_a0 error) *VulndbGithubExploitRepository_SaveBatch_Call
func (*VulndbGithubExploitRepository_SaveBatch_Call) Run ¶
func (_c *VulndbGithubExploitRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, exploits []models.Exploit)) *VulndbGithubExploitRepository_SaveBatch_Call
func (*VulndbGithubExploitRepository_SaveBatch_Call) RunAndReturn ¶
func (_c *VulndbGithubExploitRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Exploit) error) *VulndbGithubExploitRepository_SaveBatch_Call
type VulndbLeaderElector ¶
VulndbLeaderElector is an autogenerated mock type for the leaderElector type
func NewVulndbLeaderElector ¶
func NewVulndbLeaderElector(t interface {
mock.TestingT
Cleanup(func())
}) *VulndbLeaderElector
NewVulndbLeaderElector creates a new instance of VulndbLeaderElector. 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 (*VulndbLeaderElector) EXPECT ¶
func (_m *VulndbLeaderElector) EXPECT() *VulndbLeaderElector_Expecter
func (*VulndbLeaderElector) IsLeader ¶
func (_m *VulndbLeaderElector) IsLeader() bool
IsLeader provides a mock function with given fields:
type VulndbLeaderElector_Expecter ¶
type VulndbLeaderElector_Expecter struct {
// contains filtered or unexported fields
}
func (*VulndbLeaderElector_Expecter) IsLeader ¶
func (_e *VulndbLeaderElector_Expecter) IsLeader() *VulndbLeaderElector_IsLeader_Call
IsLeader is a helper method to define mock.On call
type VulndbLeaderElector_IsLeader_Call ¶
VulndbLeaderElector_IsLeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsLeader'
func (*VulndbLeaderElector_IsLeader_Call) Return ¶
func (_c *VulndbLeaderElector_IsLeader_Call) Return(_a0 bool) *VulndbLeaderElector_IsLeader_Call
func (*VulndbLeaderElector_IsLeader_Call) Run ¶
func (_c *VulndbLeaderElector_IsLeader_Call) Run(run func()) *VulndbLeaderElector_IsLeader_Call
func (*VulndbLeaderElector_IsLeader_Call) RunAndReturn ¶
func (_c *VulndbLeaderElector_IsLeader_Call) RunAndReturn(run func() bool) *VulndbLeaderElector_IsLeader_Call
type VulndbRepository ¶
VulndbRepository is an autogenerated mock type for the repository type
func NewVulndbRepository ¶
func NewVulndbRepository(t interface {
mock.TestingT
Cleanup(func())
}) *VulndbRepository
NewVulndbRepository creates a new instance of VulndbRepository. 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 (*VulndbRepository) EXPECT ¶
func (_m *VulndbRepository) EXPECT() *VulndbRepository_Expecter
type VulndbRepository_Expecter ¶
type VulndbRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*VulndbRepository_Expecter) FindAllListPaged ¶
func (_e *VulndbRepository_Expecter) FindAllListPaged(tx interface{}, pageInfo interface{}, filter interface{}, sort interface{}) *VulndbRepository_FindAllListPaged_Call
FindAllListPaged is a helper method to define mock.On call
- tx *gorm.DB
- pageInfo core.PageInfo
- filter []core.FilterQuery
- sort []core.SortQuery
func (*VulndbRepository_Expecter) FindCVE ¶
func (_e *VulndbRepository_Expecter) FindCVE(tx interface{}, cveId interface{}) *VulndbRepository_FindCVE_Call
FindCVE is a helper method to define mock.On call
- tx *gorm.DB
- cveId string
type VulndbRepository_FindAllListPaged_Call ¶
VulndbRepository_FindAllListPaged_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindAllListPaged'
func (*VulndbRepository_FindAllListPaged_Call) Return ¶
func (_c *VulndbRepository_FindAllListPaged_Call) Return(_a0 core.Paged[models.CVE], _a1 error) *VulndbRepository_FindAllListPaged_Call
func (*VulndbRepository_FindAllListPaged_Call) Run ¶
func (_c *VulndbRepository_FindAllListPaged_Call) Run(run func(tx *gorm.DB, pageInfo core.PageInfo, filter []core.FilterQuery, sort []core.SortQuery)) *VulndbRepository_FindAllListPaged_Call
func (*VulndbRepository_FindAllListPaged_Call) RunAndReturn ¶
func (_c *VulndbRepository_FindAllListPaged_Call) RunAndReturn(run func(*gorm.DB, core.PageInfo, []core.FilterQuery, []core.SortQuery) (core.Paged[models.CVE], error)) *VulndbRepository_FindAllListPaged_Call
type VulndbRepository_FindCVE_Call ¶
VulndbRepository_FindCVE_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindCVE'
func (*VulndbRepository_FindCVE_Call) Return ¶
func (_c *VulndbRepository_FindCVE_Call) Return(_a0 models.CVE, _a1 error) *VulndbRepository_FindCVE_Call
func (*VulndbRepository_FindCVE_Call) Run ¶
func (_c *VulndbRepository_FindCVE_Call) Run(run func(tx *gorm.DB, cveId string)) *VulndbRepository_FindCVE_Call
func (*VulndbRepository_FindCVE_Call) RunAndReturn ¶
func (_c *VulndbRepository_FindCVE_Call) RunAndReturn(run func(*gorm.DB, string) (models.CVE, error)) *VulndbRepository_FindCVE_Call
Source Files
¶
- mock_asset_assetComponentsLoader.go
- mock_asset_assetRepository.go
- mock_asset_assetService.go
- mock_asset_componentRepository.go
- mock_asset_flawRepository.go
- mock_asset_flawService.go
- mock_asset_repository.go
- mock_asset_vulnService.go
- mock_config_configRepository.go
- mock_core_AuthSession.go
- mock_core_ThirdPartyIntegration.go
- mock_flaw_assetRepository.go
- mock_flaw_ctrFlawEventRepository.go
- mock_flaw_cveRepository.go
- mock_flaw_flawEventRepository.go
- mock_flaw_flawRepository.go
- mock_flaw_flawService.go
- mock_flaw_repository.go
- mock_integrations_githubAppInstallationRepository.go
- mock_leaderelection_configService.go
- mock_normalize_SBOM.go
- mock_org_repository.go
- mock_pat_repository.go
- mock_project_assetRepository.go
- mock_project_projectRepository.go
- mock_risk_cvssInterface.go
- mock_scan_assetService.go
- mock_scan_comparer.go
- mock_scan_componentRepository.go
- mock_scan_cveRepository.go
- mock_vulndb_affectedCmpRepository.go
- mock_vulndb_configService.go
- mock_vulndb_cveRepository.go
- mock_vulndb_cweRepository.go
- mock_vulndb_exploitRepository.go
- mock_vulndb_flawService.go
- mock_vulndb_githubExploitRepository.go
- mock_vulndb_leaderElector.go
- mock_vulndb_repository.go