Documentation
¶
Index ¶
- type AccesscontrolAccessControl
- func (_m *AccesscontrolAccessControl) AllowRole(role string, object string, action []accesscontrol.Action) error
- func (_m *AccesscontrolAccessControl) AllowRoleInProject(project string, role string, object string, action []accesscontrol.Action) error
- func (_m *AccesscontrolAccessControl) EXPECT() *AccesscontrolAccessControl_Expecter
- func (_m *AccesscontrolAccessControl) GetAllMembersOfOrganization() ([]string, error)
- func (_m *AccesscontrolAccessControl) GetAllMembersOfProject(projectID string) ([]string, error)
- func (_m *AccesscontrolAccessControl) GetAllProjectsForUser(user string) []string
- func (_m *AccesscontrolAccessControl) GetAllRoles(user string) []string
- func (_m *AccesscontrolAccessControl) GetDomainRole(user string) (string, error)
- func (_m *AccesscontrolAccessControl) GetOwnerOfOrganization() (string, error)
- func (_m *AccesscontrolAccessControl) GetProjectRole(user string, project string) (string, error)
- func (_m *AccesscontrolAccessControl) GrantRole(subject string, role string) error
- func (_m *AccesscontrolAccessControl) GrantRoleInProject(subject string, role string, project string) error
- func (_m *AccesscontrolAccessControl) HasAccess(subject string) bool
- func (_m *AccesscontrolAccessControl) InheritProjectRole(roleWhichGetsPermissions string, roleWhichProvidesPermissions string, ...) error
- func (_m *AccesscontrolAccessControl) InheritProjectRolesAcrossProjects(roleWhichGetsPermissions accesscontrol.ProjectRole, ...) error
- func (_m *AccesscontrolAccessControl) InheritRole(roleWhichGetsPermissions string, roleWhichProvidesPermissions string) error
- func (_m *AccesscontrolAccessControl) IsAllowed(subject string, object string, action accesscontrol.Action) (bool, error)
- func (_m *AccesscontrolAccessControl) IsAllowedInProject(project string, user string, object string, action accesscontrol.Action) (bool, error)
- func (_m *AccesscontrolAccessControl) LinkDomainAndProjectRole(domainRoleWhichGetsPermission string, ...) error
- func (_m *AccesscontrolAccessControl) RevokeRole(subject string, role string) error
- func (_m *AccesscontrolAccessControl) RevokeRoleInProject(subject string, role string, project string) error
- type AccesscontrolAccessControl_AllowRoleInProject_Call
- func (_c *AccesscontrolAccessControl_AllowRoleInProject_Call) Return(_a0 error) *AccesscontrolAccessControl_AllowRoleInProject_Call
- func (_c *AccesscontrolAccessControl_AllowRoleInProject_Call) Run(...) *AccesscontrolAccessControl_AllowRoleInProject_Call
- func (_c *AccesscontrolAccessControl_AllowRoleInProject_Call) RunAndReturn(run func(string, string, string, []accesscontrol.Action) error) *AccesscontrolAccessControl_AllowRoleInProject_Call
- type AccesscontrolAccessControl_AllowRole_Call
- func (_c *AccesscontrolAccessControl_AllowRole_Call) Return(_a0 error) *AccesscontrolAccessControl_AllowRole_Call
- func (_c *AccesscontrolAccessControl_AllowRole_Call) Run(run func(role string, object string, action []accesscontrol.Action)) *AccesscontrolAccessControl_AllowRole_Call
- func (_c *AccesscontrolAccessControl_AllowRole_Call) RunAndReturn(run func(string, string, []accesscontrol.Action) error) *AccesscontrolAccessControl_AllowRole_Call
- type AccesscontrolAccessControl_Expecter
- func (_e *AccesscontrolAccessControl_Expecter) AllowRole(role interface{}, object interface{}, action interface{}) *AccesscontrolAccessControl_AllowRole_Call
- func (_e *AccesscontrolAccessControl_Expecter) AllowRoleInProject(project interface{}, role interface{}, object interface{}, action interface{}) *AccesscontrolAccessControl_AllowRoleInProject_Call
- func (_e *AccesscontrolAccessControl_Expecter) GetAllMembersOfOrganization() *AccesscontrolAccessControl_GetAllMembersOfOrganization_Call
- func (_e *AccesscontrolAccessControl_Expecter) GetAllMembersOfProject(projectID interface{}) *AccesscontrolAccessControl_GetAllMembersOfProject_Call
- func (_e *AccesscontrolAccessControl_Expecter) GetAllProjectsForUser(user interface{}) *AccesscontrolAccessControl_GetAllProjectsForUser_Call
- func (_e *AccesscontrolAccessControl_Expecter) GetAllRoles(user interface{}) *AccesscontrolAccessControl_GetAllRoles_Call
- func (_e *AccesscontrolAccessControl_Expecter) GetDomainRole(user interface{}) *AccesscontrolAccessControl_GetDomainRole_Call
- func (_e *AccesscontrolAccessControl_Expecter) GetOwnerOfOrganization() *AccesscontrolAccessControl_GetOwnerOfOrganization_Call
- func (_e *AccesscontrolAccessControl_Expecter) GetProjectRole(user interface{}, project interface{}) *AccesscontrolAccessControl_GetProjectRole_Call
- func (_e *AccesscontrolAccessControl_Expecter) GrantRole(subject interface{}, role interface{}) *AccesscontrolAccessControl_GrantRole_Call
- func (_e *AccesscontrolAccessControl_Expecter) GrantRoleInProject(subject interface{}, role interface{}, project interface{}) *AccesscontrolAccessControl_GrantRoleInProject_Call
- func (_e *AccesscontrolAccessControl_Expecter) HasAccess(subject interface{}) *AccesscontrolAccessControl_HasAccess_Call
- func (_e *AccesscontrolAccessControl_Expecter) InheritProjectRole(roleWhichGetsPermissions interface{}, roleWhichProvidesPermissions interface{}, ...) *AccesscontrolAccessControl_InheritProjectRole_Call
- func (_e *AccesscontrolAccessControl_Expecter) InheritProjectRolesAcrossProjects(roleWhichGetsPermissions interface{}, roleWhichProvidesPermissions interface{}) *AccesscontrolAccessControl_InheritProjectRolesAcrossProjects_Call
- func (_e *AccesscontrolAccessControl_Expecter) InheritRole(roleWhichGetsPermissions interface{}, roleWhichProvidesPermissions interface{}) *AccesscontrolAccessControl_InheritRole_Call
- func (_e *AccesscontrolAccessControl_Expecter) IsAllowed(subject interface{}, object interface{}, action interface{}) *AccesscontrolAccessControl_IsAllowed_Call
- func (_e *AccesscontrolAccessControl_Expecter) IsAllowedInProject(project interface{}, user interface{}, object interface{}, action interface{}) *AccesscontrolAccessControl_IsAllowedInProject_Call
- func (_e *AccesscontrolAccessControl_Expecter) LinkDomainAndProjectRole(domainRoleWhichGetsPermission interface{}, ...) *AccesscontrolAccessControl_LinkDomainAndProjectRole_Call
- func (_e *AccesscontrolAccessControl_Expecter) RevokeRole(subject interface{}, role interface{}) *AccesscontrolAccessControl_RevokeRole_Call
- func (_e *AccesscontrolAccessControl_Expecter) RevokeRoleInProject(subject interface{}, role interface{}, project interface{}) *AccesscontrolAccessControl_RevokeRoleInProject_Call
- type AccesscontrolAccessControl_GetAllMembersOfOrganization_Call
- func (_c *AccesscontrolAccessControl_GetAllMembersOfOrganization_Call) Return(_a0 []string, _a1 error) *AccesscontrolAccessControl_GetAllMembersOfOrganization_Call
- func (_c *AccesscontrolAccessControl_GetAllMembersOfOrganization_Call) Run(run func()) *AccesscontrolAccessControl_GetAllMembersOfOrganization_Call
- func (_c *AccesscontrolAccessControl_GetAllMembersOfOrganization_Call) RunAndReturn(run func() ([]string, error)) *AccesscontrolAccessControl_GetAllMembersOfOrganization_Call
- type AccesscontrolAccessControl_GetAllMembersOfProject_Call
- func (_c *AccesscontrolAccessControl_GetAllMembersOfProject_Call) Return(_a0 []string, _a1 error) *AccesscontrolAccessControl_GetAllMembersOfProject_Call
- func (_c *AccesscontrolAccessControl_GetAllMembersOfProject_Call) Run(run func(projectID string)) *AccesscontrolAccessControl_GetAllMembersOfProject_Call
- func (_c *AccesscontrolAccessControl_GetAllMembersOfProject_Call) RunAndReturn(run func(string) ([]string, error)) *AccesscontrolAccessControl_GetAllMembersOfProject_Call
- type AccesscontrolAccessControl_GetAllProjectsForUser_Call
- func (_c *AccesscontrolAccessControl_GetAllProjectsForUser_Call) Return(_a0 []string) *AccesscontrolAccessControl_GetAllProjectsForUser_Call
- func (_c *AccesscontrolAccessControl_GetAllProjectsForUser_Call) Run(run func(user string)) *AccesscontrolAccessControl_GetAllProjectsForUser_Call
- func (_c *AccesscontrolAccessControl_GetAllProjectsForUser_Call) RunAndReturn(run func(string) []string) *AccesscontrolAccessControl_GetAllProjectsForUser_Call
- type AccesscontrolAccessControl_GetAllRoles_Call
- func (_c *AccesscontrolAccessControl_GetAllRoles_Call) Return(_a0 []string) *AccesscontrolAccessControl_GetAllRoles_Call
- func (_c *AccesscontrolAccessControl_GetAllRoles_Call) Run(run func(user string)) *AccesscontrolAccessControl_GetAllRoles_Call
- func (_c *AccesscontrolAccessControl_GetAllRoles_Call) RunAndReturn(run func(string) []string) *AccesscontrolAccessControl_GetAllRoles_Call
- type AccesscontrolAccessControl_GetDomainRole_Call
- func (_c *AccesscontrolAccessControl_GetDomainRole_Call) Return(_a0 string, _a1 error) *AccesscontrolAccessControl_GetDomainRole_Call
- func (_c *AccesscontrolAccessControl_GetDomainRole_Call) Run(run func(user string)) *AccesscontrolAccessControl_GetDomainRole_Call
- func (_c *AccesscontrolAccessControl_GetDomainRole_Call) RunAndReturn(run func(string) (string, error)) *AccesscontrolAccessControl_GetDomainRole_Call
- type AccesscontrolAccessControl_GetOwnerOfOrganization_Call
- func (_c *AccesscontrolAccessControl_GetOwnerOfOrganization_Call) Return(_a0 string, _a1 error) *AccesscontrolAccessControl_GetOwnerOfOrganization_Call
- func (_c *AccesscontrolAccessControl_GetOwnerOfOrganization_Call) Run(run func()) *AccesscontrolAccessControl_GetOwnerOfOrganization_Call
- func (_c *AccesscontrolAccessControl_GetOwnerOfOrganization_Call) RunAndReturn(run func() (string, error)) *AccesscontrolAccessControl_GetOwnerOfOrganization_Call
- type AccesscontrolAccessControl_GetProjectRole_Call
- func (_c *AccesscontrolAccessControl_GetProjectRole_Call) Return(_a0 string, _a1 error) *AccesscontrolAccessControl_GetProjectRole_Call
- func (_c *AccesscontrolAccessControl_GetProjectRole_Call) Run(run func(user string, project string)) *AccesscontrolAccessControl_GetProjectRole_Call
- func (_c *AccesscontrolAccessControl_GetProjectRole_Call) RunAndReturn(run func(string, string) (string, error)) *AccesscontrolAccessControl_GetProjectRole_Call
- type AccesscontrolAccessControl_GrantRoleInProject_Call
- func (_c *AccesscontrolAccessControl_GrantRoleInProject_Call) Return(_a0 error) *AccesscontrolAccessControl_GrantRoleInProject_Call
- func (_c *AccesscontrolAccessControl_GrantRoleInProject_Call) Run(run func(subject string, role string, project string)) *AccesscontrolAccessControl_GrantRoleInProject_Call
- func (_c *AccesscontrolAccessControl_GrantRoleInProject_Call) RunAndReturn(run func(string, string, string) error) *AccesscontrolAccessControl_GrantRoleInProject_Call
- type AccesscontrolAccessControl_GrantRole_Call
- func (_c *AccesscontrolAccessControl_GrantRole_Call) Return(_a0 error) *AccesscontrolAccessControl_GrantRole_Call
- func (_c *AccesscontrolAccessControl_GrantRole_Call) Run(run func(subject string, role string)) *AccesscontrolAccessControl_GrantRole_Call
- func (_c *AccesscontrolAccessControl_GrantRole_Call) RunAndReturn(run func(string, string) error) *AccesscontrolAccessControl_GrantRole_Call
- type AccesscontrolAccessControl_HasAccess_Call
- func (_c *AccesscontrolAccessControl_HasAccess_Call) Return(_a0 bool) *AccesscontrolAccessControl_HasAccess_Call
- func (_c *AccesscontrolAccessControl_HasAccess_Call) Run(run func(subject string)) *AccesscontrolAccessControl_HasAccess_Call
- func (_c *AccesscontrolAccessControl_HasAccess_Call) RunAndReturn(run func(string) bool) *AccesscontrolAccessControl_HasAccess_Call
- type AccesscontrolAccessControl_InheritProjectRole_Call
- func (_c *AccesscontrolAccessControl_InheritProjectRole_Call) Return(_a0 error) *AccesscontrolAccessControl_InheritProjectRole_Call
- func (_c *AccesscontrolAccessControl_InheritProjectRole_Call) Run(...) *AccesscontrolAccessControl_InheritProjectRole_Call
- func (_c *AccesscontrolAccessControl_InheritProjectRole_Call) RunAndReturn(run func(string, string, string) error) *AccesscontrolAccessControl_InheritProjectRole_Call
- type AccesscontrolAccessControl_InheritProjectRolesAcrossProjects_Call
- func (_c *AccesscontrolAccessControl_InheritProjectRolesAcrossProjects_Call) Return(_a0 error) *AccesscontrolAccessControl_InheritProjectRolesAcrossProjects_Call
- func (_c *AccesscontrolAccessControl_InheritProjectRolesAcrossProjects_Call) Run(run func(roleWhichGetsPermissions accesscontrol.ProjectRole, ...)) *AccesscontrolAccessControl_InheritProjectRolesAcrossProjects_Call
- func (_c *AccesscontrolAccessControl_InheritProjectRolesAcrossProjects_Call) RunAndReturn(run func(accesscontrol.ProjectRole, accesscontrol.ProjectRole) error) *AccesscontrolAccessControl_InheritProjectRolesAcrossProjects_Call
- type AccesscontrolAccessControl_InheritRole_Call
- func (_c *AccesscontrolAccessControl_InheritRole_Call) Return(_a0 error) *AccesscontrolAccessControl_InheritRole_Call
- func (_c *AccesscontrolAccessControl_InheritRole_Call) Run(run func(roleWhichGetsPermissions string, roleWhichProvidesPermissions string)) *AccesscontrolAccessControl_InheritRole_Call
- func (_c *AccesscontrolAccessControl_InheritRole_Call) RunAndReturn(run func(string, string) error) *AccesscontrolAccessControl_InheritRole_Call
- type AccesscontrolAccessControl_IsAllowedInProject_Call
- func (_c *AccesscontrolAccessControl_IsAllowedInProject_Call) Return(_a0 bool, _a1 error) *AccesscontrolAccessControl_IsAllowedInProject_Call
- func (_c *AccesscontrolAccessControl_IsAllowedInProject_Call) Run(...) *AccesscontrolAccessControl_IsAllowedInProject_Call
- func (_c *AccesscontrolAccessControl_IsAllowedInProject_Call) RunAndReturn(run func(string, string, string, accesscontrol.Action) (bool, error)) *AccesscontrolAccessControl_IsAllowedInProject_Call
- type AccesscontrolAccessControl_IsAllowed_Call
- func (_c *AccesscontrolAccessControl_IsAllowed_Call) Return(_a0 bool, _a1 error) *AccesscontrolAccessControl_IsAllowed_Call
- func (_c *AccesscontrolAccessControl_IsAllowed_Call) Run(run func(subject string, object string, action accesscontrol.Action)) *AccesscontrolAccessControl_IsAllowed_Call
- func (_c *AccesscontrolAccessControl_IsAllowed_Call) RunAndReturn(run func(string, string, accesscontrol.Action) (bool, error)) *AccesscontrolAccessControl_IsAllowed_Call
- type AccesscontrolAccessControl_LinkDomainAndProjectRole_Call
- func (_c *AccesscontrolAccessControl_LinkDomainAndProjectRole_Call) Return(_a0 error) *AccesscontrolAccessControl_LinkDomainAndProjectRole_Call
- func (_c *AccesscontrolAccessControl_LinkDomainAndProjectRole_Call) Run(run func(domainRoleWhichGetsPermission string, ...)) *AccesscontrolAccessControl_LinkDomainAndProjectRole_Call
- func (_c *AccesscontrolAccessControl_LinkDomainAndProjectRole_Call) RunAndReturn(run func(string, string, string) error) *AccesscontrolAccessControl_LinkDomainAndProjectRole_Call
- type AccesscontrolAccessControl_RevokeRoleInProject_Call
- func (_c *AccesscontrolAccessControl_RevokeRoleInProject_Call) Return(_a0 error) *AccesscontrolAccessControl_RevokeRoleInProject_Call
- func (_c *AccesscontrolAccessControl_RevokeRoleInProject_Call) Run(run func(subject string, role string, project string)) *AccesscontrolAccessControl_RevokeRoleInProject_Call
- func (_c *AccesscontrolAccessControl_RevokeRoleInProject_Call) RunAndReturn(run func(string, string, string) error) *AccesscontrolAccessControl_RevokeRoleInProject_Call
- type AccesscontrolAccessControl_RevokeRole_Call
- func (_c *AccesscontrolAccessControl_RevokeRole_Call) Return(_a0 error) *AccesscontrolAccessControl_RevokeRole_Call
- func (_c *AccesscontrolAccessControl_RevokeRole_Call) Run(run func(subject string, role string)) *AccesscontrolAccessControl_RevokeRole_Call
- func (_c *AccesscontrolAccessControl_RevokeRole_Call) RunAndReturn(run func(string, string) error) *AccesscontrolAccessControl_RevokeRole_Call
- type AccesscontrolRBACProvider
- type AccesscontrolRBACProvider_DomainsOfUser_Call
- func (_c *AccesscontrolRBACProvider_DomainsOfUser_Call) Return(_a0 []string, _a1 error) *AccesscontrolRBACProvider_DomainsOfUser_Call
- func (_c *AccesscontrolRBACProvider_DomainsOfUser_Call) Run(run func(user string)) *AccesscontrolRBACProvider_DomainsOfUser_Call
- func (_c *AccesscontrolRBACProvider_DomainsOfUser_Call) RunAndReturn(run func(string) ([]string, error)) *AccesscontrolRBACProvider_DomainsOfUser_Call
- type AccesscontrolRBACProvider_Expecter
- type AccesscontrolRBACProvider_GetDomainRBAC_Call
- func (_c *AccesscontrolRBACProvider_GetDomainRBAC_Call) Return(_a0 accesscontrol.AccessControl) *AccesscontrolRBACProvider_GetDomainRBAC_Call
- func (_c *AccesscontrolRBACProvider_GetDomainRBAC_Call) Run(run func(domain string)) *AccesscontrolRBACProvider_GetDomainRBAC_Call
- func (_c *AccesscontrolRBACProvider_GetDomainRBAC_Call) RunAndReturn(run func(string) accesscontrol.AccessControl) *AccesscontrolRBACProvider_GetDomainRBAC_Call
- type ApiAssetRepository
- type ApiAssetRepository_Expecter
- type ApiAssetRepository_ReadBySlug_Call
- func (_c *ApiAssetRepository_ReadBySlug_Call) Return(_a0 models.Asset, _a1 error) *ApiAssetRepository_ReadBySlug_Call
- func (_c *ApiAssetRepository_ReadBySlug_Call) Run(run func(projectID uuid.UUID, slug string)) *ApiAssetRepository_ReadBySlug_Call
- func (_c *ApiAssetRepository_ReadBySlug_Call) RunAndReturn(run func(uuid.UUID, string) (models.Asset, error)) *ApiAssetRepository_ReadBySlug_Call
- type ApiOrgRepository
- type ApiOrgRepository_Expecter
- type ApiOrgRepository_ReadBySlug_Call
- func (_c *ApiOrgRepository_ReadBySlug_Call) Return(_a0 models.Org, _a1 error) *ApiOrgRepository_ReadBySlug_Call
- func (_c *ApiOrgRepository_ReadBySlug_Call) Run(run func(slugOrId string)) *ApiOrgRepository_ReadBySlug_Call
- func (_c *ApiOrgRepository_ReadBySlug_Call) RunAndReturn(run func(string) (models.Org, error)) *ApiOrgRepository_ReadBySlug_Call
- type ApiProjectRepository
- type ApiProjectRepository_Expecter
- type ApiProjectRepository_ReadBySlug_Call
- func (_c *ApiProjectRepository_ReadBySlug_Call) Return(_a0 models.Project, _a1 error) *ApiProjectRepository_ReadBySlug_Call
- func (_c *ApiProjectRepository_ReadBySlug_Call) Run(run func(organizationID uuid.UUID, slug string)) *ApiProjectRepository_ReadBySlug_Call
- func (_c *ApiProjectRepository_ReadBySlug_Call) RunAndReturn(run func(uuid.UUID, string) (models.Project, error)) *ApiProjectRepository_ReadBySlug_Call
- type AssetAssetComponentsLoader
- func (_m *AssetAssetComponentsLoader) EXPECT() *AssetAssetComponentsLoader_Expecter
- func (_m *AssetAssetComponentsLoader) GetVersions(tx *gorm.DB, _a1 models.Asset) ([]string, error)
- func (_m *AssetAssetComponentsLoader) LoadComponents(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) LoadComponents(tx interface{}, _a1 interface{}, scanType interface{}, version interface{}) *AssetAssetComponentsLoader_LoadComponents_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_LoadComponents_Call
- func (_c *AssetAssetComponentsLoader_LoadComponents_Call) Return(_a0 []models.ComponentDependency, _a1 error) *AssetAssetComponentsLoader_LoadComponents_Call
- func (_c *AssetAssetComponentsLoader_LoadComponents_Call) Run(run func(tx *gorm.DB, _a1 models.Asset, scanType string, version string)) *AssetAssetComponentsLoader_LoadComponents_Call
- func (_c *AssetAssetComponentsLoader_LoadComponents_Call) RunAndReturn(...) *AssetAssetComponentsLoader_LoadComponents_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 AssetAssetRepository_Transaction_Call
- func (_c *AssetAssetRepository_Transaction_Call) Return(_a0 error) *AssetAssetRepository_Transaction_Call
- func (_c *AssetAssetRepository_Transaction_Call) Run(run func(txFunc func(*gorm.DB) error)) *AssetAssetRepository_Transaction_Call
- func (_c *AssetAssetRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *AssetAssetRepository_Transaction_Call
- type AssetAssetService
- func (_m *AssetAssetService) BuildSBOM(_a0 models.Asset, version string, orgName string, ...) *cyclonedx.BOM
- func (_m *AssetAssetService) BuildVeX(_a0 models.Asset, version string, orgName string, ...) *cyclonedx.BOM
- func (_m *AssetAssetService) EXPECT() *AssetAssetService_Expecter
- func (_m *AssetAssetService) UpdateAssetRequirements(_a0 models.Asset, responsible string, justification string) error
- 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_BuildVeX_Call
- func (_c *AssetAssetService_BuildVeX_Call) Return(_a0 *cyclonedx.BOM) *AssetAssetService_BuildVeX_Call
- func (_c *AssetAssetService_BuildVeX_Call) Run(run func(_a0 models.Asset, version string, orgName string, ...)) *AssetAssetService_BuildVeX_Call
- func (_c *AssetAssetService_BuildVeX_Call) RunAndReturn(...) *AssetAssetService_BuildVeX_Call
- type AssetAssetService_Expecter
- func (_e *AssetAssetService_Expecter) BuildSBOM(_a0 interface{}, version interface{}, orgName interface{}, ...) *AssetAssetService_BuildSBOM_Call
- func (_e *AssetAssetService_Expecter) BuildVeX(_a0 interface{}, version interface{}, orgName interface{}, ...) *AssetAssetService_BuildVeX_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) LoadComponents(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) LoadComponents(tx interface{}, _a1 interface{}, scanType interface{}, version interface{}) *AssetComponentRepository_LoadComponents_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_LoadComponents_Call
- func (_c *AssetComponentRepository_LoadComponents_Call) Return(_a0 []models.ComponentDependency, _a1 error) *AssetComponentRepository_LoadComponents_Call
- func (_c *AssetComponentRepository_LoadComponents_Call) Run(run func(tx *gorm.DB, _a1 models.Asset, scanType string, version string)) *AssetComponentRepository_LoadComponents_Call
- func (_c *AssetComponentRepository_LoadComponents_Call) RunAndReturn(...) *AssetComponentRepository_LoadComponents_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, ...) (models.FlawEvent, 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, doRiskManagement bool) 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 models.FlawEvent, _a1 error) *AssetFlawService_UpdateFlawState_Call
- func (_c *AssetFlawService_UpdateFlawState_Call) Run(...) *AssetFlawService_UpdateFlawState_Call
- func (_c *AssetFlawService_UpdateFlawState_Call) RunAndReturn(...) *AssetFlawService_UpdateFlawState_Call
- type AssetFlawService_UserDetectedFlaws_Call
- func (_c *AssetFlawService_UserDetectedFlaws_Call) Return(_a0 error) *AssetFlawService_UserDetectedFlaws_Call
- func (_c *AssetFlawService_UserDetectedFlaws_Call) Run(...) *AssetFlawService_UserDetectedFlaws_Call
- func (_c *AssetFlawService_UserDetectedFlaws_Call) RunAndReturn(run func(*gorm.DB, string, []models.Flaw, models.Asset, bool) 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(...) *AssetFlawService_UserFixedFlaws_Call
- func (_c *AssetFlawService_UserFixedFlaws_Call) RunAndReturn(run func(*gorm.DB, string, []models.Flaw, bool) error) *AssetFlawService_UserFixedFlaws_Call
- type AssetRepository
- func (_m *AssetRepository) Activate(tx *gorm.DB, id uuid.UUID) error
- 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) ReadBySlugUnscoped(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_Activate_Call
- func (_c *AssetRepository_Activate_Call) Return(_a0 error) *AssetRepository_Activate_Call
- func (_c *AssetRepository_Activate_Call) Run(run func(tx *gorm.DB, id uuid.UUID)) *AssetRepository_Activate_Call
- func (_c *AssetRepository_Activate_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *AssetRepository_Activate_Call
- 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) Activate(tx interface{}, id interface{}) *AssetRepository_Activate_Call
- 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) ReadBySlugUnscoped(projectID interface{}, slug interface{}) *AssetRepository_ReadBySlugUnscoped_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_ReadBySlugUnscoped_Call
- func (_c *AssetRepository_ReadBySlugUnscoped_Call) Return(_a0 models.Asset, _a1 error) *AssetRepository_ReadBySlugUnscoped_Call
- func (_c *AssetRepository_ReadBySlugUnscoped_Call) Run(run func(projectID uuid.UUID, slug string)) *AssetRepository_ReadBySlugUnscoped_Call
- func (_c *AssetRepository_ReadBySlugUnscoped_Call) RunAndReturn(run func(uuid.UUID, string) (models.Asset, error)) *AssetRepository_ReadBySlugUnscoped_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 AssetSupplyChainRepository
- type AssetSupplyChainRepository_Expecter
- type AssetSupplyChainRepository_PercentageOfVerifiedSupplyChains_Call
- func (_c *AssetSupplyChainRepository_PercentageOfVerifiedSupplyChains_Call) Return(_a0 float64, _a1 error) *AssetSupplyChainRepository_PercentageOfVerifiedSupplyChains_Call
- func (_c *AssetSupplyChainRepository_PercentageOfVerifiedSupplyChains_Call) Run(run func(assetID uuid.UUID)) *AssetSupplyChainRepository_PercentageOfVerifiedSupplyChains_Call
- func (_c *AssetSupplyChainRepository_PercentageOfVerifiedSupplyChains_Call) RunAndReturn(run func(uuid.UUID) (float64, error)) *AssetSupplyChainRepository_PercentageOfVerifiedSupplyChains_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 CoreIntegrationAggregate
- func (_m *CoreIntegrationAggregate) EXPECT() *CoreIntegrationAggregate_Expecter
- func (_m *CoreIntegrationAggregate) GetID() core.IntegrationID
- func (_m *CoreIntegrationAggregate) GetIntegration(id core.IntegrationID) core.ThirdPartyIntegration
- func (_m *CoreIntegrationAggregate) GetUsers(org models.Org) []core.User
- func (_m *CoreIntegrationAggregate) HandleEvent(event interface{}) error
- func (_m *CoreIntegrationAggregate) HandleWebhook(ctx echo.Context) error
- func (_m *CoreIntegrationAggregate) IntegrationEnabled(ctx echo.Context) bool
- func (_m *CoreIntegrationAggregate) ListRepositories(ctx echo.Context) ([]core.Repository, error)
- func (_m *CoreIntegrationAggregate) WantsToHandleWebhook(ctx echo.Context) bool
- type CoreIntegrationAggregate_Expecter
- func (_e *CoreIntegrationAggregate_Expecter) GetID() *CoreIntegrationAggregate_GetID_Call
- func (_e *CoreIntegrationAggregate_Expecter) GetIntegration(id interface{}) *CoreIntegrationAggregate_GetIntegration_Call
- func (_e *CoreIntegrationAggregate_Expecter) GetUsers(org interface{}) *CoreIntegrationAggregate_GetUsers_Call
- func (_e *CoreIntegrationAggregate_Expecter) HandleEvent(event interface{}) *CoreIntegrationAggregate_HandleEvent_Call
- func (_e *CoreIntegrationAggregate_Expecter) HandleWebhook(ctx interface{}) *CoreIntegrationAggregate_HandleWebhook_Call
- func (_e *CoreIntegrationAggregate_Expecter) IntegrationEnabled(ctx interface{}) *CoreIntegrationAggregate_IntegrationEnabled_Call
- func (_e *CoreIntegrationAggregate_Expecter) ListRepositories(ctx interface{}) *CoreIntegrationAggregate_ListRepositories_Call
- func (_e *CoreIntegrationAggregate_Expecter) WantsToHandleWebhook(ctx interface{}) *CoreIntegrationAggregate_WantsToHandleWebhook_Call
- type CoreIntegrationAggregate_GetID_Call
- func (_c *CoreIntegrationAggregate_GetID_Call) Return(_a0 core.IntegrationID) *CoreIntegrationAggregate_GetID_Call
- func (_c *CoreIntegrationAggregate_GetID_Call) Run(run func()) *CoreIntegrationAggregate_GetID_Call
- func (_c *CoreIntegrationAggregate_GetID_Call) RunAndReturn(run func() core.IntegrationID) *CoreIntegrationAggregate_GetID_Call
- type CoreIntegrationAggregate_GetIntegration_Call
- func (_c *CoreIntegrationAggregate_GetIntegration_Call) Return(_a0 core.ThirdPartyIntegration) *CoreIntegrationAggregate_GetIntegration_Call
- func (_c *CoreIntegrationAggregate_GetIntegration_Call) Run(run func(id core.IntegrationID)) *CoreIntegrationAggregate_GetIntegration_Call
- func (_c *CoreIntegrationAggregate_GetIntegration_Call) RunAndReturn(run func(core.IntegrationID) core.ThirdPartyIntegration) *CoreIntegrationAggregate_GetIntegration_Call
- type CoreIntegrationAggregate_GetUsers_Call
- func (_c *CoreIntegrationAggregate_GetUsers_Call) Return(_a0 []core.User) *CoreIntegrationAggregate_GetUsers_Call
- func (_c *CoreIntegrationAggregate_GetUsers_Call) Run(run func(org models.Org)) *CoreIntegrationAggregate_GetUsers_Call
- func (_c *CoreIntegrationAggregate_GetUsers_Call) RunAndReturn(run func(models.Org) []core.User) *CoreIntegrationAggregate_GetUsers_Call
- type CoreIntegrationAggregate_HandleEvent_Call
- func (_c *CoreIntegrationAggregate_HandleEvent_Call) Return(_a0 error) *CoreIntegrationAggregate_HandleEvent_Call
- func (_c *CoreIntegrationAggregate_HandleEvent_Call) Run(run func(event interface{})) *CoreIntegrationAggregate_HandleEvent_Call
- func (_c *CoreIntegrationAggregate_HandleEvent_Call) RunAndReturn(run func(interface{}) error) *CoreIntegrationAggregate_HandleEvent_Call
- type CoreIntegrationAggregate_HandleWebhook_Call
- func (_c *CoreIntegrationAggregate_HandleWebhook_Call) Return(_a0 error) *CoreIntegrationAggregate_HandleWebhook_Call
- func (_c *CoreIntegrationAggregate_HandleWebhook_Call) Run(run func(ctx echo.Context)) *CoreIntegrationAggregate_HandleWebhook_Call
- func (_c *CoreIntegrationAggregate_HandleWebhook_Call) RunAndReturn(run func(echo.Context) error) *CoreIntegrationAggregate_HandleWebhook_Call
- type CoreIntegrationAggregate_IntegrationEnabled_Call
- func (_c *CoreIntegrationAggregate_IntegrationEnabled_Call) Return(_a0 bool) *CoreIntegrationAggregate_IntegrationEnabled_Call
- func (_c *CoreIntegrationAggregate_IntegrationEnabled_Call) Run(run func(ctx echo.Context)) *CoreIntegrationAggregate_IntegrationEnabled_Call
- func (_c *CoreIntegrationAggregate_IntegrationEnabled_Call) RunAndReturn(run func(echo.Context) bool) *CoreIntegrationAggregate_IntegrationEnabled_Call
- type CoreIntegrationAggregate_ListRepositories_Call
- func (_c *CoreIntegrationAggregate_ListRepositories_Call) Return(_a0 []core.Repository, _a1 error) *CoreIntegrationAggregate_ListRepositories_Call
- func (_c *CoreIntegrationAggregate_ListRepositories_Call) Run(run func(ctx echo.Context)) *CoreIntegrationAggregate_ListRepositories_Call
- func (_c *CoreIntegrationAggregate_ListRepositories_Call) RunAndReturn(run func(echo.Context) ([]core.Repository, error)) *CoreIntegrationAggregate_ListRepositories_Call
- type CoreIntegrationAggregate_WantsToHandleWebhook_Call
- func (_c *CoreIntegrationAggregate_WantsToHandleWebhook_Call) Return(_a0 bool) *CoreIntegrationAggregate_WantsToHandleWebhook_Call
- func (_c *CoreIntegrationAggregate_WantsToHandleWebhook_Call) Run(run func(ctx echo.Context)) *CoreIntegrationAggregate_WantsToHandleWebhook_Call
- func (_c *CoreIntegrationAggregate_WantsToHandleWebhook_Call) RunAndReturn(run func(echo.Context) bool) *CoreIntegrationAggregate_WantsToHandleWebhook_Call
- type CoreThirdPartyIntegration
- func (_m *CoreThirdPartyIntegration) EXPECT() *CoreThirdPartyIntegration_Expecter
- func (_m *CoreThirdPartyIntegration) GetID() core.IntegrationID
- func (_m *CoreThirdPartyIntegration) GetUsers(org models.Org) []core.User
- 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) WantsToHandleWebhook(ctx echo.Context) bool
- type CoreThirdPartyIntegration_Expecter
- func (_e *CoreThirdPartyIntegration_Expecter) GetID() *CoreThirdPartyIntegration_GetID_Call
- func (_e *CoreThirdPartyIntegration_Expecter) GetUsers(org interface{}) *CoreThirdPartyIntegration_GetUsers_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) WantsToHandleWebhook(ctx interface{}) *CoreThirdPartyIntegration_WantsToHandleWebhook_Call
- type CoreThirdPartyIntegration_GetID_Call
- func (_c *CoreThirdPartyIntegration_GetID_Call) Return(_a0 core.IntegrationID) *CoreThirdPartyIntegration_GetID_Call
- func (_c *CoreThirdPartyIntegration_GetID_Call) Run(run func()) *CoreThirdPartyIntegration_GetID_Call
- func (_c *CoreThirdPartyIntegration_GetID_Call) RunAndReturn(run func() core.IntegrationID) *CoreThirdPartyIntegration_GetID_Call
- type CoreThirdPartyIntegration_GetUsers_Call
- func (_c *CoreThirdPartyIntegration_GetUsers_Call) Return(_a0 []core.User) *CoreThirdPartyIntegration_GetUsers_Call
- func (_c *CoreThirdPartyIntegration_GetUsers_Call) Run(run func(org models.Org)) *CoreThirdPartyIntegration_GetUsers_Call
- func (_c *CoreThirdPartyIntegration_GetUsers_Call) RunAndReturn(run func(models.Org) []core.User) *CoreThirdPartyIntegration_GetUsers_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_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 models.FlawEvent, _a1 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(...) *FlawFlawService_UpdateFlawState_Call
- type FlawLeaderElector
- type FlawLeaderElector_Expecter
- type FlawLeaderElector_IfLeader_Call
- func (_c *FlawLeaderElector_IfLeader_Call) Return() *FlawLeaderElector_IfLeader_Call
- func (_c *FlawLeaderElector_IfLeader_Call) Run(run func(ctx context.Context, fn func() error)) *FlawLeaderElector_IfLeader_Call
- func (_c *FlawLeaderElector_IfLeader_Call) RunAndReturn(run func(context.Context, func() error)) *FlawLeaderElector_IfLeader_Call
- type FlawProjectService
- type FlawProjectService_Expecter
- type FlawProjectService_ListAllowedProjects_Call
- func (_c *FlawProjectService_ListAllowedProjects_Call) Return(_a0 []models.Project, _a1 error) *FlawProjectService_ListAllowedProjects_Call
- func (_c *FlawProjectService_ListAllowedProjects_Call) Run(run func(c echo.Context)) *FlawProjectService_ListAllowedProjects_Call
- func (_c *FlawProjectService_ListAllowedProjects_Call) RunAndReturn(run func(echo.Context) ([]models.Project, error)) *FlawProjectService_ListAllowedProjects_Call
- type FlawRepository
- func (_m *FlawRepository) Activate(tx *gorm.DB, id string) error
- 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) GetFlawsByAssetIdPagedAndFlat(tx *gorm.DB, assetId uuid.UUID, pageInfo core.PageInfo, search string, ...) (core.Paged[models.Flaw], error)
- func (_m *FlawRepository) GetFlawsByOrgIdPaged(tx *gorm.DB, userAllowedProjectIds []string, pageInfo core.PageInfo, ...) (core.Paged[models.Flaw], error)
- func (_m *FlawRepository) GetFlawsByProjectIdPaged(tx *gorm.DB, projectID uuid.UUID, pageInfo core.PageInfo, search string, ...) (core.Paged[models.Flaw], error)
- 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_Activate_Call
- func (_c *FlawRepository_Activate_Call) Return(_a0 error) *FlawRepository_Activate_Call
- func (_c *FlawRepository_Activate_Call) Run(run func(tx *gorm.DB, id string)) *FlawRepository_Activate_Call
- func (_c *FlawRepository_Activate_Call) RunAndReturn(run func(*gorm.DB, string) error) *FlawRepository_Activate_Call
- 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) Activate(tx interface{}, id interface{}) *FlawRepository_Activate_Call
- 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) GetFlawsByAssetIdPagedAndFlat(tx interface{}, assetId interface{}, pageInfo interface{}, search interface{}, ...) *FlawRepository_GetFlawsByAssetIdPagedAndFlat_Call
- func (_e *FlawRepository_Expecter) GetFlawsByOrgIdPaged(tx interface{}, userAllowedProjectIds interface{}, pageInfo interface{}, ...) *FlawRepository_GetFlawsByOrgIdPaged_Call
- func (_e *FlawRepository_Expecter) GetFlawsByProjectIdPaged(tx interface{}, projectID interface{}, pageInfo interface{}, ...) *FlawRepository_GetFlawsByProjectIdPaged_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_GetFlawsByAssetIdPagedAndFlat_Call
- func (_c *FlawRepository_GetFlawsByAssetIdPagedAndFlat_Call) Return(_a0 core.Paged[models.Flaw], _a1 error) *FlawRepository_GetFlawsByAssetIdPagedAndFlat_Call
- func (_c *FlawRepository_GetFlawsByAssetIdPagedAndFlat_Call) Run(...) *FlawRepository_GetFlawsByAssetIdPagedAndFlat_Call
- func (_c *FlawRepository_GetFlawsByAssetIdPagedAndFlat_Call) RunAndReturn(...) *FlawRepository_GetFlawsByAssetIdPagedAndFlat_Call
- type FlawRepository_GetFlawsByOrgIdPaged_Call
- func (_c *FlawRepository_GetFlawsByOrgIdPaged_Call) Return(_a0 core.Paged[models.Flaw], _a1 error) *FlawRepository_GetFlawsByOrgIdPaged_Call
- func (_c *FlawRepository_GetFlawsByOrgIdPaged_Call) Run(...) *FlawRepository_GetFlawsByOrgIdPaged_Call
- func (_c *FlawRepository_GetFlawsByOrgIdPaged_Call) RunAndReturn(...) *FlawRepository_GetFlawsByOrgIdPaged_Call
- type FlawRepository_GetFlawsByProjectIdPaged_Call
- func (_c *FlawRepository_GetFlawsByProjectIdPaged_Call) Return(_a0 core.Paged[models.Flaw], _a1 error) *FlawRepository_GetFlawsByProjectIdPaged_Call
- func (_c *FlawRepository_GetFlawsByProjectIdPaged_Call) Run(...) *FlawRepository_GetFlawsByProjectIdPaged_Call
- func (_c *FlawRepository_GetFlawsByProjectIdPaged_Call) RunAndReturn(...) *FlawRepository_GetFlawsByProjectIdPaged_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 IntegrationsAssetRepository
- type IntegrationsAssetRepository_Expecter
- type IntegrationsAssetRepository_Read_Call
- func (_c *IntegrationsAssetRepository_Read_Call) Return(_a0 models.Asset, _a1 error) *IntegrationsAssetRepository_Read_Call
- func (_c *IntegrationsAssetRepository_Read_Call) Run(run func(id uuid.UUID)) *IntegrationsAssetRepository_Read_Call
- func (_c *IntegrationsAssetRepository_Read_Call) RunAndReturn(run func(uuid.UUID) (models.Asset, error)) *IntegrationsAssetRepository_Read_Call
- type IntegrationsExternalUserRepository
- func (_m *IntegrationsExternalUserRepository) EXPECT() *IntegrationsExternalUserRepository_Expecter
- func (_m *IntegrationsExternalUserRepository) FindByOrgID(tx *gorm.DB, orgID uuid.UUID) ([]models.ExternalUser, error)
- func (_m *IntegrationsExternalUserRepository) GetDB(tx *gorm.DB) *gorm.DB
- func (_m *IntegrationsExternalUserRepository) Save(db *gorm.DB, user *models.ExternalUser) error
- type IntegrationsExternalUserRepository_Expecter
- func (_e *IntegrationsExternalUserRepository_Expecter) FindByOrgID(tx interface{}, orgID interface{}) *IntegrationsExternalUserRepository_FindByOrgID_Call
- func (_e *IntegrationsExternalUserRepository_Expecter) GetDB(tx interface{}) *IntegrationsExternalUserRepository_GetDB_Call
- func (_e *IntegrationsExternalUserRepository_Expecter) Save(db interface{}, user interface{}) *IntegrationsExternalUserRepository_Save_Call
- type IntegrationsExternalUserRepository_FindByOrgID_Call
- func (_c *IntegrationsExternalUserRepository_FindByOrgID_Call) Return(_a0 []models.ExternalUser, _a1 error) *IntegrationsExternalUserRepository_FindByOrgID_Call
- func (_c *IntegrationsExternalUserRepository_FindByOrgID_Call) Run(run func(tx *gorm.DB, orgID uuid.UUID)) *IntegrationsExternalUserRepository_FindByOrgID_Call
- func (_c *IntegrationsExternalUserRepository_FindByOrgID_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) ([]models.ExternalUser, error)) *IntegrationsExternalUserRepository_FindByOrgID_Call
- type IntegrationsExternalUserRepository_GetDB_Call
- func (_c *IntegrationsExternalUserRepository_GetDB_Call) Return(_a0 *gorm.DB) *IntegrationsExternalUserRepository_GetDB_Call
- func (_c *IntegrationsExternalUserRepository_GetDB_Call) Run(run func(tx *gorm.DB)) *IntegrationsExternalUserRepository_GetDB_Call
- func (_c *IntegrationsExternalUserRepository_GetDB_Call) RunAndReturn(run func(*gorm.DB) *gorm.DB) *IntegrationsExternalUserRepository_GetDB_Call
- type IntegrationsExternalUserRepository_Save_Call
- func (_c *IntegrationsExternalUserRepository_Save_Call) Return(_a0 error) *IntegrationsExternalUserRepository_Save_Call
- func (_c *IntegrationsExternalUserRepository_Save_Call) Run(run func(db *gorm.DB, user *models.ExternalUser)) *IntegrationsExternalUserRepository_Save_Call
- func (_c *IntegrationsExternalUserRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.ExternalUser) error) *IntegrationsExternalUserRepository_Save_Call
- type IntegrationsFlawEventRepository
- type IntegrationsFlawEventRepository_Expecter
- type IntegrationsFlawEventRepository_Save_Call
- func (_c *IntegrationsFlawEventRepository_Save_Call) Return(_a0 error) *IntegrationsFlawEventRepository_Save_Call
- func (_c *IntegrationsFlawEventRepository_Save_Call) Run(run func(db *gorm.DB, event *models.FlawEvent)) *IntegrationsFlawEventRepository_Save_Call
- func (_c *IntegrationsFlawEventRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.FlawEvent) error) *IntegrationsFlawEventRepository_Save_Call
- type IntegrationsFlawRepository
- func (_m *IntegrationsFlawRepository) EXPECT() *IntegrationsFlawRepository_Expecter
- func (_m *IntegrationsFlawRepository) FindByTicketID(tx *gorm.DB, ticketID string) (models.Flaw, error)
- func (_m *IntegrationsFlawRepository) GetOrgFromFlawID(tx *gorm.DB, flawID string) (models.Org, error)
- func (_m *IntegrationsFlawRepository) Read(id string) (models.Flaw, error)
- func (_m *IntegrationsFlawRepository) Save(db *gorm.DB, flaw *models.Flaw) error
- func (_m *IntegrationsFlawRepository) Transaction(fn func(*gorm.DB) error) error
- type IntegrationsFlawRepository_Expecter
- func (_e *IntegrationsFlawRepository_Expecter) FindByTicketID(tx interface{}, ticketID interface{}) *IntegrationsFlawRepository_FindByTicketID_Call
- func (_e *IntegrationsFlawRepository_Expecter) GetOrgFromFlawID(tx interface{}, flawID interface{}) *IntegrationsFlawRepository_GetOrgFromFlawID_Call
- func (_e *IntegrationsFlawRepository_Expecter) Read(id interface{}) *IntegrationsFlawRepository_Read_Call
- func (_e *IntegrationsFlawRepository_Expecter) Save(db interface{}, flaw interface{}) *IntegrationsFlawRepository_Save_Call
- func (_e *IntegrationsFlawRepository_Expecter) Transaction(fn interface{}) *IntegrationsFlawRepository_Transaction_Call
- type IntegrationsFlawRepository_FindByTicketID_Call
- func (_c *IntegrationsFlawRepository_FindByTicketID_Call) Return(_a0 models.Flaw, _a1 error) *IntegrationsFlawRepository_FindByTicketID_Call
- func (_c *IntegrationsFlawRepository_FindByTicketID_Call) Run(run func(tx *gorm.DB, ticketID string)) *IntegrationsFlawRepository_FindByTicketID_Call
- func (_c *IntegrationsFlawRepository_FindByTicketID_Call) RunAndReturn(run func(*gorm.DB, string) (models.Flaw, error)) *IntegrationsFlawRepository_FindByTicketID_Call
- type IntegrationsFlawRepository_GetOrgFromFlawID_Call
- func (_c *IntegrationsFlawRepository_GetOrgFromFlawID_Call) Return(_a0 models.Org, _a1 error) *IntegrationsFlawRepository_GetOrgFromFlawID_Call
- func (_c *IntegrationsFlawRepository_GetOrgFromFlawID_Call) Run(run func(tx *gorm.DB, flawID string)) *IntegrationsFlawRepository_GetOrgFromFlawID_Call
- func (_c *IntegrationsFlawRepository_GetOrgFromFlawID_Call) RunAndReturn(run func(*gorm.DB, string) (models.Org, error)) *IntegrationsFlawRepository_GetOrgFromFlawID_Call
- type IntegrationsFlawRepository_Read_Call
- func (_c *IntegrationsFlawRepository_Read_Call) Return(_a0 models.Flaw, _a1 error) *IntegrationsFlawRepository_Read_Call
- func (_c *IntegrationsFlawRepository_Read_Call) Run(run func(id string)) *IntegrationsFlawRepository_Read_Call
- func (_c *IntegrationsFlawRepository_Read_Call) RunAndReturn(run func(string) (models.Flaw, error)) *IntegrationsFlawRepository_Read_Call
- type IntegrationsFlawRepository_Save_Call
- func (_c *IntegrationsFlawRepository_Save_Call) Return(_a0 error) *IntegrationsFlawRepository_Save_Call
- func (_c *IntegrationsFlawRepository_Save_Call) Run(run func(db *gorm.DB, flaw *models.Flaw)) *IntegrationsFlawRepository_Save_Call
- func (_c *IntegrationsFlawRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.Flaw) error) *IntegrationsFlawRepository_Save_Call
- type IntegrationsFlawRepository_Transaction_Call
- func (_c *IntegrationsFlawRepository_Transaction_Call) Return(_a0 error) *IntegrationsFlawRepository_Transaction_Call
- func (_c *IntegrationsFlawRepository_Transaction_Call) Run(run func(fn func(*gorm.DB) error)) *IntegrationsFlawRepository_Transaction_Call
- func (_c *IntegrationsFlawRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *IntegrationsFlawRepository_Transaction_Call
- type IntegrationsFlawService
- type IntegrationsFlawService_ApplyAndSave_Call
- func (_c *IntegrationsFlawService_ApplyAndSave_Call) Return(_a0 error) *IntegrationsFlawService_ApplyAndSave_Call
- func (_c *IntegrationsFlawService_ApplyAndSave_Call) Run(run func(tx *gorm.DB, flaw *models.Flaw, flawEvent *models.FlawEvent)) *IntegrationsFlawService_ApplyAndSave_Call
- func (_c *IntegrationsFlawService_ApplyAndSave_Call) RunAndReturn(run func(*gorm.DB, *models.Flaw, *models.FlawEvent) error) *IntegrationsFlawService_ApplyAndSave_Call
- type IntegrationsFlawService_Expecter
- 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 IntegrationsGithubClientFacade
- func (_m *IntegrationsGithubClientFacade) CreateIssue(ctx context.Context, owner string, repo string, issue *github.IssueRequest) (*github.Issue, *github.Response, error)
- func (_m *IntegrationsGithubClientFacade) CreateIssueComment(ctx context.Context, owner string, repo string, number int, ...) (*github.IssueComment, *github.Response, error)
- func (_m *IntegrationsGithubClientFacade) EXPECT() *IntegrationsGithubClientFacade_Expecter
- func (_m *IntegrationsGithubClientFacade) EditIssue(ctx context.Context, owner string, repo string, number int, ...) (*github.Issue, *github.Response, error)
- func (_m *IntegrationsGithubClientFacade) EditIssueLabel(ctx context.Context, owner string, repo string, name string, ...) (*github.Label, *github.Response, error)
- type IntegrationsGithubClientFacade_CreateIssueComment_Call
- func (_c *IntegrationsGithubClientFacade_CreateIssueComment_Call) Return(_a0 *github.IssueComment, _a1 *github.Response, _a2 error) *IntegrationsGithubClientFacade_CreateIssueComment_Call
- func (_c *IntegrationsGithubClientFacade_CreateIssueComment_Call) Run(run func(ctx context.Context, owner string, repo string, number int, ...)) *IntegrationsGithubClientFacade_CreateIssueComment_Call
- func (_c *IntegrationsGithubClientFacade_CreateIssueComment_Call) RunAndReturn(...) *IntegrationsGithubClientFacade_CreateIssueComment_Call
- type IntegrationsGithubClientFacade_CreateIssue_Call
- func (_c *IntegrationsGithubClientFacade_CreateIssue_Call) Return(_a0 *github.Issue, _a1 *github.Response, _a2 error) *IntegrationsGithubClientFacade_CreateIssue_Call
- func (_c *IntegrationsGithubClientFacade_CreateIssue_Call) Run(...) *IntegrationsGithubClientFacade_CreateIssue_Call
- func (_c *IntegrationsGithubClientFacade_CreateIssue_Call) RunAndReturn(...) *IntegrationsGithubClientFacade_CreateIssue_Call
- type IntegrationsGithubClientFacade_EditIssueLabel_Call
- func (_c *IntegrationsGithubClientFacade_EditIssueLabel_Call) Return(_a0 *github.Label, _a1 *github.Response, _a2 error) *IntegrationsGithubClientFacade_EditIssueLabel_Call
- func (_c *IntegrationsGithubClientFacade_EditIssueLabel_Call) Run(run func(ctx context.Context, owner string, repo string, name string, ...)) *IntegrationsGithubClientFacade_EditIssueLabel_Call
- func (_c *IntegrationsGithubClientFacade_EditIssueLabel_Call) RunAndReturn(...) *IntegrationsGithubClientFacade_EditIssueLabel_Call
- type IntegrationsGithubClientFacade_EditIssue_Call
- func (_c *IntegrationsGithubClientFacade_EditIssue_Call) Return(_a0 *github.Issue, _a1 *github.Response, _a2 error) *IntegrationsGithubClientFacade_EditIssue_Call
- func (_c *IntegrationsGithubClientFacade_EditIssue_Call) Run(run func(ctx context.Context, owner string, repo string, number int, ...)) *IntegrationsGithubClientFacade_EditIssue_Call
- func (_c *IntegrationsGithubClientFacade_EditIssue_Call) RunAndReturn(...) *IntegrationsGithubClientFacade_EditIssue_Call
- type IntegrationsGithubClientFacade_Expecter
- func (_e *IntegrationsGithubClientFacade_Expecter) CreateIssue(ctx interface{}, owner interface{}, repo interface{}, issue interface{}) *IntegrationsGithubClientFacade_CreateIssue_Call
- func (_e *IntegrationsGithubClientFacade_Expecter) CreateIssueComment(ctx interface{}, owner interface{}, repo interface{}, number interface{}, ...) *IntegrationsGithubClientFacade_CreateIssueComment_Call
- func (_e *IntegrationsGithubClientFacade_Expecter) EditIssue(ctx interface{}, owner interface{}, repo interface{}, number interface{}, ...) *IntegrationsGithubClientFacade_EditIssue_Call
- func (_e *IntegrationsGithubClientFacade_Expecter) EditIssueLabel(ctx interface{}, owner interface{}, repo interface{}, name interface{}, ...) *IntegrationsGithubClientFacade_EditIssueLabel_Call
- type IntegrationsGithubUserRepository
- func (_m *IntegrationsGithubUserRepository) EXPECT() *IntegrationsGithubUserRepository_Expecter
- func (_m *IntegrationsGithubUserRepository) FindByOrgID(tx *gorm.DB, orgID uuid.UUID) ([]models.ExternalUser, error)
- func (_m *IntegrationsGithubUserRepository) GetDB(tx *gorm.DB) *gorm.DB
- func (_m *IntegrationsGithubUserRepository) Save(db *gorm.DB, user *models.ExternalUser) error
- type IntegrationsGithubUserRepository_Expecter
- func (_e *IntegrationsGithubUserRepository_Expecter) FindByOrgID(tx interface{}, orgID interface{}) *IntegrationsGithubUserRepository_FindByOrgID_Call
- func (_e *IntegrationsGithubUserRepository_Expecter) GetDB(tx interface{}) *IntegrationsGithubUserRepository_GetDB_Call
- func (_e *IntegrationsGithubUserRepository_Expecter) Save(db interface{}, user interface{}) *IntegrationsGithubUserRepository_Save_Call
- type IntegrationsGithubUserRepository_FindByOrgID_Call
- func (_c *IntegrationsGithubUserRepository_FindByOrgID_Call) Return(_a0 []models.ExternalUser, _a1 error) *IntegrationsGithubUserRepository_FindByOrgID_Call
- func (_c *IntegrationsGithubUserRepository_FindByOrgID_Call) Run(run func(tx *gorm.DB, orgID uuid.UUID)) *IntegrationsGithubUserRepository_FindByOrgID_Call
- func (_c *IntegrationsGithubUserRepository_FindByOrgID_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) ([]models.ExternalUser, error)) *IntegrationsGithubUserRepository_FindByOrgID_Call
- type IntegrationsGithubUserRepository_GetDB_Call
- func (_c *IntegrationsGithubUserRepository_GetDB_Call) Return(_a0 *gorm.DB) *IntegrationsGithubUserRepository_GetDB_Call
- func (_c *IntegrationsGithubUserRepository_GetDB_Call) Run(run func(tx *gorm.DB)) *IntegrationsGithubUserRepository_GetDB_Call
- func (_c *IntegrationsGithubUserRepository_GetDB_Call) RunAndReturn(run func(*gorm.DB) *gorm.DB) *IntegrationsGithubUserRepository_GetDB_Call
- type IntegrationsGithubUserRepository_Save_Call
- func (_c *IntegrationsGithubUserRepository_Save_Call) Return(_a0 error) *IntegrationsGithubUserRepository_Save_Call
- func (_c *IntegrationsGithubUserRepository_Save_Call) Run(run func(db *gorm.DB, user *models.ExternalUser)) *IntegrationsGithubUserRepository_Save_Call
- func (_c *IntegrationsGithubUserRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.ExternalUser) error) *IntegrationsGithubUserRepository_Save_Call
- type IntegrationsGitlabClientFacade
- func (_m *IntegrationsGitlabClientFacade) AddProjectHook(ctx context.Context, projectId int, opt *gitlab.AddProjectHookOptions) (*gitlab.ProjectHook, *gitlab.Response, error)
- func (_m *IntegrationsGitlabClientFacade) CreateIssue(ctx context.Context, pid int, opt *gitlab.CreateIssueOptions) (*gitlab.Issue, *gitlab.Response, error)
- func (_m *IntegrationsGitlabClientFacade) CreateIssueComment(ctx context.Context, pid int, issue int, opt *gitlab.CreateIssueNoteOptions) (*gitlab.Note, *gitlab.Response, error)
- func (_m *IntegrationsGitlabClientFacade) CreateMergeRequest(ctx context.Context, project string, opt *gitlab.CreateMergeRequestOptions) (*gitlab.MergeRequest, *gitlab.Response, error)
- func (_m *IntegrationsGitlabClientFacade) CreateVariable(ctx context.Context, projectId int, opt *gitlab.CreateProjectVariableOptions) (*gitlab.ProjectVariable, *gitlab.Response, error)
- func (_m *IntegrationsGitlabClientFacade) DeleteProjectHook(ctx context.Context, projectId int, hookId int) (*gitlab.Response, error)
- func (_m *IntegrationsGitlabClientFacade) EXPECT() *IntegrationsGitlabClientFacade_Expecter
- func (_m *IntegrationsGitlabClientFacade) EditIssue(ctx context.Context, pid int, issue int, opt *gitlab.UpdateIssueOptions) (*gitlab.Issue, *gitlab.Response, error)
- func (_m *IntegrationsGitlabClientFacade) EditIssueLabel(ctx context.Context, pid int, issue int, labels []*gitlab.CreateLabelOptions) (*gitlab.Response, error)
- func (_m *IntegrationsGitlabClientFacade) GetProject(ctx context.Context, projectId int) (*gitlab.Project, *gitlab.Response, error)
- func (_m *IntegrationsGitlabClientFacade) ListProjectHooks(ctx context.Context, projectId int, options *gitlab.ListProjectHooksOptions) ([]*gitlab.ProjectHook, *gitlab.Response, error)
- func (_m *IntegrationsGitlabClientFacade) ListVariables(ctx context.Context, projectId int, ...) ([]*gitlab.ProjectVariable, *gitlab.Response, error)
- func (_m *IntegrationsGitlabClientFacade) RemoveVariable(ctx context.Context, projectId int, key string) (*gitlab.Response, error)
- func (_m *IntegrationsGitlabClientFacade) UpdateVariable(ctx context.Context, projectId int, key string, ...) (*gitlab.ProjectVariable, *gitlab.Response, error)
- type IntegrationsGitlabClientFacade_AddProjectHook_Call
- func (_c *IntegrationsGitlabClientFacade_AddProjectHook_Call) Return(_a0 *gitlab.ProjectHook, _a1 *gitlab.Response, _a2 error) *IntegrationsGitlabClientFacade_AddProjectHook_Call
- func (_c *IntegrationsGitlabClientFacade_AddProjectHook_Call) Run(...) *IntegrationsGitlabClientFacade_AddProjectHook_Call
- func (_c *IntegrationsGitlabClientFacade_AddProjectHook_Call) RunAndReturn(...) *IntegrationsGitlabClientFacade_AddProjectHook_Call
- type IntegrationsGitlabClientFacade_CreateIssueComment_Call
- func (_c *IntegrationsGitlabClientFacade_CreateIssueComment_Call) Return(_a0 *gitlab.Note, _a1 *gitlab.Response, _a2 error) *IntegrationsGitlabClientFacade_CreateIssueComment_Call
- func (_c *IntegrationsGitlabClientFacade_CreateIssueComment_Call) Run(...) *IntegrationsGitlabClientFacade_CreateIssueComment_Call
- func (_c *IntegrationsGitlabClientFacade_CreateIssueComment_Call) RunAndReturn(...) *IntegrationsGitlabClientFacade_CreateIssueComment_Call
- type IntegrationsGitlabClientFacade_CreateIssue_Call
- func (_c *IntegrationsGitlabClientFacade_CreateIssue_Call) Return(_a0 *gitlab.Issue, _a1 *gitlab.Response, _a2 error) *IntegrationsGitlabClientFacade_CreateIssue_Call
- func (_c *IntegrationsGitlabClientFacade_CreateIssue_Call) Run(run func(ctx context.Context, pid int, opt *gitlab.CreateIssueOptions)) *IntegrationsGitlabClientFacade_CreateIssue_Call
- func (_c *IntegrationsGitlabClientFacade_CreateIssue_Call) RunAndReturn(...) *IntegrationsGitlabClientFacade_CreateIssue_Call
- type IntegrationsGitlabClientFacade_CreateMergeRequest_Call
- func (_c *IntegrationsGitlabClientFacade_CreateMergeRequest_Call) Return(_a0 *gitlab.MergeRequest, _a1 *gitlab.Response, _a2 error) *IntegrationsGitlabClientFacade_CreateMergeRequest_Call
- func (_c *IntegrationsGitlabClientFacade_CreateMergeRequest_Call) Run(...) *IntegrationsGitlabClientFacade_CreateMergeRequest_Call
- func (_c *IntegrationsGitlabClientFacade_CreateMergeRequest_Call) RunAndReturn(...) *IntegrationsGitlabClientFacade_CreateMergeRequest_Call
- type IntegrationsGitlabClientFacade_CreateVariable_Call
- func (_c *IntegrationsGitlabClientFacade_CreateVariable_Call) Return(_a0 *gitlab.ProjectVariable, _a1 *gitlab.Response, _a2 error) *IntegrationsGitlabClientFacade_CreateVariable_Call
- func (_c *IntegrationsGitlabClientFacade_CreateVariable_Call) Run(...) *IntegrationsGitlabClientFacade_CreateVariable_Call
- func (_c *IntegrationsGitlabClientFacade_CreateVariable_Call) RunAndReturn(...) *IntegrationsGitlabClientFacade_CreateVariable_Call
- type IntegrationsGitlabClientFacade_DeleteProjectHook_Call
- func (_c *IntegrationsGitlabClientFacade_DeleteProjectHook_Call) Return(_a0 *gitlab.Response, _a1 error) *IntegrationsGitlabClientFacade_DeleteProjectHook_Call
- func (_c *IntegrationsGitlabClientFacade_DeleteProjectHook_Call) Run(run func(ctx context.Context, projectId int, hookId int)) *IntegrationsGitlabClientFacade_DeleteProjectHook_Call
- func (_c *IntegrationsGitlabClientFacade_DeleteProjectHook_Call) RunAndReturn(run func(context.Context, int, int) (*gitlab.Response, error)) *IntegrationsGitlabClientFacade_DeleteProjectHook_Call
- type IntegrationsGitlabClientFacade_EditIssueLabel_Call
- func (_c *IntegrationsGitlabClientFacade_EditIssueLabel_Call) Return(_a0 *gitlab.Response, _a1 error) *IntegrationsGitlabClientFacade_EditIssueLabel_Call
- func (_c *IntegrationsGitlabClientFacade_EditIssueLabel_Call) Run(...) *IntegrationsGitlabClientFacade_EditIssueLabel_Call
- func (_c *IntegrationsGitlabClientFacade_EditIssueLabel_Call) RunAndReturn(...) *IntegrationsGitlabClientFacade_EditIssueLabel_Call
- type IntegrationsGitlabClientFacade_EditIssue_Call
- func (_c *IntegrationsGitlabClientFacade_EditIssue_Call) Return(_a0 *gitlab.Issue, _a1 *gitlab.Response, _a2 error) *IntegrationsGitlabClientFacade_EditIssue_Call
- func (_c *IntegrationsGitlabClientFacade_EditIssue_Call) Run(...) *IntegrationsGitlabClientFacade_EditIssue_Call
- func (_c *IntegrationsGitlabClientFacade_EditIssue_Call) RunAndReturn(...) *IntegrationsGitlabClientFacade_EditIssue_Call
- type IntegrationsGitlabClientFacade_Expecter
- func (_e *IntegrationsGitlabClientFacade_Expecter) AddProjectHook(ctx interface{}, projectId interface{}, opt interface{}) *IntegrationsGitlabClientFacade_AddProjectHook_Call
- func (_e *IntegrationsGitlabClientFacade_Expecter) CreateIssue(ctx interface{}, pid interface{}, opt interface{}) *IntegrationsGitlabClientFacade_CreateIssue_Call
- func (_e *IntegrationsGitlabClientFacade_Expecter) CreateIssueComment(ctx interface{}, pid interface{}, issue interface{}, opt interface{}) *IntegrationsGitlabClientFacade_CreateIssueComment_Call
- func (_e *IntegrationsGitlabClientFacade_Expecter) CreateMergeRequest(ctx interface{}, project interface{}, opt interface{}) *IntegrationsGitlabClientFacade_CreateMergeRequest_Call
- func (_e *IntegrationsGitlabClientFacade_Expecter) CreateVariable(ctx interface{}, projectId interface{}, opt interface{}) *IntegrationsGitlabClientFacade_CreateVariable_Call
- func (_e *IntegrationsGitlabClientFacade_Expecter) DeleteProjectHook(ctx interface{}, projectId interface{}, hookId interface{}) *IntegrationsGitlabClientFacade_DeleteProjectHook_Call
- func (_e *IntegrationsGitlabClientFacade_Expecter) EditIssue(ctx interface{}, pid interface{}, issue interface{}, opt interface{}) *IntegrationsGitlabClientFacade_EditIssue_Call
- func (_e *IntegrationsGitlabClientFacade_Expecter) EditIssueLabel(ctx interface{}, pid interface{}, issue interface{}, labels interface{}) *IntegrationsGitlabClientFacade_EditIssueLabel_Call
- func (_e *IntegrationsGitlabClientFacade_Expecter) GetProject(ctx interface{}, projectId interface{}) *IntegrationsGitlabClientFacade_GetProject_Call
- func (_e *IntegrationsGitlabClientFacade_Expecter) ListProjectHooks(ctx interface{}, projectId interface{}, options interface{}) *IntegrationsGitlabClientFacade_ListProjectHooks_Call
- func (_e *IntegrationsGitlabClientFacade_Expecter) ListVariables(ctx interface{}, projectId interface{}, options interface{}) *IntegrationsGitlabClientFacade_ListVariables_Call
- func (_e *IntegrationsGitlabClientFacade_Expecter) RemoveVariable(ctx interface{}, projectId interface{}, key interface{}) *IntegrationsGitlabClientFacade_RemoveVariable_Call
- func (_e *IntegrationsGitlabClientFacade_Expecter) UpdateVariable(ctx interface{}, projectId interface{}, key interface{}, opt interface{}) *IntegrationsGitlabClientFacade_UpdateVariable_Call
- type IntegrationsGitlabClientFacade_GetProject_Call
- func (_c *IntegrationsGitlabClientFacade_GetProject_Call) Return(_a0 *gitlab.Project, _a1 *gitlab.Response, _a2 error) *IntegrationsGitlabClientFacade_GetProject_Call
- func (_c *IntegrationsGitlabClientFacade_GetProject_Call) Run(run func(ctx context.Context, projectId int)) *IntegrationsGitlabClientFacade_GetProject_Call
- func (_c *IntegrationsGitlabClientFacade_GetProject_Call) RunAndReturn(run func(context.Context, int) (*gitlab.Project, *gitlab.Response, error)) *IntegrationsGitlabClientFacade_GetProject_Call
- type IntegrationsGitlabClientFacade_ListProjectHooks_Call
- func (_c *IntegrationsGitlabClientFacade_ListProjectHooks_Call) Return(_a0 []*gitlab.ProjectHook, _a1 *gitlab.Response, _a2 error) *IntegrationsGitlabClientFacade_ListProjectHooks_Call
- func (_c *IntegrationsGitlabClientFacade_ListProjectHooks_Call) Run(...) *IntegrationsGitlabClientFacade_ListProjectHooks_Call
- func (_c *IntegrationsGitlabClientFacade_ListProjectHooks_Call) RunAndReturn(...) *IntegrationsGitlabClientFacade_ListProjectHooks_Call
- type IntegrationsGitlabClientFacade_ListVariables_Call
- func (_c *IntegrationsGitlabClientFacade_ListVariables_Call) Return(_a0 []*gitlab.ProjectVariable, _a1 *gitlab.Response, _a2 error) *IntegrationsGitlabClientFacade_ListVariables_Call
- func (_c *IntegrationsGitlabClientFacade_ListVariables_Call) Run(run func(ctx context.Context, projectId int, ...)) *IntegrationsGitlabClientFacade_ListVariables_Call
- func (_c *IntegrationsGitlabClientFacade_ListVariables_Call) RunAndReturn(...) *IntegrationsGitlabClientFacade_ListVariables_Call
- type IntegrationsGitlabClientFacade_RemoveVariable_Call
- func (_c *IntegrationsGitlabClientFacade_RemoveVariable_Call) Return(_a0 *gitlab.Response, _a1 error) *IntegrationsGitlabClientFacade_RemoveVariable_Call
- func (_c *IntegrationsGitlabClientFacade_RemoveVariable_Call) Run(run func(ctx context.Context, projectId int, key string)) *IntegrationsGitlabClientFacade_RemoveVariable_Call
- func (_c *IntegrationsGitlabClientFacade_RemoveVariable_Call) RunAndReturn(run func(context.Context, int, string) (*gitlab.Response, error)) *IntegrationsGitlabClientFacade_RemoveVariable_Call
- type IntegrationsGitlabClientFacade_UpdateVariable_Call
- func (_c *IntegrationsGitlabClientFacade_UpdateVariable_Call) Return(_a0 *gitlab.ProjectVariable, _a1 *gitlab.Response, _a2 error) *IntegrationsGitlabClientFacade_UpdateVariable_Call
- func (_c *IntegrationsGitlabClientFacade_UpdateVariable_Call) Run(run func(ctx context.Context, projectId int, key string, ...)) *IntegrationsGitlabClientFacade_UpdateVariable_Call
- func (_c *IntegrationsGitlabClientFacade_UpdateVariable_Call) RunAndReturn(...) *IntegrationsGitlabClientFacade_UpdateVariable_Call
- type IntegrationsGitlabIntegrationRepository
- func (_m *IntegrationsGitlabIntegrationRepository) Delete(tx *gorm.DB, id uuid.UUID) error
- func (_m *IntegrationsGitlabIntegrationRepository) EXPECT() *IntegrationsGitlabIntegrationRepository_Expecter
- func (_m *IntegrationsGitlabIntegrationRepository) FindByOrganizationId(orgID uuid.UUID) ([]models.GitLabIntegration, error)
- func (_m *IntegrationsGitlabIntegrationRepository) Read(id uuid.UUID) (models.GitLabIntegration, error)
- func (_m *IntegrationsGitlabIntegrationRepository) Save(tx *gorm.DB, model *models.GitLabIntegration) error
- type IntegrationsGitlabIntegrationRepository_Delete_Call
- func (_c *IntegrationsGitlabIntegrationRepository_Delete_Call) Return(_a0 error) *IntegrationsGitlabIntegrationRepository_Delete_Call
- func (_c *IntegrationsGitlabIntegrationRepository_Delete_Call) Run(run func(tx *gorm.DB, id uuid.UUID)) *IntegrationsGitlabIntegrationRepository_Delete_Call
- func (_c *IntegrationsGitlabIntegrationRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *IntegrationsGitlabIntegrationRepository_Delete_Call
- type IntegrationsGitlabIntegrationRepository_Expecter
- func (_e *IntegrationsGitlabIntegrationRepository_Expecter) Delete(tx interface{}, id interface{}) *IntegrationsGitlabIntegrationRepository_Delete_Call
- func (_e *IntegrationsGitlabIntegrationRepository_Expecter) FindByOrganizationId(orgID interface{}) *IntegrationsGitlabIntegrationRepository_FindByOrganizationId_Call
- func (_e *IntegrationsGitlabIntegrationRepository_Expecter) Read(id interface{}) *IntegrationsGitlabIntegrationRepository_Read_Call
- func (_e *IntegrationsGitlabIntegrationRepository_Expecter) Save(tx interface{}, model interface{}) *IntegrationsGitlabIntegrationRepository_Save_Call
- type IntegrationsGitlabIntegrationRepository_FindByOrganizationId_Call
- func (_c *IntegrationsGitlabIntegrationRepository_FindByOrganizationId_Call) Return(_a0 []models.GitLabIntegration, _a1 error) *IntegrationsGitlabIntegrationRepository_FindByOrganizationId_Call
- func (_c *IntegrationsGitlabIntegrationRepository_FindByOrganizationId_Call) Run(run func(orgID uuid.UUID)) *IntegrationsGitlabIntegrationRepository_FindByOrganizationId_Call
- func (_c *IntegrationsGitlabIntegrationRepository_FindByOrganizationId_Call) RunAndReturn(run func(uuid.UUID) ([]models.GitLabIntegration, error)) *IntegrationsGitlabIntegrationRepository_FindByOrganizationId_Call
- type IntegrationsGitlabIntegrationRepository_Read_Call
- func (_c *IntegrationsGitlabIntegrationRepository_Read_Call) Return(_a0 models.GitLabIntegration, _a1 error) *IntegrationsGitlabIntegrationRepository_Read_Call
- func (_c *IntegrationsGitlabIntegrationRepository_Read_Call) Run(run func(id uuid.UUID)) *IntegrationsGitlabIntegrationRepository_Read_Call
- func (_c *IntegrationsGitlabIntegrationRepository_Read_Call) RunAndReturn(run func(uuid.UUID) (models.GitLabIntegration, error)) *IntegrationsGitlabIntegrationRepository_Read_Call
- type IntegrationsGitlabIntegrationRepository_Save_Call
- func (_c *IntegrationsGitlabIntegrationRepository_Save_Call) Return(_a0 error) *IntegrationsGitlabIntegrationRepository_Save_Call
- func (_c *IntegrationsGitlabIntegrationRepository_Save_Call) Run(run func(tx *gorm.DB, model *models.GitLabIntegration)) *IntegrationsGitlabIntegrationRepository_Save_Call
- func (_c *IntegrationsGitlabIntegrationRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.GitLabIntegration) error) *IntegrationsGitlabIntegrationRepository_Save_Call
- type IntotoAccessControl
- type IntotoAccessControl_Expecter
- type IntotoAccessControl_GetAllMembersOfProject_Call
- func (_c *IntotoAccessControl_GetAllMembersOfProject_Call) Return(_a0 []string, _a1 error) *IntotoAccessControl_GetAllMembersOfProject_Call
- func (_c *IntotoAccessControl_GetAllMembersOfProject_Call) Run(run func(organizationID string, projectID string)) *IntotoAccessControl_GetAllMembersOfProject_Call
- func (_c *IntotoAccessControl_GetAllMembersOfProject_Call) RunAndReturn(run func(string, string) ([]string, error)) *IntotoAccessControl_GetAllMembersOfProject_Call
- type IntotoInTotoLinkRepository
- type IntotoInTotoLinkRepository_Expecter
- type IntotoInTotoLinkRepository_FindBySupplyChainID_Call
- func (_c *IntotoInTotoLinkRepository_FindBySupplyChainID_Call) Return(_a0 []models.InTotoLink, _a1 error) *IntotoInTotoLinkRepository_FindBySupplyChainID_Call
- func (_c *IntotoInTotoLinkRepository_FindBySupplyChainID_Call) Run(run func(supplyChainID string)) *IntotoInTotoLinkRepository_FindBySupplyChainID_Call
- func (_c *IntotoInTotoLinkRepository_FindBySupplyChainID_Call) RunAndReturn(run func(string) ([]models.InTotoLink, error)) *IntotoInTotoLinkRepository_FindBySupplyChainID_Call
- type IntotoInTotoVerifierService
- func (_m *IntotoInTotoVerifierService) EXPECT() *IntotoInTotoVerifierService_Expecter
- func (_m *IntotoInTotoVerifierService) VerifySupplyChain(supplyChainID string) (bool, error)
- func (_m *IntotoInTotoVerifierService) VerifySupplyChainWithOutputDigest(supplyChainID string, digest string) (bool, error)
- type IntotoInTotoVerifierService_Expecter
- func (_e *IntotoInTotoVerifierService_Expecter) VerifySupplyChain(supplyChainID interface{}) *IntotoInTotoVerifierService_VerifySupplyChain_Call
- func (_e *IntotoInTotoVerifierService_Expecter) VerifySupplyChainWithOutputDigest(supplyChainID interface{}, digest interface{}) *IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call
- type IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call
- func (_c *IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call) Return(_a0 bool, _a1 error) *IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call
- func (_c *IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call) Run(run func(supplyChainID string, digest string)) *IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call
- func (_c *IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call) RunAndReturn(run func(string, string) (bool, error)) *IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call
- type IntotoInTotoVerifierService_VerifySupplyChain_Call
- func (_c *IntotoInTotoVerifierService_VerifySupplyChain_Call) Return(_a0 bool, _a1 error) *IntotoInTotoVerifierService_VerifySupplyChain_Call
- func (_c *IntotoInTotoVerifierService_VerifySupplyChain_Call) Run(run func(supplyChainID string)) *IntotoInTotoVerifierService_VerifySupplyChain_Call
- func (_c *IntotoInTotoVerifierService_VerifySupplyChain_Call) RunAndReturn(run func(string) (bool, error)) *IntotoInTotoVerifierService_VerifySupplyChain_Call
- type IntotoPatRepository
- type IntotoPatRepository_Expecter
- type IntotoPatRepository_FindByUserIDs_Call
- func (_c *IntotoPatRepository_FindByUserIDs_Call) Return(_a0 []models.PAT, _a1 error) *IntotoPatRepository_FindByUserIDs_Call
- func (_c *IntotoPatRepository_FindByUserIDs_Call) Run(run func(userID []uuid.UUID)) *IntotoPatRepository_FindByUserIDs_Call
- func (_c *IntotoPatRepository_FindByUserIDs_Call) RunAndReturn(run func([]uuid.UUID) ([]models.PAT, error)) *IntotoPatRepository_FindByUserIDs_Call
- type IntotoPatRepository_GetByFingerprint_Call
- func (_c *IntotoPatRepository_GetByFingerprint_Call) Return(_a0 models.PAT, _a1 error) *IntotoPatRepository_GetByFingerprint_Call
- func (_c *IntotoPatRepository_GetByFingerprint_Call) Run(run func(fingerprint string)) *IntotoPatRepository_GetByFingerprint_Call
- func (_c *IntotoPatRepository_GetByFingerprint_Call) RunAndReturn(run func(string) (models.PAT, error)) *IntotoPatRepository_GetByFingerprint_Call
- type IntotoProjectRepository
- type IntotoProjectRepository_Expecter
- type IntotoProjectRepository_GetProjectByAssetID_Call
- func (_c *IntotoProjectRepository_GetProjectByAssetID_Call) Return(_a0 models.Project, _a1 error) *IntotoProjectRepository_GetProjectByAssetID_Call
- func (_c *IntotoProjectRepository_GetProjectByAssetID_Call) Run(run func(assetID uuid.UUID)) *IntotoProjectRepository_GetProjectByAssetID_Call
- func (_c *IntotoProjectRepository_GetProjectByAssetID_Call) RunAndReturn(run func(uuid.UUID) (models.Project, error)) *IntotoProjectRepository_GetProjectByAssetID_Call
- type IntotoRepository
- func (_m *IntotoRepository) Activate(tx *gorm.DB, id uuid.UUID) error
- func (_m *IntotoRepository) Begin() *gorm.DB
- func (_m *IntotoRepository) Create(tx *gorm.DB, t *models.InTotoLink) error
- func (_m *IntotoRepository) CreateBatch(tx *gorm.DB, ts []models.InTotoLink) error
- func (_m *IntotoRepository) Delete(tx *gorm.DB, id uuid.UUID) error
- func (_m *IntotoRepository) EXPECT() *IntotoRepository_Expecter
- func (_m *IntotoRepository) FindByAssetAndSupplyChainId(assetID uuid.UUID, supplyChainId string) ([]models.InTotoLink, error)
- func (_m *IntotoRepository) GetDB(tx *gorm.DB) *gorm.DB
- func (_m *IntotoRepository) List(ids []uuid.UUID) ([]models.InTotoLink, error)
- func (_m *IntotoRepository) Read(id uuid.UUID) (models.InTotoLink, error)
- func (_m *IntotoRepository) Save(tx *gorm.DB, model *models.InTotoLink) error
- func (_m *IntotoRepository) SaveBatch(tx *gorm.DB, ts []models.InTotoLink) error
- func (_m *IntotoRepository) Transaction(_a0 func(*gorm.DB) error) error
- type IntotoRepository_Activate_Call
- func (_c *IntotoRepository_Activate_Call) Return(_a0 error) *IntotoRepository_Activate_Call
- func (_c *IntotoRepository_Activate_Call) Run(run func(tx *gorm.DB, id uuid.UUID)) *IntotoRepository_Activate_Call
- func (_c *IntotoRepository_Activate_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *IntotoRepository_Activate_Call
- type IntotoRepository_Begin_Call
- type IntotoRepository_CreateBatch_Call
- func (_c *IntotoRepository_CreateBatch_Call) Return(_a0 error) *IntotoRepository_CreateBatch_Call
- func (_c *IntotoRepository_CreateBatch_Call) Run(run func(tx *gorm.DB, ts []models.InTotoLink)) *IntotoRepository_CreateBatch_Call
- func (_c *IntotoRepository_CreateBatch_Call) RunAndReturn(run func(*gorm.DB, []models.InTotoLink) error) *IntotoRepository_CreateBatch_Call
- type IntotoRepository_Create_Call
- func (_c *IntotoRepository_Create_Call) Return(_a0 error) *IntotoRepository_Create_Call
- func (_c *IntotoRepository_Create_Call) Run(run func(tx *gorm.DB, t *models.InTotoLink)) *IntotoRepository_Create_Call
- func (_c *IntotoRepository_Create_Call) RunAndReturn(run func(*gorm.DB, *models.InTotoLink) error) *IntotoRepository_Create_Call
- type IntotoRepository_Delete_Call
- func (_c *IntotoRepository_Delete_Call) Return(_a0 error) *IntotoRepository_Delete_Call
- func (_c *IntotoRepository_Delete_Call) Run(run func(tx *gorm.DB, id uuid.UUID)) *IntotoRepository_Delete_Call
- func (_c *IntotoRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *IntotoRepository_Delete_Call
- type IntotoRepository_Expecter
- func (_e *IntotoRepository_Expecter) Activate(tx interface{}, id interface{}) *IntotoRepository_Activate_Call
- func (_e *IntotoRepository_Expecter) Begin() *IntotoRepository_Begin_Call
- func (_e *IntotoRepository_Expecter) Create(tx interface{}, t interface{}) *IntotoRepository_Create_Call
- func (_e *IntotoRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *IntotoRepository_CreateBatch_Call
- func (_e *IntotoRepository_Expecter) Delete(tx interface{}, id interface{}) *IntotoRepository_Delete_Call
- func (_e *IntotoRepository_Expecter) FindByAssetAndSupplyChainId(assetID interface{}, supplyChainId interface{}) *IntotoRepository_FindByAssetAndSupplyChainId_Call
- func (_e *IntotoRepository_Expecter) GetDB(tx interface{}) *IntotoRepository_GetDB_Call
- func (_e *IntotoRepository_Expecter) List(ids interface{}) *IntotoRepository_List_Call
- func (_e *IntotoRepository_Expecter) Read(id interface{}) *IntotoRepository_Read_Call
- func (_e *IntotoRepository_Expecter) Save(tx interface{}, model interface{}) *IntotoRepository_Save_Call
- func (_e *IntotoRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *IntotoRepository_SaveBatch_Call
- func (_e *IntotoRepository_Expecter) Transaction(_a0 interface{}) *IntotoRepository_Transaction_Call
- type IntotoRepository_FindByAssetAndSupplyChainId_Call
- func (_c *IntotoRepository_FindByAssetAndSupplyChainId_Call) Return(_a0 []models.InTotoLink, _a1 error) *IntotoRepository_FindByAssetAndSupplyChainId_Call
- func (_c *IntotoRepository_FindByAssetAndSupplyChainId_Call) Run(run func(assetID uuid.UUID, supplyChainId string)) *IntotoRepository_FindByAssetAndSupplyChainId_Call
- func (_c *IntotoRepository_FindByAssetAndSupplyChainId_Call) RunAndReturn(run func(uuid.UUID, string) ([]models.InTotoLink, error)) *IntotoRepository_FindByAssetAndSupplyChainId_Call
- type IntotoRepository_GetDB_Call
- type IntotoRepository_List_Call
- func (_c *IntotoRepository_List_Call) Return(_a0 []models.InTotoLink, _a1 error) *IntotoRepository_List_Call
- func (_c *IntotoRepository_List_Call) Run(run func(ids []uuid.UUID)) *IntotoRepository_List_Call
- func (_c *IntotoRepository_List_Call) RunAndReturn(run func([]uuid.UUID) ([]models.InTotoLink, error)) *IntotoRepository_List_Call
- type IntotoRepository_Read_Call
- func (_c *IntotoRepository_Read_Call) Return(_a0 models.InTotoLink, _a1 error) *IntotoRepository_Read_Call
- func (_c *IntotoRepository_Read_Call) Run(run func(id uuid.UUID)) *IntotoRepository_Read_Call
- func (_c *IntotoRepository_Read_Call) RunAndReturn(run func(uuid.UUID) (models.InTotoLink, error)) *IntotoRepository_Read_Call
- type IntotoRepository_SaveBatch_Call
- func (_c *IntotoRepository_SaveBatch_Call) Return(_a0 error) *IntotoRepository_SaveBatch_Call
- func (_c *IntotoRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, ts []models.InTotoLink)) *IntotoRepository_SaveBatch_Call
- func (_c *IntotoRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.InTotoLink) error) *IntotoRepository_SaveBatch_Call
- type IntotoRepository_Save_Call
- func (_c *IntotoRepository_Save_Call) Return(_a0 error) *IntotoRepository_Save_Call
- func (_c *IntotoRepository_Save_Call) Run(run func(tx *gorm.DB, model *models.InTotoLink)) *IntotoRepository_Save_Call
- func (_c *IntotoRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.InTotoLink) error) *IntotoRepository_Save_Call
- type IntotoRepository_Transaction_Call
- func (_c *IntotoRepository_Transaction_Call) Return(_a0 error) *IntotoRepository_Transaction_Call
- func (_c *IntotoRepository_Transaction_Call) Run(run func(_a0 func(*gorm.DB) error)) *IntotoRepository_Transaction_Call
- func (_c *IntotoRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *IntotoRepository_Transaction_Call
- type IntotoSupplyChainRepository
- type IntotoSupplyChainRepositoryS
- type IntotoSupplyChainRepositoryS_Expecter
- type IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call
- func (_c *IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call) Return(_a0 []models.SupplyChain, _a1 error) *IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call
- func (_c *IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call) Run(run func(supplyChainID string)) *IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call
- func (_c *IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call) RunAndReturn(run func(string) ([]models.SupplyChain, error)) *IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call
- type IntotoSupplyChainRepository_Expecter
- type IntotoSupplyChainRepository_Save_Call
- func (_c *IntotoSupplyChainRepository_Save_Call) Return(_a0 error) *IntotoSupplyChainRepository_Save_Call
- func (_c *IntotoSupplyChainRepository_Save_Call) Run(run func(tx *gorm.DB, model *models.SupplyChain)) *IntotoSupplyChainRepository_Save_Call
- func (_c *IntotoSupplyChainRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.SupplyChain) error) *IntotoSupplyChainRepository_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 OrgInvitationRepository
- func (_m *OrgInvitationRepository) Delete(tx *gorm.DB, id uuid.UUID) error
- func (_m *OrgInvitationRepository) EXPECT() *OrgInvitationRepository_Expecter
- func (_m *OrgInvitationRepository) FindByCode(code string) (models.Invitation, error)
- func (_m *OrgInvitationRepository) Save(tx *gorm.DB, invitation *models.Invitation) error
- type OrgInvitationRepository_Delete_Call
- func (_c *OrgInvitationRepository_Delete_Call) Return(_a0 error) *OrgInvitationRepository_Delete_Call
- func (_c *OrgInvitationRepository_Delete_Call) Run(run func(tx *gorm.DB, id uuid.UUID)) *OrgInvitationRepository_Delete_Call
- func (_c *OrgInvitationRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *OrgInvitationRepository_Delete_Call
- type OrgInvitationRepository_Expecter
- func (_e *OrgInvitationRepository_Expecter) Delete(tx interface{}, id interface{}) *OrgInvitationRepository_Delete_Call
- func (_e *OrgInvitationRepository_Expecter) FindByCode(code interface{}) *OrgInvitationRepository_FindByCode_Call
- func (_e *OrgInvitationRepository_Expecter) Save(tx interface{}, invitation interface{}) *OrgInvitationRepository_Save_Call
- type OrgInvitationRepository_FindByCode_Call
- func (_c *OrgInvitationRepository_FindByCode_Call) Return(_a0 models.Invitation, _a1 error) *OrgInvitationRepository_FindByCode_Call
- func (_c *OrgInvitationRepository_FindByCode_Call) Run(run func(code string)) *OrgInvitationRepository_FindByCode_Call
- func (_c *OrgInvitationRepository_FindByCode_Call) RunAndReturn(run func(string) (models.Invitation, error)) *OrgInvitationRepository_FindByCode_Call
- type OrgInvitationRepository_Save_Call
- func (_c *OrgInvitationRepository_Save_Call) Return(_a0 error) *OrgInvitationRepository_Save_Call
- func (_c *OrgInvitationRepository_Save_Call) Run(run func(tx *gorm.DB, invitation *models.Invitation)) *OrgInvitationRepository_Save_Call
- func (_c *OrgInvitationRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.Invitation) error) *OrgInvitationRepository_Save_Call
- type OrgProjectService
- type OrgProjectService_Expecter
- type OrgProjectService_ListAllowedProjects_Call
- func (_c *OrgProjectService_ListAllowedProjects_Call) Return(_a0 []models.Project, _a1 error) *OrgProjectService_ListAllowedProjects_Call
- func (_c *OrgProjectService_ListAllowedProjects_Call) Run(run func(c echo.Context)) *OrgProjectService_ListAllowedProjects_Call
- func (_c *OrgProjectService_ListAllowedProjects_Call) RunAndReturn(run func(echo.Context) ([]models.Project, error)) *OrgProjectService_ListAllowedProjects_Call
- type OrgRepository
- func (_m *OrgRepository) Activate(tx *gorm.DB, id uuid.UUID) error
- func (_m *OrgRepository) Begin() *gorm.DB
- func (_m *OrgRepository) ContentTree(orgID uuid.UUID, projects []string) []obj.ContentTreeElement
- 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
- func (_m *OrgRepository) Update(tx *gorm.DB, organization *models.Org) error
- type OrgRepository_Activate_Call
- func (_c *OrgRepository_Activate_Call) Return(_a0 error) *OrgRepository_Activate_Call
- func (_c *OrgRepository_Activate_Call) Run(run func(tx *gorm.DB, id uuid.UUID)) *OrgRepository_Activate_Call
- func (_c *OrgRepository_Activate_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *OrgRepository_Activate_Call
- type OrgRepository_Begin_Call
- type OrgRepository_ContentTree_Call
- func (_c *OrgRepository_ContentTree_Call) Return(_a0 []obj.ContentTreeElement) *OrgRepository_ContentTree_Call
- func (_c *OrgRepository_ContentTree_Call) Run(run func(orgID uuid.UUID, projects []string)) *OrgRepository_ContentTree_Call
- func (_c *OrgRepository_ContentTree_Call) RunAndReturn(run func(uuid.UUID, []string) []obj.ContentTreeElement) *OrgRepository_ContentTree_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) Activate(tx interface{}, id interface{}) *OrgRepository_Activate_Call
- func (_e *OrgRepository_Expecter) Begin() *OrgRepository_Begin_Call
- func (_e *OrgRepository_Expecter) ContentTree(orgID interface{}, projects interface{}) *OrgRepository_ContentTree_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
- func (_e *OrgRepository_Expecter) Update(tx interface{}, organization interface{}) *OrgRepository_Update_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 OrgRepository_Update_Call
- func (_c *OrgRepository_Update_Call) Return(_a0 error) *OrgRepository_Update_Call
- func (_c *OrgRepository_Update_Call) Run(run func(tx *gorm.DB, organization *models.Org)) *OrgRepository_Update_Call
- func (_c *OrgRepository_Update_Call) RunAndReturn(run func(*gorm.DB, *models.Org) error) *OrgRepository_Update_Call
- type PatRepository
- func (_m *PatRepository) Activate(tx *gorm.DB, id uuid.UUID) error
- 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_Activate_Call
- func (_c *PatRepository_Activate_Call) Return(_a0 error) *PatRepository_Activate_Call
- func (_c *PatRepository_Activate_Call) Run(run func(tx *gorm.DB, id uuid.UUID)) *PatRepository_Activate_Call
- func (_c *PatRepository_Activate_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *PatRepository_Activate_Call
- 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) Activate(tx interface{}, id interface{}) *PatRepository_Activate_Call
- 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) Activate(tx *gorm.DB, projectID uuid.UUID) error
- func (_m *ProjectProjectRepository) Create(tx *gorm.DB, _a1 *models.Project) error
- func (_m *ProjectProjectRepository) Delete(tx *gorm.DB, projectID uuid.UUID) error
- func (_m *ProjectProjectRepository) EXPECT() *ProjectProjectRepository_Expecter
- func (_m *ProjectProjectRepository) List(projectIds []uuid.UUID, parentId *uuid.UUID, orgId uuid.UUID) ([]models.Project, error)
- func (_m *ProjectProjectRepository) ReadBySlug(organizationID uuid.UUID, slug string) (models.Project, error)
- func (_m *ProjectProjectRepository) ReadBySlugUnscoped(organizationId uuid.UUID, slug string) (models.Project, error)
- func (_m *ProjectProjectRepository) Update(tx *gorm.DB, _a1 *models.Project) error
- type ProjectProjectRepository_Activate_Call
- func (_c *ProjectProjectRepository_Activate_Call) Return(_a0 error) *ProjectProjectRepository_Activate_Call
- func (_c *ProjectProjectRepository_Activate_Call) Run(run func(tx *gorm.DB, projectID uuid.UUID)) *ProjectProjectRepository_Activate_Call
- func (_c *ProjectProjectRepository_Activate_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *ProjectProjectRepository_Activate_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, _a1 *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, projectID 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) Activate(tx interface{}, projectID interface{}) *ProjectProjectRepository_Activate_Call
- func (_e *ProjectProjectRepository_Expecter) Create(tx interface{}, _a1 interface{}) *ProjectProjectRepository_Create_Call
- func (_e *ProjectProjectRepository_Expecter) Delete(tx interface{}, projectID interface{}) *ProjectProjectRepository_Delete_Call
- func (_e *ProjectProjectRepository_Expecter) List(projectIds interface{}, parentId interface{}, orgId interface{}) *ProjectProjectRepository_List_Call
- func (_e *ProjectProjectRepository_Expecter) ReadBySlug(organizationID interface{}, slug interface{}) *ProjectProjectRepository_ReadBySlug_Call
- func (_e *ProjectProjectRepository_Expecter) ReadBySlugUnscoped(organizationId interface{}, slug interface{}) *ProjectProjectRepository_ReadBySlugUnscoped_Call
- func (_e *ProjectProjectRepository_Expecter) Update(tx interface{}, _a1 interface{}) *ProjectProjectRepository_Update_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(projectIds []uuid.UUID, parentId *uuid.UUID, orgId uuid.UUID)) *ProjectProjectRepository_List_Call
- func (_c *ProjectProjectRepository_List_Call) RunAndReturn(run func([]uuid.UUID, *uuid.UUID, uuid.UUID) ([]models.Project, error)) *ProjectProjectRepository_List_Call
- type ProjectProjectRepository_ReadBySlugUnscoped_Call
- func (_c *ProjectProjectRepository_ReadBySlugUnscoped_Call) Return(_a0 models.Project, _a1 error) *ProjectProjectRepository_ReadBySlugUnscoped_Call
- func (_c *ProjectProjectRepository_ReadBySlugUnscoped_Call) Run(run func(organizationId uuid.UUID, slug string)) *ProjectProjectRepository_ReadBySlugUnscoped_Call
- func (_c *ProjectProjectRepository_ReadBySlugUnscoped_Call) RunAndReturn(run func(uuid.UUID, string) (models.Project, error)) *ProjectProjectRepository_ReadBySlugUnscoped_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_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 ProjectProjectService
- type ProjectProjectService_Expecter
- type ProjectProjectService_ListAllowedProjects_Call
- func (_c *ProjectProjectService_ListAllowedProjects_Call) Return(_a0 []models.Project, _a1 error) *ProjectProjectService_ListAllowedProjects_Call
- func (_c *ProjectProjectService_ListAllowedProjects_Call) Run(run func(c echo.Context)) *ProjectProjectService_ListAllowedProjects_Call
- func (_c *ProjectProjectService_ListAllowedProjects_Call) RunAndReturn(run func(echo.Context) ([]models.Project, error)) *ProjectProjectService_ListAllowedProjects_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 ScanAssetRepository
- type ScanAssetRepository_Expecter
- type ScanAssetRepository_GetAllAssetsFromDB_Call
- func (_c *ScanAssetRepository_GetAllAssetsFromDB_Call) Return(_a0 []models.Asset, _a1 error) *ScanAssetRepository_GetAllAssetsFromDB_Call
- func (_c *ScanAssetRepository_GetAllAssetsFromDB_Call) Run(run func()) *ScanAssetRepository_GetAllAssetsFromDB_Call
- func (_c *ScanAssetRepository_GetAllAssetsFromDB_Call) RunAndReturn(run func() ([]models.Asset, error)) *ScanAssetRepository_GetAllAssetsFromDB_Call
- type ScanAssetRepository_Save_Call
- func (_c *ScanAssetRepository_Save_Call) Return(_a0 error) *ScanAssetRepository_Save_Call
- func (_c *ScanAssetRepository_Save_Call) Run(run func(tx *gorm.DB, asset *models.Asset)) *ScanAssetRepository_Save_Call
- func (_c *ScanAssetRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.Asset) error) *ScanAssetRepository_Save_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) LoadComponents(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) LoadComponents(tx interface{}, asset interface{}, scanType interface{}, version interface{}) *ScanComponentRepository_LoadComponents_Call
- func (_e *ScanComponentRepository_Expecter) SaveBatch(tx interface{}, components interface{}) *ScanComponentRepository_SaveBatch_Call
- type ScanComponentRepository_LoadComponents_Call
- func (_c *ScanComponentRepository_LoadComponents_Call) Return(_a0 []models.ComponentDependency, _a1 error) *ScanComponentRepository_LoadComponents_Call
- func (_c *ScanComponentRepository_LoadComponents_Call) Run(run func(tx *gorm.DB, asset models.Asset, scanType string, version string)) *ScanComponentRepository_LoadComponents_Call
- func (_c *ScanComponentRepository_LoadComponents_Call) RunAndReturn(...) *ScanComponentRepository_LoadComponents_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 ScanStatisticsService
- type ScanStatisticsService_Expecter
- type ScanStatisticsService_UpdateAssetRiskAggregation_Call
- func (_c *ScanStatisticsService_UpdateAssetRiskAggregation_Call) Return(_a0 error) *ScanStatisticsService_UpdateAssetRiskAggregation_Call
- func (_c *ScanStatisticsService_UpdateAssetRiskAggregation_Call) Run(...) *ScanStatisticsService_UpdateAssetRiskAggregation_Call
- func (_c *ScanStatisticsService_UpdateAssetRiskAggregation_Call) RunAndReturn(run func(uuid.UUID, time.Time, time.Time, bool) error) *ScanStatisticsService_UpdateAssetRiskAggregation_Call
- type StatisticsAssetRepository
- func (_m *StatisticsAssetRepository) EXPECT() *StatisticsAssetRepository_Expecter
- func (_m *StatisticsAssetRepository) GetAllAssetsFromDB() ([]models.Asset, error)
- func (_m *StatisticsAssetRepository) GetByProjectID(projectID uuid.UUID) ([]models.Asset, error)
- func (_m *StatisticsAssetRepository) Save(tx *gorm.DB, asset *models.Asset) error
- type StatisticsAssetRepository_Expecter
- func (_e *StatisticsAssetRepository_Expecter) GetAllAssetsFromDB() *StatisticsAssetRepository_GetAllAssetsFromDB_Call
- func (_e *StatisticsAssetRepository_Expecter) GetByProjectID(projectID interface{}) *StatisticsAssetRepository_GetByProjectID_Call
- func (_e *StatisticsAssetRepository_Expecter) Save(tx interface{}, asset interface{}) *StatisticsAssetRepository_Save_Call
- type StatisticsAssetRepository_GetAllAssetsFromDB_Call
- func (_c *StatisticsAssetRepository_GetAllAssetsFromDB_Call) Return(_a0 []models.Asset, _a1 error) *StatisticsAssetRepository_GetAllAssetsFromDB_Call
- func (_c *StatisticsAssetRepository_GetAllAssetsFromDB_Call) Run(run func()) *StatisticsAssetRepository_GetAllAssetsFromDB_Call
- func (_c *StatisticsAssetRepository_GetAllAssetsFromDB_Call) RunAndReturn(run func() ([]models.Asset, error)) *StatisticsAssetRepository_GetAllAssetsFromDB_Call
- type StatisticsAssetRepository_GetByProjectID_Call
- func (_c *StatisticsAssetRepository_GetByProjectID_Call) Return(_a0 []models.Asset, _a1 error) *StatisticsAssetRepository_GetByProjectID_Call
- func (_c *StatisticsAssetRepository_GetByProjectID_Call) Run(run func(projectID uuid.UUID)) *StatisticsAssetRepository_GetByProjectID_Call
- func (_c *StatisticsAssetRepository_GetByProjectID_Call) RunAndReturn(run func(uuid.UUID) ([]models.Asset, error)) *StatisticsAssetRepository_GetByProjectID_Call
- type StatisticsAssetRepository_Save_Call
- func (_c *StatisticsAssetRepository_Save_Call) Return(_a0 error) *StatisticsAssetRepository_Save_Call
- func (_c *StatisticsAssetRepository_Save_Call) Run(run func(tx *gorm.DB, asset *models.Asset)) *StatisticsAssetRepository_Save_Call
- func (_c *StatisticsAssetRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.Asset) error) *StatisticsAssetRepository_Save_Call
- type StatisticsAssetRiskHistoryRepository
- func (_m *StatisticsAssetRiskHistoryRepository) EXPECT() *StatisticsAssetRiskHistoryRepository_Expecter
- func (_m *StatisticsAssetRiskHistoryRepository) GetRiskHistory(assetId uuid.UUID, start time.Time, end time.Time) ([]models.AssetRiskHistory, error)
- func (_m *StatisticsAssetRiskHistoryRepository) GetRiskHistoryByProject(projectId uuid.UUID, day time.Time) ([]models.AssetRiskHistory, error)
- func (_m *StatisticsAssetRiskHistoryRepository) UpdateRiskAggregation(assetRisk *models.AssetRiskHistory) error
- type StatisticsAssetRiskHistoryRepository_Expecter
- func (_e *StatisticsAssetRiskHistoryRepository_Expecter) GetRiskHistory(assetId interface{}, start interface{}, end interface{}) *StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call
- func (_e *StatisticsAssetRiskHistoryRepository_Expecter) GetRiskHistoryByProject(projectId interface{}, day interface{}) *StatisticsAssetRiskHistoryRepository_GetRiskHistoryByProject_Call
- func (_e *StatisticsAssetRiskHistoryRepository_Expecter) UpdateRiskAggregation(assetRisk interface{}) *StatisticsAssetRiskHistoryRepository_UpdateRiskAggregation_Call
- type StatisticsAssetRiskHistoryRepository_GetRiskHistoryByProject_Call
- func (_c *StatisticsAssetRiskHistoryRepository_GetRiskHistoryByProject_Call) Return(_a0 []models.AssetRiskHistory, _a1 error) *StatisticsAssetRiskHistoryRepository_GetRiskHistoryByProject_Call
- func (_c *StatisticsAssetRiskHistoryRepository_GetRiskHistoryByProject_Call) Run(run func(projectId uuid.UUID, day time.Time)) *StatisticsAssetRiskHistoryRepository_GetRiskHistoryByProject_Call
- func (_c *StatisticsAssetRiskHistoryRepository_GetRiskHistoryByProject_Call) RunAndReturn(run func(uuid.UUID, time.Time) ([]models.AssetRiskHistory, error)) *StatisticsAssetRiskHistoryRepository_GetRiskHistoryByProject_Call
- type StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call
- func (_c *StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call) Return(_a0 []models.AssetRiskHistory, _a1 error) *StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call
- func (_c *StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call) Run(run func(assetId uuid.UUID, start time.Time, end time.Time)) *StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call
- func (_c *StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call) RunAndReturn(run func(uuid.UUID, time.Time, time.Time) ([]models.AssetRiskHistory, error)) *StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call
- type StatisticsAssetRiskHistoryRepository_UpdateRiskAggregation_Call
- func (_c *StatisticsAssetRiskHistoryRepository_UpdateRiskAggregation_Call) Return(_a0 error) *StatisticsAssetRiskHistoryRepository_UpdateRiskAggregation_Call
- func (_c *StatisticsAssetRiskHistoryRepository_UpdateRiskAggregation_Call) Run(run func(assetRisk *models.AssetRiskHistory)) *StatisticsAssetRiskHistoryRepository_UpdateRiskAggregation_Call
- func (_c *StatisticsAssetRiskHistoryRepository_UpdateRiskAggregation_Call) RunAndReturn(run func(*models.AssetRiskHistory) error) *StatisticsAssetRiskHistoryRepository_UpdateRiskAggregation_Call
- type StatisticsAssetToProjectIdConverter
- type StatisticsAssetToProjectIdConverter_Expecter
- type StatisticsAssetToProjectIdConverter_GetProjectIdByAssetID_Call
- func (_c *StatisticsAssetToProjectIdConverter_GetProjectIdByAssetID_Call) Return(_a0 uuid.UUID, _a1 error) *StatisticsAssetToProjectIdConverter_GetProjectIdByAssetID_Call
- func (_c *StatisticsAssetToProjectIdConverter_GetProjectIdByAssetID_Call) Run(run func(assetID uuid.UUID)) *StatisticsAssetToProjectIdConverter_GetProjectIdByAssetID_Call
- func (_c *StatisticsAssetToProjectIdConverter_GetProjectIdByAssetID_Call) RunAndReturn(run func(uuid.UUID) (uuid.UUID, error)) *StatisticsAssetToProjectIdConverter_GetProjectIdByAssetID_Call
- type StatisticsComponentRepository
- type StatisticsComponentRepository_Expecter
- type StatisticsComponentRepository_GetDependencyCountPerScanType_Call
- func (_c *StatisticsComponentRepository_GetDependencyCountPerScanType_Call) Return(_a0 map[string]int, _a1 error) *StatisticsComponentRepository_GetDependencyCountPerScanType_Call
- func (_c *StatisticsComponentRepository_GetDependencyCountPerScanType_Call) Run(run func(assetID uuid.UUID)) *StatisticsComponentRepository_GetDependencyCountPerScanType_Call
- func (_c *StatisticsComponentRepository_GetDependencyCountPerScanType_Call) RunAndReturn(run func(uuid.UUID) (map[string]int, error)) *StatisticsComponentRepository_GetDependencyCountPerScanType_Call
- type StatisticsFlawRepository
- func (_m *StatisticsFlawRepository) EXPECT() *StatisticsFlawRepository_Expecter
- func (_m *StatisticsFlawRepository) GetAllFlawsByAssetID(tx *gorm.DB, assetID uuid.UUID) ([]models.Flaw, error)
- func (_m *StatisticsFlawRepository) GetAllOpenFlawsByAssetID(tx *gorm.DB, assetID uuid.UUID) ([]models.Flaw, error)
- type StatisticsFlawRepository_Expecter
- func (_e *StatisticsFlawRepository_Expecter) GetAllFlawsByAssetID(tx interface{}, assetID interface{}) *StatisticsFlawRepository_GetAllFlawsByAssetID_Call
- func (_e *StatisticsFlawRepository_Expecter) GetAllOpenFlawsByAssetID(tx interface{}, assetID interface{}) *StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call
- type StatisticsFlawRepository_GetAllFlawsByAssetID_Call
- func (_c *StatisticsFlawRepository_GetAllFlawsByAssetID_Call) Return(_a0 []models.Flaw, _a1 error) *StatisticsFlawRepository_GetAllFlawsByAssetID_Call
- func (_c *StatisticsFlawRepository_GetAllFlawsByAssetID_Call) Run(run func(tx *gorm.DB, assetID uuid.UUID)) *StatisticsFlawRepository_GetAllFlawsByAssetID_Call
- func (_c *StatisticsFlawRepository_GetAllFlawsByAssetID_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) ([]models.Flaw, error)) *StatisticsFlawRepository_GetAllFlawsByAssetID_Call
- type StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call
- func (_c *StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call) Return(_a0 []models.Flaw, _a1 error) *StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call
- func (_c *StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call) Run(run func(tx *gorm.DB, assetID uuid.UUID)) *StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call
- func (_c *StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) ([]models.Flaw, error)) *StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call
- type StatisticsProjectRepository
- type StatisticsProjectRepository_Expecter
- type StatisticsProjectRepository_GetByOrgID_Call
- func (_c *StatisticsProjectRepository_GetByOrgID_Call) Return(_a0 []models.Project, _a1 error) *StatisticsProjectRepository_GetByOrgID_Call
- func (_c *StatisticsProjectRepository_GetByOrgID_Call) Run(run func(organizationID uuid.UUID)) *StatisticsProjectRepository_GetByOrgID_Call
- func (_c *StatisticsProjectRepository_GetByOrgID_Call) RunAndReturn(run func(uuid.UUID) ([]models.Project, error)) *StatisticsProjectRepository_GetByOrgID_Call
- type StatisticsProjectRiskHistoryRepository
- func (_m *StatisticsProjectRiskHistoryRepository) EXPECT() *StatisticsProjectRiskHistoryRepository_Expecter
- func (_m *StatisticsProjectRiskHistoryRepository) GetRiskHistory(projectId uuid.UUID, start time.Time, end time.Time) ([]models.ProjectRiskHistory, error)
- func (_m *StatisticsProjectRiskHistoryRepository) UpdateRiskAggregation(projectRisk *models.ProjectRiskHistory) error
- type StatisticsProjectRiskHistoryRepository_Expecter
- func (_e *StatisticsProjectRiskHistoryRepository_Expecter) GetRiskHistory(projectId interface{}, start interface{}, end interface{}) *StatisticsProjectRiskHistoryRepository_GetRiskHistory_Call
- func (_e *StatisticsProjectRiskHistoryRepository_Expecter) UpdateRiskAggregation(projectRisk interface{}) *StatisticsProjectRiskHistoryRepository_UpdateRiskAggregation_Call
- type StatisticsProjectRiskHistoryRepository_GetRiskHistory_Call
- func (_c *StatisticsProjectRiskHistoryRepository_GetRiskHistory_Call) Return(_a0 []models.ProjectRiskHistory, _a1 error) *StatisticsProjectRiskHistoryRepository_GetRiskHistory_Call
- func (_c *StatisticsProjectRiskHistoryRepository_GetRiskHistory_Call) Run(run func(projectId uuid.UUID, start time.Time, end time.Time)) *StatisticsProjectRiskHistoryRepository_GetRiskHistory_Call
- func (_c *StatisticsProjectRiskHistoryRepository_GetRiskHistory_Call) RunAndReturn(run func(uuid.UUID, time.Time, time.Time) ([]models.ProjectRiskHistory, error)) *StatisticsProjectRiskHistoryRepository_GetRiskHistory_Call
- type StatisticsProjectRiskHistoryRepository_UpdateRiskAggregation_Call
- func (_c *StatisticsProjectRiskHistoryRepository_UpdateRiskAggregation_Call) Return(_a0 error) *StatisticsProjectRiskHistoryRepository_UpdateRiskAggregation_Call
- func (_c *StatisticsProjectRiskHistoryRepository_UpdateRiskAggregation_Call) Run(run func(projectRisk *models.ProjectRiskHistory)) *StatisticsProjectRiskHistoryRepository_UpdateRiskAggregation_Call
- func (_c *StatisticsProjectRiskHistoryRepository_UpdateRiskAggregation_Call) RunAndReturn(run func(*models.ProjectRiskHistory) error) *StatisticsProjectRiskHistoryRepository_UpdateRiskAggregation_Call
- type StatisticsProjectService
- type StatisticsProjectService_Expecter
- type StatisticsProjectService_ListAllowedProjects_Call
- func (_c *StatisticsProjectService_ListAllowedProjects_Call) Return(_a0 []models.Project, _a1 error) *StatisticsProjectService_ListAllowedProjects_Call
- func (_c *StatisticsProjectService_ListAllowedProjects_Call) Run(run func(c echo.Context)) *StatisticsProjectService_ListAllowedProjects_Call
- func (_c *StatisticsProjectService_ListAllowedProjects_Call) RunAndReturn(run func(echo.Context) ([]models.Project, error)) *StatisticsProjectService_ListAllowedProjects_Call
- type StatisticsStatisticsRepository
- func (_m *StatisticsStatisticsRepository) AverageFixingTime(assetID uuid.UUID, riskIntervalStart float64, riskIntervalEnd float64) (time.Duration, error)
- func (_m *StatisticsStatisticsRepository) EXPECT() *StatisticsStatisticsRepository_Expecter
- func (_m *StatisticsStatisticsRepository) GetAssetRiskDistribution(assetID uuid.UUID, assetName string) (models.AssetRiskDistribution, error)
- func (_m *StatisticsStatisticsRepository) GetFlawCountByScannerId(assetID uuid.UUID) (map[string]int, error)
- func (_m *StatisticsStatisticsRepository) TimeTravelFlawState(assetID uuid.UUID, _a1 time.Time) ([]models.Flaw, error)
- type StatisticsStatisticsRepository_AverageFixingTime_Call
- func (_c *StatisticsStatisticsRepository_AverageFixingTime_Call) Return(_a0 time.Duration, _a1 error) *StatisticsStatisticsRepository_AverageFixingTime_Call
- func (_c *StatisticsStatisticsRepository_AverageFixingTime_Call) Run(...) *StatisticsStatisticsRepository_AverageFixingTime_Call
- func (_c *StatisticsStatisticsRepository_AverageFixingTime_Call) RunAndReturn(run func(uuid.UUID, float64, float64) (time.Duration, error)) *StatisticsStatisticsRepository_AverageFixingTime_Call
- type StatisticsStatisticsRepository_Expecter
- func (_e *StatisticsStatisticsRepository_Expecter) AverageFixingTime(assetID interface{}, riskIntervalStart interface{}, ...) *StatisticsStatisticsRepository_AverageFixingTime_Call
- func (_e *StatisticsStatisticsRepository_Expecter) GetAssetRiskDistribution(assetID interface{}, assetName interface{}) *StatisticsStatisticsRepository_GetAssetRiskDistribution_Call
- func (_e *StatisticsStatisticsRepository_Expecter) GetFlawCountByScannerId(assetID interface{}) *StatisticsStatisticsRepository_GetFlawCountByScannerId_Call
- func (_e *StatisticsStatisticsRepository_Expecter) TimeTravelFlawState(assetID interface{}, _a1 interface{}) *StatisticsStatisticsRepository_TimeTravelFlawState_Call
- type StatisticsStatisticsRepository_GetAssetRiskDistribution_Call
- func (_c *StatisticsStatisticsRepository_GetAssetRiskDistribution_Call) Return(_a0 models.AssetRiskDistribution, _a1 error) *StatisticsStatisticsRepository_GetAssetRiskDistribution_Call
- func (_c *StatisticsStatisticsRepository_GetAssetRiskDistribution_Call) Run(run func(assetID uuid.UUID, assetName string)) *StatisticsStatisticsRepository_GetAssetRiskDistribution_Call
- func (_c *StatisticsStatisticsRepository_GetAssetRiskDistribution_Call) RunAndReturn(run func(uuid.UUID, string) (models.AssetRiskDistribution, error)) *StatisticsStatisticsRepository_GetAssetRiskDistribution_Call
- type StatisticsStatisticsRepository_GetFlawCountByScannerId_Call
- func (_c *StatisticsStatisticsRepository_GetFlawCountByScannerId_Call) Return(_a0 map[string]int, _a1 error) *StatisticsStatisticsRepository_GetFlawCountByScannerId_Call
- func (_c *StatisticsStatisticsRepository_GetFlawCountByScannerId_Call) Run(run func(assetID uuid.UUID)) *StatisticsStatisticsRepository_GetFlawCountByScannerId_Call
- func (_c *StatisticsStatisticsRepository_GetFlawCountByScannerId_Call) RunAndReturn(run func(uuid.UUID) (map[string]int, error)) *StatisticsStatisticsRepository_GetFlawCountByScannerId_Call
- type StatisticsStatisticsRepository_TimeTravelFlawState_Call
- func (_c *StatisticsStatisticsRepository_TimeTravelFlawState_Call) Return(_a0 []models.Flaw, _a1 error) *StatisticsStatisticsRepository_TimeTravelFlawState_Call
- func (_c *StatisticsStatisticsRepository_TimeTravelFlawState_Call) Run(run func(assetID uuid.UUID, _a1 time.Time)) *StatisticsStatisticsRepository_TimeTravelFlawState_Call
- func (_c *StatisticsStatisticsRepository_TimeTravelFlawState_Call) RunAndReturn(run func(uuid.UUID, time.Time) ([]models.Flaw, error)) *StatisticsStatisticsRepository_TimeTravelFlawState_Call
- type StatisticsStatisticsService
- func (_m *StatisticsStatisticsService) EXPECT() *StatisticsStatisticsService_Expecter
- func (_m *StatisticsStatisticsService) GetAssetRiskDistribution(assetID uuid.UUID, assetName string) (models.AssetRiskDistribution, error)
- func (_m *StatisticsStatisticsService) GetAssetRiskHistory(assetID uuid.UUID, start time.Time, end time.Time) ([]models.AssetRiskHistory, error)
- func (_m *StatisticsStatisticsService) GetAverageFixingTime(assetID uuid.UUID, severity string) (time.Duration, error)
- func (_m *StatisticsStatisticsService) GetComponentRisk(assetID uuid.UUID) (map[string]float64, error)
- func (_m *StatisticsStatisticsService) GetDependencyCountPerScanType(assetID uuid.UUID) (map[string]int, error)
- func (_m *StatisticsStatisticsService) GetFlawAggregationStateAndChangeSince(assetID uuid.UUID, calculateChangeTo time.Time) (statistics.FlawAggregationStateAndChange, error)
- func (_m *StatisticsStatisticsService) GetFlawCountByScannerId(assetID uuid.UUID) (map[string]int, error)
- func (_m *StatisticsStatisticsService) GetProjectRiskHistory(projectID uuid.UUID, start time.Time, end time.Time) ([]models.ProjectRiskHistory, error)
- func (_m *StatisticsStatisticsService) UpdateAssetRiskAggregation(assetID uuid.UUID, start time.Time, end time.Time, updateProject bool) error
- type StatisticsStatisticsService_Expecter
- func (_e *StatisticsStatisticsService_Expecter) GetAssetRiskDistribution(assetID interface{}, assetName interface{}) *StatisticsStatisticsService_GetAssetRiskDistribution_Call
- func (_e *StatisticsStatisticsService_Expecter) GetAssetRiskHistory(assetID interface{}, start interface{}, end interface{}) *StatisticsStatisticsService_GetAssetRiskHistory_Call
- func (_e *StatisticsStatisticsService_Expecter) GetAverageFixingTime(assetID interface{}, severity interface{}) *StatisticsStatisticsService_GetAverageFixingTime_Call
- func (_e *StatisticsStatisticsService_Expecter) GetComponentRisk(assetID interface{}) *StatisticsStatisticsService_GetComponentRisk_Call
- func (_e *StatisticsStatisticsService_Expecter) GetDependencyCountPerScanType(assetID interface{}) *StatisticsStatisticsService_GetDependencyCountPerScanType_Call
- func (_e *StatisticsStatisticsService_Expecter) GetFlawAggregationStateAndChangeSince(assetID interface{}, calculateChangeTo interface{}) *StatisticsStatisticsService_GetFlawAggregationStateAndChangeSince_Call
- func (_e *StatisticsStatisticsService_Expecter) GetFlawCountByScannerId(assetID interface{}) *StatisticsStatisticsService_GetFlawCountByScannerId_Call
- func (_e *StatisticsStatisticsService_Expecter) GetProjectRiskHistory(projectID interface{}, start interface{}, end interface{}) *StatisticsStatisticsService_GetProjectRiskHistory_Call
- func (_e *StatisticsStatisticsService_Expecter) UpdateAssetRiskAggregation(assetID interface{}, start interface{}, end interface{}, ...) *StatisticsStatisticsService_UpdateAssetRiskAggregation_Call
- type StatisticsStatisticsService_GetAssetRiskDistribution_Call
- func (_c *StatisticsStatisticsService_GetAssetRiskDistribution_Call) Return(_a0 models.AssetRiskDistribution, _a1 error) *StatisticsStatisticsService_GetAssetRiskDistribution_Call
- func (_c *StatisticsStatisticsService_GetAssetRiskDistribution_Call) Run(run func(assetID uuid.UUID, assetName string)) *StatisticsStatisticsService_GetAssetRiskDistribution_Call
- func (_c *StatisticsStatisticsService_GetAssetRiskDistribution_Call) RunAndReturn(run func(uuid.UUID, string) (models.AssetRiskDistribution, error)) *StatisticsStatisticsService_GetAssetRiskDistribution_Call
- type StatisticsStatisticsService_GetAssetRiskHistory_Call
- func (_c *StatisticsStatisticsService_GetAssetRiskHistory_Call) Return(_a0 []models.AssetRiskHistory, _a1 error) *StatisticsStatisticsService_GetAssetRiskHistory_Call
- func (_c *StatisticsStatisticsService_GetAssetRiskHistory_Call) Run(run func(assetID uuid.UUID, start time.Time, end time.Time)) *StatisticsStatisticsService_GetAssetRiskHistory_Call
- func (_c *StatisticsStatisticsService_GetAssetRiskHistory_Call) RunAndReturn(run func(uuid.UUID, time.Time, time.Time) ([]models.AssetRiskHistory, error)) *StatisticsStatisticsService_GetAssetRiskHistory_Call
- type StatisticsStatisticsService_GetAverageFixingTime_Call
- func (_c *StatisticsStatisticsService_GetAverageFixingTime_Call) Return(_a0 time.Duration, _a1 error) *StatisticsStatisticsService_GetAverageFixingTime_Call
- func (_c *StatisticsStatisticsService_GetAverageFixingTime_Call) Run(run func(assetID uuid.UUID, severity string)) *StatisticsStatisticsService_GetAverageFixingTime_Call
- func (_c *StatisticsStatisticsService_GetAverageFixingTime_Call) RunAndReturn(run func(uuid.UUID, string) (time.Duration, error)) *StatisticsStatisticsService_GetAverageFixingTime_Call
- type StatisticsStatisticsService_GetComponentRisk_Call
- func (_c *StatisticsStatisticsService_GetComponentRisk_Call) Return(_a0 map[string]float64, _a1 error) *StatisticsStatisticsService_GetComponentRisk_Call
- func (_c *StatisticsStatisticsService_GetComponentRisk_Call) Run(run func(assetID uuid.UUID)) *StatisticsStatisticsService_GetComponentRisk_Call
- func (_c *StatisticsStatisticsService_GetComponentRisk_Call) RunAndReturn(run func(uuid.UUID) (map[string]float64, error)) *StatisticsStatisticsService_GetComponentRisk_Call
- type StatisticsStatisticsService_GetDependencyCountPerScanType_Call
- func (_c *StatisticsStatisticsService_GetDependencyCountPerScanType_Call) Return(_a0 map[string]int, _a1 error) *StatisticsStatisticsService_GetDependencyCountPerScanType_Call
- func (_c *StatisticsStatisticsService_GetDependencyCountPerScanType_Call) Run(run func(assetID uuid.UUID)) *StatisticsStatisticsService_GetDependencyCountPerScanType_Call
- func (_c *StatisticsStatisticsService_GetDependencyCountPerScanType_Call) RunAndReturn(run func(uuid.UUID) (map[string]int, error)) *StatisticsStatisticsService_GetDependencyCountPerScanType_Call
- type StatisticsStatisticsService_GetFlawAggregationStateAndChangeSince_Call
- func (_c *StatisticsStatisticsService_GetFlawAggregationStateAndChangeSince_Call) Return(_a0 statistics.FlawAggregationStateAndChange, _a1 error) *StatisticsStatisticsService_GetFlawAggregationStateAndChangeSince_Call
- func (_c *StatisticsStatisticsService_GetFlawAggregationStateAndChangeSince_Call) Run(run func(assetID uuid.UUID, calculateChangeTo time.Time)) *StatisticsStatisticsService_GetFlawAggregationStateAndChangeSince_Call
- func (_c *StatisticsStatisticsService_GetFlawAggregationStateAndChangeSince_Call) RunAndReturn(...) *StatisticsStatisticsService_GetFlawAggregationStateAndChangeSince_Call
- type StatisticsStatisticsService_GetFlawCountByScannerId_Call
- func (_c *StatisticsStatisticsService_GetFlawCountByScannerId_Call) Return(_a0 map[string]int, _a1 error) *StatisticsStatisticsService_GetFlawCountByScannerId_Call
- func (_c *StatisticsStatisticsService_GetFlawCountByScannerId_Call) Run(run func(assetID uuid.UUID)) *StatisticsStatisticsService_GetFlawCountByScannerId_Call
- func (_c *StatisticsStatisticsService_GetFlawCountByScannerId_Call) RunAndReturn(run func(uuid.UUID) (map[string]int, error)) *StatisticsStatisticsService_GetFlawCountByScannerId_Call
- type StatisticsStatisticsService_GetProjectRiskHistory_Call
- func (_c *StatisticsStatisticsService_GetProjectRiskHistory_Call) Return(_a0 []models.ProjectRiskHistory, _a1 error) *StatisticsStatisticsService_GetProjectRiskHistory_Call
- func (_c *StatisticsStatisticsService_GetProjectRiskHistory_Call) Run(run func(projectID uuid.UUID, start time.Time, end time.Time)) *StatisticsStatisticsService_GetProjectRiskHistory_Call
- func (_c *StatisticsStatisticsService_GetProjectRiskHistory_Call) RunAndReturn(run func(uuid.UUID, time.Time, time.Time) ([]models.ProjectRiskHistory, error)) *StatisticsStatisticsService_GetProjectRiskHistory_Call
- type StatisticsStatisticsService_UpdateAssetRiskAggregation_Call
- func (_c *StatisticsStatisticsService_UpdateAssetRiskAggregation_Call) Return(_a0 error) *StatisticsStatisticsService_UpdateAssetRiskAggregation_Call
- func (_c *StatisticsStatisticsService_UpdateAssetRiskAggregation_Call) Run(...) *StatisticsStatisticsService_UpdateAssetRiskAggregation_Call
- func (_c *StatisticsStatisticsService_UpdateAssetRiskAggregation_Call) RunAndReturn(run func(uuid.UUID, time.Time, time.Time, bool) error) *StatisticsStatisticsService_UpdateAssetRiskAggregation_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 VulndbAffectedComponentsRepository
- func (_m *VulndbAffectedComponentsRepository) EXPECT() *VulndbAffectedComponentsRepository_Expecter
- func (_m *VulndbAffectedComponentsRepository) GetAllAffectedComponentsID() ([]string, error)
- func (_m *VulndbAffectedComponentsRepository) Save(tx *gorm.DB, affectedComponent *models.AffectedComponent) error
- func (_m *VulndbAffectedComponentsRepository) SaveBatch(tx *gorm.DB, affectedPkgs []models.AffectedComponent) error
- type VulndbAffectedComponentsRepository_Expecter
- func (_e *VulndbAffectedComponentsRepository_Expecter) GetAllAffectedComponentsID() *VulndbAffectedComponentsRepository_GetAllAffectedComponentsID_Call
- func (_e *VulndbAffectedComponentsRepository_Expecter) Save(tx interface{}, affectedComponent interface{}) *VulndbAffectedComponentsRepository_Save_Call
- func (_e *VulndbAffectedComponentsRepository_Expecter) SaveBatch(tx interface{}, affectedPkgs interface{}) *VulndbAffectedComponentsRepository_SaveBatch_Call
- type VulndbAffectedComponentsRepository_GetAllAffectedComponentsID_Call
- func (_c *VulndbAffectedComponentsRepository_GetAllAffectedComponentsID_Call) Return(_a0 []string, _a1 error) *VulndbAffectedComponentsRepository_GetAllAffectedComponentsID_Call
- func (_c *VulndbAffectedComponentsRepository_GetAllAffectedComponentsID_Call) Run(run func()) *VulndbAffectedComponentsRepository_GetAllAffectedComponentsID_Call
- func (_c *VulndbAffectedComponentsRepository_GetAllAffectedComponentsID_Call) RunAndReturn(run func() ([]string, error)) *VulndbAffectedComponentsRepository_GetAllAffectedComponentsID_Call
- type VulndbAffectedComponentsRepository_SaveBatch_Call
- func (_c *VulndbAffectedComponentsRepository_SaveBatch_Call) Return(_a0 error) *VulndbAffectedComponentsRepository_SaveBatch_Call
- func (_c *VulndbAffectedComponentsRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, affectedPkgs []models.AffectedComponent)) *VulndbAffectedComponentsRepository_SaveBatch_Call
- func (_c *VulndbAffectedComponentsRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.AffectedComponent) error) *VulndbAffectedComponentsRepository_SaveBatch_Call
- type VulndbAffectedComponentsRepository_Save_Call
- func (_c *VulndbAffectedComponentsRepository_Save_Call) Return(_a0 error) *VulndbAffectedComponentsRepository_Save_Call
- func (_c *VulndbAffectedComponentsRepository_Save_Call) Run(run func(tx *gorm.DB, affectedComponent *models.AffectedComponent)) *VulndbAffectedComponentsRepository_Save_Call
- func (_c *VulndbAffectedComponentsRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.AffectedComponent) error) *VulndbAffectedComponentsRepository_Save_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) Activate(tx *gorm.DB, id string) error
- 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_Activate_Call
- func (_c *VulndbCveRepository_Activate_Call) Return(_a0 error) *VulndbCveRepository_Activate_Call
- func (_c *VulndbCveRepository_Activate_Call) Run(run func(tx *gorm.DB, id string)) *VulndbCveRepository_Activate_Call
- func (_c *VulndbCveRepository_Activate_Call) RunAndReturn(run func(*gorm.DB, string) error) *VulndbCveRepository_Activate_Call
- 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) Activate(tx interface{}, id interface{}) *VulndbCveRepository_Activate_Call
- 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 VulndbCvesRepository
- func (_m *VulndbCvesRepository) Activate(tx *gorm.DB, id string) error
- func (_m *VulndbCvesRepository) Begin() *gorm.DB
- func (_m *VulndbCvesRepository) Create(tx *gorm.DB, t *models.CVE) error
- func (_m *VulndbCvesRepository) CreateBatch(tx *gorm.DB, ts []models.CVE) error
- func (_m *VulndbCvesRepository) Delete(tx *gorm.DB, id string) error
- func (_m *VulndbCvesRepository) EXPECT() *VulndbCvesRepository_Expecter
- func (_m *VulndbCvesRepository) GetAllCPEMatchesID() ([]string, error)
- func (_m *VulndbCvesRepository) GetAllCVEsID() ([]string, error)
- func (_m *VulndbCvesRepository) GetDB(tx *gorm.DB) *gorm.DB
- func (_m *VulndbCvesRepository) List(ids []string) ([]models.CVE, error)
- func (_m *VulndbCvesRepository) Read(id string) (models.CVE, error)
- func (_m *VulndbCvesRepository) Save(tx *gorm.DB, cve *models.CVE) error
- func (_m *VulndbCvesRepository) SaveBatch(tx *gorm.DB, ts []models.CVE) error
- func (_m *VulndbCvesRepository) SaveBatchCPEMatch(tx *gorm.DB, matches []models.CPEMatch) error
- func (_m *VulndbCvesRepository) SaveCveAffectedComponents(tx *gorm.DB, cveId string, affectedComponentHashes []string) error
- func (_m *VulndbCvesRepository) Transaction(_a0 func(*gorm.DB) error) error
- type VulndbCvesRepository_Activate_Call
- func (_c *VulndbCvesRepository_Activate_Call) Return(_a0 error) *VulndbCvesRepository_Activate_Call
- func (_c *VulndbCvesRepository_Activate_Call) Run(run func(tx *gorm.DB, id string)) *VulndbCvesRepository_Activate_Call
- func (_c *VulndbCvesRepository_Activate_Call) RunAndReturn(run func(*gorm.DB, string) error) *VulndbCvesRepository_Activate_Call
- type VulndbCvesRepository_Begin_Call
- type VulndbCvesRepository_CreateBatch_Call
- func (_c *VulndbCvesRepository_CreateBatch_Call) Return(_a0 error) *VulndbCvesRepository_CreateBatch_Call
- func (_c *VulndbCvesRepository_CreateBatch_Call) Run(run func(tx *gorm.DB, ts []models.CVE)) *VulndbCvesRepository_CreateBatch_Call
- func (_c *VulndbCvesRepository_CreateBatch_Call) RunAndReturn(run func(*gorm.DB, []models.CVE) error) *VulndbCvesRepository_CreateBatch_Call
- type VulndbCvesRepository_Create_Call
- func (_c *VulndbCvesRepository_Create_Call) Return(_a0 error) *VulndbCvesRepository_Create_Call
- func (_c *VulndbCvesRepository_Create_Call) Run(run func(tx *gorm.DB, t *models.CVE)) *VulndbCvesRepository_Create_Call
- func (_c *VulndbCvesRepository_Create_Call) RunAndReturn(run func(*gorm.DB, *models.CVE) error) *VulndbCvesRepository_Create_Call
- type VulndbCvesRepository_Delete_Call
- func (_c *VulndbCvesRepository_Delete_Call) Return(_a0 error) *VulndbCvesRepository_Delete_Call
- func (_c *VulndbCvesRepository_Delete_Call) Run(run func(tx *gorm.DB, id string)) *VulndbCvesRepository_Delete_Call
- func (_c *VulndbCvesRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, string) error) *VulndbCvesRepository_Delete_Call
- type VulndbCvesRepository_Expecter
- func (_e *VulndbCvesRepository_Expecter) Activate(tx interface{}, id interface{}) *VulndbCvesRepository_Activate_Call
- func (_e *VulndbCvesRepository_Expecter) Begin() *VulndbCvesRepository_Begin_Call
- func (_e *VulndbCvesRepository_Expecter) Create(tx interface{}, t interface{}) *VulndbCvesRepository_Create_Call
- func (_e *VulndbCvesRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *VulndbCvesRepository_CreateBatch_Call
- func (_e *VulndbCvesRepository_Expecter) Delete(tx interface{}, id interface{}) *VulndbCvesRepository_Delete_Call
- func (_e *VulndbCvesRepository_Expecter) GetAllCPEMatchesID() *VulndbCvesRepository_GetAllCPEMatchesID_Call
- func (_e *VulndbCvesRepository_Expecter) GetAllCVEsID() *VulndbCvesRepository_GetAllCVEsID_Call
- func (_e *VulndbCvesRepository_Expecter) GetDB(tx interface{}) *VulndbCvesRepository_GetDB_Call
- func (_e *VulndbCvesRepository_Expecter) List(ids interface{}) *VulndbCvesRepository_List_Call
- func (_e *VulndbCvesRepository_Expecter) Read(id interface{}) *VulndbCvesRepository_Read_Call
- func (_e *VulndbCvesRepository_Expecter) Save(tx interface{}, cve interface{}) *VulndbCvesRepository_Save_Call
- func (_e *VulndbCvesRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *VulndbCvesRepository_SaveBatch_Call
- func (_e *VulndbCvesRepository_Expecter) SaveBatchCPEMatch(tx interface{}, matches interface{}) *VulndbCvesRepository_SaveBatchCPEMatch_Call
- func (_e *VulndbCvesRepository_Expecter) SaveCveAffectedComponents(tx interface{}, cveId interface{}, affectedComponentHashes interface{}) *VulndbCvesRepository_SaveCveAffectedComponents_Call
- func (_e *VulndbCvesRepository_Expecter) Transaction(_a0 interface{}) *VulndbCvesRepository_Transaction_Call
- type VulndbCvesRepository_GetAllCPEMatchesID_Call
- func (_c *VulndbCvesRepository_GetAllCPEMatchesID_Call) Return(_a0 []string, _a1 error) *VulndbCvesRepository_GetAllCPEMatchesID_Call
- func (_c *VulndbCvesRepository_GetAllCPEMatchesID_Call) Run(run func()) *VulndbCvesRepository_GetAllCPEMatchesID_Call
- func (_c *VulndbCvesRepository_GetAllCPEMatchesID_Call) RunAndReturn(run func() ([]string, error)) *VulndbCvesRepository_GetAllCPEMatchesID_Call
- type VulndbCvesRepository_GetAllCVEsID_Call
- func (_c *VulndbCvesRepository_GetAllCVEsID_Call) Return(_a0 []string, _a1 error) *VulndbCvesRepository_GetAllCVEsID_Call
- func (_c *VulndbCvesRepository_GetAllCVEsID_Call) Run(run func()) *VulndbCvesRepository_GetAllCVEsID_Call
- func (_c *VulndbCvesRepository_GetAllCVEsID_Call) RunAndReturn(run func() ([]string, error)) *VulndbCvesRepository_GetAllCVEsID_Call
- type VulndbCvesRepository_GetDB_Call
- func (_c *VulndbCvesRepository_GetDB_Call) Return(_a0 *gorm.DB) *VulndbCvesRepository_GetDB_Call
- func (_c *VulndbCvesRepository_GetDB_Call) Run(run func(tx *gorm.DB)) *VulndbCvesRepository_GetDB_Call
- func (_c *VulndbCvesRepository_GetDB_Call) RunAndReturn(run func(*gorm.DB) *gorm.DB) *VulndbCvesRepository_GetDB_Call
- type VulndbCvesRepository_List_Call
- func (_c *VulndbCvesRepository_List_Call) Return(_a0 []models.CVE, _a1 error) *VulndbCvesRepository_List_Call
- func (_c *VulndbCvesRepository_List_Call) Run(run func(ids []string)) *VulndbCvesRepository_List_Call
- func (_c *VulndbCvesRepository_List_Call) RunAndReturn(run func([]string) ([]models.CVE, error)) *VulndbCvesRepository_List_Call
- type VulndbCvesRepository_Read_Call
- func (_c *VulndbCvesRepository_Read_Call) Return(_a0 models.CVE, _a1 error) *VulndbCvesRepository_Read_Call
- func (_c *VulndbCvesRepository_Read_Call) Run(run func(id string)) *VulndbCvesRepository_Read_Call
- func (_c *VulndbCvesRepository_Read_Call) RunAndReturn(run func(string) (models.CVE, error)) *VulndbCvesRepository_Read_Call
- type VulndbCvesRepository_SaveBatchCPEMatch_Call
- func (_c *VulndbCvesRepository_SaveBatchCPEMatch_Call) Return(_a0 error) *VulndbCvesRepository_SaveBatchCPEMatch_Call
- func (_c *VulndbCvesRepository_SaveBatchCPEMatch_Call) Run(run func(tx *gorm.DB, matches []models.CPEMatch)) *VulndbCvesRepository_SaveBatchCPEMatch_Call
- func (_c *VulndbCvesRepository_SaveBatchCPEMatch_Call) RunAndReturn(run func(*gorm.DB, []models.CPEMatch) error) *VulndbCvesRepository_SaveBatchCPEMatch_Call
- type VulndbCvesRepository_SaveBatch_Call
- func (_c *VulndbCvesRepository_SaveBatch_Call) Return(_a0 error) *VulndbCvesRepository_SaveBatch_Call
- func (_c *VulndbCvesRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, ts []models.CVE)) *VulndbCvesRepository_SaveBatch_Call
- func (_c *VulndbCvesRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.CVE) error) *VulndbCvesRepository_SaveBatch_Call
- type VulndbCvesRepository_SaveCveAffectedComponents_Call
- func (_c *VulndbCvesRepository_SaveCveAffectedComponents_Call) Return(_a0 error) *VulndbCvesRepository_SaveCveAffectedComponents_Call
- func (_c *VulndbCvesRepository_SaveCveAffectedComponents_Call) Run(run func(tx *gorm.DB, cveId string, affectedComponentHashes []string)) *VulndbCvesRepository_SaveCveAffectedComponents_Call
- func (_c *VulndbCvesRepository_SaveCveAffectedComponents_Call) RunAndReturn(run func(*gorm.DB, string, []string) error) *VulndbCvesRepository_SaveCveAffectedComponents_Call
- type VulndbCvesRepository_Save_Call
- func (_c *VulndbCvesRepository_Save_Call) Return(_a0 error) *VulndbCvesRepository_Save_Call
- func (_c *VulndbCvesRepository_Save_Call) Run(run func(tx *gorm.DB, cve *models.CVE)) *VulndbCvesRepository_Save_Call
- func (_c *VulndbCvesRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.CVE) error) *VulndbCvesRepository_Save_Call
- type VulndbCvesRepository_Transaction_Call
- func (_c *VulndbCvesRepository_Transaction_Call) Return(_a0 error) *VulndbCvesRepository_Transaction_Call
- func (_c *VulndbCvesRepository_Transaction_Call) Run(run func(_a0 func(*gorm.DB) error)) *VulndbCvesRepository_Transaction_Call
- func (_c *VulndbCvesRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *VulndbCvesRepository_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 VulndbCwesRepository
- type VulndbCwesRepository_Expecter
- type VulndbCwesRepository_GetAllCWEsID_Call
- func (_c *VulndbCwesRepository_GetAllCWEsID_Call) Return(_a0 []string, _a1 error) *VulndbCwesRepository_GetAllCWEsID_Call
- func (_c *VulndbCwesRepository_GetAllCWEsID_Call) Run(run func()) *VulndbCwesRepository_GetAllCWEsID_Call
- func (_c *VulndbCwesRepository_GetAllCWEsID_Call) RunAndReturn(run func() ([]string, error)) *VulndbCwesRepository_GetAllCWEsID_Call
- type VulndbCwesRepository_SaveBatch_Call
- func (_c *VulndbCwesRepository_SaveBatch_Call) Return(_a0 error) *VulndbCwesRepository_SaveBatch_Call
- func (_c *VulndbCwesRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, cwes []models.CWE)) *VulndbCwesRepository_SaveBatch_Call
- func (_c *VulndbCwesRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.CWE) error) *VulndbCwesRepository_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 VulndbExploitsRepository
- type VulndbExploitsRepository_Expecter
- type VulndbExploitsRepository_GetAllExploitsID_Call
- func (_c *VulndbExploitsRepository_GetAllExploitsID_Call) Return(_a0 []string, _a1 error) *VulndbExploitsRepository_GetAllExploitsID_Call
- func (_c *VulndbExploitsRepository_GetAllExploitsID_Call) Run(run func()) *VulndbExploitsRepository_GetAllExploitsID_Call
- func (_c *VulndbExploitsRepository_GetAllExploitsID_Call) RunAndReturn(run func() ([]string, error)) *VulndbExploitsRepository_GetAllExploitsID_Call
- type VulndbExploitsRepository_SaveBatch_Call
- func (_c *VulndbExploitsRepository_SaveBatch_Call) Return(_a0 error) *VulndbExploitsRepository_SaveBatch_Call
- func (_c *VulndbExploitsRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, exploits []models.Exploit)) *VulndbExploitsRepository_SaveBatch_Call
- func (_c *VulndbExploitsRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Exploit) error) *VulndbExploitsRepository_SaveBatch_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_IfLeader_Call
- func (_c *VulndbLeaderElector_IfLeader_Call) Return() *VulndbLeaderElector_IfLeader_Call
- func (_c *VulndbLeaderElector_IfLeader_Call) Run(run func(ctx context.Context, fn func() error)) *VulndbLeaderElector_IfLeader_Call
- func (_c *VulndbLeaderElector_IfLeader_Call) RunAndReturn(run func(context.Context, func() error)) *VulndbLeaderElector_IfLeader_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 AccesscontrolAccessControl ¶ added in v0.5.14
AccesscontrolAccessControl is an autogenerated mock type for the AccessControl type
func NewAccesscontrolAccessControl ¶ added in v0.5.14
func NewAccesscontrolAccessControl(t interface {
mock.TestingT
Cleanup(func())
}) *AccesscontrolAccessControl
NewAccesscontrolAccessControl creates a new instance of AccesscontrolAccessControl. 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 (*AccesscontrolAccessControl) AllowRole ¶ added in v0.5.14
func (_m *AccesscontrolAccessControl) AllowRole(role string, object string, action []accesscontrol.Action) error
AllowRole provides a mock function with given fields: role, object, action
func (*AccesscontrolAccessControl) AllowRoleInProject ¶ added in v0.5.14
func (_m *AccesscontrolAccessControl) AllowRoleInProject(project string, role string, object string, action []accesscontrol.Action) error
AllowRoleInProject provides a mock function with given fields: project, role, object, action
func (*AccesscontrolAccessControl) EXPECT ¶ added in v0.5.14
func (_m *AccesscontrolAccessControl) EXPECT() *AccesscontrolAccessControl_Expecter
func (*AccesscontrolAccessControl) GetAllMembersOfOrganization ¶ added in v0.5.14
func (_m *AccesscontrolAccessControl) GetAllMembersOfOrganization() ([]string, error)
GetAllMembersOfOrganization provides a mock function with no fields
func (*AccesscontrolAccessControl) GetAllMembersOfProject ¶ added in v0.5.14
func (_m *AccesscontrolAccessControl) GetAllMembersOfProject(projectID string) ([]string, error)
GetAllMembersOfProject provides a mock function with given fields: projectID
func (*AccesscontrolAccessControl) GetAllProjectsForUser ¶ added in v0.5.14
func (_m *AccesscontrolAccessControl) GetAllProjectsForUser(user string) []string
GetAllProjectsForUser provides a mock function with given fields: user
func (*AccesscontrolAccessControl) GetAllRoles ¶ added in v0.5.14
func (_m *AccesscontrolAccessControl) GetAllRoles(user string) []string
GetAllRoles provides a mock function with given fields: user
func (*AccesscontrolAccessControl) GetDomainRole ¶ added in v0.5.14
func (_m *AccesscontrolAccessControl) GetDomainRole(user string) (string, error)
GetDomainRole provides a mock function with given fields: user
func (*AccesscontrolAccessControl) GetOwnerOfOrganization ¶ added in v0.5.14
func (_m *AccesscontrolAccessControl) GetOwnerOfOrganization() (string, error)
GetOwnerOfOrganization provides a mock function with no fields
func (*AccesscontrolAccessControl) GetProjectRole ¶ added in v0.5.14
func (_m *AccesscontrolAccessControl) GetProjectRole(user string, project string) (string, error)
GetProjectRole provides a mock function with given fields: user, project
func (*AccesscontrolAccessControl) GrantRole ¶ added in v0.5.14
func (_m *AccesscontrolAccessControl) GrantRole(subject string, role string) error
GrantRole provides a mock function with given fields: subject, role
func (*AccesscontrolAccessControl) GrantRoleInProject ¶ added in v0.5.14
func (_m *AccesscontrolAccessControl) GrantRoleInProject(subject string, role string, project string) error
GrantRoleInProject provides a mock function with given fields: subject, role, project
func (*AccesscontrolAccessControl) HasAccess ¶ added in v0.5.14
func (_m *AccesscontrolAccessControl) HasAccess(subject string) bool
HasAccess provides a mock function with given fields: subject
func (*AccesscontrolAccessControl) InheritProjectRole ¶ added in v0.5.14
func (_m *AccesscontrolAccessControl) InheritProjectRole(roleWhichGetsPermissions string, roleWhichProvidesPermissions string, project string) error
InheritProjectRole provides a mock function with given fields: roleWhichGetsPermissions, roleWhichProvidesPermissions, project
func (*AccesscontrolAccessControl) InheritProjectRolesAcrossProjects ¶ added in v0.5.15
func (_m *AccesscontrolAccessControl) InheritProjectRolesAcrossProjects(roleWhichGetsPermissions accesscontrol.ProjectRole, roleWhichProvidesPermissions accesscontrol.ProjectRole) error
InheritProjectRolesAcrossProjects provides a mock function with given fields: roleWhichGetsPermissions, roleWhichProvidesPermissions
func (*AccesscontrolAccessControl) InheritRole ¶ added in v0.5.14
func (_m *AccesscontrolAccessControl) InheritRole(roleWhichGetsPermissions string, roleWhichProvidesPermissions string) error
InheritRole provides a mock function with given fields: roleWhichGetsPermissions, roleWhichProvidesPermissions
func (*AccesscontrolAccessControl) IsAllowed ¶ added in v0.5.14
func (_m *AccesscontrolAccessControl) IsAllowed(subject string, object string, action accesscontrol.Action) (bool, error)
IsAllowed provides a mock function with given fields: subject, object, action
func (*AccesscontrolAccessControl) IsAllowedInProject ¶ added in v0.5.14
func (_m *AccesscontrolAccessControl) IsAllowedInProject(project string, user string, object string, action accesscontrol.Action) (bool, error)
IsAllowedInProject provides a mock function with given fields: project, user, object, action
func (*AccesscontrolAccessControl) LinkDomainAndProjectRole ¶ added in v0.5.14
func (_m *AccesscontrolAccessControl) LinkDomainAndProjectRole(domainRoleWhichGetsPermission string, projectRoleWhichProvidesPermissions string, project string) error
LinkDomainAndProjectRole provides a mock function with given fields: domainRoleWhichGetsPermission, projectRoleWhichProvidesPermissions, project
func (*AccesscontrolAccessControl) RevokeRole ¶ added in v0.5.14
func (_m *AccesscontrolAccessControl) RevokeRole(subject string, role string) error
RevokeRole provides a mock function with given fields: subject, role
func (*AccesscontrolAccessControl) RevokeRoleInProject ¶ added in v0.5.14
func (_m *AccesscontrolAccessControl) RevokeRoleInProject(subject string, role string, project string) error
RevokeRoleInProject provides a mock function with given fields: subject, role, project
type AccesscontrolAccessControl_AllowRoleInProject_Call ¶ added in v0.5.14
AccesscontrolAccessControl_AllowRoleInProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllowRoleInProject'
func (*AccesscontrolAccessControl_AllowRoleInProject_Call) Run ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_AllowRoleInProject_Call) Run(run func(project string, role string, object string, action []accesscontrol.Action)) *AccesscontrolAccessControl_AllowRoleInProject_Call
func (*AccesscontrolAccessControl_AllowRoleInProject_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_AllowRoleInProject_Call) RunAndReturn(run func(string, string, string, []accesscontrol.Action) error) *AccesscontrolAccessControl_AllowRoleInProject_Call
type AccesscontrolAccessControl_AllowRole_Call ¶ added in v0.5.14
AccesscontrolAccessControl_AllowRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllowRole'
func (*AccesscontrolAccessControl_AllowRole_Call) Return ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_AllowRole_Call) Return(_a0 error) *AccesscontrolAccessControl_AllowRole_Call
func (*AccesscontrolAccessControl_AllowRole_Call) Run ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_AllowRole_Call) Run(run func(role string, object string, action []accesscontrol.Action)) *AccesscontrolAccessControl_AllowRole_Call
func (*AccesscontrolAccessControl_AllowRole_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_AllowRole_Call) RunAndReturn(run func(string, string, []accesscontrol.Action) error) *AccesscontrolAccessControl_AllowRole_Call
type AccesscontrolAccessControl_Expecter ¶ added in v0.5.14
type AccesscontrolAccessControl_Expecter struct {
// contains filtered or unexported fields
}
func (*AccesscontrolAccessControl_Expecter) AllowRole ¶ added in v0.5.14
func (_e *AccesscontrolAccessControl_Expecter) AllowRole(role interface{}, object interface{}, action interface{}) *AccesscontrolAccessControl_AllowRole_Call
AllowRole is a helper method to define mock.On call
- role string
- object string
- action []accesscontrol.Action
func (*AccesscontrolAccessControl_Expecter) AllowRoleInProject ¶ added in v0.5.14
func (_e *AccesscontrolAccessControl_Expecter) AllowRoleInProject(project interface{}, role interface{}, object interface{}, action interface{}) *AccesscontrolAccessControl_AllowRoleInProject_Call
AllowRoleInProject is a helper method to define mock.On call
- project string
- role string
- object string
- action []accesscontrol.Action
func (*AccesscontrolAccessControl_Expecter) GetAllMembersOfOrganization ¶ added in v0.5.14
func (_e *AccesscontrolAccessControl_Expecter) GetAllMembersOfOrganization() *AccesscontrolAccessControl_GetAllMembersOfOrganization_Call
GetAllMembersOfOrganization is a helper method to define mock.On call
func (*AccesscontrolAccessControl_Expecter) GetAllMembersOfProject ¶ added in v0.5.14
func (_e *AccesscontrolAccessControl_Expecter) GetAllMembersOfProject(projectID interface{}) *AccesscontrolAccessControl_GetAllMembersOfProject_Call
GetAllMembersOfProject is a helper method to define mock.On call
- projectID string
func (*AccesscontrolAccessControl_Expecter) GetAllProjectsForUser ¶ added in v0.5.14
func (_e *AccesscontrolAccessControl_Expecter) GetAllProjectsForUser(user interface{}) *AccesscontrolAccessControl_GetAllProjectsForUser_Call
GetAllProjectsForUser is a helper method to define mock.On call
- user string
func (*AccesscontrolAccessControl_Expecter) GetAllRoles ¶ added in v0.5.14
func (_e *AccesscontrolAccessControl_Expecter) GetAllRoles(user interface{}) *AccesscontrolAccessControl_GetAllRoles_Call
GetAllRoles is a helper method to define mock.On call
- user string
func (*AccesscontrolAccessControl_Expecter) GetDomainRole ¶ added in v0.5.14
func (_e *AccesscontrolAccessControl_Expecter) GetDomainRole(user interface{}) *AccesscontrolAccessControl_GetDomainRole_Call
GetDomainRole is a helper method to define mock.On call
- user string
func (*AccesscontrolAccessControl_Expecter) GetOwnerOfOrganization ¶ added in v0.5.14
func (_e *AccesscontrolAccessControl_Expecter) GetOwnerOfOrganization() *AccesscontrolAccessControl_GetOwnerOfOrganization_Call
GetOwnerOfOrganization is a helper method to define mock.On call
func (*AccesscontrolAccessControl_Expecter) GetProjectRole ¶ added in v0.5.14
func (_e *AccesscontrolAccessControl_Expecter) GetProjectRole(user interface{}, project interface{}) *AccesscontrolAccessControl_GetProjectRole_Call
GetProjectRole is a helper method to define mock.On call
- user string
- project string
func (*AccesscontrolAccessControl_Expecter) GrantRole ¶ added in v0.5.14
func (_e *AccesscontrolAccessControl_Expecter) GrantRole(subject interface{}, role interface{}) *AccesscontrolAccessControl_GrantRole_Call
GrantRole is a helper method to define mock.On call
- subject string
- role string
func (*AccesscontrolAccessControl_Expecter) GrantRoleInProject ¶ added in v0.5.14
func (_e *AccesscontrolAccessControl_Expecter) GrantRoleInProject(subject interface{}, role interface{}, project interface{}) *AccesscontrolAccessControl_GrantRoleInProject_Call
GrantRoleInProject is a helper method to define mock.On call
- subject string
- role string
- project string
func (*AccesscontrolAccessControl_Expecter) HasAccess ¶ added in v0.5.14
func (_e *AccesscontrolAccessControl_Expecter) HasAccess(subject interface{}) *AccesscontrolAccessControl_HasAccess_Call
HasAccess is a helper method to define mock.On call
- subject string
func (*AccesscontrolAccessControl_Expecter) InheritProjectRole ¶ added in v0.5.14
func (_e *AccesscontrolAccessControl_Expecter) InheritProjectRole(roleWhichGetsPermissions interface{}, roleWhichProvidesPermissions interface{}, project interface{}) *AccesscontrolAccessControl_InheritProjectRole_Call
InheritProjectRole is a helper method to define mock.On call
- roleWhichGetsPermissions string
- roleWhichProvidesPermissions string
- project string
func (*AccesscontrolAccessControl_Expecter) InheritProjectRolesAcrossProjects ¶ added in v0.5.15
func (_e *AccesscontrolAccessControl_Expecter) InheritProjectRolesAcrossProjects(roleWhichGetsPermissions interface{}, roleWhichProvidesPermissions interface{}) *AccesscontrolAccessControl_InheritProjectRolesAcrossProjects_Call
InheritProjectRolesAcrossProjects is a helper method to define mock.On call
- roleWhichGetsPermissions accesscontrol.ProjectRole
- roleWhichProvidesPermissions accesscontrol.ProjectRole
func (*AccesscontrolAccessControl_Expecter) InheritRole ¶ added in v0.5.14
func (_e *AccesscontrolAccessControl_Expecter) InheritRole(roleWhichGetsPermissions interface{}, roleWhichProvidesPermissions interface{}) *AccesscontrolAccessControl_InheritRole_Call
InheritRole is a helper method to define mock.On call
- roleWhichGetsPermissions string
- roleWhichProvidesPermissions string
func (*AccesscontrolAccessControl_Expecter) IsAllowed ¶ added in v0.5.14
func (_e *AccesscontrolAccessControl_Expecter) IsAllowed(subject interface{}, object interface{}, action interface{}) *AccesscontrolAccessControl_IsAllowed_Call
IsAllowed is a helper method to define mock.On call
- subject string
- object string
- action accesscontrol.Action
func (*AccesscontrolAccessControl_Expecter) IsAllowedInProject ¶ added in v0.5.14
func (_e *AccesscontrolAccessControl_Expecter) IsAllowedInProject(project interface{}, user interface{}, object interface{}, action interface{}) *AccesscontrolAccessControl_IsAllowedInProject_Call
IsAllowedInProject is a helper method to define mock.On call
- project string
- user string
- object string
- action accesscontrol.Action
func (*AccesscontrolAccessControl_Expecter) LinkDomainAndProjectRole ¶ added in v0.5.14
func (_e *AccesscontrolAccessControl_Expecter) LinkDomainAndProjectRole(domainRoleWhichGetsPermission interface{}, projectRoleWhichProvidesPermissions interface{}, project interface{}) *AccesscontrolAccessControl_LinkDomainAndProjectRole_Call
LinkDomainAndProjectRole is a helper method to define mock.On call
- domainRoleWhichGetsPermission string
- projectRoleWhichProvidesPermissions string
- project string
func (*AccesscontrolAccessControl_Expecter) RevokeRole ¶ added in v0.5.14
func (_e *AccesscontrolAccessControl_Expecter) RevokeRole(subject interface{}, role interface{}) *AccesscontrolAccessControl_RevokeRole_Call
RevokeRole is a helper method to define mock.On call
- subject string
- role string
func (*AccesscontrolAccessControl_Expecter) RevokeRoleInProject ¶ added in v0.5.14
func (_e *AccesscontrolAccessControl_Expecter) RevokeRoleInProject(subject interface{}, role interface{}, project interface{}) *AccesscontrolAccessControl_RevokeRoleInProject_Call
RevokeRoleInProject is a helper method to define mock.On call
- subject string
- role string
- project string
type AccesscontrolAccessControl_GetAllMembersOfOrganization_Call ¶ added in v0.5.14
AccesscontrolAccessControl_GetAllMembersOfOrganization_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllMembersOfOrganization'
func (*AccesscontrolAccessControl_GetAllMembersOfOrganization_Call) Return ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GetAllMembersOfOrganization_Call) Return(_a0 []string, _a1 error) *AccesscontrolAccessControl_GetAllMembersOfOrganization_Call
func (*AccesscontrolAccessControl_GetAllMembersOfOrganization_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GetAllMembersOfOrganization_Call) RunAndReturn(run func() ([]string, error)) *AccesscontrolAccessControl_GetAllMembersOfOrganization_Call
type AccesscontrolAccessControl_GetAllMembersOfProject_Call ¶ added in v0.5.14
AccesscontrolAccessControl_GetAllMembersOfProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllMembersOfProject'
func (*AccesscontrolAccessControl_GetAllMembersOfProject_Call) Return ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GetAllMembersOfProject_Call) Return(_a0 []string, _a1 error) *AccesscontrolAccessControl_GetAllMembersOfProject_Call
func (*AccesscontrolAccessControl_GetAllMembersOfProject_Call) Run ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GetAllMembersOfProject_Call) Run(run func(projectID string)) *AccesscontrolAccessControl_GetAllMembersOfProject_Call
func (*AccesscontrolAccessControl_GetAllMembersOfProject_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GetAllMembersOfProject_Call) RunAndReturn(run func(string) ([]string, error)) *AccesscontrolAccessControl_GetAllMembersOfProject_Call
type AccesscontrolAccessControl_GetAllProjectsForUser_Call ¶ added in v0.5.14
AccesscontrolAccessControl_GetAllProjectsForUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllProjectsForUser'
func (*AccesscontrolAccessControl_GetAllProjectsForUser_Call) Return ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GetAllProjectsForUser_Call) Return(_a0 []string) *AccesscontrolAccessControl_GetAllProjectsForUser_Call
func (*AccesscontrolAccessControl_GetAllProjectsForUser_Call) Run ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GetAllProjectsForUser_Call) Run(run func(user string)) *AccesscontrolAccessControl_GetAllProjectsForUser_Call
func (*AccesscontrolAccessControl_GetAllProjectsForUser_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GetAllProjectsForUser_Call) RunAndReturn(run func(string) []string) *AccesscontrolAccessControl_GetAllProjectsForUser_Call
type AccesscontrolAccessControl_GetAllRoles_Call ¶ added in v0.5.14
AccesscontrolAccessControl_GetAllRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllRoles'
func (*AccesscontrolAccessControl_GetAllRoles_Call) Return ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GetAllRoles_Call) Return(_a0 []string) *AccesscontrolAccessControl_GetAllRoles_Call
func (*AccesscontrolAccessControl_GetAllRoles_Call) Run ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GetAllRoles_Call) Run(run func(user string)) *AccesscontrolAccessControl_GetAllRoles_Call
func (*AccesscontrolAccessControl_GetAllRoles_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GetAllRoles_Call) RunAndReturn(run func(string) []string) *AccesscontrolAccessControl_GetAllRoles_Call
type AccesscontrolAccessControl_GetDomainRole_Call ¶ added in v0.5.14
AccesscontrolAccessControl_GetDomainRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDomainRole'
func (*AccesscontrolAccessControl_GetDomainRole_Call) Return ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GetDomainRole_Call) Return(_a0 string, _a1 error) *AccesscontrolAccessControl_GetDomainRole_Call
func (*AccesscontrolAccessControl_GetDomainRole_Call) Run ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GetDomainRole_Call) Run(run func(user string)) *AccesscontrolAccessControl_GetDomainRole_Call
func (*AccesscontrolAccessControl_GetDomainRole_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GetDomainRole_Call) RunAndReturn(run func(string) (string, error)) *AccesscontrolAccessControl_GetDomainRole_Call
type AccesscontrolAccessControl_GetOwnerOfOrganization_Call ¶ added in v0.5.14
AccesscontrolAccessControl_GetOwnerOfOrganization_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOwnerOfOrganization'
func (*AccesscontrolAccessControl_GetOwnerOfOrganization_Call) Return ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GetOwnerOfOrganization_Call) Return(_a0 string, _a1 error) *AccesscontrolAccessControl_GetOwnerOfOrganization_Call
func (*AccesscontrolAccessControl_GetOwnerOfOrganization_Call) Run ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GetOwnerOfOrganization_Call) Run(run func()) *AccesscontrolAccessControl_GetOwnerOfOrganization_Call
func (*AccesscontrolAccessControl_GetOwnerOfOrganization_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GetOwnerOfOrganization_Call) RunAndReturn(run func() (string, error)) *AccesscontrolAccessControl_GetOwnerOfOrganization_Call
type AccesscontrolAccessControl_GetProjectRole_Call ¶ added in v0.5.14
AccesscontrolAccessControl_GetProjectRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProjectRole'
func (*AccesscontrolAccessControl_GetProjectRole_Call) Return ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GetProjectRole_Call) Return(_a0 string, _a1 error) *AccesscontrolAccessControl_GetProjectRole_Call
func (*AccesscontrolAccessControl_GetProjectRole_Call) Run ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GetProjectRole_Call) Run(run func(user string, project string)) *AccesscontrolAccessControl_GetProjectRole_Call
func (*AccesscontrolAccessControl_GetProjectRole_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GetProjectRole_Call) RunAndReturn(run func(string, string) (string, error)) *AccesscontrolAccessControl_GetProjectRole_Call
type AccesscontrolAccessControl_GrantRoleInProject_Call ¶ added in v0.5.14
AccesscontrolAccessControl_GrantRoleInProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrantRoleInProject'
func (*AccesscontrolAccessControl_GrantRoleInProject_Call) Run ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GrantRoleInProject_Call) Run(run func(subject string, role string, project string)) *AccesscontrolAccessControl_GrantRoleInProject_Call
func (*AccesscontrolAccessControl_GrantRoleInProject_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GrantRoleInProject_Call) RunAndReturn(run func(string, string, string) error) *AccesscontrolAccessControl_GrantRoleInProject_Call
type AccesscontrolAccessControl_GrantRole_Call ¶ added in v0.5.14
AccesscontrolAccessControl_GrantRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrantRole'
func (*AccesscontrolAccessControl_GrantRole_Call) Return ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GrantRole_Call) Return(_a0 error) *AccesscontrolAccessControl_GrantRole_Call
func (*AccesscontrolAccessControl_GrantRole_Call) Run ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GrantRole_Call) Run(run func(subject string, role string)) *AccesscontrolAccessControl_GrantRole_Call
func (*AccesscontrolAccessControl_GrantRole_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_GrantRole_Call) RunAndReturn(run func(string, string) error) *AccesscontrolAccessControl_GrantRole_Call
type AccesscontrolAccessControl_HasAccess_Call ¶ added in v0.5.14
AccesscontrolAccessControl_HasAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasAccess'
func (*AccesscontrolAccessControl_HasAccess_Call) Return ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_HasAccess_Call) Return(_a0 bool) *AccesscontrolAccessControl_HasAccess_Call
func (*AccesscontrolAccessControl_HasAccess_Call) Run ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_HasAccess_Call) Run(run func(subject string)) *AccesscontrolAccessControl_HasAccess_Call
func (*AccesscontrolAccessControl_HasAccess_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_HasAccess_Call) RunAndReturn(run func(string) bool) *AccesscontrolAccessControl_HasAccess_Call
type AccesscontrolAccessControl_InheritProjectRole_Call ¶ added in v0.5.14
AccesscontrolAccessControl_InheritProjectRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InheritProjectRole'
func (*AccesscontrolAccessControl_InheritProjectRole_Call) Run ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_InheritProjectRole_Call) Run(run func(roleWhichGetsPermissions string, roleWhichProvidesPermissions string, project string)) *AccesscontrolAccessControl_InheritProjectRole_Call
func (*AccesscontrolAccessControl_InheritProjectRole_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_InheritProjectRole_Call) RunAndReturn(run func(string, string, string) error) *AccesscontrolAccessControl_InheritProjectRole_Call
type AccesscontrolAccessControl_InheritProjectRolesAcrossProjects_Call ¶ added in v0.5.15
AccesscontrolAccessControl_InheritProjectRolesAcrossProjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InheritProjectRolesAcrossProjects'
func (*AccesscontrolAccessControl_InheritProjectRolesAcrossProjects_Call) Run ¶ added in v0.5.15
func (_c *AccesscontrolAccessControl_InheritProjectRolesAcrossProjects_Call) Run(run func(roleWhichGetsPermissions accesscontrol.ProjectRole, roleWhichProvidesPermissions accesscontrol.ProjectRole)) *AccesscontrolAccessControl_InheritProjectRolesAcrossProjects_Call
func (*AccesscontrolAccessControl_InheritProjectRolesAcrossProjects_Call) RunAndReturn ¶ added in v0.5.15
type AccesscontrolAccessControl_InheritRole_Call ¶ added in v0.5.14
AccesscontrolAccessControl_InheritRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InheritRole'
func (*AccesscontrolAccessControl_InheritRole_Call) Return ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_InheritRole_Call) Return(_a0 error) *AccesscontrolAccessControl_InheritRole_Call
func (*AccesscontrolAccessControl_InheritRole_Call) Run ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_InheritRole_Call) Run(run func(roleWhichGetsPermissions string, roleWhichProvidesPermissions string)) *AccesscontrolAccessControl_InheritRole_Call
func (*AccesscontrolAccessControl_InheritRole_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_InheritRole_Call) RunAndReturn(run func(string, string) error) *AccesscontrolAccessControl_InheritRole_Call
type AccesscontrolAccessControl_IsAllowedInProject_Call ¶ added in v0.5.14
AccesscontrolAccessControl_IsAllowedInProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsAllowedInProject'
func (*AccesscontrolAccessControl_IsAllowedInProject_Call) Return ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_IsAllowedInProject_Call) Return(_a0 bool, _a1 error) *AccesscontrolAccessControl_IsAllowedInProject_Call
func (*AccesscontrolAccessControl_IsAllowedInProject_Call) Run ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_IsAllowedInProject_Call) Run(run func(project string, user string, object string, action accesscontrol.Action)) *AccesscontrolAccessControl_IsAllowedInProject_Call
func (*AccesscontrolAccessControl_IsAllowedInProject_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_IsAllowedInProject_Call) RunAndReturn(run func(string, string, string, accesscontrol.Action) (bool, error)) *AccesscontrolAccessControl_IsAllowedInProject_Call
type AccesscontrolAccessControl_IsAllowed_Call ¶ added in v0.5.14
AccesscontrolAccessControl_IsAllowed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsAllowed'
func (*AccesscontrolAccessControl_IsAllowed_Call) Return ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_IsAllowed_Call) Return(_a0 bool, _a1 error) *AccesscontrolAccessControl_IsAllowed_Call
func (*AccesscontrolAccessControl_IsAllowed_Call) Run ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_IsAllowed_Call) Run(run func(subject string, object string, action accesscontrol.Action)) *AccesscontrolAccessControl_IsAllowed_Call
func (*AccesscontrolAccessControl_IsAllowed_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_IsAllowed_Call) RunAndReturn(run func(string, string, accesscontrol.Action) (bool, error)) *AccesscontrolAccessControl_IsAllowed_Call
type AccesscontrolAccessControl_LinkDomainAndProjectRole_Call ¶ added in v0.5.14
AccesscontrolAccessControl_LinkDomainAndProjectRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LinkDomainAndProjectRole'
func (*AccesscontrolAccessControl_LinkDomainAndProjectRole_Call) Run ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_LinkDomainAndProjectRole_Call) Run(run func(domainRoleWhichGetsPermission string, projectRoleWhichProvidesPermissions string, project string)) *AccesscontrolAccessControl_LinkDomainAndProjectRole_Call
func (*AccesscontrolAccessControl_LinkDomainAndProjectRole_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_LinkDomainAndProjectRole_Call) RunAndReturn(run func(string, string, string) error) *AccesscontrolAccessControl_LinkDomainAndProjectRole_Call
type AccesscontrolAccessControl_RevokeRoleInProject_Call ¶ added in v0.5.14
AccesscontrolAccessControl_RevokeRoleInProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeRoleInProject'
func (*AccesscontrolAccessControl_RevokeRoleInProject_Call) Run ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_RevokeRoleInProject_Call) Run(run func(subject string, role string, project string)) *AccesscontrolAccessControl_RevokeRoleInProject_Call
func (*AccesscontrolAccessControl_RevokeRoleInProject_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_RevokeRoleInProject_Call) RunAndReturn(run func(string, string, string) error) *AccesscontrolAccessControl_RevokeRoleInProject_Call
type AccesscontrolAccessControl_RevokeRole_Call ¶ added in v0.5.14
AccesscontrolAccessControl_RevokeRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeRole'
func (*AccesscontrolAccessControl_RevokeRole_Call) Return ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_RevokeRole_Call) Return(_a0 error) *AccesscontrolAccessControl_RevokeRole_Call
func (*AccesscontrolAccessControl_RevokeRole_Call) Run ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_RevokeRole_Call) Run(run func(subject string, role string)) *AccesscontrolAccessControl_RevokeRole_Call
func (*AccesscontrolAccessControl_RevokeRole_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AccesscontrolAccessControl_RevokeRole_Call) RunAndReturn(run func(string, string) error) *AccesscontrolAccessControl_RevokeRole_Call
type AccesscontrolRBACProvider ¶ added in v0.5.14
AccesscontrolRBACProvider is an autogenerated mock type for the RBACProvider type
func NewAccesscontrolRBACProvider ¶ added in v0.5.14
func NewAccesscontrolRBACProvider(t interface {
mock.TestingT
Cleanup(func())
}) *AccesscontrolRBACProvider
NewAccesscontrolRBACProvider creates a new instance of AccesscontrolRBACProvider. 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 (*AccesscontrolRBACProvider) DomainsOfUser ¶ added in v0.5.14
func (_m *AccesscontrolRBACProvider) DomainsOfUser(user string) ([]string, error)
DomainsOfUser provides a mock function with given fields: user
func (*AccesscontrolRBACProvider) EXPECT ¶ added in v0.5.14
func (_m *AccesscontrolRBACProvider) EXPECT() *AccesscontrolRBACProvider_Expecter
func (*AccesscontrolRBACProvider) GetDomainRBAC ¶ added in v0.5.14
func (_m *AccesscontrolRBACProvider) GetDomainRBAC(domain string) accesscontrol.AccessControl
GetDomainRBAC provides a mock function with given fields: domain
type AccesscontrolRBACProvider_DomainsOfUser_Call ¶ added in v0.5.14
AccesscontrolRBACProvider_DomainsOfUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DomainsOfUser'
func (*AccesscontrolRBACProvider_DomainsOfUser_Call) Return ¶ added in v0.5.14
func (_c *AccesscontrolRBACProvider_DomainsOfUser_Call) Return(_a0 []string, _a1 error) *AccesscontrolRBACProvider_DomainsOfUser_Call
func (*AccesscontrolRBACProvider_DomainsOfUser_Call) Run ¶ added in v0.5.14
func (_c *AccesscontrolRBACProvider_DomainsOfUser_Call) Run(run func(user string)) *AccesscontrolRBACProvider_DomainsOfUser_Call
func (*AccesscontrolRBACProvider_DomainsOfUser_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AccesscontrolRBACProvider_DomainsOfUser_Call) RunAndReturn(run func(string) ([]string, error)) *AccesscontrolRBACProvider_DomainsOfUser_Call
type AccesscontrolRBACProvider_Expecter ¶ added in v0.5.14
type AccesscontrolRBACProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*AccesscontrolRBACProvider_Expecter) DomainsOfUser ¶ added in v0.5.14
func (_e *AccesscontrolRBACProvider_Expecter) DomainsOfUser(user interface{}) *AccesscontrolRBACProvider_DomainsOfUser_Call
DomainsOfUser is a helper method to define mock.On call
- user string
func (*AccesscontrolRBACProvider_Expecter) GetDomainRBAC ¶ added in v0.5.14
func (_e *AccesscontrolRBACProvider_Expecter) GetDomainRBAC(domain interface{}) *AccesscontrolRBACProvider_GetDomainRBAC_Call
GetDomainRBAC is a helper method to define mock.On call
- domain string
type AccesscontrolRBACProvider_GetDomainRBAC_Call ¶ added in v0.5.14
AccesscontrolRBACProvider_GetDomainRBAC_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDomainRBAC'
func (*AccesscontrolRBACProvider_GetDomainRBAC_Call) Run ¶ added in v0.5.14
func (_c *AccesscontrolRBACProvider_GetDomainRBAC_Call) Run(run func(domain string)) *AccesscontrolRBACProvider_GetDomainRBAC_Call
func (*AccesscontrolRBACProvider_GetDomainRBAC_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AccesscontrolRBACProvider_GetDomainRBAC_Call) RunAndReturn(run func(string) accesscontrol.AccessControl) *AccesscontrolRBACProvider_GetDomainRBAC_Call
type ApiAssetRepository ¶ added in v0.5.14
ApiAssetRepository is an autogenerated mock type for the assetRepository type
func NewApiAssetRepository ¶ added in v0.5.14
func NewApiAssetRepository(t interface {
mock.TestingT
Cleanup(func())
}) *ApiAssetRepository
NewApiAssetRepository creates a new instance of ApiAssetRepository. 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 (*ApiAssetRepository) EXPECT ¶ added in v0.5.14
func (_m *ApiAssetRepository) EXPECT() *ApiAssetRepository_Expecter
func (*ApiAssetRepository) ReadBySlug ¶ added in v0.5.14
ReadBySlug provides a mock function with given fields: projectID, slug
type ApiAssetRepository_Expecter ¶ added in v0.5.14
type ApiAssetRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ApiAssetRepository_Expecter) ReadBySlug ¶ added in v0.5.14
func (_e *ApiAssetRepository_Expecter) ReadBySlug(projectID interface{}, slug interface{}) *ApiAssetRepository_ReadBySlug_Call
ReadBySlug is a helper method to define mock.On call
- projectID uuid.UUID
- slug string
type ApiAssetRepository_ReadBySlug_Call ¶ added in v0.5.14
ApiAssetRepository_ReadBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadBySlug'
func (*ApiAssetRepository_ReadBySlug_Call) Return ¶ added in v0.5.14
func (_c *ApiAssetRepository_ReadBySlug_Call) Return(_a0 models.Asset, _a1 error) *ApiAssetRepository_ReadBySlug_Call
func (*ApiAssetRepository_ReadBySlug_Call) Run ¶ added in v0.5.14
func (_c *ApiAssetRepository_ReadBySlug_Call) Run(run func(projectID uuid.UUID, slug string)) *ApiAssetRepository_ReadBySlug_Call
func (*ApiAssetRepository_ReadBySlug_Call) RunAndReturn ¶ added in v0.5.14
func (_c *ApiAssetRepository_ReadBySlug_Call) RunAndReturn(run func(uuid.UUID, string) (models.Asset, error)) *ApiAssetRepository_ReadBySlug_Call
type ApiOrgRepository ¶ added in v0.5.14
ApiOrgRepository is an autogenerated mock type for the orgRepository type
func NewApiOrgRepository ¶ added in v0.5.14
func NewApiOrgRepository(t interface {
mock.TestingT
Cleanup(func())
}) *ApiOrgRepository
NewApiOrgRepository creates a new instance of ApiOrgRepository. 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 (*ApiOrgRepository) EXPECT ¶ added in v0.5.14
func (_m *ApiOrgRepository) EXPECT() *ApiOrgRepository_Expecter
func (*ApiOrgRepository) ReadBySlug ¶ added in v0.5.14
func (_m *ApiOrgRepository) ReadBySlug(slugOrId string) (models.Org, error)
ReadBySlug provides a mock function with given fields: slugOrId
type ApiOrgRepository_Expecter ¶ added in v0.5.14
type ApiOrgRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ApiOrgRepository_Expecter) ReadBySlug ¶ added in v0.5.14
func (_e *ApiOrgRepository_Expecter) ReadBySlug(slugOrId interface{}) *ApiOrgRepository_ReadBySlug_Call
ReadBySlug is a helper method to define mock.On call
- slugOrId string
type ApiOrgRepository_ReadBySlug_Call ¶ added in v0.5.14
ApiOrgRepository_ReadBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadBySlug'
func (*ApiOrgRepository_ReadBySlug_Call) Return ¶ added in v0.5.14
func (_c *ApiOrgRepository_ReadBySlug_Call) Return(_a0 models.Org, _a1 error) *ApiOrgRepository_ReadBySlug_Call
func (*ApiOrgRepository_ReadBySlug_Call) Run ¶ added in v0.5.14
func (_c *ApiOrgRepository_ReadBySlug_Call) Run(run func(slugOrId string)) *ApiOrgRepository_ReadBySlug_Call
func (*ApiOrgRepository_ReadBySlug_Call) RunAndReturn ¶ added in v0.5.14
func (_c *ApiOrgRepository_ReadBySlug_Call) RunAndReturn(run func(string) (models.Org, error)) *ApiOrgRepository_ReadBySlug_Call
type ApiProjectRepository ¶ added in v0.5.14
ApiProjectRepository is an autogenerated mock type for the projectRepository type
func NewApiProjectRepository ¶ added in v0.5.14
func NewApiProjectRepository(t interface {
mock.TestingT
Cleanup(func())
}) *ApiProjectRepository
NewApiProjectRepository creates a new instance of ApiProjectRepository. 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 (*ApiProjectRepository) EXPECT ¶ added in v0.5.14
func (_m *ApiProjectRepository) EXPECT() *ApiProjectRepository_Expecter
func (*ApiProjectRepository) ReadBySlug ¶ added in v0.5.14
func (_m *ApiProjectRepository) ReadBySlug(organizationID uuid.UUID, slug string) (models.Project, error)
ReadBySlug provides a mock function with given fields: organizationID, slug
type ApiProjectRepository_Expecter ¶ added in v0.5.14
type ApiProjectRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ApiProjectRepository_Expecter) ReadBySlug ¶ added in v0.5.14
func (_e *ApiProjectRepository_Expecter) ReadBySlug(organizationID interface{}, slug interface{}) *ApiProjectRepository_ReadBySlug_Call
ReadBySlug is a helper method to define mock.On call
- organizationID uuid.UUID
- slug string
type ApiProjectRepository_ReadBySlug_Call ¶ added in v0.5.14
ApiProjectRepository_ReadBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadBySlug'
func (*ApiProjectRepository_ReadBySlug_Call) Return ¶ added in v0.5.14
func (_c *ApiProjectRepository_ReadBySlug_Call) Return(_a0 models.Project, _a1 error) *ApiProjectRepository_ReadBySlug_Call
func (*ApiProjectRepository_ReadBySlug_Call) Run ¶ added in v0.5.14
func (_c *ApiProjectRepository_ReadBySlug_Call) Run(run func(organizationID uuid.UUID, slug string)) *ApiProjectRepository_ReadBySlug_Call
func (*ApiProjectRepository_ReadBySlug_Call) RunAndReturn ¶ added in v0.5.14
func (_c *ApiProjectRepository_ReadBySlug_Call) RunAndReturn(run func(uuid.UUID, string) (models.Project, error)) *ApiProjectRepository_ReadBySlug_Call
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) LoadComponents ¶ added in v0.5.14
func (_m *AssetAssetComponentsLoader) LoadComponents(tx *gorm.DB, _a1 models.Asset, scanType string, version string) ([]models.ComponentDependency, error)
LoadComponents 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) LoadComponents ¶ added in v0.5.14
func (_e *AssetAssetComponentsLoader_Expecter) LoadComponents(tx interface{}, _a1 interface{}, scanType interface{}, version interface{}) *AssetAssetComponentsLoader_LoadComponents_Call
LoadComponents 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_LoadComponents_Call ¶ added in v0.5.14
AssetAssetComponentsLoader_LoadComponents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadComponents'
func (*AssetAssetComponentsLoader_LoadComponents_Call) Return ¶ added in v0.5.14
func (_c *AssetAssetComponentsLoader_LoadComponents_Call) Return(_a0 []models.ComponentDependency, _a1 error) *AssetAssetComponentsLoader_LoadComponents_Call
func (*AssetAssetComponentsLoader_LoadComponents_Call) Run ¶ added in v0.5.14
func (_c *AssetAssetComponentsLoader_LoadComponents_Call) Run(run func(tx *gorm.DB, _a1 models.Asset, scanType string, version string)) *AssetAssetComponentsLoader_LoadComponents_Call
func (*AssetAssetComponentsLoader_LoadComponents_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AssetAssetComponentsLoader_LoadComponents_Call) RunAndReturn(run func(*gorm.DB, models.Asset, string, string) ([]models.ComponentDependency, error)) *AssetAssetComponentsLoader_LoadComponents_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
func (*AssetAssetRepository) Transaction ¶ added in v0.5.14
func (_m *AssetAssetRepository) Transaction(txFunc func(*gorm.DB) error) error
Transaction provides a mock function with given fields: txFunc
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
func (*AssetAssetRepository_Expecter) Transaction ¶ added in v0.5.14
func (_e *AssetAssetRepository_Expecter) Transaction(txFunc interface{}) *AssetAssetRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- txFunc func(*gorm.DB) error
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 AssetAssetRepository_Transaction_Call ¶ added in v0.5.14
AssetAssetRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*AssetAssetRepository_Transaction_Call) Return ¶ added in v0.5.14
func (_c *AssetAssetRepository_Transaction_Call) Return(_a0 error) *AssetAssetRepository_Transaction_Call
func (*AssetAssetRepository_Transaction_Call) Run ¶ added in v0.5.14
func (_c *AssetAssetRepository_Transaction_Call) Run(run func(txFunc func(*gorm.DB) error)) *AssetAssetRepository_Transaction_Call
func (*AssetAssetRepository_Transaction_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AssetAssetRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *AssetAssetRepository_Transaction_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) BuildVeX ¶ added in v0.5.14
func (_m *AssetAssetService) BuildVeX(_a0 models.Asset, version string, orgName string, components []models.ComponentDependency, flaws []models.Flaw) *cyclonedx.BOM
BuildVeX provides a mock function with given fields: _a0, version, orgName, components, flaws
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_BuildVeX_Call ¶ added in v0.5.14
AssetAssetService_BuildVeX_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildVeX'
func (*AssetAssetService_BuildVeX_Call) Return ¶ added in v0.5.14
func (_c *AssetAssetService_BuildVeX_Call) Return(_a0 *cyclonedx.BOM) *AssetAssetService_BuildVeX_Call
func (*AssetAssetService_BuildVeX_Call) Run ¶ added in v0.5.14
func (_c *AssetAssetService_BuildVeX_Call) Run(run func(_a0 models.Asset, version string, orgName string, components []models.ComponentDependency, flaws []models.Flaw)) *AssetAssetService_BuildVeX_Call
func (*AssetAssetService_BuildVeX_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AssetAssetService_BuildVeX_Call) RunAndReturn(run func(models.Asset, string, string, []models.ComponentDependency, []models.Flaw) *cyclonedx.BOM) *AssetAssetService_BuildVeX_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) BuildVeX ¶ added in v0.5.14
func (_e *AssetAssetService_Expecter) BuildVeX(_a0 interface{}, version interface{}, orgName interface{}, components interface{}, flaws interface{}) *AssetAssetService_BuildVeX_Call
BuildVeX is a helper method to define mock.On call
- _a0 models.Asset
- version string
- orgName string
- components []models.ComponentDependency
- flaws []models.Flaw
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) LoadComponents ¶ added in v0.5.14
func (_m *AssetComponentRepository) LoadComponents(tx *gorm.DB, _a1 models.Asset, scanType string, version string) ([]models.ComponentDependency, error)
LoadComponents 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) LoadComponents ¶ added in v0.5.14
func (_e *AssetComponentRepository_Expecter) LoadComponents(tx interface{}, _a1 interface{}, scanType interface{}, version interface{}) *AssetComponentRepository_LoadComponents_Call
LoadComponents 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_LoadComponents_Call ¶ added in v0.5.14
AssetComponentRepository_LoadComponents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadComponents'
func (*AssetComponentRepository_LoadComponents_Call) Return ¶ added in v0.5.14
func (_c *AssetComponentRepository_LoadComponents_Call) Return(_a0 []models.ComponentDependency, _a1 error) *AssetComponentRepository_LoadComponents_Call
func (*AssetComponentRepository_LoadComponents_Call) Run ¶ added in v0.5.14
func (_c *AssetComponentRepository_LoadComponents_Call) Run(run func(tx *gorm.DB, _a1 models.Asset, scanType string, version string)) *AssetComponentRepository_LoadComponents_Call
func (*AssetComponentRepository_LoadComponents_Call) RunAndReturn ¶ added in v0.5.14
func (_c *AssetComponentRepository_LoadComponents_Call) RunAndReturn(run func(*gorm.DB, models.Asset, string, string) ([]models.ComponentDependency, error)) *AssetComponentRepository_LoadComponents_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) (models.FlawEvent, 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, doRiskManagement bool) error
UserDetectedFlaws provides a mock function with given fields: tx, userID, flaws, _a3, doRiskManagement
func (*AssetFlawService) UserFixedFlaws ¶
func (_m *AssetFlawService) UserFixedFlaws(tx *gorm.DB, userID string, flaws []models.Flaw, doRiskManagement bool) error
UserFixedFlaws provides a mock function with given fields: tx, userID, flaws, doRiskManagement
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{}, doRiskManagement 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
- doRiskManagement bool
func (*AssetFlawService_Expecter) UserFixedFlaws ¶
func (_e *AssetFlawService_Expecter) UserFixedFlaws(tx interface{}, userID interface{}, flaws interface{}, doRiskManagement interface{}) *AssetFlawService_UserFixedFlaws_Call
UserFixedFlaws is a helper method to define mock.On call
- tx *gorm.DB
- userID string
- flaws []models.Flaw
- doRiskManagement bool
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 models.FlawEvent, _a1 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 ¶
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, doRiskManagement bool)) *AssetFlawService_UserDetectedFlaws_Call
func (*AssetFlawService_UserDetectedFlaws_Call) RunAndReturn ¶
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, doRiskManagement bool)) *AssetFlawService_UserFixedFlaws_Call
func (*AssetFlawService_UserFixedFlaws_Call) RunAndReturn ¶
func (_c *AssetFlawService_UserFixedFlaws_Call) RunAndReturn(run func(*gorm.DB, string, []models.Flaw, bool) 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) Activate ¶ added in v0.5.15
Activate provides a mock function with given fields: tx, id
func (*AssetRepository) Begin ¶
func (_m *AssetRepository) Begin() *gorm.DB
Begin provides a mock function with no 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) ReadBySlugUnscoped ¶ added in v0.5.15
func (_m *AssetRepository) ReadBySlugUnscoped(projectID uuid.UUID, slug string) (models.Asset, error)
ReadBySlugUnscoped 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_Activate_Call ¶ added in v0.5.15
AssetRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*AssetRepository_Activate_Call) Return ¶ added in v0.5.15
func (_c *AssetRepository_Activate_Call) Return(_a0 error) *AssetRepository_Activate_Call
func (*AssetRepository_Activate_Call) Run ¶ added in v0.5.15
func (_c *AssetRepository_Activate_Call) Run(run func(tx *gorm.DB, id uuid.UUID)) *AssetRepository_Activate_Call
func (*AssetRepository_Activate_Call) RunAndReturn ¶ added in v0.5.15
func (_c *AssetRepository_Activate_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *AssetRepository_Activate_Call
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) Activate ¶ added in v0.5.15
func (_e *AssetRepository_Expecter) Activate(tx interface{}, id interface{}) *AssetRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx *gorm.DB
- id uuid.UUID
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) ReadBySlugUnscoped ¶ added in v0.5.15
func (_e *AssetRepository_Expecter) ReadBySlugUnscoped(projectID interface{}, slug interface{}) *AssetRepository_ReadBySlugUnscoped_Call
ReadBySlugUnscoped 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_ReadBySlugUnscoped_Call ¶ added in v0.5.15
AssetRepository_ReadBySlugUnscoped_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadBySlugUnscoped'
func (*AssetRepository_ReadBySlugUnscoped_Call) Return ¶ added in v0.5.15
func (_c *AssetRepository_ReadBySlugUnscoped_Call) Return(_a0 models.Asset, _a1 error) *AssetRepository_ReadBySlugUnscoped_Call
func (*AssetRepository_ReadBySlugUnscoped_Call) Run ¶ added in v0.5.15
func (_c *AssetRepository_ReadBySlugUnscoped_Call) Run(run func(projectID uuid.UUID, slug string)) *AssetRepository_ReadBySlugUnscoped_Call
func (*AssetRepository_ReadBySlugUnscoped_Call) RunAndReturn ¶ added in v0.5.15
func (_c *AssetRepository_ReadBySlugUnscoped_Call) RunAndReturn(run func(uuid.UUID, string) (models.Asset, error)) *AssetRepository_ReadBySlugUnscoped_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 AssetSupplyChainRepository ¶ added in v0.5.15
AssetSupplyChainRepository is an autogenerated mock type for the supplyChainRepository type
func NewAssetSupplyChainRepository ¶ added in v0.5.15
func NewAssetSupplyChainRepository(t interface {
mock.TestingT
Cleanup(func())
}) *AssetSupplyChainRepository
NewAssetSupplyChainRepository creates a new instance of AssetSupplyChainRepository. 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 (*AssetSupplyChainRepository) EXPECT ¶ added in v0.5.15
func (_m *AssetSupplyChainRepository) EXPECT() *AssetSupplyChainRepository_Expecter
func (*AssetSupplyChainRepository) PercentageOfVerifiedSupplyChains ¶ added in v0.5.15
func (_m *AssetSupplyChainRepository) PercentageOfVerifiedSupplyChains(assetID uuid.UUID) (float64, error)
PercentageOfVerifiedSupplyChains provides a mock function with given fields: assetID
type AssetSupplyChainRepository_Expecter ¶ added in v0.5.15
type AssetSupplyChainRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*AssetSupplyChainRepository_Expecter) PercentageOfVerifiedSupplyChains ¶ added in v0.5.15
func (_e *AssetSupplyChainRepository_Expecter) PercentageOfVerifiedSupplyChains(assetID interface{}) *AssetSupplyChainRepository_PercentageOfVerifiedSupplyChains_Call
PercentageOfVerifiedSupplyChains is a helper method to define mock.On call
- assetID uuid.UUID
type AssetSupplyChainRepository_PercentageOfVerifiedSupplyChains_Call ¶ added in v0.5.15
AssetSupplyChainRepository_PercentageOfVerifiedSupplyChains_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PercentageOfVerifiedSupplyChains'
func (*AssetSupplyChainRepository_PercentageOfVerifiedSupplyChains_Call) Run ¶ added in v0.5.15
func (_c *AssetSupplyChainRepository_PercentageOfVerifiedSupplyChains_Call) Run(run func(assetID uuid.UUID)) *AssetSupplyChainRepository_PercentageOfVerifiedSupplyChains_Call
func (*AssetSupplyChainRepository_PercentageOfVerifiedSupplyChains_Call) RunAndReturn ¶ added in v0.5.15
func (_c *AssetSupplyChainRepository_PercentageOfVerifiedSupplyChains_Call) RunAndReturn(run func(uuid.UUID) (float64, error)) *AssetSupplyChainRepository_PercentageOfVerifiedSupplyChains_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 no 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 CoreIntegrationAggregate ¶ added in v0.5.14
CoreIntegrationAggregate is an autogenerated mock type for the IntegrationAggregate type
func NewCoreIntegrationAggregate ¶ added in v0.5.14
func NewCoreIntegrationAggregate(t interface {
mock.TestingT
Cleanup(func())
}) *CoreIntegrationAggregate
NewCoreIntegrationAggregate creates a new instance of CoreIntegrationAggregate. 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 (*CoreIntegrationAggregate) EXPECT ¶ added in v0.5.14
func (_m *CoreIntegrationAggregate) EXPECT() *CoreIntegrationAggregate_Expecter
func (*CoreIntegrationAggregate) GetID ¶ added in v0.5.14
func (_m *CoreIntegrationAggregate) GetID() core.IntegrationID
GetID provides a mock function with no fields
func (*CoreIntegrationAggregate) GetIntegration ¶ added in v0.5.14
func (_m *CoreIntegrationAggregate) GetIntegration(id core.IntegrationID) core.ThirdPartyIntegration
GetIntegration provides a mock function with given fields: id
func (*CoreIntegrationAggregate) GetUsers ¶ added in v0.5.14
func (_m *CoreIntegrationAggregate) GetUsers(org models.Org) []core.User
GetUsers provides a mock function with given fields: org
func (*CoreIntegrationAggregate) HandleEvent ¶ added in v0.5.14
func (_m *CoreIntegrationAggregate) HandleEvent(event interface{}) error
HandleEvent provides a mock function with given fields: event
func (*CoreIntegrationAggregate) HandleWebhook ¶ added in v0.5.14
func (_m *CoreIntegrationAggregate) HandleWebhook(ctx echo.Context) error
HandleWebhook provides a mock function with given fields: ctx
func (*CoreIntegrationAggregate) IntegrationEnabled ¶ added in v0.5.14
func (_m *CoreIntegrationAggregate) IntegrationEnabled(ctx echo.Context) bool
IntegrationEnabled provides a mock function with given fields: ctx
func (*CoreIntegrationAggregate) ListRepositories ¶ added in v0.5.14
func (_m *CoreIntegrationAggregate) ListRepositories(ctx echo.Context) ([]core.Repository, error)
ListRepositories provides a mock function with given fields: ctx
func (*CoreIntegrationAggregate) WantsToHandleWebhook ¶ added in v0.5.14
func (_m *CoreIntegrationAggregate) WantsToHandleWebhook(ctx echo.Context) bool
WantsToHandleWebhook provides a mock function with given fields: ctx
type CoreIntegrationAggregate_Expecter ¶ added in v0.5.14
type CoreIntegrationAggregate_Expecter struct {
// contains filtered or unexported fields
}
func (*CoreIntegrationAggregate_Expecter) GetID ¶ added in v0.5.14
func (_e *CoreIntegrationAggregate_Expecter) GetID() *CoreIntegrationAggregate_GetID_Call
GetID is a helper method to define mock.On call
func (*CoreIntegrationAggregate_Expecter) GetIntegration ¶ added in v0.5.14
func (_e *CoreIntegrationAggregate_Expecter) GetIntegration(id interface{}) *CoreIntegrationAggregate_GetIntegration_Call
GetIntegration is a helper method to define mock.On call
- id core.IntegrationID
func (*CoreIntegrationAggregate_Expecter) GetUsers ¶ added in v0.5.14
func (_e *CoreIntegrationAggregate_Expecter) GetUsers(org interface{}) *CoreIntegrationAggregate_GetUsers_Call
GetUsers is a helper method to define mock.On call
- org models.Org
func (*CoreIntegrationAggregate_Expecter) HandleEvent ¶ added in v0.5.14
func (_e *CoreIntegrationAggregate_Expecter) HandleEvent(event interface{}) *CoreIntegrationAggregate_HandleEvent_Call
HandleEvent is a helper method to define mock.On call
- event interface{}
func (*CoreIntegrationAggregate_Expecter) HandleWebhook ¶ added in v0.5.14
func (_e *CoreIntegrationAggregate_Expecter) HandleWebhook(ctx interface{}) *CoreIntegrationAggregate_HandleWebhook_Call
HandleWebhook is a helper method to define mock.On call
- ctx echo.Context
func (*CoreIntegrationAggregate_Expecter) IntegrationEnabled ¶ added in v0.5.14
func (_e *CoreIntegrationAggregate_Expecter) IntegrationEnabled(ctx interface{}) *CoreIntegrationAggregate_IntegrationEnabled_Call
IntegrationEnabled is a helper method to define mock.On call
- ctx echo.Context
func (*CoreIntegrationAggregate_Expecter) ListRepositories ¶ added in v0.5.14
func (_e *CoreIntegrationAggregate_Expecter) ListRepositories(ctx interface{}) *CoreIntegrationAggregate_ListRepositories_Call
ListRepositories is a helper method to define mock.On call
- ctx echo.Context
func (*CoreIntegrationAggregate_Expecter) WantsToHandleWebhook ¶ added in v0.5.14
func (_e *CoreIntegrationAggregate_Expecter) WantsToHandleWebhook(ctx interface{}) *CoreIntegrationAggregate_WantsToHandleWebhook_Call
WantsToHandleWebhook is a helper method to define mock.On call
- ctx echo.Context
type CoreIntegrationAggregate_GetID_Call ¶ added in v0.5.14
CoreIntegrationAggregate_GetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetID'
func (*CoreIntegrationAggregate_GetID_Call) Return ¶ added in v0.5.14
func (_c *CoreIntegrationAggregate_GetID_Call) Return(_a0 core.IntegrationID) *CoreIntegrationAggregate_GetID_Call
func (*CoreIntegrationAggregate_GetID_Call) Run ¶ added in v0.5.14
func (_c *CoreIntegrationAggregate_GetID_Call) Run(run func()) *CoreIntegrationAggregate_GetID_Call
func (*CoreIntegrationAggregate_GetID_Call) RunAndReturn ¶ added in v0.5.14
func (_c *CoreIntegrationAggregate_GetID_Call) RunAndReturn(run func() core.IntegrationID) *CoreIntegrationAggregate_GetID_Call
type CoreIntegrationAggregate_GetIntegration_Call ¶ added in v0.5.14
CoreIntegrationAggregate_GetIntegration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIntegration'
func (*CoreIntegrationAggregate_GetIntegration_Call) Run ¶ added in v0.5.14
func (_c *CoreIntegrationAggregate_GetIntegration_Call) Run(run func(id core.IntegrationID)) *CoreIntegrationAggregate_GetIntegration_Call
func (*CoreIntegrationAggregate_GetIntegration_Call) RunAndReturn ¶ added in v0.5.14
func (_c *CoreIntegrationAggregate_GetIntegration_Call) RunAndReturn(run func(core.IntegrationID) core.ThirdPartyIntegration) *CoreIntegrationAggregate_GetIntegration_Call
type CoreIntegrationAggregate_GetUsers_Call ¶ added in v0.5.14
CoreIntegrationAggregate_GetUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUsers'
func (*CoreIntegrationAggregate_GetUsers_Call) Return ¶ added in v0.5.14
func (_c *CoreIntegrationAggregate_GetUsers_Call) Return(_a0 []core.User) *CoreIntegrationAggregate_GetUsers_Call
func (*CoreIntegrationAggregate_GetUsers_Call) Run ¶ added in v0.5.14
func (_c *CoreIntegrationAggregate_GetUsers_Call) Run(run func(org models.Org)) *CoreIntegrationAggregate_GetUsers_Call
func (*CoreIntegrationAggregate_GetUsers_Call) RunAndReturn ¶ added in v0.5.14
func (_c *CoreIntegrationAggregate_GetUsers_Call) RunAndReturn(run func(models.Org) []core.User) *CoreIntegrationAggregate_GetUsers_Call
type CoreIntegrationAggregate_HandleEvent_Call ¶ added in v0.5.14
CoreIntegrationAggregate_HandleEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleEvent'
func (*CoreIntegrationAggregate_HandleEvent_Call) Return ¶ added in v0.5.14
func (_c *CoreIntegrationAggregate_HandleEvent_Call) Return(_a0 error) *CoreIntegrationAggregate_HandleEvent_Call
func (*CoreIntegrationAggregate_HandleEvent_Call) Run ¶ added in v0.5.14
func (_c *CoreIntegrationAggregate_HandleEvent_Call) Run(run func(event interface{})) *CoreIntegrationAggregate_HandleEvent_Call
func (*CoreIntegrationAggregate_HandleEvent_Call) RunAndReturn ¶ added in v0.5.14
func (_c *CoreIntegrationAggregate_HandleEvent_Call) RunAndReturn(run func(interface{}) error) *CoreIntegrationAggregate_HandleEvent_Call
type CoreIntegrationAggregate_HandleWebhook_Call ¶ added in v0.5.14
CoreIntegrationAggregate_HandleWebhook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleWebhook'
func (*CoreIntegrationAggregate_HandleWebhook_Call) Return ¶ added in v0.5.14
func (_c *CoreIntegrationAggregate_HandleWebhook_Call) Return(_a0 error) *CoreIntegrationAggregate_HandleWebhook_Call
func (*CoreIntegrationAggregate_HandleWebhook_Call) Run ¶ added in v0.5.14
func (_c *CoreIntegrationAggregate_HandleWebhook_Call) Run(run func(ctx echo.Context)) *CoreIntegrationAggregate_HandleWebhook_Call
func (*CoreIntegrationAggregate_HandleWebhook_Call) RunAndReturn ¶ added in v0.5.14
func (_c *CoreIntegrationAggregate_HandleWebhook_Call) RunAndReturn(run func(echo.Context) error) *CoreIntegrationAggregate_HandleWebhook_Call
type CoreIntegrationAggregate_IntegrationEnabled_Call ¶ added in v0.5.14
CoreIntegrationAggregate_IntegrationEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IntegrationEnabled'
func (*CoreIntegrationAggregate_IntegrationEnabled_Call) Return ¶ added in v0.5.14
func (_c *CoreIntegrationAggregate_IntegrationEnabled_Call) Return(_a0 bool) *CoreIntegrationAggregate_IntegrationEnabled_Call
func (*CoreIntegrationAggregate_IntegrationEnabled_Call) Run ¶ added in v0.5.14
func (_c *CoreIntegrationAggregate_IntegrationEnabled_Call) Run(run func(ctx echo.Context)) *CoreIntegrationAggregate_IntegrationEnabled_Call
func (*CoreIntegrationAggregate_IntegrationEnabled_Call) RunAndReturn ¶ added in v0.5.14
func (_c *CoreIntegrationAggregate_IntegrationEnabled_Call) RunAndReturn(run func(echo.Context) bool) *CoreIntegrationAggregate_IntegrationEnabled_Call
type CoreIntegrationAggregate_ListRepositories_Call ¶ added in v0.5.14
CoreIntegrationAggregate_ListRepositories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRepositories'
func (*CoreIntegrationAggregate_ListRepositories_Call) Return ¶ added in v0.5.14
func (_c *CoreIntegrationAggregate_ListRepositories_Call) Return(_a0 []core.Repository, _a1 error) *CoreIntegrationAggregate_ListRepositories_Call
func (*CoreIntegrationAggregate_ListRepositories_Call) Run ¶ added in v0.5.14
func (_c *CoreIntegrationAggregate_ListRepositories_Call) Run(run func(ctx echo.Context)) *CoreIntegrationAggregate_ListRepositories_Call
func (*CoreIntegrationAggregate_ListRepositories_Call) RunAndReturn ¶ added in v0.5.14
func (_c *CoreIntegrationAggregate_ListRepositories_Call) RunAndReturn(run func(echo.Context) ([]core.Repository, error)) *CoreIntegrationAggregate_ListRepositories_Call
type CoreIntegrationAggregate_WantsToHandleWebhook_Call ¶ added in v0.5.14
CoreIntegrationAggregate_WantsToHandleWebhook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WantsToHandleWebhook'
func (*CoreIntegrationAggregate_WantsToHandleWebhook_Call) Return ¶ added in v0.5.14
func (_c *CoreIntegrationAggregate_WantsToHandleWebhook_Call) Return(_a0 bool) *CoreIntegrationAggregate_WantsToHandleWebhook_Call
func (*CoreIntegrationAggregate_WantsToHandleWebhook_Call) Run ¶ added in v0.5.14
func (_c *CoreIntegrationAggregate_WantsToHandleWebhook_Call) Run(run func(ctx echo.Context)) *CoreIntegrationAggregate_WantsToHandleWebhook_Call
func (*CoreIntegrationAggregate_WantsToHandleWebhook_Call) RunAndReturn ¶ added in v0.5.14
func (_c *CoreIntegrationAggregate_WantsToHandleWebhook_Call) RunAndReturn(run func(echo.Context) bool) *CoreIntegrationAggregate_WantsToHandleWebhook_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) GetID ¶ added in v0.5.14
func (_m *CoreThirdPartyIntegration) GetID() core.IntegrationID
GetID provides a mock function with no fields
func (*CoreThirdPartyIntegration) GetUsers ¶ added in v0.5.14
func (_m *CoreThirdPartyIntegration) GetUsers(org models.Org) []core.User
GetUsers provides a mock function with given fields: org
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) 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) GetID ¶ added in v0.5.14
func (_e *CoreThirdPartyIntegration_Expecter) GetID() *CoreThirdPartyIntegration_GetID_Call
GetID is a helper method to define mock.On call
func (*CoreThirdPartyIntegration_Expecter) GetUsers ¶ added in v0.5.14
func (_e *CoreThirdPartyIntegration_Expecter) GetUsers(org interface{}) *CoreThirdPartyIntegration_GetUsers_Call
GetUsers is a helper method to define mock.On call
- org models.Org
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) 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_GetID_Call ¶ added in v0.5.14
CoreThirdPartyIntegration_GetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetID'
func (*CoreThirdPartyIntegration_GetID_Call) Return ¶ added in v0.5.14
func (_c *CoreThirdPartyIntegration_GetID_Call) Return(_a0 core.IntegrationID) *CoreThirdPartyIntegration_GetID_Call
func (*CoreThirdPartyIntegration_GetID_Call) Run ¶ added in v0.5.14
func (_c *CoreThirdPartyIntegration_GetID_Call) Run(run func()) *CoreThirdPartyIntegration_GetID_Call
func (*CoreThirdPartyIntegration_GetID_Call) RunAndReturn ¶ added in v0.5.14
func (_c *CoreThirdPartyIntegration_GetID_Call) RunAndReturn(run func() core.IntegrationID) *CoreThirdPartyIntegration_GetID_Call
type CoreThirdPartyIntegration_GetUsers_Call ¶ added in v0.5.14
CoreThirdPartyIntegration_GetUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUsers'
func (*CoreThirdPartyIntegration_GetUsers_Call) Return ¶ added in v0.5.14
func (_c *CoreThirdPartyIntegration_GetUsers_Call) Return(_a0 []core.User) *CoreThirdPartyIntegration_GetUsers_Call
func (*CoreThirdPartyIntegration_GetUsers_Call) Run ¶ added in v0.5.14
func (_c *CoreThirdPartyIntegration_GetUsers_Call) Run(run func(org models.Org)) *CoreThirdPartyIntegration_GetUsers_Call
func (*CoreThirdPartyIntegration_GetUsers_Call) RunAndReturn ¶ added in v0.5.14
func (_c *CoreThirdPartyIntegration_GetUsers_Call) RunAndReturn(run func(models.Org) []core.User) *CoreThirdPartyIntegration_GetUsers_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_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 no 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 no 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
func (*FlawFlawService) UpdateFlawState ¶
func (_m *FlawFlawService) UpdateFlawState(tx *gorm.DB, userID string, _a2 *models.Flaw, statusType string, justification string) (models.FlawEvent, error)
UpdateFlawState provides a mock function with given fields: tx, userID, _a2, statusType, justification
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 models.FlawEvent, _a1 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 ¶
type FlawLeaderElector ¶ added in v0.5.14
FlawLeaderElector is an autogenerated mock type for the leaderElector type
func NewFlawLeaderElector ¶ added in v0.5.14
func NewFlawLeaderElector(t interface {
mock.TestingT
Cleanup(func())
}) *FlawLeaderElector
NewFlawLeaderElector creates a new instance of FlawLeaderElector. 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 (*FlawLeaderElector) EXPECT ¶ added in v0.5.14
func (_m *FlawLeaderElector) EXPECT() *FlawLeaderElector_Expecter
type FlawLeaderElector_Expecter ¶ added in v0.5.14
type FlawLeaderElector_Expecter struct {
// contains filtered or unexported fields
}
func (*FlawLeaderElector_Expecter) IfLeader ¶ added in v0.5.14
func (_e *FlawLeaderElector_Expecter) IfLeader(ctx interface{}, fn interface{}) *FlawLeaderElector_IfLeader_Call
IfLeader is a helper method to define mock.On call
- ctx context.Context
- fn func() error
type FlawLeaderElector_IfLeader_Call ¶ added in v0.5.14
FlawLeaderElector_IfLeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IfLeader'
func (*FlawLeaderElector_IfLeader_Call) Return ¶ added in v0.5.14
func (_c *FlawLeaderElector_IfLeader_Call) Return() *FlawLeaderElector_IfLeader_Call
func (*FlawLeaderElector_IfLeader_Call) Run ¶ added in v0.5.14
func (_c *FlawLeaderElector_IfLeader_Call) Run(run func(ctx context.Context, fn func() error)) *FlawLeaderElector_IfLeader_Call
func (*FlawLeaderElector_IfLeader_Call) RunAndReturn ¶ added in v0.5.14
func (_c *FlawLeaderElector_IfLeader_Call) RunAndReturn(run func(context.Context, func() error)) *FlawLeaderElector_IfLeader_Call
type FlawProjectService ¶ added in v0.5.14
FlawProjectService is an autogenerated mock type for the projectService type
func NewFlawProjectService ¶ added in v0.5.14
func NewFlawProjectService(t interface {
mock.TestingT
Cleanup(func())
}) *FlawProjectService
NewFlawProjectService creates a new instance of FlawProjectService. 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 (*FlawProjectService) EXPECT ¶ added in v0.5.14
func (_m *FlawProjectService) EXPECT() *FlawProjectService_Expecter
func (*FlawProjectService) ListAllowedProjects ¶ added in v0.5.14
ListAllowedProjects provides a mock function with given fields: c
type FlawProjectService_Expecter ¶ added in v0.5.14
type FlawProjectService_Expecter struct {
// contains filtered or unexported fields
}
func (*FlawProjectService_Expecter) ListAllowedProjects ¶ added in v0.5.14
func (_e *FlawProjectService_Expecter) ListAllowedProjects(c interface{}) *FlawProjectService_ListAllowedProjects_Call
ListAllowedProjects is a helper method to define mock.On call
- c echo.Context
type FlawProjectService_ListAllowedProjects_Call ¶ added in v0.5.14
FlawProjectService_ListAllowedProjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAllowedProjects'
func (*FlawProjectService_ListAllowedProjects_Call) Return ¶ added in v0.5.14
func (_c *FlawProjectService_ListAllowedProjects_Call) Return(_a0 []models.Project, _a1 error) *FlawProjectService_ListAllowedProjects_Call
func (*FlawProjectService_ListAllowedProjects_Call) Run ¶ added in v0.5.14
func (_c *FlawProjectService_ListAllowedProjects_Call) Run(run func(c echo.Context)) *FlawProjectService_ListAllowedProjects_Call
func (*FlawProjectService_ListAllowedProjects_Call) RunAndReturn ¶ added in v0.5.14
func (_c *FlawProjectService_ListAllowedProjects_Call) RunAndReturn(run func(echo.Context) ([]models.Project, error)) *FlawProjectService_ListAllowedProjects_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) Activate ¶ added in v0.5.15
func (_m *FlawRepository) Activate(tx *gorm.DB, id string) error
Activate provides a mock function with given fields: tx, id
func (*FlawRepository) Begin ¶
func (_m *FlawRepository) Begin() *gorm.DB
Begin provides a mock function with no 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) GetFlawsByAssetIdPagedAndFlat ¶ added in v0.5.14
func (_m *FlawRepository) GetFlawsByAssetIdPagedAndFlat(tx *gorm.DB, assetId uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.Flaw], error)
GetFlawsByAssetIdPagedAndFlat provides a mock function with given fields: tx, assetId, pageInfo, search, filter, sort
func (*FlawRepository) GetFlawsByOrgIdPaged ¶ added in v0.5.14
func (_m *FlawRepository) GetFlawsByOrgIdPaged(tx *gorm.DB, userAllowedProjectIds []string, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.Flaw], error)
GetFlawsByOrgIdPaged provides a mock function with given fields: tx, userAllowedProjectIds, pageInfo, search, filter, sort
func (*FlawRepository) GetFlawsByProjectIdPaged ¶ added in v0.5.14
func (_m *FlawRepository) GetFlawsByProjectIdPaged(tx *gorm.DB, projectID uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.Flaw], error)
GetFlawsByProjectIdPaged provides a mock function with given fields: tx, projectID, pageInfo, search, filter, sort
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_Activate_Call ¶ added in v0.5.15
FlawRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*FlawRepository_Activate_Call) Return ¶ added in v0.5.15
func (_c *FlawRepository_Activate_Call) Return(_a0 error) *FlawRepository_Activate_Call
func (*FlawRepository_Activate_Call) Run ¶ added in v0.5.15
func (_c *FlawRepository_Activate_Call) Run(run func(tx *gorm.DB, id string)) *FlawRepository_Activate_Call
func (*FlawRepository_Activate_Call) RunAndReturn ¶ added in v0.5.15
func (_c *FlawRepository_Activate_Call) RunAndReturn(run func(*gorm.DB, string) error) *FlawRepository_Activate_Call
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) Activate ¶ added in v0.5.15
func (_e *FlawRepository_Expecter) Activate(tx interface{}, id interface{}) *FlawRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx *gorm.DB
- id string
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) GetFlawsByAssetIdPagedAndFlat ¶ added in v0.5.14
func (_e *FlawRepository_Expecter) GetFlawsByAssetIdPagedAndFlat(tx interface{}, assetId interface{}, pageInfo interface{}, search interface{}, filter interface{}, sort interface{}) *FlawRepository_GetFlawsByAssetIdPagedAndFlat_Call
GetFlawsByAssetIdPagedAndFlat is a helper method to define mock.On call
- tx *gorm.DB
- assetId uuid.UUID
- pageInfo core.PageInfo
- search string
- filter []core.FilterQuery
- sort []core.SortQuery
func (*FlawRepository_Expecter) GetFlawsByOrgIdPaged ¶ added in v0.5.14
func (_e *FlawRepository_Expecter) GetFlawsByOrgIdPaged(tx interface{}, userAllowedProjectIds interface{}, pageInfo interface{}, search interface{}, filter interface{}, sort interface{}) *FlawRepository_GetFlawsByOrgIdPaged_Call
GetFlawsByOrgIdPaged is a helper method to define mock.On call
- tx *gorm.DB
- userAllowedProjectIds []string
- pageInfo core.PageInfo
- search string
- filter []core.FilterQuery
- sort []core.SortQuery
func (*FlawRepository_Expecter) GetFlawsByProjectIdPaged ¶ added in v0.5.14
func (_e *FlawRepository_Expecter) GetFlawsByProjectIdPaged(tx interface{}, projectID interface{}, pageInfo interface{}, search interface{}, filter interface{}, sort interface{}) *FlawRepository_GetFlawsByProjectIdPaged_Call
GetFlawsByProjectIdPaged is a helper method to define mock.On call
- tx *gorm.DB
- projectID uuid.UUID
- pageInfo core.PageInfo
- search string
- filter []core.FilterQuery
- sort []core.SortQuery
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_GetFlawsByAssetIdPagedAndFlat_Call ¶ added in v0.5.14
FlawRepository_GetFlawsByAssetIdPagedAndFlat_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFlawsByAssetIdPagedAndFlat'
func (*FlawRepository_GetFlawsByAssetIdPagedAndFlat_Call) Return ¶ added in v0.5.14
func (_c *FlawRepository_GetFlawsByAssetIdPagedAndFlat_Call) Return(_a0 core.Paged[models.Flaw], _a1 error) *FlawRepository_GetFlawsByAssetIdPagedAndFlat_Call
func (*FlawRepository_GetFlawsByAssetIdPagedAndFlat_Call) Run ¶ added in v0.5.14
func (_c *FlawRepository_GetFlawsByAssetIdPagedAndFlat_Call) Run(run func(tx *gorm.DB, assetId uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery)) *FlawRepository_GetFlawsByAssetIdPagedAndFlat_Call
func (*FlawRepository_GetFlawsByAssetIdPagedAndFlat_Call) RunAndReturn ¶ added in v0.5.14
type FlawRepository_GetFlawsByOrgIdPaged_Call ¶ added in v0.5.14
FlawRepository_GetFlawsByOrgIdPaged_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFlawsByOrgIdPaged'
func (*FlawRepository_GetFlawsByOrgIdPaged_Call) Return ¶ added in v0.5.14
func (_c *FlawRepository_GetFlawsByOrgIdPaged_Call) Return(_a0 core.Paged[models.Flaw], _a1 error) *FlawRepository_GetFlawsByOrgIdPaged_Call
func (*FlawRepository_GetFlawsByOrgIdPaged_Call) Run ¶ added in v0.5.14
func (_c *FlawRepository_GetFlawsByOrgIdPaged_Call) Run(run func(tx *gorm.DB, userAllowedProjectIds []string, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery)) *FlawRepository_GetFlawsByOrgIdPaged_Call
func (*FlawRepository_GetFlawsByOrgIdPaged_Call) RunAndReturn ¶ added in v0.5.14
type FlawRepository_GetFlawsByProjectIdPaged_Call ¶ added in v0.5.14
FlawRepository_GetFlawsByProjectIdPaged_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFlawsByProjectIdPaged'
func (*FlawRepository_GetFlawsByProjectIdPaged_Call) Return ¶ added in v0.5.14
func (_c *FlawRepository_GetFlawsByProjectIdPaged_Call) Return(_a0 core.Paged[models.Flaw], _a1 error) *FlawRepository_GetFlawsByProjectIdPaged_Call
func (*FlawRepository_GetFlawsByProjectIdPaged_Call) Run ¶ added in v0.5.14
func (_c *FlawRepository_GetFlawsByProjectIdPaged_Call) Run(run func(tx *gorm.DB, projectID uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery)) *FlawRepository_GetFlawsByProjectIdPaged_Call
func (*FlawRepository_GetFlawsByProjectIdPaged_Call) RunAndReturn ¶ added in v0.5.14
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 IntegrationsAssetRepository ¶ added in v0.5.14
IntegrationsAssetRepository is an autogenerated mock type for the assetRepository type
func NewIntegrationsAssetRepository ¶ added in v0.5.14
func NewIntegrationsAssetRepository(t interface {
mock.TestingT
Cleanup(func())
}) *IntegrationsAssetRepository
NewIntegrationsAssetRepository creates a new instance of IntegrationsAssetRepository. 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 (*IntegrationsAssetRepository) EXPECT ¶ added in v0.5.14
func (_m *IntegrationsAssetRepository) EXPECT() *IntegrationsAssetRepository_Expecter
type IntegrationsAssetRepository_Expecter ¶ added in v0.5.14
type IntegrationsAssetRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*IntegrationsAssetRepository_Expecter) Read ¶ added in v0.5.14
func (_e *IntegrationsAssetRepository_Expecter) Read(id interface{}) *IntegrationsAssetRepository_Read_Call
Read is a helper method to define mock.On call
- id uuid.UUID
type IntegrationsAssetRepository_Read_Call ¶ added in v0.5.14
IntegrationsAssetRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*IntegrationsAssetRepository_Read_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsAssetRepository_Read_Call) Return(_a0 models.Asset, _a1 error) *IntegrationsAssetRepository_Read_Call
func (*IntegrationsAssetRepository_Read_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsAssetRepository_Read_Call) Run(run func(id uuid.UUID)) *IntegrationsAssetRepository_Read_Call
func (*IntegrationsAssetRepository_Read_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsAssetRepository_Read_Call) RunAndReturn(run func(uuid.UUID) (models.Asset, error)) *IntegrationsAssetRepository_Read_Call
type IntegrationsExternalUserRepository ¶ added in v0.5.14
IntegrationsExternalUserRepository is an autogenerated mock type for the externalUserRepository type
func NewIntegrationsExternalUserRepository ¶ added in v0.5.14
func NewIntegrationsExternalUserRepository(t interface {
mock.TestingT
Cleanup(func())
}) *IntegrationsExternalUserRepository
NewIntegrationsExternalUserRepository creates a new instance of IntegrationsExternalUserRepository. 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 (*IntegrationsExternalUserRepository) EXPECT ¶ added in v0.5.14
func (_m *IntegrationsExternalUserRepository) EXPECT() *IntegrationsExternalUserRepository_Expecter
func (*IntegrationsExternalUserRepository) FindByOrgID ¶ added in v0.5.14
func (_m *IntegrationsExternalUserRepository) FindByOrgID(tx *gorm.DB, orgID uuid.UUID) ([]models.ExternalUser, error)
FindByOrgID provides a mock function with given fields: tx, orgID
func (*IntegrationsExternalUserRepository) GetDB ¶ added in v0.5.14
func (_m *IntegrationsExternalUserRepository) GetDB(tx *gorm.DB) *gorm.DB
GetDB provides a mock function with given fields: tx
func (*IntegrationsExternalUserRepository) Save ¶ added in v0.5.14
func (_m *IntegrationsExternalUserRepository) Save(db *gorm.DB, user *models.ExternalUser) error
Save provides a mock function with given fields: db, user
type IntegrationsExternalUserRepository_Expecter ¶ added in v0.5.14
type IntegrationsExternalUserRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*IntegrationsExternalUserRepository_Expecter) FindByOrgID ¶ added in v0.5.14
func (_e *IntegrationsExternalUserRepository_Expecter) FindByOrgID(tx interface{}, orgID interface{}) *IntegrationsExternalUserRepository_FindByOrgID_Call
FindByOrgID is a helper method to define mock.On call
- tx *gorm.DB
- orgID uuid.UUID
func (*IntegrationsExternalUserRepository_Expecter) GetDB ¶ added in v0.5.14
func (_e *IntegrationsExternalUserRepository_Expecter) GetDB(tx interface{}) *IntegrationsExternalUserRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx *gorm.DB
func (*IntegrationsExternalUserRepository_Expecter) Save ¶ added in v0.5.14
func (_e *IntegrationsExternalUserRepository_Expecter) Save(db interface{}, user interface{}) *IntegrationsExternalUserRepository_Save_Call
Save is a helper method to define mock.On call
- db *gorm.DB
- user *models.ExternalUser
type IntegrationsExternalUserRepository_FindByOrgID_Call ¶ added in v0.5.14
IntegrationsExternalUserRepository_FindByOrgID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByOrgID'
func (*IntegrationsExternalUserRepository_FindByOrgID_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsExternalUserRepository_FindByOrgID_Call) Return(_a0 []models.ExternalUser, _a1 error) *IntegrationsExternalUserRepository_FindByOrgID_Call
func (*IntegrationsExternalUserRepository_FindByOrgID_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsExternalUserRepository_FindByOrgID_Call) Run(run func(tx *gorm.DB, orgID uuid.UUID)) *IntegrationsExternalUserRepository_FindByOrgID_Call
func (*IntegrationsExternalUserRepository_FindByOrgID_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsExternalUserRepository_FindByOrgID_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) ([]models.ExternalUser, error)) *IntegrationsExternalUserRepository_FindByOrgID_Call
type IntegrationsExternalUserRepository_GetDB_Call ¶ added in v0.5.14
IntegrationsExternalUserRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*IntegrationsExternalUserRepository_GetDB_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsExternalUserRepository_GetDB_Call) Return(_a0 *gorm.DB) *IntegrationsExternalUserRepository_GetDB_Call
func (*IntegrationsExternalUserRepository_GetDB_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsExternalUserRepository_GetDB_Call) Run(run func(tx *gorm.DB)) *IntegrationsExternalUserRepository_GetDB_Call
func (*IntegrationsExternalUserRepository_GetDB_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsExternalUserRepository_GetDB_Call) RunAndReturn(run func(*gorm.DB) *gorm.DB) *IntegrationsExternalUserRepository_GetDB_Call
type IntegrationsExternalUserRepository_Save_Call ¶ added in v0.5.14
IntegrationsExternalUserRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*IntegrationsExternalUserRepository_Save_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsExternalUserRepository_Save_Call) Return(_a0 error) *IntegrationsExternalUserRepository_Save_Call
func (*IntegrationsExternalUserRepository_Save_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsExternalUserRepository_Save_Call) Run(run func(db *gorm.DB, user *models.ExternalUser)) *IntegrationsExternalUserRepository_Save_Call
func (*IntegrationsExternalUserRepository_Save_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsExternalUserRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.ExternalUser) error) *IntegrationsExternalUserRepository_Save_Call
type IntegrationsFlawEventRepository ¶ added in v0.5.14
IntegrationsFlawEventRepository is an autogenerated mock type for the flawEventRepository type
func NewIntegrationsFlawEventRepository ¶ added in v0.5.14
func NewIntegrationsFlawEventRepository(t interface {
mock.TestingT
Cleanup(func())
}) *IntegrationsFlawEventRepository
NewIntegrationsFlawEventRepository creates a new instance of IntegrationsFlawEventRepository. 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 (*IntegrationsFlawEventRepository) EXPECT ¶ added in v0.5.14
func (_m *IntegrationsFlawEventRepository) EXPECT() *IntegrationsFlawEventRepository_Expecter
type IntegrationsFlawEventRepository_Expecter ¶ added in v0.5.14
type IntegrationsFlawEventRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*IntegrationsFlawEventRepository_Expecter) Save ¶ added in v0.5.14
func (_e *IntegrationsFlawEventRepository_Expecter) Save(db interface{}, event interface{}) *IntegrationsFlawEventRepository_Save_Call
Save is a helper method to define mock.On call
- db *gorm.DB
- event *models.FlawEvent
type IntegrationsFlawEventRepository_Save_Call ¶ added in v0.5.14
IntegrationsFlawEventRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*IntegrationsFlawEventRepository_Save_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsFlawEventRepository_Save_Call) Return(_a0 error) *IntegrationsFlawEventRepository_Save_Call
func (*IntegrationsFlawEventRepository_Save_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsFlawEventRepository_Save_Call) Run(run func(db *gorm.DB, event *models.FlawEvent)) *IntegrationsFlawEventRepository_Save_Call
func (*IntegrationsFlawEventRepository_Save_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsFlawEventRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.FlawEvent) error) *IntegrationsFlawEventRepository_Save_Call
type IntegrationsFlawRepository ¶ added in v0.5.14
IntegrationsFlawRepository is an autogenerated mock type for the flawRepository type
func NewIntegrationsFlawRepository ¶ added in v0.5.14
func NewIntegrationsFlawRepository(t interface {
mock.TestingT
Cleanup(func())
}) *IntegrationsFlawRepository
NewIntegrationsFlawRepository creates a new instance of IntegrationsFlawRepository. 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 (*IntegrationsFlawRepository) EXPECT ¶ added in v0.5.14
func (_m *IntegrationsFlawRepository) EXPECT() *IntegrationsFlawRepository_Expecter
func (*IntegrationsFlawRepository) FindByTicketID ¶ added in v0.5.14
func (_m *IntegrationsFlawRepository) FindByTicketID(tx *gorm.DB, ticketID string) (models.Flaw, error)
FindByTicketID provides a mock function with given fields: tx, ticketID
func (*IntegrationsFlawRepository) GetOrgFromFlawID ¶ added in v0.5.14
func (_m *IntegrationsFlawRepository) GetOrgFromFlawID(tx *gorm.DB, flawID string) (models.Org, error)
GetOrgFromFlawID provides a mock function with given fields: tx, flawID
func (*IntegrationsFlawRepository) Read ¶ added in v0.5.14
func (_m *IntegrationsFlawRepository) Read(id string) (models.Flaw, error)
Read provides a mock function with given fields: id
func (*IntegrationsFlawRepository) Save ¶ added in v0.5.14
Save provides a mock function with given fields: db, flaw
func (*IntegrationsFlawRepository) Transaction ¶ added in v0.5.14
func (_m *IntegrationsFlawRepository) Transaction(fn func(*gorm.DB) error) error
Transaction provides a mock function with given fields: fn
type IntegrationsFlawRepository_Expecter ¶ added in v0.5.14
type IntegrationsFlawRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*IntegrationsFlawRepository_Expecter) FindByTicketID ¶ added in v0.5.14
func (_e *IntegrationsFlawRepository_Expecter) FindByTicketID(tx interface{}, ticketID interface{}) *IntegrationsFlawRepository_FindByTicketID_Call
FindByTicketID is a helper method to define mock.On call
- tx *gorm.DB
- ticketID string
func (*IntegrationsFlawRepository_Expecter) GetOrgFromFlawID ¶ added in v0.5.14
func (_e *IntegrationsFlawRepository_Expecter) GetOrgFromFlawID(tx interface{}, flawID interface{}) *IntegrationsFlawRepository_GetOrgFromFlawID_Call
GetOrgFromFlawID is a helper method to define mock.On call
- tx *gorm.DB
- flawID string
func (*IntegrationsFlawRepository_Expecter) Read ¶ added in v0.5.14
func (_e *IntegrationsFlawRepository_Expecter) Read(id interface{}) *IntegrationsFlawRepository_Read_Call
Read is a helper method to define mock.On call
- id string
func (*IntegrationsFlawRepository_Expecter) Save ¶ added in v0.5.14
func (_e *IntegrationsFlawRepository_Expecter) Save(db interface{}, flaw interface{}) *IntegrationsFlawRepository_Save_Call
Save is a helper method to define mock.On call
- db *gorm.DB
- flaw *models.Flaw
func (*IntegrationsFlawRepository_Expecter) Transaction ¶ added in v0.5.14
func (_e *IntegrationsFlawRepository_Expecter) Transaction(fn interface{}) *IntegrationsFlawRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- fn func(*gorm.DB) error
type IntegrationsFlawRepository_FindByTicketID_Call ¶ added in v0.5.14
IntegrationsFlawRepository_FindByTicketID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByTicketID'
func (*IntegrationsFlawRepository_FindByTicketID_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsFlawRepository_FindByTicketID_Call) Return(_a0 models.Flaw, _a1 error) *IntegrationsFlawRepository_FindByTicketID_Call
func (*IntegrationsFlawRepository_FindByTicketID_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsFlawRepository_FindByTicketID_Call) Run(run func(tx *gorm.DB, ticketID string)) *IntegrationsFlawRepository_FindByTicketID_Call
func (*IntegrationsFlawRepository_FindByTicketID_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsFlawRepository_FindByTicketID_Call) RunAndReturn(run func(*gorm.DB, string) (models.Flaw, error)) *IntegrationsFlawRepository_FindByTicketID_Call
type IntegrationsFlawRepository_GetOrgFromFlawID_Call ¶ added in v0.5.14
IntegrationsFlawRepository_GetOrgFromFlawID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrgFromFlawID'
func (*IntegrationsFlawRepository_GetOrgFromFlawID_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsFlawRepository_GetOrgFromFlawID_Call) Return(_a0 models.Org, _a1 error) *IntegrationsFlawRepository_GetOrgFromFlawID_Call
func (*IntegrationsFlawRepository_GetOrgFromFlawID_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsFlawRepository_GetOrgFromFlawID_Call) Run(run func(tx *gorm.DB, flawID string)) *IntegrationsFlawRepository_GetOrgFromFlawID_Call
func (*IntegrationsFlawRepository_GetOrgFromFlawID_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsFlawRepository_GetOrgFromFlawID_Call) RunAndReturn(run func(*gorm.DB, string) (models.Org, error)) *IntegrationsFlawRepository_GetOrgFromFlawID_Call
type IntegrationsFlawRepository_Read_Call ¶ added in v0.5.14
IntegrationsFlawRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*IntegrationsFlawRepository_Read_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsFlawRepository_Read_Call) Return(_a0 models.Flaw, _a1 error) *IntegrationsFlawRepository_Read_Call
func (*IntegrationsFlawRepository_Read_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsFlawRepository_Read_Call) Run(run func(id string)) *IntegrationsFlawRepository_Read_Call
func (*IntegrationsFlawRepository_Read_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsFlawRepository_Read_Call) RunAndReturn(run func(string) (models.Flaw, error)) *IntegrationsFlawRepository_Read_Call
type IntegrationsFlawRepository_Save_Call ¶ added in v0.5.14
IntegrationsFlawRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*IntegrationsFlawRepository_Save_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsFlawRepository_Save_Call) Return(_a0 error) *IntegrationsFlawRepository_Save_Call
func (*IntegrationsFlawRepository_Save_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsFlawRepository_Save_Call) Run(run func(db *gorm.DB, flaw *models.Flaw)) *IntegrationsFlawRepository_Save_Call
func (*IntegrationsFlawRepository_Save_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsFlawRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.Flaw) error) *IntegrationsFlawRepository_Save_Call
type IntegrationsFlawRepository_Transaction_Call ¶ added in v0.5.14
IntegrationsFlawRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*IntegrationsFlawRepository_Transaction_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsFlawRepository_Transaction_Call) Return(_a0 error) *IntegrationsFlawRepository_Transaction_Call
func (*IntegrationsFlawRepository_Transaction_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsFlawRepository_Transaction_Call) Run(run func(fn func(*gorm.DB) error)) *IntegrationsFlawRepository_Transaction_Call
func (*IntegrationsFlawRepository_Transaction_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsFlawRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *IntegrationsFlawRepository_Transaction_Call
type IntegrationsFlawService ¶ added in v0.5.14
IntegrationsFlawService is an autogenerated mock type for the flawService type
func NewIntegrationsFlawService ¶ added in v0.5.14
func NewIntegrationsFlawService(t interface {
mock.TestingT
Cleanup(func())
}) *IntegrationsFlawService
NewIntegrationsFlawService creates a new instance of IntegrationsFlawService. 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 (*IntegrationsFlawService) ApplyAndSave ¶ added in v0.5.14
func (_m *IntegrationsFlawService) ApplyAndSave(tx *gorm.DB, flaw *models.Flaw, flawEvent *models.FlawEvent) error
ApplyAndSave provides a mock function with given fields: tx, flaw, flawEvent
func (*IntegrationsFlawService) EXPECT ¶ added in v0.5.14
func (_m *IntegrationsFlawService) EXPECT() *IntegrationsFlawService_Expecter
type IntegrationsFlawService_ApplyAndSave_Call ¶ added in v0.5.14
IntegrationsFlawService_ApplyAndSave_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyAndSave'
func (*IntegrationsFlawService_ApplyAndSave_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsFlawService_ApplyAndSave_Call) Return(_a0 error) *IntegrationsFlawService_ApplyAndSave_Call
func (*IntegrationsFlawService_ApplyAndSave_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsFlawService_ApplyAndSave_Call) Run(run func(tx *gorm.DB, flaw *models.Flaw, flawEvent *models.FlawEvent)) *IntegrationsFlawService_ApplyAndSave_Call
func (*IntegrationsFlawService_ApplyAndSave_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsFlawService_ApplyAndSave_Call) RunAndReturn(run func(*gorm.DB, *models.Flaw, *models.FlawEvent) error) *IntegrationsFlawService_ApplyAndSave_Call
type IntegrationsFlawService_Expecter ¶ added in v0.5.14
type IntegrationsFlawService_Expecter struct {
// contains filtered or unexported fields
}
func (*IntegrationsFlawService_Expecter) ApplyAndSave ¶ added in v0.5.14
func (_e *IntegrationsFlawService_Expecter) ApplyAndSave(tx interface{}, flaw interface{}, flawEvent interface{}) *IntegrationsFlawService_ApplyAndSave_Call
ApplyAndSave is a helper method to define mock.On call
- tx *gorm.DB
- flaw *models.Flaw
- flawEvent *models.FlawEvent
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 IntegrationsGithubClientFacade ¶ added in v0.5.14
IntegrationsGithubClientFacade is an autogenerated mock type for the githubClientFacade type
func NewIntegrationsGithubClientFacade ¶ added in v0.5.14
func NewIntegrationsGithubClientFacade(t interface {
mock.TestingT
Cleanup(func())
}) *IntegrationsGithubClientFacade
NewIntegrationsGithubClientFacade creates a new instance of IntegrationsGithubClientFacade. 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 (*IntegrationsGithubClientFacade) CreateIssue ¶ added in v0.5.14
func (_m *IntegrationsGithubClientFacade) CreateIssue(ctx context.Context, owner string, repo string, issue *github.IssueRequest) (*github.Issue, *github.Response, error)
CreateIssue provides a mock function with given fields: ctx, owner, repo, issue
func (*IntegrationsGithubClientFacade) CreateIssueComment ¶ added in v0.5.14
func (_m *IntegrationsGithubClientFacade) CreateIssueComment(ctx context.Context, owner string, repo string, number int, comment *github.IssueComment) (*github.IssueComment, *github.Response, error)
CreateIssueComment provides a mock function with given fields: ctx, owner, repo, number, comment
func (*IntegrationsGithubClientFacade) EXPECT ¶ added in v0.5.14
func (_m *IntegrationsGithubClientFacade) EXPECT() *IntegrationsGithubClientFacade_Expecter
func (*IntegrationsGithubClientFacade) EditIssue ¶ added in v0.5.14
func (_m *IntegrationsGithubClientFacade) EditIssue(ctx context.Context, owner string, repo string, number int, issue *github.IssueRequest) (*github.Issue, *github.Response, error)
EditIssue provides a mock function with given fields: ctx, owner, repo, number, issue
func (*IntegrationsGithubClientFacade) EditIssueLabel ¶ added in v0.5.14
func (_m *IntegrationsGithubClientFacade) EditIssueLabel(ctx context.Context, owner string, repo string, name string, label *github.Label) (*github.Label, *github.Response, error)
EditIssueLabel provides a mock function with given fields: ctx, owner, repo, name, label
type IntegrationsGithubClientFacade_CreateIssueComment_Call ¶ added in v0.5.14
IntegrationsGithubClientFacade_CreateIssueComment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIssueComment'
func (*IntegrationsGithubClientFacade_CreateIssueComment_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsGithubClientFacade_CreateIssueComment_Call) Return(_a0 *github.IssueComment, _a1 *github.Response, _a2 error) *IntegrationsGithubClientFacade_CreateIssueComment_Call
func (*IntegrationsGithubClientFacade_CreateIssueComment_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGithubClientFacade_CreateIssueComment_Call) Run(run func(ctx context.Context, owner string, repo string, number int, comment *github.IssueComment)) *IntegrationsGithubClientFacade_CreateIssueComment_Call
func (*IntegrationsGithubClientFacade_CreateIssueComment_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsGithubClientFacade_CreateIssueComment_Call) RunAndReturn(run func(context.Context, string, string, int, *github.IssueComment) (*github.IssueComment, *github.Response, error)) *IntegrationsGithubClientFacade_CreateIssueComment_Call
type IntegrationsGithubClientFacade_CreateIssue_Call ¶ added in v0.5.14
IntegrationsGithubClientFacade_CreateIssue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIssue'
func (*IntegrationsGithubClientFacade_CreateIssue_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsGithubClientFacade_CreateIssue_Call) Return(_a0 *github.Issue, _a1 *github.Response, _a2 error) *IntegrationsGithubClientFacade_CreateIssue_Call
func (*IntegrationsGithubClientFacade_CreateIssue_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGithubClientFacade_CreateIssue_Call) Run(run func(ctx context.Context, owner string, repo string, issue *github.IssueRequest)) *IntegrationsGithubClientFacade_CreateIssue_Call
func (*IntegrationsGithubClientFacade_CreateIssue_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsGithubClientFacade_CreateIssue_Call) RunAndReturn(run func(context.Context, string, string, *github.IssueRequest) (*github.Issue, *github.Response, error)) *IntegrationsGithubClientFacade_CreateIssue_Call
type IntegrationsGithubClientFacade_EditIssueLabel_Call ¶ added in v0.5.14
IntegrationsGithubClientFacade_EditIssueLabel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EditIssueLabel'
func (*IntegrationsGithubClientFacade_EditIssueLabel_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsGithubClientFacade_EditIssueLabel_Call) Return(_a0 *github.Label, _a1 *github.Response, _a2 error) *IntegrationsGithubClientFacade_EditIssueLabel_Call
func (*IntegrationsGithubClientFacade_EditIssueLabel_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGithubClientFacade_EditIssueLabel_Call) Run(run func(ctx context.Context, owner string, repo string, name string, label *github.Label)) *IntegrationsGithubClientFacade_EditIssueLabel_Call
func (*IntegrationsGithubClientFacade_EditIssueLabel_Call) RunAndReturn ¶ added in v0.5.14
type IntegrationsGithubClientFacade_EditIssue_Call ¶ added in v0.5.14
IntegrationsGithubClientFacade_EditIssue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EditIssue'
func (*IntegrationsGithubClientFacade_EditIssue_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsGithubClientFacade_EditIssue_Call) Return(_a0 *github.Issue, _a1 *github.Response, _a2 error) *IntegrationsGithubClientFacade_EditIssue_Call
func (*IntegrationsGithubClientFacade_EditIssue_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGithubClientFacade_EditIssue_Call) Run(run func(ctx context.Context, owner string, repo string, number int, issue *github.IssueRequest)) *IntegrationsGithubClientFacade_EditIssue_Call
func (*IntegrationsGithubClientFacade_EditIssue_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsGithubClientFacade_EditIssue_Call) RunAndReturn(run func(context.Context, string, string, int, *github.IssueRequest) (*github.Issue, *github.Response, error)) *IntegrationsGithubClientFacade_EditIssue_Call
type IntegrationsGithubClientFacade_Expecter ¶ added in v0.5.14
type IntegrationsGithubClientFacade_Expecter struct {
// contains filtered or unexported fields
}
func (*IntegrationsGithubClientFacade_Expecter) CreateIssue ¶ added in v0.5.14
func (_e *IntegrationsGithubClientFacade_Expecter) CreateIssue(ctx interface{}, owner interface{}, repo interface{}, issue interface{}) *IntegrationsGithubClientFacade_CreateIssue_Call
CreateIssue is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- issue *github.IssueRequest
func (*IntegrationsGithubClientFacade_Expecter) CreateIssueComment ¶ added in v0.5.14
func (_e *IntegrationsGithubClientFacade_Expecter) CreateIssueComment(ctx interface{}, owner interface{}, repo interface{}, number interface{}, comment interface{}) *IntegrationsGithubClientFacade_CreateIssueComment_Call
CreateIssueComment is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- number int
- comment *github.IssueComment
func (*IntegrationsGithubClientFacade_Expecter) EditIssue ¶ added in v0.5.14
func (_e *IntegrationsGithubClientFacade_Expecter) EditIssue(ctx interface{}, owner interface{}, repo interface{}, number interface{}, issue interface{}) *IntegrationsGithubClientFacade_EditIssue_Call
EditIssue is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- number int
- issue *github.IssueRequest
func (*IntegrationsGithubClientFacade_Expecter) EditIssueLabel ¶ added in v0.5.14
func (_e *IntegrationsGithubClientFacade_Expecter) EditIssueLabel(ctx interface{}, owner interface{}, repo interface{}, name interface{}, label interface{}) *IntegrationsGithubClientFacade_EditIssueLabel_Call
EditIssueLabel is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- name string
- label *github.Label
type IntegrationsGithubUserRepository ¶ added in v0.5.14
IntegrationsGithubUserRepository is an autogenerated mock type for the externalUserRepository type
func NewIntegrationsGithubUserRepository ¶ added in v0.5.14
func NewIntegrationsGithubUserRepository(t interface {
mock.TestingT
Cleanup(func())
}) *IntegrationsGithubUserRepository
NewIntegrationsGithubUserRepository creates a new instance of IntegrationsGithubUserRepository. 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 (*IntegrationsGithubUserRepository) EXPECT ¶ added in v0.5.14
func (_m *IntegrationsGithubUserRepository) EXPECT() *IntegrationsGithubUserRepository_Expecter
func (*IntegrationsGithubUserRepository) FindByOrgID ¶ added in v0.5.14
func (_m *IntegrationsGithubUserRepository) FindByOrgID(tx *gorm.DB, orgID uuid.UUID) ([]models.ExternalUser, error)
FindByOrgID provides a mock function with given fields: tx, orgID
func (*IntegrationsGithubUserRepository) GetDB ¶ added in v0.5.14
func (_m *IntegrationsGithubUserRepository) GetDB(tx *gorm.DB) *gorm.DB
GetDB provides a mock function with given fields: tx
func (*IntegrationsGithubUserRepository) Save ¶ added in v0.5.14
func (_m *IntegrationsGithubUserRepository) Save(db *gorm.DB, user *models.ExternalUser) error
Save provides a mock function with given fields: db, user
type IntegrationsGithubUserRepository_Expecter ¶ added in v0.5.14
type IntegrationsGithubUserRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*IntegrationsGithubUserRepository_Expecter) FindByOrgID ¶ added in v0.5.14
func (_e *IntegrationsGithubUserRepository_Expecter) FindByOrgID(tx interface{}, orgID interface{}) *IntegrationsGithubUserRepository_FindByOrgID_Call
FindByOrgID is a helper method to define mock.On call
- tx *gorm.DB
- orgID uuid.UUID
func (*IntegrationsGithubUserRepository_Expecter) GetDB ¶ added in v0.5.14
func (_e *IntegrationsGithubUserRepository_Expecter) GetDB(tx interface{}) *IntegrationsGithubUserRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx *gorm.DB
func (*IntegrationsGithubUserRepository_Expecter) Save ¶ added in v0.5.14
func (_e *IntegrationsGithubUserRepository_Expecter) Save(db interface{}, user interface{}) *IntegrationsGithubUserRepository_Save_Call
Save is a helper method to define mock.On call
- db *gorm.DB
- user *models.GithubUser
type IntegrationsGithubUserRepository_FindByOrgID_Call ¶ added in v0.5.14
IntegrationsGithubUserRepository_FindByOrgID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByOrgID'
func (*IntegrationsGithubUserRepository_FindByOrgID_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsGithubUserRepository_FindByOrgID_Call) Return(_a0 []models.ExternalUser, _a1 error) *IntegrationsGithubUserRepository_FindByOrgID_Call
func (*IntegrationsGithubUserRepository_FindByOrgID_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGithubUserRepository_FindByOrgID_Call) Run(run func(tx *gorm.DB, orgID uuid.UUID)) *IntegrationsGithubUserRepository_FindByOrgID_Call
func (*IntegrationsGithubUserRepository_FindByOrgID_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsGithubUserRepository_FindByOrgID_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) ([]models.ExternalUser, error)) *IntegrationsGithubUserRepository_FindByOrgID_Call
type IntegrationsGithubUserRepository_GetDB_Call ¶ added in v0.5.14
IntegrationsGithubUserRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*IntegrationsGithubUserRepository_GetDB_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsGithubUserRepository_GetDB_Call) Return(_a0 *gorm.DB) *IntegrationsGithubUserRepository_GetDB_Call
func (*IntegrationsGithubUserRepository_GetDB_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGithubUserRepository_GetDB_Call) Run(run func(tx *gorm.DB)) *IntegrationsGithubUserRepository_GetDB_Call
func (*IntegrationsGithubUserRepository_GetDB_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsGithubUserRepository_GetDB_Call) RunAndReturn(run func(*gorm.DB) *gorm.DB) *IntegrationsGithubUserRepository_GetDB_Call
type IntegrationsGithubUserRepository_Save_Call ¶ added in v0.5.14
IntegrationsGithubUserRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*IntegrationsGithubUserRepository_Save_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsGithubUserRepository_Save_Call) Return(_a0 error) *IntegrationsGithubUserRepository_Save_Call
func (*IntegrationsGithubUserRepository_Save_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGithubUserRepository_Save_Call) Run(run func(db *gorm.DB, user *models.ExternalUser)) *IntegrationsGithubUserRepository_Save_Call
func (*IntegrationsGithubUserRepository_Save_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsGithubUserRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.ExternalUser) error) *IntegrationsGithubUserRepository_Save_Call
type IntegrationsGitlabClientFacade ¶ added in v0.5.14
IntegrationsGitlabClientFacade is an autogenerated mock type for the gitlabClientFacade type
func NewIntegrationsGitlabClientFacade ¶ added in v0.5.14
func NewIntegrationsGitlabClientFacade(t interface {
mock.TestingT
Cleanup(func())
}) *IntegrationsGitlabClientFacade
NewIntegrationsGitlabClientFacade creates a new instance of IntegrationsGitlabClientFacade. 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 (*IntegrationsGitlabClientFacade) AddProjectHook ¶ added in v0.5.14
func (_m *IntegrationsGitlabClientFacade) AddProjectHook(ctx context.Context, projectId int, opt *gitlab.AddProjectHookOptions) (*gitlab.ProjectHook, *gitlab.Response, error)
AddProjectHook provides a mock function with given fields: ctx, projectId, opt
func (*IntegrationsGitlabClientFacade) CreateIssue ¶ added in v0.5.14
func (_m *IntegrationsGitlabClientFacade) CreateIssue(ctx context.Context, pid int, opt *gitlab.CreateIssueOptions) (*gitlab.Issue, *gitlab.Response, error)
CreateIssue provides a mock function with given fields: ctx, pid, opt
func (*IntegrationsGitlabClientFacade) CreateIssueComment ¶ added in v0.5.14
func (_m *IntegrationsGitlabClientFacade) CreateIssueComment(ctx context.Context, pid int, issue int, opt *gitlab.CreateIssueNoteOptions) (*gitlab.Note, *gitlab.Response, error)
CreateIssueComment provides a mock function with given fields: ctx, pid, issue, opt
func (*IntegrationsGitlabClientFacade) CreateMergeRequest ¶ added in v0.5.14
func (_m *IntegrationsGitlabClientFacade) CreateMergeRequest(ctx context.Context, project string, opt *gitlab.CreateMergeRequestOptions) (*gitlab.MergeRequest, *gitlab.Response, error)
CreateMergeRequest provides a mock function with given fields: ctx, project, opt
func (*IntegrationsGitlabClientFacade) CreateVariable ¶ added in v0.5.14
func (_m *IntegrationsGitlabClientFacade) CreateVariable(ctx context.Context, projectId int, opt *gitlab.CreateProjectVariableOptions) (*gitlab.ProjectVariable, *gitlab.Response, error)
CreateVariable provides a mock function with given fields: ctx, projectId, opt
func (*IntegrationsGitlabClientFacade) DeleteProjectHook ¶ added in v0.5.14
func (_m *IntegrationsGitlabClientFacade) DeleteProjectHook(ctx context.Context, projectId int, hookId int) (*gitlab.Response, error)
DeleteProjectHook provides a mock function with given fields: ctx, projectId, hookId
func (*IntegrationsGitlabClientFacade) EXPECT ¶ added in v0.5.14
func (_m *IntegrationsGitlabClientFacade) EXPECT() *IntegrationsGitlabClientFacade_Expecter
func (*IntegrationsGitlabClientFacade) EditIssue ¶ added in v0.5.14
func (_m *IntegrationsGitlabClientFacade) EditIssue(ctx context.Context, pid int, issue int, opt *gitlab.UpdateIssueOptions) (*gitlab.Issue, *gitlab.Response, error)
EditIssue provides a mock function with given fields: ctx, pid, issue, opt
func (*IntegrationsGitlabClientFacade) EditIssueLabel ¶ added in v0.5.14
func (_m *IntegrationsGitlabClientFacade) EditIssueLabel(ctx context.Context, pid int, issue int, labels []*gitlab.CreateLabelOptions) (*gitlab.Response, error)
EditIssueLabel provides a mock function with given fields: ctx, pid, issue, labels
func (*IntegrationsGitlabClientFacade) GetProject ¶ added in v0.5.14
func (_m *IntegrationsGitlabClientFacade) GetProject(ctx context.Context, projectId int) (*gitlab.Project, *gitlab.Response, error)
GetProject provides a mock function with given fields: ctx, projectId
func (*IntegrationsGitlabClientFacade) ListProjectHooks ¶ added in v0.5.14
func (_m *IntegrationsGitlabClientFacade) ListProjectHooks(ctx context.Context, projectId int, options *gitlab.ListProjectHooksOptions) ([]*gitlab.ProjectHook, *gitlab.Response, error)
ListProjectHooks provides a mock function with given fields: ctx, projectId, options
func (*IntegrationsGitlabClientFacade) ListVariables ¶ added in v0.5.14
func (_m *IntegrationsGitlabClientFacade) ListVariables(ctx context.Context, projectId int, options *gitlab.ListProjectVariablesOptions) ([]*gitlab.ProjectVariable, *gitlab.Response, error)
ListVariables provides a mock function with given fields: ctx, projectId, options
func (*IntegrationsGitlabClientFacade) RemoveVariable ¶ added in v0.5.14
func (_m *IntegrationsGitlabClientFacade) RemoveVariable(ctx context.Context, projectId int, key string) (*gitlab.Response, error)
RemoveVariable provides a mock function with given fields: ctx, projectId, key
func (*IntegrationsGitlabClientFacade) UpdateVariable ¶ added in v0.5.14
func (_m *IntegrationsGitlabClientFacade) UpdateVariable(ctx context.Context, projectId int, key string, opt *gitlab.UpdateProjectVariableOptions) (*gitlab.ProjectVariable, *gitlab.Response, error)
UpdateVariable provides a mock function with given fields: ctx, projectId, key, opt
type IntegrationsGitlabClientFacade_AddProjectHook_Call ¶ added in v0.5.14
IntegrationsGitlabClientFacade_AddProjectHook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddProjectHook'
func (*IntegrationsGitlabClientFacade_AddProjectHook_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_AddProjectHook_Call) Return(_a0 *gitlab.ProjectHook, _a1 *gitlab.Response, _a2 error) *IntegrationsGitlabClientFacade_AddProjectHook_Call
func (*IntegrationsGitlabClientFacade_AddProjectHook_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_AddProjectHook_Call) Run(run func(ctx context.Context, projectId int, opt *gitlab.AddProjectHookOptions)) *IntegrationsGitlabClientFacade_AddProjectHook_Call
func (*IntegrationsGitlabClientFacade_AddProjectHook_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_AddProjectHook_Call) RunAndReturn(run func(context.Context, int, *gitlab.AddProjectHookOptions) (*gitlab.ProjectHook, *gitlab.Response, error)) *IntegrationsGitlabClientFacade_AddProjectHook_Call
type IntegrationsGitlabClientFacade_CreateIssueComment_Call ¶ added in v0.5.14
IntegrationsGitlabClientFacade_CreateIssueComment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIssueComment'
func (*IntegrationsGitlabClientFacade_CreateIssueComment_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_CreateIssueComment_Call) Return(_a0 *gitlab.Note, _a1 *gitlab.Response, _a2 error) *IntegrationsGitlabClientFacade_CreateIssueComment_Call
func (*IntegrationsGitlabClientFacade_CreateIssueComment_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_CreateIssueComment_Call) Run(run func(ctx context.Context, pid int, issue int, opt *gitlab.CreateIssueNoteOptions)) *IntegrationsGitlabClientFacade_CreateIssueComment_Call
func (*IntegrationsGitlabClientFacade_CreateIssueComment_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_CreateIssueComment_Call) RunAndReturn(run func(context.Context, int, int, *gitlab.CreateIssueNoteOptions) (*gitlab.Note, *gitlab.Response, error)) *IntegrationsGitlabClientFacade_CreateIssueComment_Call
type IntegrationsGitlabClientFacade_CreateIssue_Call ¶ added in v0.5.14
IntegrationsGitlabClientFacade_CreateIssue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIssue'
func (*IntegrationsGitlabClientFacade_CreateIssue_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_CreateIssue_Call) Return(_a0 *gitlab.Issue, _a1 *gitlab.Response, _a2 error) *IntegrationsGitlabClientFacade_CreateIssue_Call
func (*IntegrationsGitlabClientFacade_CreateIssue_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_CreateIssue_Call) Run(run func(ctx context.Context, pid int, opt *gitlab.CreateIssueOptions)) *IntegrationsGitlabClientFacade_CreateIssue_Call
func (*IntegrationsGitlabClientFacade_CreateIssue_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_CreateIssue_Call) RunAndReturn(run func(context.Context, int, *gitlab.CreateIssueOptions) (*gitlab.Issue, *gitlab.Response, error)) *IntegrationsGitlabClientFacade_CreateIssue_Call
type IntegrationsGitlabClientFacade_CreateMergeRequest_Call ¶ added in v0.5.14
IntegrationsGitlabClientFacade_CreateMergeRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateMergeRequest'
func (*IntegrationsGitlabClientFacade_CreateMergeRequest_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_CreateMergeRequest_Call) Return(_a0 *gitlab.MergeRequest, _a1 *gitlab.Response, _a2 error) *IntegrationsGitlabClientFacade_CreateMergeRequest_Call
func (*IntegrationsGitlabClientFacade_CreateMergeRequest_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_CreateMergeRequest_Call) Run(run func(ctx context.Context, project string, opt *gitlab.CreateMergeRequestOptions)) *IntegrationsGitlabClientFacade_CreateMergeRequest_Call
func (*IntegrationsGitlabClientFacade_CreateMergeRequest_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_CreateMergeRequest_Call) RunAndReturn(run func(context.Context, string, *gitlab.CreateMergeRequestOptions) (*gitlab.MergeRequest, *gitlab.Response, error)) *IntegrationsGitlabClientFacade_CreateMergeRequest_Call
type IntegrationsGitlabClientFacade_CreateVariable_Call ¶ added in v0.5.14
IntegrationsGitlabClientFacade_CreateVariable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateVariable'
func (*IntegrationsGitlabClientFacade_CreateVariable_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_CreateVariable_Call) Return(_a0 *gitlab.ProjectVariable, _a1 *gitlab.Response, _a2 error) *IntegrationsGitlabClientFacade_CreateVariable_Call
func (*IntegrationsGitlabClientFacade_CreateVariable_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_CreateVariable_Call) Run(run func(ctx context.Context, projectId int, opt *gitlab.CreateProjectVariableOptions)) *IntegrationsGitlabClientFacade_CreateVariable_Call
func (*IntegrationsGitlabClientFacade_CreateVariable_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_CreateVariable_Call) RunAndReturn(run func(context.Context, int, *gitlab.CreateProjectVariableOptions) (*gitlab.ProjectVariable, *gitlab.Response, error)) *IntegrationsGitlabClientFacade_CreateVariable_Call
type IntegrationsGitlabClientFacade_DeleteProjectHook_Call ¶ added in v0.5.14
IntegrationsGitlabClientFacade_DeleteProjectHook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteProjectHook'
func (*IntegrationsGitlabClientFacade_DeleteProjectHook_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_DeleteProjectHook_Call) Return(_a0 *gitlab.Response, _a1 error) *IntegrationsGitlabClientFacade_DeleteProjectHook_Call
func (*IntegrationsGitlabClientFacade_DeleteProjectHook_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_DeleteProjectHook_Call) Run(run func(ctx context.Context, projectId int, hookId int)) *IntegrationsGitlabClientFacade_DeleteProjectHook_Call
func (*IntegrationsGitlabClientFacade_DeleteProjectHook_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_DeleteProjectHook_Call) RunAndReturn(run func(context.Context, int, int) (*gitlab.Response, error)) *IntegrationsGitlabClientFacade_DeleteProjectHook_Call
type IntegrationsGitlabClientFacade_EditIssueLabel_Call ¶ added in v0.5.14
IntegrationsGitlabClientFacade_EditIssueLabel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EditIssueLabel'
func (*IntegrationsGitlabClientFacade_EditIssueLabel_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_EditIssueLabel_Call) Return(_a0 *gitlab.Response, _a1 error) *IntegrationsGitlabClientFacade_EditIssueLabel_Call
func (*IntegrationsGitlabClientFacade_EditIssueLabel_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_EditIssueLabel_Call) Run(run func(ctx context.Context, pid int, issue int, labels []*gitlab.CreateLabelOptions)) *IntegrationsGitlabClientFacade_EditIssueLabel_Call
func (*IntegrationsGitlabClientFacade_EditIssueLabel_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_EditIssueLabel_Call) RunAndReturn(run func(context.Context, int, int, []*gitlab.CreateLabelOptions) (*gitlab.Response, error)) *IntegrationsGitlabClientFacade_EditIssueLabel_Call
type IntegrationsGitlabClientFacade_EditIssue_Call ¶ added in v0.5.14
IntegrationsGitlabClientFacade_EditIssue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EditIssue'
func (*IntegrationsGitlabClientFacade_EditIssue_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_EditIssue_Call) Return(_a0 *gitlab.Issue, _a1 *gitlab.Response, _a2 error) *IntegrationsGitlabClientFacade_EditIssue_Call
func (*IntegrationsGitlabClientFacade_EditIssue_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_EditIssue_Call) Run(run func(ctx context.Context, pid int, issue int, opt *gitlab.UpdateIssueOptions)) *IntegrationsGitlabClientFacade_EditIssue_Call
func (*IntegrationsGitlabClientFacade_EditIssue_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_EditIssue_Call) RunAndReturn(run func(context.Context, int, int, *gitlab.UpdateIssueOptions) (*gitlab.Issue, *gitlab.Response, error)) *IntegrationsGitlabClientFacade_EditIssue_Call
type IntegrationsGitlabClientFacade_Expecter ¶ added in v0.5.14
type IntegrationsGitlabClientFacade_Expecter struct {
// contains filtered or unexported fields
}
func (*IntegrationsGitlabClientFacade_Expecter) AddProjectHook ¶ added in v0.5.14
func (_e *IntegrationsGitlabClientFacade_Expecter) AddProjectHook(ctx interface{}, projectId interface{}, opt interface{}) *IntegrationsGitlabClientFacade_AddProjectHook_Call
AddProjectHook is a helper method to define mock.On call
- ctx context.Context
- projectId int
- opt *gitlab.AddProjectHookOptions
func (*IntegrationsGitlabClientFacade_Expecter) CreateIssue ¶ added in v0.5.14
func (_e *IntegrationsGitlabClientFacade_Expecter) CreateIssue(ctx interface{}, pid interface{}, opt interface{}) *IntegrationsGitlabClientFacade_CreateIssue_Call
CreateIssue is a helper method to define mock.On call
- ctx context.Context
- pid int
- opt *gitlab.CreateIssueOptions
func (*IntegrationsGitlabClientFacade_Expecter) CreateIssueComment ¶ added in v0.5.14
func (_e *IntegrationsGitlabClientFacade_Expecter) CreateIssueComment(ctx interface{}, pid interface{}, issue interface{}, opt interface{}) *IntegrationsGitlabClientFacade_CreateIssueComment_Call
CreateIssueComment is a helper method to define mock.On call
- ctx context.Context
- pid int
- issue int
- opt *gitlab.CreateIssueNoteOptions
func (*IntegrationsGitlabClientFacade_Expecter) CreateMergeRequest ¶ added in v0.5.14
func (_e *IntegrationsGitlabClientFacade_Expecter) CreateMergeRequest(ctx interface{}, project interface{}, opt interface{}) *IntegrationsGitlabClientFacade_CreateMergeRequest_Call
CreateMergeRequest is a helper method to define mock.On call
- ctx context.Context
- project string
- opt *gitlab.CreateMergeRequestOptions
func (*IntegrationsGitlabClientFacade_Expecter) CreateVariable ¶ added in v0.5.14
func (_e *IntegrationsGitlabClientFacade_Expecter) CreateVariable(ctx interface{}, projectId interface{}, opt interface{}) *IntegrationsGitlabClientFacade_CreateVariable_Call
CreateVariable is a helper method to define mock.On call
- ctx context.Context
- projectId int
- opt *gitlab.CreateProjectVariableOptions
func (*IntegrationsGitlabClientFacade_Expecter) DeleteProjectHook ¶ added in v0.5.14
func (_e *IntegrationsGitlabClientFacade_Expecter) DeleteProjectHook(ctx interface{}, projectId interface{}, hookId interface{}) *IntegrationsGitlabClientFacade_DeleteProjectHook_Call
DeleteProjectHook is a helper method to define mock.On call
- ctx context.Context
- projectId int
- hookId int
func (*IntegrationsGitlabClientFacade_Expecter) EditIssue ¶ added in v0.5.14
func (_e *IntegrationsGitlabClientFacade_Expecter) EditIssue(ctx interface{}, pid interface{}, issue interface{}, opt interface{}) *IntegrationsGitlabClientFacade_EditIssue_Call
EditIssue is a helper method to define mock.On call
- ctx context.Context
- pid int
- issue int
- opt *gitlab.UpdateIssueOptions
func (*IntegrationsGitlabClientFacade_Expecter) EditIssueLabel ¶ added in v0.5.14
func (_e *IntegrationsGitlabClientFacade_Expecter) EditIssueLabel(ctx interface{}, pid interface{}, issue interface{}, labels interface{}) *IntegrationsGitlabClientFacade_EditIssueLabel_Call
EditIssueLabel is a helper method to define mock.On call
- ctx context.Context
- pid int
- issue int
- labels []*gitlab.CreateLabelOptions
func (*IntegrationsGitlabClientFacade_Expecter) GetProject ¶ added in v0.5.14
func (_e *IntegrationsGitlabClientFacade_Expecter) GetProject(ctx interface{}, projectId interface{}) *IntegrationsGitlabClientFacade_GetProject_Call
GetProject is a helper method to define mock.On call
- ctx context.Context
- projectId int
func (*IntegrationsGitlabClientFacade_Expecter) ListProjectHooks ¶ added in v0.5.14
func (_e *IntegrationsGitlabClientFacade_Expecter) ListProjectHooks(ctx interface{}, projectId interface{}, options interface{}) *IntegrationsGitlabClientFacade_ListProjectHooks_Call
ListProjectHooks is a helper method to define mock.On call
- ctx context.Context
- projectId int
- options *gitlab.ListProjectHooksOptions
func (*IntegrationsGitlabClientFacade_Expecter) ListVariables ¶ added in v0.5.14
func (_e *IntegrationsGitlabClientFacade_Expecter) ListVariables(ctx interface{}, projectId interface{}, options interface{}) *IntegrationsGitlabClientFacade_ListVariables_Call
ListVariables is a helper method to define mock.On call
- ctx context.Context
- projectId int
- options *gitlab.ListProjectVariablesOptions
func (*IntegrationsGitlabClientFacade_Expecter) RemoveVariable ¶ added in v0.5.14
func (_e *IntegrationsGitlabClientFacade_Expecter) RemoveVariable(ctx interface{}, projectId interface{}, key interface{}) *IntegrationsGitlabClientFacade_RemoveVariable_Call
RemoveVariable is a helper method to define mock.On call
- ctx context.Context
- projectId int
- key string
func (*IntegrationsGitlabClientFacade_Expecter) UpdateVariable ¶ added in v0.5.14
func (_e *IntegrationsGitlabClientFacade_Expecter) UpdateVariable(ctx interface{}, projectId interface{}, key interface{}, opt interface{}) *IntegrationsGitlabClientFacade_UpdateVariable_Call
UpdateVariable is a helper method to define mock.On call
- ctx context.Context
- projectId int
- key string
- opt *gitlab.UpdateProjectVariableOptions
type IntegrationsGitlabClientFacade_GetProject_Call ¶ added in v0.5.14
IntegrationsGitlabClientFacade_GetProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProject'
func (*IntegrationsGitlabClientFacade_GetProject_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_GetProject_Call) Return(_a0 *gitlab.Project, _a1 *gitlab.Response, _a2 error) *IntegrationsGitlabClientFacade_GetProject_Call
func (*IntegrationsGitlabClientFacade_GetProject_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_GetProject_Call) Run(run func(ctx context.Context, projectId int)) *IntegrationsGitlabClientFacade_GetProject_Call
func (*IntegrationsGitlabClientFacade_GetProject_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_GetProject_Call) RunAndReturn(run func(context.Context, int) (*gitlab.Project, *gitlab.Response, error)) *IntegrationsGitlabClientFacade_GetProject_Call
type IntegrationsGitlabClientFacade_ListProjectHooks_Call ¶ added in v0.5.14
IntegrationsGitlabClientFacade_ListProjectHooks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListProjectHooks'
func (*IntegrationsGitlabClientFacade_ListProjectHooks_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_ListProjectHooks_Call) Return(_a0 []*gitlab.ProjectHook, _a1 *gitlab.Response, _a2 error) *IntegrationsGitlabClientFacade_ListProjectHooks_Call
func (*IntegrationsGitlabClientFacade_ListProjectHooks_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_ListProjectHooks_Call) Run(run func(ctx context.Context, projectId int, options *gitlab.ListProjectHooksOptions)) *IntegrationsGitlabClientFacade_ListProjectHooks_Call
func (*IntegrationsGitlabClientFacade_ListProjectHooks_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_ListProjectHooks_Call) RunAndReturn(run func(context.Context, int, *gitlab.ListProjectHooksOptions) ([]*gitlab.ProjectHook, *gitlab.Response, error)) *IntegrationsGitlabClientFacade_ListProjectHooks_Call
type IntegrationsGitlabClientFacade_ListVariables_Call ¶ added in v0.5.14
IntegrationsGitlabClientFacade_ListVariables_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListVariables'
func (*IntegrationsGitlabClientFacade_ListVariables_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_ListVariables_Call) Return(_a0 []*gitlab.ProjectVariable, _a1 *gitlab.Response, _a2 error) *IntegrationsGitlabClientFacade_ListVariables_Call
func (*IntegrationsGitlabClientFacade_ListVariables_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_ListVariables_Call) Run(run func(ctx context.Context, projectId int, options *gitlab.ListProjectVariablesOptions)) *IntegrationsGitlabClientFacade_ListVariables_Call
func (*IntegrationsGitlabClientFacade_ListVariables_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_ListVariables_Call) RunAndReturn(run func(context.Context, int, *gitlab.ListProjectVariablesOptions) ([]*gitlab.ProjectVariable, *gitlab.Response, error)) *IntegrationsGitlabClientFacade_ListVariables_Call
type IntegrationsGitlabClientFacade_RemoveVariable_Call ¶ added in v0.5.14
IntegrationsGitlabClientFacade_RemoveVariable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveVariable'
func (*IntegrationsGitlabClientFacade_RemoveVariable_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_RemoveVariable_Call) Return(_a0 *gitlab.Response, _a1 error) *IntegrationsGitlabClientFacade_RemoveVariable_Call
func (*IntegrationsGitlabClientFacade_RemoveVariable_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_RemoveVariable_Call) Run(run func(ctx context.Context, projectId int, key string)) *IntegrationsGitlabClientFacade_RemoveVariable_Call
func (*IntegrationsGitlabClientFacade_RemoveVariable_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_RemoveVariable_Call) RunAndReturn(run func(context.Context, int, string) (*gitlab.Response, error)) *IntegrationsGitlabClientFacade_RemoveVariable_Call
type IntegrationsGitlabClientFacade_UpdateVariable_Call ¶ added in v0.5.14
IntegrationsGitlabClientFacade_UpdateVariable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateVariable'
func (*IntegrationsGitlabClientFacade_UpdateVariable_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_UpdateVariable_Call) Return(_a0 *gitlab.ProjectVariable, _a1 *gitlab.Response, _a2 error) *IntegrationsGitlabClientFacade_UpdateVariable_Call
func (*IntegrationsGitlabClientFacade_UpdateVariable_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_UpdateVariable_Call) Run(run func(ctx context.Context, projectId int, key string, opt *gitlab.UpdateProjectVariableOptions)) *IntegrationsGitlabClientFacade_UpdateVariable_Call
func (*IntegrationsGitlabClientFacade_UpdateVariable_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsGitlabClientFacade_UpdateVariable_Call) RunAndReturn(run func(context.Context, int, string, *gitlab.UpdateProjectVariableOptions) (*gitlab.ProjectVariable, *gitlab.Response, error)) *IntegrationsGitlabClientFacade_UpdateVariable_Call
type IntegrationsGitlabIntegrationRepository ¶ added in v0.5.14
IntegrationsGitlabIntegrationRepository is an autogenerated mock type for the gitlabIntegrationRepository type
func NewIntegrationsGitlabIntegrationRepository ¶ added in v0.5.14
func NewIntegrationsGitlabIntegrationRepository(t interface {
mock.TestingT
Cleanup(func())
}) *IntegrationsGitlabIntegrationRepository
NewIntegrationsGitlabIntegrationRepository creates a new instance of IntegrationsGitlabIntegrationRepository. 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 (*IntegrationsGitlabIntegrationRepository) Delete ¶ added in v0.5.14
Delete provides a mock function with given fields: tx, id
func (*IntegrationsGitlabIntegrationRepository) EXPECT ¶ added in v0.5.14
func (_m *IntegrationsGitlabIntegrationRepository) EXPECT() *IntegrationsGitlabIntegrationRepository_Expecter
func (*IntegrationsGitlabIntegrationRepository) FindByOrganizationId ¶ added in v0.5.14
func (_m *IntegrationsGitlabIntegrationRepository) FindByOrganizationId(orgID uuid.UUID) ([]models.GitLabIntegration, error)
FindByOrganizationId provides a mock function with given fields: orgID
func (*IntegrationsGitlabIntegrationRepository) Read ¶ added in v0.5.14
func (_m *IntegrationsGitlabIntegrationRepository) Read(id uuid.UUID) (models.GitLabIntegration, error)
Read provides a mock function with given fields: id
func (*IntegrationsGitlabIntegrationRepository) Save ¶ added in v0.5.14
func (_m *IntegrationsGitlabIntegrationRepository) Save(tx *gorm.DB, model *models.GitLabIntegration) error
Save provides a mock function with given fields: tx, model
type IntegrationsGitlabIntegrationRepository_Delete_Call ¶ added in v0.5.14
IntegrationsGitlabIntegrationRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*IntegrationsGitlabIntegrationRepository_Delete_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGitlabIntegrationRepository_Delete_Call) Run(run func(tx *gorm.DB, id uuid.UUID)) *IntegrationsGitlabIntegrationRepository_Delete_Call
func (*IntegrationsGitlabIntegrationRepository_Delete_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsGitlabIntegrationRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *IntegrationsGitlabIntegrationRepository_Delete_Call
type IntegrationsGitlabIntegrationRepository_Expecter ¶ added in v0.5.14
type IntegrationsGitlabIntegrationRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*IntegrationsGitlabIntegrationRepository_Expecter) Delete ¶ added in v0.5.14
func (_e *IntegrationsGitlabIntegrationRepository_Expecter) Delete(tx interface{}, id interface{}) *IntegrationsGitlabIntegrationRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx *gorm.DB
- id uuid.UUID
func (*IntegrationsGitlabIntegrationRepository_Expecter) FindByOrganizationId ¶ added in v0.5.14
func (_e *IntegrationsGitlabIntegrationRepository_Expecter) FindByOrganizationId(orgID interface{}) *IntegrationsGitlabIntegrationRepository_FindByOrganizationId_Call
FindByOrganizationId is a helper method to define mock.On call
- orgID uuid.UUID
func (*IntegrationsGitlabIntegrationRepository_Expecter) Read ¶ added in v0.5.14
func (_e *IntegrationsGitlabIntegrationRepository_Expecter) Read(id interface{}) *IntegrationsGitlabIntegrationRepository_Read_Call
Read is a helper method to define mock.On call
- id uuid.UUID
func (*IntegrationsGitlabIntegrationRepository_Expecter) Save ¶ added in v0.5.14
func (_e *IntegrationsGitlabIntegrationRepository_Expecter) Save(tx interface{}, model interface{}) *IntegrationsGitlabIntegrationRepository_Save_Call
Save is a helper method to define mock.On call
- tx *gorm.DB
- model *models.GitLabIntegration
type IntegrationsGitlabIntegrationRepository_FindByOrganizationId_Call ¶ added in v0.5.14
IntegrationsGitlabIntegrationRepository_FindByOrganizationId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByOrganizationId'
func (*IntegrationsGitlabIntegrationRepository_FindByOrganizationId_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGitlabIntegrationRepository_FindByOrganizationId_Call) Run(run func(orgID uuid.UUID)) *IntegrationsGitlabIntegrationRepository_FindByOrganizationId_Call
func (*IntegrationsGitlabIntegrationRepository_FindByOrganizationId_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsGitlabIntegrationRepository_FindByOrganizationId_Call) RunAndReturn(run func(uuid.UUID) ([]models.GitLabIntegration, error)) *IntegrationsGitlabIntegrationRepository_FindByOrganizationId_Call
type IntegrationsGitlabIntegrationRepository_Read_Call ¶ added in v0.5.14
IntegrationsGitlabIntegrationRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*IntegrationsGitlabIntegrationRepository_Read_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsGitlabIntegrationRepository_Read_Call) Return(_a0 models.GitLabIntegration, _a1 error) *IntegrationsGitlabIntegrationRepository_Read_Call
func (*IntegrationsGitlabIntegrationRepository_Read_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGitlabIntegrationRepository_Read_Call) Run(run func(id uuid.UUID)) *IntegrationsGitlabIntegrationRepository_Read_Call
func (*IntegrationsGitlabIntegrationRepository_Read_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsGitlabIntegrationRepository_Read_Call) RunAndReturn(run func(uuid.UUID) (models.GitLabIntegration, error)) *IntegrationsGitlabIntegrationRepository_Read_Call
type IntegrationsGitlabIntegrationRepository_Save_Call ¶ added in v0.5.14
IntegrationsGitlabIntegrationRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*IntegrationsGitlabIntegrationRepository_Save_Call) Return ¶ added in v0.5.14
func (_c *IntegrationsGitlabIntegrationRepository_Save_Call) Return(_a0 error) *IntegrationsGitlabIntegrationRepository_Save_Call
func (*IntegrationsGitlabIntegrationRepository_Save_Call) Run ¶ added in v0.5.14
func (_c *IntegrationsGitlabIntegrationRepository_Save_Call) Run(run func(tx *gorm.DB, model *models.GitLabIntegration)) *IntegrationsGitlabIntegrationRepository_Save_Call
func (*IntegrationsGitlabIntegrationRepository_Save_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntegrationsGitlabIntegrationRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.GitLabIntegration) error) *IntegrationsGitlabIntegrationRepository_Save_Call
type IntotoAccessControl ¶ added in v0.5.14
IntotoAccessControl is an autogenerated mock type for the accessControl type
func NewIntotoAccessControl ¶ added in v0.5.14
func NewIntotoAccessControl(t interface {
mock.TestingT
Cleanup(func())
}) *IntotoAccessControl
NewIntotoAccessControl creates a new instance of IntotoAccessControl. 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 (*IntotoAccessControl) EXPECT ¶ added in v0.5.14
func (_m *IntotoAccessControl) EXPECT() *IntotoAccessControl_Expecter
func (*IntotoAccessControl) GetAllMembersOfProject ¶ added in v0.5.14
func (_m *IntotoAccessControl) GetAllMembersOfProject(organizationID string, projectID string) ([]string, error)
GetAllMembersOfProject provides a mock function with given fields: organizationID, projectID
type IntotoAccessControl_Expecter ¶ added in v0.5.14
type IntotoAccessControl_Expecter struct {
// contains filtered or unexported fields
}
func (*IntotoAccessControl_Expecter) GetAllMembersOfProject ¶ added in v0.5.14
func (_e *IntotoAccessControl_Expecter) GetAllMembersOfProject(organizationID interface{}, projectID interface{}) *IntotoAccessControl_GetAllMembersOfProject_Call
GetAllMembersOfProject is a helper method to define mock.On call
- organizationID string
- projectID string
type IntotoAccessControl_GetAllMembersOfProject_Call ¶ added in v0.5.14
IntotoAccessControl_GetAllMembersOfProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllMembersOfProject'
func (*IntotoAccessControl_GetAllMembersOfProject_Call) Return ¶ added in v0.5.14
func (_c *IntotoAccessControl_GetAllMembersOfProject_Call) Return(_a0 []string, _a1 error) *IntotoAccessControl_GetAllMembersOfProject_Call
func (*IntotoAccessControl_GetAllMembersOfProject_Call) Run ¶ added in v0.5.14
func (_c *IntotoAccessControl_GetAllMembersOfProject_Call) Run(run func(organizationID string, projectID string)) *IntotoAccessControl_GetAllMembersOfProject_Call
func (*IntotoAccessControl_GetAllMembersOfProject_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntotoAccessControl_GetAllMembersOfProject_Call) RunAndReturn(run func(string, string) ([]string, error)) *IntotoAccessControl_GetAllMembersOfProject_Call
type IntotoInTotoLinkRepository ¶ added in v0.5.14
IntotoInTotoLinkRepository is an autogenerated mock type for the inTotoLinkRepository type
func NewIntotoInTotoLinkRepository ¶ added in v0.5.14
func NewIntotoInTotoLinkRepository(t interface {
mock.TestingT
Cleanup(func())
}) *IntotoInTotoLinkRepository
NewIntotoInTotoLinkRepository creates a new instance of IntotoInTotoLinkRepository. 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 (*IntotoInTotoLinkRepository) EXPECT ¶ added in v0.5.14
func (_m *IntotoInTotoLinkRepository) EXPECT() *IntotoInTotoLinkRepository_Expecter
func (*IntotoInTotoLinkRepository) FindBySupplyChainID ¶ added in v0.5.14
func (_m *IntotoInTotoLinkRepository) FindBySupplyChainID(supplyChainID string) ([]models.InTotoLink, error)
FindBySupplyChainID provides a mock function with given fields: supplyChainID
type IntotoInTotoLinkRepository_Expecter ¶ added in v0.5.14
type IntotoInTotoLinkRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*IntotoInTotoLinkRepository_Expecter) FindBySupplyChainID ¶ added in v0.5.14
func (_e *IntotoInTotoLinkRepository_Expecter) FindBySupplyChainID(supplyChainID interface{}) *IntotoInTotoLinkRepository_FindBySupplyChainID_Call
FindBySupplyChainID is a helper method to define mock.On call
- supplyChainID string
type IntotoInTotoLinkRepository_FindBySupplyChainID_Call ¶ added in v0.5.14
IntotoInTotoLinkRepository_FindBySupplyChainID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindBySupplyChainID'
func (*IntotoInTotoLinkRepository_FindBySupplyChainID_Call) Return ¶ added in v0.5.14
func (_c *IntotoInTotoLinkRepository_FindBySupplyChainID_Call) Return(_a0 []models.InTotoLink, _a1 error) *IntotoInTotoLinkRepository_FindBySupplyChainID_Call
func (*IntotoInTotoLinkRepository_FindBySupplyChainID_Call) Run ¶ added in v0.5.14
func (_c *IntotoInTotoLinkRepository_FindBySupplyChainID_Call) Run(run func(supplyChainID string)) *IntotoInTotoLinkRepository_FindBySupplyChainID_Call
func (*IntotoInTotoLinkRepository_FindBySupplyChainID_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntotoInTotoLinkRepository_FindBySupplyChainID_Call) RunAndReturn(run func(string) ([]models.InTotoLink, error)) *IntotoInTotoLinkRepository_FindBySupplyChainID_Call
type IntotoInTotoVerifierService ¶ added in v0.5.14
IntotoInTotoVerifierService is an autogenerated mock type for the inTotoVerifierService type
func NewIntotoInTotoVerifierService ¶ added in v0.5.14
func NewIntotoInTotoVerifierService(t interface {
mock.TestingT
Cleanup(func())
}) *IntotoInTotoVerifierService
NewIntotoInTotoVerifierService creates a new instance of IntotoInTotoVerifierService. 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 (*IntotoInTotoVerifierService) EXPECT ¶ added in v0.5.14
func (_m *IntotoInTotoVerifierService) EXPECT() *IntotoInTotoVerifierService_Expecter
func (*IntotoInTotoVerifierService) VerifySupplyChain ¶ added in v0.5.15
func (_m *IntotoInTotoVerifierService) VerifySupplyChain(supplyChainID string) (bool, error)
VerifySupplyChain provides a mock function with given fields: supplyChainID
func (*IntotoInTotoVerifierService) VerifySupplyChainWithOutputDigest ¶ added in v0.5.15
func (_m *IntotoInTotoVerifierService) VerifySupplyChainWithOutputDigest(supplyChainID string, digest string) (bool, error)
VerifySupplyChainWithOutputDigest provides a mock function with given fields: supplyChainID, digest
type IntotoInTotoVerifierService_Expecter ¶ added in v0.5.14
type IntotoInTotoVerifierService_Expecter struct {
// contains filtered or unexported fields
}
func (*IntotoInTotoVerifierService_Expecter) VerifySupplyChain ¶ added in v0.5.15
func (_e *IntotoInTotoVerifierService_Expecter) VerifySupplyChain(supplyChainID interface{}) *IntotoInTotoVerifierService_VerifySupplyChain_Call
VerifySupplyChain is a helper method to define mock.On call
- supplyChainID string
func (*IntotoInTotoVerifierService_Expecter) VerifySupplyChainWithOutputDigest ¶ added in v0.5.15
func (_e *IntotoInTotoVerifierService_Expecter) VerifySupplyChainWithOutputDigest(supplyChainID interface{}, digest interface{}) *IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call
VerifySupplyChainWithOutputDigest is a helper method to define mock.On call
- supplyChainID string
- digest string
type IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call ¶ added in v0.5.15
IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VerifySupplyChainWithOutputDigest'
func (*IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call) Return ¶ added in v0.5.15
func (*IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call) Run ¶ added in v0.5.15
func (_c *IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call) Run(run func(supplyChainID string, digest string)) *IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call
func (*IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call) RunAndReturn ¶ added in v0.5.15
func (_c *IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call) RunAndReturn(run func(string, string) (bool, error)) *IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call
type IntotoInTotoVerifierService_VerifySupplyChain_Call ¶ added in v0.5.15
IntotoInTotoVerifierService_VerifySupplyChain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VerifySupplyChain'
func (*IntotoInTotoVerifierService_VerifySupplyChain_Call) Return ¶ added in v0.5.15
func (_c *IntotoInTotoVerifierService_VerifySupplyChain_Call) Return(_a0 bool, _a1 error) *IntotoInTotoVerifierService_VerifySupplyChain_Call
func (*IntotoInTotoVerifierService_VerifySupplyChain_Call) Run ¶ added in v0.5.15
func (_c *IntotoInTotoVerifierService_VerifySupplyChain_Call) Run(run func(supplyChainID string)) *IntotoInTotoVerifierService_VerifySupplyChain_Call
func (*IntotoInTotoVerifierService_VerifySupplyChain_Call) RunAndReturn ¶ added in v0.5.15
func (_c *IntotoInTotoVerifierService_VerifySupplyChain_Call) RunAndReturn(run func(string) (bool, error)) *IntotoInTotoVerifierService_VerifySupplyChain_Call
type IntotoPatRepository ¶ added in v0.5.14
IntotoPatRepository is an autogenerated mock type for the patRepository type
func NewIntotoPatRepository ¶ added in v0.5.14
func NewIntotoPatRepository(t interface {
mock.TestingT
Cleanup(func())
}) *IntotoPatRepository
NewIntotoPatRepository creates a new instance of IntotoPatRepository. 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 (*IntotoPatRepository) EXPECT ¶ added in v0.5.14
func (_m *IntotoPatRepository) EXPECT() *IntotoPatRepository_Expecter
func (*IntotoPatRepository) FindByUserIDs ¶ added in v0.5.14
FindByUserIDs provides a mock function with given fields: userID
func (*IntotoPatRepository) GetByFingerprint ¶ added in v0.5.14
func (_m *IntotoPatRepository) GetByFingerprint(fingerprint string) (models.PAT, error)
GetByFingerprint provides a mock function with given fields: fingerprint
type IntotoPatRepository_Expecter ¶ added in v0.5.14
type IntotoPatRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*IntotoPatRepository_Expecter) FindByUserIDs ¶ added in v0.5.14
func (_e *IntotoPatRepository_Expecter) FindByUserIDs(userID interface{}) *IntotoPatRepository_FindByUserIDs_Call
FindByUserIDs is a helper method to define mock.On call
- userID []uuid.UUID
func (*IntotoPatRepository_Expecter) GetByFingerprint ¶ added in v0.5.14
func (_e *IntotoPatRepository_Expecter) GetByFingerprint(fingerprint interface{}) *IntotoPatRepository_GetByFingerprint_Call
GetByFingerprint is a helper method to define mock.On call
- fingerprint string
type IntotoPatRepository_FindByUserIDs_Call ¶ added in v0.5.14
IntotoPatRepository_FindByUserIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByUserIDs'
func (*IntotoPatRepository_FindByUserIDs_Call) Return ¶ added in v0.5.14
func (_c *IntotoPatRepository_FindByUserIDs_Call) Return(_a0 []models.PAT, _a1 error) *IntotoPatRepository_FindByUserIDs_Call
func (*IntotoPatRepository_FindByUserIDs_Call) Run ¶ added in v0.5.14
func (_c *IntotoPatRepository_FindByUserIDs_Call) Run(run func(userID []uuid.UUID)) *IntotoPatRepository_FindByUserIDs_Call
func (*IntotoPatRepository_FindByUserIDs_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntotoPatRepository_FindByUserIDs_Call) RunAndReturn(run func([]uuid.UUID) ([]models.PAT, error)) *IntotoPatRepository_FindByUserIDs_Call
type IntotoPatRepository_GetByFingerprint_Call ¶ added in v0.5.14
IntotoPatRepository_GetByFingerprint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByFingerprint'
func (*IntotoPatRepository_GetByFingerprint_Call) Return ¶ added in v0.5.14
func (_c *IntotoPatRepository_GetByFingerprint_Call) Return(_a0 models.PAT, _a1 error) *IntotoPatRepository_GetByFingerprint_Call
func (*IntotoPatRepository_GetByFingerprint_Call) Run ¶ added in v0.5.14
func (_c *IntotoPatRepository_GetByFingerprint_Call) Run(run func(fingerprint string)) *IntotoPatRepository_GetByFingerprint_Call
func (*IntotoPatRepository_GetByFingerprint_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntotoPatRepository_GetByFingerprint_Call) RunAndReturn(run func(string) (models.PAT, error)) *IntotoPatRepository_GetByFingerprint_Call
type IntotoProjectRepository ¶ added in v0.5.14
IntotoProjectRepository is an autogenerated mock type for the projectRepository type
func NewIntotoProjectRepository ¶ added in v0.5.14
func NewIntotoProjectRepository(t interface {
mock.TestingT
Cleanup(func())
}) *IntotoProjectRepository
NewIntotoProjectRepository creates a new instance of IntotoProjectRepository. 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 (*IntotoProjectRepository) EXPECT ¶ added in v0.5.14
func (_m *IntotoProjectRepository) EXPECT() *IntotoProjectRepository_Expecter
func (*IntotoProjectRepository) GetProjectByAssetID ¶ added in v0.5.14
GetProjectByAssetID provides a mock function with given fields: assetID
type IntotoProjectRepository_Expecter ¶ added in v0.5.14
type IntotoProjectRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*IntotoProjectRepository_Expecter) GetProjectByAssetID ¶ added in v0.5.14
func (_e *IntotoProjectRepository_Expecter) GetProjectByAssetID(assetID interface{}) *IntotoProjectRepository_GetProjectByAssetID_Call
GetProjectByAssetID is a helper method to define mock.On call
- assetID uuid.UUID
type IntotoProjectRepository_GetProjectByAssetID_Call ¶ added in v0.5.14
IntotoProjectRepository_GetProjectByAssetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProjectByAssetID'
func (*IntotoProjectRepository_GetProjectByAssetID_Call) Return ¶ added in v0.5.14
func (_c *IntotoProjectRepository_GetProjectByAssetID_Call) Return(_a0 models.Project, _a1 error) *IntotoProjectRepository_GetProjectByAssetID_Call
func (*IntotoProjectRepository_GetProjectByAssetID_Call) Run ¶ added in v0.5.14
func (_c *IntotoProjectRepository_GetProjectByAssetID_Call) Run(run func(assetID uuid.UUID)) *IntotoProjectRepository_GetProjectByAssetID_Call
func (*IntotoProjectRepository_GetProjectByAssetID_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntotoProjectRepository_GetProjectByAssetID_Call) RunAndReturn(run func(uuid.UUID) (models.Project, error)) *IntotoProjectRepository_GetProjectByAssetID_Call
type IntotoRepository ¶ added in v0.5.14
IntotoRepository is an autogenerated mock type for the repository type
func NewIntotoRepository ¶ added in v0.5.14
func NewIntotoRepository(t interface {
mock.TestingT
Cleanup(func())
}) *IntotoRepository
NewIntotoRepository creates a new instance of IntotoRepository. 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 (*IntotoRepository) Activate ¶ added in v0.5.15
Activate provides a mock function with given fields: tx, id
func (*IntotoRepository) Begin ¶ added in v0.5.14
func (_m *IntotoRepository) Begin() *gorm.DB
Begin provides a mock function with no fields
func (*IntotoRepository) Create ¶ added in v0.5.14
func (_m *IntotoRepository) Create(tx *gorm.DB, t *models.InTotoLink) error
Create provides a mock function with given fields: tx, t
func (*IntotoRepository) CreateBatch ¶ added in v0.5.14
func (_m *IntotoRepository) CreateBatch(tx *gorm.DB, ts []models.InTotoLink) error
CreateBatch provides a mock function with given fields: tx, ts
func (*IntotoRepository) Delete ¶ added in v0.5.14
Delete provides a mock function with given fields: tx, id
func (*IntotoRepository) EXPECT ¶ added in v0.5.14
func (_m *IntotoRepository) EXPECT() *IntotoRepository_Expecter
func (*IntotoRepository) FindByAssetAndSupplyChainId ¶ added in v0.5.14
func (_m *IntotoRepository) FindByAssetAndSupplyChainId(assetID uuid.UUID, supplyChainId string) ([]models.InTotoLink, error)
FindByAssetAndSupplyChainId provides a mock function with given fields: assetID, supplyChainId
func (*IntotoRepository) GetDB ¶ added in v0.5.14
func (_m *IntotoRepository) GetDB(tx *gorm.DB) *gorm.DB
GetDB provides a mock function with given fields: tx
func (*IntotoRepository) List ¶ added in v0.5.14
func (_m *IntotoRepository) List(ids []uuid.UUID) ([]models.InTotoLink, error)
List provides a mock function with given fields: ids
func (*IntotoRepository) Read ¶ added in v0.5.14
func (_m *IntotoRepository) Read(id uuid.UUID) (models.InTotoLink, error)
Read provides a mock function with given fields: id
func (*IntotoRepository) Save ¶ added in v0.5.14
func (_m *IntotoRepository) Save(tx *gorm.DB, model *models.InTotoLink) error
Save provides a mock function with given fields: tx, model
func (*IntotoRepository) SaveBatch ¶ added in v0.5.14
func (_m *IntotoRepository) SaveBatch(tx *gorm.DB, ts []models.InTotoLink) error
SaveBatch provides a mock function with given fields: tx, ts
func (*IntotoRepository) Transaction ¶ added in v0.5.14
func (_m *IntotoRepository) Transaction(_a0 func(*gorm.DB) error) error
Transaction provides a mock function with given fields: _a0
type IntotoRepository_Activate_Call ¶ added in v0.5.15
IntotoRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*IntotoRepository_Activate_Call) Return ¶ added in v0.5.15
func (_c *IntotoRepository_Activate_Call) Return(_a0 error) *IntotoRepository_Activate_Call
func (*IntotoRepository_Activate_Call) Run ¶ added in v0.5.15
func (_c *IntotoRepository_Activate_Call) Run(run func(tx *gorm.DB, id uuid.UUID)) *IntotoRepository_Activate_Call
func (*IntotoRepository_Activate_Call) RunAndReturn ¶ added in v0.5.15
func (_c *IntotoRepository_Activate_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *IntotoRepository_Activate_Call
type IntotoRepository_Begin_Call ¶ added in v0.5.14
IntotoRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*IntotoRepository_Begin_Call) Return ¶ added in v0.5.14
func (_c *IntotoRepository_Begin_Call) Return(_a0 *gorm.DB) *IntotoRepository_Begin_Call
func (*IntotoRepository_Begin_Call) Run ¶ added in v0.5.14
func (_c *IntotoRepository_Begin_Call) Run(run func()) *IntotoRepository_Begin_Call
func (*IntotoRepository_Begin_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntotoRepository_Begin_Call) RunAndReturn(run func() *gorm.DB) *IntotoRepository_Begin_Call
type IntotoRepository_CreateBatch_Call ¶ added in v0.5.14
IntotoRepository_CreateBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBatch'
func (*IntotoRepository_CreateBatch_Call) Return ¶ added in v0.5.14
func (_c *IntotoRepository_CreateBatch_Call) Return(_a0 error) *IntotoRepository_CreateBatch_Call
func (*IntotoRepository_CreateBatch_Call) Run ¶ added in v0.5.14
func (_c *IntotoRepository_CreateBatch_Call) Run(run func(tx *gorm.DB, ts []models.InTotoLink)) *IntotoRepository_CreateBatch_Call
func (*IntotoRepository_CreateBatch_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntotoRepository_CreateBatch_Call) RunAndReturn(run func(*gorm.DB, []models.InTotoLink) error) *IntotoRepository_CreateBatch_Call
type IntotoRepository_Create_Call ¶ added in v0.5.14
IntotoRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*IntotoRepository_Create_Call) Return ¶ added in v0.5.14
func (_c *IntotoRepository_Create_Call) Return(_a0 error) *IntotoRepository_Create_Call
func (*IntotoRepository_Create_Call) Run ¶ added in v0.5.14
func (_c *IntotoRepository_Create_Call) Run(run func(tx *gorm.DB, t *models.InTotoLink)) *IntotoRepository_Create_Call
func (*IntotoRepository_Create_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntotoRepository_Create_Call) RunAndReturn(run func(*gorm.DB, *models.InTotoLink) error) *IntotoRepository_Create_Call
type IntotoRepository_Delete_Call ¶ added in v0.5.14
IntotoRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*IntotoRepository_Delete_Call) Return ¶ added in v0.5.14
func (_c *IntotoRepository_Delete_Call) Return(_a0 error) *IntotoRepository_Delete_Call
func (*IntotoRepository_Delete_Call) Run ¶ added in v0.5.14
func (_c *IntotoRepository_Delete_Call) Run(run func(tx *gorm.DB, id uuid.UUID)) *IntotoRepository_Delete_Call
func (*IntotoRepository_Delete_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntotoRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *IntotoRepository_Delete_Call
type IntotoRepository_Expecter ¶ added in v0.5.14
type IntotoRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*IntotoRepository_Expecter) Activate ¶ added in v0.5.15
func (_e *IntotoRepository_Expecter) Activate(tx interface{}, id interface{}) *IntotoRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx *gorm.DB
- id uuid.UUID
func (*IntotoRepository_Expecter) Begin ¶ added in v0.5.14
func (_e *IntotoRepository_Expecter) Begin() *IntotoRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*IntotoRepository_Expecter) Create ¶ added in v0.5.14
func (_e *IntotoRepository_Expecter) Create(tx interface{}, t interface{}) *IntotoRepository_Create_Call
Create is a helper method to define mock.On call
- tx *gorm.DB
- t *models.InTotoLink
func (*IntotoRepository_Expecter) CreateBatch ¶ added in v0.5.14
func (_e *IntotoRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *IntotoRepository_CreateBatch_Call
CreateBatch is a helper method to define mock.On call
- tx *gorm.DB
- ts []models.InTotoLink
func (*IntotoRepository_Expecter) Delete ¶ added in v0.5.14
func (_e *IntotoRepository_Expecter) Delete(tx interface{}, id interface{}) *IntotoRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx *gorm.DB
- id uuid.UUID
func (*IntotoRepository_Expecter) FindByAssetAndSupplyChainId ¶ added in v0.5.14
func (_e *IntotoRepository_Expecter) FindByAssetAndSupplyChainId(assetID interface{}, supplyChainId interface{}) *IntotoRepository_FindByAssetAndSupplyChainId_Call
FindByAssetAndSupplyChainId is a helper method to define mock.On call
- assetID uuid.UUID
- supplyChainId string
func (*IntotoRepository_Expecter) GetDB ¶ added in v0.5.14
func (_e *IntotoRepository_Expecter) GetDB(tx interface{}) *IntotoRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx *gorm.DB
func (*IntotoRepository_Expecter) List ¶ added in v0.5.14
func (_e *IntotoRepository_Expecter) List(ids interface{}) *IntotoRepository_List_Call
List is a helper method to define mock.On call
- ids []uuid.UUID
func (*IntotoRepository_Expecter) Read ¶ added in v0.5.14
func (_e *IntotoRepository_Expecter) Read(id interface{}) *IntotoRepository_Read_Call
Read is a helper method to define mock.On call
- id uuid.UUID
func (*IntotoRepository_Expecter) Save ¶ added in v0.5.14
func (_e *IntotoRepository_Expecter) Save(tx interface{}, model interface{}) *IntotoRepository_Save_Call
Save is a helper method to define mock.On call
- tx *gorm.DB
- model *models.InTotoLink
func (*IntotoRepository_Expecter) SaveBatch ¶ added in v0.5.14
func (_e *IntotoRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *IntotoRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx *gorm.DB
- ts []models.InTotoLink
func (*IntotoRepository_Expecter) Transaction ¶ added in v0.5.14
func (_e *IntotoRepository_Expecter) Transaction(_a0 interface{}) *IntotoRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- _a0 func(*gorm.DB) error
type IntotoRepository_FindByAssetAndSupplyChainId_Call ¶ added in v0.5.14
IntotoRepository_FindByAssetAndSupplyChainId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByAssetAndSupplyChainId'
func (*IntotoRepository_FindByAssetAndSupplyChainId_Call) Return ¶ added in v0.5.14
func (_c *IntotoRepository_FindByAssetAndSupplyChainId_Call) Return(_a0 []models.InTotoLink, _a1 error) *IntotoRepository_FindByAssetAndSupplyChainId_Call
func (*IntotoRepository_FindByAssetAndSupplyChainId_Call) Run ¶ added in v0.5.14
func (_c *IntotoRepository_FindByAssetAndSupplyChainId_Call) Run(run func(assetID uuid.UUID, supplyChainId string)) *IntotoRepository_FindByAssetAndSupplyChainId_Call
func (*IntotoRepository_FindByAssetAndSupplyChainId_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntotoRepository_FindByAssetAndSupplyChainId_Call) RunAndReturn(run func(uuid.UUID, string) ([]models.InTotoLink, error)) *IntotoRepository_FindByAssetAndSupplyChainId_Call
type IntotoRepository_GetDB_Call ¶ added in v0.5.14
IntotoRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*IntotoRepository_GetDB_Call) Return ¶ added in v0.5.14
func (_c *IntotoRepository_GetDB_Call) Return(_a0 *gorm.DB) *IntotoRepository_GetDB_Call
func (*IntotoRepository_GetDB_Call) Run ¶ added in v0.5.14
func (_c *IntotoRepository_GetDB_Call) Run(run func(tx *gorm.DB)) *IntotoRepository_GetDB_Call
func (*IntotoRepository_GetDB_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntotoRepository_GetDB_Call) RunAndReturn(run func(*gorm.DB) *gorm.DB) *IntotoRepository_GetDB_Call
type IntotoRepository_List_Call ¶ added in v0.5.14
IntotoRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*IntotoRepository_List_Call) Return ¶ added in v0.5.14
func (_c *IntotoRepository_List_Call) Return(_a0 []models.InTotoLink, _a1 error) *IntotoRepository_List_Call
func (*IntotoRepository_List_Call) Run ¶ added in v0.5.14
func (_c *IntotoRepository_List_Call) Run(run func(ids []uuid.UUID)) *IntotoRepository_List_Call
func (*IntotoRepository_List_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntotoRepository_List_Call) RunAndReturn(run func([]uuid.UUID) ([]models.InTotoLink, error)) *IntotoRepository_List_Call
type IntotoRepository_Read_Call ¶ added in v0.5.14
IntotoRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*IntotoRepository_Read_Call) Return ¶ added in v0.5.14
func (_c *IntotoRepository_Read_Call) Return(_a0 models.InTotoLink, _a1 error) *IntotoRepository_Read_Call
func (*IntotoRepository_Read_Call) Run ¶ added in v0.5.14
func (_c *IntotoRepository_Read_Call) Run(run func(id uuid.UUID)) *IntotoRepository_Read_Call
func (*IntotoRepository_Read_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntotoRepository_Read_Call) RunAndReturn(run func(uuid.UUID) (models.InTotoLink, error)) *IntotoRepository_Read_Call
type IntotoRepository_SaveBatch_Call ¶ added in v0.5.14
IntotoRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*IntotoRepository_SaveBatch_Call) Return ¶ added in v0.5.14
func (_c *IntotoRepository_SaveBatch_Call) Return(_a0 error) *IntotoRepository_SaveBatch_Call
func (*IntotoRepository_SaveBatch_Call) Run ¶ added in v0.5.14
func (_c *IntotoRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, ts []models.InTotoLink)) *IntotoRepository_SaveBatch_Call
func (*IntotoRepository_SaveBatch_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntotoRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.InTotoLink) error) *IntotoRepository_SaveBatch_Call
type IntotoRepository_Save_Call ¶ added in v0.5.14
IntotoRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*IntotoRepository_Save_Call) Return ¶ added in v0.5.14
func (_c *IntotoRepository_Save_Call) Return(_a0 error) *IntotoRepository_Save_Call
func (*IntotoRepository_Save_Call) Run ¶ added in v0.5.14
func (_c *IntotoRepository_Save_Call) Run(run func(tx *gorm.DB, model *models.InTotoLink)) *IntotoRepository_Save_Call
func (*IntotoRepository_Save_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntotoRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.InTotoLink) error) *IntotoRepository_Save_Call
type IntotoRepository_Transaction_Call ¶ added in v0.5.14
IntotoRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*IntotoRepository_Transaction_Call) Return ¶ added in v0.5.14
func (_c *IntotoRepository_Transaction_Call) Return(_a0 error) *IntotoRepository_Transaction_Call
func (*IntotoRepository_Transaction_Call) Run ¶ added in v0.5.14
func (_c *IntotoRepository_Transaction_Call) Run(run func(_a0 func(*gorm.DB) error)) *IntotoRepository_Transaction_Call
func (*IntotoRepository_Transaction_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntotoRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *IntotoRepository_Transaction_Call
type IntotoSupplyChainRepository ¶ added in v0.5.14
IntotoSupplyChainRepository is an autogenerated mock type for the supplyChainRepository type
func NewIntotoSupplyChainRepository ¶ added in v0.5.14
func NewIntotoSupplyChainRepository(t interface {
mock.TestingT
Cleanup(func())
}) *IntotoSupplyChainRepository
NewIntotoSupplyChainRepository creates a new instance of IntotoSupplyChainRepository. 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 (*IntotoSupplyChainRepository) EXPECT ¶ added in v0.5.14
func (_m *IntotoSupplyChainRepository) EXPECT() *IntotoSupplyChainRepository_Expecter
func (*IntotoSupplyChainRepository) Save ¶ added in v0.5.14
func (_m *IntotoSupplyChainRepository) Save(tx *gorm.DB, model *models.SupplyChain) error
Save provides a mock function with given fields: tx, model
type IntotoSupplyChainRepositoryS ¶ added in v0.5.14
IntotoSupplyChainRepositoryS is an autogenerated mock type for the supplyChainRepositoryS type
func NewIntotoSupplyChainRepositoryS ¶ added in v0.5.14
func NewIntotoSupplyChainRepositoryS(t interface {
mock.TestingT
Cleanup(func())
}) *IntotoSupplyChainRepositoryS
NewIntotoSupplyChainRepositoryS creates a new instance of IntotoSupplyChainRepositoryS. 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 (*IntotoSupplyChainRepositoryS) EXPECT ¶ added in v0.5.14
func (_m *IntotoSupplyChainRepositoryS) EXPECT() *IntotoSupplyChainRepositoryS_Expecter
func (*IntotoSupplyChainRepositoryS) FindBySupplyChainID ¶ added in v0.5.14
func (_m *IntotoSupplyChainRepositoryS) FindBySupplyChainID(supplyChainID string) ([]models.SupplyChain, error)
FindBySupplyChainID provides a mock function with given fields: supplyChainID
type IntotoSupplyChainRepositoryS_Expecter ¶ added in v0.5.14
type IntotoSupplyChainRepositoryS_Expecter struct {
// contains filtered or unexported fields
}
func (*IntotoSupplyChainRepositoryS_Expecter) FindBySupplyChainID ¶ added in v0.5.14
func (_e *IntotoSupplyChainRepositoryS_Expecter) FindBySupplyChainID(supplyChainID interface{}) *IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call
FindBySupplyChainID is a helper method to define mock.On call
- supplyChainID string
type IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call ¶ added in v0.5.14
IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindBySupplyChainID'
func (*IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call) Return ¶ added in v0.5.14
func (_c *IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call) Return(_a0 []models.SupplyChain, _a1 error) *IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call
func (*IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call) Run ¶ added in v0.5.14
func (_c *IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call) Run(run func(supplyChainID string)) *IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call
func (*IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call) RunAndReturn(run func(string) ([]models.SupplyChain, error)) *IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call
type IntotoSupplyChainRepository_Expecter ¶ added in v0.5.14
type IntotoSupplyChainRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*IntotoSupplyChainRepository_Expecter) Save ¶ added in v0.5.14
func (_e *IntotoSupplyChainRepository_Expecter) Save(tx interface{}, model interface{}) *IntotoSupplyChainRepository_Save_Call
Save is a helper method to define mock.On call
- tx *gorm.DB
- model *models.SupplyChain
type IntotoSupplyChainRepository_Save_Call ¶ added in v0.5.14
IntotoSupplyChainRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*IntotoSupplyChainRepository_Save_Call) Return ¶ added in v0.5.14
func (_c *IntotoSupplyChainRepository_Save_Call) Return(_a0 error) *IntotoSupplyChainRepository_Save_Call
func (*IntotoSupplyChainRepository_Save_Call) Run ¶ added in v0.5.14
func (_c *IntotoSupplyChainRepository_Save_Call) Run(run func(tx *gorm.DB, model *models.SupplyChain)) *IntotoSupplyChainRepository_Save_Call
func (*IntotoSupplyChainRepository_Save_Call) RunAndReturn ¶ added in v0.5.14
func (_c *IntotoSupplyChainRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.SupplyChain) error) *IntotoSupplyChainRepository_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 no fields
func (*NormalizeSBOM) GetDependencies ¶ added in v0.5.1
func (_m *NormalizeSBOM) GetDependencies() *[]cyclonedx.Dependency
GetDependencies provides a mock function with no fields
func (*NormalizeSBOM) GetMetadata ¶ added in v0.5.1
func (_m *NormalizeSBOM) GetMetadata() *cyclonedx.Metadata
GetMetadata provides a mock function with no 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 OrgInvitationRepository ¶ added in v0.5.14
OrgInvitationRepository is an autogenerated mock type for the invitationRepository type
func NewOrgInvitationRepository ¶ added in v0.5.14
func NewOrgInvitationRepository(t interface {
mock.TestingT
Cleanup(func())
}) *OrgInvitationRepository
NewOrgInvitationRepository creates a new instance of OrgInvitationRepository. 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 (*OrgInvitationRepository) Delete ¶ added in v0.5.14
Delete provides a mock function with given fields: tx, id
func (*OrgInvitationRepository) EXPECT ¶ added in v0.5.14
func (_m *OrgInvitationRepository) EXPECT() *OrgInvitationRepository_Expecter
func (*OrgInvitationRepository) FindByCode ¶ added in v0.5.14
func (_m *OrgInvitationRepository) FindByCode(code string) (models.Invitation, error)
FindByCode provides a mock function with given fields: code
func (*OrgInvitationRepository) Save ¶ added in v0.5.14
func (_m *OrgInvitationRepository) Save(tx *gorm.DB, invitation *models.Invitation) error
Save provides a mock function with given fields: tx, invitation
type OrgInvitationRepository_Delete_Call ¶ added in v0.5.14
OrgInvitationRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*OrgInvitationRepository_Delete_Call) Return ¶ added in v0.5.14
func (_c *OrgInvitationRepository_Delete_Call) Return(_a0 error) *OrgInvitationRepository_Delete_Call
func (*OrgInvitationRepository_Delete_Call) Run ¶ added in v0.5.14
func (_c *OrgInvitationRepository_Delete_Call) Run(run func(tx *gorm.DB, id uuid.UUID)) *OrgInvitationRepository_Delete_Call
func (*OrgInvitationRepository_Delete_Call) RunAndReturn ¶ added in v0.5.14
func (_c *OrgInvitationRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *OrgInvitationRepository_Delete_Call
type OrgInvitationRepository_Expecter ¶ added in v0.5.14
type OrgInvitationRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*OrgInvitationRepository_Expecter) Delete ¶ added in v0.5.14
func (_e *OrgInvitationRepository_Expecter) Delete(tx interface{}, id interface{}) *OrgInvitationRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx *gorm.DB
- id uuid.UUID
func (*OrgInvitationRepository_Expecter) FindByCode ¶ added in v0.5.14
func (_e *OrgInvitationRepository_Expecter) FindByCode(code interface{}) *OrgInvitationRepository_FindByCode_Call
FindByCode is a helper method to define mock.On call
- code string
func (*OrgInvitationRepository_Expecter) Save ¶ added in v0.5.14
func (_e *OrgInvitationRepository_Expecter) Save(tx interface{}, invitation interface{}) *OrgInvitationRepository_Save_Call
Save is a helper method to define mock.On call
- tx *gorm.DB
- invitation *models.Invitation
type OrgInvitationRepository_FindByCode_Call ¶ added in v0.5.14
OrgInvitationRepository_FindByCode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByCode'
func (*OrgInvitationRepository_FindByCode_Call) Return ¶ added in v0.5.14
func (_c *OrgInvitationRepository_FindByCode_Call) Return(_a0 models.Invitation, _a1 error) *OrgInvitationRepository_FindByCode_Call
func (*OrgInvitationRepository_FindByCode_Call) Run ¶ added in v0.5.14
func (_c *OrgInvitationRepository_FindByCode_Call) Run(run func(code string)) *OrgInvitationRepository_FindByCode_Call
func (*OrgInvitationRepository_FindByCode_Call) RunAndReturn ¶ added in v0.5.14
func (_c *OrgInvitationRepository_FindByCode_Call) RunAndReturn(run func(string) (models.Invitation, error)) *OrgInvitationRepository_FindByCode_Call
type OrgInvitationRepository_Save_Call ¶ added in v0.5.14
OrgInvitationRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*OrgInvitationRepository_Save_Call) Return ¶ added in v0.5.14
func (_c *OrgInvitationRepository_Save_Call) Return(_a0 error) *OrgInvitationRepository_Save_Call
func (*OrgInvitationRepository_Save_Call) Run ¶ added in v0.5.14
func (_c *OrgInvitationRepository_Save_Call) Run(run func(tx *gorm.DB, invitation *models.Invitation)) *OrgInvitationRepository_Save_Call
func (*OrgInvitationRepository_Save_Call) RunAndReturn ¶ added in v0.5.14
func (_c *OrgInvitationRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.Invitation) error) *OrgInvitationRepository_Save_Call
type OrgProjectService ¶ added in v0.5.14
OrgProjectService is an autogenerated mock type for the projectService type
func NewOrgProjectService ¶ added in v0.5.14
func NewOrgProjectService(t interface {
mock.TestingT
Cleanup(func())
}) *OrgProjectService
NewOrgProjectService creates a new instance of OrgProjectService. 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 (*OrgProjectService) EXPECT ¶ added in v0.5.14
func (_m *OrgProjectService) EXPECT() *OrgProjectService_Expecter
func (*OrgProjectService) ListAllowedProjects ¶ added in v0.5.14
ListAllowedProjects provides a mock function with given fields: c
type OrgProjectService_Expecter ¶ added in v0.5.14
type OrgProjectService_Expecter struct {
// contains filtered or unexported fields
}
func (*OrgProjectService_Expecter) ListAllowedProjects ¶ added in v0.5.14
func (_e *OrgProjectService_Expecter) ListAllowedProjects(c interface{}) *OrgProjectService_ListAllowedProjects_Call
ListAllowedProjects is a helper method to define mock.On call
- c echo.Context
type OrgProjectService_ListAllowedProjects_Call ¶ added in v0.5.14
OrgProjectService_ListAllowedProjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAllowedProjects'
func (*OrgProjectService_ListAllowedProjects_Call) Return ¶ added in v0.5.14
func (_c *OrgProjectService_ListAllowedProjects_Call) Return(_a0 []models.Project, _a1 error) *OrgProjectService_ListAllowedProjects_Call
func (*OrgProjectService_ListAllowedProjects_Call) Run ¶ added in v0.5.14
func (_c *OrgProjectService_ListAllowedProjects_Call) Run(run func(c echo.Context)) *OrgProjectService_ListAllowedProjects_Call
func (*OrgProjectService_ListAllowedProjects_Call) RunAndReturn ¶ added in v0.5.14
func (_c *OrgProjectService_ListAllowedProjects_Call) RunAndReturn(run func(echo.Context) ([]models.Project, error)) *OrgProjectService_ListAllowedProjects_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) Activate ¶ added in v0.5.15
Activate provides a mock function with given fields: tx, id
func (*OrgRepository) Begin ¶
func (_m *OrgRepository) Begin() *gorm.DB
Begin provides a mock function with no fields
func (*OrgRepository) ContentTree ¶ added in v0.5.14
func (_m *OrgRepository) ContentTree(orgID uuid.UUID, projects []string) []obj.ContentTreeElement
ContentTree provides a mock function with given fields: orgID, projects
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_Activate_Call ¶ added in v0.5.15
OrgRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*OrgRepository_Activate_Call) Return ¶ added in v0.5.15
func (_c *OrgRepository_Activate_Call) Return(_a0 error) *OrgRepository_Activate_Call
func (*OrgRepository_Activate_Call) Run ¶ added in v0.5.15
func (_c *OrgRepository_Activate_Call) Run(run func(tx *gorm.DB, id uuid.UUID)) *OrgRepository_Activate_Call
func (*OrgRepository_Activate_Call) RunAndReturn ¶ added in v0.5.15
func (_c *OrgRepository_Activate_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *OrgRepository_Activate_Call
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_ContentTree_Call ¶ added in v0.5.14
OrgRepository_ContentTree_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContentTree'
func (*OrgRepository_ContentTree_Call) Return ¶ added in v0.5.14
func (_c *OrgRepository_ContentTree_Call) Return(_a0 []obj.ContentTreeElement) *OrgRepository_ContentTree_Call
func (*OrgRepository_ContentTree_Call) Run ¶ added in v0.5.14
func (_c *OrgRepository_ContentTree_Call) Run(run func(orgID uuid.UUID, projects []string)) *OrgRepository_ContentTree_Call
func (*OrgRepository_ContentTree_Call) RunAndReturn ¶ added in v0.5.14
func (_c *OrgRepository_ContentTree_Call) RunAndReturn(run func(uuid.UUID, []string) []obj.ContentTreeElement) *OrgRepository_ContentTree_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) Activate ¶ added in v0.5.15
func (_e *OrgRepository_Expecter) Activate(tx interface{}, id interface{}) *OrgRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx *gorm.DB
- id uuid.UUID
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) ContentTree ¶ added in v0.5.14
func (_e *OrgRepository_Expecter) ContentTree(orgID interface{}, projects interface{}) *OrgRepository_ContentTree_Call
ContentTree is a helper method to define mock.On call
- orgID uuid.UUID
- projects []string
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
func (*OrgRepository_Expecter) Update ¶ added in v0.5.14
func (_e *OrgRepository_Expecter) Update(tx interface{}, organization interface{}) *OrgRepository_Update_Call
Update is a helper method to define mock.On call
- tx *gorm.DB
- organization *models.Org
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 OrgRepository_Update_Call ¶ added in v0.5.14
OrgRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*OrgRepository_Update_Call) Return ¶ added in v0.5.14
func (_c *OrgRepository_Update_Call) Return(_a0 error) *OrgRepository_Update_Call
func (*OrgRepository_Update_Call) Run ¶ added in v0.5.14
func (_c *OrgRepository_Update_Call) Run(run func(tx *gorm.DB, organization *models.Org)) *OrgRepository_Update_Call
func (*OrgRepository_Update_Call) RunAndReturn ¶ added in v0.5.14
func (_c *OrgRepository_Update_Call) RunAndReturn(run func(*gorm.DB, *models.Org) error) *OrgRepository_Update_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) Activate ¶ added in v0.5.15
Activate provides a mock function with given fields: tx, id
func (*PatRepository) Begin ¶
func (_m *PatRepository) Begin() *gorm.DB
Begin provides a mock function with no 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_Activate_Call ¶ added in v0.5.15
PatRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*PatRepository_Activate_Call) Return ¶ added in v0.5.15
func (_c *PatRepository_Activate_Call) Return(_a0 error) *PatRepository_Activate_Call
func (*PatRepository_Activate_Call) Run ¶ added in v0.5.15
func (_c *PatRepository_Activate_Call) Run(run func(tx *gorm.DB, id uuid.UUID)) *PatRepository_Activate_Call
func (*PatRepository_Activate_Call) RunAndReturn ¶ added in v0.5.15
func (_c *PatRepository_Activate_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *PatRepository_Activate_Call
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) Activate ¶ added in v0.5.15
func (_e *PatRepository_Expecter) Activate(tx interface{}, id interface{}) *PatRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx *gorm.DB
- id uuid.UUID
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) Activate ¶ added in v0.5.15
Activate provides a mock function with given fields: tx, projectID
func (*ProjectProjectRepository) Create ¶
Create provides a mock function with given fields: tx, _a1
func (*ProjectProjectRepository) Delete ¶
Delete provides a mock function with given fields: tx, projectID
func (*ProjectProjectRepository) EXPECT ¶
func (_m *ProjectProjectRepository) EXPECT() *ProjectProjectRepository_Expecter
func (*ProjectProjectRepository) List ¶
func (_m *ProjectProjectRepository) List(projectIds []uuid.UUID, parentId *uuid.UUID, orgId uuid.UUID) ([]models.Project, error)
List provides a mock function with given fields: projectIds, parentId, orgId
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) ReadBySlugUnscoped ¶ added in v0.5.15
func (_m *ProjectProjectRepository) ReadBySlugUnscoped(organizationId uuid.UUID, slug string) (models.Project, error)
ReadBySlugUnscoped provides a mock function with given fields: organizationId, slug
type ProjectProjectRepository_Activate_Call ¶ added in v0.5.15
ProjectProjectRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*ProjectProjectRepository_Activate_Call) Return ¶ added in v0.5.15
func (_c *ProjectProjectRepository_Activate_Call) Return(_a0 error) *ProjectProjectRepository_Activate_Call
func (*ProjectProjectRepository_Activate_Call) Run ¶ added in v0.5.15
func (_c *ProjectProjectRepository_Activate_Call) Run(run func(tx *gorm.DB, projectID uuid.UUID)) *ProjectProjectRepository_Activate_Call
func (*ProjectProjectRepository_Activate_Call) RunAndReturn ¶ added in v0.5.15
func (_c *ProjectProjectRepository_Activate_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *ProjectProjectRepository_Activate_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, _a1 *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, projectID 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) Activate ¶ added in v0.5.15
func (_e *ProjectProjectRepository_Expecter) Activate(tx interface{}, projectID interface{}) *ProjectProjectRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx *gorm.DB
- projectID uuid.UUID
func (*ProjectProjectRepository_Expecter) Create ¶
func (_e *ProjectProjectRepository_Expecter) Create(tx interface{}, _a1 interface{}) *ProjectProjectRepository_Create_Call
Create is a helper method to define mock.On call
- tx *gorm.DB
- _a1 *models.Project
func (*ProjectProjectRepository_Expecter) Delete ¶
func (_e *ProjectProjectRepository_Expecter) Delete(tx interface{}, projectID interface{}) *ProjectProjectRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx *gorm.DB
- projectID uuid.UUID
func (*ProjectProjectRepository_Expecter) List ¶
func (_e *ProjectProjectRepository_Expecter) List(projectIds interface{}, parentId interface{}, orgId interface{}) *ProjectProjectRepository_List_Call
List is a helper method to define mock.On call
- projectIds []uuid.UUID
- parentId *uuid.UUID
- orgId 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) ReadBySlugUnscoped ¶ added in v0.5.15
func (_e *ProjectProjectRepository_Expecter) ReadBySlugUnscoped(organizationId interface{}, slug interface{}) *ProjectProjectRepository_ReadBySlugUnscoped_Call
ReadBySlugUnscoped is a helper method to define mock.On call
- organizationId uuid.UUID
- slug string
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_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(projectIds []uuid.UUID, parentId *uuid.UUID, orgId uuid.UUID)) *ProjectProjectRepository_List_Call
func (*ProjectProjectRepository_List_Call) RunAndReturn ¶
type ProjectProjectRepository_ReadBySlugUnscoped_Call ¶ added in v0.5.15
ProjectProjectRepository_ReadBySlugUnscoped_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadBySlugUnscoped'
func (*ProjectProjectRepository_ReadBySlugUnscoped_Call) Return ¶ added in v0.5.15
func (_c *ProjectProjectRepository_ReadBySlugUnscoped_Call) Return(_a0 models.Project, _a1 error) *ProjectProjectRepository_ReadBySlugUnscoped_Call
func (*ProjectProjectRepository_ReadBySlugUnscoped_Call) Run ¶ added in v0.5.15
func (_c *ProjectProjectRepository_ReadBySlugUnscoped_Call) Run(run func(organizationId uuid.UUID, slug string)) *ProjectProjectRepository_ReadBySlugUnscoped_Call
func (*ProjectProjectRepository_ReadBySlugUnscoped_Call) RunAndReturn ¶ added in v0.5.15
func (_c *ProjectProjectRepository_ReadBySlugUnscoped_Call) RunAndReturn(run func(uuid.UUID, string) (models.Project, error)) *ProjectProjectRepository_ReadBySlugUnscoped_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_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 ProjectProjectService ¶ added in v0.5.14
ProjectProjectService is an autogenerated mock type for the projectService type
func NewProjectProjectService ¶ added in v0.5.14
func NewProjectProjectService(t interface {
mock.TestingT
Cleanup(func())
}) *ProjectProjectService
NewProjectProjectService creates a new instance of ProjectProjectService. 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 (*ProjectProjectService) EXPECT ¶ added in v0.5.14
func (_m *ProjectProjectService) EXPECT() *ProjectProjectService_Expecter
func (*ProjectProjectService) ListAllowedProjects ¶ added in v0.5.14
ListAllowedProjects provides a mock function with given fields: c
type ProjectProjectService_Expecter ¶ added in v0.5.14
type ProjectProjectService_Expecter struct {
// contains filtered or unexported fields
}
func (*ProjectProjectService_Expecter) ListAllowedProjects ¶ added in v0.5.14
func (_e *ProjectProjectService_Expecter) ListAllowedProjects(c interface{}) *ProjectProjectService_ListAllowedProjects_Call
ListAllowedProjects is a helper method to define mock.On call
- c echo.Context
type ProjectProjectService_ListAllowedProjects_Call ¶ added in v0.5.14
ProjectProjectService_ListAllowedProjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAllowedProjects'
func (*ProjectProjectService_ListAllowedProjects_Call) Return ¶ added in v0.5.14
func (_c *ProjectProjectService_ListAllowedProjects_Call) Return(_a0 []models.Project, _a1 error) *ProjectProjectService_ListAllowedProjects_Call
func (*ProjectProjectService_ListAllowedProjects_Call) Run ¶ added in v0.5.14
func (_c *ProjectProjectService_ListAllowedProjects_Call) Run(run func(c echo.Context)) *ProjectProjectService_ListAllowedProjects_Call
func (*ProjectProjectService_ListAllowedProjects_Call) RunAndReturn ¶ added in v0.5.14
func (_c *ProjectProjectService_ListAllowedProjects_Call) RunAndReturn(run func(echo.Context) ([]models.Project, error)) *ProjectProjectService_ListAllowedProjects_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 no 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 no fields
func (*RiskCvssInterface) Vector ¶
func (_m *RiskCvssInterface) Vector() string
Vector provides a mock function with no 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 ScanAssetRepository ¶ added in v0.5.14
ScanAssetRepository is an autogenerated mock type for the assetRepository type
func NewScanAssetRepository ¶ added in v0.5.14
func NewScanAssetRepository(t interface {
mock.TestingT
Cleanup(func())
}) *ScanAssetRepository
NewScanAssetRepository creates a new instance of ScanAssetRepository. 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 (*ScanAssetRepository) EXPECT ¶ added in v0.5.14
func (_m *ScanAssetRepository) EXPECT() *ScanAssetRepository_Expecter
func (*ScanAssetRepository) GetAllAssetsFromDB ¶ added in v0.5.14
func (_m *ScanAssetRepository) GetAllAssetsFromDB() ([]models.Asset, error)
GetAllAssetsFromDB provides a mock function with no fields
type ScanAssetRepository_Expecter ¶ added in v0.5.14
type ScanAssetRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ScanAssetRepository_Expecter) GetAllAssetsFromDB ¶ added in v0.5.14
func (_e *ScanAssetRepository_Expecter) GetAllAssetsFromDB() *ScanAssetRepository_GetAllAssetsFromDB_Call
GetAllAssetsFromDB is a helper method to define mock.On call
func (*ScanAssetRepository_Expecter) Save ¶ added in v0.5.14
func (_e *ScanAssetRepository_Expecter) Save(tx interface{}, asset interface{}) *ScanAssetRepository_Save_Call
Save is a helper method to define mock.On call
- tx *gorm.DB
- asset *models.Asset
type ScanAssetRepository_GetAllAssetsFromDB_Call ¶ added in v0.5.14
ScanAssetRepository_GetAllAssetsFromDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllAssetsFromDB'
func (*ScanAssetRepository_GetAllAssetsFromDB_Call) Return ¶ added in v0.5.14
func (_c *ScanAssetRepository_GetAllAssetsFromDB_Call) Return(_a0 []models.Asset, _a1 error) *ScanAssetRepository_GetAllAssetsFromDB_Call
func (*ScanAssetRepository_GetAllAssetsFromDB_Call) Run ¶ added in v0.5.14
func (_c *ScanAssetRepository_GetAllAssetsFromDB_Call) Run(run func()) *ScanAssetRepository_GetAllAssetsFromDB_Call
func (*ScanAssetRepository_GetAllAssetsFromDB_Call) RunAndReturn ¶ added in v0.5.14
func (_c *ScanAssetRepository_GetAllAssetsFromDB_Call) RunAndReturn(run func() ([]models.Asset, error)) *ScanAssetRepository_GetAllAssetsFromDB_Call
type ScanAssetRepository_Save_Call ¶ added in v0.5.14
ScanAssetRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*ScanAssetRepository_Save_Call) Return ¶ added in v0.5.14
func (_c *ScanAssetRepository_Save_Call) Return(_a0 error) *ScanAssetRepository_Save_Call
func (*ScanAssetRepository_Save_Call) Run ¶ added in v0.5.14
func (_c *ScanAssetRepository_Save_Call) Run(run func(tx *gorm.DB, asset *models.Asset)) *ScanAssetRepository_Save_Call
func (*ScanAssetRepository_Save_Call) RunAndReturn ¶ added in v0.5.14
func (_c *ScanAssetRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.Asset) error) *ScanAssetRepository_Save_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, doRiskManagement bool) (int, int, []models.Flaw, error)
HandleScanResult provides a mock function with given fields: asset, vulns, scanType, version, scannerID, userID, doRiskManagement
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{}, doRiskManagement 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
- doRiskManagement bool
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, doRiskManagement bool)) *ScanAssetService_HandleScanResult_Call
func (*ScanAssetService_HandleScanResult_Call) RunAndReturn ¶
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) LoadComponents ¶ added in v0.5.14
func (_m *ScanComponentRepository) LoadComponents(tx *gorm.DB, asset models.Asset, scanType string, version string) ([]models.ComponentDependency, error)
LoadComponents 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) LoadComponents ¶ added in v0.5.14
func (_e *ScanComponentRepository_Expecter) LoadComponents(tx interface{}, asset interface{}, scanType interface{}, version interface{}) *ScanComponentRepository_LoadComponents_Call
LoadComponents 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_LoadComponents_Call ¶ added in v0.5.14
ScanComponentRepository_LoadComponents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadComponents'
func (*ScanComponentRepository_LoadComponents_Call) Return ¶ added in v0.5.14
func (_c *ScanComponentRepository_LoadComponents_Call) Return(_a0 []models.ComponentDependency, _a1 error) *ScanComponentRepository_LoadComponents_Call
func (*ScanComponentRepository_LoadComponents_Call) Run ¶ added in v0.5.14
func (_c *ScanComponentRepository_LoadComponents_Call) Run(run func(tx *gorm.DB, asset models.Asset, scanType string, version string)) *ScanComponentRepository_LoadComponents_Call
func (*ScanComponentRepository_LoadComponents_Call) RunAndReturn ¶ added in v0.5.14
func (_c *ScanComponentRepository_LoadComponents_Call) RunAndReturn(run func(*gorm.DB, models.Asset, string, string) ([]models.ComponentDependency, error)) *ScanComponentRepository_LoadComponents_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 ScanStatisticsService ¶ added in v0.5.14
ScanStatisticsService is an autogenerated mock type for the statisticsService type
func NewScanStatisticsService ¶ added in v0.5.14
func NewScanStatisticsService(t interface {
mock.TestingT
Cleanup(func())
}) *ScanStatisticsService
NewScanStatisticsService creates a new instance of ScanStatisticsService. 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 (*ScanStatisticsService) EXPECT ¶ added in v0.5.14
func (_m *ScanStatisticsService) EXPECT() *ScanStatisticsService_Expecter
func (*ScanStatisticsService) UpdateAssetRiskAggregation ¶ added in v0.5.14
func (_m *ScanStatisticsService) UpdateAssetRiskAggregation(assetID uuid.UUID, begin time.Time, end time.Time, updateProject bool) error
UpdateAssetRiskAggregation provides a mock function with given fields: assetID, begin, end, updateProject
type ScanStatisticsService_Expecter ¶ added in v0.5.14
type ScanStatisticsService_Expecter struct {
// contains filtered or unexported fields
}
func (*ScanStatisticsService_Expecter) UpdateAssetRiskAggregation ¶ added in v0.5.14
func (_e *ScanStatisticsService_Expecter) UpdateAssetRiskAggregation(assetID interface{}, begin interface{}, end interface{}, updateProject interface{}) *ScanStatisticsService_UpdateAssetRiskAggregation_Call
UpdateAssetRiskAggregation is a helper method to define mock.On call
- assetID uuid.UUID
- begin time.Time
- end time.Time
- updateProject bool
type ScanStatisticsService_UpdateAssetRiskAggregation_Call ¶ added in v0.5.14
ScanStatisticsService_UpdateAssetRiskAggregation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateAssetRiskAggregation'
func (*ScanStatisticsService_UpdateAssetRiskAggregation_Call) Run ¶ added in v0.5.14
func (_c *ScanStatisticsService_UpdateAssetRiskAggregation_Call) Run(run func(assetID uuid.UUID, begin time.Time, end time.Time, updateProject bool)) *ScanStatisticsService_UpdateAssetRiskAggregation_Call
func (*ScanStatisticsService_UpdateAssetRiskAggregation_Call) RunAndReturn ¶ added in v0.5.14
func (_c *ScanStatisticsService_UpdateAssetRiskAggregation_Call) RunAndReturn(run func(uuid.UUID, time.Time, time.Time, bool) error) *ScanStatisticsService_UpdateAssetRiskAggregation_Call
type StatisticsAssetRepository ¶ added in v0.5.14
StatisticsAssetRepository is an autogenerated mock type for the assetRepository type
func NewStatisticsAssetRepository ¶ added in v0.5.14
func NewStatisticsAssetRepository(t interface {
mock.TestingT
Cleanup(func())
}) *StatisticsAssetRepository
NewStatisticsAssetRepository creates a new instance of StatisticsAssetRepository. 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 (*StatisticsAssetRepository) EXPECT ¶ added in v0.5.14
func (_m *StatisticsAssetRepository) EXPECT() *StatisticsAssetRepository_Expecter
func (*StatisticsAssetRepository) GetAllAssetsFromDB ¶ added in v0.5.14
func (_m *StatisticsAssetRepository) GetAllAssetsFromDB() ([]models.Asset, error)
GetAllAssetsFromDB provides a mock function with no fields
func (*StatisticsAssetRepository) GetByProjectID ¶ added in v0.5.14
GetByProjectID provides a mock function with given fields: projectID
type StatisticsAssetRepository_Expecter ¶ added in v0.5.14
type StatisticsAssetRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*StatisticsAssetRepository_Expecter) GetAllAssetsFromDB ¶ added in v0.5.14
func (_e *StatisticsAssetRepository_Expecter) GetAllAssetsFromDB() *StatisticsAssetRepository_GetAllAssetsFromDB_Call
GetAllAssetsFromDB is a helper method to define mock.On call
func (*StatisticsAssetRepository_Expecter) GetByProjectID ¶ added in v0.5.14
func (_e *StatisticsAssetRepository_Expecter) GetByProjectID(projectID interface{}) *StatisticsAssetRepository_GetByProjectID_Call
GetByProjectID is a helper method to define mock.On call
- projectID uuid.UUID
func (*StatisticsAssetRepository_Expecter) Save ¶ added in v0.5.14
func (_e *StatisticsAssetRepository_Expecter) Save(tx interface{}, asset interface{}) *StatisticsAssetRepository_Save_Call
Save is a helper method to define mock.On call
- tx *gorm.DB
- asset *models.Asset
type StatisticsAssetRepository_GetAllAssetsFromDB_Call ¶ added in v0.5.14
StatisticsAssetRepository_GetAllAssetsFromDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllAssetsFromDB'
func (*StatisticsAssetRepository_GetAllAssetsFromDB_Call) Return ¶ added in v0.5.14
func (_c *StatisticsAssetRepository_GetAllAssetsFromDB_Call) Return(_a0 []models.Asset, _a1 error) *StatisticsAssetRepository_GetAllAssetsFromDB_Call
func (*StatisticsAssetRepository_GetAllAssetsFromDB_Call) Run ¶ added in v0.5.14
func (_c *StatisticsAssetRepository_GetAllAssetsFromDB_Call) Run(run func()) *StatisticsAssetRepository_GetAllAssetsFromDB_Call
func (*StatisticsAssetRepository_GetAllAssetsFromDB_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsAssetRepository_GetAllAssetsFromDB_Call) RunAndReturn(run func() ([]models.Asset, error)) *StatisticsAssetRepository_GetAllAssetsFromDB_Call
type StatisticsAssetRepository_GetByProjectID_Call ¶ added in v0.5.14
StatisticsAssetRepository_GetByProjectID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByProjectID'
func (*StatisticsAssetRepository_GetByProjectID_Call) Return ¶ added in v0.5.14
func (_c *StatisticsAssetRepository_GetByProjectID_Call) Return(_a0 []models.Asset, _a1 error) *StatisticsAssetRepository_GetByProjectID_Call
func (*StatisticsAssetRepository_GetByProjectID_Call) Run ¶ added in v0.5.14
func (_c *StatisticsAssetRepository_GetByProjectID_Call) Run(run func(projectID uuid.UUID)) *StatisticsAssetRepository_GetByProjectID_Call
func (*StatisticsAssetRepository_GetByProjectID_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsAssetRepository_GetByProjectID_Call) RunAndReturn(run func(uuid.UUID) ([]models.Asset, error)) *StatisticsAssetRepository_GetByProjectID_Call
type StatisticsAssetRepository_Save_Call ¶ added in v0.5.14
StatisticsAssetRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*StatisticsAssetRepository_Save_Call) Return ¶ added in v0.5.14
func (_c *StatisticsAssetRepository_Save_Call) Return(_a0 error) *StatisticsAssetRepository_Save_Call
func (*StatisticsAssetRepository_Save_Call) Run ¶ added in v0.5.14
func (_c *StatisticsAssetRepository_Save_Call) Run(run func(tx *gorm.DB, asset *models.Asset)) *StatisticsAssetRepository_Save_Call
func (*StatisticsAssetRepository_Save_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsAssetRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.Asset) error) *StatisticsAssetRepository_Save_Call
type StatisticsAssetRiskHistoryRepository ¶ added in v0.5.14
StatisticsAssetRiskHistoryRepository is an autogenerated mock type for the assetRiskHistoryRepository type
func NewStatisticsAssetRiskHistoryRepository ¶ added in v0.5.14
func NewStatisticsAssetRiskHistoryRepository(t interface {
mock.TestingT
Cleanup(func())
}) *StatisticsAssetRiskHistoryRepository
NewStatisticsAssetRiskHistoryRepository creates a new instance of StatisticsAssetRiskHistoryRepository. 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 (*StatisticsAssetRiskHistoryRepository) EXPECT ¶ added in v0.5.14
func (_m *StatisticsAssetRiskHistoryRepository) EXPECT() *StatisticsAssetRiskHistoryRepository_Expecter
func (*StatisticsAssetRiskHistoryRepository) GetRiskHistory ¶ added in v0.5.14
func (_m *StatisticsAssetRiskHistoryRepository) GetRiskHistory(assetId uuid.UUID, start time.Time, end time.Time) ([]models.AssetRiskHistory, error)
GetRiskHistory provides a mock function with given fields: assetId, start, end
func (*StatisticsAssetRiskHistoryRepository) GetRiskHistoryByProject ¶ added in v0.5.14
func (_m *StatisticsAssetRiskHistoryRepository) GetRiskHistoryByProject(projectId uuid.UUID, day time.Time) ([]models.AssetRiskHistory, error)
GetRiskHistoryByProject provides a mock function with given fields: projectId, day
func (*StatisticsAssetRiskHistoryRepository) UpdateRiskAggregation ¶ added in v0.5.14
func (_m *StatisticsAssetRiskHistoryRepository) UpdateRiskAggregation(assetRisk *models.AssetRiskHistory) error
UpdateRiskAggregation provides a mock function with given fields: assetRisk
type StatisticsAssetRiskHistoryRepository_Expecter ¶ added in v0.5.14
type StatisticsAssetRiskHistoryRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*StatisticsAssetRiskHistoryRepository_Expecter) GetRiskHistory ¶ added in v0.5.14
func (_e *StatisticsAssetRiskHistoryRepository_Expecter) GetRiskHistory(assetId interface{}, start interface{}, end interface{}) *StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call
GetRiskHistory is a helper method to define mock.On call
- assetId uuid.UUID
- start time.Time
- end time.Time
func (*StatisticsAssetRiskHistoryRepository_Expecter) GetRiskHistoryByProject ¶ added in v0.5.14
func (_e *StatisticsAssetRiskHistoryRepository_Expecter) GetRiskHistoryByProject(projectId interface{}, day interface{}) *StatisticsAssetRiskHistoryRepository_GetRiskHistoryByProject_Call
GetRiskHistoryByProject is a helper method to define mock.On call
- projectId uuid.UUID
- day time.Time
func (*StatisticsAssetRiskHistoryRepository_Expecter) UpdateRiskAggregation ¶ added in v0.5.14
func (_e *StatisticsAssetRiskHistoryRepository_Expecter) UpdateRiskAggregation(assetRisk interface{}) *StatisticsAssetRiskHistoryRepository_UpdateRiskAggregation_Call
UpdateRiskAggregation is a helper method to define mock.On call
- assetRisk *models.AssetRiskHistory
type StatisticsAssetRiskHistoryRepository_GetRiskHistoryByProject_Call ¶ added in v0.5.14
StatisticsAssetRiskHistoryRepository_GetRiskHistoryByProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRiskHistoryByProject'
func (*StatisticsAssetRiskHistoryRepository_GetRiskHistoryByProject_Call) Run ¶ added in v0.5.14
func (_c *StatisticsAssetRiskHistoryRepository_GetRiskHistoryByProject_Call) Run(run func(projectId uuid.UUID, day time.Time)) *StatisticsAssetRiskHistoryRepository_GetRiskHistoryByProject_Call
func (*StatisticsAssetRiskHistoryRepository_GetRiskHistoryByProject_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsAssetRiskHistoryRepository_GetRiskHistoryByProject_Call) RunAndReturn(run func(uuid.UUID, time.Time) ([]models.AssetRiskHistory, error)) *StatisticsAssetRiskHistoryRepository_GetRiskHistoryByProject_Call
type StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call ¶ added in v0.5.14
StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRiskHistory'
func (*StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call) Return ¶ added in v0.5.14
func (_c *StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call) Return(_a0 []models.AssetRiskHistory, _a1 error) *StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call
func (*StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call) Run ¶ added in v0.5.14
func (_c *StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call) Run(run func(assetId uuid.UUID, start time.Time, end time.Time)) *StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call
func (*StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call) RunAndReturn(run func(uuid.UUID, time.Time, time.Time) ([]models.AssetRiskHistory, error)) *StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call
type StatisticsAssetRiskHistoryRepository_UpdateRiskAggregation_Call ¶ added in v0.5.14
StatisticsAssetRiskHistoryRepository_UpdateRiskAggregation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRiskAggregation'
func (*StatisticsAssetRiskHistoryRepository_UpdateRiskAggregation_Call) Run ¶ added in v0.5.14
func (_c *StatisticsAssetRiskHistoryRepository_UpdateRiskAggregation_Call) Run(run func(assetRisk *models.AssetRiskHistory)) *StatisticsAssetRiskHistoryRepository_UpdateRiskAggregation_Call
func (*StatisticsAssetRiskHistoryRepository_UpdateRiskAggregation_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsAssetRiskHistoryRepository_UpdateRiskAggregation_Call) RunAndReturn(run func(*models.AssetRiskHistory) error) *StatisticsAssetRiskHistoryRepository_UpdateRiskAggregation_Call
type StatisticsAssetToProjectIdConverter ¶ added in v0.5.14
StatisticsAssetToProjectIdConverter is an autogenerated mock type for the assetToProjectIdConverter type
func NewStatisticsAssetToProjectIdConverter ¶ added in v0.5.14
func NewStatisticsAssetToProjectIdConverter(t interface {
mock.TestingT
Cleanup(func())
}) *StatisticsAssetToProjectIdConverter
NewStatisticsAssetToProjectIdConverter creates a new instance of StatisticsAssetToProjectIdConverter. 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 (*StatisticsAssetToProjectIdConverter) EXPECT ¶ added in v0.5.14
func (_m *StatisticsAssetToProjectIdConverter) EXPECT() *StatisticsAssetToProjectIdConverter_Expecter
func (*StatisticsAssetToProjectIdConverter) GetProjectIdByAssetID ¶ added in v0.5.14
func (_m *StatisticsAssetToProjectIdConverter) GetProjectIdByAssetID(assetID uuid.UUID) (uuid.UUID, error)
GetProjectIdByAssetID provides a mock function with given fields: assetID
type StatisticsAssetToProjectIdConverter_Expecter ¶ added in v0.5.14
type StatisticsAssetToProjectIdConverter_Expecter struct {
// contains filtered or unexported fields
}
func (*StatisticsAssetToProjectIdConverter_Expecter) GetProjectIdByAssetID ¶ added in v0.5.14
func (_e *StatisticsAssetToProjectIdConverter_Expecter) GetProjectIdByAssetID(assetID interface{}) *StatisticsAssetToProjectIdConverter_GetProjectIdByAssetID_Call
GetProjectIdByAssetID is a helper method to define mock.On call
- assetID uuid.UUID
type StatisticsAssetToProjectIdConverter_GetProjectIdByAssetID_Call ¶ added in v0.5.14
StatisticsAssetToProjectIdConverter_GetProjectIdByAssetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProjectIdByAssetID'
func (*StatisticsAssetToProjectIdConverter_GetProjectIdByAssetID_Call) Run ¶ added in v0.5.14
func (_c *StatisticsAssetToProjectIdConverter_GetProjectIdByAssetID_Call) Run(run func(assetID uuid.UUID)) *StatisticsAssetToProjectIdConverter_GetProjectIdByAssetID_Call
func (*StatisticsAssetToProjectIdConverter_GetProjectIdByAssetID_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsAssetToProjectIdConverter_GetProjectIdByAssetID_Call) RunAndReturn(run func(uuid.UUID) (uuid.UUID, error)) *StatisticsAssetToProjectIdConverter_GetProjectIdByAssetID_Call
type StatisticsComponentRepository ¶ added in v0.5.14
StatisticsComponentRepository is an autogenerated mock type for the componentRepository type
func NewStatisticsComponentRepository ¶ added in v0.5.14
func NewStatisticsComponentRepository(t interface {
mock.TestingT
Cleanup(func())
}) *StatisticsComponentRepository
NewStatisticsComponentRepository creates a new instance of StatisticsComponentRepository. 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 (*StatisticsComponentRepository) EXPECT ¶ added in v0.5.14
func (_m *StatisticsComponentRepository) EXPECT() *StatisticsComponentRepository_Expecter
func (*StatisticsComponentRepository) GetDependencyCountPerScanType ¶ added in v0.5.14
func (_m *StatisticsComponentRepository) GetDependencyCountPerScanType(assetID uuid.UUID) (map[string]int, error)
GetDependencyCountPerScanType provides a mock function with given fields: assetID
type StatisticsComponentRepository_Expecter ¶ added in v0.5.14
type StatisticsComponentRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*StatisticsComponentRepository_Expecter) GetDependencyCountPerScanType ¶ added in v0.5.14
func (_e *StatisticsComponentRepository_Expecter) GetDependencyCountPerScanType(assetID interface{}) *StatisticsComponentRepository_GetDependencyCountPerScanType_Call
GetDependencyCountPerScanType is a helper method to define mock.On call
- assetID uuid.UUID
type StatisticsComponentRepository_GetDependencyCountPerScanType_Call ¶ added in v0.5.14
StatisticsComponentRepository_GetDependencyCountPerScanType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDependencyCountPerScanType'
func (*StatisticsComponentRepository_GetDependencyCountPerScanType_Call) Return ¶ added in v0.5.14
func (_c *StatisticsComponentRepository_GetDependencyCountPerScanType_Call) Return(_a0 map[string]int, _a1 error) *StatisticsComponentRepository_GetDependencyCountPerScanType_Call
func (*StatisticsComponentRepository_GetDependencyCountPerScanType_Call) Run ¶ added in v0.5.14
func (_c *StatisticsComponentRepository_GetDependencyCountPerScanType_Call) Run(run func(assetID uuid.UUID)) *StatisticsComponentRepository_GetDependencyCountPerScanType_Call
func (*StatisticsComponentRepository_GetDependencyCountPerScanType_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsComponentRepository_GetDependencyCountPerScanType_Call) RunAndReturn(run func(uuid.UUID) (map[string]int, error)) *StatisticsComponentRepository_GetDependencyCountPerScanType_Call
type StatisticsFlawRepository ¶ added in v0.5.14
StatisticsFlawRepository is an autogenerated mock type for the flawRepository type
func NewStatisticsFlawRepository ¶ added in v0.5.14
func NewStatisticsFlawRepository(t interface {
mock.TestingT
Cleanup(func())
}) *StatisticsFlawRepository
NewStatisticsFlawRepository creates a new instance of StatisticsFlawRepository. 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 (*StatisticsFlawRepository) EXPECT ¶ added in v0.5.14
func (_m *StatisticsFlawRepository) EXPECT() *StatisticsFlawRepository_Expecter
func (*StatisticsFlawRepository) GetAllFlawsByAssetID ¶ added in v0.5.14
func (_m *StatisticsFlawRepository) GetAllFlawsByAssetID(tx *gorm.DB, assetID uuid.UUID) ([]models.Flaw, error)
GetAllFlawsByAssetID provides a mock function with given fields: tx, assetID
func (*StatisticsFlawRepository) GetAllOpenFlawsByAssetID ¶ added in v0.5.14
func (_m *StatisticsFlawRepository) GetAllOpenFlawsByAssetID(tx *gorm.DB, assetID uuid.UUID) ([]models.Flaw, error)
GetAllOpenFlawsByAssetID provides a mock function with given fields: tx, assetID
type StatisticsFlawRepository_Expecter ¶ added in v0.5.14
type StatisticsFlawRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*StatisticsFlawRepository_Expecter) GetAllFlawsByAssetID ¶ added in v0.5.14
func (_e *StatisticsFlawRepository_Expecter) GetAllFlawsByAssetID(tx interface{}, assetID interface{}) *StatisticsFlawRepository_GetAllFlawsByAssetID_Call
GetAllFlawsByAssetID is a helper method to define mock.On call
- tx *gorm.DB
- assetID uuid.UUID
func (*StatisticsFlawRepository_Expecter) GetAllOpenFlawsByAssetID ¶ added in v0.5.14
func (_e *StatisticsFlawRepository_Expecter) GetAllOpenFlawsByAssetID(tx interface{}, assetID interface{}) *StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call
GetAllOpenFlawsByAssetID is a helper method to define mock.On call
- tx *gorm.DB
- assetID uuid.UUID
type StatisticsFlawRepository_GetAllFlawsByAssetID_Call ¶ added in v0.5.14
StatisticsFlawRepository_GetAllFlawsByAssetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllFlawsByAssetID'
func (*StatisticsFlawRepository_GetAllFlawsByAssetID_Call) Return ¶ added in v0.5.14
func (_c *StatisticsFlawRepository_GetAllFlawsByAssetID_Call) Return(_a0 []models.Flaw, _a1 error) *StatisticsFlawRepository_GetAllFlawsByAssetID_Call
func (*StatisticsFlawRepository_GetAllFlawsByAssetID_Call) Run ¶ added in v0.5.14
func (_c *StatisticsFlawRepository_GetAllFlawsByAssetID_Call) Run(run func(tx *gorm.DB, assetID uuid.UUID)) *StatisticsFlawRepository_GetAllFlawsByAssetID_Call
func (*StatisticsFlawRepository_GetAllFlawsByAssetID_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsFlawRepository_GetAllFlawsByAssetID_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) ([]models.Flaw, error)) *StatisticsFlawRepository_GetAllFlawsByAssetID_Call
type StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call ¶ added in v0.5.14
StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllOpenFlawsByAssetID'
func (*StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call) Return ¶ added in v0.5.14
func (_c *StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call) Return(_a0 []models.Flaw, _a1 error) *StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call
func (*StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call) Run ¶ added in v0.5.14
func (_c *StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call) Run(run func(tx *gorm.DB, assetID uuid.UUID)) *StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call
func (*StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) ([]models.Flaw, error)) *StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call
type StatisticsProjectRepository ¶ added in v0.5.14
StatisticsProjectRepository is an autogenerated mock type for the projectRepository type
func NewStatisticsProjectRepository ¶ added in v0.5.14
func NewStatisticsProjectRepository(t interface {
mock.TestingT
Cleanup(func())
}) *StatisticsProjectRepository
NewStatisticsProjectRepository creates a new instance of StatisticsProjectRepository. 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 (*StatisticsProjectRepository) EXPECT ¶ added in v0.5.14
func (_m *StatisticsProjectRepository) EXPECT() *StatisticsProjectRepository_Expecter
func (*StatisticsProjectRepository) GetByOrgID ¶ added in v0.5.14
func (_m *StatisticsProjectRepository) GetByOrgID(organizationID uuid.UUID) ([]models.Project, error)
GetByOrgID provides a mock function with given fields: organizationID
type StatisticsProjectRepository_Expecter ¶ added in v0.5.14
type StatisticsProjectRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*StatisticsProjectRepository_Expecter) GetByOrgID ¶ added in v0.5.14
func (_e *StatisticsProjectRepository_Expecter) GetByOrgID(organizationID interface{}) *StatisticsProjectRepository_GetByOrgID_Call
GetByOrgID is a helper method to define mock.On call
- organizationID uuid.UUID
type StatisticsProjectRepository_GetByOrgID_Call ¶ added in v0.5.14
StatisticsProjectRepository_GetByOrgID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByOrgID'
func (*StatisticsProjectRepository_GetByOrgID_Call) Return ¶ added in v0.5.14
func (_c *StatisticsProjectRepository_GetByOrgID_Call) Return(_a0 []models.Project, _a1 error) *StatisticsProjectRepository_GetByOrgID_Call
func (*StatisticsProjectRepository_GetByOrgID_Call) Run ¶ added in v0.5.14
func (_c *StatisticsProjectRepository_GetByOrgID_Call) Run(run func(organizationID uuid.UUID)) *StatisticsProjectRepository_GetByOrgID_Call
func (*StatisticsProjectRepository_GetByOrgID_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsProjectRepository_GetByOrgID_Call) RunAndReturn(run func(uuid.UUID) ([]models.Project, error)) *StatisticsProjectRepository_GetByOrgID_Call
type StatisticsProjectRiskHistoryRepository ¶ added in v0.5.14
StatisticsProjectRiskHistoryRepository is an autogenerated mock type for the projectRiskHistoryRepository type
func NewStatisticsProjectRiskHistoryRepository ¶ added in v0.5.14
func NewStatisticsProjectRiskHistoryRepository(t interface {
mock.TestingT
Cleanup(func())
}) *StatisticsProjectRiskHistoryRepository
NewStatisticsProjectRiskHistoryRepository creates a new instance of StatisticsProjectRiskHistoryRepository. 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 (*StatisticsProjectRiskHistoryRepository) EXPECT ¶ added in v0.5.14
func (_m *StatisticsProjectRiskHistoryRepository) EXPECT() *StatisticsProjectRiskHistoryRepository_Expecter
func (*StatisticsProjectRiskHistoryRepository) GetRiskHistory ¶ added in v0.5.14
func (_m *StatisticsProjectRiskHistoryRepository) GetRiskHistory(projectId uuid.UUID, start time.Time, end time.Time) ([]models.ProjectRiskHistory, error)
GetRiskHistory provides a mock function with given fields: projectId, start, end
func (*StatisticsProjectRiskHistoryRepository) UpdateRiskAggregation ¶ added in v0.5.14
func (_m *StatisticsProjectRiskHistoryRepository) UpdateRiskAggregation(projectRisk *models.ProjectRiskHistory) error
UpdateRiskAggregation provides a mock function with given fields: projectRisk
type StatisticsProjectRiskHistoryRepository_Expecter ¶ added in v0.5.14
type StatisticsProjectRiskHistoryRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*StatisticsProjectRiskHistoryRepository_Expecter) GetRiskHistory ¶ added in v0.5.14
func (_e *StatisticsProjectRiskHistoryRepository_Expecter) GetRiskHistory(projectId interface{}, start interface{}, end interface{}) *StatisticsProjectRiskHistoryRepository_GetRiskHistory_Call
GetRiskHistory is a helper method to define mock.On call
- projectId uuid.UUID
- start time.Time
- end time.Time
func (*StatisticsProjectRiskHistoryRepository_Expecter) UpdateRiskAggregation ¶ added in v0.5.14
func (_e *StatisticsProjectRiskHistoryRepository_Expecter) UpdateRiskAggregation(projectRisk interface{}) *StatisticsProjectRiskHistoryRepository_UpdateRiskAggregation_Call
UpdateRiskAggregation is a helper method to define mock.On call
- projectRisk *models.ProjectRiskHistory
type StatisticsProjectRiskHistoryRepository_GetRiskHistory_Call ¶ added in v0.5.14
StatisticsProjectRiskHistoryRepository_GetRiskHistory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRiskHistory'
func (*StatisticsProjectRiskHistoryRepository_GetRiskHistory_Call) Run ¶ added in v0.5.14
func (_c *StatisticsProjectRiskHistoryRepository_GetRiskHistory_Call) Run(run func(projectId uuid.UUID, start time.Time, end time.Time)) *StatisticsProjectRiskHistoryRepository_GetRiskHistory_Call
func (*StatisticsProjectRiskHistoryRepository_GetRiskHistory_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsProjectRiskHistoryRepository_GetRiskHistory_Call) RunAndReturn(run func(uuid.UUID, time.Time, time.Time) ([]models.ProjectRiskHistory, error)) *StatisticsProjectRiskHistoryRepository_GetRiskHistory_Call
type StatisticsProjectRiskHistoryRepository_UpdateRiskAggregation_Call ¶ added in v0.5.14
StatisticsProjectRiskHistoryRepository_UpdateRiskAggregation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRiskAggregation'
func (*StatisticsProjectRiskHistoryRepository_UpdateRiskAggregation_Call) Run ¶ added in v0.5.14
func (_c *StatisticsProjectRiskHistoryRepository_UpdateRiskAggregation_Call) Run(run func(projectRisk *models.ProjectRiskHistory)) *StatisticsProjectRiskHistoryRepository_UpdateRiskAggregation_Call
func (*StatisticsProjectRiskHistoryRepository_UpdateRiskAggregation_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsProjectRiskHistoryRepository_UpdateRiskAggregation_Call) RunAndReturn(run func(*models.ProjectRiskHistory) error) *StatisticsProjectRiskHistoryRepository_UpdateRiskAggregation_Call
type StatisticsProjectService ¶ added in v0.5.14
StatisticsProjectService is an autogenerated mock type for the projectService type
func NewStatisticsProjectService ¶ added in v0.5.14
func NewStatisticsProjectService(t interface {
mock.TestingT
Cleanup(func())
}) *StatisticsProjectService
NewStatisticsProjectService creates a new instance of StatisticsProjectService. 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 (*StatisticsProjectService) EXPECT ¶ added in v0.5.14
func (_m *StatisticsProjectService) EXPECT() *StatisticsProjectService_Expecter
func (*StatisticsProjectService) ListAllowedProjects ¶ added in v0.5.14
ListAllowedProjects provides a mock function with given fields: c
type StatisticsProjectService_Expecter ¶ added in v0.5.14
type StatisticsProjectService_Expecter struct {
// contains filtered or unexported fields
}
func (*StatisticsProjectService_Expecter) ListAllowedProjects ¶ added in v0.5.14
func (_e *StatisticsProjectService_Expecter) ListAllowedProjects(c interface{}) *StatisticsProjectService_ListAllowedProjects_Call
ListAllowedProjects is a helper method to define mock.On call
- c echo.Context
type StatisticsProjectService_ListAllowedProjects_Call ¶ added in v0.5.14
StatisticsProjectService_ListAllowedProjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAllowedProjects'
func (*StatisticsProjectService_ListAllowedProjects_Call) Return ¶ added in v0.5.14
func (_c *StatisticsProjectService_ListAllowedProjects_Call) Return(_a0 []models.Project, _a1 error) *StatisticsProjectService_ListAllowedProjects_Call
func (*StatisticsProjectService_ListAllowedProjects_Call) Run ¶ added in v0.5.14
func (_c *StatisticsProjectService_ListAllowedProjects_Call) Run(run func(c echo.Context)) *StatisticsProjectService_ListAllowedProjects_Call
func (*StatisticsProjectService_ListAllowedProjects_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsProjectService_ListAllowedProjects_Call) RunAndReturn(run func(echo.Context) ([]models.Project, error)) *StatisticsProjectService_ListAllowedProjects_Call
type StatisticsStatisticsRepository ¶ added in v0.5.14
StatisticsStatisticsRepository is an autogenerated mock type for the statisticsRepository type
func NewStatisticsStatisticsRepository ¶ added in v0.5.14
func NewStatisticsStatisticsRepository(t interface {
mock.TestingT
Cleanup(func())
}) *StatisticsStatisticsRepository
NewStatisticsStatisticsRepository creates a new instance of StatisticsStatisticsRepository. 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 (*StatisticsStatisticsRepository) AverageFixingTime ¶ added in v0.5.14
func (_m *StatisticsStatisticsRepository) AverageFixingTime(assetID uuid.UUID, riskIntervalStart float64, riskIntervalEnd float64) (time.Duration, error)
AverageFixingTime provides a mock function with given fields: assetID, riskIntervalStart, riskIntervalEnd
func (*StatisticsStatisticsRepository) EXPECT ¶ added in v0.5.14
func (_m *StatisticsStatisticsRepository) EXPECT() *StatisticsStatisticsRepository_Expecter
func (*StatisticsStatisticsRepository) GetAssetRiskDistribution ¶ added in v0.5.14
func (_m *StatisticsStatisticsRepository) GetAssetRiskDistribution(assetID uuid.UUID, assetName string) (models.AssetRiskDistribution, error)
GetAssetRiskDistribution provides a mock function with given fields: assetID, assetName
func (*StatisticsStatisticsRepository) GetFlawCountByScannerId ¶ added in v0.5.14
func (_m *StatisticsStatisticsRepository) GetFlawCountByScannerId(assetID uuid.UUID) (map[string]int, error)
GetFlawCountByScannerId provides a mock function with given fields: assetID
func (*StatisticsStatisticsRepository) TimeTravelFlawState ¶ added in v0.5.14
func (_m *StatisticsStatisticsRepository) TimeTravelFlawState(assetID uuid.UUID, _a1 time.Time) ([]models.Flaw, error)
TimeTravelFlawState provides a mock function with given fields: assetID, _a1
type StatisticsStatisticsRepository_AverageFixingTime_Call ¶ added in v0.5.14
StatisticsStatisticsRepository_AverageFixingTime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AverageFixingTime'
func (*StatisticsStatisticsRepository_AverageFixingTime_Call) Return ¶ added in v0.5.14
func (_c *StatisticsStatisticsRepository_AverageFixingTime_Call) Return(_a0 time.Duration, _a1 error) *StatisticsStatisticsRepository_AverageFixingTime_Call
func (*StatisticsStatisticsRepository_AverageFixingTime_Call) Run ¶ added in v0.5.14
func (_c *StatisticsStatisticsRepository_AverageFixingTime_Call) Run(run func(assetID uuid.UUID, riskIntervalStart float64, riskIntervalEnd float64)) *StatisticsStatisticsRepository_AverageFixingTime_Call
func (*StatisticsStatisticsRepository_AverageFixingTime_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsStatisticsRepository_AverageFixingTime_Call) RunAndReturn(run func(uuid.UUID, float64, float64) (time.Duration, error)) *StatisticsStatisticsRepository_AverageFixingTime_Call
type StatisticsStatisticsRepository_Expecter ¶ added in v0.5.14
type StatisticsStatisticsRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*StatisticsStatisticsRepository_Expecter) AverageFixingTime ¶ added in v0.5.14
func (_e *StatisticsStatisticsRepository_Expecter) AverageFixingTime(assetID interface{}, riskIntervalStart interface{}, riskIntervalEnd interface{}) *StatisticsStatisticsRepository_AverageFixingTime_Call
AverageFixingTime is a helper method to define mock.On call
- assetID uuid.UUID
- riskIntervalStart float64
- riskIntervalEnd float64
func (*StatisticsStatisticsRepository_Expecter) GetAssetRiskDistribution ¶ added in v0.5.14
func (_e *StatisticsStatisticsRepository_Expecter) GetAssetRiskDistribution(assetID interface{}, assetName interface{}) *StatisticsStatisticsRepository_GetAssetRiskDistribution_Call
GetAssetRiskDistribution is a helper method to define mock.On call
- assetID uuid.UUID
- assetName string
func (*StatisticsStatisticsRepository_Expecter) GetFlawCountByScannerId ¶ added in v0.5.14
func (_e *StatisticsStatisticsRepository_Expecter) GetFlawCountByScannerId(assetID interface{}) *StatisticsStatisticsRepository_GetFlawCountByScannerId_Call
GetFlawCountByScannerId is a helper method to define mock.On call
- assetID uuid.UUID
func (*StatisticsStatisticsRepository_Expecter) TimeTravelFlawState ¶ added in v0.5.14
func (_e *StatisticsStatisticsRepository_Expecter) TimeTravelFlawState(assetID interface{}, _a1 interface{}) *StatisticsStatisticsRepository_TimeTravelFlawState_Call
TimeTravelFlawState is a helper method to define mock.On call
- assetID uuid.UUID
- _a1 time.Time
type StatisticsStatisticsRepository_GetAssetRiskDistribution_Call ¶ added in v0.5.14
StatisticsStatisticsRepository_GetAssetRiskDistribution_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAssetRiskDistribution'
func (*StatisticsStatisticsRepository_GetAssetRiskDistribution_Call) Run ¶ added in v0.5.14
func (_c *StatisticsStatisticsRepository_GetAssetRiskDistribution_Call) Run(run func(assetID uuid.UUID, assetName string)) *StatisticsStatisticsRepository_GetAssetRiskDistribution_Call
func (*StatisticsStatisticsRepository_GetAssetRiskDistribution_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsStatisticsRepository_GetAssetRiskDistribution_Call) RunAndReturn(run func(uuid.UUID, string) (models.AssetRiskDistribution, error)) *StatisticsStatisticsRepository_GetAssetRiskDistribution_Call
type StatisticsStatisticsRepository_GetFlawCountByScannerId_Call ¶ added in v0.5.14
StatisticsStatisticsRepository_GetFlawCountByScannerId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFlawCountByScannerId'
func (*StatisticsStatisticsRepository_GetFlawCountByScannerId_Call) Return ¶ added in v0.5.14
func (_c *StatisticsStatisticsRepository_GetFlawCountByScannerId_Call) Return(_a0 map[string]int, _a1 error) *StatisticsStatisticsRepository_GetFlawCountByScannerId_Call
func (*StatisticsStatisticsRepository_GetFlawCountByScannerId_Call) Run ¶ added in v0.5.14
func (_c *StatisticsStatisticsRepository_GetFlawCountByScannerId_Call) Run(run func(assetID uuid.UUID)) *StatisticsStatisticsRepository_GetFlawCountByScannerId_Call
func (*StatisticsStatisticsRepository_GetFlawCountByScannerId_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsStatisticsRepository_GetFlawCountByScannerId_Call) RunAndReturn(run func(uuid.UUID) (map[string]int, error)) *StatisticsStatisticsRepository_GetFlawCountByScannerId_Call
type StatisticsStatisticsRepository_TimeTravelFlawState_Call ¶ added in v0.5.14
StatisticsStatisticsRepository_TimeTravelFlawState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TimeTravelFlawState'
func (*StatisticsStatisticsRepository_TimeTravelFlawState_Call) Return ¶ added in v0.5.14
func (_c *StatisticsStatisticsRepository_TimeTravelFlawState_Call) Return(_a0 []models.Flaw, _a1 error) *StatisticsStatisticsRepository_TimeTravelFlawState_Call
func (*StatisticsStatisticsRepository_TimeTravelFlawState_Call) Run ¶ added in v0.5.14
func (_c *StatisticsStatisticsRepository_TimeTravelFlawState_Call) Run(run func(assetID uuid.UUID, _a1 time.Time)) *StatisticsStatisticsRepository_TimeTravelFlawState_Call
func (*StatisticsStatisticsRepository_TimeTravelFlawState_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsStatisticsRepository_TimeTravelFlawState_Call) RunAndReturn(run func(uuid.UUID, time.Time) ([]models.Flaw, error)) *StatisticsStatisticsRepository_TimeTravelFlawState_Call
type StatisticsStatisticsService ¶ added in v0.5.14
StatisticsStatisticsService is an autogenerated mock type for the statisticsService type
func NewStatisticsStatisticsService ¶ added in v0.5.14
func NewStatisticsStatisticsService(t interface {
mock.TestingT
Cleanup(func())
}) *StatisticsStatisticsService
NewStatisticsStatisticsService creates a new instance of StatisticsStatisticsService. 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 (*StatisticsStatisticsService) EXPECT ¶ added in v0.5.14
func (_m *StatisticsStatisticsService) EXPECT() *StatisticsStatisticsService_Expecter
func (*StatisticsStatisticsService) GetAssetRiskDistribution ¶ added in v0.5.14
func (_m *StatisticsStatisticsService) GetAssetRiskDistribution(assetID uuid.UUID, assetName string) (models.AssetRiskDistribution, error)
GetAssetRiskDistribution provides a mock function with given fields: assetID, assetName
func (*StatisticsStatisticsService) GetAssetRiskHistory ¶ added in v0.5.14
func (_m *StatisticsStatisticsService) GetAssetRiskHistory(assetID uuid.UUID, start time.Time, end time.Time) ([]models.AssetRiskHistory, error)
GetAssetRiskHistory provides a mock function with given fields: assetID, start, end
func (*StatisticsStatisticsService) GetAverageFixingTime ¶ added in v0.5.14
func (_m *StatisticsStatisticsService) GetAverageFixingTime(assetID uuid.UUID, severity string) (time.Duration, error)
GetAverageFixingTime provides a mock function with given fields: assetID, severity
func (*StatisticsStatisticsService) GetComponentRisk ¶ added in v0.5.14
func (_m *StatisticsStatisticsService) GetComponentRisk(assetID uuid.UUID) (map[string]float64, error)
GetComponentRisk provides a mock function with given fields: assetID
func (*StatisticsStatisticsService) GetDependencyCountPerScanType ¶ added in v0.5.14
func (_m *StatisticsStatisticsService) GetDependencyCountPerScanType(assetID uuid.UUID) (map[string]int, error)
GetDependencyCountPerScanType provides a mock function with given fields: assetID
func (*StatisticsStatisticsService) GetFlawAggregationStateAndChangeSince ¶ added in v0.5.14
func (_m *StatisticsStatisticsService) GetFlawAggregationStateAndChangeSince(assetID uuid.UUID, calculateChangeTo time.Time) (statistics.FlawAggregationStateAndChange, error)
GetFlawAggregationStateAndChangeSince provides a mock function with given fields: assetID, calculateChangeTo
func (*StatisticsStatisticsService) GetFlawCountByScannerId ¶ added in v0.5.14
func (_m *StatisticsStatisticsService) GetFlawCountByScannerId(assetID uuid.UUID) (map[string]int, error)
GetFlawCountByScannerId provides a mock function with given fields: assetID
func (*StatisticsStatisticsService) GetProjectRiskHistory ¶ added in v0.5.14
func (_m *StatisticsStatisticsService) GetProjectRiskHistory(projectID uuid.UUID, start time.Time, end time.Time) ([]models.ProjectRiskHistory, error)
GetProjectRiskHistory provides a mock function with given fields: projectID, start, end
func (*StatisticsStatisticsService) UpdateAssetRiskAggregation ¶ added in v0.5.14
func (_m *StatisticsStatisticsService) UpdateAssetRiskAggregation(assetID uuid.UUID, start time.Time, end time.Time, updateProject bool) error
UpdateAssetRiskAggregation provides a mock function with given fields: assetID, start, end, updateProject
type StatisticsStatisticsService_Expecter ¶ added in v0.5.14
type StatisticsStatisticsService_Expecter struct {
// contains filtered or unexported fields
}
func (*StatisticsStatisticsService_Expecter) GetAssetRiskDistribution ¶ added in v0.5.14
func (_e *StatisticsStatisticsService_Expecter) GetAssetRiskDistribution(assetID interface{}, assetName interface{}) *StatisticsStatisticsService_GetAssetRiskDistribution_Call
GetAssetRiskDistribution is a helper method to define mock.On call
- assetID uuid.UUID
- assetName string
func (*StatisticsStatisticsService_Expecter) GetAssetRiskHistory ¶ added in v0.5.14
func (_e *StatisticsStatisticsService_Expecter) GetAssetRiskHistory(assetID interface{}, start interface{}, end interface{}) *StatisticsStatisticsService_GetAssetRiskHistory_Call
GetAssetRiskHistory is a helper method to define mock.On call
- assetID uuid.UUID
- start time.Time
- end time.Time
func (*StatisticsStatisticsService_Expecter) GetAverageFixingTime ¶ added in v0.5.14
func (_e *StatisticsStatisticsService_Expecter) GetAverageFixingTime(assetID interface{}, severity interface{}) *StatisticsStatisticsService_GetAverageFixingTime_Call
GetAverageFixingTime is a helper method to define mock.On call
- assetID uuid.UUID
- severity string
func (*StatisticsStatisticsService_Expecter) GetComponentRisk ¶ added in v0.5.14
func (_e *StatisticsStatisticsService_Expecter) GetComponentRisk(assetID interface{}) *StatisticsStatisticsService_GetComponentRisk_Call
GetComponentRisk is a helper method to define mock.On call
- assetID uuid.UUID
func (*StatisticsStatisticsService_Expecter) GetDependencyCountPerScanType ¶ added in v0.5.14
func (_e *StatisticsStatisticsService_Expecter) GetDependencyCountPerScanType(assetID interface{}) *StatisticsStatisticsService_GetDependencyCountPerScanType_Call
GetDependencyCountPerScanType is a helper method to define mock.On call
- assetID uuid.UUID
func (*StatisticsStatisticsService_Expecter) GetFlawAggregationStateAndChangeSince ¶ added in v0.5.14
func (_e *StatisticsStatisticsService_Expecter) GetFlawAggregationStateAndChangeSince(assetID interface{}, calculateChangeTo interface{}) *StatisticsStatisticsService_GetFlawAggregationStateAndChangeSince_Call
GetFlawAggregationStateAndChangeSince is a helper method to define mock.On call
- assetID uuid.UUID
- calculateChangeTo time.Time
func (*StatisticsStatisticsService_Expecter) GetFlawCountByScannerId ¶ added in v0.5.14
func (_e *StatisticsStatisticsService_Expecter) GetFlawCountByScannerId(assetID interface{}) *StatisticsStatisticsService_GetFlawCountByScannerId_Call
GetFlawCountByScannerId is a helper method to define mock.On call
- assetID uuid.UUID
func (*StatisticsStatisticsService_Expecter) GetProjectRiskHistory ¶ added in v0.5.14
func (_e *StatisticsStatisticsService_Expecter) GetProjectRiskHistory(projectID interface{}, start interface{}, end interface{}) *StatisticsStatisticsService_GetProjectRiskHistory_Call
GetProjectRiskHistory is a helper method to define mock.On call
- projectID uuid.UUID
- start time.Time
- end time.Time
func (*StatisticsStatisticsService_Expecter) UpdateAssetRiskAggregation ¶ added in v0.5.14
func (_e *StatisticsStatisticsService_Expecter) UpdateAssetRiskAggregation(assetID interface{}, start interface{}, end interface{}, updateProject interface{}) *StatisticsStatisticsService_UpdateAssetRiskAggregation_Call
UpdateAssetRiskAggregation is a helper method to define mock.On call
- assetID uuid.UUID
- start time.Time
- end time.Time
- updateProject bool
type StatisticsStatisticsService_GetAssetRiskDistribution_Call ¶ added in v0.5.14
StatisticsStatisticsService_GetAssetRiskDistribution_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAssetRiskDistribution'
func (*StatisticsStatisticsService_GetAssetRiskDistribution_Call) Run ¶ added in v0.5.14
func (_c *StatisticsStatisticsService_GetAssetRiskDistribution_Call) Run(run func(assetID uuid.UUID, assetName string)) *StatisticsStatisticsService_GetAssetRiskDistribution_Call
func (*StatisticsStatisticsService_GetAssetRiskDistribution_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsStatisticsService_GetAssetRiskDistribution_Call) RunAndReturn(run func(uuid.UUID, string) (models.AssetRiskDistribution, error)) *StatisticsStatisticsService_GetAssetRiskDistribution_Call
type StatisticsStatisticsService_GetAssetRiskHistory_Call ¶ added in v0.5.14
StatisticsStatisticsService_GetAssetRiskHistory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAssetRiskHistory'
func (*StatisticsStatisticsService_GetAssetRiskHistory_Call) Return ¶ added in v0.5.14
func (_c *StatisticsStatisticsService_GetAssetRiskHistory_Call) Return(_a0 []models.AssetRiskHistory, _a1 error) *StatisticsStatisticsService_GetAssetRiskHistory_Call
func (*StatisticsStatisticsService_GetAssetRiskHistory_Call) Run ¶ added in v0.5.14
func (_c *StatisticsStatisticsService_GetAssetRiskHistory_Call) Run(run func(assetID uuid.UUID, start time.Time, end time.Time)) *StatisticsStatisticsService_GetAssetRiskHistory_Call
func (*StatisticsStatisticsService_GetAssetRiskHistory_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsStatisticsService_GetAssetRiskHistory_Call) RunAndReturn(run func(uuid.UUID, time.Time, time.Time) ([]models.AssetRiskHistory, error)) *StatisticsStatisticsService_GetAssetRiskHistory_Call
type StatisticsStatisticsService_GetAverageFixingTime_Call ¶ added in v0.5.14
StatisticsStatisticsService_GetAverageFixingTime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAverageFixingTime'
func (*StatisticsStatisticsService_GetAverageFixingTime_Call) Return ¶ added in v0.5.14
func (_c *StatisticsStatisticsService_GetAverageFixingTime_Call) Return(_a0 time.Duration, _a1 error) *StatisticsStatisticsService_GetAverageFixingTime_Call
func (*StatisticsStatisticsService_GetAverageFixingTime_Call) Run ¶ added in v0.5.14
func (_c *StatisticsStatisticsService_GetAverageFixingTime_Call) Run(run func(assetID uuid.UUID, severity string)) *StatisticsStatisticsService_GetAverageFixingTime_Call
func (*StatisticsStatisticsService_GetAverageFixingTime_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsStatisticsService_GetAverageFixingTime_Call) RunAndReturn(run func(uuid.UUID, string) (time.Duration, error)) *StatisticsStatisticsService_GetAverageFixingTime_Call
type StatisticsStatisticsService_GetComponentRisk_Call ¶ added in v0.5.14
StatisticsStatisticsService_GetComponentRisk_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetComponentRisk'
func (*StatisticsStatisticsService_GetComponentRisk_Call) Return ¶ added in v0.5.14
func (_c *StatisticsStatisticsService_GetComponentRisk_Call) Return(_a0 map[string]float64, _a1 error) *StatisticsStatisticsService_GetComponentRisk_Call
func (*StatisticsStatisticsService_GetComponentRisk_Call) Run ¶ added in v0.5.14
func (_c *StatisticsStatisticsService_GetComponentRisk_Call) Run(run func(assetID uuid.UUID)) *StatisticsStatisticsService_GetComponentRisk_Call
func (*StatisticsStatisticsService_GetComponentRisk_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsStatisticsService_GetComponentRisk_Call) RunAndReturn(run func(uuid.UUID) (map[string]float64, error)) *StatisticsStatisticsService_GetComponentRisk_Call
type StatisticsStatisticsService_GetDependencyCountPerScanType_Call ¶ added in v0.5.14
StatisticsStatisticsService_GetDependencyCountPerScanType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDependencyCountPerScanType'
func (*StatisticsStatisticsService_GetDependencyCountPerScanType_Call) Return ¶ added in v0.5.14
func (_c *StatisticsStatisticsService_GetDependencyCountPerScanType_Call) Return(_a0 map[string]int, _a1 error) *StatisticsStatisticsService_GetDependencyCountPerScanType_Call
func (*StatisticsStatisticsService_GetDependencyCountPerScanType_Call) Run ¶ added in v0.5.14
func (_c *StatisticsStatisticsService_GetDependencyCountPerScanType_Call) Run(run func(assetID uuid.UUID)) *StatisticsStatisticsService_GetDependencyCountPerScanType_Call
func (*StatisticsStatisticsService_GetDependencyCountPerScanType_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsStatisticsService_GetDependencyCountPerScanType_Call) RunAndReturn(run func(uuid.UUID) (map[string]int, error)) *StatisticsStatisticsService_GetDependencyCountPerScanType_Call
type StatisticsStatisticsService_GetFlawAggregationStateAndChangeSince_Call ¶ added in v0.5.14
StatisticsStatisticsService_GetFlawAggregationStateAndChangeSince_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFlawAggregationStateAndChangeSince'
func (*StatisticsStatisticsService_GetFlawAggregationStateAndChangeSince_Call) Return ¶ added in v0.5.14
func (*StatisticsStatisticsService_GetFlawAggregationStateAndChangeSince_Call) Run ¶ added in v0.5.14
func (_c *StatisticsStatisticsService_GetFlawAggregationStateAndChangeSince_Call) Run(run func(assetID uuid.UUID, calculateChangeTo time.Time)) *StatisticsStatisticsService_GetFlawAggregationStateAndChangeSince_Call
func (*StatisticsStatisticsService_GetFlawAggregationStateAndChangeSince_Call) RunAndReturn ¶ added in v0.5.14
type StatisticsStatisticsService_GetFlawCountByScannerId_Call ¶ added in v0.5.14
StatisticsStatisticsService_GetFlawCountByScannerId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFlawCountByScannerId'
func (*StatisticsStatisticsService_GetFlawCountByScannerId_Call) Return ¶ added in v0.5.14
func (_c *StatisticsStatisticsService_GetFlawCountByScannerId_Call) Return(_a0 map[string]int, _a1 error) *StatisticsStatisticsService_GetFlawCountByScannerId_Call
func (*StatisticsStatisticsService_GetFlawCountByScannerId_Call) Run ¶ added in v0.5.14
func (_c *StatisticsStatisticsService_GetFlawCountByScannerId_Call) Run(run func(assetID uuid.UUID)) *StatisticsStatisticsService_GetFlawCountByScannerId_Call
func (*StatisticsStatisticsService_GetFlawCountByScannerId_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsStatisticsService_GetFlawCountByScannerId_Call) RunAndReturn(run func(uuid.UUID) (map[string]int, error)) *StatisticsStatisticsService_GetFlawCountByScannerId_Call
type StatisticsStatisticsService_GetProjectRiskHistory_Call ¶ added in v0.5.14
StatisticsStatisticsService_GetProjectRiskHistory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProjectRiskHistory'
func (*StatisticsStatisticsService_GetProjectRiskHistory_Call) Return ¶ added in v0.5.14
func (_c *StatisticsStatisticsService_GetProjectRiskHistory_Call) Return(_a0 []models.ProjectRiskHistory, _a1 error) *StatisticsStatisticsService_GetProjectRiskHistory_Call
func (*StatisticsStatisticsService_GetProjectRiskHistory_Call) Run ¶ added in v0.5.14
func (_c *StatisticsStatisticsService_GetProjectRiskHistory_Call) Run(run func(projectID uuid.UUID, start time.Time, end time.Time)) *StatisticsStatisticsService_GetProjectRiskHistory_Call
func (*StatisticsStatisticsService_GetProjectRiskHistory_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsStatisticsService_GetProjectRiskHistory_Call) RunAndReturn(run func(uuid.UUID, time.Time, time.Time) ([]models.ProjectRiskHistory, error)) *StatisticsStatisticsService_GetProjectRiskHistory_Call
type StatisticsStatisticsService_UpdateAssetRiskAggregation_Call ¶ added in v0.5.14
StatisticsStatisticsService_UpdateAssetRiskAggregation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateAssetRiskAggregation'
func (*StatisticsStatisticsService_UpdateAssetRiskAggregation_Call) Run ¶ added in v0.5.14
func (_c *StatisticsStatisticsService_UpdateAssetRiskAggregation_Call) Run(run func(assetID uuid.UUID, start time.Time, end time.Time, updateProject bool)) *StatisticsStatisticsService_UpdateAssetRiskAggregation_Call
func (*StatisticsStatisticsService_UpdateAssetRiskAggregation_Call) RunAndReturn ¶ added in v0.5.14
func (_c *StatisticsStatisticsService_UpdateAssetRiskAggregation_Call) RunAndReturn(run func(uuid.UUID, time.Time, time.Time, bool) error) *StatisticsStatisticsService_UpdateAssetRiskAggregation_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 VulndbAffectedComponentsRepository ¶ added in v0.5.14
VulndbAffectedComponentsRepository is an autogenerated mock type for the affectedComponentsRepository type
func NewVulndbAffectedComponentsRepository ¶ added in v0.5.14
func NewVulndbAffectedComponentsRepository(t interface {
mock.TestingT
Cleanup(func())
}) *VulndbAffectedComponentsRepository
NewVulndbAffectedComponentsRepository creates a new instance of VulndbAffectedComponentsRepository. 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 (*VulndbAffectedComponentsRepository) EXPECT ¶ added in v0.5.14
func (_m *VulndbAffectedComponentsRepository) EXPECT() *VulndbAffectedComponentsRepository_Expecter
func (*VulndbAffectedComponentsRepository) GetAllAffectedComponentsID ¶ added in v0.5.14
func (_m *VulndbAffectedComponentsRepository) GetAllAffectedComponentsID() ([]string, error)
GetAllAffectedComponentsID provides a mock function with no fields
func (*VulndbAffectedComponentsRepository) Save ¶ added in v0.5.14
func (_m *VulndbAffectedComponentsRepository) Save(tx *gorm.DB, affectedComponent *models.AffectedComponent) error
Save provides a mock function with given fields: tx, affectedComponent
func (*VulndbAffectedComponentsRepository) SaveBatch ¶ added in v0.5.14
func (_m *VulndbAffectedComponentsRepository) SaveBatch(tx *gorm.DB, affectedPkgs []models.AffectedComponent) error
SaveBatch provides a mock function with given fields: tx, affectedPkgs
type VulndbAffectedComponentsRepository_Expecter ¶ added in v0.5.14
type VulndbAffectedComponentsRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*VulndbAffectedComponentsRepository_Expecter) GetAllAffectedComponentsID ¶ added in v0.5.14
func (_e *VulndbAffectedComponentsRepository_Expecter) GetAllAffectedComponentsID() *VulndbAffectedComponentsRepository_GetAllAffectedComponentsID_Call
GetAllAffectedComponentsID is a helper method to define mock.On call
func (*VulndbAffectedComponentsRepository_Expecter) Save ¶ added in v0.5.14
func (_e *VulndbAffectedComponentsRepository_Expecter) Save(tx interface{}, affectedComponent interface{}) *VulndbAffectedComponentsRepository_Save_Call
Save is a helper method to define mock.On call
- tx *gorm.DB
- affectedComponent *models.AffectedComponent
func (*VulndbAffectedComponentsRepository_Expecter) SaveBatch ¶ added in v0.5.14
func (_e *VulndbAffectedComponentsRepository_Expecter) SaveBatch(tx interface{}, affectedPkgs interface{}) *VulndbAffectedComponentsRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx *gorm.DB
- affectedPkgs []models.AffectedComponent
type VulndbAffectedComponentsRepository_GetAllAffectedComponentsID_Call ¶ added in v0.5.14
VulndbAffectedComponentsRepository_GetAllAffectedComponentsID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllAffectedComponentsID'
func (*VulndbAffectedComponentsRepository_GetAllAffectedComponentsID_Call) Return ¶ added in v0.5.14
func (*VulndbAffectedComponentsRepository_GetAllAffectedComponentsID_Call) RunAndReturn ¶ added in v0.5.14
func (_c *VulndbAffectedComponentsRepository_GetAllAffectedComponentsID_Call) RunAndReturn(run func() ([]string, error)) *VulndbAffectedComponentsRepository_GetAllAffectedComponentsID_Call
type VulndbAffectedComponentsRepository_SaveBatch_Call ¶ added in v0.5.14
VulndbAffectedComponentsRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*VulndbAffectedComponentsRepository_SaveBatch_Call) Return ¶ added in v0.5.14
func (_c *VulndbAffectedComponentsRepository_SaveBatch_Call) Return(_a0 error) *VulndbAffectedComponentsRepository_SaveBatch_Call
func (*VulndbAffectedComponentsRepository_SaveBatch_Call) Run ¶ added in v0.5.14
func (_c *VulndbAffectedComponentsRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, affectedPkgs []models.AffectedComponent)) *VulndbAffectedComponentsRepository_SaveBatch_Call
func (*VulndbAffectedComponentsRepository_SaveBatch_Call) RunAndReturn ¶ added in v0.5.14
func (_c *VulndbAffectedComponentsRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.AffectedComponent) error) *VulndbAffectedComponentsRepository_SaveBatch_Call
type VulndbAffectedComponentsRepository_Save_Call ¶ added in v0.5.14
VulndbAffectedComponentsRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*VulndbAffectedComponentsRepository_Save_Call) Return ¶ added in v0.5.14
func (_c *VulndbAffectedComponentsRepository_Save_Call) Return(_a0 error) *VulndbAffectedComponentsRepository_Save_Call
func (*VulndbAffectedComponentsRepository_Save_Call) Run ¶ added in v0.5.14
func (_c *VulndbAffectedComponentsRepository_Save_Call) Run(run func(tx *gorm.DB, affectedComponent *models.AffectedComponent)) *VulndbAffectedComponentsRepository_Save_Call
func (*VulndbAffectedComponentsRepository_Save_Call) RunAndReturn ¶ added in v0.5.14
func (_c *VulndbAffectedComponentsRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.AffectedComponent) error) *VulndbAffectedComponentsRepository_Save_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) Activate ¶ added in v0.5.15
func (_m *VulndbCveRepository) Activate(tx *gorm.DB, id string) error
Activate provides a mock function with given fields: tx, id
func (*VulndbCveRepository) Begin ¶
func (_m *VulndbCveRepository) Begin() *gorm.DB
Begin provides a mock function with no 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 no 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_Activate_Call ¶ added in v0.5.15
VulndbCveRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*VulndbCveRepository_Activate_Call) Return ¶ added in v0.5.15
func (_c *VulndbCveRepository_Activate_Call) Return(_a0 error) *VulndbCveRepository_Activate_Call
func (*VulndbCveRepository_Activate_Call) Run ¶ added in v0.5.15
func (_c *VulndbCveRepository_Activate_Call) Run(run func(tx *gorm.DB, id string)) *VulndbCveRepository_Activate_Call
func (*VulndbCveRepository_Activate_Call) RunAndReturn ¶ added in v0.5.15
func (_c *VulndbCveRepository_Activate_Call) RunAndReturn(run func(*gorm.DB, string) error) *VulndbCveRepository_Activate_Call
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) Activate ¶ added in v0.5.15
func (_e *VulndbCveRepository_Expecter) Activate(tx interface{}, id interface{}) *VulndbCveRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx *gorm.DB
- id string
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 VulndbCvesRepository ¶ added in v0.5.14
VulndbCvesRepository is an autogenerated mock type for the cvesRepository type
func NewVulndbCvesRepository ¶ added in v0.5.14
func NewVulndbCvesRepository(t interface {
mock.TestingT
Cleanup(func())
}) *VulndbCvesRepository
NewVulndbCvesRepository creates a new instance of VulndbCvesRepository. 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 (*VulndbCvesRepository) Activate ¶ added in v0.5.15
func (_m *VulndbCvesRepository) Activate(tx *gorm.DB, id string) error
Activate provides a mock function with given fields: tx, id
func (*VulndbCvesRepository) Begin ¶ added in v0.5.14
func (_m *VulndbCvesRepository) Begin() *gorm.DB
Begin provides a mock function with no fields
func (*VulndbCvesRepository) Create ¶ added in v0.5.14
Create provides a mock function with given fields: tx, t
func (*VulndbCvesRepository) CreateBatch ¶ added in v0.5.14
CreateBatch provides a mock function with given fields: tx, ts
func (*VulndbCvesRepository) Delete ¶ added in v0.5.14
func (_m *VulndbCvesRepository) Delete(tx *gorm.DB, id string) error
Delete provides a mock function with given fields: tx, id
func (*VulndbCvesRepository) EXPECT ¶ added in v0.5.14
func (_m *VulndbCvesRepository) EXPECT() *VulndbCvesRepository_Expecter
func (*VulndbCvesRepository) GetAllCPEMatchesID ¶ added in v0.5.14
func (_m *VulndbCvesRepository) GetAllCPEMatchesID() ([]string, error)
GetAllCPEMatchesID provides a mock function with no fields
func (*VulndbCvesRepository) GetAllCVEsID ¶ added in v0.5.14
func (_m *VulndbCvesRepository) GetAllCVEsID() ([]string, error)
GetAllCVEsID provides a mock function with no fields
func (*VulndbCvesRepository) GetDB ¶ added in v0.5.14
func (_m *VulndbCvesRepository) GetDB(tx *gorm.DB) *gorm.DB
GetDB provides a mock function with given fields: tx
func (*VulndbCvesRepository) List ¶ added in v0.5.14
func (_m *VulndbCvesRepository) List(ids []string) ([]models.CVE, error)
List provides a mock function with given fields: ids
func (*VulndbCvesRepository) Read ¶ added in v0.5.14
func (_m *VulndbCvesRepository) Read(id string) (models.CVE, error)
Read provides a mock function with given fields: id
func (*VulndbCvesRepository) Save ¶ added in v0.5.14
Save provides a mock function with given fields: tx, cve
func (*VulndbCvesRepository) SaveBatch ¶ added in v0.5.14
SaveBatch provides a mock function with given fields: tx, ts
func (*VulndbCvesRepository) SaveBatchCPEMatch ¶ added in v0.5.14
SaveBatchCPEMatch provides a mock function with given fields: tx, matches
func (*VulndbCvesRepository) SaveCveAffectedComponents ¶ added in v0.5.14
func (_m *VulndbCvesRepository) SaveCveAffectedComponents(tx *gorm.DB, cveId string, affectedComponentHashes []string) error
SaveCveAffectedComponents provides a mock function with given fields: tx, cveId, affectedComponentHashes
func (*VulndbCvesRepository) Transaction ¶ added in v0.5.14
func (_m *VulndbCvesRepository) Transaction(_a0 func(*gorm.DB) error) error
Transaction provides a mock function with given fields: _a0
type VulndbCvesRepository_Activate_Call ¶ added in v0.5.15
VulndbCvesRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*VulndbCvesRepository_Activate_Call) Return ¶ added in v0.5.15
func (_c *VulndbCvesRepository_Activate_Call) Return(_a0 error) *VulndbCvesRepository_Activate_Call
func (*VulndbCvesRepository_Activate_Call) Run ¶ added in v0.5.15
func (_c *VulndbCvesRepository_Activate_Call) Run(run func(tx *gorm.DB, id string)) *VulndbCvesRepository_Activate_Call
func (*VulndbCvesRepository_Activate_Call) RunAndReturn ¶ added in v0.5.15
func (_c *VulndbCvesRepository_Activate_Call) RunAndReturn(run func(*gorm.DB, string) error) *VulndbCvesRepository_Activate_Call
type VulndbCvesRepository_Begin_Call ¶ added in v0.5.14
VulndbCvesRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*VulndbCvesRepository_Begin_Call) Return ¶ added in v0.5.14
func (_c *VulndbCvesRepository_Begin_Call) Return(_a0 *gorm.DB) *VulndbCvesRepository_Begin_Call
func (*VulndbCvesRepository_Begin_Call) Run ¶ added in v0.5.14
func (_c *VulndbCvesRepository_Begin_Call) Run(run func()) *VulndbCvesRepository_Begin_Call
func (*VulndbCvesRepository_Begin_Call) RunAndReturn ¶ added in v0.5.14
func (_c *VulndbCvesRepository_Begin_Call) RunAndReturn(run func() *gorm.DB) *VulndbCvesRepository_Begin_Call
type VulndbCvesRepository_CreateBatch_Call ¶ added in v0.5.14
VulndbCvesRepository_CreateBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBatch'
func (*VulndbCvesRepository_CreateBatch_Call) Return ¶ added in v0.5.14
func (_c *VulndbCvesRepository_CreateBatch_Call) Return(_a0 error) *VulndbCvesRepository_CreateBatch_Call
func (*VulndbCvesRepository_CreateBatch_Call) Run ¶ added in v0.5.14
func (_c *VulndbCvesRepository_CreateBatch_Call) Run(run func(tx *gorm.DB, ts []models.CVE)) *VulndbCvesRepository_CreateBatch_Call
func (*VulndbCvesRepository_CreateBatch_Call) RunAndReturn ¶ added in v0.5.14
func (_c *VulndbCvesRepository_CreateBatch_Call) RunAndReturn(run func(*gorm.DB, []models.CVE) error) *VulndbCvesRepository_CreateBatch_Call
type VulndbCvesRepository_Create_Call ¶ added in v0.5.14
VulndbCvesRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*VulndbCvesRepository_Create_Call) Return ¶ added in v0.5.14
func (_c *VulndbCvesRepository_Create_Call) Return(_a0 error) *VulndbCvesRepository_Create_Call
func (*VulndbCvesRepository_Create_Call) Run ¶ added in v0.5.14
func (_c *VulndbCvesRepository_Create_Call) Run(run func(tx *gorm.DB, t *models.CVE)) *VulndbCvesRepository_Create_Call
func (*VulndbCvesRepository_Create_Call) RunAndReturn ¶ added in v0.5.14
func (_c *VulndbCvesRepository_Create_Call) RunAndReturn(run func(*gorm.DB, *models.CVE) error) *VulndbCvesRepository_Create_Call
type VulndbCvesRepository_Delete_Call ¶ added in v0.5.14
VulndbCvesRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*VulndbCvesRepository_Delete_Call) Return ¶ added in v0.5.14
func (_c *VulndbCvesRepository_Delete_Call) Return(_a0 error) *VulndbCvesRepository_Delete_Call
func (*VulndbCvesRepository_Delete_Call) Run ¶ added in v0.5.14
func (_c *VulndbCvesRepository_Delete_Call) Run(run func(tx *gorm.DB, id string)) *VulndbCvesRepository_Delete_Call
func (*VulndbCvesRepository_Delete_Call) RunAndReturn ¶ added in v0.5.14
func (_c *VulndbCvesRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, string) error) *VulndbCvesRepository_Delete_Call
type VulndbCvesRepository_Expecter ¶ added in v0.5.14
type VulndbCvesRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*VulndbCvesRepository_Expecter) Activate ¶ added in v0.5.15
func (_e *VulndbCvesRepository_Expecter) Activate(tx interface{}, id interface{}) *VulndbCvesRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx *gorm.DB
- id string
func (*VulndbCvesRepository_Expecter) Begin ¶ added in v0.5.14
func (_e *VulndbCvesRepository_Expecter) Begin() *VulndbCvesRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*VulndbCvesRepository_Expecter) Create ¶ added in v0.5.14
func (_e *VulndbCvesRepository_Expecter) Create(tx interface{}, t interface{}) *VulndbCvesRepository_Create_Call
Create is a helper method to define mock.On call
- tx *gorm.DB
- t *models.CVE
func (*VulndbCvesRepository_Expecter) CreateBatch ¶ added in v0.5.14
func (_e *VulndbCvesRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *VulndbCvesRepository_CreateBatch_Call
CreateBatch is a helper method to define mock.On call
- tx *gorm.DB
- ts []models.CVE
func (*VulndbCvesRepository_Expecter) Delete ¶ added in v0.5.14
func (_e *VulndbCvesRepository_Expecter) Delete(tx interface{}, id interface{}) *VulndbCvesRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx *gorm.DB
- id string
func (*VulndbCvesRepository_Expecter) GetAllCPEMatchesID ¶ added in v0.5.14
func (_e *VulndbCvesRepository_Expecter) GetAllCPEMatchesID() *VulndbCvesRepository_GetAllCPEMatchesID_Call
GetAllCPEMatchesID is a helper method to define mock.On call
func (*VulndbCvesRepository_Expecter) GetAllCVEsID ¶ added in v0.5.14
func (_e *VulndbCvesRepository_Expecter) GetAllCVEsID() *VulndbCvesRepository_GetAllCVEsID_Call
GetAllCVEsID is a helper method to define mock.On call
func (*VulndbCvesRepository_Expecter) GetDB ¶ added in v0.5.14
func (_e *VulndbCvesRepository_Expecter) GetDB(tx interface{}) *VulndbCvesRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx *gorm.DB
func (*VulndbCvesRepository_Expecter) List ¶ added in v0.5.14
func (_e *VulndbCvesRepository_Expecter) List(ids interface{}) *VulndbCvesRepository_List_Call
List is a helper method to define mock.On call
- ids []string
func (*VulndbCvesRepository_Expecter) Read ¶ added in v0.5.14
func (_e *VulndbCvesRepository_Expecter) Read(id interface{}) *VulndbCvesRepository_Read_Call
Read is a helper method to define mock.On call
- id string
func (*VulndbCvesRepository_Expecter) Save ¶ added in v0.5.14
func (_e *VulndbCvesRepository_Expecter) Save(tx interface{}, cve interface{}) *VulndbCvesRepository_Save_Call
Save is a helper method to define mock.On call
- tx *gorm.DB
- cve *models.CVE
func (*VulndbCvesRepository_Expecter) SaveBatch ¶ added in v0.5.14
func (_e *VulndbCvesRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *VulndbCvesRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx *gorm.DB
- ts []models.CVE
func (*VulndbCvesRepository_Expecter) SaveBatchCPEMatch ¶ added in v0.5.14
func (_e *VulndbCvesRepository_Expecter) SaveBatchCPEMatch(tx interface{}, matches interface{}) *VulndbCvesRepository_SaveBatchCPEMatch_Call
SaveBatchCPEMatch is a helper method to define mock.On call
- tx *gorm.DB
- matches []models.CPEMatch
func (*VulndbCvesRepository_Expecter) SaveCveAffectedComponents ¶ added in v0.5.14
func (_e *VulndbCvesRepository_Expecter) SaveCveAffectedComponents(tx interface{}, cveId interface{}, affectedComponentHashes interface{}) *VulndbCvesRepository_SaveCveAffectedComponents_Call
SaveCveAffectedComponents is a helper method to define mock.On call
- tx *gorm.DB
- cveId string
- affectedComponentHashes []string
func (*VulndbCvesRepository_Expecter) Transaction ¶ added in v0.5.14
func (_e *VulndbCvesRepository_Expecter) Transaction(_a0 interface{}) *VulndbCvesRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- _a0 func(*gorm.DB) error
type VulndbCvesRepository_GetAllCPEMatchesID_Call ¶ added in v0.5.14
VulndbCvesRepository_GetAllCPEMatchesID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllCPEMatchesID'
func (*VulndbCvesRepository_GetAllCPEMatchesID_Call) Return ¶ added in v0.5.14
func (_c *VulndbCvesRepository_GetAllCPEMatchesID_Call) Return(_a0 []string, _a1 error) *VulndbCvesRepository_GetAllCPEMatchesID_Call
func (*VulndbCvesRepository_GetAllCPEMatchesID_Call) Run ¶ added in v0.5.14
func (_c *VulndbCvesRepository_GetAllCPEMatchesID_Call) Run(run func()) *VulndbCvesRepository_GetAllCPEMatchesID_Call
func (*VulndbCvesRepository_GetAllCPEMatchesID_Call) RunAndReturn ¶ added in v0.5.14
func (_c *VulndbCvesRepository_GetAllCPEMatchesID_Call) RunAndReturn(run func() ([]string, error)) *VulndbCvesRepository_GetAllCPEMatchesID_Call
type VulndbCvesRepository_GetAllCVEsID_Call ¶ added in v0.5.14
VulndbCvesRepository_GetAllCVEsID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllCVEsID'
func (*VulndbCvesRepository_GetAllCVEsID_Call) Return ¶ added in v0.5.14
func (_c *VulndbCvesRepository_GetAllCVEsID_Call) Return(_a0 []string, _a1 error) *VulndbCvesRepository_GetAllCVEsID_Call
func (*VulndbCvesRepository_GetAllCVEsID_Call) Run ¶ added in v0.5.14
func (_c *VulndbCvesRepository_GetAllCVEsID_Call) Run(run func()) *VulndbCvesRepository_GetAllCVEsID_Call
func (*VulndbCvesRepository_GetAllCVEsID_Call) RunAndReturn ¶ added in v0.5.14
func (_c *VulndbCvesRepository_GetAllCVEsID_Call) RunAndReturn(run func() ([]string, error)) *VulndbCvesRepository_GetAllCVEsID_Call
type VulndbCvesRepository_GetDB_Call ¶ added in v0.5.14
VulndbCvesRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*VulndbCvesRepository_GetDB_Call) Return ¶ added in v0.5.14
func (_c *VulndbCvesRepository_GetDB_Call) Return(_a0 *gorm.DB) *VulndbCvesRepository_GetDB_Call
func (*VulndbCvesRepository_GetDB_Call) Run ¶ added in v0.5.14
func (_c *VulndbCvesRepository_GetDB_Call) Run(run func(tx *gorm.DB)) *VulndbCvesRepository_GetDB_Call
func (*VulndbCvesRepository_GetDB_Call) RunAndReturn ¶ added in v0.5.14
func (_c *VulndbCvesRepository_GetDB_Call) RunAndReturn(run func(*gorm.DB) *gorm.DB) *VulndbCvesRepository_GetDB_Call
type VulndbCvesRepository_List_Call ¶ added in v0.5.14
VulndbCvesRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*VulndbCvesRepository_List_Call) Return ¶ added in v0.5.14
func (_c *VulndbCvesRepository_List_Call) Return(_a0 []models.CVE, _a1 error) *VulndbCvesRepository_List_Call
func (*VulndbCvesRepository_List_Call) Run ¶ added in v0.5.14
func (_c *VulndbCvesRepository_List_Call) Run(run func(ids []string)) *VulndbCvesRepository_List_Call
func (*VulndbCvesRepository_List_Call) RunAndReturn ¶ added in v0.5.14
func (_c *VulndbCvesRepository_List_Call) RunAndReturn(run func([]string) ([]models.CVE, error)) *VulndbCvesRepository_List_Call
type VulndbCvesRepository_Read_Call ¶ added in v0.5.14
VulndbCvesRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*VulndbCvesRepository_Read_Call) Return ¶ added in v0.5.14
func (_c *VulndbCvesRepository_Read_Call) Return(_a0 models.CVE, _a1 error) *VulndbCvesRepository_Read_Call
func (*VulndbCvesRepository_Read_Call) Run ¶ added in v0.5.14
func (_c *VulndbCvesRepository_Read_Call) Run(run func(id string)) *VulndbCvesRepository_Read_Call
func (*VulndbCvesRepository_Read_Call) RunAndReturn ¶ added in v0.5.14
func (_c *VulndbCvesRepository_Read_Call) RunAndReturn(run func(string) (models.CVE, error)) *VulndbCvesRepository_Read_Call
type VulndbCvesRepository_SaveBatchCPEMatch_Call ¶ added in v0.5.14
VulndbCvesRepository_SaveBatchCPEMatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatchCPEMatch'
func (*VulndbCvesRepository_SaveBatchCPEMatch_Call) Return ¶ added in v0.5.14
func (_c *VulndbCvesRepository_SaveBatchCPEMatch_Call) Return(_a0 error) *VulndbCvesRepository_SaveBatchCPEMatch_Call
func (*VulndbCvesRepository_SaveBatchCPEMatch_Call) Run ¶ added in v0.5.14
func (_c *VulndbCvesRepository_SaveBatchCPEMatch_Call) Run(run func(tx *gorm.DB, matches []models.CPEMatch)) *VulndbCvesRepository_SaveBatchCPEMatch_Call
func (*VulndbCvesRepository_SaveBatchCPEMatch_Call) RunAndReturn ¶ added in v0.5.14
func (_c *VulndbCvesRepository_SaveBatchCPEMatch_Call) RunAndReturn(run func(*gorm.DB, []models.CPEMatch) error) *VulndbCvesRepository_SaveBatchCPEMatch_Call
type VulndbCvesRepository_SaveBatch_Call ¶ added in v0.5.14
VulndbCvesRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*VulndbCvesRepository_SaveBatch_Call) Return ¶ added in v0.5.14
func (_c *VulndbCvesRepository_SaveBatch_Call) Return(_a0 error) *VulndbCvesRepository_SaveBatch_Call
func (*VulndbCvesRepository_SaveBatch_Call) Run ¶ added in v0.5.14
func (_c *VulndbCvesRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, ts []models.CVE)) *VulndbCvesRepository_SaveBatch_Call
func (*VulndbCvesRepository_SaveBatch_Call) RunAndReturn ¶ added in v0.5.14
func (_c *VulndbCvesRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.CVE) error) *VulndbCvesRepository_SaveBatch_Call
type VulndbCvesRepository_SaveCveAffectedComponents_Call ¶ added in v0.5.14
VulndbCvesRepository_SaveCveAffectedComponents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveCveAffectedComponents'
func (*VulndbCvesRepository_SaveCveAffectedComponents_Call) Run ¶ added in v0.5.14
func (_c *VulndbCvesRepository_SaveCveAffectedComponents_Call) Run(run func(tx *gorm.DB, cveId string, affectedComponentHashes []string)) *VulndbCvesRepository_SaveCveAffectedComponents_Call
func (*VulndbCvesRepository_SaveCveAffectedComponents_Call) RunAndReturn ¶ added in v0.5.14
func (_c *VulndbCvesRepository_SaveCveAffectedComponents_Call) RunAndReturn(run func(*gorm.DB, string, []string) error) *VulndbCvesRepository_SaveCveAffectedComponents_Call
type VulndbCvesRepository_Save_Call ¶ added in v0.5.14
VulndbCvesRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*VulndbCvesRepository_Save_Call) Return ¶ added in v0.5.14
func (_c *VulndbCvesRepository_Save_Call) Return(_a0 error) *VulndbCvesRepository_Save_Call
func (*VulndbCvesRepository_Save_Call) Run ¶ added in v0.5.14
func (_c *VulndbCvesRepository_Save_Call) Run(run func(tx *gorm.DB, cve *models.CVE)) *VulndbCvesRepository_Save_Call
func (*VulndbCvesRepository_Save_Call) RunAndReturn ¶ added in v0.5.14
func (_c *VulndbCvesRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.CVE) error) *VulndbCvesRepository_Save_Call
type VulndbCvesRepository_Transaction_Call ¶ added in v0.5.14
VulndbCvesRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*VulndbCvesRepository_Transaction_Call) Return ¶ added in v0.5.14
func (_c *VulndbCvesRepository_Transaction_Call) Return(_a0 error) *VulndbCvesRepository_Transaction_Call
func (*VulndbCvesRepository_Transaction_Call) Run ¶ added in v0.5.14
func (_c *VulndbCvesRepository_Transaction_Call) Run(run func(_a0 func(*gorm.DB) error)) *VulndbCvesRepository_Transaction_Call
func (*VulndbCvesRepository_Transaction_Call) RunAndReturn ¶ added in v0.5.14
func (_c *VulndbCvesRepository_Transaction_Call) RunAndReturn(run func(func(*gorm.DB) error) error) *VulndbCvesRepository_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 VulndbCwesRepository ¶ added in v0.5.14
VulndbCwesRepository is an autogenerated mock type for the cwesRepository type
func NewVulndbCwesRepository ¶ added in v0.5.14
func NewVulndbCwesRepository(t interface {
mock.TestingT
Cleanup(func())
}) *VulndbCwesRepository
NewVulndbCwesRepository creates a new instance of VulndbCwesRepository. 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 (*VulndbCwesRepository) EXPECT ¶ added in v0.5.14
func (_m *VulndbCwesRepository) EXPECT() *VulndbCwesRepository_Expecter
func (*VulndbCwesRepository) GetAllCWEsID ¶ added in v0.5.14
func (_m *VulndbCwesRepository) GetAllCWEsID() ([]string, error)
GetAllCWEsID provides a mock function with no fields
type VulndbCwesRepository_Expecter ¶ added in v0.5.14
type VulndbCwesRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*VulndbCwesRepository_Expecter) GetAllCWEsID ¶ added in v0.5.14
func (_e *VulndbCwesRepository_Expecter) GetAllCWEsID() *VulndbCwesRepository_GetAllCWEsID_Call
GetAllCWEsID is a helper method to define mock.On call
func (*VulndbCwesRepository_Expecter) SaveBatch ¶ added in v0.5.14
func (_e *VulndbCwesRepository_Expecter) SaveBatch(tx interface{}, cwes interface{}) *VulndbCwesRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx *gorm.DB
- cwes []models.CWE
type VulndbCwesRepository_GetAllCWEsID_Call ¶ added in v0.5.14
VulndbCwesRepository_GetAllCWEsID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllCWEsID'
func (*VulndbCwesRepository_GetAllCWEsID_Call) Return ¶ added in v0.5.14
func (_c *VulndbCwesRepository_GetAllCWEsID_Call) Return(_a0 []string, _a1 error) *VulndbCwesRepository_GetAllCWEsID_Call
func (*VulndbCwesRepository_GetAllCWEsID_Call) Run ¶ added in v0.5.14
func (_c *VulndbCwesRepository_GetAllCWEsID_Call) Run(run func()) *VulndbCwesRepository_GetAllCWEsID_Call
func (*VulndbCwesRepository_GetAllCWEsID_Call) RunAndReturn ¶ added in v0.5.14
func (_c *VulndbCwesRepository_GetAllCWEsID_Call) RunAndReturn(run func() ([]string, error)) *VulndbCwesRepository_GetAllCWEsID_Call
type VulndbCwesRepository_SaveBatch_Call ¶ added in v0.5.14
VulndbCwesRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*VulndbCwesRepository_SaveBatch_Call) Return ¶ added in v0.5.14
func (_c *VulndbCwesRepository_SaveBatch_Call) Return(_a0 error) *VulndbCwesRepository_SaveBatch_Call
func (*VulndbCwesRepository_SaveBatch_Call) Run ¶ added in v0.5.14
func (_c *VulndbCwesRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, cwes []models.CWE)) *VulndbCwesRepository_SaveBatch_Call
func (*VulndbCwesRepository_SaveBatch_Call) RunAndReturn ¶ added in v0.5.14
func (_c *VulndbCwesRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.CWE) error) *VulndbCwesRepository_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 VulndbExploitsRepository ¶ added in v0.5.14
VulndbExploitsRepository is an autogenerated mock type for the exploitsRepository type
func NewVulndbExploitsRepository ¶ added in v0.5.14
func NewVulndbExploitsRepository(t interface {
mock.TestingT
Cleanup(func())
}) *VulndbExploitsRepository
NewVulndbExploitsRepository creates a new instance of VulndbExploitsRepository. 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 (*VulndbExploitsRepository) EXPECT ¶ added in v0.5.14
func (_m *VulndbExploitsRepository) EXPECT() *VulndbExploitsRepository_Expecter
func (*VulndbExploitsRepository) GetAllExploitsID ¶ added in v0.5.14
func (_m *VulndbExploitsRepository) GetAllExploitsID() ([]string, error)
GetAllExploitsID provides a mock function with no fields
type VulndbExploitsRepository_Expecter ¶ added in v0.5.14
type VulndbExploitsRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*VulndbExploitsRepository_Expecter) GetAllExploitsID ¶ added in v0.5.14
func (_e *VulndbExploitsRepository_Expecter) GetAllExploitsID() *VulndbExploitsRepository_GetAllExploitsID_Call
GetAllExploitsID is a helper method to define mock.On call
func (*VulndbExploitsRepository_Expecter) SaveBatch ¶ added in v0.5.14
func (_e *VulndbExploitsRepository_Expecter) SaveBatch(tx interface{}, exploits interface{}) *VulndbExploitsRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx *gorm.DB
- exploits []models.Exploit
type VulndbExploitsRepository_GetAllExploitsID_Call ¶ added in v0.5.14
VulndbExploitsRepository_GetAllExploitsID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllExploitsID'
func (*VulndbExploitsRepository_GetAllExploitsID_Call) Return ¶ added in v0.5.14
func (_c *VulndbExploitsRepository_GetAllExploitsID_Call) Return(_a0 []string, _a1 error) *VulndbExploitsRepository_GetAllExploitsID_Call
func (*VulndbExploitsRepository_GetAllExploitsID_Call) Run ¶ added in v0.5.14
func (_c *VulndbExploitsRepository_GetAllExploitsID_Call) Run(run func()) *VulndbExploitsRepository_GetAllExploitsID_Call
func (*VulndbExploitsRepository_GetAllExploitsID_Call) RunAndReturn ¶ added in v0.5.14
func (_c *VulndbExploitsRepository_GetAllExploitsID_Call) RunAndReturn(run func() ([]string, error)) *VulndbExploitsRepository_GetAllExploitsID_Call
type VulndbExploitsRepository_SaveBatch_Call ¶ added in v0.5.14
VulndbExploitsRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*VulndbExploitsRepository_SaveBatch_Call) Return ¶ added in v0.5.14
func (_c *VulndbExploitsRepository_SaveBatch_Call) Return(_a0 error) *VulndbExploitsRepository_SaveBatch_Call
func (*VulndbExploitsRepository_SaveBatch_Call) Run ¶ added in v0.5.14
func (_c *VulndbExploitsRepository_SaveBatch_Call) Run(run func(tx *gorm.DB, exploits []models.Exploit)) *VulndbExploitsRepository_SaveBatch_Call
func (*VulndbExploitsRepository_SaveBatch_Call) RunAndReturn ¶ added in v0.5.14
func (_c *VulndbExploitsRepository_SaveBatch_Call) RunAndReturn(run func(*gorm.DB, []models.Exploit) error) *VulndbExploitsRepository_SaveBatch_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
type VulndbLeaderElector_Expecter ¶
type VulndbLeaderElector_Expecter struct {
// contains filtered or unexported fields
}
func (*VulndbLeaderElector_Expecter) IfLeader ¶ added in v0.5.14
func (_e *VulndbLeaderElector_Expecter) IfLeader(ctx interface{}, fn interface{}) *VulndbLeaderElector_IfLeader_Call
IfLeader is a helper method to define mock.On call
- ctx context.Context
- fn func() error
type VulndbLeaderElector_IfLeader_Call ¶ added in v0.5.14
VulndbLeaderElector_IfLeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IfLeader'
func (*VulndbLeaderElector_IfLeader_Call) Return ¶ added in v0.5.14
func (_c *VulndbLeaderElector_IfLeader_Call) Return() *VulndbLeaderElector_IfLeader_Call
func (*VulndbLeaderElector_IfLeader_Call) Run ¶ added in v0.5.14
func (_c *VulndbLeaderElector_IfLeader_Call) Run(run func(ctx context.Context, fn func() error)) *VulndbLeaderElector_IfLeader_Call
func (*VulndbLeaderElector_IfLeader_Call) RunAndReturn ¶ added in v0.5.14
func (_c *VulndbLeaderElector_IfLeader_Call) RunAndReturn(run func(context.Context, func() error)) *VulndbLeaderElector_IfLeader_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_accesscontrol_AccessControl.go
- mock_accesscontrol_RBACProvider.go
- mock_api_assetRepository.go
- mock_api_orgRepository.go
- mock_api_projectRepository.go
- 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_supplyChainRepository.go
- mock_config_configRepository.go
- mock_core_AuthSession.go
- mock_core_IntegrationAggregate.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_leaderElector.go
- mock_flaw_projectService.go
- mock_flaw_repository.go
- mock_integrations_assetRepository.go
- mock_integrations_externalUserRepository.go
- mock_integrations_flawEventRepository.go
- mock_integrations_flawRepository.go
- mock_integrations_flawService.go
- mock_integrations_githubAppInstallationRepository.go
- mock_integrations_githubClientFacade.go
- mock_integrations_githubUserRepository.go
- mock_integrations_gitlabClientFacade.go
- mock_integrations_gitlabIntegrationRepository.go
- mock_intoto_accessControl.go
- mock_intoto_inTotoLinkRepository.go
- mock_intoto_inTotoVerifierService.go
- mock_intoto_patRepository.go
- mock_intoto_projectRepository.go
- mock_intoto_repository.go
- mock_intoto_supplyChainRepository.go
- mock_intoto_supplyChainRepositoryS.go
- mock_leaderelection_configService.go
- mock_normalize_SBOM.go
- mock_org_invitationRepository.go
- mock_org_projectService.go
- mock_org_repository.go
- mock_pat_repository.go
- mock_project_assetRepository.go
- mock_project_projectRepository.go
- mock_project_projectService.go
- mock_risk_cvssInterface.go
- mock_scan_assetRepository.go
- mock_scan_assetService.go
- mock_scan_comparer.go
- mock_scan_componentRepository.go
- mock_scan_cveRepository.go
- mock_scan_statisticsService.go
- mock_statistics_assetRepository.go
- mock_statistics_assetRiskHistoryRepository.go
- mock_statistics_assetToProjectIdConverter.go
- mock_statistics_componentRepository.go
- mock_statistics_flawRepository.go
- mock_statistics_projectRepository.go
- mock_statistics_projectRiskHistoryRepository.go
- mock_statistics_projectService.go
- mock_statistics_statisticsRepository.go
- mock_statistics_statisticsService.go
- mock_vulndb_affectedCmpRepository.go
- mock_vulndb_affectedComponentsRepository.go
- mock_vulndb_configService.go
- mock_vulndb_cveRepository.go
- mock_vulndb_cvesRepository.go
- mock_vulndb_cweRepository.go
- mock_vulndb_cwesRepository.go
- mock_vulndb_exploitRepository.go
- mock_vulndb_exploitsRepository.go
- mock_vulndb_githubExploitRepository.go
- mock_vulndb_leaderElector.go
- mock_vulndb_repository.go