Documentation
¶
Index ¶
- type AccessControl
- func (_mock *AccessControl) AllowRole(role core.Role, object core.Object, action []core.Action) error
- func (_mock *AccessControl) AllowRoleInProject(project string, role core.Role, object core.Object, action []core.Action) error
- func (_m *AccessControl) EXPECT() *AccessControl_Expecter
- func (_mock *AccessControl) GetAllMembersOfOrganization() ([]string, error)
- func (_mock *AccessControl) GetAllMembersOfProject(projectID string) ([]string, error)
- func (_mock *AccessControl) GetAllProjectsForUser(user string) ([]string, error)
- func (_mock *AccessControl) GetAllRoles(user string) []string
- func (_mock *AccessControl) GetDomainRole(user string) (core.Role, error)
- func (_mock *AccessControl) GetExternalEntityProviderID() *string
- func (_mock *AccessControl) GetOwnerOfOrganization() (string, error)
- func (_mock *AccessControl) GetProjectRole(user string, project string) (core.Role, error)
- func (_mock *AccessControl) GrantRole(subject string, role core.Role) error
- func (_mock *AccessControl) GrantRoleInProject(subject string, role core.Role, project string) error
- func (_mock *AccessControl) HasAccess(subject string) (bool, error)
- func (_mock *AccessControl) InheritProjectRole(roleWhichGetsPermissions core.Role, roleWhichProvidesPermissions core.Role, ...) error
- func (_mock *AccessControl) InheritProjectRolesAcrossProjects(roleWhichGetsPermissions core.ProjectRole, ...) error
- func (_mock *AccessControl) InheritRole(roleWhichGetsPermissions core.Role, roleWhichProvidesPermissions core.Role) error
- func (_mock *AccessControl) IsAllowed(subject string, object core.Object, action core.Action) (bool, error)
- func (_mock *AccessControl) IsAllowedInProject(project *models.Project, user string, object core.Object, action core.Action) (bool, error)
- func (_mock *AccessControl) LinkDomainAndProjectRole(domainRoleWhichGetsPermission core.Role, ...) error
- func (_mock *AccessControl) RevokeAllRolesInProjectForUser(user string, project string) error
- func (_mock *AccessControl) RevokeRole(subject string, role core.Role) error
- func (_mock *AccessControl) RevokeRoleInProject(subject string, role core.Role, project string) error
- type AccessControl_AllowRoleInProject_Call
- func (_c *AccessControl_AllowRoleInProject_Call) Return(err error) *AccessControl_AllowRoleInProject_Call
- func (_c *AccessControl_AllowRoleInProject_Call) Run(...) *AccessControl_AllowRoleInProject_Call
- func (_c *AccessControl_AllowRoleInProject_Call) RunAndReturn(...) *AccessControl_AllowRoleInProject_Call
- type AccessControl_AllowRole_Call
- func (_c *AccessControl_AllowRole_Call) Return(err error) *AccessControl_AllowRole_Call
- func (_c *AccessControl_AllowRole_Call) Run(run func(role core.Role, object core.Object, action []core.Action)) *AccessControl_AllowRole_Call
- func (_c *AccessControl_AllowRole_Call) RunAndReturn(run func(role core.Role, object core.Object, action []core.Action) error) *AccessControl_AllowRole_Call
- type AccessControl_Expecter
- func (_e *AccessControl_Expecter) AllowRole(role interface{}, object interface{}, action interface{}) *AccessControl_AllowRole_Call
- func (_e *AccessControl_Expecter) AllowRoleInProject(project interface{}, role interface{}, object interface{}, action interface{}) *AccessControl_AllowRoleInProject_Call
- func (_e *AccessControl_Expecter) GetAllMembersOfOrganization() *AccessControl_GetAllMembersOfOrganization_Call
- func (_e *AccessControl_Expecter) GetAllMembersOfProject(projectID interface{}) *AccessControl_GetAllMembersOfProject_Call
- func (_e *AccessControl_Expecter) GetAllProjectsForUser(user interface{}) *AccessControl_GetAllProjectsForUser_Call
- func (_e *AccessControl_Expecter) GetAllRoles(user interface{}) *AccessControl_GetAllRoles_Call
- func (_e *AccessControl_Expecter) GetDomainRole(user interface{}) *AccessControl_GetDomainRole_Call
- func (_e *AccessControl_Expecter) GetExternalEntityProviderID() *AccessControl_GetExternalEntityProviderID_Call
- func (_e *AccessControl_Expecter) GetOwnerOfOrganization() *AccessControl_GetOwnerOfOrganization_Call
- func (_e *AccessControl_Expecter) GetProjectRole(user interface{}, project interface{}) *AccessControl_GetProjectRole_Call
- func (_e *AccessControl_Expecter) GrantRole(subject interface{}, role interface{}) *AccessControl_GrantRole_Call
- func (_e *AccessControl_Expecter) GrantRoleInProject(subject interface{}, role interface{}, project interface{}) *AccessControl_GrantRoleInProject_Call
- func (_e *AccessControl_Expecter) HasAccess(subject interface{}) *AccessControl_HasAccess_Call
- func (_e *AccessControl_Expecter) InheritProjectRole(roleWhichGetsPermissions interface{}, roleWhichProvidesPermissions interface{}, ...) *AccessControl_InheritProjectRole_Call
- func (_e *AccessControl_Expecter) InheritProjectRolesAcrossProjects(roleWhichGetsPermissions interface{}, roleWhichProvidesPermissions interface{}) *AccessControl_InheritProjectRolesAcrossProjects_Call
- func (_e *AccessControl_Expecter) InheritRole(roleWhichGetsPermissions interface{}, roleWhichProvidesPermissions interface{}) *AccessControl_InheritRole_Call
- func (_e *AccessControl_Expecter) IsAllowed(subject interface{}, object interface{}, action interface{}) *AccessControl_IsAllowed_Call
- func (_e *AccessControl_Expecter) IsAllowedInProject(project interface{}, user interface{}, object interface{}, action interface{}) *AccessControl_IsAllowedInProject_Call
- func (_e *AccessControl_Expecter) LinkDomainAndProjectRole(domainRoleWhichGetsPermission interface{}, ...) *AccessControl_LinkDomainAndProjectRole_Call
- func (_e *AccessControl_Expecter) RevokeAllRolesInProjectForUser(user interface{}, project interface{}) *AccessControl_RevokeAllRolesInProjectForUser_Call
- func (_e *AccessControl_Expecter) RevokeRole(subject interface{}, role interface{}) *AccessControl_RevokeRole_Call
- func (_e *AccessControl_Expecter) RevokeRoleInProject(subject interface{}, role interface{}, project interface{}) *AccessControl_RevokeRoleInProject_Call
- type AccessControl_GetAllMembersOfOrganization_Call
- func (_c *AccessControl_GetAllMembersOfOrganization_Call) Return(strings []string, err error) *AccessControl_GetAllMembersOfOrganization_Call
- func (_c *AccessControl_GetAllMembersOfOrganization_Call) Run(run func()) *AccessControl_GetAllMembersOfOrganization_Call
- func (_c *AccessControl_GetAllMembersOfOrganization_Call) RunAndReturn(run func() ([]string, error)) *AccessControl_GetAllMembersOfOrganization_Call
- type AccessControl_GetAllMembersOfProject_Call
- func (_c *AccessControl_GetAllMembersOfProject_Call) Return(strings []string, err error) *AccessControl_GetAllMembersOfProject_Call
- func (_c *AccessControl_GetAllMembersOfProject_Call) Run(run func(projectID string)) *AccessControl_GetAllMembersOfProject_Call
- func (_c *AccessControl_GetAllMembersOfProject_Call) RunAndReturn(run func(projectID string) ([]string, error)) *AccessControl_GetAllMembersOfProject_Call
- type AccessControl_GetAllProjectsForUser_Call
- func (_c *AccessControl_GetAllProjectsForUser_Call) Return(strings []string, err error) *AccessControl_GetAllProjectsForUser_Call
- func (_c *AccessControl_GetAllProjectsForUser_Call) Run(run func(user string)) *AccessControl_GetAllProjectsForUser_Call
- func (_c *AccessControl_GetAllProjectsForUser_Call) RunAndReturn(run func(user string) ([]string, error)) *AccessControl_GetAllProjectsForUser_Call
- type AccessControl_GetAllRoles_Call
- func (_c *AccessControl_GetAllRoles_Call) Return(strings []string) *AccessControl_GetAllRoles_Call
- func (_c *AccessControl_GetAllRoles_Call) Run(run func(user string)) *AccessControl_GetAllRoles_Call
- func (_c *AccessControl_GetAllRoles_Call) RunAndReturn(run func(user string) []string) *AccessControl_GetAllRoles_Call
- type AccessControl_GetDomainRole_Call
- func (_c *AccessControl_GetDomainRole_Call) Return(role core.Role, err error) *AccessControl_GetDomainRole_Call
- func (_c *AccessControl_GetDomainRole_Call) Run(run func(user string)) *AccessControl_GetDomainRole_Call
- func (_c *AccessControl_GetDomainRole_Call) RunAndReturn(run func(user string) (core.Role, error)) *AccessControl_GetDomainRole_Call
- type AccessControl_GetExternalEntityProviderID_Call
- func (_c *AccessControl_GetExternalEntityProviderID_Call) Return(s *string) *AccessControl_GetExternalEntityProviderID_Call
- func (_c *AccessControl_GetExternalEntityProviderID_Call) Run(run func()) *AccessControl_GetExternalEntityProviderID_Call
- func (_c *AccessControl_GetExternalEntityProviderID_Call) RunAndReturn(run func() *string) *AccessControl_GetExternalEntityProviderID_Call
- type AccessControl_GetOwnerOfOrganization_Call
- func (_c *AccessControl_GetOwnerOfOrganization_Call) Return(s string, err error) *AccessControl_GetOwnerOfOrganization_Call
- func (_c *AccessControl_GetOwnerOfOrganization_Call) Run(run func()) *AccessControl_GetOwnerOfOrganization_Call
- func (_c *AccessControl_GetOwnerOfOrganization_Call) RunAndReturn(run func() (string, error)) *AccessControl_GetOwnerOfOrganization_Call
- type AccessControl_GetProjectRole_Call
- func (_c *AccessControl_GetProjectRole_Call) Return(role core.Role, err error) *AccessControl_GetProjectRole_Call
- func (_c *AccessControl_GetProjectRole_Call) Run(run func(user string, project string)) *AccessControl_GetProjectRole_Call
- func (_c *AccessControl_GetProjectRole_Call) RunAndReturn(run func(user string, project string) (core.Role, error)) *AccessControl_GetProjectRole_Call
- type AccessControl_GrantRoleInProject_Call
- func (_c *AccessControl_GrantRoleInProject_Call) Return(err error) *AccessControl_GrantRoleInProject_Call
- func (_c *AccessControl_GrantRoleInProject_Call) Run(run func(subject string, role core.Role, project string)) *AccessControl_GrantRoleInProject_Call
- func (_c *AccessControl_GrantRoleInProject_Call) RunAndReturn(run func(subject string, role core.Role, project string) error) *AccessControl_GrantRoleInProject_Call
- type AccessControl_GrantRole_Call
- func (_c *AccessControl_GrantRole_Call) Return(err error) *AccessControl_GrantRole_Call
- func (_c *AccessControl_GrantRole_Call) Run(run func(subject string, role core.Role)) *AccessControl_GrantRole_Call
- func (_c *AccessControl_GrantRole_Call) RunAndReturn(run func(subject string, role core.Role) error) *AccessControl_GrantRole_Call
- type AccessControl_HasAccess_Call
- func (_c *AccessControl_HasAccess_Call) Return(b bool, err error) *AccessControl_HasAccess_Call
- func (_c *AccessControl_HasAccess_Call) Run(run func(subject string)) *AccessControl_HasAccess_Call
- func (_c *AccessControl_HasAccess_Call) RunAndReturn(run func(subject string) (bool, error)) *AccessControl_HasAccess_Call
- type AccessControl_InheritProjectRole_Call
- func (_c *AccessControl_InheritProjectRole_Call) Return(err error) *AccessControl_InheritProjectRole_Call
- func (_c *AccessControl_InheritProjectRole_Call) Run(...) *AccessControl_InheritProjectRole_Call
- func (_c *AccessControl_InheritProjectRole_Call) RunAndReturn(...) *AccessControl_InheritProjectRole_Call
- type AccessControl_InheritProjectRolesAcrossProjects_Call
- func (_c *AccessControl_InheritProjectRolesAcrossProjects_Call) Return(err error) *AccessControl_InheritProjectRolesAcrossProjects_Call
- func (_c *AccessControl_InheritProjectRolesAcrossProjects_Call) Run(run func(roleWhichGetsPermissions core.ProjectRole, ...)) *AccessControl_InheritProjectRolesAcrossProjects_Call
- func (_c *AccessControl_InheritProjectRolesAcrossProjects_Call) RunAndReturn(run func(roleWhichGetsPermissions core.ProjectRole, ...) error) *AccessControl_InheritProjectRolesAcrossProjects_Call
- type AccessControl_InheritRole_Call
- type AccessControl_IsAllowedInProject_Call
- func (_c *AccessControl_IsAllowedInProject_Call) Return(b bool, err error) *AccessControl_IsAllowedInProject_Call
- func (_c *AccessControl_IsAllowedInProject_Call) Run(...) *AccessControl_IsAllowedInProject_Call
- func (_c *AccessControl_IsAllowedInProject_Call) RunAndReturn(...) *AccessControl_IsAllowedInProject_Call
- type AccessControl_IsAllowed_Call
- func (_c *AccessControl_IsAllowed_Call) Return(b bool, err error) *AccessControl_IsAllowed_Call
- func (_c *AccessControl_IsAllowed_Call) Run(run func(subject string, object core.Object, action core.Action)) *AccessControl_IsAllowed_Call
- func (_c *AccessControl_IsAllowed_Call) RunAndReturn(run func(subject string, object core.Object, action core.Action) (bool, error)) *AccessControl_IsAllowed_Call
- type AccessControl_LinkDomainAndProjectRole_Call
- func (_c *AccessControl_LinkDomainAndProjectRole_Call) Return(err error) *AccessControl_LinkDomainAndProjectRole_Call
- func (_c *AccessControl_LinkDomainAndProjectRole_Call) Run(run func(domainRoleWhichGetsPermission core.Role, ...)) *AccessControl_LinkDomainAndProjectRole_Call
- func (_c *AccessControl_LinkDomainAndProjectRole_Call) RunAndReturn(run func(domainRoleWhichGetsPermission core.Role, ...) error) *AccessControl_LinkDomainAndProjectRole_Call
- type AccessControl_RevokeAllRolesInProjectForUser_Call
- func (_c *AccessControl_RevokeAllRolesInProjectForUser_Call) Return(err error) *AccessControl_RevokeAllRolesInProjectForUser_Call
- func (_c *AccessControl_RevokeAllRolesInProjectForUser_Call) Run(run func(user string, project string)) *AccessControl_RevokeAllRolesInProjectForUser_Call
- func (_c *AccessControl_RevokeAllRolesInProjectForUser_Call) RunAndReturn(run func(user string, project string) error) *AccessControl_RevokeAllRolesInProjectForUser_Call
- type AccessControl_RevokeRoleInProject_Call
- func (_c *AccessControl_RevokeRoleInProject_Call) Return(err error) *AccessControl_RevokeRoleInProject_Call
- func (_c *AccessControl_RevokeRoleInProject_Call) Run(run func(subject string, role core.Role, project string)) *AccessControl_RevokeRoleInProject_Call
- func (_c *AccessControl_RevokeRoleInProject_Call) RunAndReturn(run func(subject string, role core.Role, project string) error) *AccessControl_RevokeRoleInProject_Call
- type AccessControl_RevokeRole_Call
- func (_c *AccessControl_RevokeRole_Call) Return(err error) *AccessControl_RevokeRole_Call
- func (_c *AccessControl_RevokeRole_Call) Run(run func(subject string, role core.Role)) *AccessControl_RevokeRole_Call
- func (_c *AccessControl_RevokeRole_Call) RunAndReturn(run func(subject string, role core.Role) error) *AccessControl_RevokeRole_Call
- type AdminClient
- func (_m *AdminClient) EXPECT() *AdminClient_Expecter
- func (_mock *AdminClient) GetIdentity(ctx context.Context, userID string) (client.Identity, error)
- func (_mock *AdminClient) GetIdentityFromCookie(ctx context.Context, cookie string) (client.Identity, error)
- func (_mock *AdminClient) GetIdentityWithCredentials(ctx context.Context, userID string) (client.Identity, error)
- func (_mock *AdminClient) ListUser(client1 client.IdentityAPIListIdentitiesRequest) ([]client.Identity, error)
- type AdminClient_Expecter
- func (_e *AdminClient_Expecter) GetIdentity(ctx interface{}, userID interface{}) *AdminClient_GetIdentity_Call
- func (_e *AdminClient_Expecter) GetIdentityFromCookie(ctx interface{}, cookie interface{}) *AdminClient_GetIdentityFromCookie_Call
- func (_e *AdminClient_Expecter) GetIdentityWithCredentials(ctx interface{}, userID interface{}) *AdminClient_GetIdentityWithCredentials_Call
- func (_e *AdminClient_Expecter) ListUser(client1 interface{}) *AdminClient_ListUser_Call
- type AdminClient_GetIdentityFromCookie_Call
- func (_c *AdminClient_GetIdentityFromCookie_Call) Return(identity client.Identity, err error) *AdminClient_GetIdentityFromCookie_Call
- func (_c *AdminClient_GetIdentityFromCookie_Call) Run(run func(ctx context.Context, cookie string)) *AdminClient_GetIdentityFromCookie_Call
- func (_c *AdminClient_GetIdentityFromCookie_Call) RunAndReturn(run func(ctx context.Context, cookie string) (client.Identity, error)) *AdminClient_GetIdentityFromCookie_Call
- type AdminClient_GetIdentityWithCredentials_Call
- func (_c *AdminClient_GetIdentityWithCredentials_Call) Return(identity client.Identity, err error) *AdminClient_GetIdentityWithCredentials_Call
- func (_c *AdminClient_GetIdentityWithCredentials_Call) Run(run func(ctx context.Context, userID string)) *AdminClient_GetIdentityWithCredentials_Call
- func (_c *AdminClient_GetIdentityWithCredentials_Call) RunAndReturn(run func(ctx context.Context, userID string) (client.Identity, error)) *AdminClient_GetIdentityWithCredentials_Call
- type AdminClient_GetIdentity_Call
- func (_c *AdminClient_GetIdentity_Call) Return(identity client.Identity, err error) *AdminClient_GetIdentity_Call
- func (_c *AdminClient_GetIdentity_Call) Run(run func(ctx context.Context, userID string)) *AdminClient_GetIdentity_Call
- func (_c *AdminClient_GetIdentity_Call) RunAndReturn(run func(ctx context.Context, userID string) (client.Identity, error)) *AdminClient_GetIdentity_Call
- type AdminClient_ListUser_Call
- func (_c *AdminClient_ListUser_Call) Return(identitys []client.Identity, err error) *AdminClient_ListUser_Call
- func (_c *AdminClient_ListUser_Call) Run(run func(client1 client.IdentityAPIListIdentitiesRequest)) *AdminClient_ListUser_Call
- func (_c *AdminClient_ListUser_Call) RunAndReturn(...) *AdminClient_ListUser_Call
- type AffectedComponentRepository
- func (_mock *AffectedComponentRepository) Activate(tx core.DB, id string) error
- func (_mock *AffectedComponentRepository) All() ([]models.AffectedComponent, error)
- func (_mock *AffectedComponentRepository) Begin() core.DB
- func (_mock *AffectedComponentRepository) Create(tx core.DB, t *models.AffectedComponent) error
- func (_mock *AffectedComponentRepository) CreateBatch(tx core.DB, ts []models.AffectedComponent) error
- func (_mock *AffectedComponentRepository) Delete(tx core.DB, id string) error
- func (_mock *AffectedComponentRepository) DeleteAll(tx core.DB, ecosystem string) error
- func (_mock *AffectedComponentRepository) DeleteBatch(tx core.DB, ids []models.AffectedComponent) error
- func (_m *AffectedComponentRepository) EXPECT() *AffectedComponentRepository_Expecter
- func (_mock *AffectedComponentRepository) GetAllAffectedComponentsID() ([]string, error)
- func (_mock *AffectedComponentRepository) GetDB(tx core.DB) core.DB
- func (_mock *AffectedComponentRepository) List(ids []string) ([]models.AffectedComponent, error)
- func (_mock *AffectedComponentRepository) Read(id string) (models.AffectedComponent, error)
- func (_mock *AffectedComponentRepository) Save(tx core.DB, affectedComponent *models.AffectedComponent) error
- func (_mock *AffectedComponentRepository) SaveBatch(tx core.DB, affectedPkgs []models.AffectedComponent) error
- func (_mock *AffectedComponentRepository) Transaction(fn func(tx core.DB) error) error
- func (_mock *AffectedComponentRepository) Upsert(t *[]*models.AffectedComponent, conflictingColumns []clause.Column, ...) error
- type AffectedComponentRepository_Activate_Call
- func (_c *AffectedComponentRepository_Activate_Call) Return(err error) *AffectedComponentRepository_Activate_Call
- func (_c *AffectedComponentRepository_Activate_Call) Run(run func(tx core.DB, id string)) *AffectedComponentRepository_Activate_Call
- func (_c *AffectedComponentRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id string) error) *AffectedComponentRepository_Activate_Call
- type AffectedComponentRepository_All_Call
- func (_c *AffectedComponentRepository_All_Call) Return(affectedComponents []models.AffectedComponent, err error) *AffectedComponentRepository_All_Call
- func (_c *AffectedComponentRepository_All_Call) Run(run func()) *AffectedComponentRepository_All_Call
- func (_c *AffectedComponentRepository_All_Call) RunAndReturn(run func() ([]models.AffectedComponent, error)) *AffectedComponentRepository_All_Call
- type AffectedComponentRepository_Begin_Call
- func (_c *AffectedComponentRepository_Begin_Call) Return(v core.DB) *AffectedComponentRepository_Begin_Call
- func (_c *AffectedComponentRepository_Begin_Call) Run(run func()) *AffectedComponentRepository_Begin_Call
- func (_c *AffectedComponentRepository_Begin_Call) RunAndReturn(run func() core.DB) *AffectedComponentRepository_Begin_Call
- type AffectedComponentRepository_CreateBatch_Call
- func (_c *AffectedComponentRepository_CreateBatch_Call) Return(err error) *AffectedComponentRepository_CreateBatch_Call
- func (_c *AffectedComponentRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.AffectedComponent)) *AffectedComponentRepository_CreateBatch_Call
- func (_c *AffectedComponentRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.AffectedComponent) error) *AffectedComponentRepository_CreateBatch_Call
- type AffectedComponentRepository_Create_Call
- func (_c *AffectedComponentRepository_Create_Call) Return(err error) *AffectedComponentRepository_Create_Call
- func (_c *AffectedComponentRepository_Create_Call) Run(run func(tx core.DB, t *models.AffectedComponent)) *AffectedComponentRepository_Create_Call
- func (_c *AffectedComponentRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.AffectedComponent) error) *AffectedComponentRepository_Create_Call
- type AffectedComponentRepository_DeleteAll_Call
- func (_c *AffectedComponentRepository_DeleteAll_Call) Return(err error) *AffectedComponentRepository_DeleteAll_Call
- func (_c *AffectedComponentRepository_DeleteAll_Call) Run(run func(tx core.DB, ecosystem string)) *AffectedComponentRepository_DeleteAll_Call
- func (_c *AffectedComponentRepository_DeleteAll_Call) RunAndReturn(run func(tx core.DB, ecosystem string) error) *AffectedComponentRepository_DeleteAll_Call
- type AffectedComponentRepository_DeleteBatch_Call
- func (_c *AffectedComponentRepository_DeleteBatch_Call) Return(err error) *AffectedComponentRepository_DeleteBatch_Call
- func (_c *AffectedComponentRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.AffectedComponent)) *AffectedComponentRepository_DeleteBatch_Call
- func (_c *AffectedComponentRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.AffectedComponent) error) *AffectedComponentRepository_DeleteBatch_Call
- type AffectedComponentRepository_Delete_Call
- func (_c *AffectedComponentRepository_Delete_Call) Return(err error) *AffectedComponentRepository_Delete_Call
- func (_c *AffectedComponentRepository_Delete_Call) Run(run func(tx core.DB, id string)) *AffectedComponentRepository_Delete_Call
- func (_c *AffectedComponentRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id string) error) *AffectedComponentRepository_Delete_Call
- type AffectedComponentRepository_Expecter
- func (_e *AffectedComponentRepository_Expecter) Activate(tx interface{}, id interface{}) *AffectedComponentRepository_Activate_Call
- func (_e *AffectedComponentRepository_Expecter) All() *AffectedComponentRepository_All_Call
- func (_e *AffectedComponentRepository_Expecter) Begin() *AffectedComponentRepository_Begin_Call
- func (_e *AffectedComponentRepository_Expecter) Create(tx interface{}, t interface{}) *AffectedComponentRepository_Create_Call
- func (_e *AffectedComponentRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *AffectedComponentRepository_CreateBatch_Call
- func (_e *AffectedComponentRepository_Expecter) Delete(tx interface{}, id interface{}) *AffectedComponentRepository_Delete_Call
- func (_e *AffectedComponentRepository_Expecter) DeleteAll(tx interface{}, ecosystem interface{}) *AffectedComponentRepository_DeleteAll_Call
- func (_e *AffectedComponentRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *AffectedComponentRepository_DeleteBatch_Call
- func (_e *AffectedComponentRepository_Expecter) GetAllAffectedComponentsID() *AffectedComponentRepository_GetAllAffectedComponentsID_Call
- func (_e *AffectedComponentRepository_Expecter) GetDB(tx interface{}) *AffectedComponentRepository_GetDB_Call
- func (_e *AffectedComponentRepository_Expecter) List(ids interface{}) *AffectedComponentRepository_List_Call
- func (_e *AffectedComponentRepository_Expecter) Read(id interface{}) *AffectedComponentRepository_Read_Call
- func (_e *AffectedComponentRepository_Expecter) Save(tx interface{}, affectedComponent interface{}) *AffectedComponentRepository_Save_Call
- func (_e *AffectedComponentRepository_Expecter) SaveBatch(tx interface{}, affectedPkgs interface{}) *AffectedComponentRepository_SaveBatch_Call
- func (_e *AffectedComponentRepository_Expecter) Transaction(fn interface{}) *AffectedComponentRepository_Transaction_Call
- func (_e *AffectedComponentRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *AffectedComponentRepository_Upsert_Call
- type AffectedComponentRepository_GetAllAffectedComponentsID_Call
- func (_c *AffectedComponentRepository_GetAllAffectedComponentsID_Call) Return(strings []string, err error) *AffectedComponentRepository_GetAllAffectedComponentsID_Call
- func (_c *AffectedComponentRepository_GetAllAffectedComponentsID_Call) Run(run func()) *AffectedComponentRepository_GetAllAffectedComponentsID_Call
- func (_c *AffectedComponentRepository_GetAllAffectedComponentsID_Call) RunAndReturn(run func() ([]string, error)) *AffectedComponentRepository_GetAllAffectedComponentsID_Call
- type AffectedComponentRepository_GetDB_Call
- func (_c *AffectedComponentRepository_GetDB_Call) Return(v core.DB) *AffectedComponentRepository_GetDB_Call
- func (_c *AffectedComponentRepository_GetDB_Call) Run(run func(tx core.DB)) *AffectedComponentRepository_GetDB_Call
- func (_c *AffectedComponentRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *AffectedComponentRepository_GetDB_Call
- type AffectedComponentRepository_List_Call
- func (_c *AffectedComponentRepository_List_Call) Return(affectedComponents []models.AffectedComponent, err error) *AffectedComponentRepository_List_Call
- func (_c *AffectedComponentRepository_List_Call) Run(run func(ids []string)) *AffectedComponentRepository_List_Call
- func (_c *AffectedComponentRepository_List_Call) RunAndReturn(run func(ids []string) ([]models.AffectedComponent, error)) *AffectedComponentRepository_List_Call
- type AffectedComponentRepository_Read_Call
- func (_c *AffectedComponentRepository_Read_Call) Return(affectedComponent models.AffectedComponent, err error) *AffectedComponentRepository_Read_Call
- func (_c *AffectedComponentRepository_Read_Call) Run(run func(id string)) *AffectedComponentRepository_Read_Call
- func (_c *AffectedComponentRepository_Read_Call) RunAndReturn(run func(id string) (models.AffectedComponent, error)) *AffectedComponentRepository_Read_Call
- type AffectedComponentRepository_SaveBatch_Call
- func (_c *AffectedComponentRepository_SaveBatch_Call) Return(err error) *AffectedComponentRepository_SaveBatch_Call
- func (_c *AffectedComponentRepository_SaveBatch_Call) Run(run func(tx core.DB, affectedPkgs []models.AffectedComponent)) *AffectedComponentRepository_SaveBatch_Call
- func (_c *AffectedComponentRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, affectedPkgs []models.AffectedComponent) error) *AffectedComponentRepository_SaveBatch_Call
- type AffectedComponentRepository_Save_Call
- func (_c *AffectedComponentRepository_Save_Call) Return(err error) *AffectedComponentRepository_Save_Call
- func (_c *AffectedComponentRepository_Save_Call) Run(run func(tx core.DB, affectedComponent *models.AffectedComponent)) *AffectedComponentRepository_Save_Call
- func (_c *AffectedComponentRepository_Save_Call) RunAndReturn(run func(tx core.DB, affectedComponent *models.AffectedComponent) error) *AffectedComponentRepository_Save_Call
- type AffectedComponentRepository_Transaction_Call
- func (_c *AffectedComponentRepository_Transaction_Call) Return(err error) *AffectedComponentRepository_Transaction_Call
- func (_c *AffectedComponentRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *AffectedComponentRepository_Transaction_Call
- func (_c *AffectedComponentRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *AffectedComponentRepository_Transaction_Call
- type AffectedComponentRepository_Upsert_Call
- func (_c *AffectedComponentRepository_Upsert_Call) Return(err error) *AffectedComponentRepository_Upsert_Call
- func (_c *AffectedComponentRepository_Upsert_Call) Run(...) *AffectedComponentRepository_Upsert_Call
- func (_c *AffectedComponentRepository_Upsert_Call) RunAndReturn(...) *AffectedComponentRepository_Upsert_Call
- type ArtifactRepository
- func (_mock *ArtifactRepository) Activate(tx core.DB, id string) error
- func (_mock *ArtifactRepository) All() ([]models.Artifact, error)
- func (_mock *ArtifactRepository) Begin() core.DB
- func (_mock *ArtifactRepository) Create(tx core.DB, t *models.Artifact) error
- func (_mock *ArtifactRepository) CreateBatch(tx core.DB, ts []models.Artifact) error
- func (_mock *ArtifactRepository) Delete(tx core.DB, id string) error
- func (_mock *ArtifactRepository) DeleteArtifact(assetID uuid.UUID, assetVersionName string, artifactName string) error
- func (_mock *ArtifactRepository) DeleteBatch(tx core.DB, ids []models.Artifact) error
- func (_m *ArtifactRepository) EXPECT() *ArtifactRepository_Expecter
- func (_mock *ArtifactRepository) GetByAssetIDAndAssetVersionName(assetID uuid.UUID, assetVersionName string) ([]models.Artifact, error)
- func (_mock *ArtifactRepository) GetDB(tx core.DB) core.DB
- func (_mock *ArtifactRepository) List(ids []string) ([]models.Artifact, error)
- func (_mock *ArtifactRepository) Read(id string) (models.Artifact, error)
- func (_mock *ArtifactRepository) ReadArtifact(name string, assetVersionName string, assetID uuid.UUID) (models.Artifact, error)
- func (_mock *ArtifactRepository) Save(tx core.DB, t *models.Artifact) error
- func (_mock *ArtifactRepository) SaveBatch(tx core.DB, ts []models.Artifact) error
- func (_mock *ArtifactRepository) Transaction(fn func(tx core.DB) error) error
- func (_mock *ArtifactRepository) Upsert(t *[]*models.Artifact, conflictingColumns []clause.Column, updateOnly []string) error
- type ArtifactRepository_Activate_Call
- func (_c *ArtifactRepository_Activate_Call) Return(err error) *ArtifactRepository_Activate_Call
- func (_c *ArtifactRepository_Activate_Call) Run(run func(tx core.DB, id string)) *ArtifactRepository_Activate_Call
- func (_c *ArtifactRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id string) error) *ArtifactRepository_Activate_Call
- type ArtifactRepository_All_Call
- func (_c *ArtifactRepository_All_Call) Return(artifacts []models.Artifact, err error) *ArtifactRepository_All_Call
- func (_c *ArtifactRepository_All_Call) Run(run func()) *ArtifactRepository_All_Call
- func (_c *ArtifactRepository_All_Call) RunAndReturn(run func() ([]models.Artifact, error)) *ArtifactRepository_All_Call
- type ArtifactRepository_Begin_Call
- type ArtifactRepository_CreateBatch_Call
- func (_c *ArtifactRepository_CreateBatch_Call) Return(err error) *ArtifactRepository_CreateBatch_Call
- func (_c *ArtifactRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.Artifact)) *ArtifactRepository_CreateBatch_Call
- func (_c *ArtifactRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Artifact) error) *ArtifactRepository_CreateBatch_Call
- type ArtifactRepository_Create_Call
- func (_c *ArtifactRepository_Create_Call) Return(err error) *ArtifactRepository_Create_Call
- func (_c *ArtifactRepository_Create_Call) Run(run func(tx core.DB, t *models.Artifact)) *ArtifactRepository_Create_Call
- func (_c *ArtifactRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.Artifact) error) *ArtifactRepository_Create_Call
- type ArtifactRepository_DeleteArtifact_Call
- func (_c *ArtifactRepository_DeleteArtifact_Call) Return(err error) *ArtifactRepository_DeleteArtifact_Call
- func (_c *ArtifactRepository_DeleteArtifact_Call) Run(run func(assetID uuid.UUID, assetVersionName string, artifactName string)) *ArtifactRepository_DeleteArtifact_Call
- func (_c *ArtifactRepository_DeleteArtifact_Call) RunAndReturn(...) *ArtifactRepository_DeleteArtifact_Call
- type ArtifactRepository_DeleteBatch_Call
- func (_c *ArtifactRepository_DeleteBatch_Call) Return(err error) *ArtifactRepository_DeleteBatch_Call
- func (_c *ArtifactRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.Artifact)) *ArtifactRepository_DeleteBatch_Call
- func (_c *ArtifactRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.Artifact) error) *ArtifactRepository_DeleteBatch_Call
- type ArtifactRepository_Delete_Call
- func (_c *ArtifactRepository_Delete_Call) Return(err error) *ArtifactRepository_Delete_Call
- func (_c *ArtifactRepository_Delete_Call) Run(run func(tx core.DB, id string)) *ArtifactRepository_Delete_Call
- func (_c *ArtifactRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id string) error) *ArtifactRepository_Delete_Call
- type ArtifactRepository_Expecter
- func (_e *ArtifactRepository_Expecter) Activate(tx interface{}, id interface{}) *ArtifactRepository_Activate_Call
- func (_e *ArtifactRepository_Expecter) All() *ArtifactRepository_All_Call
- func (_e *ArtifactRepository_Expecter) Begin() *ArtifactRepository_Begin_Call
- func (_e *ArtifactRepository_Expecter) Create(tx interface{}, t interface{}) *ArtifactRepository_Create_Call
- func (_e *ArtifactRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *ArtifactRepository_CreateBatch_Call
- func (_e *ArtifactRepository_Expecter) Delete(tx interface{}, id interface{}) *ArtifactRepository_Delete_Call
- func (_e *ArtifactRepository_Expecter) DeleteArtifact(assetID interface{}, assetVersionName interface{}, artifactName interface{}) *ArtifactRepository_DeleteArtifact_Call
- func (_e *ArtifactRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *ArtifactRepository_DeleteBatch_Call
- func (_e *ArtifactRepository_Expecter) GetByAssetIDAndAssetVersionName(assetID interface{}, assetVersionName interface{}) *ArtifactRepository_GetByAssetIDAndAssetVersionName_Call
- func (_e *ArtifactRepository_Expecter) GetDB(tx interface{}) *ArtifactRepository_GetDB_Call
- func (_e *ArtifactRepository_Expecter) List(ids interface{}) *ArtifactRepository_List_Call
- func (_e *ArtifactRepository_Expecter) Read(id interface{}) *ArtifactRepository_Read_Call
- func (_e *ArtifactRepository_Expecter) ReadArtifact(name interface{}, assetVersionName interface{}, assetID interface{}) *ArtifactRepository_ReadArtifact_Call
- func (_e *ArtifactRepository_Expecter) Save(tx interface{}, t interface{}) *ArtifactRepository_Save_Call
- func (_e *ArtifactRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *ArtifactRepository_SaveBatch_Call
- func (_e *ArtifactRepository_Expecter) Transaction(fn interface{}) *ArtifactRepository_Transaction_Call
- func (_e *ArtifactRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *ArtifactRepository_Upsert_Call
- type ArtifactRepository_GetByAssetIDAndAssetVersionName_Call
- func (_c *ArtifactRepository_GetByAssetIDAndAssetVersionName_Call) Return(artifacts []models.Artifact, err error) *ArtifactRepository_GetByAssetIDAndAssetVersionName_Call
- func (_c *ArtifactRepository_GetByAssetIDAndAssetVersionName_Call) Run(run func(assetID uuid.UUID, assetVersionName string)) *ArtifactRepository_GetByAssetIDAndAssetVersionName_Call
- func (_c *ArtifactRepository_GetByAssetIDAndAssetVersionName_Call) RunAndReturn(...) *ArtifactRepository_GetByAssetIDAndAssetVersionName_Call
- type ArtifactRepository_GetDB_Call
- func (_c *ArtifactRepository_GetDB_Call) Return(v core.DB) *ArtifactRepository_GetDB_Call
- func (_c *ArtifactRepository_GetDB_Call) Run(run func(tx core.DB)) *ArtifactRepository_GetDB_Call
- func (_c *ArtifactRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *ArtifactRepository_GetDB_Call
- type ArtifactRepository_List_Call
- func (_c *ArtifactRepository_List_Call) Return(artifacts []models.Artifact, err error) *ArtifactRepository_List_Call
- func (_c *ArtifactRepository_List_Call) Run(run func(ids []string)) *ArtifactRepository_List_Call
- func (_c *ArtifactRepository_List_Call) RunAndReturn(run func(ids []string) ([]models.Artifact, error)) *ArtifactRepository_List_Call
- type ArtifactRepository_ReadArtifact_Call
- func (_c *ArtifactRepository_ReadArtifact_Call) Return(artifact models.Artifact, err error) *ArtifactRepository_ReadArtifact_Call
- func (_c *ArtifactRepository_ReadArtifact_Call) Run(run func(name string, assetVersionName string, assetID uuid.UUID)) *ArtifactRepository_ReadArtifact_Call
- func (_c *ArtifactRepository_ReadArtifact_Call) RunAndReturn(...) *ArtifactRepository_ReadArtifact_Call
- type ArtifactRepository_Read_Call
- func (_c *ArtifactRepository_Read_Call) Return(artifact models.Artifact, err error) *ArtifactRepository_Read_Call
- func (_c *ArtifactRepository_Read_Call) Run(run func(id string)) *ArtifactRepository_Read_Call
- func (_c *ArtifactRepository_Read_Call) RunAndReturn(run func(id string) (models.Artifact, error)) *ArtifactRepository_Read_Call
- type ArtifactRepository_SaveBatch_Call
- func (_c *ArtifactRepository_SaveBatch_Call) Return(err error) *ArtifactRepository_SaveBatch_Call
- func (_c *ArtifactRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.Artifact)) *ArtifactRepository_SaveBatch_Call
- func (_c *ArtifactRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Artifact) error) *ArtifactRepository_SaveBatch_Call
- type ArtifactRepository_Save_Call
- func (_c *ArtifactRepository_Save_Call) Return(err error) *ArtifactRepository_Save_Call
- func (_c *ArtifactRepository_Save_Call) Run(run func(tx core.DB, t *models.Artifact)) *ArtifactRepository_Save_Call
- func (_c *ArtifactRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *models.Artifact) error) *ArtifactRepository_Save_Call
- type ArtifactRepository_Transaction_Call
- func (_c *ArtifactRepository_Transaction_Call) Return(err error) *ArtifactRepository_Transaction_Call
- func (_c *ArtifactRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *ArtifactRepository_Transaction_Call
- func (_c *ArtifactRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *ArtifactRepository_Transaction_Call
- type ArtifactRepository_Upsert_Call
- type ArtifactRiskHistoryRepository
- func (_m *ArtifactRiskHistoryRepository) EXPECT() *ArtifactRiskHistoryRepository_Expecter
- func (_mock *ArtifactRiskHistoryRepository) GetRiskHistory(artifactName *string, assetVersionName string, assetID uuid.UUID, ...) ([]models.ArtifactRiskHistory, error)
- func (_mock *ArtifactRiskHistoryRepository) GetRiskHistoryByRelease(releaseID uuid.UUID, start time.Time, end time.Time) ([]models.ArtifactRiskHistory, error)
- func (_mock *ArtifactRiskHistoryRepository) UpdateRiskAggregation(assetRisk *models.ArtifactRiskHistory) error
- type ArtifactRiskHistoryRepository_Expecter
- func (_e *ArtifactRiskHistoryRepository_Expecter) GetRiskHistory(artifactName interface{}, assetVersionName interface{}, assetID interface{}, ...) *ArtifactRiskHistoryRepository_GetRiskHistory_Call
- func (_e *ArtifactRiskHistoryRepository_Expecter) GetRiskHistoryByRelease(releaseID interface{}, start interface{}, end interface{}) *ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call
- func (_e *ArtifactRiskHistoryRepository_Expecter) UpdateRiskAggregation(assetRisk interface{}) *ArtifactRiskHistoryRepository_UpdateRiskAggregation_Call
- type ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call
- func (_c *ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call) Return(artifactRiskHistorys []models.ArtifactRiskHistory, err error) *ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call
- func (_c *ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call) Run(run func(releaseID uuid.UUID, start time.Time, end time.Time)) *ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call
- func (_c *ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call) RunAndReturn(...) *ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call
- type ArtifactRiskHistoryRepository_GetRiskHistory_Call
- func (_c *ArtifactRiskHistoryRepository_GetRiskHistory_Call) Return(artifactRiskHistorys []models.ArtifactRiskHistory, err error) *ArtifactRiskHistoryRepository_GetRiskHistory_Call
- func (_c *ArtifactRiskHistoryRepository_GetRiskHistory_Call) Run(...) *ArtifactRiskHistoryRepository_GetRiskHistory_Call
- func (_c *ArtifactRiskHistoryRepository_GetRiskHistory_Call) RunAndReturn(...) *ArtifactRiskHistoryRepository_GetRiskHistory_Call
- type ArtifactRiskHistoryRepository_UpdateRiskAggregation_Call
- func (_c *ArtifactRiskHistoryRepository_UpdateRiskAggregation_Call) Return(err error) *ArtifactRiskHistoryRepository_UpdateRiskAggregation_Call
- func (_c *ArtifactRiskHistoryRepository_UpdateRiskAggregation_Call) Run(run func(assetRisk *models.ArtifactRiskHistory)) *ArtifactRiskHistoryRepository_UpdateRiskAggregation_Call
- func (_c *ArtifactRiskHistoryRepository_UpdateRiskAggregation_Call) RunAndReturn(run func(assetRisk *models.ArtifactRiskHistory) error) *ArtifactRiskHistoryRepository_UpdateRiskAggregation_Call
- type ArtifactService
- func (_mock *ArtifactService) DeleteArtifact(assetID uuid.UUID, assetVersionName string, artifactName string) error
- func (_m *ArtifactService) EXPECT() *ArtifactService_Expecter
- func (_mock *ArtifactService) GetArtifactNamesByAssetIDAndAssetVersionName(assetID uuid.UUID, assetVersionName string) ([]models.Artifact, error)
- func (_mock *ArtifactService) SaveArtifact(artifact *models.Artifact) error
- type ArtifactService_DeleteArtifact_Call
- func (_c *ArtifactService_DeleteArtifact_Call) Return(err error) *ArtifactService_DeleteArtifact_Call
- func (_c *ArtifactService_DeleteArtifact_Call) Run(run func(assetID uuid.UUID, assetVersionName string, artifactName string)) *ArtifactService_DeleteArtifact_Call
- func (_c *ArtifactService_DeleteArtifact_Call) RunAndReturn(...) *ArtifactService_DeleteArtifact_Call
- type ArtifactService_Expecter
- func (_e *ArtifactService_Expecter) DeleteArtifact(assetID interface{}, assetVersionName interface{}, artifactName interface{}) *ArtifactService_DeleteArtifact_Call
- func (_e *ArtifactService_Expecter) GetArtifactNamesByAssetIDAndAssetVersionName(assetID interface{}, assetVersionName interface{}) *ArtifactService_GetArtifactNamesByAssetIDAndAssetVersionName_Call
- func (_e *ArtifactService_Expecter) SaveArtifact(artifact interface{}) *ArtifactService_SaveArtifact_Call
- type ArtifactService_GetArtifactNamesByAssetIDAndAssetVersionName_Call
- func (_c *ArtifactService_GetArtifactNamesByAssetIDAndAssetVersionName_Call) Return(artifacts []models.Artifact, err error) *ArtifactService_GetArtifactNamesByAssetIDAndAssetVersionName_Call
- func (_c *ArtifactService_GetArtifactNamesByAssetIDAndAssetVersionName_Call) Run(run func(assetID uuid.UUID, assetVersionName string)) *ArtifactService_GetArtifactNamesByAssetIDAndAssetVersionName_Call
- func (_c *ArtifactService_GetArtifactNamesByAssetIDAndAssetVersionName_Call) RunAndReturn(...) *ArtifactService_GetArtifactNamesByAssetIDAndAssetVersionName_Call
- type ArtifactService_SaveArtifact_Call
- func (_c *ArtifactService_SaveArtifact_Call) Return(err error) *ArtifactService_SaveArtifact_Call
- func (_c *ArtifactService_SaveArtifact_Call) Run(run func(artifact *models.Artifact)) *ArtifactService_SaveArtifact_Call
- func (_c *ArtifactService_SaveArtifact_Call) RunAndReturn(run func(artifact *models.Artifact) error) *ArtifactService_SaveArtifact_Call
- type AssetRepository
- func (_mock *AssetRepository) Activate(tx core.DB, id uuid.UUID) error
- func (_mock *AssetRepository) All() ([]models.Asset, error)
- func (_mock *AssetRepository) Begin() core.DB
- func (_mock *AssetRepository) Create(tx core.DB, t *models.Asset) error
- func (_mock *AssetRepository) CreateBatch(tx core.DB, ts []models.Asset) error
- func (_mock *AssetRepository) Delete(tx core.DB, id uuid.UUID) error
- func (_mock *AssetRepository) DeleteBatch(tx core.DB, ids []models.Asset) error
- func (_m *AssetRepository) EXPECT() *AssetRepository_Expecter
- func (_mock *AssetRepository) FindAssetByExternalProviderID(externalEntityProviderID string, externalEntityID string) (*models.Asset, error)
- func (_mock *AssetRepository) FindByName(name string) (models.Asset, error)
- func (_mock *AssetRepository) GetAllAssetsFromDB() ([]models.Asset, error)
- func (_mock *AssetRepository) GetAssetIDByBadgeSecret(badgeSecret uuid.UUID) (models.Asset, error)
- func (_mock *AssetRepository) GetAssetIDBySlug(projectID uuid.UUID, slug string) (uuid.UUID, error)
- func (_mock *AssetRepository) GetByOrgID(organizationID uuid.UUID) ([]models.Asset, error)
- func (_mock *AssetRepository) GetByProjectID(projectID uuid.UUID) ([]models.Asset, error)
- func (_mock *AssetRepository) GetDB(tx core.DB) core.DB
- func (_mock *AssetRepository) GetFQNByID(id uuid.UUID) (string, error)
- func (_mock *AssetRepository) List(ids []uuid.UUID) ([]models.Asset, error)
- func (_mock *AssetRepository) Read(id uuid.UUID) (models.Asset, error)
- func (_mock *AssetRepository) ReadBySlug(projectID uuid.UUID, slug string) (models.Asset, error)
- func (_mock *AssetRepository) ReadBySlugUnscoped(projectID uuid.UUID, slug string) (models.Asset, error)
- func (_mock *AssetRepository) ReadWithAssetVersions(assetID uuid.UUID) (models.Asset, error)
- func (_mock *AssetRepository) Save(tx core.DB, t *models.Asset) error
- func (_mock *AssetRepository) SaveBatch(tx core.DB, ts []models.Asset) error
- func (_mock *AssetRepository) Transaction(fn func(tx core.DB) error) error
- func (_mock *AssetRepository) Update(tx core.DB, asset *models.Asset) error
- func (_mock *AssetRepository) Upsert(t *[]*models.Asset, conflictingColumns []clause.Column, updateOnly []string) error
- type AssetRepository_Activate_Call
- func (_c *AssetRepository_Activate_Call) Return(err error) *AssetRepository_Activate_Call
- func (_c *AssetRepository_Activate_Call) Run(run func(tx core.DB, id uuid.UUID)) *AssetRepository_Activate_Call
- func (_c *AssetRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *AssetRepository_Activate_Call
- type AssetRepository_All_Call
- type AssetRepository_Begin_Call
- type AssetRepository_CreateBatch_Call
- func (_c *AssetRepository_CreateBatch_Call) Return(err error) *AssetRepository_CreateBatch_Call
- func (_c *AssetRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.Asset)) *AssetRepository_CreateBatch_Call
- func (_c *AssetRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Asset) error) *AssetRepository_CreateBatch_Call
- type AssetRepository_Create_Call
- func (_c *AssetRepository_Create_Call) Return(err error) *AssetRepository_Create_Call
- func (_c *AssetRepository_Create_Call) Run(run func(tx core.DB, t *models.Asset)) *AssetRepository_Create_Call
- func (_c *AssetRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.Asset) error) *AssetRepository_Create_Call
- type AssetRepository_DeleteBatch_Call
- func (_c *AssetRepository_DeleteBatch_Call) Return(err error) *AssetRepository_DeleteBatch_Call
- func (_c *AssetRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.Asset)) *AssetRepository_DeleteBatch_Call
- func (_c *AssetRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.Asset) error) *AssetRepository_DeleteBatch_Call
- type AssetRepository_Delete_Call
- func (_c *AssetRepository_Delete_Call) Return(err error) *AssetRepository_Delete_Call
- func (_c *AssetRepository_Delete_Call) Run(run func(tx core.DB, id uuid.UUID)) *AssetRepository_Delete_Call
- func (_c *AssetRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id 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) All() *AssetRepository_All_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) DeleteBatch(tx interface{}, ids interface{}) *AssetRepository_DeleteBatch_Call
- func (_e *AssetRepository_Expecter) FindAssetByExternalProviderID(externalEntityProviderID interface{}, externalEntityID interface{}) *AssetRepository_FindAssetByExternalProviderID_Call
- func (_e *AssetRepository_Expecter) FindByName(name interface{}) *AssetRepository_FindByName_Call
- func (_e *AssetRepository_Expecter) GetAllAssetsFromDB() *AssetRepository_GetAllAssetsFromDB_Call
- func (_e *AssetRepository_Expecter) GetAssetIDByBadgeSecret(badgeSecret interface{}) *AssetRepository_GetAssetIDByBadgeSecret_Call
- func (_e *AssetRepository_Expecter) GetAssetIDBySlug(projectID interface{}, slug interface{}) *AssetRepository_GetAssetIDBySlug_Call
- func (_e *AssetRepository_Expecter) GetByOrgID(organizationID interface{}) *AssetRepository_GetByOrgID_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) GetFQNByID(id interface{}) *AssetRepository_GetFQNByID_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) ReadWithAssetVersions(assetID interface{}) *AssetRepository_ReadWithAssetVersions_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(fn interface{}) *AssetRepository_Transaction_Call
- func (_e *AssetRepository_Expecter) Update(tx interface{}, asset interface{}) *AssetRepository_Update_Call
- func (_e *AssetRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *AssetRepository_Upsert_Call
- type AssetRepository_FindAssetByExternalProviderID_Call
- func (_c *AssetRepository_FindAssetByExternalProviderID_Call) Return(asset *models.Asset, err error) *AssetRepository_FindAssetByExternalProviderID_Call
- func (_c *AssetRepository_FindAssetByExternalProviderID_Call) Run(run func(externalEntityProviderID string, externalEntityID string)) *AssetRepository_FindAssetByExternalProviderID_Call
- func (_c *AssetRepository_FindAssetByExternalProviderID_Call) RunAndReturn(...) *AssetRepository_FindAssetByExternalProviderID_Call
- type AssetRepository_FindByName_Call
- func (_c *AssetRepository_FindByName_Call) Return(asset models.Asset, err 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(name string) (models.Asset, error)) *AssetRepository_FindByName_Call
- type AssetRepository_GetAllAssetsFromDB_Call
- func (_c *AssetRepository_GetAllAssetsFromDB_Call) Return(assets []models.Asset, err error) *AssetRepository_GetAllAssetsFromDB_Call
- func (_c *AssetRepository_GetAllAssetsFromDB_Call) Run(run func()) *AssetRepository_GetAllAssetsFromDB_Call
- func (_c *AssetRepository_GetAllAssetsFromDB_Call) RunAndReturn(run func() ([]models.Asset, error)) *AssetRepository_GetAllAssetsFromDB_Call
- type AssetRepository_GetAssetIDByBadgeSecret_Call
- func (_c *AssetRepository_GetAssetIDByBadgeSecret_Call) Return(asset models.Asset, err error) *AssetRepository_GetAssetIDByBadgeSecret_Call
- func (_c *AssetRepository_GetAssetIDByBadgeSecret_Call) Run(run func(badgeSecret uuid.UUID)) *AssetRepository_GetAssetIDByBadgeSecret_Call
- func (_c *AssetRepository_GetAssetIDByBadgeSecret_Call) RunAndReturn(run func(badgeSecret uuid.UUID) (models.Asset, error)) *AssetRepository_GetAssetIDByBadgeSecret_Call
- type AssetRepository_GetAssetIDBySlug_Call
- func (_c *AssetRepository_GetAssetIDBySlug_Call) Return(uUID uuid.UUID, err 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(projectID uuid.UUID, slug string) (uuid.UUID, error)) *AssetRepository_GetAssetIDBySlug_Call
- type AssetRepository_GetByOrgID_Call
- func (_c *AssetRepository_GetByOrgID_Call) Return(assets []models.Asset, err error) *AssetRepository_GetByOrgID_Call
- func (_c *AssetRepository_GetByOrgID_Call) Run(run func(organizationID uuid.UUID)) *AssetRepository_GetByOrgID_Call
- func (_c *AssetRepository_GetByOrgID_Call) RunAndReturn(run func(organizationID uuid.UUID) ([]models.Asset, error)) *AssetRepository_GetByOrgID_Call
- type AssetRepository_GetByProjectID_Call
- func (_c *AssetRepository_GetByProjectID_Call) Return(assets []models.Asset, err 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(projectID uuid.UUID) ([]models.Asset, error)) *AssetRepository_GetByProjectID_Call
- type AssetRepository_GetDB_Call
- type AssetRepository_GetFQNByID_Call
- func (_c *AssetRepository_GetFQNByID_Call) Return(s string, err error) *AssetRepository_GetFQNByID_Call
- func (_c *AssetRepository_GetFQNByID_Call) Run(run func(id uuid.UUID)) *AssetRepository_GetFQNByID_Call
- func (_c *AssetRepository_GetFQNByID_Call) RunAndReturn(run func(id uuid.UUID) (string, error)) *AssetRepository_GetFQNByID_Call
- type AssetRepository_List_Call
- func (_c *AssetRepository_List_Call) Return(assets []models.Asset, err 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(ids []uuid.UUID) ([]models.Asset, error)) *AssetRepository_List_Call
- type AssetRepository_ReadBySlugUnscoped_Call
- func (_c *AssetRepository_ReadBySlugUnscoped_Call) Return(asset models.Asset, err 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(projectID uuid.UUID, slug string) (models.Asset, error)) *AssetRepository_ReadBySlugUnscoped_Call
- type AssetRepository_ReadBySlug_Call
- func (_c *AssetRepository_ReadBySlug_Call) Return(asset models.Asset, err 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(projectID uuid.UUID, slug string) (models.Asset, error)) *AssetRepository_ReadBySlug_Call
- type AssetRepository_ReadWithAssetVersions_Call
- func (_c *AssetRepository_ReadWithAssetVersions_Call) Return(asset models.Asset, err error) *AssetRepository_ReadWithAssetVersions_Call
- func (_c *AssetRepository_ReadWithAssetVersions_Call) Run(run func(assetID uuid.UUID)) *AssetRepository_ReadWithAssetVersions_Call
- func (_c *AssetRepository_ReadWithAssetVersions_Call) RunAndReturn(run func(assetID uuid.UUID) (models.Asset, error)) *AssetRepository_ReadWithAssetVersions_Call
- type AssetRepository_Read_Call
- func (_c *AssetRepository_Read_Call) Return(asset models.Asset, err 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(id uuid.UUID) (models.Asset, error)) *AssetRepository_Read_Call
- type AssetRepository_SaveBatch_Call
- func (_c *AssetRepository_SaveBatch_Call) Return(err error) *AssetRepository_SaveBatch_Call
- func (_c *AssetRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.Asset)) *AssetRepository_SaveBatch_Call
- func (_c *AssetRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Asset) error) *AssetRepository_SaveBatch_Call
- type AssetRepository_Save_Call
- func (_c *AssetRepository_Save_Call) Return(err error) *AssetRepository_Save_Call
- func (_c *AssetRepository_Save_Call) Run(run func(tx core.DB, t *models.Asset)) *AssetRepository_Save_Call
- func (_c *AssetRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *models.Asset) error) *AssetRepository_Save_Call
- type AssetRepository_Transaction_Call
- func (_c *AssetRepository_Transaction_Call) Return(err error) *AssetRepository_Transaction_Call
- func (_c *AssetRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *AssetRepository_Transaction_Call
- func (_c *AssetRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *AssetRepository_Transaction_Call
- type AssetRepository_Update_Call
- func (_c *AssetRepository_Update_Call) Return(err error) *AssetRepository_Update_Call
- func (_c *AssetRepository_Update_Call) Run(run func(tx core.DB, asset *models.Asset)) *AssetRepository_Update_Call
- func (_c *AssetRepository_Update_Call) RunAndReturn(run func(tx core.DB, asset *models.Asset) error) *AssetRepository_Update_Call
- type AssetRepository_Upsert_Call
- type AssetService
- func (_mock *AssetService) CreateAsset(asset models.Asset) (*models.Asset, error)
- func (_m *AssetService) EXPECT() *AssetService_Expecter
- func (_mock *AssetService) GetCVSSBadgeSVG(results []models.ArtifactRiskHistory) string
- func (_mock *AssetService) UpdateAssetRequirements(asset models.Asset, responsible string, justification string) error
- type AssetService_CreateAsset_Call
- func (_c *AssetService_CreateAsset_Call) Return(asset1 *models.Asset, err error) *AssetService_CreateAsset_Call
- func (_c *AssetService_CreateAsset_Call) Run(run func(asset models.Asset)) *AssetService_CreateAsset_Call
- func (_c *AssetService_CreateAsset_Call) RunAndReturn(run func(asset models.Asset) (*models.Asset, error)) *AssetService_CreateAsset_Call
- type AssetService_Expecter
- func (_e *AssetService_Expecter) CreateAsset(asset interface{}) *AssetService_CreateAsset_Call
- func (_e *AssetService_Expecter) GetCVSSBadgeSVG(results interface{}) *AssetService_GetCVSSBadgeSVG_Call
- func (_e *AssetService_Expecter) UpdateAssetRequirements(asset interface{}, responsible interface{}, justification interface{}) *AssetService_UpdateAssetRequirements_Call
- type AssetService_GetCVSSBadgeSVG_Call
- func (_c *AssetService_GetCVSSBadgeSVG_Call) Return(s string) *AssetService_GetCVSSBadgeSVG_Call
- func (_c *AssetService_GetCVSSBadgeSVG_Call) Run(run func(results []models.ArtifactRiskHistory)) *AssetService_GetCVSSBadgeSVG_Call
- func (_c *AssetService_GetCVSSBadgeSVG_Call) RunAndReturn(run func(results []models.ArtifactRiskHistory) string) *AssetService_GetCVSSBadgeSVG_Call
- type AssetService_UpdateAssetRequirements_Call
- func (_c *AssetService_UpdateAssetRequirements_Call) Return(err error) *AssetService_UpdateAssetRequirements_Call
- func (_c *AssetService_UpdateAssetRequirements_Call) Run(run func(asset models.Asset, responsible string, justification string)) *AssetService_UpdateAssetRequirements_Call
- func (_c *AssetService_UpdateAssetRequirements_Call) RunAndReturn(run func(asset models.Asset, responsible string, justification string) error) *AssetService_UpdateAssetRequirements_Call
- type AssetVersionRepository
- func (_mock *AssetVersionRepository) All() ([]models.AssetVersion, error)
- func (_mock *AssetVersionRepository) Delete(tx core.DB, assetVersion *models.AssetVersion) error
- func (_m *AssetVersionRepository) EXPECT() *AssetVersionRepository_Expecter
- func (_mock *AssetVersionRepository) FindOrCreate(assetVersionName string, assetID uuid.UUID, tag bool, ...) (models.AssetVersion, error)
- func (_mock *AssetVersionRepository) GetAllAssetsVersionFromDBByAssetID(tx core.DB, assetID uuid.UUID) ([]models.AssetVersion, error)
- func (_mock *AssetVersionRepository) GetDB(v core.DB) core.DB
- func (_mock *AssetVersionRepository) GetDefaultAssetVersion(assetID uuid.UUID) (models.AssetVersion, error)
- func (_mock *AssetVersionRepository) GetDefaultAssetVersionsByProjectID(projectID uuid.UUID) ([]models.AssetVersion, error)
- func (_mock *AssetVersionRepository) GetDefaultAssetVersionsByProjectIDs(projectIDs []uuid.UUID) ([]models.AssetVersion, error)
- func (_mock *AssetVersionRepository) Read(assetVersionName string, assetID uuid.UUID) (models.AssetVersion, error)
- func (_mock *AssetVersionRepository) ReadBySlug(assetID uuid.UUID, slug string) (models.AssetVersion, error)
- func (_mock *AssetVersionRepository) Save(tx core.DB, assetVersion *models.AssetVersion) error
- type AssetVersionRepository_All_Call
- func (_c *AssetVersionRepository_All_Call) Return(assetVersions []models.AssetVersion, err error) *AssetVersionRepository_All_Call
- func (_c *AssetVersionRepository_All_Call) Run(run func()) *AssetVersionRepository_All_Call
- func (_c *AssetVersionRepository_All_Call) RunAndReturn(run func() ([]models.AssetVersion, error)) *AssetVersionRepository_All_Call
- type AssetVersionRepository_Delete_Call
- func (_c *AssetVersionRepository_Delete_Call) Return(err error) *AssetVersionRepository_Delete_Call
- func (_c *AssetVersionRepository_Delete_Call) Run(run func(tx core.DB, assetVersion *models.AssetVersion)) *AssetVersionRepository_Delete_Call
- func (_c *AssetVersionRepository_Delete_Call) RunAndReturn(run func(tx core.DB, assetVersion *models.AssetVersion) error) *AssetVersionRepository_Delete_Call
- type AssetVersionRepository_Expecter
- func (_e *AssetVersionRepository_Expecter) All() *AssetVersionRepository_All_Call
- func (_e *AssetVersionRepository_Expecter) Delete(tx interface{}, assetVersion interface{}) *AssetVersionRepository_Delete_Call
- func (_e *AssetVersionRepository_Expecter) FindOrCreate(assetVersionName interface{}, assetID interface{}, tag interface{}, ...) *AssetVersionRepository_FindOrCreate_Call
- func (_e *AssetVersionRepository_Expecter) GetAllAssetsVersionFromDBByAssetID(tx interface{}, assetID interface{}) *AssetVersionRepository_GetAllAssetsVersionFromDBByAssetID_Call
- func (_e *AssetVersionRepository_Expecter) GetDB(v interface{}) *AssetVersionRepository_GetDB_Call
- func (_e *AssetVersionRepository_Expecter) GetDefaultAssetVersion(assetID interface{}) *AssetVersionRepository_GetDefaultAssetVersion_Call
- func (_e *AssetVersionRepository_Expecter) GetDefaultAssetVersionsByProjectID(projectID interface{}) *AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call
- func (_e *AssetVersionRepository_Expecter) GetDefaultAssetVersionsByProjectIDs(projectIDs interface{}) *AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call
- func (_e *AssetVersionRepository_Expecter) Read(assetVersionName interface{}, assetID interface{}) *AssetVersionRepository_Read_Call
- func (_e *AssetVersionRepository_Expecter) ReadBySlug(assetID interface{}, slug interface{}) *AssetVersionRepository_ReadBySlug_Call
- func (_e *AssetVersionRepository_Expecter) Save(tx interface{}, assetVersion interface{}) *AssetVersionRepository_Save_Call
- type AssetVersionRepository_FindOrCreate_Call
- func (_c *AssetVersionRepository_FindOrCreate_Call) Return(assetVersion models.AssetVersion, err error) *AssetVersionRepository_FindOrCreate_Call
- func (_c *AssetVersionRepository_FindOrCreate_Call) Run(run func(assetVersionName string, assetID uuid.UUID, tag bool, ...)) *AssetVersionRepository_FindOrCreate_Call
- func (_c *AssetVersionRepository_FindOrCreate_Call) RunAndReturn(...) *AssetVersionRepository_FindOrCreate_Call
- type AssetVersionRepository_GetAllAssetsVersionFromDBByAssetID_Call
- func (_c *AssetVersionRepository_GetAllAssetsVersionFromDBByAssetID_Call) Return(assetVersions []models.AssetVersion, err error) *AssetVersionRepository_GetAllAssetsVersionFromDBByAssetID_Call
- func (_c *AssetVersionRepository_GetAllAssetsVersionFromDBByAssetID_Call) Run(run func(tx core.DB, assetID uuid.UUID)) *AssetVersionRepository_GetAllAssetsVersionFromDBByAssetID_Call
- func (_c *AssetVersionRepository_GetAllAssetsVersionFromDBByAssetID_Call) RunAndReturn(run func(tx core.DB, assetID uuid.UUID) ([]models.AssetVersion, error)) *AssetVersionRepository_GetAllAssetsVersionFromDBByAssetID_Call
- type AssetVersionRepository_GetDB_Call
- func (_c *AssetVersionRepository_GetDB_Call) Return(v1 core.DB) *AssetVersionRepository_GetDB_Call
- func (_c *AssetVersionRepository_GetDB_Call) Run(run func(v core.DB)) *AssetVersionRepository_GetDB_Call
- func (_c *AssetVersionRepository_GetDB_Call) RunAndReturn(run func(v core.DB) core.DB) *AssetVersionRepository_GetDB_Call
- type AssetVersionRepository_GetDefaultAssetVersion_Call
- func (_c *AssetVersionRepository_GetDefaultAssetVersion_Call) Return(assetVersion models.AssetVersion, err error) *AssetVersionRepository_GetDefaultAssetVersion_Call
- func (_c *AssetVersionRepository_GetDefaultAssetVersion_Call) Run(run func(assetID uuid.UUID)) *AssetVersionRepository_GetDefaultAssetVersion_Call
- func (_c *AssetVersionRepository_GetDefaultAssetVersion_Call) RunAndReturn(run func(assetID uuid.UUID) (models.AssetVersion, error)) *AssetVersionRepository_GetDefaultAssetVersion_Call
- type AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call
- func (_c *AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call) Return(assetVersions []models.AssetVersion, err error) *AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call
- func (_c *AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call) Run(run func(projectID uuid.UUID)) *AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call
- func (_c *AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call) RunAndReturn(run func(projectID uuid.UUID) ([]models.AssetVersion, error)) *AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call
- type AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call
- func (_c *AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call) Return(assetVersions []models.AssetVersion, err error) *AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call
- func (_c *AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call) Run(run func(projectIDs []uuid.UUID)) *AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call
- func (_c *AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call) RunAndReturn(run func(projectIDs []uuid.UUID) ([]models.AssetVersion, error)) *AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call
- type AssetVersionRepository_ReadBySlug_Call
- func (_c *AssetVersionRepository_ReadBySlug_Call) Return(assetVersion models.AssetVersion, err error) *AssetVersionRepository_ReadBySlug_Call
- func (_c *AssetVersionRepository_ReadBySlug_Call) Run(run func(assetID uuid.UUID, slug string)) *AssetVersionRepository_ReadBySlug_Call
- func (_c *AssetVersionRepository_ReadBySlug_Call) RunAndReturn(run func(assetID uuid.UUID, slug string) (models.AssetVersion, error)) *AssetVersionRepository_ReadBySlug_Call
- type AssetVersionRepository_Read_Call
- func (_c *AssetVersionRepository_Read_Call) Return(assetVersion models.AssetVersion, err error) *AssetVersionRepository_Read_Call
- func (_c *AssetVersionRepository_Read_Call) Run(run func(assetVersionName string, assetID uuid.UUID)) *AssetVersionRepository_Read_Call
- func (_c *AssetVersionRepository_Read_Call) RunAndReturn(...) *AssetVersionRepository_Read_Call
- type AssetVersionRepository_Save_Call
- func (_c *AssetVersionRepository_Save_Call) Return(err error) *AssetVersionRepository_Save_Call
- func (_c *AssetVersionRepository_Save_Call) Run(run func(tx core.DB, assetVersion *models.AssetVersion)) *AssetVersionRepository_Save_Call
- func (_c *AssetVersionRepository_Save_Call) RunAndReturn(run func(tx core.DB, assetVersion *models.AssetVersion) error) *AssetVersionRepository_Save_Call
- type AssetVersionService
- func (_mock *AssetVersionService) BuildOpenVeX(asset models.Asset, assetVersion models.AssetVersion, organizationSlug string, ...) vex.VEX
- func (_mock *AssetVersionService) BuildSBOM(assetVersion models.AssetVersion, artifactName string, version string, ...) (*cyclonedx.BOM, error)
- func (_mock *AssetVersionService) BuildVeX(asset models.Asset, assetVersion models.AssetVersion, artifactName string, ...) *cyclonedx.BOM
- func (_m *AssetVersionService) EXPECT() *AssetVersionService_Expecter
- func (_mock *AssetVersionService) GetAssetVersionsByAssetID(assetID uuid.UUID) ([]models.AssetVersion, error)
- func (_mock *AssetVersionService) HandleFirstPartyVulnResult(org models.Org, project models.Project, asset models.Asset, ...) ([]models.FirstPartyVuln, []models.FirstPartyVuln, []models.FirstPartyVuln, ...)
- func (_mock *AssetVersionService) HandleScanResult(org models.Org, project models.Project, asset models.Asset, ...) ([]models.DependencyVuln, []models.DependencyVuln, []models.DependencyVuln, ...)
- func (_mock *AssetVersionService) UpdateSBOM(org models.Org, project models.Project, asset models.Asset, ...) error
- type AssetVersionService_BuildOpenVeX_Call
- func (_c *AssetVersionService_BuildOpenVeX_Call) Return(vEX vex.VEX) *AssetVersionService_BuildOpenVeX_Call
- func (_c *AssetVersionService_BuildOpenVeX_Call) Run(...) *AssetVersionService_BuildOpenVeX_Call
- func (_c *AssetVersionService_BuildOpenVeX_Call) RunAndReturn(...) *AssetVersionService_BuildOpenVeX_Call
- type AssetVersionService_BuildSBOM_Call
- func (_c *AssetVersionService_BuildSBOM_Call) Return(bOM *cyclonedx.BOM, err error) *AssetVersionService_BuildSBOM_Call
- func (_c *AssetVersionService_BuildSBOM_Call) Run(...) *AssetVersionService_BuildSBOM_Call
- func (_c *AssetVersionService_BuildSBOM_Call) RunAndReturn(...) *AssetVersionService_BuildSBOM_Call
- type AssetVersionService_BuildVeX_Call
- type AssetVersionService_Expecter
- func (_e *AssetVersionService_Expecter) BuildOpenVeX(asset interface{}, assetVersion interface{}, organizationSlug interface{}, ...) *AssetVersionService_BuildOpenVeX_Call
- func (_e *AssetVersionService_Expecter) BuildSBOM(assetVersion interface{}, artifactName interface{}, version interface{}, ...) *AssetVersionService_BuildSBOM_Call
- func (_e *AssetVersionService_Expecter) BuildVeX(asset interface{}, assetVersion interface{}, artifactName interface{}, ...) *AssetVersionService_BuildVeX_Call
- func (_e *AssetVersionService_Expecter) GetAssetVersionsByAssetID(assetID interface{}) *AssetVersionService_GetAssetVersionsByAssetID_Call
- func (_e *AssetVersionService_Expecter) HandleFirstPartyVulnResult(org interface{}, project interface{}, asset interface{}, ...) *AssetVersionService_HandleFirstPartyVulnResult_Call
- func (_e *AssetVersionService_Expecter) HandleScanResult(org interface{}, project interface{}, asset interface{}, ...) *AssetVersionService_HandleScanResult_Call
- func (_e *AssetVersionService_Expecter) UpdateSBOM(org interface{}, project interface{}, asset interface{}, ...) *AssetVersionService_UpdateSBOM_Call
- type AssetVersionService_GetAssetVersionsByAssetID_Call
- func (_c *AssetVersionService_GetAssetVersionsByAssetID_Call) Return(assetVersions []models.AssetVersion, err error) *AssetVersionService_GetAssetVersionsByAssetID_Call
- func (_c *AssetVersionService_GetAssetVersionsByAssetID_Call) Run(run func(assetID uuid.UUID)) *AssetVersionService_GetAssetVersionsByAssetID_Call
- func (_c *AssetVersionService_GetAssetVersionsByAssetID_Call) RunAndReturn(run func(assetID uuid.UUID) ([]models.AssetVersion, error)) *AssetVersionService_GetAssetVersionsByAssetID_Call
- type AssetVersionService_HandleFirstPartyVulnResult_Call
- func (_c *AssetVersionService_HandleFirstPartyVulnResult_Call) Return(firstPartyVulns []models.FirstPartyVuln, ...) *AssetVersionService_HandleFirstPartyVulnResult_Call
- func (_c *AssetVersionService_HandleFirstPartyVulnResult_Call) Run(run func(org models.Org, project models.Project, asset models.Asset, ...)) *AssetVersionService_HandleFirstPartyVulnResult_Call
- func (_c *AssetVersionService_HandleFirstPartyVulnResult_Call) RunAndReturn(...) *AssetVersionService_HandleFirstPartyVulnResult_Call
- type AssetVersionService_HandleScanResult_Call
- func (_c *AssetVersionService_HandleScanResult_Call) Return(opened []models.DependencyVuln, closed []models.DependencyVuln, ...) *AssetVersionService_HandleScanResult_Call
- func (_c *AssetVersionService_HandleScanResult_Call) Run(run func(org models.Org, project models.Project, asset models.Asset, ...)) *AssetVersionService_HandleScanResult_Call
- func (_c *AssetVersionService_HandleScanResult_Call) RunAndReturn(...) *AssetVersionService_HandleScanResult_Call
- type AssetVersionService_UpdateSBOM_Call
- func (_c *AssetVersionService_UpdateSBOM_Call) Return(err error) *AssetVersionService_UpdateSBOM_Call
- func (_c *AssetVersionService_UpdateSBOM_Call) Run(run func(org models.Org, project models.Project, asset models.Asset, ...)) *AssetVersionService_UpdateSBOM_Call
- func (_c *AssetVersionService_UpdateSBOM_Call) RunAndReturn(...) *AssetVersionService_UpdateSBOM_Call
- type AttestationRepository
- func (_mock *AttestationRepository) Activate(tx core.DB, id string) error
- func (_mock *AttestationRepository) All() ([]models.Attestation, error)
- func (_mock *AttestationRepository) Begin() core.DB
- func (_mock *AttestationRepository) Create(tx core.DB, t *models.Attestation) error
- func (_mock *AttestationRepository) CreateBatch(tx core.DB, ts []models.Attestation) error
- func (_mock *AttestationRepository) Delete(tx core.DB, id string) error
- func (_mock *AttestationRepository) DeleteBatch(tx core.DB, ids []models.Attestation) error
- func (_m *AttestationRepository) EXPECT() *AttestationRepository_Expecter
- func (_mock *AttestationRepository) GetByAssetID(assetID uuid.UUID) ([]models.Attestation, error)
- func (_mock *AttestationRepository) GetByAssetVersionAndAssetID(assetID uuid.UUID, assetVersion string) ([]models.Attestation, error)
- func (_mock *AttestationRepository) GetDB(tx core.DB) core.DB
- func (_mock *AttestationRepository) List(ids []string) ([]models.Attestation, error)
- func (_mock *AttestationRepository) Read(id string) (models.Attestation, error)
- func (_mock *AttestationRepository) Save(tx core.DB, t *models.Attestation) error
- func (_mock *AttestationRepository) SaveBatch(tx core.DB, ts []models.Attestation) error
- func (_mock *AttestationRepository) Transaction(fn func(tx core.DB) error) error
- func (_mock *AttestationRepository) Upsert(t *[]*models.Attestation, conflictingColumns []clause.Column, ...) error
- type AttestationRepository_Activate_Call
- func (_c *AttestationRepository_Activate_Call) Return(err error) *AttestationRepository_Activate_Call
- func (_c *AttestationRepository_Activate_Call) Run(run func(tx core.DB, id string)) *AttestationRepository_Activate_Call
- func (_c *AttestationRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id string) error) *AttestationRepository_Activate_Call
- type AttestationRepository_All_Call
- func (_c *AttestationRepository_All_Call) Return(attestations []models.Attestation, err error) *AttestationRepository_All_Call
- func (_c *AttestationRepository_All_Call) Run(run func()) *AttestationRepository_All_Call
- func (_c *AttestationRepository_All_Call) RunAndReturn(run func() ([]models.Attestation, error)) *AttestationRepository_All_Call
- type AttestationRepository_Begin_Call
- func (_c *AttestationRepository_Begin_Call) Return(v core.DB) *AttestationRepository_Begin_Call
- func (_c *AttestationRepository_Begin_Call) Run(run func()) *AttestationRepository_Begin_Call
- func (_c *AttestationRepository_Begin_Call) RunAndReturn(run func() core.DB) *AttestationRepository_Begin_Call
- type AttestationRepository_CreateBatch_Call
- func (_c *AttestationRepository_CreateBatch_Call) Return(err error) *AttestationRepository_CreateBatch_Call
- func (_c *AttestationRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.Attestation)) *AttestationRepository_CreateBatch_Call
- func (_c *AttestationRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Attestation) error) *AttestationRepository_CreateBatch_Call
- type AttestationRepository_Create_Call
- func (_c *AttestationRepository_Create_Call) Return(err error) *AttestationRepository_Create_Call
- func (_c *AttestationRepository_Create_Call) Run(run func(tx core.DB, t *models.Attestation)) *AttestationRepository_Create_Call
- func (_c *AttestationRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.Attestation) error) *AttestationRepository_Create_Call
- type AttestationRepository_DeleteBatch_Call
- func (_c *AttestationRepository_DeleteBatch_Call) Return(err error) *AttestationRepository_DeleteBatch_Call
- func (_c *AttestationRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.Attestation)) *AttestationRepository_DeleteBatch_Call
- func (_c *AttestationRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.Attestation) error) *AttestationRepository_DeleteBatch_Call
- type AttestationRepository_Delete_Call
- func (_c *AttestationRepository_Delete_Call) Return(err error) *AttestationRepository_Delete_Call
- func (_c *AttestationRepository_Delete_Call) Run(run func(tx core.DB, id string)) *AttestationRepository_Delete_Call
- func (_c *AttestationRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id string) error) *AttestationRepository_Delete_Call
- type AttestationRepository_Expecter
- func (_e *AttestationRepository_Expecter) Activate(tx interface{}, id interface{}) *AttestationRepository_Activate_Call
- func (_e *AttestationRepository_Expecter) All() *AttestationRepository_All_Call
- func (_e *AttestationRepository_Expecter) Begin() *AttestationRepository_Begin_Call
- func (_e *AttestationRepository_Expecter) Create(tx interface{}, t interface{}) *AttestationRepository_Create_Call
- func (_e *AttestationRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *AttestationRepository_CreateBatch_Call
- func (_e *AttestationRepository_Expecter) Delete(tx interface{}, id interface{}) *AttestationRepository_Delete_Call
- func (_e *AttestationRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *AttestationRepository_DeleteBatch_Call
- func (_e *AttestationRepository_Expecter) GetByAssetID(assetID interface{}) *AttestationRepository_GetByAssetID_Call
- func (_e *AttestationRepository_Expecter) GetByAssetVersionAndAssetID(assetID interface{}, assetVersion interface{}) *AttestationRepository_GetByAssetVersionAndAssetID_Call
- func (_e *AttestationRepository_Expecter) GetDB(tx interface{}) *AttestationRepository_GetDB_Call
- func (_e *AttestationRepository_Expecter) List(ids interface{}) *AttestationRepository_List_Call
- func (_e *AttestationRepository_Expecter) Read(id interface{}) *AttestationRepository_Read_Call
- func (_e *AttestationRepository_Expecter) Save(tx interface{}, t interface{}) *AttestationRepository_Save_Call
- func (_e *AttestationRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *AttestationRepository_SaveBatch_Call
- func (_e *AttestationRepository_Expecter) Transaction(fn interface{}) *AttestationRepository_Transaction_Call
- func (_e *AttestationRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *AttestationRepository_Upsert_Call
- type AttestationRepository_GetByAssetID_Call
- func (_c *AttestationRepository_GetByAssetID_Call) Return(attestations []models.Attestation, err error) *AttestationRepository_GetByAssetID_Call
- func (_c *AttestationRepository_GetByAssetID_Call) Run(run func(assetID uuid.UUID)) *AttestationRepository_GetByAssetID_Call
- func (_c *AttestationRepository_GetByAssetID_Call) RunAndReturn(run func(assetID uuid.UUID) ([]models.Attestation, error)) *AttestationRepository_GetByAssetID_Call
- type AttestationRepository_GetByAssetVersionAndAssetID_Call
- func (_c *AttestationRepository_GetByAssetVersionAndAssetID_Call) Return(attestations []models.Attestation, err error) *AttestationRepository_GetByAssetVersionAndAssetID_Call
- func (_c *AttestationRepository_GetByAssetVersionAndAssetID_Call) Run(run func(assetID uuid.UUID, assetVersion string)) *AttestationRepository_GetByAssetVersionAndAssetID_Call
- func (_c *AttestationRepository_GetByAssetVersionAndAssetID_Call) RunAndReturn(run func(assetID uuid.UUID, assetVersion string) ([]models.Attestation, error)) *AttestationRepository_GetByAssetVersionAndAssetID_Call
- type AttestationRepository_GetDB_Call
- func (_c *AttestationRepository_GetDB_Call) Return(v core.DB) *AttestationRepository_GetDB_Call
- func (_c *AttestationRepository_GetDB_Call) Run(run func(tx core.DB)) *AttestationRepository_GetDB_Call
- func (_c *AttestationRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *AttestationRepository_GetDB_Call
- type AttestationRepository_List_Call
- func (_c *AttestationRepository_List_Call) Return(attestations []models.Attestation, err error) *AttestationRepository_List_Call
- func (_c *AttestationRepository_List_Call) Run(run func(ids []string)) *AttestationRepository_List_Call
- func (_c *AttestationRepository_List_Call) RunAndReturn(run func(ids []string) ([]models.Attestation, error)) *AttestationRepository_List_Call
- type AttestationRepository_Read_Call
- func (_c *AttestationRepository_Read_Call) Return(attestation models.Attestation, err error) *AttestationRepository_Read_Call
- func (_c *AttestationRepository_Read_Call) Run(run func(id string)) *AttestationRepository_Read_Call
- func (_c *AttestationRepository_Read_Call) RunAndReturn(run func(id string) (models.Attestation, error)) *AttestationRepository_Read_Call
- type AttestationRepository_SaveBatch_Call
- func (_c *AttestationRepository_SaveBatch_Call) Return(err error) *AttestationRepository_SaveBatch_Call
- func (_c *AttestationRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.Attestation)) *AttestationRepository_SaveBatch_Call
- func (_c *AttestationRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Attestation) error) *AttestationRepository_SaveBatch_Call
- type AttestationRepository_Save_Call
- func (_c *AttestationRepository_Save_Call) Return(err error) *AttestationRepository_Save_Call
- func (_c *AttestationRepository_Save_Call) Run(run func(tx core.DB, t *models.Attestation)) *AttestationRepository_Save_Call
- func (_c *AttestationRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *models.Attestation) error) *AttestationRepository_Save_Call
- type AttestationRepository_Transaction_Call
- func (_c *AttestationRepository_Transaction_Call) Return(err error) *AttestationRepository_Transaction_Call
- func (_c *AttestationRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *AttestationRepository_Transaction_Call
- func (_c *AttestationRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *AttestationRepository_Transaction_Call
- type AttestationRepository_Upsert_Call
- func (_c *AttestationRepository_Upsert_Call) Return(err error) *AttestationRepository_Upsert_Call
- func (_c *AttestationRepository_Upsert_Call) Run(run func(t *[]*models.Attestation, conflictingColumns []clause.Column, ...)) *AttestationRepository_Upsert_Call
- func (_c *AttestationRepository_Upsert_Call) RunAndReturn(...) *AttestationRepository_Upsert_Call
- type AuthSession
- type AuthSession_Expecter
- type AuthSession_GetScopes_Call
- type AuthSession_GetUserID_Call
- type Comparer
- type Comparer_Expecter
- type Comparer_GetVulns_Call
- func (_c *Comparer_GetVulns_Call) Return(vulnInPackages []models.VulnInPackage, err error) *Comparer_GetVulns_Call
- func (_c *Comparer_GetVulns_Call) Run(run func(purl string, notASemverVersion string, componentType string)) *Comparer_GetVulns_Call
- func (_c *Comparer_GetVulns_Call) RunAndReturn(...) *Comparer_GetVulns_Call
- type ComponentProjectRepository
- func (_mock *ComponentProjectRepository) Activate(tx core.DB, id string) error
- func (_mock *ComponentProjectRepository) All() ([]models.ComponentProject, error)
- func (_mock *ComponentProjectRepository) Begin() core.DB
- func (_mock *ComponentProjectRepository) Create(tx core.DB, t *models.ComponentProject) error
- func (_mock *ComponentProjectRepository) CreateBatch(tx core.DB, ts []models.ComponentProject) error
- func (_mock *ComponentProjectRepository) Delete(tx core.DB, id string) error
- func (_mock *ComponentProjectRepository) DeleteBatch(tx core.DB, ids []models.ComponentProject) error
- func (_m *ComponentProjectRepository) EXPECT() *ComponentProjectRepository_Expecter
- func (_mock *ComponentProjectRepository) GetDB(tx core.DB) core.DB
- func (_mock *ComponentProjectRepository) List(ids []string) ([]models.ComponentProject, error)
- func (_mock *ComponentProjectRepository) Read(id string) (models.ComponentProject, error)
- func (_mock *ComponentProjectRepository) Save(tx core.DB, t *models.ComponentProject) error
- func (_mock *ComponentProjectRepository) SaveBatch(tx core.DB, ts []models.ComponentProject) error
- func (_mock *ComponentProjectRepository) Transaction(fn func(tx core.DB) error) error
- func (_mock *ComponentProjectRepository) Upsert(t *[]*models.ComponentProject, conflictingColumns []clause.Column, ...) error
- type ComponentProjectRepository_Activate_Call
- func (_c *ComponentProjectRepository_Activate_Call) Return(err error) *ComponentProjectRepository_Activate_Call
- func (_c *ComponentProjectRepository_Activate_Call) Run(run func(tx core.DB, id string)) *ComponentProjectRepository_Activate_Call
- func (_c *ComponentProjectRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id string) error) *ComponentProjectRepository_Activate_Call
- type ComponentProjectRepository_All_Call
- func (_c *ComponentProjectRepository_All_Call) Return(componentProjects []models.ComponentProject, err error) *ComponentProjectRepository_All_Call
- func (_c *ComponentProjectRepository_All_Call) Run(run func()) *ComponentProjectRepository_All_Call
- func (_c *ComponentProjectRepository_All_Call) RunAndReturn(run func() ([]models.ComponentProject, error)) *ComponentProjectRepository_All_Call
- type ComponentProjectRepository_Begin_Call
- func (_c *ComponentProjectRepository_Begin_Call) Return(v core.DB) *ComponentProjectRepository_Begin_Call
- func (_c *ComponentProjectRepository_Begin_Call) Run(run func()) *ComponentProjectRepository_Begin_Call
- func (_c *ComponentProjectRepository_Begin_Call) RunAndReturn(run func() core.DB) *ComponentProjectRepository_Begin_Call
- type ComponentProjectRepository_CreateBatch_Call
- func (_c *ComponentProjectRepository_CreateBatch_Call) Return(err error) *ComponentProjectRepository_CreateBatch_Call
- func (_c *ComponentProjectRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.ComponentProject)) *ComponentProjectRepository_CreateBatch_Call
- func (_c *ComponentProjectRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.ComponentProject) error) *ComponentProjectRepository_CreateBatch_Call
- type ComponentProjectRepository_Create_Call
- func (_c *ComponentProjectRepository_Create_Call) Return(err error) *ComponentProjectRepository_Create_Call
- func (_c *ComponentProjectRepository_Create_Call) Run(run func(tx core.DB, t *models.ComponentProject)) *ComponentProjectRepository_Create_Call
- func (_c *ComponentProjectRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.ComponentProject) error) *ComponentProjectRepository_Create_Call
- type ComponentProjectRepository_DeleteBatch_Call
- func (_c *ComponentProjectRepository_DeleteBatch_Call) Return(err error) *ComponentProjectRepository_DeleteBatch_Call
- func (_c *ComponentProjectRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.ComponentProject)) *ComponentProjectRepository_DeleteBatch_Call
- func (_c *ComponentProjectRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.ComponentProject) error) *ComponentProjectRepository_DeleteBatch_Call
- type ComponentProjectRepository_Delete_Call
- func (_c *ComponentProjectRepository_Delete_Call) Return(err error) *ComponentProjectRepository_Delete_Call
- func (_c *ComponentProjectRepository_Delete_Call) Run(run func(tx core.DB, id string)) *ComponentProjectRepository_Delete_Call
- func (_c *ComponentProjectRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id string) error) *ComponentProjectRepository_Delete_Call
- type ComponentProjectRepository_Expecter
- func (_e *ComponentProjectRepository_Expecter) Activate(tx interface{}, id interface{}) *ComponentProjectRepository_Activate_Call
- func (_e *ComponentProjectRepository_Expecter) All() *ComponentProjectRepository_All_Call
- func (_e *ComponentProjectRepository_Expecter) Begin() *ComponentProjectRepository_Begin_Call
- func (_e *ComponentProjectRepository_Expecter) Create(tx interface{}, t interface{}) *ComponentProjectRepository_Create_Call
- func (_e *ComponentProjectRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *ComponentProjectRepository_CreateBatch_Call
- func (_e *ComponentProjectRepository_Expecter) Delete(tx interface{}, id interface{}) *ComponentProjectRepository_Delete_Call
- func (_e *ComponentProjectRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *ComponentProjectRepository_DeleteBatch_Call
- func (_e *ComponentProjectRepository_Expecter) GetDB(tx interface{}) *ComponentProjectRepository_GetDB_Call
- func (_e *ComponentProjectRepository_Expecter) List(ids interface{}) *ComponentProjectRepository_List_Call
- func (_e *ComponentProjectRepository_Expecter) Read(id interface{}) *ComponentProjectRepository_Read_Call
- func (_e *ComponentProjectRepository_Expecter) Save(tx interface{}, t interface{}) *ComponentProjectRepository_Save_Call
- func (_e *ComponentProjectRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *ComponentProjectRepository_SaveBatch_Call
- func (_e *ComponentProjectRepository_Expecter) Transaction(fn interface{}) *ComponentProjectRepository_Transaction_Call
- func (_e *ComponentProjectRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *ComponentProjectRepository_Upsert_Call
- type ComponentProjectRepository_GetDB_Call
- func (_c *ComponentProjectRepository_GetDB_Call) Return(v core.DB) *ComponentProjectRepository_GetDB_Call
- func (_c *ComponentProjectRepository_GetDB_Call) Run(run func(tx core.DB)) *ComponentProjectRepository_GetDB_Call
- func (_c *ComponentProjectRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *ComponentProjectRepository_GetDB_Call
- type ComponentProjectRepository_List_Call
- func (_c *ComponentProjectRepository_List_Call) Return(componentProjects []models.ComponentProject, err error) *ComponentProjectRepository_List_Call
- func (_c *ComponentProjectRepository_List_Call) Run(run func(ids []string)) *ComponentProjectRepository_List_Call
- func (_c *ComponentProjectRepository_List_Call) RunAndReturn(run func(ids []string) ([]models.ComponentProject, error)) *ComponentProjectRepository_List_Call
- type ComponentProjectRepository_Read_Call
- func (_c *ComponentProjectRepository_Read_Call) Return(componentProject models.ComponentProject, err error) *ComponentProjectRepository_Read_Call
- func (_c *ComponentProjectRepository_Read_Call) Run(run func(id string)) *ComponentProjectRepository_Read_Call
- func (_c *ComponentProjectRepository_Read_Call) RunAndReturn(run func(id string) (models.ComponentProject, error)) *ComponentProjectRepository_Read_Call
- type ComponentProjectRepository_SaveBatch_Call
- func (_c *ComponentProjectRepository_SaveBatch_Call) Return(err error) *ComponentProjectRepository_SaveBatch_Call
- func (_c *ComponentProjectRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.ComponentProject)) *ComponentProjectRepository_SaveBatch_Call
- func (_c *ComponentProjectRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.ComponentProject) error) *ComponentProjectRepository_SaveBatch_Call
- type ComponentProjectRepository_Save_Call
- func (_c *ComponentProjectRepository_Save_Call) Return(err error) *ComponentProjectRepository_Save_Call
- func (_c *ComponentProjectRepository_Save_Call) Run(run func(tx core.DB, t *models.ComponentProject)) *ComponentProjectRepository_Save_Call
- func (_c *ComponentProjectRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *models.ComponentProject) error) *ComponentProjectRepository_Save_Call
- type ComponentProjectRepository_Transaction_Call
- func (_c *ComponentProjectRepository_Transaction_Call) Return(err error) *ComponentProjectRepository_Transaction_Call
- func (_c *ComponentProjectRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *ComponentProjectRepository_Transaction_Call
- func (_c *ComponentProjectRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *ComponentProjectRepository_Transaction_Call
- type ComponentProjectRepository_Upsert_Call
- func (_c *ComponentProjectRepository_Upsert_Call) Return(err error) *ComponentProjectRepository_Upsert_Call
- func (_c *ComponentProjectRepository_Upsert_Call) Run(...) *ComponentProjectRepository_Upsert_Call
- func (_c *ComponentProjectRepository_Upsert_Call) RunAndReturn(...) *ComponentProjectRepository_Upsert_Call
- type ComponentRepository
- func (_mock *ComponentRepository) Activate(tx core.DB, id string) error
- func (_mock *ComponentRepository) All() ([]models.Component, error)
- func (_mock *ComponentRepository) Begin() core.DB
- func (_mock *ComponentRepository) Create(tx core.DB, t *models.Component) error
- func (_mock *ComponentRepository) CreateBatch(tx core.DB, ts []models.Component) error
- func (_mock *ComponentRepository) Delete(tx core.DB, id string) error
- func (_mock *ComponentRepository) DeleteBatch(tx core.DB, ids []models.Component) error
- func (_m *ComponentRepository) EXPECT() *ComponentRepository_Expecter
- func (_mock *ComponentRepository) FindByPurl(tx core.DB, purl string) (models.Component, error)
- func (_mock *ComponentRepository) GetDB(tx core.DB) core.DB
- func (_mock *ComponentRepository) GetLicenseDistribution(tx core.DB, assetVersionName string, assetID uuid.UUID, artifactName *string) (map[string]int, error)
- func (_mock *ComponentRepository) HandleStateDiff(tx core.DB, assetVersionName string, assetID uuid.UUID, ...) (bool, error)
- func (_mock *ComponentRepository) List(ids []string) ([]models.Component, error)
- func (_mock *ComponentRepository) LoadComponents(tx core.DB, assetVersionName string, assetID uuid.UUID, artifactName *string) ([]models.ComponentDependency, error)
- func (_mock *ComponentRepository) LoadComponentsWithProject(tx core.DB, overwrittenLicenses []models.LicenseRisk, assetVersionName string, ...) (core.Paged[models.ComponentDependency], error)
- func (_mock *ComponentRepository) LoadPathToComponent(tx core.DB, assetVersionName string, assetID uuid.UUID, pURL string, ...) ([]models.ComponentDependency, error)
- func (_mock *ComponentRepository) Read(id string) (models.Component, error)
- func (_mock *ComponentRepository) Save(tx core.DB, t *models.Component) error
- func (_mock *ComponentRepository) SaveBatch(tx core.DB, components []models.Component) error
- func (_mock *ComponentRepository) Transaction(fn func(tx core.DB) error) error
- func (_mock *ComponentRepository) Upsert(t *[]*models.Component, conflictingColumns []clause.Column, ...) error
- type ComponentRepository_Activate_Call
- func (_c *ComponentRepository_Activate_Call) Return(err error) *ComponentRepository_Activate_Call
- func (_c *ComponentRepository_Activate_Call) Run(run func(tx core.DB, id string)) *ComponentRepository_Activate_Call
- func (_c *ComponentRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id string) error) *ComponentRepository_Activate_Call
- type ComponentRepository_All_Call
- func (_c *ComponentRepository_All_Call) Return(components []models.Component, err error) *ComponentRepository_All_Call
- func (_c *ComponentRepository_All_Call) Run(run func()) *ComponentRepository_All_Call
- func (_c *ComponentRepository_All_Call) RunAndReturn(run func() ([]models.Component, error)) *ComponentRepository_All_Call
- type ComponentRepository_Begin_Call
- type ComponentRepository_CreateBatch_Call
- func (_c *ComponentRepository_CreateBatch_Call) Return(err error) *ComponentRepository_CreateBatch_Call
- func (_c *ComponentRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.Component)) *ComponentRepository_CreateBatch_Call
- func (_c *ComponentRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Component) error) *ComponentRepository_CreateBatch_Call
- type ComponentRepository_Create_Call
- func (_c *ComponentRepository_Create_Call) Return(err error) *ComponentRepository_Create_Call
- func (_c *ComponentRepository_Create_Call) Run(run func(tx core.DB, t *models.Component)) *ComponentRepository_Create_Call
- func (_c *ComponentRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.Component) error) *ComponentRepository_Create_Call
- type ComponentRepository_DeleteBatch_Call
- func (_c *ComponentRepository_DeleteBatch_Call) Return(err error) *ComponentRepository_DeleteBatch_Call
- func (_c *ComponentRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.Component)) *ComponentRepository_DeleteBatch_Call
- func (_c *ComponentRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.Component) error) *ComponentRepository_DeleteBatch_Call
- type ComponentRepository_Delete_Call
- func (_c *ComponentRepository_Delete_Call) Return(err error) *ComponentRepository_Delete_Call
- func (_c *ComponentRepository_Delete_Call) Run(run func(tx core.DB, id string)) *ComponentRepository_Delete_Call
- func (_c *ComponentRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id string) error) *ComponentRepository_Delete_Call
- type ComponentRepository_Expecter
- func (_e *ComponentRepository_Expecter) Activate(tx interface{}, id interface{}) *ComponentRepository_Activate_Call
- func (_e *ComponentRepository_Expecter) All() *ComponentRepository_All_Call
- func (_e *ComponentRepository_Expecter) Begin() *ComponentRepository_Begin_Call
- func (_e *ComponentRepository_Expecter) Create(tx interface{}, t interface{}) *ComponentRepository_Create_Call
- func (_e *ComponentRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *ComponentRepository_CreateBatch_Call
- func (_e *ComponentRepository_Expecter) Delete(tx interface{}, id interface{}) *ComponentRepository_Delete_Call
- func (_e *ComponentRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *ComponentRepository_DeleteBatch_Call
- func (_e *ComponentRepository_Expecter) FindByPurl(tx interface{}, purl interface{}) *ComponentRepository_FindByPurl_Call
- func (_e *ComponentRepository_Expecter) GetDB(tx interface{}) *ComponentRepository_GetDB_Call
- func (_e *ComponentRepository_Expecter) GetLicenseDistribution(tx interface{}, assetVersionName interface{}, assetID interface{}, ...) *ComponentRepository_GetLicenseDistribution_Call
- func (_e *ComponentRepository_Expecter) HandleStateDiff(tx interface{}, assetVersionName interface{}, assetID interface{}, ...) *ComponentRepository_HandleStateDiff_Call
- func (_e *ComponentRepository_Expecter) List(ids interface{}) *ComponentRepository_List_Call
- func (_e *ComponentRepository_Expecter) LoadComponents(tx interface{}, assetVersionName interface{}, assetID interface{}, ...) *ComponentRepository_LoadComponents_Call
- func (_e *ComponentRepository_Expecter) LoadComponentsWithProject(tx interface{}, overwrittenLicenses interface{}, assetVersionName interface{}, ...) *ComponentRepository_LoadComponentsWithProject_Call
- func (_e *ComponentRepository_Expecter) LoadPathToComponent(tx interface{}, assetVersionName interface{}, assetID interface{}, ...) *ComponentRepository_LoadPathToComponent_Call
- func (_e *ComponentRepository_Expecter) Read(id interface{}) *ComponentRepository_Read_Call
- func (_e *ComponentRepository_Expecter) Save(tx interface{}, t interface{}) *ComponentRepository_Save_Call
- func (_e *ComponentRepository_Expecter) SaveBatch(tx interface{}, components interface{}) *ComponentRepository_SaveBatch_Call
- func (_e *ComponentRepository_Expecter) Transaction(fn interface{}) *ComponentRepository_Transaction_Call
- func (_e *ComponentRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *ComponentRepository_Upsert_Call
- type ComponentRepository_FindByPurl_Call
- func (_c *ComponentRepository_FindByPurl_Call) Return(component models.Component, err error) *ComponentRepository_FindByPurl_Call
- func (_c *ComponentRepository_FindByPurl_Call) Run(run func(tx core.DB, purl string)) *ComponentRepository_FindByPurl_Call
- func (_c *ComponentRepository_FindByPurl_Call) RunAndReturn(run func(tx core.DB, purl string) (models.Component, error)) *ComponentRepository_FindByPurl_Call
- type ComponentRepository_GetDB_Call
- func (_c *ComponentRepository_GetDB_Call) Return(v core.DB) *ComponentRepository_GetDB_Call
- func (_c *ComponentRepository_GetDB_Call) Run(run func(tx core.DB)) *ComponentRepository_GetDB_Call
- func (_c *ComponentRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *ComponentRepository_GetDB_Call
- type ComponentRepository_GetLicenseDistribution_Call
- func (_c *ComponentRepository_GetLicenseDistribution_Call) Return(stringToInt map[string]int, err error) *ComponentRepository_GetLicenseDistribution_Call
- func (_c *ComponentRepository_GetLicenseDistribution_Call) Run(...) *ComponentRepository_GetLicenseDistribution_Call
- func (_c *ComponentRepository_GetLicenseDistribution_Call) RunAndReturn(...) *ComponentRepository_GetLicenseDistribution_Call
- type ComponentRepository_HandleStateDiff_Call
- func (_c *ComponentRepository_HandleStateDiff_Call) Return(b bool, err error) *ComponentRepository_HandleStateDiff_Call
- func (_c *ComponentRepository_HandleStateDiff_Call) Run(run func(tx core.DB, assetVersionName string, assetID uuid.UUID, ...)) *ComponentRepository_HandleStateDiff_Call
- func (_c *ComponentRepository_HandleStateDiff_Call) RunAndReturn(...) *ComponentRepository_HandleStateDiff_Call
- type ComponentRepository_List_Call
- func (_c *ComponentRepository_List_Call) Return(components []models.Component, err error) *ComponentRepository_List_Call
- func (_c *ComponentRepository_List_Call) Run(run func(ids []string)) *ComponentRepository_List_Call
- func (_c *ComponentRepository_List_Call) RunAndReturn(run func(ids []string) ([]models.Component, error)) *ComponentRepository_List_Call
- type ComponentRepository_LoadComponentsWithProject_Call
- func (_c *ComponentRepository_LoadComponentsWithProject_Call) Return(paged core.Paged[models.ComponentDependency], err error) *ComponentRepository_LoadComponentsWithProject_Call
- func (_c *ComponentRepository_LoadComponentsWithProject_Call) Run(...) *ComponentRepository_LoadComponentsWithProject_Call
- func (_c *ComponentRepository_LoadComponentsWithProject_Call) RunAndReturn(...) *ComponentRepository_LoadComponentsWithProject_Call
- type ComponentRepository_LoadComponents_Call
- func (_c *ComponentRepository_LoadComponents_Call) Return(componentDependencys []models.ComponentDependency, err error) *ComponentRepository_LoadComponents_Call
- func (_c *ComponentRepository_LoadComponents_Call) Run(...) *ComponentRepository_LoadComponents_Call
- func (_c *ComponentRepository_LoadComponents_Call) RunAndReturn(...) *ComponentRepository_LoadComponents_Call
- type ComponentRepository_LoadPathToComponent_Call
- func (_c *ComponentRepository_LoadPathToComponent_Call) Return(componentDependencys []models.ComponentDependency, err error) *ComponentRepository_LoadPathToComponent_Call
- func (_c *ComponentRepository_LoadPathToComponent_Call) Run(...) *ComponentRepository_LoadPathToComponent_Call
- func (_c *ComponentRepository_LoadPathToComponent_Call) RunAndReturn(...) *ComponentRepository_LoadPathToComponent_Call
- type ComponentRepository_Read_Call
- func (_c *ComponentRepository_Read_Call) Return(component models.Component, err error) *ComponentRepository_Read_Call
- func (_c *ComponentRepository_Read_Call) Run(run func(id string)) *ComponentRepository_Read_Call
- func (_c *ComponentRepository_Read_Call) RunAndReturn(run func(id string) (models.Component, error)) *ComponentRepository_Read_Call
- type ComponentRepository_SaveBatch_Call
- func (_c *ComponentRepository_SaveBatch_Call) Return(err error) *ComponentRepository_SaveBatch_Call
- func (_c *ComponentRepository_SaveBatch_Call) Run(run func(tx core.DB, components []models.Component)) *ComponentRepository_SaveBatch_Call
- func (_c *ComponentRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, components []models.Component) error) *ComponentRepository_SaveBatch_Call
- type ComponentRepository_Save_Call
- func (_c *ComponentRepository_Save_Call) Return(err error) *ComponentRepository_Save_Call
- func (_c *ComponentRepository_Save_Call) Run(run func(tx core.DB, t *models.Component)) *ComponentRepository_Save_Call
- func (_c *ComponentRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *models.Component) error) *ComponentRepository_Save_Call
- type ComponentRepository_Transaction_Call
- func (_c *ComponentRepository_Transaction_Call) Return(err error) *ComponentRepository_Transaction_Call
- func (_c *ComponentRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *ComponentRepository_Transaction_Call
- func (_c *ComponentRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *ComponentRepository_Transaction_Call
- type ComponentRepository_Upsert_Call
- func (_c *ComponentRepository_Upsert_Call) Return(err error) *ComponentRepository_Upsert_Call
- func (_c *ComponentRepository_Upsert_Call) Run(run func(t *[]*models.Component, conflictingColumns []clause.Column, ...)) *ComponentRepository_Upsert_Call
- func (_c *ComponentRepository_Upsert_Call) RunAndReturn(...) *ComponentRepository_Upsert_Call
- type ComponentService
- func (_m *ComponentService) EXPECT() *ComponentService_Expecter
- func (_mock *ComponentService) GetAndSaveLicenseInformation(assetVersion models.AssetVersion, artifactName *string, forceRefresh bool) ([]models.Component, error)
- func (_mock *ComponentService) GetLicense(component models.Component) (models.Component, error)
- func (_mock *ComponentService) RefreshComponentProjectInformation(project models.ComponentProject)
- type ComponentService_Expecter
- func (_e *ComponentService_Expecter) GetAndSaveLicenseInformation(assetVersion interface{}, artifactName interface{}, forceRefresh interface{}) *ComponentService_GetAndSaveLicenseInformation_Call
- func (_e *ComponentService_Expecter) GetLicense(component interface{}) *ComponentService_GetLicense_Call
- func (_e *ComponentService_Expecter) RefreshComponentProjectInformation(project interface{}) *ComponentService_RefreshComponentProjectInformation_Call
- type ComponentService_GetAndSaveLicenseInformation_Call
- func (_c *ComponentService_GetAndSaveLicenseInformation_Call) Return(components []models.Component, err error) *ComponentService_GetAndSaveLicenseInformation_Call
- func (_c *ComponentService_GetAndSaveLicenseInformation_Call) Run(...) *ComponentService_GetAndSaveLicenseInformation_Call
- func (_c *ComponentService_GetAndSaveLicenseInformation_Call) RunAndReturn(...) *ComponentService_GetAndSaveLicenseInformation_Call
- type ComponentService_GetLicense_Call
- func (_c *ComponentService_GetLicense_Call) Return(component1 models.Component, err error) *ComponentService_GetLicense_Call
- func (_c *ComponentService_GetLicense_Call) Run(run func(component models.Component)) *ComponentService_GetLicense_Call
- func (_c *ComponentService_GetLicense_Call) RunAndReturn(run func(component models.Component) (models.Component, error)) *ComponentService_GetLicense_Call
- type ComponentService_RefreshComponentProjectInformation_Call
- func (_c *ComponentService_RefreshComponentProjectInformation_Call) Return() *ComponentService_RefreshComponentProjectInformation_Call
- func (_c *ComponentService_RefreshComponentProjectInformation_Call) Run(run func(project models.ComponentProject)) *ComponentService_RefreshComponentProjectInformation_Call
- func (_c *ComponentService_RefreshComponentProjectInformation_Call) RunAndReturn(run func(project models.ComponentProject)) *ComponentService_RefreshComponentProjectInformation_Call
- type ConfigRepository
- type ConfigRepository_Expecter
- type ConfigRepository_GetDB_Call
- type ConfigRepository_Save_Call
- func (_c *ConfigRepository_Save_Call) Return(err error) *ConfigRepository_Save_Call
- func (_c *ConfigRepository_Save_Call) Run(run func(tx core.DB, config *models.Config)) *ConfigRepository_Save_Call
- func (_c *ConfigRepository_Save_Call) RunAndReturn(run func(tx core.DB, config *models.Config) error) *ConfigRepository_Save_Call
- type ConfigService
- type ConfigService_Expecter
- type ConfigService_GetJSONConfig_Call
- func (_c *ConfigService_GetJSONConfig_Call) Return(err error) *ConfigService_GetJSONConfig_Call
- func (_c *ConfigService_GetJSONConfig_Call) Run(run func(key string, v any)) *ConfigService_GetJSONConfig_Call
- func (_c *ConfigService_GetJSONConfig_Call) RunAndReturn(run func(key string, v any) error) *ConfigService_GetJSONConfig_Call
- type ConfigService_SetJSONConfig_Call
- func (_c *ConfigService_SetJSONConfig_Call) Return(err error) *ConfigService_SetJSONConfig_Call
- func (_c *ConfigService_SetJSONConfig_Call) Run(run func(key string, v any)) *ConfigService_SetJSONConfig_Call
- func (_c *ConfigService_SetJSONConfig_Call) RunAndReturn(run func(key string, v any) error) *ConfigService_SetJSONConfig_Call
- type Context
- func (_mock *Context) Attachment(file string, name string) error
- func (_mock *Context) Bind(i interface{}) error
- func (_mock *Context) Blob(code int, contentType string, b []byte) error
- func (_mock *Context) Cookie(name string) (*http.Cookie, error)
- func (_mock *Context) Cookies() []*http.Cookie
- func (_m *Context) EXPECT() *Context_Expecter
- func (_mock *Context) Echo() *echo.Echo
- func (_mock *Context) Error(err error)
- func (_mock *Context) File(file string) error
- func (_mock *Context) FormFile(name string) (*multipart.FileHeader, error)
- func (_mock *Context) FormParams() (url.Values, error)
- func (_mock *Context) FormValue(name string) string
- func (_mock *Context) Get(key string) interface{}
- func (_mock *Context) HTML(code int, html string) error
- func (_mock *Context) HTMLBlob(code int, b []byte) error
- func (_mock *Context) Handler() echo.HandlerFunc
- func (_mock *Context) Inline(file string, name string) error
- func (_mock *Context) IsTLS() bool
- func (_mock *Context) IsWebSocket() bool
- func (_mock *Context) JSON(code int, i interface{}) error
- func (_mock *Context) JSONBlob(code int, b []byte) error
- func (_mock *Context) JSONP(code int, callback string, i interface{}) error
- func (_mock *Context) JSONPBlob(code int, callback string, b []byte) error
- func (_mock *Context) JSONPretty(code int, i interface{}, indent string) error
- func (_mock *Context) Logger() echo.Logger
- func (_mock *Context) MultipartForm() (*multipart.Form, error)
- func (_mock *Context) NoContent(code int) error
- func (_mock *Context) Param(name string) string
- func (_mock *Context) ParamNames() []string
- func (_mock *Context) ParamValues() []string
- func (_mock *Context) Path() string
- func (_mock *Context) QueryParam(name string) string
- func (_mock *Context) QueryParams() url.Values
- func (_mock *Context) QueryString() string
- func (_mock *Context) RealIP() string
- func (_mock *Context) Redirect(code int, url1 string) error
- func (_mock *Context) Render(code int, name string, data interface{}) error
- func (_mock *Context) Request() *http.Request
- func (_mock *Context) Reset(r *http.Request, w http.ResponseWriter)
- func (_mock *Context) Response() *echo.Response
- func (_mock *Context) Scheme() string
- func (_mock *Context) Set(key string, val interface{})
- func (_mock *Context) SetCookie(cookie *http.Cookie)
- func (_mock *Context) SetHandler(h echo.HandlerFunc)
- func (_mock *Context) SetLogger(l echo.Logger)
- func (_mock *Context) SetParamNames(names ...string)
- func (_mock *Context) SetParamValues(values ...string)
- func (_mock *Context) SetPath(p string)
- func (_mock *Context) SetRequest(r *http.Request)
- func (_mock *Context) SetResponse(r *echo.Response)
- func (_mock *Context) Stream(code int, contentType string, r io.Reader) error
- func (_mock *Context) String(code int, s string) error
- func (_mock *Context) Validate(i interface{}) error
- func (_mock *Context) XML(code int, i interface{}) error
- func (_mock *Context) XMLBlob(code int, b []byte) error
- func (_mock *Context) XMLPretty(code int, i interface{}, indent string) error
- type Context_Attachment_Call
- type Context_Bind_Call
- type Context_Blob_Call
- type Context_Cookie_Call
- type Context_Cookies_Call
- type Context_Echo_Call
- type Context_Error_Call
- type Context_Expecter
- func (_e *Context_Expecter) Attachment(file interface{}, name interface{}) *Context_Attachment_Call
- func (_e *Context_Expecter) Bind(i interface{}) *Context_Bind_Call
- func (_e *Context_Expecter) Blob(code interface{}, contentType interface{}, b interface{}) *Context_Blob_Call
- func (_e *Context_Expecter) Cookie(name interface{}) *Context_Cookie_Call
- func (_e *Context_Expecter) Cookies() *Context_Cookies_Call
- func (_e *Context_Expecter) Echo() *Context_Echo_Call
- func (_e *Context_Expecter) Error(err interface{}) *Context_Error_Call
- func (_e *Context_Expecter) File(file interface{}) *Context_File_Call
- func (_e *Context_Expecter) FormFile(name interface{}) *Context_FormFile_Call
- func (_e *Context_Expecter) FormParams() *Context_FormParams_Call
- func (_e *Context_Expecter) FormValue(name interface{}) *Context_FormValue_Call
- func (_e *Context_Expecter) Get(key interface{}) *Context_Get_Call
- func (_e *Context_Expecter) HTML(code interface{}, html interface{}) *Context_HTML_Call
- func (_e *Context_Expecter) HTMLBlob(code interface{}, b interface{}) *Context_HTMLBlob_Call
- func (_e *Context_Expecter) Handler() *Context_Handler_Call
- func (_e *Context_Expecter) Inline(file interface{}, name interface{}) *Context_Inline_Call
- func (_e *Context_Expecter) IsTLS() *Context_IsTLS_Call
- func (_e *Context_Expecter) IsWebSocket() *Context_IsWebSocket_Call
- func (_e *Context_Expecter) JSON(code interface{}, i interface{}) *Context_JSON_Call
- func (_e *Context_Expecter) JSONBlob(code interface{}, b interface{}) *Context_JSONBlob_Call
- func (_e *Context_Expecter) JSONP(code interface{}, callback interface{}, i interface{}) *Context_JSONP_Call
- func (_e *Context_Expecter) JSONPBlob(code interface{}, callback interface{}, b interface{}) *Context_JSONPBlob_Call
- func (_e *Context_Expecter) JSONPretty(code interface{}, i interface{}, indent interface{}) *Context_JSONPretty_Call
- func (_e *Context_Expecter) Logger() *Context_Logger_Call
- func (_e *Context_Expecter) MultipartForm() *Context_MultipartForm_Call
- func (_e *Context_Expecter) NoContent(code interface{}) *Context_NoContent_Call
- func (_e *Context_Expecter) Param(name interface{}) *Context_Param_Call
- func (_e *Context_Expecter) ParamNames() *Context_ParamNames_Call
- func (_e *Context_Expecter) ParamValues() *Context_ParamValues_Call
- func (_e *Context_Expecter) Path() *Context_Path_Call
- func (_e *Context_Expecter) QueryParam(name interface{}) *Context_QueryParam_Call
- func (_e *Context_Expecter) QueryParams() *Context_QueryParams_Call
- func (_e *Context_Expecter) QueryString() *Context_QueryString_Call
- func (_e *Context_Expecter) RealIP() *Context_RealIP_Call
- func (_e *Context_Expecter) Redirect(code interface{}, url1 interface{}) *Context_Redirect_Call
- func (_e *Context_Expecter) Render(code interface{}, name interface{}, data interface{}) *Context_Render_Call
- func (_e *Context_Expecter) Request() *Context_Request_Call
- func (_e *Context_Expecter) Reset(r interface{}, w interface{}) *Context_Reset_Call
- func (_e *Context_Expecter) Response() *Context_Response_Call
- func (_e *Context_Expecter) Scheme() *Context_Scheme_Call
- func (_e *Context_Expecter) Set(key interface{}, val interface{}) *Context_Set_Call
- func (_e *Context_Expecter) SetCookie(cookie interface{}) *Context_SetCookie_Call
- func (_e *Context_Expecter) SetHandler(h interface{}) *Context_SetHandler_Call
- func (_e *Context_Expecter) SetLogger(l interface{}) *Context_SetLogger_Call
- func (_e *Context_Expecter) SetParamNames(names ...interface{}) *Context_SetParamNames_Call
- func (_e *Context_Expecter) SetParamValues(values ...interface{}) *Context_SetParamValues_Call
- func (_e *Context_Expecter) SetPath(p interface{}) *Context_SetPath_Call
- func (_e *Context_Expecter) SetRequest(r interface{}) *Context_SetRequest_Call
- func (_e *Context_Expecter) SetResponse(r interface{}) *Context_SetResponse_Call
- func (_e *Context_Expecter) Stream(code interface{}, contentType interface{}, r interface{}) *Context_Stream_Call
- func (_e *Context_Expecter) String(code interface{}, s interface{}) *Context_String_Call
- func (_e *Context_Expecter) Validate(i interface{}) *Context_Validate_Call
- func (_e *Context_Expecter) XML(code interface{}, i interface{}) *Context_XML_Call
- func (_e *Context_Expecter) XMLBlob(code interface{}, b interface{}) *Context_XMLBlob_Call
- func (_e *Context_Expecter) XMLPretty(code interface{}, i interface{}, indent interface{}) *Context_XMLPretty_Call
- type Context_File_Call
- type Context_FormFile_Call
- func (_c *Context_FormFile_Call) Return(fileHeader *multipart.FileHeader, err error) *Context_FormFile_Call
- func (_c *Context_FormFile_Call) Run(run func(name string)) *Context_FormFile_Call
- func (_c *Context_FormFile_Call) RunAndReturn(run func(name string) (*multipart.FileHeader, error)) *Context_FormFile_Call
- type Context_FormParams_Call
- type Context_FormValue_Call
- type Context_Get_Call
- type Context_HTMLBlob_Call
- type Context_HTML_Call
- type Context_Handler_Call
- type Context_Inline_Call
- type Context_IsTLS_Call
- type Context_IsWebSocket_Call
- type Context_JSONBlob_Call
- type Context_JSONPBlob_Call
- func (_c *Context_JSONPBlob_Call) Return(err error) *Context_JSONPBlob_Call
- func (_c *Context_JSONPBlob_Call) Run(run func(code int, callback string, b []byte)) *Context_JSONPBlob_Call
- func (_c *Context_JSONPBlob_Call) RunAndReturn(run func(code int, callback string, b []byte) error) *Context_JSONPBlob_Call
- type Context_JSONP_Call
- type Context_JSONPretty_Call
- func (_c *Context_JSONPretty_Call) Return(err error) *Context_JSONPretty_Call
- func (_c *Context_JSONPretty_Call) Run(run func(code int, i interface{}, indent string)) *Context_JSONPretty_Call
- func (_c *Context_JSONPretty_Call) RunAndReturn(run func(code int, i interface{}, indent string) error) *Context_JSONPretty_Call
- type Context_JSON_Call
- type Context_Logger_Call
- type Context_MultipartForm_Call
- func (_c *Context_MultipartForm_Call) Return(form *multipart.Form, err error) *Context_MultipartForm_Call
- func (_c *Context_MultipartForm_Call) Run(run func()) *Context_MultipartForm_Call
- func (_c *Context_MultipartForm_Call) RunAndReturn(run func() (*multipart.Form, error)) *Context_MultipartForm_Call
- type Context_NoContent_Call
- type Context_ParamNames_Call
- type Context_ParamValues_Call
- type Context_Param_Call
- type Context_Path_Call
- type Context_QueryParam_Call
- type Context_QueryParams_Call
- type Context_QueryString_Call
- type Context_RealIP_Call
- type Context_Redirect_Call
- type Context_Render_Call
- type Context_Request_Call
- type Context_Reset_Call
- type Context_Response_Call
- type Context_Scheme_Call
- type Context_SetCookie_Call
- type Context_SetHandler_Call
- type Context_SetLogger_Call
- type Context_SetParamNames_Call
- type Context_SetParamValues_Call
- type Context_SetPath_Call
- type Context_SetRequest_Call
- type Context_SetResponse_Call
- type Context_Set_Call
- type Context_Stream_Call
- func (_c *Context_Stream_Call) Return(err error) *Context_Stream_Call
- func (_c *Context_Stream_Call) Run(run func(code int, contentType string, r io.Reader)) *Context_Stream_Call
- func (_c *Context_Stream_Call) RunAndReturn(run func(code int, contentType string, r io.Reader) error) *Context_Stream_Call
- type Context_String_Call
- type Context_Validate_Call
- type Context_XMLBlob_Call
- type Context_XMLPretty_Call
- func (_c *Context_XMLPretty_Call) Return(err error) *Context_XMLPretty_Call
- func (_c *Context_XMLPretty_Call) Run(run func(code int, i interface{}, indent string)) *Context_XMLPretty_Call
- func (_c *Context_XMLPretty_Call) RunAndReturn(run func(code int, i interface{}, indent string) error) *Context_XMLPretty_Call
- type Context_XML_Call
- type CveRepository
- func (_mock *CveRepository) Activate(tx core.DB, id string) error
- func (_mock *CveRepository) All() ([]models.CVE, error)
- func (_mock *CveRepository) Begin() core.DB
- func (_mock *CveRepository) Create(tx core.DB, t *models.CVE) error
- func (_mock *CveRepository) CreateBatch(tx core.DB, ts []models.CVE) error
- func (_mock *CveRepository) Delete(tx core.DB, id string) error
- func (_mock *CveRepository) DeleteBatch(tx core.DB, ids []models.CVE) error
- func (_m *CveRepository) EXPECT() *CveRepository_Expecter
- func (_mock *CveRepository) FindAllListPaged(tx core.DB, pageInfo core.PageInfo, filter []core.FilterQuery, ...) (core.Paged[models.CVE], error)
- func (_mock *CveRepository) FindByID(id string) (models.CVE, error)
- func (_mock *CveRepository) FindCVE(tx core.DB, id string) (models.CVE, error)
- func (_mock *CveRepository) FindCVEs(tx core.DB, ids []string) ([]models.CVE, error)
- func (_mock *CveRepository) GetAllCVEsID() ([]string, error)
- func (_mock *CveRepository) GetDB(tx core.DB) core.DB
- func (_mock *CveRepository) GetLastModDate() (time.Time, error)
- func (_mock *CveRepository) List(ids []string) ([]models.CVE, error)
- func (_mock *CveRepository) Read(id string) (models.CVE, error)
- func (_mock *CveRepository) Save(tx core.DB, cve *models.CVE) error
- func (_mock *CveRepository) SaveBatch(tx core.DB, ts []models.CVE) error
- func (_mock *CveRepository) SaveCveAffectedComponents(tx core.DB, cveID string, affectedComponentHashes []string) error
- func (_mock *CveRepository) Transaction(fn func(tx core.DB) error) error
- func (_mock *CveRepository) Upsert(t *[]*models.CVE, conflictingColumns []clause.Column, updateOnly []string) error
- type CveRepository_Activate_Call
- func (_c *CveRepository_Activate_Call) Return(err error) *CveRepository_Activate_Call
- func (_c *CveRepository_Activate_Call) Run(run func(tx core.DB, id string)) *CveRepository_Activate_Call
- func (_c *CveRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id string) error) *CveRepository_Activate_Call
- type CveRepository_All_Call
- type CveRepository_Begin_Call
- type CveRepository_CreateBatch_Call
- func (_c *CveRepository_CreateBatch_Call) Return(err error) *CveRepository_CreateBatch_Call
- func (_c *CveRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.CVE)) *CveRepository_CreateBatch_Call
- func (_c *CveRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.CVE) error) *CveRepository_CreateBatch_Call
- type CveRepository_Create_Call
- func (_c *CveRepository_Create_Call) Return(err error) *CveRepository_Create_Call
- func (_c *CveRepository_Create_Call) Run(run func(tx core.DB, t *models.CVE)) *CveRepository_Create_Call
- func (_c *CveRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.CVE) error) *CveRepository_Create_Call
- type CveRepository_DeleteBatch_Call
- func (_c *CveRepository_DeleteBatch_Call) Return(err error) *CveRepository_DeleteBatch_Call
- func (_c *CveRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.CVE)) *CveRepository_DeleteBatch_Call
- func (_c *CveRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.CVE) error) *CveRepository_DeleteBatch_Call
- type CveRepository_Delete_Call
- type CveRepository_Expecter
- func (_e *CveRepository_Expecter) Activate(tx interface{}, id interface{}) *CveRepository_Activate_Call
- func (_e *CveRepository_Expecter) All() *CveRepository_All_Call
- func (_e *CveRepository_Expecter) Begin() *CveRepository_Begin_Call
- func (_e *CveRepository_Expecter) Create(tx interface{}, t interface{}) *CveRepository_Create_Call
- func (_e *CveRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *CveRepository_CreateBatch_Call
- func (_e *CveRepository_Expecter) Delete(tx interface{}, id interface{}) *CveRepository_Delete_Call
- func (_e *CveRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *CveRepository_DeleteBatch_Call
- func (_e *CveRepository_Expecter) FindAllListPaged(tx interface{}, pageInfo interface{}, filter interface{}, sort interface{}) *CveRepository_FindAllListPaged_Call
- func (_e *CveRepository_Expecter) FindByID(id interface{}) *CveRepository_FindByID_Call
- func (_e *CveRepository_Expecter) FindCVE(tx interface{}, id interface{}) *CveRepository_FindCVE_Call
- func (_e *CveRepository_Expecter) FindCVEs(tx interface{}, ids interface{}) *CveRepository_FindCVEs_Call
- func (_e *CveRepository_Expecter) GetAllCVEsID() *CveRepository_GetAllCVEsID_Call
- func (_e *CveRepository_Expecter) GetDB(tx interface{}) *CveRepository_GetDB_Call
- func (_e *CveRepository_Expecter) GetLastModDate() *CveRepository_GetLastModDate_Call
- func (_e *CveRepository_Expecter) List(ids interface{}) *CveRepository_List_Call
- func (_e *CveRepository_Expecter) Read(id interface{}) *CveRepository_Read_Call
- func (_e *CveRepository_Expecter) Save(tx interface{}, cve interface{}) *CveRepository_Save_Call
- func (_e *CveRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *CveRepository_SaveBatch_Call
- func (_e *CveRepository_Expecter) SaveCveAffectedComponents(tx interface{}, cveID interface{}, affectedComponentHashes interface{}) *CveRepository_SaveCveAffectedComponents_Call
- func (_e *CveRepository_Expecter) Transaction(fn interface{}) *CveRepository_Transaction_Call
- func (_e *CveRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *CveRepository_Upsert_Call
- type CveRepository_FindAllListPaged_Call
- func (_c *CveRepository_FindAllListPaged_Call) Return(paged core.Paged[models.CVE], err error) *CveRepository_FindAllListPaged_Call
- func (_c *CveRepository_FindAllListPaged_Call) Run(run func(tx core.DB, pageInfo core.PageInfo, filter []core.FilterQuery, ...)) *CveRepository_FindAllListPaged_Call
- func (_c *CveRepository_FindAllListPaged_Call) RunAndReturn(...) *CveRepository_FindAllListPaged_Call
- type CveRepository_FindByID_Call
- func (_c *CveRepository_FindByID_Call) Return(cVE models.CVE, err error) *CveRepository_FindByID_Call
- func (_c *CveRepository_FindByID_Call) Run(run func(id string)) *CveRepository_FindByID_Call
- func (_c *CveRepository_FindByID_Call) RunAndReturn(run func(id string) (models.CVE, error)) *CveRepository_FindByID_Call
- type CveRepository_FindCVE_Call
- func (_c *CveRepository_FindCVE_Call) Return(cVE models.CVE, err error) *CveRepository_FindCVE_Call
- func (_c *CveRepository_FindCVE_Call) Run(run func(tx core.DB, id string)) *CveRepository_FindCVE_Call
- func (_c *CveRepository_FindCVE_Call) RunAndReturn(run func(tx core.DB, id string) (models.CVE, error)) *CveRepository_FindCVE_Call
- type CveRepository_FindCVEs_Call
- func (_c *CveRepository_FindCVEs_Call) Return(cVEs []models.CVE, err error) *CveRepository_FindCVEs_Call
- func (_c *CveRepository_FindCVEs_Call) Run(run func(tx core.DB, ids []string)) *CveRepository_FindCVEs_Call
- func (_c *CveRepository_FindCVEs_Call) RunAndReturn(run func(tx core.DB, ids []string) ([]models.CVE, error)) *CveRepository_FindCVEs_Call
- type CveRepository_GetAllCVEsID_Call
- func (_c *CveRepository_GetAllCVEsID_Call) Return(strings []string, err error) *CveRepository_GetAllCVEsID_Call
- func (_c *CveRepository_GetAllCVEsID_Call) Run(run func()) *CveRepository_GetAllCVEsID_Call
- func (_c *CveRepository_GetAllCVEsID_Call) RunAndReturn(run func() ([]string, error)) *CveRepository_GetAllCVEsID_Call
- type CveRepository_GetDB_Call
- type CveRepository_GetLastModDate_Call
- func (_c *CveRepository_GetLastModDate_Call) Return(time1 time.Time, err error) *CveRepository_GetLastModDate_Call
- func (_c *CveRepository_GetLastModDate_Call) Run(run func()) *CveRepository_GetLastModDate_Call
- func (_c *CveRepository_GetLastModDate_Call) RunAndReturn(run func() (time.Time, error)) *CveRepository_GetLastModDate_Call
- type CveRepository_List_Call
- func (_c *CveRepository_List_Call) Return(cVEs []models.CVE, err error) *CveRepository_List_Call
- func (_c *CveRepository_List_Call) Run(run func(ids []string)) *CveRepository_List_Call
- func (_c *CveRepository_List_Call) RunAndReturn(run func(ids []string) ([]models.CVE, error)) *CveRepository_List_Call
- type CveRepository_Read_Call
- type CveRepository_SaveBatch_Call
- func (_c *CveRepository_SaveBatch_Call) Return(err error) *CveRepository_SaveBatch_Call
- func (_c *CveRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.CVE)) *CveRepository_SaveBatch_Call
- func (_c *CveRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.CVE) error) *CveRepository_SaveBatch_Call
- type CveRepository_SaveCveAffectedComponents_Call
- func (_c *CveRepository_SaveCveAffectedComponents_Call) Return(err error) *CveRepository_SaveCveAffectedComponents_Call
- func (_c *CveRepository_SaveCveAffectedComponents_Call) Run(run func(tx core.DB, cveID string, affectedComponentHashes []string)) *CveRepository_SaveCveAffectedComponents_Call
- func (_c *CveRepository_SaveCveAffectedComponents_Call) RunAndReturn(run func(tx core.DB, cveID string, affectedComponentHashes []string) error) *CveRepository_SaveCveAffectedComponents_Call
- type CveRepository_Save_Call
- type CveRepository_Transaction_Call
- func (_c *CveRepository_Transaction_Call) Return(err error) *CveRepository_Transaction_Call
- func (_c *CveRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *CveRepository_Transaction_Call
- func (_c *CveRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *CveRepository_Transaction_Call
- type CveRepository_Upsert_Call
- type CvssInterface
- func (_m *CvssInterface) EXPECT() *CvssInterface_Expecter
- func (_mock *CvssInterface) EnvironmentalScore() float64
- func (_mock *CvssInterface) Get(key string) (string, error)
- func (_mock *CvssInterface) Set(key string, value string) error
- func (_mock *CvssInterface) TemporalScore() float64
- func (_mock *CvssInterface) Vector() string
- type CvssInterface_EnvironmentalScore_Call
- func (_c *CvssInterface_EnvironmentalScore_Call) Return(f float64) *CvssInterface_EnvironmentalScore_Call
- func (_c *CvssInterface_EnvironmentalScore_Call) Run(run func()) *CvssInterface_EnvironmentalScore_Call
- func (_c *CvssInterface_EnvironmentalScore_Call) RunAndReturn(run func() float64) *CvssInterface_EnvironmentalScore_Call
- type CvssInterface_Expecter
- func (_e *CvssInterface_Expecter) EnvironmentalScore() *CvssInterface_EnvironmentalScore_Call
- func (_e *CvssInterface_Expecter) Get(key interface{}) *CvssInterface_Get_Call
- func (_e *CvssInterface_Expecter) Set(key interface{}, value interface{}) *CvssInterface_Set_Call
- func (_e *CvssInterface_Expecter) TemporalScore() *CvssInterface_TemporalScore_Call
- func (_e *CvssInterface_Expecter) Vector() *CvssInterface_Vector_Call
- type CvssInterface_Get_Call
- type CvssInterface_Set_Call
- type CvssInterface_TemporalScore_Call
- func (_c *CvssInterface_TemporalScore_Call) Return(f float64) *CvssInterface_TemporalScore_Call
- func (_c *CvssInterface_TemporalScore_Call) Run(run func()) *CvssInterface_TemporalScore_Call
- func (_c *CvssInterface_TemporalScore_Call) RunAndReturn(run func() float64) *CvssInterface_TemporalScore_Call
- type CvssInterface_Vector_Call
- type CweRepository
- type CweRepository_Expecter
- type CweRepository_GetAllCWEsID_Call
- func (_c *CweRepository_GetAllCWEsID_Call) Return(strings []string, err error) *CweRepository_GetAllCWEsID_Call
- func (_c *CweRepository_GetAllCWEsID_Call) Run(run func()) *CweRepository_GetAllCWEsID_Call
- func (_c *CweRepository_GetAllCWEsID_Call) RunAndReturn(run func() ([]string, error)) *CweRepository_GetAllCWEsID_Call
- type CweRepository_SaveBatch_Call
- func (_c *CweRepository_SaveBatch_Call) Return(err error) *CweRepository_SaveBatch_Call
- func (_c *CweRepository_SaveBatch_Call) Run(run func(tx core.DB, cwes []models.CWE)) *CweRepository_SaveBatch_Call
- func (_c *CweRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, cwes []models.CWE) error) *CweRepository_SaveBatch_Call
- type DependencyVulnRepository
- func (_mock *DependencyVulnRepository) Activate(tx core.DB, id string) error
- func (_mock *DependencyVulnRepository) All() ([]models.DependencyVuln, error)
- func (_mock *DependencyVulnRepository) ApplyAndSave(tx core.DB, dependencyVuln *models.DependencyVuln, vulnEvent *models.VulnEvent) error
- func (_mock *DependencyVulnRepository) Begin() core.DB
- func (_mock *DependencyVulnRepository) Create(tx core.DB, t *models.DependencyVuln) error
- func (_mock *DependencyVulnRepository) CreateBatch(tx core.DB, ts []models.DependencyVuln) error
- func (_mock *DependencyVulnRepository) Delete(tx core.DB, id string) error
- func (_mock *DependencyVulnRepository) DeleteBatch(tx core.DB, ids []models.DependencyVuln) error
- func (_m *DependencyVulnRepository) EXPECT() *DependencyVulnRepository_Expecter
- func (_mock *DependencyVulnRepository) GetAllByAssetIDAndState(tx core.DB, assetID uuid.UUID, state models.VulnState, ...) ([]models.DependencyVuln, error)
- func (_mock *DependencyVulnRepository) GetAllOpenVulnsByAssetVersionNameAndAssetID(tx core.DB, artifactName *string, assetVersionName string, assetID uuid.UUID) ([]models.DependencyVuln, error)
- func (_mock *DependencyVulnRepository) GetAllVulnsByAssetID(tx core.DB, assetID uuid.UUID) ([]models.DependencyVuln, error)
- func (_mock *DependencyVulnRepository) GetByAssetVersionPaged(tx core.DB, assetVersionName string, assetID uuid.UUID, pageInfo core.PageInfo, ...) (core.Paged[models.DependencyVuln], map[string]int, error)
- func (_mock *DependencyVulnRepository) GetDB(tx core.DB) core.DB
- func (_mock *DependencyVulnRepository) GetDefaultDependencyVulnsByOrgIDPaged(tx core.DB, userAllowedProjectIds []string, pageInfo core.PageInfo, ...) (core.Paged[models.DependencyVuln], error)
- func (_mock *DependencyVulnRepository) GetDefaultDependencyVulnsByProjectIDPaged(tx core.DB, projectID uuid.UUID, pageInfo core.PageInfo, search string, ...) (core.Paged[models.DependencyVuln], error)
- func (_mock *DependencyVulnRepository) GetDependencyVulnsByAssetVersion(tx core.DB, assetVersionName string, assetID uuid.UUID, artifactName *string) ([]models.DependencyVuln, error)
- func (_mock *DependencyVulnRepository) GetDependencyVulnsByAssetVersionPagedAndFlat(tx core.DB, assetVersionName string, assetVersionID uuid.UUID, ...) (core.Paged[models.DependencyVuln], error)
- func (_mock *DependencyVulnRepository) GetDependencyVulnsByDefaultAssetVersion(tx core.DB, assetID uuid.UUID, artifactName *string) ([]models.DependencyVuln, error)
- func (_mock *DependencyVulnRepository) GetDependencyVulnsByOtherAssetVersions(tx core.DB, assetVersionName string, assetID uuid.UUID) ([]models.DependencyVuln, error)
- func (_mock *DependencyVulnRepository) GetDependencyVulnsByPurl(tx core.DB, purls []string) ([]models.DependencyVuln, error)
- func (_mock *DependencyVulnRepository) GetHintsInOrganizationForVuln(tx core.DB, orgID uuid.UUID, pURL string, cveID string) (common.DependencyVulnHints, error)
- func (_mock *DependencyVulnRepository) List(ids []string) ([]models.DependencyVuln, error)
- func (_mock *DependencyVulnRepository) ListByAssetAndAssetVersion(assetVersionName string, assetID uuid.UUID) ([]models.DependencyVuln, error)
- func (_mock *DependencyVulnRepository) ListUnfixedByAssetAndAssetVersion(assetVersionName string, assetID uuid.UUID, artifactName *string) ([]models.DependencyVuln, error)
- func (_mock *DependencyVulnRepository) Read(id string) (models.DependencyVuln, error)
- func (_mock *DependencyVulnRepository) Save(tx core.DB, t *models.DependencyVuln) error
- func (_mock *DependencyVulnRepository) SaveBatch(tx core.DB, ts []models.DependencyVuln) error
- func (_mock *DependencyVulnRepository) Transaction(fn func(tx core.DB) error) error
- func (_mock *DependencyVulnRepository) Upsert(t *[]*models.DependencyVuln, conflictingColumns []clause.Column, ...) error
- type DependencyVulnRepository_Activate_Call
- func (_c *DependencyVulnRepository_Activate_Call) Return(err error) *DependencyVulnRepository_Activate_Call
- func (_c *DependencyVulnRepository_Activate_Call) Run(run func(tx core.DB, id string)) *DependencyVulnRepository_Activate_Call
- func (_c *DependencyVulnRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id string) error) *DependencyVulnRepository_Activate_Call
- type DependencyVulnRepository_All_Call
- func (_c *DependencyVulnRepository_All_Call) Return(dependencyVulns []models.DependencyVuln, err error) *DependencyVulnRepository_All_Call
- func (_c *DependencyVulnRepository_All_Call) Run(run func()) *DependencyVulnRepository_All_Call
- func (_c *DependencyVulnRepository_All_Call) RunAndReturn(run func() ([]models.DependencyVuln, error)) *DependencyVulnRepository_All_Call
- type DependencyVulnRepository_ApplyAndSave_Call
- func (_c *DependencyVulnRepository_ApplyAndSave_Call) Return(err error) *DependencyVulnRepository_ApplyAndSave_Call
- func (_c *DependencyVulnRepository_ApplyAndSave_Call) Run(...) *DependencyVulnRepository_ApplyAndSave_Call
- func (_c *DependencyVulnRepository_ApplyAndSave_Call) RunAndReturn(...) *DependencyVulnRepository_ApplyAndSave_Call
- type DependencyVulnRepository_Begin_Call
- func (_c *DependencyVulnRepository_Begin_Call) Return(v core.DB) *DependencyVulnRepository_Begin_Call
- func (_c *DependencyVulnRepository_Begin_Call) Run(run func()) *DependencyVulnRepository_Begin_Call
- func (_c *DependencyVulnRepository_Begin_Call) RunAndReturn(run func() core.DB) *DependencyVulnRepository_Begin_Call
- type DependencyVulnRepository_CreateBatch_Call
- func (_c *DependencyVulnRepository_CreateBatch_Call) Return(err error) *DependencyVulnRepository_CreateBatch_Call
- func (_c *DependencyVulnRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.DependencyVuln)) *DependencyVulnRepository_CreateBatch_Call
- func (_c *DependencyVulnRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.DependencyVuln) error) *DependencyVulnRepository_CreateBatch_Call
- type DependencyVulnRepository_Create_Call
- func (_c *DependencyVulnRepository_Create_Call) Return(err error) *DependencyVulnRepository_Create_Call
- func (_c *DependencyVulnRepository_Create_Call) Run(run func(tx core.DB, t *models.DependencyVuln)) *DependencyVulnRepository_Create_Call
- func (_c *DependencyVulnRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.DependencyVuln) error) *DependencyVulnRepository_Create_Call
- type DependencyVulnRepository_DeleteBatch_Call
- func (_c *DependencyVulnRepository_DeleteBatch_Call) Return(err error) *DependencyVulnRepository_DeleteBatch_Call
- func (_c *DependencyVulnRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.DependencyVuln)) *DependencyVulnRepository_DeleteBatch_Call
- func (_c *DependencyVulnRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.DependencyVuln) error) *DependencyVulnRepository_DeleteBatch_Call
- type DependencyVulnRepository_Delete_Call
- func (_c *DependencyVulnRepository_Delete_Call) Return(err error) *DependencyVulnRepository_Delete_Call
- func (_c *DependencyVulnRepository_Delete_Call) Run(run func(tx core.DB, id string)) *DependencyVulnRepository_Delete_Call
- func (_c *DependencyVulnRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id string) error) *DependencyVulnRepository_Delete_Call
- type DependencyVulnRepository_Expecter
- func (_e *DependencyVulnRepository_Expecter) Activate(tx interface{}, id interface{}) *DependencyVulnRepository_Activate_Call
- func (_e *DependencyVulnRepository_Expecter) All() *DependencyVulnRepository_All_Call
- func (_e *DependencyVulnRepository_Expecter) ApplyAndSave(tx interface{}, dependencyVuln interface{}, vulnEvent interface{}) *DependencyVulnRepository_ApplyAndSave_Call
- func (_e *DependencyVulnRepository_Expecter) Begin() *DependencyVulnRepository_Begin_Call
- func (_e *DependencyVulnRepository_Expecter) Create(tx interface{}, t interface{}) *DependencyVulnRepository_Create_Call
- func (_e *DependencyVulnRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *DependencyVulnRepository_CreateBatch_Call
- func (_e *DependencyVulnRepository_Expecter) Delete(tx interface{}, id interface{}) *DependencyVulnRepository_Delete_Call
- func (_e *DependencyVulnRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *DependencyVulnRepository_DeleteBatch_Call
- func (_e *DependencyVulnRepository_Expecter) GetAllByAssetIDAndState(tx interface{}, assetID interface{}, state interface{}, ...) *DependencyVulnRepository_GetAllByAssetIDAndState_Call
- func (_e *DependencyVulnRepository_Expecter) GetAllOpenVulnsByAssetVersionNameAndAssetID(tx interface{}, artifactName interface{}, assetVersionName interface{}, ...) *DependencyVulnRepository_GetAllOpenVulnsByAssetVersionNameAndAssetID_Call
- func (_e *DependencyVulnRepository_Expecter) GetAllVulnsByAssetID(tx interface{}, assetID interface{}) *DependencyVulnRepository_GetAllVulnsByAssetID_Call
- func (_e *DependencyVulnRepository_Expecter) GetByAssetVersionPaged(tx interface{}, assetVersionName interface{}, assetID interface{}, ...) *DependencyVulnRepository_GetByAssetVersionPaged_Call
- func (_e *DependencyVulnRepository_Expecter) GetDB(tx interface{}) *DependencyVulnRepository_GetDB_Call
- func (_e *DependencyVulnRepository_Expecter) GetDefaultDependencyVulnsByOrgIDPaged(tx interface{}, userAllowedProjectIds interface{}, pageInfo interface{}, ...) *DependencyVulnRepository_GetDefaultDependencyVulnsByOrgIDPaged_Call
- func (_e *DependencyVulnRepository_Expecter) GetDefaultDependencyVulnsByProjectIDPaged(tx interface{}, projectID interface{}, pageInfo interface{}, ...) *DependencyVulnRepository_GetDefaultDependencyVulnsByProjectIDPaged_Call
- func (_e *DependencyVulnRepository_Expecter) GetDependencyVulnsByAssetVersion(tx interface{}, assetVersionName interface{}, assetID interface{}, ...) *DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call
- func (_e *DependencyVulnRepository_Expecter) GetDependencyVulnsByAssetVersionPagedAndFlat(tx interface{}, assetVersionName interface{}, assetVersionID interface{}, ...) *DependencyVulnRepository_GetDependencyVulnsByAssetVersionPagedAndFlat_Call
- func (_e *DependencyVulnRepository_Expecter) GetDependencyVulnsByDefaultAssetVersion(tx interface{}, assetID interface{}, artifactName interface{}) *DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call
- func (_e *DependencyVulnRepository_Expecter) GetDependencyVulnsByOtherAssetVersions(tx interface{}, assetVersionName interface{}, assetID interface{}) *DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call
- func (_e *DependencyVulnRepository_Expecter) GetDependencyVulnsByPurl(tx interface{}, purls interface{}) *DependencyVulnRepository_GetDependencyVulnsByPurl_Call
- func (_e *DependencyVulnRepository_Expecter) GetHintsInOrganizationForVuln(tx interface{}, orgID interface{}, pURL interface{}, cveID interface{}) *DependencyVulnRepository_GetHintsInOrganizationForVuln_Call
- func (_e *DependencyVulnRepository_Expecter) List(ids interface{}) *DependencyVulnRepository_List_Call
- func (_e *DependencyVulnRepository_Expecter) ListByAssetAndAssetVersion(assetVersionName interface{}, assetID interface{}) *DependencyVulnRepository_ListByAssetAndAssetVersion_Call
- func (_e *DependencyVulnRepository_Expecter) ListUnfixedByAssetAndAssetVersion(assetVersionName interface{}, assetID interface{}, artifactName interface{}) *DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call
- func (_e *DependencyVulnRepository_Expecter) Read(id interface{}) *DependencyVulnRepository_Read_Call
- func (_e *DependencyVulnRepository_Expecter) Save(tx interface{}, t interface{}) *DependencyVulnRepository_Save_Call
- func (_e *DependencyVulnRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *DependencyVulnRepository_SaveBatch_Call
- func (_e *DependencyVulnRepository_Expecter) Transaction(fn interface{}) *DependencyVulnRepository_Transaction_Call
- func (_e *DependencyVulnRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *DependencyVulnRepository_Upsert_Call
- type DependencyVulnRepository_GetAllByAssetIDAndState_Call
- func (_c *DependencyVulnRepository_GetAllByAssetIDAndState_Call) Return(dependencyVulns []models.DependencyVuln, err error) *DependencyVulnRepository_GetAllByAssetIDAndState_Call
- func (_c *DependencyVulnRepository_GetAllByAssetIDAndState_Call) Run(run func(tx core.DB, assetID uuid.UUID, state models.VulnState, ...)) *DependencyVulnRepository_GetAllByAssetIDAndState_Call
- func (_c *DependencyVulnRepository_GetAllByAssetIDAndState_Call) RunAndReturn(...) *DependencyVulnRepository_GetAllByAssetIDAndState_Call
- type DependencyVulnRepository_GetAllOpenVulnsByAssetVersionNameAndAssetID_Call
- func (_c *DependencyVulnRepository_GetAllOpenVulnsByAssetVersionNameAndAssetID_Call) Return(dependencyVulns []models.DependencyVuln, err error) *DependencyVulnRepository_GetAllOpenVulnsByAssetVersionNameAndAssetID_Call
- func (_c *DependencyVulnRepository_GetAllOpenVulnsByAssetVersionNameAndAssetID_Call) Run(...) *DependencyVulnRepository_GetAllOpenVulnsByAssetVersionNameAndAssetID_Call
- func (_c *DependencyVulnRepository_GetAllOpenVulnsByAssetVersionNameAndAssetID_Call) RunAndReturn(...) *DependencyVulnRepository_GetAllOpenVulnsByAssetVersionNameAndAssetID_Call
- type DependencyVulnRepository_GetAllVulnsByAssetID_Call
- func (_c *DependencyVulnRepository_GetAllVulnsByAssetID_Call) Return(dependencyVulns []models.DependencyVuln, err error) *DependencyVulnRepository_GetAllVulnsByAssetID_Call
- func (_c *DependencyVulnRepository_GetAllVulnsByAssetID_Call) Run(run func(tx core.DB, assetID uuid.UUID)) *DependencyVulnRepository_GetAllVulnsByAssetID_Call
- func (_c *DependencyVulnRepository_GetAllVulnsByAssetID_Call) RunAndReturn(run func(tx core.DB, assetID uuid.UUID) ([]models.DependencyVuln, error)) *DependencyVulnRepository_GetAllVulnsByAssetID_Call
- type DependencyVulnRepository_GetByAssetVersionPaged_Call
- func (_c *DependencyVulnRepository_GetByAssetVersionPaged_Call) Return(paged core.Paged[models.DependencyVuln], stringToInt map[string]int, err error) *DependencyVulnRepository_GetByAssetVersionPaged_Call
- func (_c *DependencyVulnRepository_GetByAssetVersionPaged_Call) Run(...) *DependencyVulnRepository_GetByAssetVersionPaged_Call
- func (_c *DependencyVulnRepository_GetByAssetVersionPaged_Call) RunAndReturn(...) *DependencyVulnRepository_GetByAssetVersionPaged_Call
- type DependencyVulnRepository_GetDB_Call
- func (_c *DependencyVulnRepository_GetDB_Call) Return(v core.DB) *DependencyVulnRepository_GetDB_Call
- func (_c *DependencyVulnRepository_GetDB_Call) Run(run func(tx core.DB)) *DependencyVulnRepository_GetDB_Call
- func (_c *DependencyVulnRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *DependencyVulnRepository_GetDB_Call
- type DependencyVulnRepository_GetDefaultDependencyVulnsByOrgIDPaged_Call
- func (_c *DependencyVulnRepository_GetDefaultDependencyVulnsByOrgIDPaged_Call) Return(paged core.Paged[models.DependencyVuln], err error) *DependencyVulnRepository_GetDefaultDependencyVulnsByOrgIDPaged_Call
- func (_c *DependencyVulnRepository_GetDefaultDependencyVulnsByOrgIDPaged_Call) Run(...) *DependencyVulnRepository_GetDefaultDependencyVulnsByOrgIDPaged_Call
- func (_c *DependencyVulnRepository_GetDefaultDependencyVulnsByOrgIDPaged_Call) RunAndReturn(...) *DependencyVulnRepository_GetDefaultDependencyVulnsByOrgIDPaged_Call
- type DependencyVulnRepository_GetDefaultDependencyVulnsByProjectIDPaged_Call
- func (_c *DependencyVulnRepository_GetDefaultDependencyVulnsByProjectIDPaged_Call) Return(paged core.Paged[models.DependencyVuln], err error) *DependencyVulnRepository_GetDefaultDependencyVulnsByProjectIDPaged_Call
- func (_c *DependencyVulnRepository_GetDefaultDependencyVulnsByProjectIDPaged_Call) Run(...) *DependencyVulnRepository_GetDefaultDependencyVulnsByProjectIDPaged_Call
- func (_c *DependencyVulnRepository_GetDefaultDependencyVulnsByProjectIDPaged_Call) RunAndReturn(...) *DependencyVulnRepository_GetDefaultDependencyVulnsByProjectIDPaged_Call
- type DependencyVulnRepository_GetDependencyVulnsByAssetVersionPagedAndFlat_Call
- func (_c *DependencyVulnRepository_GetDependencyVulnsByAssetVersionPagedAndFlat_Call) Return(paged core.Paged[models.DependencyVuln], err error) *DependencyVulnRepository_GetDependencyVulnsByAssetVersionPagedAndFlat_Call
- func (_c *DependencyVulnRepository_GetDependencyVulnsByAssetVersionPagedAndFlat_Call) Run(run func(tx core.DB, assetVersionName string, assetVersionID uuid.UUID, ...)) *DependencyVulnRepository_GetDependencyVulnsByAssetVersionPagedAndFlat_Call
- func (_c *DependencyVulnRepository_GetDependencyVulnsByAssetVersionPagedAndFlat_Call) RunAndReturn(...) *DependencyVulnRepository_GetDependencyVulnsByAssetVersionPagedAndFlat_Call
- type DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call
- func (_c *DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call) Return(dependencyVulns []models.DependencyVuln, err error) *DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call
- func (_c *DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call) Run(...) *DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call
- func (_c *DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call) RunAndReturn(...) *DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call
- type DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call
- func (_c *DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call) Return(dependencyVulns []models.DependencyVuln, err error) *DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call
- func (_c *DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call) Run(run func(tx core.DB, assetID uuid.UUID, artifactName *string)) *DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call
- func (_c *DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call) RunAndReturn(...) *DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call
- type DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call
- func (_c *DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call) Return(dependencyVulns []models.DependencyVuln, err error) *DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call
- func (_c *DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call) Run(run func(tx core.DB, assetVersionName string, assetID uuid.UUID)) *DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call
- func (_c *DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call) RunAndReturn(...) *DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call
- type DependencyVulnRepository_GetDependencyVulnsByPurl_Call
- func (_c *DependencyVulnRepository_GetDependencyVulnsByPurl_Call) Return(dependencyVulns []models.DependencyVuln, err error) *DependencyVulnRepository_GetDependencyVulnsByPurl_Call
- func (_c *DependencyVulnRepository_GetDependencyVulnsByPurl_Call) Run(run func(tx core.DB, purls []string)) *DependencyVulnRepository_GetDependencyVulnsByPurl_Call
- func (_c *DependencyVulnRepository_GetDependencyVulnsByPurl_Call) RunAndReturn(run func(tx core.DB, purls []string) ([]models.DependencyVuln, error)) *DependencyVulnRepository_GetDependencyVulnsByPurl_Call
- type DependencyVulnRepository_GetHintsInOrganizationForVuln_Call
- func (_c *DependencyVulnRepository_GetHintsInOrganizationForVuln_Call) Return(dependencyVulnHints common.DependencyVulnHints, err error) *DependencyVulnRepository_GetHintsInOrganizationForVuln_Call
- func (_c *DependencyVulnRepository_GetHintsInOrganizationForVuln_Call) Run(run func(tx core.DB, orgID uuid.UUID, pURL string, cveID string)) *DependencyVulnRepository_GetHintsInOrganizationForVuln_Call
- func (_c *DependencyVulnRepository_GetHintsInOrganizationForVuln_Call) RunAndReturn(...) *DependencyVulnRepository_GetHintsInOrganizationForVuln_Call
- type DependencyVulnRepository_ListByAssetAndAssetVersion_Call
- func (_c *DependencyVulnRepository_ListByAssetAndAssetVersion_Call) Return(dependencyVulns []models.DependencyVuln, err error) *DependencyVulnRepository_ListByAssetAndAssetVersion_Call
- func (_c *DependencyVulnRepository_ListByAssetAndAssetVersion_Call) Run(run func(assetVersionName string, assetID uuid.UUID)) *DependencyVulnRepository_ListByAssetAndAssetVersion_Call
- func (_c *DependencyVulnRepository_ListByAssetAndAssetVersion_Call) RunAndReturn(...) *DependencyVulnRepository_ListByAssetAndAssetVersion_Call
- type DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call
- func (_c *DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call) Return(dependencyVulns []models.DependencyVuln, err error) *DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call
- func (_c *DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call) Run(run func(assetVersionName string, assetID uuid.UUID, artifactName *string)) *DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call
- func (_c *DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call) RunAndReturn(...) *DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call
- type DependencyVulnRepository_List_Call
- func (_c *DependencyVulnRepository_List_Call) Return(dependencyVulns []models.DependencyVuln, err error) *DependencyVulnRepository_List_Call
- func (_c *DependencyVulnRepository_List_Call) Run(run func(ids []string)) *DependencyVulnRepository_List_Call
- func (_c *DependencyVulnRepository_List_Call) RunAndReturn(run func(ids []string) ([]models.DependencyVuln, error)) *DependencyVulnRepository_List_Call
- type DependencyVulnRepository_Read_Call
- func (_c *DependencyVulnRepository_Read_Call) Return(dependencyVuln models.DependencyVuln, err error) *DependencyVulnRepository_Read_Call
- func (_c *DependencyVulnRepository_Read_Call) Run(run func(id string)) *DependencyVulnRepository_Read_Call
- func (_c *DependencyVulnRepository_Read_Call) RunAndReturn(run func(id string) (models.DependencyVuln, error)) *DependencyVulnRepository_Read_Call
- type DependencyVulnRepository_SaveBatch_Call
- func (_c *DependencyVulnRepository_SaveBatch_Call) Return(err error) *DependencyVulnRepository_SaveBatch_Call
- func (_c *DependencyVulnRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.DependencyVuln)) *DependencyVulnRepository_SaveBatch_Call
- func (_c *DependencyVulnRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.DependencyVuln) error) *DependencyVulnRepository_SaveBatch_Call
- type DependencyVulnRepository_Save_Call
- func (_c *DependencyVulnRepository_Save_Call) Return(err error) *DependencyVulnRepository_Save_Call
- func (_c *DependencyVulnRepository_Save_Call) Run(run func(tx core.DB, t *models.DependencyVuln)) *DependencyVulnRepository_Save_Call
- func (_c *DependencyVulnRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *models.DependencyVuln) error) *DependencyVulnRepository_Save_Call
- type DependencyVulnRepository_Transaction_Call
- func (_c *DependencyVulnRepository_Transaction_Call) Return(err error) *DependencyVulnRepository_Transaction_Call
- func (_c *DependencyVulnRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *DependencyVulnRepository_Transaction_Call
- func (_c *DependencyVulnRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *DependencyVulnRepository_Transaction_Call
- type DependencyVulnRepository_Upsert_Call
- func (_c *DependencyVulnRepository_Upsert_Call) Return(err error) *DependencyVulnRepository_Upsert_Call
- func (_c *DependencyVulnRepository_Upsert_Call) Run(run func(t *[]*models.DependencyVuln, conflictingColumns []clause.Column, ...)) *DependencyVulnRepository_Upsert_Call
- func (_c *DependencyVulnRepository_Upsert_Call) RunAndReturn(...) *DependencyVulnRepository_Upsert_Call
- type DependencyVulnService
- func (_m *DependencyVulnService) EXPECT() *DependencyVulnService_Expecter
- func (_mock *DependencyVulnService) RecalculateRawRiskAssessment(tx core.DB, responsible string, dependencyVulns []models.DependencyVuln, ...) error
- func (_mock *DependencyVulnService) SyncAllIssues(org models.Org, project models.Project, asset models.Asset, ...) error
- func (_mock *DependencyVulnService) SyncIssues(org models.Org, project models.Project, asset models.Asset, ...) error
- func (_mock *DependencyVulnService) UpdateDependencyVulnState(tx core.DB, assetID uuid.UUID, userID string, ...) (models.VulnEvent, error)
- func (_mock *DependencyVulnService) UserDetectedDependencyVulnInAnotherArtifact(tx core.DB, vulnerabilities []models.DependencyVuln, artifactName string) error
- func (_mock *DependencyVulnService) UserDetectedDependencyVulns(tx core.DB, artifactName string, dependencyVulns []models.DependencyVuln, ...) error
- func (_mock *DependencyVulnService) UserDetectedExistingVulnOnDifferentBranch(tx core.DB, artifactName string, dependencyVulns []models.DependencyVuln, ...) error
- func (_mock *DependencyVulnService) UserDidNotDetectDependencyVulnInArtifactAnymore(tx core.DB, vulnerabilities []models.DependencyVuln, artifactName string) error
- func (_mock *DependencyVulnService) UserFixedDependencyVulns(tx core.DB, userID string, dependencyVulns []models.DependencyVuln, ...) error
- type DependencyVulnService_Expecter
- func (_e *DependencyVulnService_Expecter) RecalculateRawRiskAssessment(tx interface{}, responsible interface{}, dependencyVulns interface{}, ...) *DependencyVulnService_RecalculateRawRiskAssessment_Call
- func (_e *DependencyVulnService_Expecter) SyncAllIssues(org interface{}, project interface{}, asset interface{}, ...) *DependencyVulnService_SyncAllIssues_Call
- func (_e *DependencyVulnService_Expecter) SyncIssues(org interface{}, project interface{}, asset interface{}, ...) *DependencyVulnService_SyncIssues_Call
- func (_e *DependencyVulnService_Expecter) UpdateDependencyVulnState(tx interface{}, assetID interface{}, userID interface{}, ...) *DependencyVulnService_UpdateDependencyVulnState_Call
- func (_e *DependencyVulnService_Expecter) UserDetectedDependencyVulnInAnotherArtifact(tx interface{}, vulnerabilities interface{}, artifactName interface{}) *DependencyVulnService_UserDetectedDependencyVulnInAnotherArtifact_Call
- func (_e *DependencyVulnService_Expecter) UserDetectedDependencyVulns(tx interface{}, artifactName interface{}, dependencyVulns interface{}, ...) *DependencyVulnService_UserDetectedDependencyVulns_Call
- func (_e *DependencyVulnService_Expecter) UserDetectedExistingVulnOnDifferentBranch(tx interface{}, artifactName interface{}, dependencyVulns interface{}, ...) *DependencyVulnService_UserDetectedExistingVulnOnDifferentBranch_Call
- func (_e *DependencyVulnService_Expecter) UserDidNotDetectDependencyVulnInArtifactAnymore(tx interface{}, vulnerabilities interface{}, artifactName interface{}) *DependencyVulnService_UserDidNotDetectDependencyVulnInArtifactAnymore_Call
- func (_e *DependencyVulnService_Expecter) UserFixedDependencyVulns(tx interface{}, userID interface{}, dependencyVulns interface{}, ...) *DependencyVulnService_UserFixedDependencyVulns_Call
- type DependencyVulnService_RecalculateRawRiskAssessment_Call
- func (_c *DependencyVulnService_RecalculateRawRiskAssessment_Call) Return(err error) *DependencyVulnService_RecalculateRawRiskAssessment_Call
- func (_c *DependencyVulnService_RecalculateRawRiskAssessment_Call) Run(...) *DependencyVulnService_RecalculateRawRiskAssessment_Call
- func (_c *DependencyVulnService_RecalculateRawRiskAssessment_Call) RunAndReturn(...) *DependencyVulnService_RecalculateRawRiskAssessment_Call
- type DependencyVulnService_SyncAllIssues_Call
- func (_c *DependencyVulnService_SyncAllIssues_Call) Return(err error) *DependencyVulnService_SyncAllIssues_Call
- func (_c *DependencyVulnService_SyncAllIssues_Call) Run(run func(org models.Org, project models.Project, asset models.Asset, ...)) *DependencyVulnService_SyncAllIssues_Call
- func (_c *DependencyVulnService_SyncAllIssues_Call) RunAndReturn(...) *DependencyVulnService_SyncAllIssues_Call
- type DependencyVulnService_SyncIssues_Call
- func (_c *DependencyVulnService_SyncIssues_Call) Return(err error) *DependencyVulnService_SyncIssues_Call
- func (_c *DependencyVulnService_SyncIssues_Call) Run(run func(org models.Org, project models.Project, asset models.Asset, ...)) *DependencyVulnService_SyncIssues_Call
- func (_c *DependencyVulnService_SyncIssues_Call) RunAndReturn(...) *DependencyVulnService_SyncIssues_Call
- type DependencyVulnService_UpdateDependencyVulnState_Call
- func (_c *DependencyVulnService_UpdateDependencyVulnState_Call) Return(vulnEvent models.VulnEvent, err error) *DependencyVulnService_UpdateDependencyVulnState_Call
- func (_c *DependencyVulnService_UpdateDependencyVulnState_Call) Run(run func(tx core.DB, assetID uuid.UUID, userID string, ...)) *DependencyVulnService_UpdateDependencyVulnState_Call
- func (_c *DependencyVulnService_UpdateDependencyVulnState_Call) RunAndReturn(...) *DependencyVulnService_UpdateDependencyVulnState_Call
- type DependencyVulnService_UserDetectedDependencyVulnInAnotherArtifact_Call
- func (_c *DependencyVulnService_UserDetectedDependencyVulnInAnotherArtifact_Call) Return(err error) *DependencyVulnService_UserDetectedDependencyVulnInAnotherArtifact_Call
- func (_c *DependencyVulnService_UserDetectedDependencyVulnInAnotherArtifact_Call) Run(...) *DependencyVulnService_UserDetectedDependencyVulnInAnotherArtifact_Call
- func (_c *DependencyVulnService_UserDetectedDependencyVulnInAnotherArtifact_Call) RunAndReturn(...) *DependencyVulnService_UserDetectedDependencyVulnInAnotherArtifact_Call
- type DependencyVulnService_UserDetectedDependencyVulns_Call
- func (_c *DependencyVulnService_UserDetectedDependencyVulns_Call) Return(err error) *DependencyVulnService_UserDetectedDependencyVulns_Call
- func (_c *DependencyVulnService_UserDetectedDependencyVulns_Call) Run(...) *DependencyVulnService_UserDetectedDependencyVulns_Call
- func (_c *DependencyVulnService_UserDetectedDependencyVulns_Call) RunAndReturn(...) *DependencyVulnService_UserDetectedDependencyVulns_Call
- type DependencyVulnService_UserDetectedExistingVulnOnDifferentBranch_Call
- func (_c *DependencyVulnService_UserDetectedExistingVulnOnDifferentBranch_Call) Return(err error) *DependencyVulnService_UserDetectedExistingVulnOnDifferentBranch_Call
- func (_c *DependencyVulnService_UserDetectedExistingVulnOnDifferentBranch_Call) Run(...) *DependencyVulnService_UserDetectedExistingVulnOnDifferentBranch_Call
- func (_c *DependencyVulnService_UserDetectedExistingVulnOnDifferentBranch_Call) RunAndReturn(...) *DependencyVulnService_UserDetectedExistingVulnOnDifferentBranch_Call
- type DependencyVulnService_UserDidNotDetectDependencyVulnInArtifactAnymore_Call
- func (_c *DependencyVulnService_UserDidNotDetectDependencyVulnInArtifactAnymore_Call) Return(err error) *DependencyVulnService_UserDidNotDetectDependencyVulnInArtifactAnymore_Call
- func (_c *DependencyVulnService_UserDidNotDetectDependencyVulnInArtifactAnymore_Call) Run(...) *DependencyVulnService_UserDidNotDetectDependencyVulnInArtifactAnymore_Call
- func (_c *DependencyVulnService_UserDidNotDetectDependencyVulnInArtifactAnymore_Call) RunAndReturn(...) *DependencyVulnService_UserDidNotDetectDependencyVulnInArtifactAnymore_Call
- type DependencyVulnService_UserFixedDependencyVulns_Call
- func (_c *DependencyVulnService_UserFixedDependencyVulns_Call) Return(err error) *DependencyVulnService_UserFixedDependencyVulns_Call
- func (_c *DependencyVulnService_UserFixedDependencyVulns_Call) Run(...) *DependencyVulnService_UserFixedDependencyVulns_Call
- func (_c *DependencyVulnService_UserFixedDependencyVulns_Call) RunAndReturn(...) *DependencyVulnService_UserFixedDependencyVulns_Call
- type Diffable
- type Diffable_AssetVersionIndependentHash_Call
- func (_c *Diffable_AssetVersionIndependentHash_Call) Return(s string) *Diffable_AssetVersionIndependentHash_Call
- func (_c *Diffable_AssetVersionIndependentHash_Call) Run(run func()) *Diffable_AssetVersionIndependentHash_Call
- func (_c *Diffable_AssetVersionIndependentHash_Call) RunAndReturn(run func() string) *Diffable_AssetVersionIndependentHash_Call
- type Diffable_Expecter
- type Diffable_GetAssetVersionName_Call
- func (_c *Diffable_GetAssetVersionName_Call) Return(s string) *Diffable_GetAssetVersionName_Call
- func (_c *Diffable_GetAssetVersionName_Call) Run(run func()) *Diffable_GetAssetVersionName_Call
- func (_c *Diffable_GetAssetVersionName_Call) RunAndReturn(run func() string) *Diffable_GetAssetVersionName_Call
- type Diffable_GetEvents_Call
- type ExploitRepository
- type ExploitRepository_Expecter
- type ExploitRepository_GetAllExploitsID_Call
- func (_c *ExploitRepository_GetAllExploitsID_Call) Return(strings []string, err error) *ExploitRepository_GetAllExploitsID_Call
- func (_c *ExploitRepository_GetAllExploitsID_Call) Run(run func()) *ExploitRepository_GetAllExploitsID_Call
- func (_c *ExploitRepository_GetAllExploitsID_Call) RunAndReturn(run func() ([]string, error)) *ExploitRepository_GetAllExploitsID_Call
- type ExploitRepository_SaveBatch_Call
- func (_c *ExploitRepository_SaveBatch_Call) Return(err error) *ExploitRepository_SaveBatch_Call
- func (_c *ExploitRepository_SaveBatch_Call) Run(run func(tx core.DB, exploits []models.Exploit)) *ExploitRepository_SaveBatch_Call
- func (_c *ExploitRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, exploits []models.Exploit) error) *ExploitRepository_SaveBatch_Call
- type ExternalEntityProviderService
- func (_m *ExternalEntityProviderService) EXPECT() *ExternalEntityProviderService_Expecter
- func (_mock *ExternalEntityProviderService) RefreshExternalEntityProviderProjects(ctx core.Context, org models.Org, user string) error
- func (_mock *ExternalEntityProviderService) SyncOrgs(c core.Context) ([]*models.Org, error)
- func (_mock *ExternalEntityProviderService) TriggerOrgSync(c core.Context) error
- type ExternalEntityProviderService_Expecter
- func (_e *ExternalEntityProviderService_Expecter) RefreshExternalEntityProviderProjects(ctx interface{}, org interface{}, user interface{}) *ExternalEntityProviderService_RefreshExternalEntityProviderProjects_Call
- func (_e *ExternalEntityProviderService_Expecter) SyncOrgs(c interface{}) *ExternalEntityProviderService_SyncOrgs_Call
- func (_e *ExternalEntityProviderService_Expecter) TriggerOrgSync(c interface{}) *ExternalEntityProviderService_TriggerOrgSync_Call
- type ExternalEntityProviderService_RefreshExternalEntityProviderProjects_Call
- func (_c *ExternalEntityProviderService_RefreshExternalEntityProviderProjects_Call) Return(err error) *ExternalEntityProviderService_RefreshExternalEntityProviderProjects_Call
- func (_c *ExternalEntityProviderService_RefreshExternalEntityProviderProjects_Call) Run(run func(ctx core.Context, org models.Org, user string)) *ExternalEntityProviderService_RefreshExternalEntityProviderProjects_Call
- func (_c *ExternalEntityProviderService_RefreshExternalEntityProviderProjects_Call) RunAndReturn(run func(ctx core.Context, org models.Org, user string) error) *ExternalEntityProviderService_RefreshExternalEntityProviderProjects_Call
- type ExternalEntityProviderService_SyncOrgs_Call
- func (_c *ExternalEntityProviderService_SyncOrgs_Call) Return(orgs []*models.Org, err error) *ExternalEntityProviderService_SyncOrgs_Call
- func (_c *ExternalEntityProviderService_SyncOrgs_Call) Run(run func(c core.Context)) *ExternalEntityProviderService_SyncOrgs_Call
- func (_c *ExternalEntityProviderService_SyncOrgs_Call) RunAndReturn(run func(c core.Context) ([]*models.Org, error)) *ExternalEntityProviderService_SyncOrgs_Call
- type ExternalEntityProviderService_TriggerOrgSync_Call
- func (_c *ExternalEntityProviderService_TriggerOrgSync_Call) Return(err error) *ExternalEntityProviderService_TriggerOrgSync_Call
- func (_c *ExternalEntityProviderService_TriggerOrgSync_Call) Run(run func(c core.Context)) *ExternalEntityProviderService_TriggerOrgSync_Call
- func (_c *ExternalEntityProviderService_TriggerOrgSync_Call) RunAndReturn(run func(c core.Context) error) *ExternalEntityProviderService_TriggerOrgSync_Call
- type ExternalUserRepository
- func (_m *ExternalUserRepository) EXPECT() *ExternalUserRepository_Expecter
- func (_mock *ExternalUserRepository) FindByOrgID(tx core.DB, orgID uuid.UUID) ([]models.ExternalUser, error)
- func (_mock *ExternalUserRepository) GetDB(tx core.DB) core.DB
- func (_mock *ExternalUserRepository) Save(db core.DB, user *models.ExternalUser) error
- type ExternalUserRepository_Expecter
- func (_e *ExternalUserRepository_Expecter) FindByOrgID(tx interface{}, orgID interface{}) *ExternalUserRepository_FindByOrgID_Call
- func (_e *ExternalUserRepository_Expecter) GetDB(tx interface{}) *ExternalUserRepository_GetDB_Call
- func (_e *ExternalUserRepository_Expecter) Save(db interface{}, user interface{}) *ExternalUserRepository_Save_Call
- type ExternalUserRepository_FindByOrgID_Call
- func (_c *ExternalUserRepository_FindByOrgID_Call) Return(externalUsers []models.ExternalUser, err error) *ExternalUserRepository_FindByOrgID_Call
- func (_c *ExternalUserRepository_FindByOrgID_Call) Run(run func(tx core.DB, orgID uuid.UUID)) *ExternalUserRepository_FindByOrgID_Call
- func (_c *ExternalUserRepository_FindByOrgID_Call) RunAndReturn(run func(tx core.DB, orgID uuid.UUID) ([]models.ExternalUser, error)) *ExternalUserRepository_FindByOrgID_Call
- type ExternalUserRepository_GetDB_Call
- func (_c *ExternalUserRepository_GetDB_Call) Return(v core.DB) *ExternalUserRepository_GetDB_Call
- func (_c *ExternalUserRepository_GetDB_Call) Run(run func(tx core.DB)) *ExternalUserRepository_GetDB_Call
- func (_c *ExternalUserRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *ExternalUserRepository_GetDB_Call
- type ExternalUserRepository_Save_Call
- func (_c *ExternalUserRepository_Save_Call) Return(err error) *ExternalUserRepository_Save_Call
- func (_c *ExternalUserRepository_Save_Call) Run(run func(db core.DB, user *models.ExternalUser)) *ExternalUserRepository_Save_Call
- func (_c *ExternalUserRepository_Save_Call) RunAndReturn(run func(db core.DB, user *models.ExternalUser) error) *ExternalUserRepository_Save_Call
- type FireAndForgetSynchronizer
- type FireAndForgetSynchronizer_Expecter
- type FireAndForgetSynchronizer_FireAndForget_Call
- func (_c *FireAndForgetSynchronizer_FireAndForget_Call) Return() *FireAndForgetSynchronizer_FireAndForget_Call
- func (_c *FireAndForgetSynchronizer_FireAndForget_Call) Run(run func(fn func())) *FireAndForgetSynchronizer_FireAndForget_Call
- func (_c *FireAndForgetSynchronizer_FireAndForget_Call) RunAndReturn(run func(fn func())) *FireAndForgetSynchronizer_FireAndForget_Call
- type FirstPartyVulnRepository
- func (_mock *FirstPartyVulnRepository) Activate(tx core.DB, id string) error
- func (_mock *FirstPartyVulnRepository) All() ([]models.FirstPartyVuln, error)
- func (_mock *FirstPartyVulnRepository) ApplyAndSave(tx core.DB, dependencyVuln *models.FirstPartyVuln, vulnEvent *models.VulnEvent) error
- func (_mock *FirstPartyVulnRepository) Begin() core.DB
- func (_mock *FirstPartyVulnRepository) Create(tx core.DB, t *models.FirstPartyVuln) error
- func (_mock *FirstPartyVulnRepository) CreateBatch(tx core.DB, ts []models.FirstPartyVuln) error
- func (_mock *FirstPartyVulnRepository) Delete(tx core.DB, id string) error
- func (_mock *FirstPartyVulnRepository) DeleteBatch(tx core.DB, ids []models.FirstPartyVuln) error
- func (_m *FirstPartyVulnRepository) EXPECT() *FirstPartyVulnRepository_Expecter
- func (_mock *FirstPartyVulnRepository) GetByAssetID(tx core.DB, assetID uuid.UUID) ([]models.FirstPartyVuln, error)
- func (_mock *FirstPartyVulnRepository) GetByAssetVersion(tx core.DB, assetVersionName string, assetID uuid.UUID) ([]models.FirstPartyVuln, error)
- func (_mock *FirstPartyVulnRepository) GetByAssetVersionPaged(tx core.DB, assetVersionName string, assetID uuid.UUID, pageInfo core.PageInfo, ...) (core.Paged[models.FirstPartyVuln], map[string]int, error)
- func (_mock *FirstPartyVulnRepository) GetDB(tx core.DB) core.DB
- func (_mock *FirstPartyVulnRepository) GetDefaultFirstPartyVulnsByOrgIDPaged(tx core.DB, userAllowedProjectIds []string, pageInfo core.PageInfo, ...) (core.Paged[models.FirstPartyVuln], error)
- func (_mock *FirstPartyVulnRepository) GetDefaultFirstPartyVulnsByProjectIDPaged(tx core.DB, projectID uuid.UUID, pageInfo core.PageInfo, search string, ...) (core.Paged[models.FirstPartyVuln], error)
- func (_mock *FirstPartyVulnRepository) GetFirstPartyVulnsByOtherAssetVersions(tx core.DB, assetVersionName string, assetID uuid.UUID, scannerID string) ([]models.FirstPartyVuln, error)
- func (_mock *FirstPartyVulnRepository) List(ids []string) ([]models.FirstPartyVuln, error)
- func (_mock *FirstPartyVulnRepository) ListByScanner(assetVersionName string, assetID uuid.UUID, scannerID string) ([]models.FirstPartyVuln, error)
- func (_mock *FirstPartyVulnRepository) Read(id string) (models.FirstPartyVuln, error)
- func (_mock *FirstPartyVulnRepository) Save(tx core.DB, vuln *models.FirstPartyVuln) error
- func (_mock *FirstPartyVulnRepository) SaveBatch(tx core.DB, vulns []models.FirstPartyVuln) error
- func (_mock *FirstPartyVulnRepository) Transaction(txFunc func(core.DB) error) error
- func (_mock *FirstPartyVulnRepository) Upsert(t *[]*models.FirstPartyVuln, conflictingColumns []clause.Column, ...) error
- type FirstPartyVulnRepository_Activate_Call
- func (_c *FirstPartyVulnRepository_Activate_Call) Return(err error) *FirstPartyVulnRepository_Activate_Call
- func (_c *FirstPartyVulnRepository_Activate_Call) Run(run func(tx core.DB, id string)) *FirstPartyVulnRepository_Activate_Call
- func (_c *FirstPartyVulnRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id string) error) *FirstPartyVulnRepository_Activate_Call
- type FirstPartyVulnRepository_All_Call
- func (_c *FirstPartyVulnRepository_All_Call) Return(firstPartyVulns []models.FirstPartyVuln, err error) *FirstPartyVulnRepository_All_Call
- func (_c *FirstPartyVulnRepository_All_Call) Run(run func()) *FirstPartyVulnRepository_All_Call
- func (_c *FirstPartyVulnRepository_All_Call) RunAndReturn(run func() ([]models.FirstPartyVuln, error)) *FirstPartyVulnRepository_All_Call
- type FirstPartyVulnRepository_ApplyAndSave_Call
- func (_c *FirstPartyVulnRepository_ApplyAndSave_Call) Return(err error) *FirstPartyVulnRepository_ApplyAndSave_Call
- func (_c *FirstPartyVulnRepository_ApplyAndSave_Call) Run(...) *FirstPartyVulnRepository_ApplyAndSave_Call
- func (_c *FirstPartyVulnRepository_ApplyAndSave_Call) RunAndReturn(...) *FirstPartyVulnRepository_ApplyAndSave_Call
- type FirstPartyVulnRepository_Begin_Call
- func (_c *FirstPartyVulnRepository_Begin_Call) Return(v core.DB) *FirstPartyVulnRepository_Begin_Call
- func (_c *FirstPartyVulnRepository_Begin_Call) Run(run func()) *FirstPartyVulnRepository_Begin_Call
- func (_c *FirstPartyVulnRepository_Begin_Call) RunAndReturn(run func() core.DB) *FirstPartyVulnRepository_Begin_Call
- type FirstPartyVulnRepository_CreateBatch_Call
- func (_c *FirstPartyVulnRepository_CreateBatch_Call) Return(err error) *FirstPartyVulnRepository_CreateBatch_Call
- func (_c *FirstPartyVulnRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.FirstPartyVuln)) *FirstPartyVulnRepository_CreateBatch_Call
- func (_c *FirstPartyVulnRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.FirstPartyVuln) error) *FirstPartyVulnRepository_CreateBatch_Call
- type FirstPartyVulnRepository_Create_Call
- func (_c *FirstPartyVulnRepository_Create_Call) Return(err error) *FirstPartyVulnRepository_Create_Call
- func (_c *FirstPartyVulnRepository_Create_Call) Run(run func(tx core.DB, t *models.FirstPartyVuln)) *FirstPartyVulnRepository_Create_Call
- func (_c *FirstPartyVulnRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.FirstPartyVuln) error) *FirstPartyVulnRepository_Create_Call
- type FirstPartyVulnRepository_DeleteBatch_Call
- func (_c *FirstPartyVulnRepository_DeleteBatch_Call) Return(err error) *FirstPartyVulnRepository_DeleteBatch_Call
- func (_c *FirstPartyVulnRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.FirstPartyVuln)) *FirstPartyVulnRepository_DeleteBatch_Call
- func (_c *FirstPartyVulnRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.FirstPartyVuln) error) *FirstPartyVulnRepository_DeleteBatch_Call
- type FirstPartyVulnRepository_Delete_Call
- func (_c *FirstPartyVulnRepository_Delete_Call) Return(err error) *FirstPartyVulnRepository_Delete_Call
- func (_c *FirstPartyVulnRepository_Delete_Call) Run(run func(tx core.DB, id string)) *FirstPartyVulnRepository_Delete_Call
- func (_c *FirstPartyVulnRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id string) error) *FirstPartyVulnRepository_Delete_Call
- type FirstPartyVulnRepository_Expecter
- func (_e *FirstPartyVulnRepository_Expecter) Activate(tx interface{}, id interface{}) *FirstPartyVulnRepository_Activate_Call
- func (_e *FirstPartyVulnRepository_Expecter) All() *FirstPartyVulnRepository_All_Call
- func (_e *FirstPartyVulnRepository_Expecter) ApplyAndSave(tx interface{}, dependencyVuln interface{}, vulnEvent interface{}) *FirstPartyVulnRepository_ApplyAndSave_Call
- func (_e *FirstPartyVulnRepository_Expecter) Begin() *FirstPartyVulnRepository_Begin_Call
- func (_e *FirstPartyVulnRepository_Expecter) Create(tx interface{}, t interface{}) *FirstPartyVulnRepository_Create_Call
- func (_e *FirstPartyVulnRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *FirstPartyVulnRepository_CreateBatch_Call
- func (_e *FirstPartyVulnRepository_Expecter) Delete(tx interface{}, id interface{}) *FirstPartyVulnRepository_Delete_Call
- func (_e *FirstPartyVulnRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *FirstPartyVulnRepository_DeleteBatch_Call
- func (_e *FirstPartyVulnRepository_Expecter) GetByAssetID(tx interface{}, assetID interface{}) *FirstPartyVulnRepository_GetByAssetID_Call
- func (_e *FirstPartyVulnRepository_Expecter) GetByAssetVersion(tx interface{}, assetVersionName interface{}, assetID interface{}) *FirstPartyVulnRepository_GetByAssetVersion_Call
- func (_e *FirstPartyVulnRepository_Expecter) GetByAssetVersionPaged(tx interface{}, assetVersionName interface{}, assetID interface{}, ...) *FirstPartyVulnRepository_GetByAssetVersionPaged_Call
- func (_e *FirstPartyVulnRepository_Expecter) GetDB(tx interface{}) *FirstPartyVulnRepository_GetDB_Call
- func (_e *FirstPartyVulnRepository_Expecter) GetDefaultFirstPartyVulnsByOrgIDPaged(tx interface{}, userAllowedProjectIds interface{}, pageInfo interface{}, ...) *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByOrgIDPaged_Call
- func (_e *FirstPartyVulnRepository_Expecter) GetDefaultFirstPartyVulnsByProjectIDPaged(tx interface{}, projectID interface{}, pageInfo interface{}, ...) *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByProjectIDPaged_Call
- func (_e *FirstPartyVulnRepository_Expecter) GetFirstPartyVulnsByOtherAssetVersions(tx interface{}, assetVersionName interface{}, assetID interface{}, ...) *FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call
- func (_e *FirstPartyVulnRepository_Expecter) List(ids interface{}) *FirstPartyVulnRepository_List_Call
- func (_e *FirstPartyVulnRepository_Expecter) ListByScanner(assetVersionName interface{}, assetID interface{}, scannerID interface{}) *FirstPartyVulnRepository_ListByScanner_Call
- func (_e *FirstPartyVulnRepository_Expecter) Read(id interface{}) *FirstPartyVulnRepository_Read_Call
- func (_e *FirstPartyVulnRepository_Expecter) Save(tx interface{}, vuln interface{}) *FirstPartyVulnRepository_Save_Call
- func (_e *FirstPartyVulnRepository_Expecter) SaveBatch(tx interface{}, vulns interface{}) *FirstPartyVulnRepository_SaveBatch_Call
- func (_e *FirstPartyVulnRepository_Expecter) Transaction(txFunc interface{}) *FirstPartyVulnRepository_Transaction_Call
- func (_e *FirstPartyVulnRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *FirstPartyVulnRepository_Upsert_Call
- type FirstPartyVulnRepository_GetByAssetID_Call
- func (_c *FirstPartyVulnRepository_GetByAssetID_Call) Return(firstPartyVulns []models.FirstPartyVuln, err error) *FirstPartyVulnRepository_GetByAssetID_Call
- func (_c *FirstPartyVulnRepository_GetByAssetID_Call) Run(run func(tx core.DB, assetID uuid.UUID)) *FirstPartyVulnRepository_GetByAssetID_Call
- func (_c *FirstPartyVulnRepository_GetByAssetID_Call) RunAndReturn(run func(tx core.DB, assetID uuid.UUID) ([]models.FirstPartyVuln, error)) *FirstPartyVulnRepository_GetByAssetID_Call
- type FirstPartyVulnRepository_GetByAssetVersionPaged_Call
- func (_c *FirstPartyVulnRepository_GetByAssetVersionPaged_Call) Return(paged core.Paged[models.FirstPartyVuln], stringToInt map[string]int, err error) *FirstPartyVulnRepository_GetByAssetVersionPaged_Call
- func (_c *FirstPartyVulnRepository_GetByAssetVersionPaged_Call) Run(...) *FirstPartyVulnRepository_GetByAssetVersionPaged_Call
- func (_c *FirstPartyVulnRepository_GetByAssetVersionPaged_Call) RunAndReturn(...) *FirstPartyVulnRepository_GetByAssetVersionPaged_Call
- type FirstPartyVulnRepository_GetByAssetVersion_Call
- func (_c *FirstPartyVulnRepository_GetByAssetVersion_Call) Return(firstPartyVulns []models.FirstPartyVuln, err error) *FirstPartyVulnRepository_GetByAssetVersion_Call
- func (_c *FirstPartyVulnRepository_GetByAssetVersion_Call) Run(run func(tx core.DB, assetVersionName string, assetID uuid.UUID)) *FirstPartyVulnRepository_GetByAssetVersion_Call
- func (_c *FirstPartyVulnRepository_GetByAssetVersion_Call) RunAndReturn(...) *FirstPartyVulnRepository_GetByAssetVersion_Call
- type FirstPartyVulnRepository_GetDB_Call
- func (_c *FirstPartyVulnRepository_GetDB_Call) Return(v core.DB) *FirstPartyVulnRepository_GetDB_Call
- func (_c *FirstPartyVulnRepository_GetDB_Call) Run(run func(tx core.DB)) *FirstPartyVulnRepository_GetDB_Call
- func (_c *FirstPartyVulnRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *FirstPartyVulnRepository_GetDB_Call
- type FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByOrgIDPaged_Call
- func (_c *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByOrgIDPaged_Call) Return(paged core.Paged[models.FirstPartyVuln], err error) *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByOrgIDPaged_Call
- func (_c *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByOrgIDPaged_Call) Run(...) *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByOrgIDPaged_Call
- func (_c *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByOrgIDPaged_Call) RunAndReturn(...) *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByOrgIDPaged_Call
- type FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByProjectIDPaged_Call
- func (_c *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByProjectIDPaged_Call) Return(paged core.Paged[models.FirstPartyVuln], err error) *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByProjectIDPaged_Call
- func (_c *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByProjectIDPaged_Call) Run(...) *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByProjectIDPaged_Call
- func (_c *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByProjectIDPaged_Call) RunAndReturn(...) *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByProjectIDPaged_Call
- type FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call
- func (_c *FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call) Return(firstPartyVulns []models.FirstPartyVuln, err error) *FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call
- func (_c *FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call) Run(...) *FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call
- func (_c *FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call) RunAndReturn(...) *FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call
- type FirstPartyVulnRepository_ListByScanner_Call
- func (_c *FirstPartyVulnRepository_ListByScanner_Call) Return(firstPartyVulns []models.FirstPartyVuln, err error) *FirstPartyVulnRepository_ListByScanner_Call
- func (_c *FirstPartyVulnRepository_ListByScanner_Call) Run(run func(assetVersionName string, assetID uuid.UUID, scannerID string)) *FirstPartyVulnRepository_ListByScanner_Call
- func (_c *FirstPartyVulnRepository_ListByScanner_Call) RunAndReturn(...) *FirstPartyVulnRepository_ListByScanner_Call
- type FirstPartyVulnRepository_List_Call
- func (_c *FirstPartyVulnRepository_List_Call) Return(firstPartyVulns []models.FirstPartyVuln, err error) *FirstPartyVulnRepository_List_Call
- func (_c *FirstPartyVulnRepository_List_Call) Run(run func(ids []string)) *FirstPartyVulnRepository_List_Call
- func (_c *FirstPartyVulnRepository_List_Call) RunAndReturn(run func(ids []string) ([]models.FirstPartyVuln, error)) *FirstPartyVulnRepository_List_Call
- type FirstPartyVulnRepository_Read_Call
- func (_c *FirstPartyVulnRepository_Read_Call) Return(firstPartyVuln models.FirstPartyVuln, err error) *FirstPartyVulnRepository_Read_Call
- func (_c *FirstPartyVulnRepository_Read_Call) Run(run func(id string)) *FirstPartyVulnRepository_Read_Call
- func (_c *FirstPartyVulnRepository_Read_Call) RunAndReturn(run func(id string) (models.FirstPartyVuln, error)) *FirstPartyVulnRepository_Read_Call
- type FirstPartyVulnRepository_SaveBatch_Call
- func (_c *FirstPartyVulnRepository_SaveBatch_Call) Return(err error) *FirstPartyVulnRepository_SaveBatch_Call
- func (_c *FirstPartyVulnRepository_SaveBatch_Call) Run(run func(tx core.DB, vulns []models.FirstPartyVuln)) *FirstPartyVulnRepository_SaveBatch_Call
- func (_c *FirstPartyVulnRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, vulns []models.FirstPartyVuln) error) *FirstPartyVulnRepository_SaveBatch_Call
- type FirstPartyVulnRepository_Save_Call
- func (_c *FirstPartyVulnRepository_Save_Call) Return(err error) *FirstPartyVulnRepository_Save_Call
- func (_c *FirstPartyVulnRepository_Save_Call) Run(run func(tx core.DB, vuln *models.FirstPartyVuln)) *FirstPartyVulnRepository_Save_Call
- func (_c *FirstPartyVulnRepository_Save_Call) RunAndReturn(run func(tx core.DB, vuln *models.FirstPartyVuln) error) *FirstPartyVulnRepository_Save_Call
- type FirstPartyVulnRepository_Transaction_Call
- func (_c *FirstPartyVulnRepository_Transaction_Call) Return(err error) *FirstPartyVulnRepository_Transaction_Call
- func (_c *FirstPartyVulnRepository_Transaction_Call) Run(run func(txFunc func(core.DB) error)) *FirstPartyVulnRepository_Transaction_Call
- func (_c *FirstPartyVulnRepository_Transaction_Call) RunAndReturn(run func(txFunc func(core.DB) error) error) *FirstPartyVulnRepository_Transaction_Call
- type FirstPartyVulnRepository_Upsert_Call
- func (_c *FirstPartyVulnRepository_Upsert_Call) Return(err error) *FirstPartyVulnRepository_Upsert_Call
- func (_c *FirstPartyVulnRepository_Upsert_Call) Run(run func(t *[]*models.FirstPartyVuln, conflictingColumns []clause.Column, ...)) *FirstPartyVulnRepository_Upsert_Call
- func (_c *FirstPartyVulnRepository_Upsert_Call) RunAndReturn(...) *FirstPartyVulnRepository_Upsert_Call
- type FirstPartyVulnService
- func (_m *FirstPartyVulnService) EXPECT() *FirstPartyVulnService_Expecter
- func (_mock *FirstPartyVulnService) SyncAllIssues(org models.Org, project models.Project, asset models.Asset, ...) error
- func (_mock *FirstPartyVulnService) SyncIssues(org models.Org, project models.Project, asset models.Asset, ...) error
- func (_mock *FirstPartyVulnService) UpdateFirstPartyVulnState(tx core.DB, userID string, firstPartyVuln *models.FirstPartyVuln, ...) (models.VulnEvent, error)
- func (_mock *FirstPartyVulnService) UserDetectedExistingFirstPartyVulnOnDifferentBranch(tx core.DB, scannerID string, firstPartyVulns []models.FirstPartyVuln, ...) error
- func (_mock *FirstPartyVulnService) UserDetectedFirstPartyVulns(tx core.DB, userID string, scannerID string, ...) error
- func (_mock *FirstPartyVulnService) UserFixedFirstPartyVulns(tx core.DB, userID string, firstPartyVulns []models.FirstPartyVuln) error
- type FirstPartyVulnService_Expecter
- func (_e *FirstPartyVulnService_Expecter) SyncAllIssues(org interface{}, project interface{}, asset interface{}, ...) *FirstPartyVulnService_SyncAllIssues_Call
- func (_e *FirstPartyVulnService_Expecter) SyncIssues(org interface{}, project interface{}, asset interface{}, ...) *FirstPartyVulnService_SyncIssues_Call
- func (_e *FirstPartyVulnService_Expecter) UpdateFirstPartyVulnState(tx interface{}, userID interface{}, firstPartyVuln interface{}, ...) *FirstPartyVulnService_UpdateFirstPartyVulnState_Call
- func (_e *FirstPartyVulnService_Expecter) UserDetectedExistingFirstPartyVulnOnDifferentBranch(tx interface{}, scannerID interface{}, firstPartyVulns interface{}, ...) ...
- func (_e *FirstPartyVulnService_Expecter) UserDetectedFirstPartyVulns(tx interface{}, userID interface{}, scannerID interface{}, ...) *FirstPartyVulnService_UserDetectedFirstPartyVulns_Call
- func (_e *FirstPartyVulnService_Expecter) UserFixedFirstPartyVulns(tx interface{}, userID interface{}, firstPartyVulns interface{}) *FirstPartyVulnService_UserFixedFirstPartyVulns_Call
- type FirstPartyVulnService_SyncAllIssues_Call
- func (_c *FirstPartyVulnService_SyncAllIssues_Call) Return(err error) *FirstPartyVulnService_SyncAllIssues_Call
- func (_c *FirstPartyVulnService_SyncAllIssues_Call) Run(run func(org models.Org, project models.Project, asset models.Asset, ...)) *FirstPartyVulnService_SyncAllIssues_Call
- func (_c *FirstPartyVulnService_SyncAllIssues_Call) RunAndReturn(...) *FirstPartyVulnService_SyncAllIssues_Call
- type FirstPartyVulnService_SyncIssues_Call
- func (_c *FirstPartyVulnService_SyncIssues_Call) Return(err error) *FirstPartyVulnService_SyncIssues_Call
- func (_c *FirstPartyVulnService_SyncIssues_Call) Run(run func(org models.Org, project models.Project, asset models.Asset, ...)) *FirstPartyVulnService_SyncIssues_Call
- func (_c *FirstPartyVulnService_SyncIssues_Call) RunAndReturn(...) *FirstPartyVulnService_SyncIssues_Call
- type FirstPartyVulnService_UpdateFirstPartyVulnState_Call
- func (_c *FirstPartyVulnService_UpdateFirstPartyVulnState_Call) Return(vulnEvent models.VulnEvent, err error) *FirstPartyVulnService_UpdateFirstPartyVulnState_Call
- func (_c *FirstPartyVulnService_UpdateFirstPartyVulnState_Call) Run(...) *FirstPartyVulnService_UpdateFirstPartyVulnState_Call
- func (_c *FirstPartyVulnService_UpdateFirstPartyVulnState_Call) RunAndReturn(...) *FirstPartyVulnService_UpdateFirstPartyVulnState_Call
- type FirstPartyVulnService_UserDetectedExistingFirstPartyVulnOnDifferentBranch_Call
- func (_c *FirstPartyVulnService_UserDetectedExistingFirstPartyVulnOnDifferentBranch_Call) Return(err error) ...
- func (_c *FirstPartyVulnService_UserDetectedExistingFirstPartyVulnOnDifferentBranch_Call) Run(...) ...
- func (_c *FirstPartyVulnService_UserDetectedExistingFirstPartyVulnOnDifferentBranch_Call) RunAndReturn(...) ...
- type FirstPartyVulnService_UserDetectedFirstPartyVulns_Call
- func (_c *FirstPartyVulnService_UserDetectedFirstPartyVulns_Call) Return(err error) *FirstPartyVulnService_UserDetectedFirstPartyVulns_Call
- func (_c *FirstPartyVulnService_UserDetectedFirstPartyVulns_Call) Run(run func(tx core.DB, userID string, scannerID string, ...)) *FirstPartyVulnService_UserDetectedFirstPartyVulns_Call
- func (_c *FirstPartyVulnService_UserDetectedFirstPartyVulns_Call) RunAndReturn(run func(tx core.DB, userID string, scannerID string, ...) error) *FirstPartyVulnService_UserDetectedFirstPartyVulns_Call
- type FirstPartyVulnService_UserFixedFirstPartyVulns_Call
- func (_c *FirstPartyVulnService_UserFixedFirstPartyVulns_Call) Return(err error) *FirstPartyVulnService_UserFixedFirstPartyVulns_Call
- func (_c *FirstPartyVulnService_UserFixedFirstPartyVulns_Call) Run(run func(tx core.DB, userID string, firstPartyVulns []models.FirstPartyVuln)) *FirstPartyVulnService_UserFixedFirstPartyVulns_Call
- func (_c *FirstPartyVulnService_UserFixedFirstPartyVulns_Call) RunAndReturn(...) *FirstPartyVulnService_UserFixedFirstPartyVulns_Call
- type GitLabOauth2TokenRepository
- func (_mock *GitLabOauth2TokenRepository) CreateIfNotExists(tokens []*models.GitLabOauth2Token) error
- func (_mock *GitLabOauth2TokenRepository) Delete(tx core.DB, tokens []models.GitLabOauth2Token) error
- func (_mock *GitLabOauth2TokenRepository) DeleteByUserIDAndProviderID(userID string, providerID string) error
- func (_m *GitLabOauth2TokenRepository) EXPECT() *GitLabOauth2TokenRepository_Expecter
- func (_mock *GitLabOauth2TokenRepository) FindByUserID(userID string) ([]models.GitLabOauth2Token, error)
- func (_mock *GitLabOauth2TokenRepository) FindByUserIDAndProviderID(userID string, providerID string) (*models.GitLabOauth2Token, error)
- func (_mock *GitLabOauth2TokenRepository) Save(tx core.DB, model ...*models.GitLabOauth2Token) error
- type GitLabOauth2TokenRepository_CreateIfNotExists_Call
- func (_c *GitLabOauth2TokenRepository_CreateIfNotExists_Call) Return(err error) *GitLabOauth2TokenRepository_CreateIfNotExists_Call
- func (_c *GitLabOauth2TokenRepository_CreateIfNotExists_Call) Run(run func(tokens []*models.GitLabOauth2Token)) *GitLabOauth2TokenRepository_CreateIfNotExists_Call
- func (_c *GitLabOauth2TokenRepository_CreateIfNotExists_Call) RunAndReturn(run func(tokens []*models.GitLabOauth2Token) error) *GitLabOauth2TokenRepository_CreateIfNotExists_Call
- type GitLabOauth2TokenRepository_DeleteByUserIDAndProviderID_Call
- func (_c *GitLabOauth2TokenRepository_DeleteByUserIDAndProviderID_Call) Return(err error) *GitLabOauth2TokenRepository_DeleteByUserIDAndProviderID_Call
- func (_c *GitLabOauth2TokenRepository_DeleteByUserIDAndProviderID_Call) Run(run func(userID string, providerID string)) *GitLabOauth2TokenRepository_DeleteByUserIDAndProviderID_Call
- func (_c *GitLabOauth2TokenRepository_DeleteByUserIDAndProviderID_Call) RunAndReturn(run func(userID string, providerID string) error) *GitLabOauth2TokenRepository_DeleteByUserIDAndProviderID_Call
- type GitLabOauth2TokenRepository_Delete_Call
- func (_c *GitLabOauth2TokenRepository_Delete_Call) Return(err error) *GitLabOauth2TokenRepository_Delete_Call
- func (_c *GitLabOauth2TokenRepository_Delete_Call) Run(run func(tx core.DB, tokens []models.GitLabOauth2Token)) *GitLabOauth2TokenRepository_Delete_Call
- func (_c *GitLabOauth2TokenRepository_Delete_Call) RunAndReturn(run func(tx core.DB, tokens []models.GitLabOauth2Token) error) *GitLabOauth2TokenRepository_Delete_Call
- type GitLabOauth2TokenRepository_Expecter
- func (_e *GitLabOauth2TokenRepository_Expecter) CreateIfNotExists(tokens interface{}) *GitLabOauth2TokenRepository_CreateIfNotExists_Call
- func (_e *GitLabOauth2TokenRepository_Expecter) Delete(tx interface{}, tokens interface{}) *GitLabOauth2TokenRepository_Delete_Call
- func (_e *GitLabOauth2TokenRepository_Expecter) DeleteByUserIDAndProviderID(userID interface{}, providerID interface{}) *GitLabOauth2TokenRepository_DeleteByUserIDAndProviderID_Call
- func (_e *GitLabOauth2TokenRepository_Expecter) FindByUserID(userID interface{}) *GitLabOauth2TokenRepository_FindByUserID_Call
- func (_e *GitLabOauth2TokenRepository_Expecter) FindByUserIDAndProviderID(userID interface{}, providerID interface{}) *GitLabOauth2TokenRepository_FindByUserIDAndProviderID_Call
- func (_e *GitLabOauth2TokenRepository_Expecter) Save(tx interface{}, model ...interface{}) *GitLabOauth2TokenRepository_Save_Call
- type GitLabOauth2TokenRepository_FindByUserIDAndProviderID_Call
- func (_c *GitLabOauth2TokenRepository_FindByUserIDAndProviderID_Call) Return(gitLabOauth2Token *models.GitLabOauth2Token, err error) *GitLabOauth2TokenRepository_FindByUserIDAndProviderID_Call
- func (_c *GitLabOauth2TokenRepository_FindByUserIDAndProviderID_Call) Run(run func(userID string, providerID string)) *GitLabOauth2TokenRepository_FindByUserIDAndProviderID_Call
- func (_c *GitLabOauth2TokenRepository_FindByUserIDAndProviderID_Call) RunAndReturn(run func(userID string, providerID string) (*models.GitLabOauth2Token, error)) *GitLabOauth2TokenRepository_FindByUserIDAndProviderID_Call
- type GitLabOauth2TokenRepository_FindByUserID_Call
- func (_c *GitLabOauth2TokenRepository_FindByUserID_Call) Return(gitLabOauth2Tokens []models.GitLabOauth2Token, err error) *GitLabOauth2TokenRepository_FindByUserID_Call
- func (_c *GitLabOauth2TokenRepository_FindByUserID_Call) Run(run func(userID string)) *GitLabOauth2TokenRepository_FindByUserID_Call
- func (_c *GitLabOauth2TokenRepository_FindByUserID_Call) RunAndReturn(run func(userID string) ([]models.GitLabOauth2Token, error)) *GitLabOauth2TokenRepository_FindByUserID_Call
- type GitLabOauth2TokenRepository_Save_Call
- func (_c *GitLabOauth2TokenRepository_Save_Call) Return(err error) *GitLabOauth2TokenRepository_Save_Call
- func (_c *GitLabOauth2TokenRepository_Save_Call) Run(run func(tx core.DB, model ...*models.GitLabOauth2Token)) *GitLabOauth2TokenRepository_Save_Call
- func (_c *GitLabOauth2TokenRepository_Save_Call) RunAndReturn(run func(tx core.DB, model ...*models.GitLabOauth2Token) error) *GitLabOauth2TokenRepository_Save_Call
- type GitLister
- func (_m *GitLister) EXPECT() *GitLister_Expecter
- func (_mock *GitLister) GetBranchName(path string) (string, error)
- func (_mock *GitLister) GetDefaultBranchName(path string) (string, error)
- func (_mock *GitLister) GetTags(path string) ([]string, error)
- func (_mock *GitLister) GitCommitCount(path string, tag *string) (int, error)
- func (_mock *GitLister) MarkAllPathsAsSafe() error
- type GitLister_Expecter
- func (_e *GitLister_Expecter) GetBranchName(path interface{}) *GitLister_GetBranchName_Call
- func (_e *GitLister_Expecter) GetDefaultBranchName(path interface{}) *GitLister_GetDefaultBranchName_Call
- func (_e *GitLister_Expecter) GetTags(path interface{}) *GitLister_GetTags_Call
- func (_e *GitLister_Expecter) GitCommitCount(path interface{}, tag interface{}) *GitLister_GitCommitCount_Call
- func (_e *GitLister_Expecter) MarkAllPathsAsSafe() *GitLister_MarkAllPathsAsSafe_Call
- type GitLister_GetBranchName_Call
- func (_c *GitLister_GetBranchName_Call) Return(s string, err error) *GitLister_GetBranchName_Call
- func (_c *GitLister_GetBranchName_Call) Run(run func(path string)) *GitLister_GetBranchName_Call
- func (_c *GitLister_GetBranchName_Call) RunAndReturn(run func(path string) (string, error)) *GitLister_GetBranchName_Call
- type GitLister_GetDefaultBranchName_Call
- func (_c *GitLister_GetDefaultBranchName_Call) Return(s string, err error) *GitLister_GetDefaultBranchName_Call
- func (_c *GitLister_GetDefaultBranchName_Call) Run(run func(path string)) *GitLister_GetDefaultBranchName_Call
- func (_c *GitLister_GetDefaultBranchName_Call) RunAndReturn(run func(path string) (string, error)) *GitLister_GetDefaultBranchName_Call
- type GitLister_GetTags_Call
- type GitLister_GitCommitCount_Call
- func (_c *GitLister_GitCommitCount_Call) Return(n int, err error) *GitLister_GitCommitCount_Call
- func (_c *GitLister_GitCommitCount_Call) Run(run func(path string, tag *string)) *GitLister_GitCommitCount_Call
- func (_c *GitLister_GitCommitCount_Call) RunAndReturn(run func(path string, tag *string) (int, error)) *GitLister_GitCommitCount_Call
- type GitLister_MarkAllPathsAsSafe_Call
- func (_c *GitLister_MarkAllPathsAsSafe_Call) Return(err error) *GitLister_MarkAllPathsAsSafe_Call
- func (_c *GitLister_MarkAllPathsAsSafe_Call) Run(run func()) *GitLister_MarkAllPathsAsSafe_Call
- func (_c *GitLister_MarkAllPathsAsSafe_Call) RunAndReturn(run func() error) *GitLister_MarkAllPathsAsSafe_Call
- type GithubAppInstallationRepository
- func (_mock *GithubAppInstallationRepository) Delete(tx core.DB, installationID int) error
- func (_m *GithubAppInstallationRepository) EXPECT() *GithubAppInstallationRepository_Expecter
- func (_mock *GithubAppInstallationRepository) FindByOrganizationID(orgID uuid.UUID) ([]models.GithubAppInstallation, error)
- func (_mock *GithubAppInstallationRepository) Read(installationID int) (models.GithubAppInstallation, error)
- func (_mock *GithubAppInstallationRepository) Save(tx core.DB, model *models.GithubAppInstallation) error
- type GithubAppInstallationRepository_Delete_Call
- func (_c *GithubAppInstallationRepository_Delete_Call) Return(err error) *GithubAppInstallationRepository_Delete_Call
- func (_c *GithubAppInstallationRepository_Delete_Call) Run(run func(tx core.DB, installationID int)) *GithubAppInstallationRepository_Delete_Call
- func (_c *GithubAppInstallationRepository_Delete_Call) RunAndReturn(run func(tx core.DB, installationID int) error) *GithubAppInstallationRepository_Delete_Call
- type GithubAppInstallationRepository_Expecter
- func (_e *GithubAppInstallationRepository_Expecter) Delete(tx interface{}, installationID interface{}) *GithubAppInstallationRepository_Delete_Call
- func (_e *GithubAppInstallationRepository_Expecter) FindByOrganizationID(orgID interface{}) *GithubAppInstallationRepository_FindByOrganizationID_Call
- func (_e *GithubAppInstallationRepository_Expecter) Read(installationID interface{}) *GithubAppInstallationRepository_Read_Call
- func (_e *GithubAppInstallationRepository_Expecter) Save(tx interface{}, model interface{}) *GithubAppInstallationRepository_Save_Call
- type GithubAppInstallationRepository_FindByOrganizationID_Call
- func (_c *GithubAppInstallationRepository_FindByOrganizationID_Call) Return(githubAppInstallations []models.GithubAppInstallation, err error) *GithubAppInstallationRepository_FindByOrganizationID_Call
- func (_c *GithubAppInstallationRepository_FindByOrganizationID_Call) Run(run func(orgID uuid.UUID)) *GithubAppInstallationRepository_FindByOrganizationID_Call
- func (_c *GithubAppInstallationRepository_FindByOrganizationID_Call) RunAndReturn(run func(orgID uuid.UUID) ([]models.GithubAppInstallation, error)) *GithubAppInstallationRepository_FindByOrganizationID_Call
- type GithubAppInstallationRepository_Read_Call
- func (_c *GithubAppInstallationRepository_Read_Call) Return(githubAppInstallation models.GithubAppInstallation, err error) *GithubAppInstallationRepository_Read_Call
- func (_c *GithubAppInstallationRepository_Read_Call) Run(run func(installationID int)) *GithubAppInstallationRepository_Read_Call
- func (_c *GithubAppInstallationRepository_Read_Call) RunAndReturn(run func(installationID int) (models.GithubAppInstallation, error)) *GithubAppInstallationRepository_Read_Call
- type GithubAppInstallationRepository_Save_Call
- func (_c *GithubAppInstallationRepository_Save_Call) Return(err error) *GithubAppInstallationRepository_Save_Call
- func (_c *GithubAppInstallationRepository_Save_Call) Run(run func(tx core.DB, model *models.GithubAppInstallation)) *GithubAppInstallationRepository_Save_Call
- func (_c *GithubAppInstallationRepository_Save_Call) RunAndReturn(run func(tx core.DB, model *models.GithubAppInstallation) error) *GithubAppInstallationRepository_Save_Call
- type GithubClientFacade
- func (_mock *GithubClientFacade) CreateIssue(ctx context.Context, owner string, repo string, issue *github.IssueRequest) (*github.Issue, *github.Response, error)
- func (_mock *GithubClientFacade) CreateIssueComment(ctx context.Context, owner string, repo string, number int, ...) (*github.IssueComment, *github.Response, error)
- func (_m *GithubClientFacade) EXPECT() *GithubClientFacade_Expecter
- func (_mock *GithubClientFacade) EditIssue(ctx context.Context, owner string, repo string, number int, ...) (*github.Issue, *github.Response, error)
- func (_mock *GithubClientFacade) EditIssueLabel(ctx context.Context, owner string, repo string, name string, ...) (*github.Label, *github.Response, error)
- func (_mock *GithubClientFacade) IsCollaboratorInRepository(ctx context.Context, owner string, repoID string, userID int64, ...) (bool, error)
- type GithubClientFacade_CreateIssueComment_Call
- func (_c *GithubClientFacade_CreateIssueComment_Call) Return(issueComment *github.IssueComment, response *github.Response, err error) *GithubClientFacade_CreateIssueComment_Call
- func (_c *GithubClientFacade_CreateIssueComment_Call) Run(run func(ctx context.Context, owner string, repo string, number int, ...)) *GithubClientFacade_CreateIssueComment_Call
- func (_c *GithubClientFacade_CreateIssueComment_Call) RunAndReturn(...) *GithubClientFacade_CreateIssueComment_Call
- type GithubClientFacade_CreateIssue_Call
- func (_c *GithubClientFacade_CreateIssue_Call) Return(issue1 *github.Issue, response *github.Response, err error) *GithubClientFacade_CreateIssue_Call
- func (_c *GithubClientFacade_CreateIssue_Call) Run(...) *GithubClientFacade_CreateIssue_Call
- func (_c *GithubClientFacade_CreateIssue_Call) RunAndReturn(...) *GithubClientFacade_CreateIssue_Call
- type GithubClientFacade_EditIssueLabel_Call
- func (_c *GithubClientFacade_EditIssueLabel_Call) Return(label1 *github.Label, response *github.Response, err error) *GithubClientFacade_EditIssueLabel_Call
- func (_c *GithubClientFacade_EditIssueLabel_Call) Run(run func(ctx context.Context, owner string, repo string, name string, ...)) *GithubClientFacade_EditIssueLabel_Call
- func (_c *GithubClientFacade_EditIssueLabel_Call) RunAndReturn(...) *GithubClientFacade_EditIssueLabel_Call
- type GithubClientFacade_EditIssue_Call
- func (_c *GithubClientFacade_EditIssue_Call) Return(issue1 *github.Issue, response *github.Response, err error) *GithubClientFacade_EditIssue_Call
- func (_c *GithubClientFacade_EditIssue_Call) Run(run func(ctx context.Context, owner string, repo string, number int, ...)) *GithubClientFacade_EditIssue_Call
- func (_c *GithubClientFacade_EditIssue_Call) RunAndReturn(...) *GithubClientFacade_EditIssue_Call
- type GithubClientFacade_Expecter
- func (_e *GithubClientFacade_Expecter) CreateIssue(ctx interface{}, owner interface{}, repo interface{}, issue interface{}) *GithubClientFacade_CreateIssue_Call
- func (_e *GithubClientFacade_Expecter) CreateIssueComment(ctx interface{}, owner interface{}, repo interface{}, number interface{}, ...) *GithubClientFacade_CreateIssueComment_Call
- func (_e *GithubClientFacade_Expecter) EditIssue(ctx interface{}, owner interface{}, repo interface{}, number interface{}, ...) *GithubClientFacade_EditIssue_Call
- func (_e *GithubClientFacade_Expecter) EditIssueLabel(ctx interface{}, owner interface{}, repo interface{}, name interface{}, ...) *GithubClientFacade_EditIssueLabel_Call
- func (_e *GithubClientFacade_Expecter) IsCollaboratorInRepository(ctx interface{}, owner interface{}, repoID interface{}, userID interface{}, ...) *GithubClientFacade_IsCollaboratorInRepository_Call
- type GithubClientFacade_IsCollaboratorInRepository_Call
- func (_c *GithubClientFacade_IsCollaboratorInRepository_Call) Return(b bool, err error) *GithubClientFacade_IsCollaboratorInRepository_Call
- func (_c *GithubClientFacade_IsCollaboratorInRepository_Call) Run(run func(ctx context.Context, owner string, repoID string, userID int64, ...)) *GithubClientFacade_IsCollaboratorInRepository_Call
- func (_c *GithubClientFacade_IsCollaboratorInRepository_Call) RunAndReturn(...) *GithubClientFacade_IsCollaboratorInRepository_Call
- type GitlabClientFacade
- func (_mock *GitlabClientFacade) AddProjectHook(ctx context.Context, projectID int, opt *gitlab.AddProjectHookOptions) (*gitlab.ProjectHook, *gitlab.Response, error)
- func (_mock *GitlabClientFacade) CreateIssue(ctx context.Context, pid int, opt *gitlab.CreateIssueOptions) (*gitlab.Issue, *gitlab.Response, error)
- func (_mock *GitlabClientFacade) CreateIssueComment(ctx context.Context, pid int, issue int, opt *gitlab.CreateIssueNoteOptions) (*gitlab.Note, *gitlab.Response, error)
- func (_mock *GitlabClientFacade) CreateMergeRequest(ctx context.Context, project string, opt *gitlab.CreateMergeRequestOptions) (*gitlab.MergeRequest, *gitlab.Response, error)
- func (_mock *GitlabClientFacade) CreateNewLabel(ctx context.Context, projectID int, label *gitlab.CreateLabelOptions) (*gitlab.Label, *gitlab.Response, error)
- func (_mock *GitlabClientFacade) CreateVariable(ctx context.Context, projectID int, opt *gitlab.CreateProjectVariableOptions) (*gitlab.ProjectVariable, *gitlab.Response, error)
- func (_mock *GitlabClientFacade) DeleteProjectHook(ctx context.Context, projectID int, hookID int) (*gitlab.Response, error)
- func (_m *GitlabClientFacade) EXPECT() *GitlabClientFacade_Expecter
- func (_mock *GitlabClientFacade) EditIssue(ctx context.Context, pid int, issue int, opt *gitlab.UpdateIssueOptions) (*gitlab.Issue, *gitlab.Response, error)
- func (_mock *GitlabClientFacade) EditIssueLabel(ctx context.Context, pid int, issue int, labels []*gitlab.CreateLabelOptions) (*gitlab.Response, error)
- func (_mock *GitlabClientFacade) FetchGroupAvatarBase64(groupID int) (string, error)
- func (_mock *GitlabClientFacade) FetchProjectAvatarBase64(projectID int) (string, error)
- func (_mock *GitlabClientFacade) GetClientID() string
- func (_mock *GitlabClientFacade) GetGroup(ctx context.Context, groupID int) (*gitlab.Group, *gitlab.Response, error)
- func (_mock *GitlabClientFacade) GetMemberInGroup(ctx context.Context, userID int, groupID int) (*gitlab.GroupMember, *gitlab.Response, error)
- func (_mock *GitlabClientFacade) GetMemberInProject(ctx context.Context, userID int, projectID int) (*gitlab.ProjectMember, *gitlab.Response, error)
- func (_mock *GitlabClientFacade) GetProject(ctx context.Context, projectID int) (*gitlab.Project, *gitlab.Response, error)
- func (_mock *GitlabClientFacade) GetProjectIssues(projectID int, opt *gitlab.ListProjectIssuesOptions) ([]*gitlab.Issue, *gitlab.Response, error)
- func (_mock *GitlabClientFacade) GetVersion(ctx context.Context) (*gitlab.Version, *gitlab.Response, error)
- func (_mock *GitlabClientFacade) InviteReporter(ctx context.Context, projectID int, userID int) (*gitlab.ProjectMember, *gitlab.Response, error)
- func (_mock *GitlabClientFacade) IsProjectMember(ctx context.Context, projectID int, userID int, ...) (bool, error)
- func (_mock *GitlabClientFacade) ListGroups(ctx context.Context, opt *gitlab.ListGroupsOptions) ([]*gitlab.Group, *gitlab.Response, error)
- func (_mock *GitlabClientFacade) ListLabels(ctx context.Context, projectID int, opt *gitlab.ListLabelsOptions) ([]*gitlab.Label, *gitlab.Response, error)
- func (_mock *GitlabClientFacade) ListProjectHooks(ctx context.Context, projectID int, options *gitlab.ListProjectHooksOptions) ([]*gitlab.ProjectHook, *gitlab.Response, error)
- func (_mock *GitlabClientFacade) ListProjects(ctx context.Context, opt *gitlab.ListProjectsOptions) ([]*gitlab.Project, *gitlab.Response, error)
- func (_mock *GitlabClientFacade) ListProjectsInGroup(ctx context.Context, groupID int, opt *gitlab.ListGroupProjectsOptions) ([]*gitlab.Project, *gitlab.Response, error)
- func (_mock *GitlabClientFacade) ListVariables(ctx context.Context, projectID int, ...) ([]*gitlab.ProjectVariable, *gitlab.Response, error)
- func (_mock *GitlabClientFacade) RemoveVariable(ctx context.Context, projectID int, key string) (*gitlab.Response, error)
- func (_mock *GitlabClientFacade) UpdateLabel(ctx context.Context, projectID int, labelID int, ...) (*gitlab.Label, *gitlab.Response, error)
- func (_mock *GitlabClientFacade) UpdateVariable(ctx context.Context, projectID int, key string, ...) (*gitlab.ProjectVariable, *gitlab.Response, error)
- func (_mock *GitlabClientFacade) Whoami(ctx context.Context) (*gitlab.User, *gitlab.Response, error)
- type GitlabClientFacade_AddProjectHook_Call
- func (_c *GitlabClientFacade_AddProjectHook_Call) Return(projectHook *gitlab.ProjectHook, response *gitlab.Response, err error) *GitlabClientFacade_AddProjectHook_Call
- func (_c *GitlabClientFacade_AddProjectHook_Call) Run(...) *GitlabClientFacade_AddProjectHook_Call
- func (_c *GitlabClientFacade_AddProjectHook_Call) RunAndReturn(...) *GitlabClientFacade_AddProjectHook_Call
- type GitlabClientFacade_CreateIssueComment_Call
- func (_c *GitlabClientFacade_CreateIssueComment_Call) Return(note *gitlab.Note, response *gitlab.Response, err error) *GitlabClientFacade_CreateIssueComment_Call
- func (_c *GitlabClientFacade_CreateIssueComment_Call) Run(...) *GitlabClientFacade_CreateIssueComment_Call
- func (_c *GitlabClientFacade_CreateIssueComment_Call) RunAndReturn(...) *GitlabClientFacade_CreateIssueComment_Call
- type GitlabClientFacade_CreateIssue_Call
- func (_c *GitlabClientFacade_CreateIssue_Call) Return(issue *gitlab.Issue, response *gitlab.Response, err error) *GitlabClientFacade_CreateIssue_Call
- func (_c *GitlabClientFacade_CreateIssue_Call) Run(run func(ctx context.Context, pid int, opt *gitlab.CreateIssueOptions)) *GitlabClientFacade_CreateIssue_Call
- func (_c *GitlabClientFacade_CreateIssue_Call) RunAndReturn(...) *GitlabClientFacade_CreateIssue_Call
- type GitlabClientFacade_CreateMergeRequest_Call
- func (_c *GitlabClientFacade_CreateMergeRequest_Call) Return(mergeRequest *gitlab.MergeRequest, response *gitlab.Response, err error) *GitlabClientFacade_CreateMergeRequest_Call
- func (_c *GitlabClientFacade_CreateMergeRequest_Call) Run(...) *GitlabClientFacade_CreateMergeRequest_Call
- func (_c *GitlabClientFacade_CreateMergeRequest_Call) RunAndReturn(...) *GitlabClientFacade_CreateMergeRequest_Call
- type GitlabClientFacade_CreateNewLabel_Call
- func (_c *GitlabClientFacade_CreateNewLabel_Call) Return(label1 *gitlab.Label, response *gitlab.Response, err error) *GitlabClientFacade_CreateNewLabel_Call
- func (_c *GitlabClientFacade_CreateNewLabel_Call) Run(run func(ctx context.Context, projectID int, label *gitlab.CreateLabelOptions)) *GitlabClientFacade_CreateNewLabel_Call
- func (_c *GitlabClientFacade_CreateNewLabel_Call) RunAndReturn(...) *GitlabClientFacade_CreateNewLabel_Call
- type GitlabClientFacade_CreateVariable_Call
- func (_c *GitlabClientFacade_CreateVariable_Call) Return(projectVariable *gitlab.ProjectVariable, response *gitlab.Response, err error) *GitlabClientFacade_CreateVariable_Call
- func (_c *GitlabClientFacade_CreateVariable_Call) Run(...) *GitlabClientFacade_CreateVariable_Call
- func (_c *GitlabClientFacade_CreateVariable_Call) RunAndReturn(...) *GitlabClientFacade_CreateVariable_Call
- type GitlabClientFacade_DeleteProjectHook_Call
- func (_c *GitlabClientFacade_DeleteProjectHook_Call) Return(response *gitlab.Response, err error) *GitlabClientFacade_DeleteProjectHook_Call
- func (_c *GitlabClientFacade_DeleteProjectHook_Call) Run(run func(ctx context.Context, projectID int, hookID int)) *GitlabClientFacade_DeleteProjectHook_Call
- func (_c *GitlabClientFacade_DeleteProjectHook_Call) RunAndReturn(...) *GitlabClientFacade_DeleteProjectHook_Call
- type GitlabClientFacade_EditIssueLabel_Call
- func (_c *GitlabClientFacade_EditIssueLabel_Call) Return(response *gitlab.Response, err error) *GitlabClientFacade_EditIssueLabel_Call
- func (_c *GitlabClientFacade_EditIssueLabel_Call) Run(...) *GitlabClientFacade_EditIssueLabel_Call
- func (_c *GitlabClientFacade_EditIssueLabel_Call) RunAndReturn(...) *GitlabClientFacade_EditIssueLabel_Call
- type GitlabClientFacade_EditIssue_Call
- func (_c *GitlabClientFacade_EditIssue_Call) Return(issue1 *gitlab.Issue, response *gitlab.Response, err error) *GitlabClientFacade_EditIssue_Call
- func (_c *GitlabClientFacade_EditIssue_Call) Run(...) *GitlabClientFacade_EditIssue_Call
- func (_c *GitlabClientFacade_EditIssue_Call) RunAndReturn(...) *GitlabClientFacade_EditIssue_Call
- type GitlabClientFacade_Expecter
- func (_e *GitlabClientFacade_Expecter) AddProjectHook(ctx interface{}, projectID interface{}, opt interface{}) *GitlabClientFacade_AddProjectHook_Call
- func (_e *GitlabClientFacade_Expecter) CreateIssue(ctx interface{}, pid interface{}, opt interface{}) *GitlabClientFacade_CreateIssue_Call
- func (_e *GitlabClientFacade_Expecter) CreateIssueComment(ctx interface{}, pid interface{}, issue interface{}, opt interface{}) *GitlabClientFacade_CreateIssueComment_Call
- func (_e *GitlabClientFacade_Expecter) CreateMergeRequest(ctx interface{}, project interface{}, opt interface{}) *GitlabClientFacade_CreateMergeRequest_Call
- func (_e *GitlabClientFacade_Expecter) CreateNewLabel(ctx interface{}, projectID interface{}, label interface{}) *GitlabClientFacade_CreateNewLabel_Call
- func (_e *GitlabClientFacade_Expecter) CreateVariable(ctx interface{}, projectID interface{}, opt interface{}) *GitlabClientFacade_CreateVariable_Call
- func (_e *GitlabClientFacade_Expecter) DeleteProjectHook(ctx interface{}, projectID interface{}, hookID interface{}) *GitlabClientFacade_DeleteProjectHook_Call
- func (_e *GitlabClientFacade_Expecter) EditIssue(ctx interface{}, pid interface{}, issue interface{}, opt interface{}) *GitlabClientFacade_EditIssue_Call
- func (_e *GitlabClientFacade_Expecter) EditIssueLabel(ctx interface{}, pid interface{}, issue interface{}, labels interface{}) *GitlabClientFacade_EditIssueLabel_Call
- func (_e *GitlabClientFacade_Expecter) FetchGroupAvatarBase64(groupID interface{}) *GitlabClientFacade_FetchGroupAvatarBase64_Call
- func (_e *GitlabClientFacade_Expecter) FetchProjectAvatarBase64(projectID interface{}) *GitlabClientFacade_FetchProjectAvatarBase64_Call
- func (_e *GitlabClientFacade_Expecter) GetClientID() *GitlabClientFacade_GetClientID_Call
- func (_e *GitlabClientFacade_Expecter) GetGroup(ctx interface{}, groupID interface{}) *GitlabClientFacade_GetGroup_Call
- func (_e *GitlabClientFacade_Expecter) GetMemberInGroup(ctx interface{}, userID interface{}, groupID interface{}) *GitlabClientFacade_GetMemberInGroup_Call
- func (_e *GitlabClientFacade_Expecter) GetMemberInProject(ctx interface{}, userID interface{}, projectID interface{}) *GitlabClientFacade_GetMemberInProject_Call
- func (_e *GitlabClientFacade_Expecter) GetProject(ctx interface{}, projectID interface{}) *GitlabClientFacade_GetProject_Call
- func (_e *GitlabClientFacade_Expecter) GetProjectIssues(projectID interface{}, opt interface{}) *GitlabClientFacade_GetProjectIssues_Call
- func (_e *GitlabClientFacade_Expecter) GetVersion(ctx interface{}) *GitlabClientFacade_GetVersion_Call
- func (_e *GitlabClientFacade_Expecter) InviteReporter(ctx interface{}, projectID interface{}, userID interface{}) *GitlabClientFacade_InviteReporter_Call
- func (_e *GitlabClientFacade_Expecter) IsProjectMember(ctx interface{}, projectID interface{}, userID interface{}, ...) *GitlabClientFacade_IsProjectMember_Call
- func (_e *GitlabClientFacade_Expecter) ListGroups(ctx interface{}, opt interface{}) *GitlabClientFacade_ListGroups_Call
- func (_e *GitlabClientFacade_Expecter) ListLabels(ctx interface{}, projectID interface{}, opt interface{}) *GitlabClientFacade_ListLabels_Call
- func (_e *GitlabClientFacade_Expecter) ListProjectHooks(ctx interface{}, projectID interface{}, options interface{}) *GitlabClientFacade_ListProjectHooks_Call
- func (_e *GitlabClientFacade_Expecter) ListProjects(ctx interface{}, opt interface{}) *GitlabClientFacade_ListProjects_Call
- func (_e *GitlabClientFacade_Expecter) ListProjectsInGroup(ctx interface{}, groupID interface{}, opt interface{}) *GitlabClientFacade_ListProjectsInGroup_Call
- func (_e *GitlabClientFacade_Expecter) ListVariables(ctx interface{}, projectID interface{}, options interface{}) *GitlabClientFacade_ListVariables_Call
- func (_e *GitlabClientFacade_Expecter) RemoveVariable(ctx interface{}, projectID interface{}, key interface{}) *GitlabClientFacade_RemoveVariable_Call
- func (_e *GitlabClientFacade_Expecter) UpdateLabel(ctx interface{}, projectID interface{}, labelID interface{}, opt interface{}) *GitlabClientFacade_UpdateLabel_Call
- func (_e *GitlabClientFacade_Expecter) UpdateVariable(ctx interface{}, projectID interface{}, key interface{}, opt interface{}) *GitlabClientFacade_UpdateVariable_Call
- func (_e *GitlabClientFacade_Expecter) Whoami(ctx interface{}) *GitlabClientFacade_Whoami_Call
- type GitlabClientFacade_FetchGroupAvatarBase64_Call
- func (_c *GitlabClientFacade_FetchGroupAvatarBase64_Call) Return(s string, err error) *GitlabClientFacade_FetchGroupAvatarBase64_Call
- func (_c *GitlabClientFacade_FetchGroupAvatarBase64_Call) Run(run func(groupID int)) *GitlabClientFacade_FetchGroupAvatarBase64_Call
- func (_c *GitlabClientFacade_FetchGroupAvatarBase64_Call) RunAndReturn(run func(groupID int) (string, error)) *GitlabClientFacade_FetchGroupAvatarBase64_Call
- type GitlabClientFacade_FetchProjectAvatarBase64_Call
- func (_c *GitlabClientFacade_FetchProjectAvatarBase64_Call) Return(s string, err error) *GitlabClientFacade_FetchProjectAvatarBase64_Call
- func (_c *GitlabClientFacade_FetchProjectAvatarBase64_Call) Run(run func(projectID int)) *GitlabClientFacade_FetchProjectAvatarBase64_Call
- func (_c *GitlabClientFacade_FetchProjectAvatarBase64_Call) RunAndReturn(run func(projectID int) (string, error)) *GitlabClientFacade_FetchProjectAvatarBase64_Call
- type GitlabClientFacade_GetClientID_Call
- func (_c *GitlabClientFacade_GetClientID_Call) Return(s string) *GitlabClientFacade_GetClientID_Call
- func (_c *GitlabClientFacade_GetClientID_Call) Run(run func()) *GitlabClientFacade_GetClientID_Call
- func (_c *GitlabClientFacade_GetClientID_Call) RunAndReturn(run func() string) *GitlabClientFacade_GetClientID_Call
- type GitlabClientFacade_GetGroup_Call
- func (_c *GitlabClientFacade_GetGroup_Call) Return(group *gitlab.Group, response *gitlab.Response, err error) *GitlabClientFacade_GetGroup_Call
- func (_c *GitlabClientFacade_GetGroup_Call) Run(run func(ctx context.Context, groupID int)) *GitlabClientFacade_GetGroup_Call
- func (_c *GitlabClientFacade_GetGroup_Call) RunAndReturn(...) *GitlabClientFacade_GetGroup_Call
- type GitlabClientFacade_GetMemberInGroup_Call
- func (_c *GitlabClientFacade_GetMemberInGroup_Call) Return(groupMember *gitlab.GroupMember, response *gitlab.Response, err error) *GitlabClientFacade_GetMemberInGroup_Call
- func (_c *GitlabClientFacade_GetMemberInGroup_Call) Run(run func(ctx context.Context, userID int, groupID int)) *GitlabClientFacade_GetMemberInGroup_Call
- func (_c *GitlabClientFacade_GetMemberInGroup_Call) RunAndReturn(...) *GitlabClientFacade_GetMemberInGroup_Call
- type GitlabClientFacade_GetMemberInProject_Call
- func (_c *GitlabClientFacade_GetMemberInProject_Call) Return(projectMember *gitlab.ProjectMember, response *gitlab.Response, err error) *GitlabClientFacade_GetMemberInProject_Call
- func (_c *GitlabClientFacade_GetMemberInProject_Call) Run(run func(ctx context.Context, userID int, projectID int)) *GitlabClientFacade_GetMemberInProject_Call
- func (_c *GitlabClientFacade_GetMemberInProject_Call) RunAndReturn(...) *GitlabClientFacade_GetMemberInProject_Call
- type GitlabClientFacade_GetProjectIssues_Call
- func (_c *GitlabClientFacade_GetProjectIssues_Call) Return(issues []*gitlab.Issue, response *gitlab.Response, err error) *GitlabClientFacade_GetProjectIssues_Call
- func (_c *GitlabClientFacade_GetProjectIssues_Call) Run(run func(projectID int, opt *gitlab.ListProjectIssuesOptions)) *GitlabClientFacade_GetProjectIssues_Call
- func (_c *GitlabClientFacade_GetProjectIssues_Call) RunAndReturn(...) *GitlabClientFacade_GetProjectIssues_Call
- type GitlabClientFacade_GetProject_Call
- func (_c *GitlabClientFacade_GetProject_Call) Return(project *gitlab.Project, response *gitlab.Response, err error) *GitlabClientFacade_GetProject_Call
- func (_c *GitlabClientFacade_GetProject_Call) Run(run func(ctx context.Context, projectID int)) *GitlabClientFacade_GetProject_Call
- func (_c *GitlabClientFacade_GetProject_Call) RunAndReturn(...) *GitlabClientFacade_GetProject_Call
- type GitlabClientFacade_GetVersion_Call
- func (_c *GitlabClientFacade_GetVersion_Call) Return(version *gitlab.Version, response *gitlab.Response, err error) *GitlabClientFacade_GetVersion_Call
- func (_c *GitlabClientFacade_GetVersion_Call) Run(run func(ctx context.Context)) *GitlabClientFacade_GetVersion_Call
- func (_c *GitlabClientFacade_GetVersion_Call) RunAndReturn(run func(ctx context.Context) (*gitlab.Version, *gitlab.Response, error)) *GitlabClientFacade_GetVersion_Call
- type GitlabClientFacade_InviteReporter_Call
- func (_c *GitlabClientFacade_InviteReporter_Call) Return(projectMember *gitlab.ProjectMember, response *gitlab.Response, err error) *GitlabClientFacade_InviteReporter_Call
- func (_c *GitlabClientFacade_InviteReporter_Call) Run(run func(ctx context.Context, projectID int, userID int)) *GitlabClientFacade_InviteReporter_Call
- func (_c *GitlabClientFacade_InviteReporter_Call) RunAndReturn(...) *GitlabClientFacade_InviteReporter_Call
- type GitlabClientFacade_IsProjectMember_Call
- func (_c *GitlabClientFacade_IsProjectMember_Call) Return(b bool, err error) *GitlabClientFacade_IsProjectMember_Call
- func (_c *GitlabClientFacade_IsProjectMember_Call) Run(run func(ctx context.Context, projectID int, userID int, ...)) *GitlabClientFacade_IsProjectMember_Call
- func (_c *GitlabClientFacade_IsProjectMember_Call) RunAndReturn(run func(ctx context.Context, projectID int, userID int, ...) (bool, error)) *GitlabClientFacade_IsProjectMember_Call
- type GitlabClientFacade_ListGroups_Call
- func (_c *GitlabClientFacade_ListGroups_Call) Return(groups []*gitlab.Group, response *gitlab.Response, err error) *GitlabClientFacade_ListGroups_Call
- func (_c *GitlabClientFacade_ListGroups_Call) Run(run func(ctx context.Context, opt *gitlab.ListGroupsOptions)) *GitlabClientFacade_ListGroups_Call
- func (_c *GitlabClientFacade_ListGroups_Call) RunAndReturn(...) *GitlabClientFacade_ListGroups_Call
- type GitlabClientFacade_ListLabels_Call
- func (_c *GitlabClientFacade_ListLabels_Call) Return(labels []*gitlab.Label, response *gitlab.Response, err error) *GitlabClientFacade_ListLabels_Call
- func (_c *GitlabClientFacade_ListLabels_Call) Run(run func(ctx context.Context, projectID int, opt *gitlab.ListLabelsOptions)) *GitlabClientFacade_ListLabels_Call
- func (_c *GitlabClientFacade_ListLabels_Call) RunAndReturn(...) *GitlabClientFacade_ListLabels_Call
- type GitlabClientFacade_ListProjectHooks_Call
- func (_c *GitlabClientFacade_ListProjectHooks_Call) Return(projectHooks []*gitlab.ProjectHook, response *gitlab.Response, err error) *GitlabClientFacade_ListProjectHooks_Call
- func (_c *GitlabClientFacade_ListProjectHooks_Call) Run(...) *GitlabClientFacade_ListProjectHooks_Call
- func (_c *GitlabClientFacade_ListProjectHooks_Call) RunAndReturn(...) *GitlabClientFacade_ListProjectHooks_Call
- type GitlabClientFacade_ListProjectsInGroup_Call
- func (_c *GitlabClientFacade_ListProjectsInGroup_Call) Return(projects []*gitlab.Project, response *gitlab.Response, err error) *GitlabClientFacade_ListProjectsInGroup_Call
- func (_c *GitlabClientFacade_ListProjectsInGroup_Call) Run(...) *GitlabClientFacade_ListProjectsInGroup_Call
- func (_c *GitlabClientFacade_ListProjectsInGroup_Call) RunAndReturn(...) *GitlabClientFacade_ListProjectsInGroup_Call
- type GitlabClientFacade_ListProjects_Call
- func (_c *GitlabClientFacade_ListProjects_Call) Return(projects []*gitlab.Project, response *gitlab.Response, err error) *GitlabClientFacade_ListProjects_Call
- func (_c *GitlabClientFacade_ListProjects_Call) Run(run func(ctx context.Context, opt *gitlab.ListProjectsOptions)) *GitlabClientFacade_ListProjects_Call
- func (_c *GitlabClientFacade_ListProjects_Call) RunAndReturn(...) *GitlabClientFacade_ListProjects_Call
- type GitlabClientFacade_ListVariables_Call
- func (_c *GitlabClientFacade_ListVariables_Call) Return(projectVariables []*gitlab.ProjectVariable, response *gitlab.Response, ...) *GitlabClientFacade_ListVariables_Call
- func (_c *GitlabClientFacade_ListVariables_Call) Run(run func(ctx context.Context, projectID int, ...)) *GitlabClientFacade_ListVariables_Call
- func (_c *GitlabClientFacade_ListVariables_Call) RunAndReturn(...) *GitlabClientFacade_ListVariables_Call
- type GitlabClientFacade_RemoveVariable_Call
- func (_c *GitlabClientFacade_RemoveVariable_Call) Return(response *gitlab.Response, err error) *GitlabClientFacade_RemoveVariable_Call
- func (_c *GitlabClientFacade_RemoveVariable_Call) Run(run func(ctx context.Context, projectID int, key string)) *GitlabClientFacade_RemoveVariable_Call
- func (_c *GitlabClientFacade_RemoveVariable_Call) RunAndReturn(...) *GitlabClientFacade_RemoveVariable_Call
- type GitlabClientFacade_UpdateLabel_Call
- func (_c *GitlabClientFacade_UpdateLabel_Call) Return(label *gitlab.Label, response *gitlab.Response, err error) *GitlabClientFacade_UpdateLabel_Call
- func (_c *GitlabClientFacade_UpdateLabel_Call) Run(run func(ctx context.Context, projectID int, labelID int, ...)) *GitlabClientFacade_UpdateLabel_Call
- func (_c *GitlabClientFacade_UpdateLabel_Call) RunAndReturn(...) *GitlabClientFacade_UpdateLabel_Call
- type GitlabClientFacade_UpdateVariable_Call
- func (_c *GitlabClientFacade_UpdateVariable_Call) Return(projectVariable *gitlab.ProjectVariable, response *gitlab.Response, err error) *GitlabClientFacade_UpdateVariable_Call
- func (_c *GitlabClientFacade_UpdateVariable_Call) Run(run func(ctx context.Context, projectID int, key string, ...)) *GitlabClientFacade_UpdateVariable_Call
- func (_c *GitlabClientFacade_UpdateVariable_Call) RunAndReturn(...) *GitlabClientFacade_UpdateVariable_Call
- type GitlabClientFacade_Whoami_Call
- func (_c *GitlabClientFacade_Whoami_Call) Return(user *gitlab.User, response *gitlab.Response, err error) *GitlabClientFacade_Whoami_Call
- func (_c *GitlabClientFacade_Whoami_Call) Run(run func(ctx context.Context)) *GitlabClientFacade_Whoami_Call
- func (_c *GitlabClientFacade_Whoami_Call) RunAndReturn(run func(ctx context.Context) (*gitlab.User, *gitlab.Response, error)) *GitlabClientFacade_Whoami_Call
- type GitlabClientFactory
- func (_m *GitlabClientFactory) EXPECT() *GitlabClientFactory_Expecter
- func (_mock *GitlabClientFactory) FromAccessToken(accessToken string, baseURL string) (core.GitlabClientFacade, error)
- func (_mock *GitlabClientFactory) FromIntegration(integration models.GitLabIntegration) (core.GitlabClientFacade, error)
- func (_mock *GitlabClientFactory) FromIntegrationUUID(id uuid.UUID) (core.GitlabClientFacade, error)
- func (_mock *GitlabClientFactory) FromOauth2Token(token models.GitLabOauth2Token, enableClientCache bool) (core.GitlabClientFacade, error)
- type GitlabClientFactory_Expecter
- func (_e *GitlabClientFactory_Expecter) FromAccessToken(accessToken interface{}, baseURL interface{}) *GitlabClientFactory_FromAccessToken_Call
- func (_e *GitlabClientFactory_Expecter) FromIntegration(integration interface{}) *GitlabClientFactory_FromIntegration_Call
- func (_e *GitlabClientFactory_Expecter) FromIntegrationUUID(id interface{}) *GitlabClientFactory_FromIntegrationUUID_Call
- func (_e *GitlabClientFactory_Expecter) FromOauth2Token(token interface{}, enableClientCache interface{}) *GitlabClientFactory_FromOauth2Token_Call
- type GitlabClientFactory_FromAccessToken_Call
- func (_c *GitlabClientFactory_FromAccessToken_Call) Return(gitlabClientFacade core.GitlabClientFacade, err error) *GitlabClientFactory_FromAccessToken_Call
- func (_c *GitlabClientFactory_FromAccessToken_Call) Run(run func(accessToken string, baseURL string)) *GitlabClientFactory_FromAccessToken_Call
- func (_c *GitlabClientFactory_FromAccessToken_Call) RunAndReturn(run func(accessToken string, baseURL string) (core.GitlabClientFacade, error)) *GitlabClientFactory_FromAccessToken_Call
- type GitlabClientFactory_FromIntegrationUUID_Call
- func (_c *GitlabClientFactory_FromIntegrationUUID_Call) Return(gitlabClientFacade core.GitlabClientFacade, err error) *GitlabClientFactory_FromIntegrationUUID_Call
- func (_c *GitlabClientFactory_FromIntegrationUUID_Call) Run(run func(id uuid.UUID)) *GitlabClientFactory_FromIntegrationUUID_Call
- func (_c *GitlabClientFactory_FromIntegrationUUID_Call) RunAndReturn(run func(id uuid.UUID) (core.GitlabClientFacade, error)) *GitlabClientFactory_FromIntegrationUUID_Call
- type GitlabClientFactory_FromIntegration_Call
- func (_c *GitlabClientFactory_FromIntegration_Call) Return(gitlabClientFacade core.GitlabClientFacade, err error) *GitlabClientFactory_FromIntegration_Call
- func (_c *GitlabClientFactory_FromIntegration_Call) Run(run func(integration models.GitLabIntegration)) *GitlabClientFactory_FromIntegration_Call
- func (_c *GitlabClientFactory_FromIntegration_Call) RunAndReturn(...) *GitlabClientFactory_FromIntegration_Call
- type GitlabClientFactory_FromOauth2Token_Call
- func (_c *GitlabClientFactory_FromOauth2Token_Call) Return(gitlabClientFacade core.GitlabClientFacade, err error) *GitlabClientFactory_FromOauth2Token_Call
- func (_c *GitlabClientFactory_FromOauth2Token_Call) Run(run func(token models.GitLabOauth2Token, enableClientCache bool)) *GitlabClientFactory_FromOauth2Token_Call
- func (_c *GitlabClientFactory_FromOauth2Token_Call) RunAndReturn(...) *GitlabClientFactory_FromOauth2Token_Call
- type GitlabIntegrationRepository
- func (_mock *GitlabIntegrationRepository) Delete(tx core.DB, id uuid.UUID) error
- func (_m *GitlabIntegrationRepository) EXPECT() *GitlabIntegrationRepository_Expecter
- func (_mock *GitlabIntegrationRepository) FindByOrganizationID(orgID uuid.UUID) ([]models.GitLabIntegration, error)
- func (_mock *GitlabIntegrationRepository) Read(id uuid.UUID) (models.GitLabIntegration, error)
- func (_mock *GitlabIntegrationRepository) Save(tx core.DB, model *models.GitLabIntegration) error
- type GitlabIntegrationRepository_Delete_Call
- func (_c *GitlabIntegrationRepository_Delete_Call) Return(err error) *GitlabIntegrationRepository_Delete_Call
- func (_c *GitlabIntegrationRepository_Delete_Call) Run(run func(tx core.DB, id uuid.UUID)) *GitlabIntegrationRepository_Delete_Call
- func (_c *GitlabIntegrationRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *GitlabIntegrationRepository_Delete_Call
- type GitlabIntegrationRepository_Expecter
- func (_e *GitlabIntegrationRepository_Expecter) Delete(tx interface{}, id interface{}) *GitlabIntegrationRepository_Delete_Call
- func (_e *GitlabIntegrationRepository_Expecter) FindByOrganizationID(orgID interface{}) *GitlabIntegrationRepository_FindByOrganizationID_Call
- func (_e *GitlabIntegrationRepository_Expecter) Read(id interface{}) *GitlabIntegrationRepository_Read_Call
- func (_e *GitlabIntegrationRepository_Expecter) Save(tx interface{}, model interface{}) *GitlabIntegrationRepository_Save_Call
- type GitlabIntegrationRepository_FindByOrganizationID_Call
- func (_c *GitlabIntegrationRepository_FindByOrganizationID_Call) Return(gitLabIntegrations []models.GitLabIntegration, err error) *GitlabIntegrationRepository_FindByOrganizationID_Call
- func (_c *GitlabIntegrationRepository_FindByOrganizationID_Call) Run(run func(orgID uuid.UUID)) *GitlabIntegrationRepository_FindByOrganizationID_Call
- func (_c *GitlabIntegrationRepository_FindByOrganizationID_Call) RunAndReturn(run func(orgID uuid.UUID) ([]models.GitLabIntegration, error)) *GitlabIntegrationRepository_FindByOrganizationID_Call
- type GitlabIntegrationRepository_Read_Call
- func (_c *GitlabIntegrationRepository_Read_Call) Return(gitLabIntegration models.GitLabIntegration, err error) *GitlabIntegrationRepository_Read_Call
- func (_c *GitlabIntegrationRepository_Read_Call) Run(run func(id uuid.UUID)) *GitlabIntegrationRepository_Read_Call
- func (_c *GitlabIntegrationRepository_Read_Call) RunAndReturn(run func(id uuid.UUID) (models.GitLabIntegration, error)) *GitlabIntegrationRepository_Read_Call
- type GitlabIntegrationRepository_Save_Call
- func (_c *GitlabIntegrationRepository_Save_Call) Return(err error) *GitlabIntegrationRepository_Save_Call
- func (_c *GitlabIntegrationRepository_Save_Call) Run(run func(tx core.DB, model *models.GitLabIntegration)) *GitlabIntegrationRepository_Save_Call
- func (_c *GitlabIntegrationRepository_Save_Call) RunAndReturn(run func(tx core.DB, model *models.GitLabIntegration) error) *GitlabIntegrationRepository_Save_Call
- type InTotoLinkRepository
- func (_mock *InTotoLinkRepository) Activate(tx core.DB, id uuid.UUID) error
- func (_mock *InTotoLinkRepository) All() ([]models.InTotoLink, error)
- func (_mock *InTotoLinkRepository) Begin() core.DB
- func (_mock *InTotoLinkRepository) Create(tx core.DB, t *models.InTotoLink) error
- func (_mock *InTotoLinkRepository) CreateBatch(tx core.DB, ts []models.InTotoLink) error
- func (_mock *InTotoLinkRepository) Delete(tx core.DB, id uuid.UUID) error
- func (_mock *InTotoLinkRepository) DeleteBatch(tx core.DB, ids []models.InTotoLink) error
- func (_m *InTotoLinkRepository) EXPECT() *InTotoLinkRepository_Expecter
- func (_mock *InTotoLinkRepository) FindByAssetAndSupplyChainID(assetID uuid.UUID, supplyChainID string) ([]models.InTotoLink, error)
- func (_mock *InTotoLinkRepository) FindBySupplyChainID(supplyChainID string) ([]models.InTotoLink, error)
- func (_mock *InTotoLinkRepository) GetDB(tx core.DB) core.DB
- func (_mock *InTotoLinkRepository) List(ids []uuid.UUID) ([]models.InTotoLink, error)
- func (_mock *InTotoLinkRepository) Read(id uuid.UUID) (models.InTotoLink, error)
- func (_mock *InTotoLinkRepository) Save(tx core.DB, model *models.InTotoLink) error
- func (_mock *InTotoLinkRepository) SaveBatch(tx core.DB, ts []models.InTotoLink) error
- func (_mock *InTotoLinkRepository) Transaction(fn func(tx core.DB) error) error
- func (_mock *InTotoLinkRepository) Upsert(t *[]*models.InTotoLink, conflictingColumns []clause.Column, ...) error
- type InTotoLinkRepository_Activate_Call
- func (_c *InTotoLinkRepository_Activate_Call) Return(err error) *InTotoLinkRepository_Activate_Call
- func (_c *InTotoLinkRepository_Activate_Call) Run(run func(tx core.DB, id uuid.UUID)) *InTotoLinkRepository_Activate_Call
- func (_c *InTotoLinkRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *InTotoLinkRepository_Activate_Call
- type InTotoLinkRepository_All_Call
- func (_c *InTotoLinkRepository_All_Call) Return(inTotoLinks []models.InTotoLink, err error) *InTotoLinkRepository_All_Call
- func (_c *InTotoLinkRepository_All_Call) Run(run func()) *InTotoLinkRepository_All_Call
- func (_c *InTotoLinkRepository_All_Call) RunAndReturn(run func() ([]models.InTotoLink, error)) *InTotoLinkRepository_All_Call
- type InTotoLinkRepository_Begin_Call
- type InTotoLinkRepository_CreateBatch_Call
- func (_c *InTotoLinkRepository_CreateBatch_Call) Return(err error) *InTotoLinkRepository_CreateBatch_Call
- func (_c *InTotoLinkRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.InTotoLink)) *InTotoLinkRepository_CreateBatch_Call
- func (_c *InTotoLinkRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.InTotoLink) error) *InTotoLinkRepository_CreateBatch_Call
- type InTotoLinkRepository_Create_Call
- func (_c *InTotoLinkRepository_Create_Call) Return(err error) *InTotoLinkRepository_Create_Call
- func (_c *InTotoLinkRepository_Create_Call) Run(run func(tx core.DB, t *models.InTotoLink)) *InTotoLinkRepository_Create_Call
- func (_c *InTotoLinkRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.InTotoLink) error) *InTotoLinkRepository_Create_Call
- type InTotoLinkRepository_DeleteBatch_Call
- func (_c *InTotoLinkRepository_DeleteBatch_Call) Return(err error) *InTotoLinkRepository_DeleteBatch_Call
- func (_c *InTotoLinkRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.InTotoLink)) *InTotoLinkRepository_DeleteBatch_Call
- func (_c *InTotoLinkRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.InTotoLink) error) *InTotoLinkRepository_DeleteBatch_Call
- type InTotoLinkRepository_Delete_Call
- func (_c *InTotoLinkRepository_Delete_Call) Return(err error) *InTotoLinkRepository_Delete_Call
- func (_c *InTotoLinkRepository_Delete_Call) Run(run func(tx core.DB, id uuid.UUID)) *InTotoLinkRepository_Delete_Call
- func (_c *InTotoLinkRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *InTotoLinkRepository_Delete_Call
- type InTotoLinkRepository_Expecter
- func (_e *InTotoLinkRepository_Expecter) Activate(tx interface{}, id interface{}) *InTotoLinkRepository_Activate_Call
- func (_e *InTotoLinkRepository_Expecter) All() *InTotoLinkRepository_All_Call
- func (_e *InTotoLinkRepository_Expecter) Begin() *InTotoLinkRepository_Begin_Call
- func (_e *InTotoLinkRepository_Expecter) Create(tx interface{}, t interface{}) *InTotoLinkRepository_Create_Call
- func (_e *InTotoLinkRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *InTotoLinkRepository_CreateBatch_Call
- func (_e *InTotoLinkRepository_Expecter) Delete(tx interface{}, id interface{}) *InTotoLinkRepository_Delete_Call
- func (_e *InTotoLinkRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *InTotoLinkRepository_DeleteBatch_Call
- func (_e *InTotoLinkRepository_Expecter) FindByAssetAndSupplyChainID(assetID interface{}, supplyChainID interface{}) *InTotoLinkRepository_FindByAssetAndSupplyChainID_Call
- func (_e *InTotoLinkRepository_Expecter) FindBySupplyChainID(supplyChainID interface{}) *InTotoLinkRepository_FindBySupplyChainID_Call
- func (_e *InTotoLinkRepository_Expecter) GetDB(tx interface{}) *InTotoLinkRepository_GetDB_Call
- func (_e *InTotoLinkRepository_Expecter) List(ids interface{}) *InTotoLinkRepository_List_Call
- func (_e *InTotoLinkRepository_Expecter) Read(id interface{}) *InTotoLinkRepository_Read_Call
- func (_e *InTotoLinkRepository_Expecter) Save(tx interface{}, model interface{}) *InTotoLinkRepository_Save_Call
- func (_e *InTotoLinkRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *InTotoLinkRepository_SaveBatch_Call
- func (_e *InTotoLinkRepository_Expecter) Transaction(fn interface{}) *InTotoLinkRepository_Transaction_Call
- func (_e *InTotoLinkRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *InTotoLinkRepository_Upsert_Call
- type InTotoLinkRepository_FindByAssetAndSupplyChainID_Call
- func (_c *InTotoLinkRepository_FindByAssetAndSupplyChainID_Call) Return(inTotoLinks []models.InTotoLink, err error) *InTotoLinkRepository_FindByAssetAndSupplyChainID_Call
- func (_c *InTotoLinkRepository_FindByAssetAndSupplyChainID_Call) Run(run func(assetID uuid.UUID, supplyChainID string)) *InTotoLinkRepository_FindByAssetAndSupplyChainID_Call
- func (_c *InTotoLinkRepository_FindByAssetAndSupplyChainID_Call) RunAndReturn(run func(assetID uuid.UUID, supplyChainID string) ([]models.InTotoLink, error)) *InTotoLinkRepository_FindByAssetAndSupplyChainID_Call
- type InTotoLinkRepository_FindBySupplyChainID_Call
- func (_c *InTotoLinkRepository_FindBySupplyChainID_Call) Return(inTotoLinks []models.InTotoLink, err error) *InTotoLinkRepository_FindBySupplyChainID_Call
- func (_c *InTotoLinkRepository_FindBySupplyChainID_Call) Run(run func(supplyChainID string)) *InTotoLinkRepository_FindBySupplyChainID_Call
- func (_c *InTotoLinkRepository_FindBySupplyChainID_Call) RunAndReturn(run func(supplyChainID string) ([]models.InTotoLink, error)) *InTotoLinkRepository_FindBySupplyChainID_Call
- type InTotoLinkRepository_GetDB_Call
- func (_c *InTotoLinkRepository_GetDB_Call) Return(v core.DB) *InTotoLinkRepository_GetDB_Call
- func (_c *InTotoLinkRepository_GetDB_Call) Run(run func(tx core.DB)) *InTotoLinkRepository_GetDB_Call
- func (_c *InTotoLinkRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *InTotoLinkRepository_GetDB_Call
- type InTotoLinkRepository_List_Call
- func (_c *InTotoLinkRepository_List_Call) Return(inTotoLinks []models.InTotoLink, err error) *InTotoLinkRepository_List_Call
- func (_c *InTotoLinkRepository_List_Call) Run(run func(ids []uuid.UUID)) *InTotoLinkRepository_List_Call
- func (_c *InTotoLinkRepository_List_Call) RunAndReturn(run func(ids []uuid.UUID) ([]models.InTotoLink, error)) *InTotoLinkRepository_List_Call
- type InTotoLinkRepository_Read_Call
- func (_c *InTotoLinkRepository_Read_Call) Return(inTotoLink models.InTotoLink, err error) *InTotoLinkRepository_Read_Call
- func (_c *InTotoLinkRepository_Read_Call) Run(run func(id uuid.UUID)) *InTotoLinkRepository_Read_Call
- func (_c *InTotoLinkRepository_Read_Call) RunAndReturn(run func(id uuid.UUID) (models.InTotoLink, error)) *InTotoLinkRepository_Read_Call
- type InTotoLinkRepository_SaveBatch_Call
- func (_c *InTotoLinkRepository_SaveBatch_Call) Return(err error) *InTotoLinkRepository_SaveBatch_Call
- func (_c *InTotoLinkRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.InTotoLink)) *InTotoLinkRepository_SaveBatch_Call
- func (_c *InTotoLinkRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.InTotoLink) error) *InTotoLinkRepository_SaveBatch_Call
- type InTotoLinkRepository_Save_Call
- func (_c *InTotoLinkRepository_Save_Call) Return(err error) *InTotoLinkRepository_Save_Call
- func (_c *InTotoLinkRepository_Save_Call) Run(run func(tx core.DB, model *models.InTotoLink)) *InTotoLinkRepository_Save_Call
- func (_c *InTotoLinkRepository_Save_Call) RunAndReturn(run func(tx core.DB, model *models.InTotoLink) error) *InTotoLinkRepository_Save_Call
- type InTotoLinkRepository_Transaction_Call
- func (_c *InTotoLinkRepository_Transaction_Call) Return(err error) *InTotoLinkRepository_Transaction_Call
- func (_c *InTotoLinkRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *InTotoLinkRepository_Transaction_Call
- func (_c *InTotoLinkRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *InTotoLinkRepository_Transaction_Call
- type InTotoLinkRepository_Upsert_Call
- func (_c *InTotoLinkRepository_Upsert_Call) Return(err error) *InTotoLinkRepository_Upsert_Call
- func (_c *InTotoLinkRepository_Upsert_Call) Run(run func(t *[]*models.InTotoLink, conflictingColumns []clause.Column, ...)) *InTotoLinkRepository_Upsert_Call
- func (_c *InTotoLinkRepository_Upsert_Call) RunAndReturn(...) *InTotoLinkRepository_Upsert_Call
- type InTotoVerifierService
- func (_m *InTotoVerifierService) EXPECT() *InTotoVerifierService_Expecter
- func (_mock *InTotoVerifierService) VerifySupplyChain(supplyChainID string) (bool, error)
- func (_mock *InTotoVerifierService) VerifySupplyChainByDigestOnly(digest string) (bool, error)
- func (_mock *InTotoVerifierService) VerifySupplyChainWithOutputDigest(supplyChainID string, digest string) (bool, error)
- type InTotoVerifierService_Expecter
- func (_e *InTotoVerifierService_Expecter) VerifySupplyChain(supplyChainID interface{}) *InTotoVerifierService_VerifySupplyChain_Call
- func (_e *InTotoVerifierService_Expecter) VerifySupplyChainByDigestOnly(digest interface{}) *InTotoVerifierService_VerifySupplyChainByDigestOnly_Call
- func (_e *InTotoVerifierService_Expecter) VerifySupplyChainWithOutputDigest(supplyChainID interface{}, digest interface{}) *InTotoVerifierService_VerifySupplyChainWithOutputDigest_Call
- type InTotoVerifierService_VerifySupplyChainByDigestOnly_Call
- func (_c *InTotoVerifierService_VerifySupplyChainByDigestOnly_Call) Return(b bool, err error) *InTotoVerifierService_VerifySupplyChainByDigestOnly_Call
- func (_c *InTotoVerifierService_VerifySupplyChainByDigestOnly_Call) Run(run func(digest string)) *InTotoVerifierService_VerifySupplyChainByDigestOnly_Call
- func (_c *InTotoVerifierService_VerifySupplyChainByDigestOnly_Call) RunAndReturn(run func(digest string) (bool, error)) *InTotoVerifierService_VerifySupplyChainByDigestOnly_Call
- type InTotoVerifierService_VerifySupplyChainWithOutputDigest_Call
- func (_c *InTotoVerifierService_VerifySupplyChainWithOutputDigest_Call) Return(b bool, err error) *InTotoVerifierService_VerifySupplyChainWithOutputDigest_Call
- func (_c *InTotoVerifierService_VerifySupplyChainWithOutputDigest_Call) Run(run func(supplyChainID string, digest string)) *InTotoVerifierService_VerifySupplyChainWithOutputDigest_Call
- func (_c *InTotoVerifierService_VerifySupplyChainWithOutputDigest_Call) RunAndReturn(run func(supplyChainID string, digest string) (bool, error)) *InTotoVerifierService_VerifySupplyChainWithOutputDigest_Call
- type InTotoVerifierService_VerifySupplyChain_Call
- func (_c *InTotoVerifierService_VerifySupplyChain_Call) Return(b bool, err error) *InTotoVerifierService_VerifySupplyChain_Call
- func (_c *InTotoVerifierService_VerifySupplyChain_Call) Run(run func(supplyChainID string)) *InTotoVerifierService_VerifySupplyChain_Call
- func (_c *InTotoVerifierService_VerifySupplyChain_Call) RunAndReturn(run func(supplyChainID string) (bool, error)) *InTotoVerifierService_VerifySupplyChain_Call
- type IntegrationAggregate
- func (_mock *IntegrationAggregate) CreateIssue(ctx context.Context, asset models.Asset, assetVersionName string, ...) error
- func (_mock *IntegrationAggregate) CreateLabels(ctx context.Context, asset models.Asset) error
- func (_m *IntegrationAggregate) EXPECT() *IntegrationAggregate_Expecter
- func (_mock *IntegrationAggregate) GetID() core.IntegrationID
- func (_mock *IntegrationAggregate) GetIntegration(id core.IntegrationID) core.ThirdPartyIntegration
- func (_mock *IntegrationAggregate) GetUsers(org models.Org) []core.User
- func (_mock *IntegrationAggregate) HandleEvent(event any) error
- func (_mock *IntegrationAggregate) HandleWebhook(ctx core.Context) error
- func (_mock *IntegrationAggregate) HasAccessToExternalEntityProvider(ctx core.Context, externalEntityProviderID string) (bool, error)
- func (_mock *IntegrationAggregate) ListGroups(ctx context.Context, userID string, providerID string) ([]models.Project, []core.Role, error)
- func (_mock *IntegrationAggregate) ListOrgs(ctx core.Context) ([]models.Org, error)
- func (_mock *IntegrationAggregate) ListProjects(ctx context.Context, userID string, providerID string, groupID string) ([]models.Asset, []core.Role, error)
- func (_mock *IntegrationAggregate) ListRepositories(ctx core.Context) ([]core.Repository, error)
- func (_mock *IntegrationAggregate) UpdateIssue(ctx context.Context, asset models.Asset, assetVersionSlug string, ...) error
- func (_mock *IntegrationAggregate) WantsToHandleWebhook(ctx core.Context) bool
- type IntegrationAggregate_CreateIssue_Call
- func (_c *IntegrationAggregate_CreateIssue_Call) Return(err error) *IntegrationAggregate_CreateIssue_Call
- func (_c *IntegrationAggregate_CreateIssue_Call) Run(...) *IntegrationAggregate_CreateIssue_Call
- func (_c *IntegrationAggregate_CreateIssue_Call) RunAndReturn(...) *IntegrationAggregate_CreateIssue_Call
- type IntegrationAggregate_CreateLabels_Call
- func (_c *IntegrationAggregate_CreateLabels_Call) Return(err error) *IntegrationAggregate_CreateLabels_Call
- func (_c *IntegrationAggregate_CreateLabels_Call) Run(run func(ctx context.Context, asset models.Asset)) *IntegrationAggregate_CreateLabels_Call
- func (_c *IntegrationAggregate_CreateLabels_Call) RunAndReturn(run func(ctx context.Context, asset models.Asset) error) *IntegrationAggregate_CreateLabels_Call
- type IntegrationAggregate_Expecter
- func (_e *IntegrationAggregate_Expecter) CreateIssue(ctx interface{}, asset interface{}, assetVersionName interface{}, ...) *IntegrationAggregate_CreateIssue_Call
- func (_e *IntegrationAggregate_Expecter) CreateLabels(ctx interface{}, asset interface{}) *IntegrationAggregate_CreateLabels_Call
- func (_e *IntegrationAggregate_Expecter) GetID() *IntegrationAggregate_GetID_Call
- func (_e *IntegrationAggregate_Expecter) GetIntegration(id interface{}) *IntegrationAggregate_GetIntegration_Call
- func (_e *IntegrationAggregate_Expecter) GetUsers(org interface{}) *IntegrationAggregate_GetUsers_Call
- func (_e *IntegrationAggregate_Expecter) HandleEvent(event interface{}) *IntegrationAggregate_HandleEvent_Call
- func (_e *IntegrationAggregate_Expecter) HandleWebhook(ctx interface{}) *IntegrationAggregate_HandleWebhook_Call
- func (_e *IntegrationAggregate_Expecter) HasAccessToExternalEntityProvider(ctx interface{}, externalEntityProviderID interface{}) *IntegrationAggregate_HasAccessToExternalEntityProvider_Call
- func (_e *IntegrationAggregate_Expecter) ListGroups(ctx interface{}, userID interface{}, providerID interface{}) *IntegrationAggregate_ListGroups_Call
- func (_e *IntegrationAggregate_Expecter) ListOrgs(ctx interface{}) *IntegrationAggregate_ListOrgs_Call
- func (_e *IntegrationAggregate_Expecter) ListProjects(ctx interface{}, userID interface{}, providerID interface{}, ...) *IntegrationAggregate_ListProjects_Call
- func (_e *IntegrationAggregate_Expecter) ListRepositories(ctx interface{}) *IntegrationAggregate_ListRepositories_Call
- func (_e *IntegrationAggregate_Expecter) UpdateIssue(ctx interface{}, asset interface{}, assetVersionSlug interface{}, ...) *IntegrationAggregate_UpdateIssue_Call
- func (_e *IntegrationAggregate_Expecter) WantsToHandleWebhook(ctx interface{}) *IntegrationAggregate_WantsToHandleWebhook_Call
- type IntegrationAggregate_GetID_Call
- func (_c *IntegrationAggregate_GetID_Call) Return(integrationID core.IntegrationID) *IntegrationAggregate_GetID_Call
- func (_c *IntegrationAggregate_GetID_Call) Run(run func()) *IntegrationAggregate_GetID_Call
- func (_c *IntegrationAggregate_GetID_Call) RunAndReturn(run func() core.IntegrationID) *IntegrationAggregate_GetID_Call
- type IntegrationAggregate_GetIntegration_Call
- func (_c *IntegrationAggregate_GetIntegration_Call) Return(thirdPartyIntegration core.ThirdPartyIntegration) *IntegrationAggregate_GetIntegration_Call
- func (_c *IntegrationAggregate_GetIntegration_Call) Run(run func(id core.IntegrationID)) *IntegrationAggregate_GetIntegration_Call
- func (_c *IntegrationAggregate_GetIntegration_Call) RunAndReturn(run func(id core.IntegrationID) core.ThirdPartyIntegration) *IntegrationAggregate_GetIntegration_Call
- type IntegrationAggregate_GetUsers_Call
- func (_c *IntegrationAggregate_GetUsers_Call) Return(users []core.User) *IntegrationAggregate_GetUsers_Call
- func (_c *IntegrationAggregate_GetUsers_Call) Run(run func(org models.Org)) *IntegrationAggregate_GetUsers_Call
- func (_c *IntegrationAggregate_GetUsers_Call) RunAndReturn(run func(org models.Org) []core.User) *IntegrationAggregate_GetUsers_Call
- type IntegrationAggregate_HandleEvent_Call
- func (_c *IntegrationAggregate_HandleEvent_Call) Return(err error) *IntegrationAggregate_HandleEvent_Call
- func (_c *IntegrationAggregate_HandleEvent_Call) Run(run func(event any)) *IntegrationAggregate_HandleEvent_Call
- func (_c *IntegrationAggregate_HandleEvent_Call) RunAndReturn(run func(event any) error) *IntegrationAggregate_HandleEvent_Call
- type IntegrationAggregate_HandleWebhook_Call
- func (_c *IntegrationAggregate_HandleWebhook_Call) Return(err error) *IntegrationAggregate_HandleWebhook_Call
- func (_c *IntegrationAggregate_HandleWebhook_Call) Run(run func(ctx core.Context)) *IntegrationAggregate_HandleWebhook_Call
- func (_c *IntegrationAggregate_HandleWebhook_Call) RunAndReturn(run func(ctx core.Context) error) *IntegrationAggregate_HandleWebhook_Call
- type IntegrationAggregate_HasAccessToExternalEntityProvider_Call
- func (_c *IntegrationAggregate_HasAccessToExternalEntityProvider_Call) Return(b bool, err error) *IntegrationAggregate_HasAccessToExternalEntityProvider_Call
- func (_c *IntegrationAggregate_HasAccessToExternalEntityProvider_Call) Run(run func(ctx core.Context, externalEntityProviderID string)) *IntegrationAggregate_HasAccessToExternalEntityProvider_Call
- func (_c *IntegrationAggregate_HasAccessToExternalEntityProvider_Call) RunAndReturn(run func(ctx core.Context, externalEntityProviderID string) (bool, error)) *IntegrationAggregate_HasAccessToExternalEntityProvider_Call
- type IntegrationAggregate_ListGroups_Call
- func (_c *IntegrationAggregate_ListGroups_Call) Return(projects []models.Project, roles []core.Role, err error) *IntegrationAggregate_ListGroups_Call
- func (_c *IntegrationAggregate_ListGroups_Call) Run(run func(ctx context.Context, userID string, providerID string)) *IntegrationAggregate_ListGroups_Call
- func (_c *IntegrationAggregate_ListGroups_Call) RunAndReturn(...) *IntegrationAggregate_ListGroups_Call
- type IntegrationAggregate_ListOrgs_Call
- func (_c *IntegrationAggregate_ListOrgs_Call) Return(orgs []models.Org, err error) *IntegrationAggregate_ListOrgs_Call
- func (_c *IntegrationAggregate_ListOrgs_Call) Run(run func(ctx core.Context)) *IntegrationAggregate_ListOrgs_Call
- func (_c *IntegrationAggregate_ListOrgs_Call) RunAndReturn(run func(ctx core.Context) ([]models.Org, error)) *IntegrationAggregate_ListOrgs_Call
- type IntegrationAggregate_ListProjects_Call
- func (_c *IntegrationAggregate_ListProjects_Call) Return(assets []models.Asset, roles []core.Role, err error) *IntegrationAggregate_ListProjects_Call
- func (_c *IntegrationAggregate_ListProjects_Call) Run(...) *IntegrationAggregate_ListProjects_Call
- func (_c *IntegrationAggregate_ListProjects_Call) RunAndReturn(...) *IntegrationAggregate_ListProjects_Call
- type IntegrationAggregate_ListRepositories_Call
- func (_c *IntegrationAggregate_ListRepositories_Call) Return(repositorys []core.Repository, err error) *IntegrationAggregate_ListRepositories_Call
- func (_c *IntegrationAggregate_ListRepositories_Call) Run(run func(ctx core.Context)) *IntegrationAggregate_ListRepositories_Call
- func (_c *IntegrationAggregate_ListRepositories_Call) RunAndReturn(run func(ctx core.Context) ([]core.Repository, error)) *IntegrationAggregate_ListRepositories_Call
- type IntegrationAggregate_UpdateIssue_Call
- func (_c *IntegrationAggregate_UpdateIssue_Call) Return(err error) *IntegrationAggregate_UpdateIssue_Call
- func (_c *IntegrationAggregate_UpdateIssue_Call) Run(...) *IntegrationAggregate_UpdateIssue_Call
- func (_c *IntegrationAggregate_UpdateIssue_Call) RunAndReturn(...) *IntegrationAggregate_UpdateIssue_Call
- type IntegrationAggregate_WantsToHandleWebhook_Call
- func (_c *IntegrationAggregate_WantsToHandleWebhook_Call) Return(b bool) *IntegrationAggregate_WantsToHandleWebhook_Call
- func (_c *IntegrationAggregate_WantsToHandleWebhook_Call) Run(run func(ctx core.Context)) *IntegrationAggregate_WantsToHandleWebhook_Call
- func (_c *IntegrationAggregate_WantsToHandleWebhook_Call) RunAndReturn(run func(ctx core.Context) bool) *IntegrationAggregate_WantsToHandleWebhook_Call
- type InvitationRepository
- func (_mock *InvitationRepository) Delete(tx core.DB, id uuid.UUID) error
- func (_m *InvitationRepository) EXPECT() *InvitationRepository_Expecter
- func (_mock *InvitationRepository) FindByCode(code string) (models.Invitation, error)
- func (_mock *InvitationRepository) Save(tx core.DB, invitation *models.Invitation) error
- type InvitationRepository_Delete_Call
- func (_c *InvitationRepository_Delete_Call) Return(err error) *InvitationRepository_Delete_Call
- func (_c *InvitationRepository_Delete_Call) Run(run func(tx core.DB, id uuid.UUID)) *InvitationRepository_Delete_Call
- func (_c *InvitationRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *InvitationRepository_Delete_Call
- type InvitationRepository_Expecter
- func (_e *InvitationRepository_Expecter) Delete(tx interface{}, id interface{}) *InvitationRepository_Delete_Call
- func (_e *InvitationRepository_Expecter) FindByCode(code interface{}) *InvitationRepository_FindByCode_Call
- func (_e *InvitationRepository_Expecter) Save(tx interface{}, invitation interface{}) *InvitationRepository_Save_Call
- type InvitationRepository_FindByCode_Call
- func (_c *InvitationRepository_FindByCode_Call) Return(invitation models.Invitation, err error) *InvitationRepository_FindByCode_Call
- func (_c *InvitationRepository_FindByCode_Call) Run(run func(code string)) *InvitationRepository_FindByCode_Call
- func (_c *InvitationRepository_FindByCode_Call) RunAndReturn(run func(code string) (models.Invitation, error)) *InvitationRepository_FindByCode_Call
- type InvitationRepository_Save_Call
- func (_c *InvitationRepository_Save_Call) Return(err error) *InvitationRepository_Save_Call
- func (_c *InvitationRepository_Save_Call) Run(run func(tx core.DB, invitation *models.Invitation)) *InvitationRepository_Save_Call
- func (_c *InvitationRepository_Save_Call) RunAndReturn(run func(tx core.DB, invitation *models.Invitation) error) *InvitationRepository_Save_Call
- type JiraIntegrationRepository
- func (_mock *JiraIntegrationRepository) Delete(tx core.DB, id uuid.UUID) error
- func (_m *JiraIntegrationRepository) EXPECT() *JiraIntegrationRepository_Expecter
- func (_mock *JiraIntegrationRepository) FindByOrganizationID(orgID uuid.UUID) ([]models.JiraIntegration, error)
- func (_mock *JiraIntegrationRepository) GetClientByIntegrationID(integrationID uuid.UUID) (models.JiraIntegration, error)
- func (_mock *JiraIntegrationRepository) Read(id uuid.UUID) (models.JiraIntegration, error)
- func (_mock *JiraIntegrationRepository) Save(tx core.DB, model *models.JiraIntegration) error
- type JiraIntegrationRepository_Delete_Call
- func (_c *JiraIntegrationRepository_Delete_Call) Return(err error) *JiraIntegrationRepository_Delete_Call
- func (_c *JiraIntegrationRepository_Delete_Call) Run(run func(tx core.DB, id uuid.UUID)) *JiraIntegrationRepository_Delete_Call
- func (_c *JiraIntegrationRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *JiraIntegrationRepository_Delete_Call
- type JiraIntegrationRepository_Expecter
- func (_e *JiraIntegrationRepository_Expecter) Delete(tx interface{}, id interface{}) *JiraIntegrationRepository_Delete_Call
- func (_e *JiraIntegrationRepository_Expecter) FindByOrganizationID(orgID interface{}) *JiraIntegrationRepository_FindByOrganizationID_Call
- func (_e *JiraIntegrationRepository_Expecter) GetClientByIntegrationID(integrationID interface{}) *JiraIntegrationRepository_GetClientByIntegrationID_Call
- func (_e *JiraIntegrationRepository_Expecter) Read(id interface{}) *JiraIntegrationRepository_Read_Call
- func (_e *JiraIntegrationRepository_Expecter) Save(tx interface{}, model interface{}) *JiraIntegrationRepository_Save_Call
- type JiraIntegrationRepository_FindByOrganizationID_Call
- func (_c *JiraIntegrationRepository_FindByOrganizationID_Call) Return(jiraIntegrations []models.JiraIntegration, err error) *JiraIntegrationRepository_FindByOrganizationID_Call
- func (_c *JiraIntegrationRepository_FindByOrganizationID_Call) Run(run func(orgID uuid.UUID)) *JiraIntegrationRepository_FindByOrganizationID_Call
- func (_c *JiraIntegrationRepository_FindByOrganizationID_Call) RunAndReturn(run func(orgID uuid.UUID) ([]models.JiraIntegration, error)) *JiraIntegrationRepository_FindByOrganizationID_Call
- type JiraIntegrationRepository_GetClientByIntegrationID_Call
- func (_c *JiraIntegrationRepository_GetClientByIntegrationID_Call) Return(jiraIntegration models.JiraIntegration, err error) *JiraIntegrationRepository_GetClientByIntegrationID_Call
- func (_c *JiraIntegrationRepository_GetClientByIntegrationID_Call) Run(run func(integrationID uuid.UUID)) *JiraIntegrationRepository_GetClientByIntegrationID_Call
- func (_c *JiraIntegrationRepository_GetClientByIntegrationID_Call) RunAndReturn(run func(integrationID uuid.UUID) (models.JiraIntegration, error)) *JiraIntegrationRepository_GetClientByIntegrationID_Call
- type JiraIntegrationRepository_Read_Call
- func (_c *JiraIntegrationRepository_Read_Call) Return(jiraIntegration models.JiraIntegration, err error) *JiraIntegrationRepository_Read_Call
- func (_c *JiraIntegrationRepository_Read_Call) Run(run func(id uuid.UUID)) *JiraIntegrationRepository_Read_Call
- func (_c *JiraIntegrationRepository_Read_Call) RunAndReturn(run func(id uuid.UUID) (models.JiraIntegration, error)) *JiraIntegrationRepository_Read_Call
- type JiraIntegrationRepository_Save_Call
- func (_c *JiraIntegrationRepository_Save_Call) Return(err error) *JiraIntegrationRepository_Save_Call
- func (_c *JiraIntegrationRepository_Save_Call) Run(run func(tx core.DB, model *models.JiraIntegration)) *JiraIntegrationRepository_Save_Call
- func (_c *JiraIntegrationRepository_Save_Call) RunAndReturn(run func(tx core.DB, model *models.JiraIntegration) error) *JiraIntegrationRepository_Save_Call
- type LicenseRiskRepository
- func (_mock *LicenseRiskRepository) Activate(tx core.DB, id string) error
- func (_mock *LicenseRiskRepository) All() ([]models.LicenseRisk, error)
- func (_mock *LicenseRiskRepository) ApplyAndSave(tx core.DB, licenseRisk *models.LicenseRisk, vulnEvent *models.VulnEvent) error
- func (_mock *LicenseRiskRepository) Begin() core.DB
- func (_mock *LicenseRiskRepository) Create(tx core.DB, t *models.LicenseRisk) error
- func (_mock *LicenseRiskRepository) CreateBatch(tx core.DB, ts []models.LicenseRisk) error
- func (_mock *LicenseRiskRepository) Delete(tx core.DB, id string) error
- func (_mock *LicenseRiskRepository) DeleteBatch(tx core.DB, ids []models.LicenseRisk) error
- func (_mock *LicenseRiskRepository) DeleteByComponentPurl(assetID uuid.UUID, assetVersionName string, purl packageurl.PackageURL) error
- func (_m *LicenseRiskRepository) EXPECT() *LicenseRiskRepository_Expecter
- func (_mock *LicenseRiskRepository) GetAllLicenseRisksForAssetVersion(assetID uuid.UUID, assetVersionName string) ([]models.LicenseRisk, error)
- func (_mock *LicenseRiskRepository) GetAllLicenseRisksForAssetVersionPaged(tx core.DB, assetID uuid.UUID, assetVersionName string, pageInfo core.PageInfo, ...) (core.Paged[models.LicenseRisk], error)
- func (_mock *LicenseRiskRepository) GetAllOverwrittenLicensesForAssetVersion(assetID uuid.UUID, assetVersionName string) ([]models.LicenseRisk, error)
- func (_mock *LicenseRiskRepository) GetDB(tx core.DB) core.DB
- func (_mock *LicenseRiskRepository) GetLicenseRisksByOtherAssetVersions(tx core.DB, assetVersionName string, assetID uuid.UUID) ([]models.LicenseRisk, error)
- func (_mock *LicenseRiskRepository) List(ids []string) ([]models.LicenseRisk, error)
- func (_mock *LicenseRiskRepository) ListByArtifactName(assetVersionName string, assetID uuid.UUID, scannerID string) ([]models.LicenseRisk, error)
- func (_mock *LicenseRiskRepository) MaybeGetLicenseOverwriteForComponent(assetID uuid.UUID, assetVersionName string, pURL packageurl.PackageURL) (models.LicenseRisk, error)
- func (_mock *LicenseRiskRepository) Read(id string) (models.LicenseRisk, error)
- func (_mock *LicenseRiskRepository) Save(tx core.DB, t *models.LicenseRisk) error
- func (_mock *LicenseRiskRepository) SaveBatch(tx core.DB, ts []models.LicenseRisk) error
- func (_mock *LicenseRiskRepository) Transaction(fn func(tx core.DB) error) error
- func (_mock *LicenseRiskRepository) Upsert(t *[]*models.LicenseRisk, conflictingColumns []clause.Column, ...) error
- type LicenseRiskRepository_Activate_Call
- func (_c *LicenseRiskRepository_Activate_Call) Return(err error) *LicenseRiskRepository_Activate_Call
- func (_c *LicenseRiskRepository_Activate_Call) Run(run func(tx core.DB, id string)) *LicenseRiskRepository_Activate_Call
- func (_c *LicenseRiskRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id string) error) *LicenseRiskRepository_Activate_Call
- type LicenseRiskRepository_All_Call
- func (_c *LicenseRiskRepository_All_Call) Return(licenseRisks []models.LicenseRisk, err error) *LicenseRiskRepository_All_Call
- func (_c *LicenseRiskRepository_All_Call) Run(run func()) *LicenseRiskRepository_All_Call
- func (_c *LicenseRiskRepository_All_Call) RunAndReturn(run func() ([]models.LicenseRisk, error)) *LicenseRiskRepository_All_Call
- type LicenseRiskRepository_ApplyAndSave_Call
- func (_c *LicenseRiskRepository_ApplyAndSave_Call) Return(err error) *LicenseRiskRepository_ApplyAndSave_Call
- func (_c *LicenseRiskRepository_ApplyAndSave_Call) Run(...) *LicenseRiskRepository_ApplyAndSave_Call
- func (_c *LicenseRiskRepository_ApplyAndSave_Call) RunAndReturn(...) *LicenseRiskRepository_ApplyAndSave_Call
- type LicenseRiskRepository_Begin_Call
- func (_c *LicenseRiskRepository_Begin_Call) Return(v core.DB) *LicenseRiskRepository_Begin_Call
- func (_c *LicenseRiskRepository_Begin_Call) Run(run func()) *LicenseRiskRepository_Begin_Call
- func (_c *LicenseRiskRepository_Begin_Call) RunAndReturn(run func() core.DB) *LicenseRiskRepository_Begin_Call
- type LicenseRiskRepository_CreateBatch_Call
- func (_c *LicenseRiskRepository_CreateBatch_Call) Return(err error) *LicenseRiskRepository_CreateBatch_Call
- func (_c *LicenseRiskRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.LicenseRisk)) *LicenseRiskRepository_CreateBatch_Call
- func (_c *LicenseRiskRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.LicenseRisk) error) *LicenseRiskRepository_CreateBatch_Call
- type LicenseRiskRepository_Create_Call
- func (_c *LicenseRiskRepository_Create_Call) Return(err error) *LicenseRiskRepository_Create_Call
- func (_c *LicenseRiskRepository_Create_Call) Run(run func(tx core.DB, t *models.LicenseRisk)) *LicenseRiskRepository_Create_Call
- func (_c *LicenseRiskRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.LicenseRisk) error) *LicenseRiskRepository_Create_Call
- type LicenseRiskRepository_DeleteBatch_Call
- func (_c *LicenseRiskRepository_DeleteBatch_Call) Return(err error) *LicenseRiskRepository_DeleteBatch_Call
- func (_c *LicenseRiskRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.LicenseRisk)) *LicenseRiskRepository_DeleteBatch_Call
- func (_c *LicenseRiskRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.LicenseRisk) error) *LicenseRiskRepository_DeleteBatch_Call
- type LicenseRiskRepository_DeleteByComponentPurl_Call
- func (_c *LicenseRiskRepository_DeleteByComponentPurl_Call) Return(err error) *LicenseRiskRepository_DeleteByComponentPurl_Call
- func (_c *LicenseRiskRepository_DeleteByComponentPurl_Call) Run(...) *LicenseRiskRepository_DeleteByComponentPurl_Call
- func (_c *LicenseRiskRepository_DeleteByComponentPurl_Call) RunAndReturn(...) *LicenseRiskRepository_DeleteByComponentPurl_Call
- type LicenseRiskRepository_Delete_Call
- func (_c *LicenseRiskRepository_Delete_Call) Return(err error) *LicenseRiskRepository_Delete_Call
- func (_c *LicenseRiskRepository_Delete_Call) Run(run func(tx core.DB, id string)) *LicenseRiskRepository_Delete_Call
- func (_c *LicenseRiskRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id string) error) *LicenseRiskRepository_Delete_Call
- type LicenseRiskRepository_Expecter
- func (_e *LicenseRiskRepository_Expecter) Activate(tx interface{}, id interface{}) *LicenseRiskRepository_Activate_Call
- func (_e *LicenseRiskRepository_Expecter) All() *LicenseRiskRepository_All_Call
- func (_e *LicenseRiskRepository_Expecter) ApplyAndSave(tx interface{}, licenseRisk interface{}, vulnEvent interface{}) *LicenseRiskRepository_ApplyAndSave_Call
- func (_e *LicenseRiskRepository_Expecter) Begin() *LicenseRiskRepository_Begin_Call
- func (_e *LicenseRiskRepository_Expecter) Create(tx interface{}, t interface{}) *LicenseRiskRepository_Create_Call
- func (_e *LicenseRiskRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *LicenseRiskRepository_CreateBatch_Call
- func (_e *LicenseRiskRepository_Expecter) Delete(tx interface{}, id interface{}) *LicenseRiskRepository_Delete_Call
- func (_e *LicenseRiskRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *LicenseRiskRepository_DeleteBatch_Call
- func (_e *LicenseRiskRepository_Expecter) DeleteByComponentPurl(assetID interface{}, assetVersionName interface{}, purl interface{}) *LicenseRiskRepository_DeleteByComponentPurl_Call
- func (_e *LicenseRiskRepository_Expecter) GetAllLicenseRisksForAssetVersion(assetID interface{}, assetVersionName interface{}) *LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call
- func (_e *LicenseRiskRepository_Expecter) GetAllLicenseRisksForAssetVersionPaged(tx interface{}, assetID interface{}, assetVersionName interface{}, ...) *LicenseRiskRepository_GetAllLicenseRisksForAssetVersionPaged_Call
- func (_e *LicenseRiskRepository_Expecter) GetAllOverwrittenLicensesForAssetVersion(assetID interface{}, assetVersionName interface{}) *LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call
- func (_e *LicenseRiskRepository_Expecter) GetDB(tx interface{}) *LicenseRiskRepository_GetDB_Call
- func (_e *LicenseRiskRepository_Expecter) GetLicenseRisksByOtherAssetVersions(tx interface{}, assetVersionName interface{}, assetID interface{}) *LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call
- func (_e *LicenseRiskRepository_Expecter) List(ids interface{}) *LicenseRiskRepository_List_Call
- func (_e *LicenseRiskRepository_Expecter) ListByArtifactName(assetVersionName interface{}, assetID interface{}, scannerID interface{}) *LicenseRiskRepository_ListByArtifactName_Call
- func (_e *LicenseRiskRepository_Expecter) MaybeGetLicenseOverwriteForComponent(assetID interface{}, assetVersionName interface{}, pURL interface{}) *LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call
- func (_e *LicenseRiskRepository_Expecter) Read(id interface{}) *LicenseRiskRepository_Read_Call
- func (_e *LicenseRiskRepository_Expecter) Save(tx interface{}, t interface{}) *LicenseRiskRepository_Save_Call
- func (_e *LicenseRiskRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *LicenseRiskRepository_SaveBatch_Call
- func (_e *LicenseRiskRepository_Expecter) Transaction(fn interface{}) *LicenseRiskRepository_Transaction_Call
- func (_e *LicenseRiskRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *LicenseRiskRepository_Upsert_Call
- type LicenseRiskRepository_GetAllLicenseRisksForAssetVersionPaged_Call
- func (_c *LicenseRiskRepository_GetAllLicenseRisksForAssetVersionPaged_Call) Return(paged core.Paged[models.LicenseRisk], err error) *LicenseRiskRepository_GetAllLicenseRisksForAssetVersionPaged_Call
- func (_c *LicenseRiskRepository_GetAllLicenseRisksForAssetVersionPaged_Call) Run(...) *LicenseRiskRepository_GetAllLicenseRisksForAssetVersionPaged_Call
- func (_c *LicenseRiskRepository_GetAllLicenseRisksForAssetVersionPaged_Call) RunAndReturn(...) *LicenseRiskRepository_GetAllLicenseRisksForAssetVersionPaged_Call
- type LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call
- func (_c *LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call) Return(licenseRisks []models.LicenseRisk, err error) *LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call
- func (_c *LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call) Run(run func(assetID uuid.UUID, assetVersionName string)) *LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call
- func (_c *LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call) RunAndReturn(...) *LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call
- type LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call
- func (_c *LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call) Return(licenseRisks []models.LicenseRisk, err error) *LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call
- func (_c *LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call) Run(run func(assetID uuid.UUID, assetVersionName string)) *LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call
- func (_c *LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call) RunAndReturn(...) *LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call
- type LicenseRiskRepository_GetDB_Call
- func (_c *LicenseRiskRepository_GetDB_Call) Return(v core.DB) *LicenseRiskRepository_GetDB_Call
- func (_c *LicenseRiskRepository_GetDB_Call) Run(run func(tx core.DB)) *LicenseRiskRepository_GetDB_Call
- func (_c *LicenseRiskRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *LicenseRiskRepository_GetDB_Call
- type LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call
- func (_c *LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call) Return(licenseRisks []models.LicenseRisk, err error) *LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call
- func (_c *LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call) Run(run func(tx core.DB, assetVersionName string, assetID uuid.UUID)) *LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call
- func (_c *LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call) RunAndReturn(...) *LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call
- type LicenseRiskRepository_ListByArtifactName_Call
- func (_c *LicenseRiskRepository_ListByArtifactName_Call) Return(licenseRisks []models.LicenseRisk, err error) *LicenseRiskRepository_ListByArtifactName_Call
- func (_c *LicenseRiskRepository_ListByArtifactName_Call) Run(run func(assetVersionName string, assetID uuid.UUID, scannerID string)) *LicenseRiskRepository_ListByArtifactName_Call
- func (_c *LicenseRiskRepository_ListByArtifactName_Call) RunAndReturn(...) *LicenseRiskRepository_ListByArtifactName_Call
- type LicenseRiskRepository_List_Call
- func (_c *LicenseRiskRepository_List_Call) Return(licenseRisks []models.LicenseRisk, err error) *LicenseRiskRepository_List_Call
- func (_c *LicenseRiskRepository_List_Call) Run(run func(ids []string)) *LicenseRiskRepository_List_Call
- func (_c *LicenseRiskRepository_List_Call) RunAndReturn(run func(ids []string) ([]models.LicenseRisk, error)) *LicenseRiskRepository_List_Call
- type LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call
- func (_c *LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call) Return(licenseRisk models.LicenseRisk, err error) *LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call
- func (_c *LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call) Run(...) *LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call
- func (_c *LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call) RunAndReturn(...) *LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call
- type LicenseRiskRepository_Read_Call
- func (_c *LicenseRiskRepository_Read_Call) Return(licenseRisk models.LicenseRisk, err error) *LicenseRiskRepository_Read_Call
- func (_c *LicenseRiskRepository_Read_Call) Run(run func(id string)) *LicenseRiskRepository_Read_Call
- func (_c *LicenseRiskRepository_Read_Call) RunAndReturn(run func(id string) (models.LicenseRisk, error)) *LicenseRiskRepository_Read_Call
- type LicenseRiskRepository_SaveBatch_Call
- func (_c *LicenseRiskRepository_SaveBatch_Call) Return(err error) *LicenseRiskRepository_SaveBatch_Call
- func (_c *LicenseRiskRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.LicenseRisk)) *LicenseRiskRepository_SaveBatch_Call
- func (_c *LicenseRiskRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.LicenseRisk) error) *LicenseRiskRepository_SaveBatch_Call
- type LicenseRiskRepository_Save_Call
- func (_c *LicenseRiskRepository_Save_Call) Return(err error) *LicenseRiskRepository_Save_Call
- func (_c *LicenseRiskRepository_Save_Call) Run(run func(tx core.DB, t *models.LicenseRisk)) *LicenseRiskRepository_Save_Call
- func (_c *LicenseRiskRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *models.LicenseRisk) error) *LicenseRiskRepository_Save_Call
- type LicenseRiskRepository_Transaction_Call
- func (_c *LicenseRiskRepository_Transaction_Call) Return(err error) *LicenseRiskRepository_Transaction_Call
- func (_c *LicenseRiskRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *LicenseRiskRepository_Transaction_Call
- func (_c *LicenseRiskRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *LicenseRiskRepository_Transaction_Call
- type LicenseRiskRepository_Upsert_Call
- func (_c *LicenseRiskRepository_Upsert_Call) Return(err error) *LicenseRiskRepository_Upsert_Call
- func (_c *LicenseRiskRepository_Upsert_Call) Run(run func(t *[]*models.LicenseRisk, conflictingColumns []clause.Column, ...)) *LicenseRiskRepository_Upsert_Call
- func (_c *LicenseRiskRepository_Upsert_Call) RunAndReturn(...) *LicenseRiskRepository_Upsert_Call
- type LicenseRiskService
- func (_m *LicenseRiskService) EXPECT() *LicenseRiskService_Expecter
- func (_mock *LicenseRiskService) FindLicenseRisksInComponents(assetVersion models.AssetVersion, components []models.Component, ...) error
- func (_mock *LicenseRiskService) MakeFinalLicenseDecision(vulnID string, finalLicense string, justification string, userID string) error
- func (_mock *LicenseRiskService) UpdateLicenseRiskState(tx core.DB, userID string, licenseRisk *models.LicenseRisk, statusType string, ...) (models.VulnEvent, error)
- type LicenseRiskService_Expecter
- func (_e *LicenseRiskService_Expecter) FindLicenseRisksInComponents(assetVersion interface{}, components interface{}, artifactName interface{}) *LicenseRiskService_FindLicenseRisksInComponents_Call
- func (_e *LicenseRiskService_Expecter) MakeFinalLicenseDecision(vulnID interface{}, finalLicense interface{}, justification interface{}, ...) *LicenseRiskService_MakeFinalLicenseDecision_Call
- func (_e *LicenseRiskService_Expecter) UpdateLicenseRiskState(tx interface{}, userID interface{}, licenseRisk interface{}, ...) *LicenseRiskService_UpdateLicenseRiskState_Call
- type LicenseRiskService_FindLicenseRisksInComponents_Call
- func (_c *LicenseRiskService_FindLicenseRisksInComponents_Call) Return(err error) *LicenseRiskService_FindLicenseRisksInComponents_Call
- func (_c *LicenseRiskService_FindLicenseRisksInComponents_Call) Run(run func(assetVersion models.AssetVersion, components []models.Component, ...)) *LicenseRiskService_FindLicenseRisksInComponents_Call
- func (_c *LicenseRiskService_FindLicenseRisksInComponents_Call) RunAndReturn(...) *LicenseRiskService_FindLicenseRisksInComponents_Call
- type LicenseRiskService_MakeFinalLicenseDecision_Call
- func (_c *LicenseRiskService_MakeFinalLicenseDecision_Call) Return(err error) *LicenseRiskService_MakeFinalLicenseDecision_Call
- func (_c *LicenseRiskService_MakeFinalLicenseDecision_Call) Run(...) *LicenseRiskService_MakeFinalLicenseDecision_Call
- func (_c *LicenseRiskService_MakeFinalLicenseDecision_Call) RunAndReturn(...) *LicenseRiskService_MakeFinalLicenseDecision_Call
- type LicenseRiskService_UpdateLicenseRiskState_Call
- func (_c *LicenseRiskService_UpdateLicenseRiskState_Call) Return(vulnEvent models.VulnEvent, err error) *LicenseRiskService_UpdateLicenseRiskState_Call
- func (_c *LicenseRiskService_UpdateLicenseRiskState_Call) Run(...) *LicenseRiskService_UpdateLicenseRiskState_Call
- func (_c *LicenseRiskService_UpdateLicenseRiskState_Call) RunAndReturn(...) *LicenseRiskService_UpdateLicenseRiskState_Call
- type OpenSourceInsightService
- func (_m *OpenSourceInsightService) EXPECT() *OpenSourceInsightService_Expecter
- func (_mock *OpenSourceInsightService) GetProject(ctx context.Context, projectID string) (common.OpenSourceInsightsProjectResponse, error)
- func (_mock *OpenSourceInsightService) GetVersion(ctx context.Context, ecosystem string, packageName string, version string) (common.OpenSourceInsightsVersionResponse, error)
- type OpenSourceInsightService_Expecter
- func (_e *OpenSourceInsightService_Expecter) GetProject(ctx interface{}, projectID interface{}) *OpenSourceInsightService_GetProject_Call
- func (_e *OpenSourceInsightService_Expecter) GetVersion(ctx interface{}, ecosystem interface{}, packageName interface{}, ...) *OpenSourceInsightService_GetVersion_Call
- type OpenSourceInsightService_GetProject_Call
- func (_c *OpenSourceInsightService_GetProject_Call) Return(openSourceInsightsProjectResponse common.OpenSourceInsightsProjectResponse, ...) *OpenSourceInsightService_GetProject_Call
- func (_c *OpenSourceInsightService_GetProject_Call) Run(run func(ctx context.Context, projectID string)) *OpenSourceInsightService_GetProject_Call
- func (_c *OpenSourceInsightService_GetProject_Call) RunAndReturn(...) *OpenSourceInsightService_GetProject_Call
- type OpenSourceInsightService_GetVersion_Call
- func (_c *OpenSourceInsightService_GetVersion_Call) Return(openSourceInsightsVersionResponse common.OpenSourceInsightsVersionResponse, ...) *OpenSourceInsightService_GetVersion_Call
- func (_c *OpenSourceInsightService_GetVersion_Call) Run(...) *OpenSourceInsightService_GetVersion_Call
- func (_c *OpenSourceInsightService_GetVersion_Call) RunAndReturn(...) *OpenSourceInsightService_GetVersion_Call
- type OrgService
- type OrgService_CreateOrganization_Call
- func (_c *OrgService_CreateOrganization_Call) Return(err error) *OrgService_CreateOrganization_Call
- func (_c *OrgService_CreateOrganization_Call) Run(run func(ctx core.Context, organization *models.Org)) *OrgService_CreateOrganization_Call
- func (_c *OrgService_CreateOrganization_Call) RunAndReturn(run func(ctx core.Context, organization *models.Org) error) *OrgService_CreateOrganization_Call
- type OrgService_Expecter
- type OrgService_ReadBySlug_Call
- func (_c *OrgService_ReadBySlug_Call) Return(org *models.Org, err error) *OrgService_ReadBySlug_Call
- func (_c *OrgService_ReadBySlug_Call) Run(run func(slug string)) *OrgService_ReadBySlug_Call
- func (_c *OrgService_ReadBySlug_Call) RunAndReturn(run func(slug string) (*models.Org, error)) *OrgService_ReadBySlug_Call
- type OrganizationRepository
- func (_mock *OrganizationRepository) Activate(tx core.DB, id uuid.UUID) error
- func (_mock *OrganizationRepository) All() ([]models.Org, error)
- func (_mock *OrganizationRepository) Begin() core.DB
- func (_mock *OrganizationRepository) ContentTree(orgID uuid.UUID, projects []string) []any
- func (_mock *OrganizationRepository) Create(tx core.DB, t *models.Org) error
- func (_mock *OrganizationRepository) CreateBatch(tx core.DB, ts []models.Org) error
- func (_mock *OrganizationRepository) Delete(tx core.DB, id uuid.UUID) error
- func (_mock *OrganizationRepository) DeleteBatch(tx core.DB, ids []models.Org) error
- func (_m *OrganizationRepository) EXPECT() *OrganizationRepository_Expecter
- func (_mock *OrganizationRepository) GetDB(tx core.DB) core.DB
- func (_mock *OrganizationRepository) GetOrgByID(id uuid.UUID) (models.Org, error)
- func (_mock *OrganizationRepository) List(ids []uuid.UUID) ([]models.Org, error)
- func (_mock *OrganizationRepository) Read(id uuid.UUID) (models.Org, error)
- func (_mock *OrganizationRepository) ReadBySlug(slug string) (models.Org, error)
- func (_mock *OrganizationRepository) Save(tx core.DB, t *models.Org) error
- func (_mock *OrganizationRepository) SaveBatch(tx core.DB, ts []models.Org) error
- func (_mock *OrganizationRepository) Transaction(fn func(tx core.DB) error) error
- func (_mock *OrganizationRepository) Update(tx core.DB, organization *models.Org) error
- func (_mock *OrganizationRepository) Upsert(t *[]*models.Org, conflictingColumns []clause.Column, updateOnly []string) error
- type OrganizationRepository_Activate_Call
- func (_c *OrganizationRepository_Activate_Call) Return(err error) *OrganizationRepository_Activate_Call
- func (_c *OrganizationRepository_Activate_Call) Run(run func(tx core.DB, id uuid.UUID)) *OrganizationRepository_Activate_Call
- func (_c *OrganizationRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *OrganizationRepository_Activate_Call
- type OrganizationRepository_All_Call
- func (_c *OrganizationRepository_All_Call) Return(orgs []models.Org, err error) *OrganizationRepository_All_Call
- func (_c *OrganizationRepository_All_Call) Run(run func()) *OrganizationRepository_All_Call
- func (_c *OrganizationRepository_All_Call) RunAndReturn(run func() ([]models.Org, error)) *OrganizationRepository_All_Call
- type OrganizationRepository_Begin_Call
- func (_c *OrganizationRepository_Begin_Call) Return(v core.DB) *OrganizationRepository_Begin_Call
- func (_c *OrganizationRepository_Begin_Call) Run(run func()) *OrganizationRepository_Begin_Call
- func (_c *OrganizationRepository_Begin_Call) RunAndReturn(run func() core.DB) *OrganizationRepository_Begin_Call
- type OrganizationRepository_ContentTree_Call
- func (_c *OrganizationRepository_ContentTree_Call) Return(vs []any) *OrganizationRepository_ContentTree_Call
- func (_c *OrganizationRepository_ContentTree_Call) Run(run func(orgID uuid.UUID, projects []string)) *OrganizationRepository_ContentTree_Call
- func (_c *OrganizationRepository_ContentTree_Call) RunAndReturn(run func(orgID uuid.UUID, projects []string) []any) *OrganizationRepository_ContentTree_Call
- type OrganizationRepository_CreateBatch_Call
- func (_c *OrganizationRepository_CreateBatch_Call) Return(err error) *OrganizationRepository_CreateBatch_Call
- func (_c *OrganizationRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.Org)) *OrganizationRepository_CreateBatch_Call
- func (_c *OrganizationRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Org) error) *OrganizationRepository_CreateBatch_Call
- type OrganizationRepository_Create_Call
- func (_c *OrganizationRepository_Create_Call) Return(err error) *OrganizationRepository_Create_Call
- func (_c *OrganizationRepository_Create_Call) Run(run func(tx core.DB, t *models.Org)) *OrganizationRepository_Create_Call
- func (_c *OrganizationRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.Org) error) *OrganizationRepository_Create_Call
- type OrganizationRepository_DeleteBatch_Call
- func (_c *OrganizationRepository_DeleteBatch_Call) Return(err error) *OrganizationRepository_DeleteBatch_Call
- func (_c *OrganizationRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.Org)) *OrganizationRepository_DeleteBatch_Call
- func (_c *OrganizationRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.Org) error) *OrganizationRepository_DeleteBatch_Call
- type OrganizationRepository_Delete_Call
- func (_c *OrganizationRepository_Delete_Call) Return(err error) *OrganizationRepository_Delete_Call
- func (_c *OrganizationRepository_Delete_Call) Run(run func(tx core.DB, id uuid.UUID)) *OrganizationRepository_Delete_Call
- func (_c *OrganizationRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *OrganizationRepository_Delete_Call
- type OrganizationRepository_Expecter
- func (_e *OrganizationRepository_Expecter) Activate(tx interface{}, id interface{}) *OrganizationRepository_Activate_Call
- func (_e *OrganizationRepository_Expecter) All() *OrganizationRepository_All_Call
- func (_e *OrganizationRepository_Expecter) Begin() *OrganizationRepository_Begin_Call
- func (_e *OrganizationRepository_Expecter) ContentTree(orgID interface{}, projects interface{}) *OrganizationRepository_ContentTree_Call
- func (_e *OrganizationRepository_Expecter) Create(tx interface{}, t interface{}) *OrganizationRepository_Create_Call
- func (_e *OrganizationRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *OrganizationRepository_CreateBatch_Call
- func (_e *OrganizationRepository_Expecter) Delete(tx interface{}, id interface{}) *OrganizationRepository_Delete_Call
- func (_e *OrganizationRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *OrganizationRepository_DeleteBatch_Call
- func (_e *OrganizationRepository_Expecter) GetDB(tx interface{}) *OrganizationRepository_GetDB_Call
- func (_e *OrganizationRepository_Expecter) GetOrgByID(id interface{}) *OrganizationRepository_GetOrgByID_Call
- func (_e *OrganizationRepository_Expecter) List(ids interface{}) *OrganizationRepository_List_Call
- func (_e *OrganizationRepository_Expecter) Read(id interface{}) *OrganizationRepository_Read_Call
- func (_e *OrganizationRepository_Expecter) ReadBySlug(slug interface{}) *OrganizationRepository_ReadBySlug_Call
- func (_e *OrganizationRepository_Expecter) Save(tx interface{}, t interface{}) *OrganizationRepository_Save_Call
- func (_e *OrganizationRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *OrganizationRepository_SaveBatch_Call
- func (_e *OrganizationRepository_Expecter) Transaction(fn interface{}) *OrganizationRepository_Transaction_Call
- func (_e *OrganizationRepository_Expecter) Update(tx interface{}, organization interface{}) *OrganizationRepository_Update_Call
- func (_e *OrganizationRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *OrganizationRepository_Upsert_Call
- type OrganizationRepository_GetDB_Call
- func (_c *OrganizationRepository_GetDB_Call) Return(v core.DB) *OrganizationRepository_GetDB_Call
- func (_c *OrganizationRepository_GetDB_Call) Run(run func(tx core.DB)) *OrganizationRepository_GetDB_Call
- func (_c *OrganizationRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *OrganizationRepository_GetDB_Call
- type OrganizationRepository_GetOrgByID_Call
- func (_c *OrganizationRepository_GetOrgByID_Call) Return(org models.Org, err error) *OrganizationRepository_GetOrgByID_Call
- func (_c *OrganizationRepository_GetOrgByID_Call) Run(run func(id uuid.UUID)) *OrganizationRepository_GetOrgByID_Call
- func (_c *OrganizationRepository_GetOrgByID_Call) RunAndReturn(run func(id uuid.UUID) (models.Org, error)) *OrganizationRepository_GetOrgByID_Call
- type OrganizationRepository_List_Call
- func (_c *OrganizationRepository_List_Call) Return(orgs []models.Org, err error) *OrganizationRepository_List_Call
- func (_c *OrganizationRepository_List_Call) Run(run func(ids []uuid.UUID)) *OrganizationRepository_List_Call
- func (_c *OrganizationRepository_List_Call) RunAndReturn(run func(ids []uuid.UUID) ([]models.Org, error)) *OrganizationRepository_List_Call
- type OrganizationRepository_ReadBySlug_Call
- func (_c *OrganizationRepository_ReadBySlug_Call) Return(org models.Org, err error) *OrganizationRepository_ReadBySlug_Call
- func (_c *OrganizationRepository_ReadBySlug_Call) Run(run func(slug string)) *OrganizationRepository_ReadBySlug_Call
- func (_c *OrganizationRepository_ReadBySlug_Call) RunAndReturn(run func(slug string) (models.Org, error)) *OrganizationRepository_ReadBySlug_Call
- type OrganizationRepository_Read_Call
- func (_c *OrganizationRepository_Read_Call) Return(org models.Org, err error) *OrganizationRepository_Read_Call
- func (_c *OrganizationRepository_Read_Call) Run(run func(id uuid.UUID)) *OrganizationRepository_Read_Call
- func (_c *OrganizationRepository_Read_Call) RunAndReturn(run func(id uuid.UUID) (models.Org, error)) *OrganizationRepository_Read_Call
- type OrganizationRepository_SaveBatch_Call
- func (_c *OrganizationRepository_SaveBatch_Call) Return(err error) *OrganizationRepository_SaveBatch_Call
- func (_c *OrganizationRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.Org)) *OrganizationRepository_SaveBatch_Call
- func (_c *OrganizationRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Org) error) *OrganizationRepository_SaveBatch_Call
- type OrganizationRepository_Save_Call
- func (_c *OrganizationRepository_Save_Call) Return(err error) *OrganizationRepository_Save_Call
- func (_c *OrganizationRepository_Save_Call) Run(run func(tx core.DB, t *models.Org)) *OrganizationRepository_Save_Call
- func (_c *OrganizationRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *models.Org) error) *OrganizationRepository_Save_Call
- type OrganizationRepository_Transaction_Call
- func (_c *OrganizationRepository_Transaction_Call) Return(err error) *OrganizationRepository_Transaction_Call
- func (_c *OrganizationRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *OrganizationRepository_Transaction_Call
- func (_c *OrganizationRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *OrganizationRepository_Transaction_Call
- type OrganizationRepository_Update_Call
- func (_c *OrganizationRepository_Update_Call) Return(err error) *OrganizationRepository_Update_Call
- func (_c *OrganizationRepository_Update_Call) Run(run func(tx core.DB, organization *models.Org)) *OrganizationRepository_Update_Call
- func (_c *OrganizationRepository_Update_Call) RunAndReturn(run func(tx core.DB, organization *models.Org) error) *OrganizationRepository_Update_Call
- type OrganizationRepository_Upsert_Call
- type PersonalAccessTokenRepository
- func (_mock *PersonalAccessTokenRepository) Activate(tx core.DB, id uuid.UUID) error
- func (_mock *PersonalAccessTokenRepository) All() ([]models.PAT, error)
- func (_mock *PersonalAccessTokenRepository) Begin() core.DB
- func (_mock *PersonalAccessTokenRepository) Create(tx core.DB, t *models.PAT) error
- func (_mock *PersonalAccessTokenRepository) CreateBatch(tx core.DB, ts []models.PAT) error
- func (_mock *PersonalAccessTokenRepository) Delete(tx core.DB, id uuid.UUID) error
- func (_mock *PersonalAccessTokenRepository) DeleteBatch(tx core.DB, ids []models.PAT) error
- func (_mock *PersonalAccessTokenRepository) DeleteByFingerprint(fingerprint string) error
- func (_m *PersonalAccessTokenRepository) EXPECT() *PersonalAccessTokenRepository_Expecter
- func (_mock *PersonalAccessTokenRepository) FindByUserIDs(userID []uuid.UUID) ([]models.PAT, error)
- func (_mock *PersonalAccessTokenRepository) GetByFingerprint(fingerprint string) (models.PAT, error)
- func (_mock *PersonalAccessTokenRepository) GetDB(tx core.DB) core.DB
- func (_mock *PersonalAccessTokenRepository) List(ids []uuid.UUID) ([]models.PAT, error)
- func (_mock *PersonalAccessTokenRepository) ListByUserID(userID string) ([]models.PAT, error)
- func (_mock *PersonalAccessTokenRepository) MarkAsLastUsedNow(fingerprint string) error
- func (_mock *PersonalAccessTokenRepository) Read(id uuid.UUID) (models.PAT, error)
- func (_mock *PersonalAccessTokenRepository) Save(tx core.DB, t *models.PAT) error
- func (_mock *PersonalAccessTokenRepository) SaveBatch(tx core.DB, ts []models.PAT) error
- func (_mock *PersonalAccessTokenRepository) Transaction(fn func(tx core.DB) error) error
- func (_mock *PersonalAccessTokenRepository) Upsert(t *[]*models.PAT, conflictingColumns []clause.Column, updateOnly []string) error
- type PersonalAccessTokenRepository_Activate_Call
- func (_c *PersonalAccessTokenRepository_Activate_Call) Return(err error) *PersonalAccessTokenRepository_Activate_Call
- func (_c *PersonalAccessTokenRepository_Activate_Call) Run(run func(tx core.DB, id uuid.UUID)) *PersonalAccessTokenRepository_Activate_Call
- func (_c *PersonalAccessTokenRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *PersonalAccessTokenRepository_Activate_Call
- type PersonalAccessTokenRepository_All_Call
- func (_c *PersonalAccessTokenRepository_All_Call) Return(pATs []models.PAT, err error) *PersonalAccessTokenRepository_All_Call
- func (_c *PersonalAccessTokenRepository_All_Call) Run(run func()) *PersonalAccessTokenRepository_All_Call
- func (_c *PersonalAccessTokenRepository_All_Call) RunAndReturn(run func() ([]models.PAT, error)) *PersonalAccessTokenRepository_All_Call
- type PersonalAccessTokenRepository_Begin_Call
- func (_c *PersonalAccessTokenRepository_Begin_Call) Return(v core.DB) *PersonalAccessTokenRepository_Begin_Call
- func (_c *PersonalAccessTokenRepository_Begin_Call) Run(run func()) *PersonalAccessTokenRepository_Begin_Call
- func (_c *PersonalAccessTokenRepository_Begin_Call) RunAndReturn(run func() core.DB) *PersonalAccessTokenRepository_Begin_Call
- type PersonalAccessTokenRepository_CreateBatch_Call
- func (_c *PersonalAccessTokenRepository_CreateBatch_Call) Return(err error) *PersonalAccessTokenRepository_CreateBatch_Call
- func (_c *PersonalAccessTokenRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.PAT)) *PersonalAccessTokenRepository_CreateBatch_Call
- func (_c *PersonalAccessTokenRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.PAT) error) *PersonalAccessTokenRepository_CreateBatch_Call
- type PersonalAccessTokenRepository_Create_Call
- func (_c *PersonalAccessTokenRepository_Create_Call) Return(err error) *PersonalAccessTokenRepository_Create_Call
- func (_c *PersonalAccessTokenRepository_Create_Call) Run(run func(tx core.DB, t *models.PAT)) *PersonalAccessTokenRepository_Create_Call
- func (_c *PersonalAccessTokenRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.PAT) error) *PersonalAccessTokenRepository_Create_Call
- type PersonalAccessTokenRepository_DeleteBatch_Call
- func (_c *PersonalAccessTokenRepository_DeleteBatch_Call) Return(err error) *PersonalAccessTokenRepository_DeleteBatch_Call
- func (_c *PersonalAccessTokenRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.PAT)) *PersonalAccessTokenRepository_DeleteBatch_Call
- func (_c *PersonalAccessTokenRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.PAT) error) *PersonalAccessTokenRepository_DeleteBatch_Call
- type PersonalAccessTokenRepository_DeleteByFingerprint_Call
- func (_c *PersonalAccessTokenRepository_DeleteByFingerprint_Call) Return(err error) *PersonalAccessTokenRepository_DeleteByFingerprint_Call
- func (_c *PersonalAccessTokenRepository_DeleteByFingerprint_Call) Run(run func(fingerprint string)) *PersonalAccessTokenRepository_DeleteByFingerprint_Call
- func (_c *PersonalAccessTokenRepository_DeleteByFingerprint_Call) RunAndReturn(run func(fingerprint string) error) *PersonalAccessTokenRepository_DeleteByFingerprint_Call
- type PersonalAccessTokenRepository_Delete_Call
- func (_c *PersonalAccessTokenRepository_Delete_Call) Return(err error) *PersonalAccessTokenRepository_Delete_Call
- func (_c *PersonalAccessTokenRepository_Delete_Call) Run(run func(tx core.DB, id uuid.UUID)) *PersonalAccessTokenRepository_Delete_Call
- func (_c *PersonalAccessTokenRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *PersonalAccessTokenRepository_Delete_Call
- type PersonalAccessTokenRepository_Expecter
- func (_e *PersonalAccessTokenRepository_Expecter) Activate(tx interface{}, id interface{}) *PersonalAccessTokenRepository_Activate_Call
- func (_e *PersonalAccessTokenRepository_Expecter) All() *PersonalAccessTokenRepository_All_Call
- func (_e *PersonalAccessTokenRepository_Expecter) Begin() *PersonalAccessTokenRepository_Begin_Call
- func (_e *PersonalAccessTokenRepository_Expecter) Create(tx interface{}, t interface{}) *PersonalAccessTokenRepository_Create_Call
- func (_e *PersonalAccessTokenRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *PersonalAccessTokenRepository_CreateBatch_Call
- func (_e *PersonalAccessTokenRepository_Expecter) Delete(tx interface{}, id interface{}) *PersonalAccessTokenRepository_Delete_Call
- func (_e *PersonalAccessTokenRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *PersonalAccessTokenRepository_DeleteBatch_Call
- func (_e *PersonalAccessTokenRepository_Expecter) DeleteByFingerprint(fingerprint interface{}) *PersonalAccessTokenRepository_DeleteByFingerprint_Call
- func (_e *PersonalAccessTokenRepository_Expecter) FindByUserIDs(userID interface{}) *PersonalAccessTokenRepository_FindByUserIDs_Call
- func (_e *PersonalAccessTokenRepository_Expecter) GetByFingerprint(fingerprint interface{}) *PersonalAccessTokenRepository_GetByFingerprint_Call
- func (_e *PersonalAccessTokenRepository_Expecter) GetDB(tx interface{}) *PersonalAccessTokenRepository_GetDB_Call
- func (_e *PersonalAccessTokenRepository_Expecter) List(ids interface{}) *PersonalAccessTokenRepository_List_Call
- func (_e *PersonalAccessTokenRepository_Expecter) ListByUserID(userID interface{}) *PersonalAccessTokenRepository_ListByUserID_Call
- func (_e *PersonalAccessTokenRepository_Expecter) MarkAsLastUsedNow(fingerprint interface{}) *PersonalAccessTokenRepository_MarkAsLastUsedNow_Call
- func (_e *PersonalAccessTokenRepository_Expecter) Read(id interface{}) *PersonalAccessTokenRepository_Read_Call
- func (_e *PersonalAccessTokenRepository_Expecter) Save(tx interface{}, t interface{}) *PersonalAccessTokenRepository_Save_Call
- func (_e *PersonalAccessTokenRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *PersonalAccessTokenRepository_SaveBatch_Call
- func (_e *PersonalAccessTokenRepository_Expecter) Transaction(fn interface{}) *PersonalAccessTokenRepository_Transaction_Call
- func (_e *PersonalAccessTokenRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *PersonalAccessTokenRepository_Upsert_Call
- type PersonalAccessTokenRepository_FindByUserIDs_Call
- func (_c *PersonalAccessTokenRepository_FindByUserIDs_Call) Return(pATs []models.PAT, err error) *PersonalAccessTokenRepository_FindByUserIDs_Call
- func (_c *PersonalAccessTokenRepository_FindByUserIDs_Call) Run(run func(userID []uuid.UUID)) *PersonalAccessTokenRepository_FindByUserIDs_Call
- func (_c *PersonalAccessTokenRepository_FindByUserIDs_Call) RunAndReturn(run func(userID []uuid.UUID) ([]models.PAT, error)) *PersonalAccessTokenRepository_FindByUserIDs_Call
- type PersonalAccessTokenRepository_GetByFingerprint_Call
- func (_c *PersonalAccessTokenRepository_GetByFingerprint_Call) Return(pAT models.PAT, err error) *PersonalAccessTokenRepository_GetByFingerprint_Call
- func (_c *PersonalAccessTokenRepository_GetByFingerprint_Call) Run(run func(fingerprint string)) *PersonalAccessTokenRepository_GetByFingerprint_Call
- func (_c *PersonalAccessTokenRepository_GetByFingerprint_Call) RunAndReturn(run func(fingerprint string) (models.PAT, error)) *PersonalAccessTokenRepository_GetByFingerprint_Call
- type PersonalAccessTokenRepository_GetDB_Call
- func (_c *PersonalAccessTokenRepository_GetDB_Call) Return(v core.DB) *PersonalAccessTokenRepository_GetDB_Call
- func (_c *PersonalAccessTokenRepository_GetDB_Call) Run(run func(tx core.DB)) *PersonalAccessTokenRepository_GetDB_Call
- func (_c *PersonalAccessTokenRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *PersonalAccessTokenRepository_GetDB_Call
- type PersonalAccessTokenRepository_ListByUserID_Call
- func (_c *PersonalAccessTokenRepository_ListByUserID_Call) Return(pATs []models.PAT, err error) *PersonalAccessTokenRepository_ListByUserID_Call
- func (_c *PersonalAccessTokenRepository_ListByUserID_Call) Run(run func(userID string)) *PersonalAccessTokenRepository_ListByUserID_Call
- func (_c *PersonalAccessTokenRepository_ListByUserID_Call) RunAndReturn(run func(userID string) ([]models.PAT, error)) *PersonalAccessTokenRepository_ListByUserID_Call
- type PersonalAccessTokenRepository_List_Call
- func (_c *PersonalAccessTokenRepository_List_Call) Return(pATs []models.PAT, err error) *PersonalAccessTokenRepository_List_Call
- func (_c *PersonalAccessTokenRepository_List_Call) Run(run func(ids []uuid.UUID)) *PersonalAccessTokenRepository_List_Call
- func (_c *PersonalAccessTokenRepository_List_Call) RunAndReturn(run func(ids []uuid.UUID) ([]models.PAT, error)) *PersonalAccessTokenRepository_List_Call
- type PersonalAccessTokenRepository_MarkAsLastUsedNow_Call
- func (_c *PersonalAccessTokenRepository_MarkAsLastUsedNow_Call) Return(err error) *PersonalAccessTokenRepository_MarkAsLastUsedNow_Call
- func (_c *PersonalAccessTokenRepository_MarkAsLastUsedNow_Call) Run(run func(fingerprint string)) *PersonalAccessTokenRepository_MarkAsLastUsedNow_Call
- func (_c *PersonalAccessTokenRepository_MarkAsLastUsedNow_Call) RunAndReturn(run func(fingerprint string) error) *PersonalAccessTokenRepository_MarkAsLastUsedNow_Call
- type PersonalAccessTokenRepository_Read_Call
- func (_c *PersonalAccessTokenRepository_Read_Call) Return(pAT models.PAT, err error) *PersonalAccessTokenRepository_Read_Call
- func (_c *PersonalAccessTokenRepository_Read_Call) Run(run func(id uuid.UUID)) *PersonalAccessTokenRepository_Read_Call
- func (_c *PersonalAccessTokenRepository_Read_Call) RunAndReturn(run func(id uuid.UUID) (models.PAT, error)) *PersonalAccessTokenRepository_Read_Call
- type PersonalAccessTokenRepository_SaveBatch_Call
- func (_c *PersonalAccessTokenRepository_SaveBatch_Call) Return(err error) *PersonalAccessTokenRepository_SaveBatch_Call
- func (_c *PersonalAccessTokenRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.PAT)) *PersonalAccessTokenRepository_SaveBatch_Call
- func (_c *PersonalAccessTokenRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.PAT) error) *PersonalAccessTokenRepository_SaveBatch_Call
- type PersonalAccessTokenRepository_Save_Call
- func (_c *PersonalAccessTokenRepository_Save_Call) Return(err error) *PersonalAccessTokenRepository_Save_Call
- func (_c *PersonalAccessTokenRepository_Save_Call) Run(run func(tx core.DB, t *models.PAT)) *PersonalAccessTokenRepository_Save_Call
- func (_c *PersonalAccessTokenRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *models.PAT) error) *PersonalAccessTokenRepository_Save_Call
- type PersonalAccessTokenRepository_Transaction_Call
- func (_c *PersonalAccessTokenRepository_Transaction_Call) Return(err error) *PersonalAccessTokenRepository_Transaction_Call
- func (_c *PersonalAccessTokenRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *PersonalAccessTokenRepository_Transaction_Call
- func (_c *PersonalAccessTokenRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *PersonalAccessTokenRepository_Transaction_Call
- type PersonalAccessTokenRepository_Upsert_Call
- func (_c *PersonalAccessTokenRepository_Upsert_Call) Return(err error) *PersonalAccessTokenRepository_Upsert_Call
- func (_c *PersonalAccessTokenRepository_Upsert_Call) Run(...) *PersonalAccessTokenRepository_Upsert_Call
- func (_c *PersonalAccessTokenRepository_Upsert_Call) RunAndReturn(...) *PersonalAccessTokenRepository_Upsert_Call
- type PolicyRepository
- func (_mock *PolicyRepository) Activate(tx core.DB, id uuid.UUID) error
- func (_mock *PolicyRepository) All() ([]models.Policy, error)
- func (_mock *PolicyRepository) Begin() core.DB
- func (_mock *PolicyRepository) Create(tx core.DB, t *models.Policy) error
- func (_mock *PolicyRepository) CreateBatch(tx core.DB, ts []models.Policy) error
- func (_mock *PolicyRepository) Delete(tx core.DB, id uuid.UUID) error
- func (_mock *PolicyRepository) DeleteBatch(tx core.DB, ids []models.Policy) error
- func (_m *PolicyRepository) EXPECT() *PolicyRepository_Expecter
- func (_mock *PolicyRepository) FindByOrganizationID(organizationID uuid.UUID) ([]models.Policy, error)
- func (_mock *PolicyRepository) FindByProjectID(projectID uuid.UUID) ([]models.Policy, error)
- func (_mock *PolicyRepository) FindCommunityManagedPolicies() ([]models.Policy, error)
- func (_mock *PolicyRepository) GetDB(tx core.DB) core.DB
- func (_mock *PolicyRepository) List(ids []uuid.UUID) ([]models.Policy, error)
- func (_mock *PolicyRepository) Read(id uuid.UUID) (models.Policy, error)
- func (_mock *PolicyRepository) Save(tx core.DB, t *models.Policy) error
- func (_mock *PolicyRepository) SaveBatch(tx core.DB, ts []models.Policy) error
- func (_mock *PolicyRepository) Transaction(fn func(tx core.DB) error) error
- func (_mock *PolicyRepository) Upsert(t *[]*models.Policy, conflictingColumns []clause.Column, updateOnly []string) error
- type PolicyRepository_Activate_Call
- func (_c *PolicyRepository_Activate_Call) Return(err error) *PolicyRepository_Activate_Call
- func (_c *PolicyRepository_Activate_Call) Run(run func(tx core.DB, id uuid.UUID)) *PolicyRepository_Activate_Call
- func (_c *PolicyRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *PolicyRepository_Activate_Call
- type PolicyRepository_All_Call
- func (_c *PolicyRepository_All_Call) Return(policys []models.Policy, err error) *PolicyRepository_All_Call
- func (_c *PolicyRepository_All_Call) Run(run func()) *PolicyRepository_All_Call
- func (_c *PolicyRepository_All_Call) RunAndReturn(run func() ([]models.Policy, error)) *PolicyRepository_All_Call
- type PolicyRepository_Begin_Call
- type PolicyRepository_CreateBatch_Call
- func (_c *PolicyRepository_CreateBatch_Call) Return(err error) *PolicyRepository_CreateBatch_Call
- func (_c *PolicyRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.Policy)) *PolicyRepository_CreateBatch_Call
- func (_c *PolicyRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Policy) error) *PolicyRepository_CreateBatch_Call
- type PolicyRepository_Create_Call
- func (_c *PolicyRepository_Create_Call) Return(err error) *PolicyRepository_Create_Call
- func (_c *PolicyRepository_Create_Call) Run(run func(tx core.DB, t *models.Policy)) *PolicyRepository_Create_Call
- func (_c *PolicyRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.Policy) error) *PolicyRepository_Create_Call
- type PolicyRepository_DeleteBatch_Call
- func (_c *PolicyRepository_DeleteBatch_Call) Return(err error) *PolicyRepository_DeleteBatch_Call
- func (_c *PolicyRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.Policy)) *PolicyRepository_DeleteBatch_Call
- func (_c *PolicyRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.Policy) error) *PolicyRepository_DeleteBatch_Call
- type PolicyRepository_Delete_Call
- func (_c *PolicyRepository_Delete_Call) Return(err error) *PolicyRepository_Delete_Call
- func (_c *PolicyRepository_Delete_Call) Run(run func(tx core.DB, id uuid.UUID)) *PolicyRepository_Delete_Call
- func (_c *PolicyRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *PolicyRepository_Delete_Call
- type PolicyRepository_Expecter
- func (_e *PolicyRepository_Expecter) Activate(tx interface{}, id interface{}) *PolicyRepository_Activate_Call
- func (_e *PolicyRepository_Expecter) All() *PolicyRepository_All_Call
- func (_e *PolicyRepository_Expecter) Begin() *PolicyRepository_Begin_Call
- func (_e *PolicyRepository_Expecter) Create(tx interface{}, t interface{}) *PolicyRepository_Create_Call
- func (_e *PolicyRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *PolicyRepository_CreateBatch_Call
- func (_e *PolicyRepository_Expecter) Delete(tx interface{}, id interface{}) *PolicyRepository_Delete_Call
- func (_e *PolicyRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *PolicyRepository_DeleteBatch_Call
- func (_e *PolicyRepository_Expecter) FindByOrganizationID(organizationID interface{}) *PolicyRepository_FindByOrganizationID_Call
- func (_e *PolicyRepository_Expecter) FindByProjectID(projectID interface{}) *PolicyRepository_FindByProjectID_Call
- func (_e *PolicyRepository_Expecter) FindCommunityManagedPolicies() *PolicyRepository_FindCommunityManagedPolicies_Call
- func (_e *PolicyRepository_Expecter) GetDB(tx interface{}) *PolicyRepository_GetDB_Call
- func (_e *PolicyRepository_Expecter) List(ids interface{}) *PolicyRepository_List_Call
- func (_e *PolicyRepository_Expecter) Read(id interface{}) *PolicyRepository_Read_Call
- func (_e *PolicyRepository_Expecter) Save(tx interface{}, t interface{}) *PolicyRepository_Save_Call
- func (_e *PolicyRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *PolicyRepository_SaveBatch_Call
- func (_e *PolicyRepository_Expecter) Transaction(fn interface{}) *PolicyRepository_Transaction_Call
- func (_e *PolicyRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *PolicyRepository_Upsert_Call
- type PolicyRepository_FindByOrganizationID_Call
- func (_c *PolicyRepository_FindByOrganizationID_Call) Return(policys []models.Policy, err error) *PolicyRepository_FindByOrganizationID_Call
- func (_c *PolicyRepository_FindByOrganizationID_Call) Run(run func(organizationID uuid.UUID)) *PolicyRepository_FindByOrganizationID_Call
- func (_c *PolicyRepository_FindByOrganizationID_Call) RunAndReturn(run func(organizationID uuid.UUID) ([]models.Policy, error)) *PolicyRepository_FindByOrganizationID_Call
- type PolicyRepository_FindByProjectID_Call
- func (_c *PolicyRepository_FindByProjectID_Call) Return(policys []models.Policy, err error) *PolicyRepository_FindByProjectID_Call
- func (_c *PolicyRepository_FindByProjectID_Call) Run(run func(projectID uuid.UUID)) *PolicyRepository_FindByProjectID_Call
- func (_c *PolicyRepository_FindByProjectID_Call) RunAndReturn(run func(projectID uuid.UUID) ([]models.Policy, error)) *PolicyRepository_FindByProjectID_Call
- type PolicyRepository_FindCommunityManagedPolicies_Call
- func (_c *PolicyRepository_FindCommunityManagedPolicies_Call) Return(policys []models.Policy, err error) *PolicyRepository_FindCommunityManagedPolicies_Call
- func (_c *PolicyRepository_FindCommunityManagedPolicies_Call) Run(run func()) *PolicyRepository_FindCommunityManagedPolicies_Call
- func (_c *PolicyRepository_FindCommunityManagedPolicies_Call) RunAndReturn(run func() ([]models.Policy, error)) *PolicyRepository_FindCommunityManagedPolicies_Call
- type PolicyRepository_GetDB_Call
- type PolicyRepository_List_Call
- func (_c *PolicyRepository_List_Call) Return(policys []models.Policy, err error) *PolicyRepository_List_Call
- func (_c *PolicyRepository_List_Call) Run(run func(ids []uuid.UUID)) *PolicyRepository_List_Call
- func (_c *PolicyRepository_List_Call) RunAndReturn(run func(ids []uuid.UUID) ([]models.Policy, error)) *PolicyRepository_List_Call
- type PolicyRepository_Read_Call
- func (_c *PolicyRepository_Read_Call) Return(policy models.Policy, err error) *PolicyRepository_Read_Call
- func (_c *PolicyRepository_Read_Call) Run(run func(id uuid.UUID)) *PolicyRepository_Read_Call
- func (_c *PolicyRepository_Read_Call) RunAndReturn(run func(id uuid.UUID) (models.Policy, error)) *PolicyRepository_Read_Call
- type PolicyRepository_SaveBatch_Call
- func (_c *PolicyRepository_SaveBatch_Call) Return(err error) *PolicyRepository_SaveBatch_Call
- func (_c *PolicyRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.Policy)) *PolicyRepository_SaveBatch_Call
- func (_c *PolicyRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Policy) error) *PolicyRepository_SaveBatch_Call
- type PolicyRepository_Save_Call
- func (_c *PolicyRepository_Save_Call) Return(err error) *PolicyRepository_Save_Call
- func (_c *PolicyRepository_Save_Call) Run(run func(tx core.DB, t *models.Policy)) *PolicyRepository_Save_Call
- func (_c *PolicyRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *models.Policy) error) *PolicyRepository_Save_Call
- type PolicyRepository_Transaction_Call
- func (_c *PolicyRepository_Transaction_Call) Return(err error) *PolicyRepository_Transaction_Call
- func (_c *PolicyRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *PolicyRepository_Transaction_Call
- func (_c *PolicyRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *PolicyRepository_Transaction_Call
- type PolicyRepository_Upsert_Call
- type ProjectRepository
- func (_mock *ProjectRepository) Activate(tx core.DB, projectID uuid.UUID) error
- func (_mock *ProjectRepository) Create(tx core.DB, project *models.Project) error
- func (_mock *ProjectRepository) Delete(tx core.DB, projectID uuid.UUID) error
- func (_mock *ProjectRepository) DisablePolicyForProject(tx core.DB, projectID uuid.UUID, policyID uuid.UUID) error
- func (_m *ProjectRepository) EXPECT() *ProjectRepository_Expecter
- func (_mock *ProjectRepository) EnableCommunityManagedPolicies(tx core.DB, projectID uuid.UUID) error
- func (_mock *ProjectRepository) EnablePolicyForProject(tx core.DB, projectID uuid.UUID, policyID uuid.UUID) error
- func (_mock *ProjectRepository) GetByOrgID(organizationID uuid.UUID) ([]models.Project, error)
- func (_mock *ProjectRepository) GetDirectChildProjects(projectID uuid.UUID) ([]models.Project, error)
- func (_mock *ProjectRepository) GetProjectByAssetID(assetID uuid.UUID) (models.Project, error)
- func (_mock *ProjectRepository) List(idSlice []uuid.UUID, parentID *uuid.UUID, organizationID uuid.UUID) ([]models.Project, error)
- func (_mock *ProjectRepository) ListPaged(projectIDs []uuid.UUID, parentID *uuid.UUID, orgID uuid.UUID, ...) (core.Paged[models.Project], error)
- func (_mock *ProjectRepository) Read(projectID uuid.UUID) (models.Project, error)
- func (_mock *ProjectRepository) ReadBySlug(organizationID uuid.UUID, slug string) (models.Project, error)
- func (_mock *ProjectRepository) ReadBySlugUnscoped(organizationID uuid.UUID, slug string) (models.Project, error)
- func (_mock *ProjectRepository) RecursivelyGetChildProjects(projectID uuid.UUID) ([]models.Project, error)
- func (_mock *ProjectRepository) Update(tx core.DB, project *models.Project) error
- func (_mock *ProjectRepository) Upsert(projects *[]*models.Project, conflictingColumns []clause.Column, ...) error
- func (_mock *ProjectRepository) UpsertSplit(tx core.DB, externalProviderID string, projects []*models.Project) ([]*models.Project, []*models.Project, error)
- type ProjectRepository_Activate_Call
- func (_c *ProjectRepository_Activate_Call) Return(err error) *ProjectRepository_Activate_Call
- func (_c *ProjectRepository_Activate_Call) Run(run func(tx core.DB, projectID uuid.UUID)) *ProjectRepository_Activate_Call
- func (_c *ProjectRepository_Activate_Call) RunAndReturn(run func(tx core.DB, projectID uuid.UUID) error) *ProjectRepository_Activate_Call
- type ProjectRepository_Create_Call
- func (_c *ProjectRepository_Create_Call) Return(err error) *ProjectRepository_Create_Call
- func (_c *ProjectRepository_Create_Call) Run(run func(tx core.DB, project *models.Project)) *ProjectRepository_Create_Call
- func (_c *ProjectRepository_Create_Call) RunAndReturn(run func(tx core.DB, project *models.Project) error) *ProjectRepository_Create_Call
- type ProjectRepository_Delete_Call
- func (_c *ProjectRepository_Delete_Call) Return(err error) *ProjectRepository_Delete_Call
- func (_c *ProjectRepository_Delete_Call) Run(run func(tx core.DB, projectID uuid.UUID)) *ProjectRepository_Delete_Call
- func (_c *ProjectRepository_Delete_Call) RunAndReturn(run func(tx core.DB, projectID uuid.UUID) error) *ProjectRepository_Delete_Call
- type ProjectRepository_DisablePolicyForProject_Call
- func (_c *ProjectRepository_DisablePolicyForProject_Call) Return(err error) *ProjectRepository_DisablePolicyForProject_Call
- func (_c *ProjectRepository_DisablePolicyForProject_Call) Run(run func(tx core.DB, projectID uuid.UUID, policyID uuid.UUID)) *ProjectRepository_DisablePolicyForProject_Call
- func (_c *ProjectRepository_DisablePolicyForProject_Call) RunAndReturn(run func(tx core.DB, projectID uuid.UUID, policyID uuid.UUID) error) *ProjectRepository_DisablePolicyForProject_Call
- type ProjectRepository_EnableCommunityManagedPolicies_Call
- func (_c *ProjectRepository_EnableCommunityManagedPolicies_Call) Return(err error) *ProjectRepository_EnableCommunityManagedPolicies_Call
- func (_c *ProjectRepository_EnableCommunityManagedPolicies_Call) Run(run func(tx core.DB, projectID uuid.UUID)) *ProjectRepository_EnableCommunityManagedPolicies_Call
- func (_c *ProjectRepository_EnableCommunityManagedPolicies_Call) RunAndReturn(run func(tx core.DB, projectID uuid.UUID) error) *ProjectRepository_EnableCommunityManagedPolicies_Call
- type ProjectRepository_EnablePolicyForProject_Call
- func (_c *ProjectRepository_EnablePolicyForProject_Call) Return(err error) *ProjectRepository_EnablePolicyForProject_Call
- func (_c *ProjectRepository_EnablePolicyForProject_Call) Run(run func(tx core.DB, projectID uuid.UUID, policyID uuid.UUID)) *ProjectRepository_EnablePolicyForProject_Call
- func (_c *ProjectRepository_EnablePolicyForProject_Call) RunAndReturn(run func(tx core.DB, projectID uuid.UUID, policyID uuid.UUID) error) *ProjectRepository_EnablePolicyForProject_Call
- type ProjectRepository_Expecter
- func (_e *ProjectRepository_Expecter) Activate(tx interface{}, projectID interface{}) *ProjectRepository_Activate_Call
- func (_e *ProjectRepository_Expecter) Create(tx interface{}, project interface{}) *ProjectRepository_Create_Call
- func (_e *ProjectRepository_Expecter) Delete(tx interface{}, projectID interface{}) *ProjectRepository_Delete_Call
- func (_e *ProjectRepository_Expecter) DisablePolicyForProject(tx interface{}, projectID interface{}, policyID interface{}) *ProjectRepository_DisablePolicyForProject_Call
- func (_e *ProjectRepository_Expecter) EnableCommunityManagedPolicies(tx interface{}, projectID interface{}) *ProjectRepository_EnableCommunityManagedPolicies_Call
- func (_e *ProjectRepository_Expecter) EnablePolicyForProject(tx interface{}, projectID interface{}, policyID interface{}) *ProjectRepository_EnablePolicyForProject_Call
- func (_e *ProjectRepository_Expecter) GetByOrgID(organizationID interface{}) *ProjectRepository_GetByOrgID_Call
- func (_e *ProjectRepository_Expecter) GetDirectChildProjects(projectID interface{}) *ProjectRepository_GetDirectChildProjects_Call
- func (_e *ProjectRepository_Expecter) GetProjectByAssetID(assetID interface{}) *ProjectRepository_GetProjectByAssetID_Call
- func (_e *ProjectRepository_Expecter) List(idSlice interface{}, parentID interface{}, organizationID interface{}) *ProjectRepository_List_Call
- func (_e *ProjectRepository_Expecter) ListPaged(projectIDs interface{}, parentID interface{}, orgID interface{}, ...) *ProjectRepository_ListPaged_Call
- func (_e *ProjectRepository_Expecter) Read(projectID interface{}) *ProjectRepository_Read_Call
- func (_e *ProjectRepository_Expecter) ReadBySlug(organizationID interface{}, slug interface{}) *ProjectRepository_ReadBySlug_Call
- func (_e *ProjectRepository_Expecter) ReadBySlugUnscoped(organizationID interface{}, slug interface{}) *ProjectRepository_ReadBySlugUnscoped_Call
- func (_e *ProjectRepository_Expecter) RecursivelyGetChildProjects(projectID interface{}) *ProjectRepository_RecursivelyGetChildProjects_Call
- func (_e *ProjectRepository_Expecter) Update(tx interface{}, project interface{}) *ProjectRepository_Update_Call
- func (_e *ProjectRepository_Expecter) Upsert(projects interface{}, conflictingColumns interface{}, toUpdate interface{}) *ProjectRepository_Upsert_Call
- func (_e *ProjectRepository_Expecter) UpsertSplit(tx interface{}, externalProviderID interface{}, projects interface{}) *ProjectRepository_UpsertSplit_Call
- type ProjectRepository_GetByOrgID_Call
- func (_c *ProjectRepository_GetByOrgID_Call) Return(projects []models.Project, err error) *ProjectRepository_GetByOrgID_Call
- func (_c *ProjectRepository_GetByOrgID_Call) Run(run func(organizationID uuid.UUID)) *ProjectRepository_GetByOrgID_Call
- func (_c *ProjectRepository_GetByOrgID_Call) RunAndReturn(run func(organizationID uuid.UUID) ([]models.Project, error)) *ProjectRepository_GetByOrgID_Call
- type ProjectRepository_GetDirectChildProjects_Call
- func (_c *ProjectRepository_GetDirectChildProjects_Call) Return(projects []models.Project, err error) *ProjectRepository_GetDirectChildProjects_Call
- func (_c *ProjectRepository_GetDirectChildProjects_Call) Run(run func(projectID uuid.UUID)) *ProjectRepository_GetDirectChildProjects_Call
- func (_c *ProjectRepository_GetDirectChildProjects_Call) RunAndReturn(run func(projectID uuid.UUID) ([]models.Project, error)) *ProjectRepository_GetDirectChildProjects_Call
- type ProjectRepository_GetProjectByAssetID_Call
- func (_c *ProjectRepository_GetProjectByAssetID_Call) Return(project models.Project, err error) *ProjectRepository_GetProjectByAssetID_Call
- func (_c *ProjectRepository_GetProjectByAssetID_Call) Run(run func(assetID uuid.UUID)) *ProjectRepository_GetProjectByAssetID_Call
- func (_c *ProjectRepository_GetProjectByAssetID_Call) RunAndReturn(run func(assetID uuid.UUID) (models.Project, error)) *ProjectRepository_GetProjectByAssetID_Call
- type ProjectRepository_ListPaged_Call
- func (_c *ProjectRepository_ListPaged_Call) Return(paged core.Paged[models.Project], err error) *ProjectRepository_ListPaged_Call
- func (_c *ProjectRepository_ListPaged_Call) Run(run func(projectIDs []uuid.UUID, parentID *uuid.UUID, orgID uuid.UUID, ...)) *ProjectRepository_ListPaged_Call
- func (_c *ProjectRepository_ListPaged_Call) RunAndReturn(...) *ProjectRepository_ListPaged_Call
- type ProjectRepository_List_Call
- func (_c *ProjectRepository_List_Call) Return(projects []models.Project, err error) *ProjectRepository_List_Call
- func (_c *ProjectRepository_List_Call) Run(run func(idSlice []uuid.UUID, parentID *uuid.UUID, organizationID uuid.UUID)) *ProjectRepository_List_Call
- func (_c *ProjectRepository_List_Call) RunAndReturn(...) *ProjectRepository_List_Call
- type ProjectRepository_ReadBySlugUnscoped_Call
- func (_c *ProjectRepository_ReadBySlugUnscoped_Call) Return(project models.Project, err error) *ProjectRepository_ReadBySlugUnscoped_Call
- func (_c *ProjectRepository_ReadBySlugUnscoped_Call) Run(run func(organizationID uuid.UUID, slug string)) *ProjectRepository_ReadBySlugUnscoped_Call
- func (_c *ProjectRepository_ReadBySlugUnscoped_Call) RunAndReturn(run func(organizationID uuid.UUID, slug string) (models.Project, error)) *ProjectRepository_ReadBySlugUnscoped_Call
- type ProjectRepository_ReadBySlug_Call
- func (_c *ProjectRepository_ReadBySlug_Call) Return(project models.Project, err error) *ProjectRepository_ReadBySlug_Call
- func (_c *ProjectRepository_ReadBySlug_Call) Run(run func(organizationID uuid.UUID, slug string)) *ProjectRepository_ReadBySlug_Call
- func (_c *ProjectRepository_ReadBySlug_Call) RunAndReturn(run func(organizationID uuid.UUID, slug string) (models.Project, error)) *ProjectRepository_ReadBySlug_Call
- type ProjectRepository_Read_Call
- func (_c *ProjectRepository_Read_Call) Return(project models.Project, err error) *ProjectRepository_Read_Call
- func (_c *ProjectRepository_Read_Call) Run(run func(projectID uuid.UUID)) *ProjectRepository_Read_Call
- func (_c *ProjectRepository_Read_Call) RunAndReturn(run func(projectID uuid.UUID) (models.Project, error)) *ProjectRepository_Read_Call
- type ProjectRepository_RecursivelyGetChildProjects_Call
- func (_c *ProjectRepository_RecursivelyGetChildProjects_Call) Return(projects []models.Project, err error) *ProjectRepository_RecursivelyGetChildProjects_Call
- func (_c *ProjectRepository_RecursivelyGetChildProjects_Call) Run(run func(projectID uuid.UUID)) *ProjectRepository_RecursivelyGetChildProjects_Call
- func (_c *ProjectRepository_RecursivelyGetChildProjects_Call) RunAndReturn(run func(projectID uuid.UUID) ([]models.Project, error)) *ProjectRepository_RecursivelyGetChildProjects_Call
- type ProjectRepository_Update_Call
- func (_c *ProjectRepository_Update_Call) Return(err error) *ProjectRepository_Update_Call
- func (_c *ProjectRepository_Update_Call) Run(run func(tx core.DB, project *models.Project)) *ProjectRepository_Update_Call
- func (_c *ProjectRepository_Update_Call) RunAndReturn(run func(tx core.DB, project *models.Project) error) *ProjectRepository_Update_Call
- type ProjectRepository_UpsertSplit_Call
- func (_c *ProjectRepository_UpsertSplit_Call) Return(projects1 []*models.Project, projects2 []*models.Project, err error) *ProjectRepository_UpsertSplit_Call
- func (_c *ProjectRepository_UpsertSplit_Call) Run(run func(tx core.DB, externalProviderID string, projects []*models.Project)) *ProjectRepository_UpsertSplit_Call
- func (_c *ProjectRepository_UpsertSplit_Call) RunAndReturn(...) *ProjectRepository_UpsertSplit_Call
- type ProjectRepository_Upsert_Call
- func (_c *ProjectRepository_Upsert_Call) Return(err error) *ProjectRepository_Upsert_Call
- func (_c *ProjectRepository_Upsert_Call) Run(run func(projects *[]*models.Project, conflictingColumns []clause.Column, ...)) *ProjectRepository_Upsert_Call
- func (_c *ProjectRepository_Upsert_Call) RunAndReturn(...) *ProjectRepository_Upsert_Call
- type ProjectRiskHistoryRepository
- func (_m *ProjectRiskHistoryRepository) EXPECT() *ProjectRiskHistoryRepository_Expecter
- func (_mock *ProjectRiskHistoryRepository) GetRiskHistory(projectID uuid.UUID, start time.Time, end time.Time) ([]models.ProjectRiskHistory, error)
- func (_mock *ProjectRiskHistoryRepository) UpdateRiskAggregation(projectRisk *models.ProjectRiskHistory) error
- type ProjectRiskHistoryRepository_Expecter
- func (_e *ProjectRiskHistoryRepository_Expecter) GetRiskHistory(projectID interface{}, start interface{}, end interface{}) *ProjectRiskHistoryRepository_GetRiskHistory_Call
- func (_e *ProjectRiskHistoryRepository_Expecter) UpdateRiskAggregation(projectRisk interface{}) *ProjectRiskHistoryRepository_UpdateRiskAggregation_Call
- type ProjectRiskHistoryRepository_GetRiskHistory_Call
- func (_c *ProjectRiskHistoryRepository_GetRiskHistory_Call) Return(projectRiskHistorys []models.ProjectRiskHistory, err error) *ProjectRiskHistoryRepository_GetRiskHistory_Call
- func (_c *ProjectRiskHistoryRepository_GetRiskHistory_Call) Run(run func(projectID uuid.UUID, start time.Time, end time.Time)) *ProjectRiskHistoryRepository_GetRiskHistory_Call
- func (_c *ProjectRiskHistoryRepository_GetRiskHistory_Call) RunAndReturn(...) *ProjectRiskHistoryRepository_GetRiskHistory_Call
- type ProjectRiskHistoryRepository_UpdateRiskAggregation_Call
- func (_c *ProjectRiskHistoryRepository_UpdateRiskAggregation_Call) Return(err error) *ProjectRiskHistoryRepository_UpdateRiskAggregation_Call
- func (_c *ProjectRiskHistoryRepository_UpdateRiskAggregation_Call) Run(run func(projectRisk *models.ProjectRiskHistory)) *ProjectRiskHistoryRepository_UpdateRiskAggregation_Call
- func (_c *ProjectRiskHistoryRepository_UpdateRiskAggregation_Call) RunAndReturn(run func(projectRisk *models.ProjectRiskHistory) error) *ProjectRiskHistoryRepository_UpdateRiskAggregation_Call
- type ProjectService
- func (_mock *ProjectService) BootstrapProject(rbac core.AccessControl, project *models.Project) error
- func (_mock *ProjectService) CreateProject(ctx core.Context, project *models.Project) error
- func (_m *ProjectService) EXPECT() *ProjectService_Expecter
- func (_mock *ProjectService) GetDirectChildProjects(projectID uuid.UUID) ([]models.Project, error)
- func (_mock *ProjectService) ListAllowedProjects(ctx core.Context) ([]models.Project, error)
- func (_mock *ProjectService) ListAllowedProjectsPaged(c core.Context) (core.Paged[models.Project], error)
- func (_mock *ProjectService) ListProjectsByOrganizationID(organizationID uuid.UUID) ([]models.Project, error)
- func (_mock *ProjectService) ReadBySlug(ctx core.Context, organizationID uuid.UUID, slug string) (models.Project, error)
- func (_mock *ProjectService) RecursivelyGetChildProjects(projectID uuid.UUID) ([]models.Project, error)
- type ProjectService_BootstrapProject_Call
- func (_c *ProjectService_BootstrapProject_Call) Return(err error) *ProjectService_BootstrapProject_Call
- func (_c *ProjectService_BootstrapProject_Call) Run(run func(rbac core.AccessControl, project *models.Project)) *ProjectService_BootstrapProject_Call
- func (_c *ProjectService_BootstrapProject_Call) RunAndReturn(run func(rbac core.AccessControl, project *models.Project) error) *ProjectService_BootstrapProject_Call
- type ProjectService_CreateProject_Call
- func (_c *ProjectService_CreateProject_Call) Return(err error) *ProjectService_CreateProject_Call
- func (_c *ProjectService_CreateProject_Call) Run(run func(ctx core.Context, project *models.Project)) *ProjectService_CreateProject_Call
- func (_c *ProjectService_CreateProject_Call) RunAndReturn(run func(ctx core.Context, project *models.Project) error) *ProjectService_CreateProject_Call
- type ProjectService_Expecter
- func (_e *ProjectService_Expecter) BootstrapProject(rbac interface{}, project interface{}) *ProjectService_BootstrapProject_Call
- func (_e *ProjectService_Expecter) CreateProject(ctx interface{}, project interface{}) *ProjectService_CreateProject_Call
- func (_e *ProjectService_Expecter) GetDirectChildProjects(projectID interface{}) *ProjectService_GetDirectChildProjects_Call
- func (_e *ProjectService_Expecter) ListAllowedProjects(ctx interface{}) *ProjectService_ListAllowedProjects_Call
- func (_e *ProjectService_Expecter) ListAllowedProjectsPaged(c interface{}) *ProjectService_ListAllowedProjectsPaged_Call
- func (_e *ProjectService_Expecter) ListProjectsByOrganizationID(organizationID interface{}) *ProjectService_ListProjectsByOrganizationID_Call
- func (_e *ProjectService_Expecter) ReadBySlug(ctx interface{}, organizationID interface{}, slug interface{}) *ProjectService_ReadBySlug_Call
- func (_e *ProjectService_Expecter) RecursivelyGetChildProjects(projectID interface{}) *ProjectService_RecursivelyGetChildProjects_Call
- type ProjectService_GetDirectChildProjects_Call
- func (_c *ProjectService_GetDirectChildProjects_Call) Return(projects []models.Project, err error) *ProjectService_GetDirectChildProjects_Call
- func (_c *ProjectService_GetDirectChildProjects_Call) Run(run func(projectID uuid.UUID)) *ProjectService_GetDirectChildProjects_Call
- func (_c *ProjectService_GetDirectChildProjects_Call) RunAndReturn(run func(projectID uuid.UUID) ([]models.Project, error)) *ProjectService_GetDirectChildProjects_Call
- type ProjectService_ListAllowedProjectsPaged_Call
- func (_c *ProjectService_ListAllowedProjectsPaged_Call) Return(paged core.Paged[models.Project], err error) *ProjectService_ListAllowedProjectsPaged_Call
- func (_c *ProjectService_ListAllowedProjectsPaged_Call) Run(run func(c core.Context)) *ProjectService_ListAllowedProjectsPaged_Call
- func (_c *ProjectService_ListAllowedProjectsPaged_Call) RunAndReturn(run func(c core.Context) (core.Paged[models.Project], error)) *ProjectService_ListAllowedProjectsPaged_Call
- type ProjectService_ListAllowedProjects_Call
- func (_c *ProjectService_ListAllowedProjects_Call) Return(projects []models.Project, err error) *ProjectService_ListAllowedProjects_Call
- func (_c *ProjectService_ListAllowedProjects_Call) Run(run func(ctx core.Context)) *ProjectService_ListAllowedProjects_Call
- func (_c *ProjectService_ListAllowedProjects_Call) RunAndReturn(run func(ctx core.Context) ([]models.Project, error)) *ProjectService_ListAllowedProjects_Call
- type ProjectService_ListProjectsByOrganizationID_Call
- func (_c *ProjectService_ListProjectsByOrganizationID_Call) Return(projects []models.Project, err error) *ProjectService_ListProjectsByOrganizationID_Call
- func (_c *ProjectService_ListProjectsByOrganizationID_Call) Run(run func(organizationID uuid.UUID)) *ProjectService_ListProjectsByOrganizationID_Call
- func (_c *ProjectService_ListProjectsByOrganizationID_Call) RunAndReturn(run func(organizationID uuid.UUID) ([]models.Project, error)) *ProjectService_ListProjectsByOrganizationID_Call
- type ProjectService_ReadBySlug_Call
- func (_c *ProjectService_ReadBySlug_Call) Return(project models.Project, err error) *ProjectService_ReadBySlug_Call
- func (_c *ProjectService_ReadBySlug_Call) Run(run func(ctx core.Context, organizationID uuid.UUID, slug string)) *ProjectService_ReadBySlug_Call
- func (_c *ProjectService_ReadBySlug_Call) RunAndReturn(...) *ProjectService_ReadBySlug_Call
- type ProjectService_RecursivelyGetChildProjects_Call
- func (_c *ProjectService_RecursivelyGetChildProjects_Call) Return(projects []models.Project, err error) *ProjectService_RecursivelyGetChildProjects_Call
- func (_c *ProjectService_RecursivelyGetChildProjects_Call) Run(run func(projectID uuid.UUID)) *ProjectService_RecursivelyGetChildProjects_Call
- func (_c *ProjectService_RecursivelyGetChildProjects_Call) RunAndReturn(run func(projectID uuid.UUID) ([]models.Project, error)) *ProjectService_RecursivelyGetChildProjects_Call
- type RBACProvider
- type RBACProvider_DomainsOfUser_Call
- func (_c *RBACProvider_DomainsOfUser_Call) Return(strings []string, err error) *RBACProvider_DomainsOfUser_Call
- func (_c *RBACProvider_DomainsOfUser_Call) Run(run func(user string)) *RBACProvider_DomainsOfUser_Call
- func (_c *RBACProvider_DomainsOfUser_Call) RunAndReturn(run func(user string) ([]string, error)) *RBACProvider_DomainsOfUser_Call
- type RBACProvider_Expecter
- type RBACProvider_GetDomainRBAC_Call
- func (_c *RBACProvider_GetDomainRBAC_Call) Return(accessControl core.AccessControl) *RBACProvider_GetDomainRBAC_Call
- func (_c *RBACProvider_GetDomainRBAC_Call) Run(run func(domain string)) *RBACProvider_GetDomainRBAC_Call
- func (_c *RBACProvider_GetDomainRBAC_Call) RunAndReturn(run func(domain string) core.AccessControl) *RBACProvider_GetDomainRBAC_Call
- type ReleaseRepository
- func (_mock *ReleaseRepository) Activate(tx core.DB, id uuid.UUID) error
- func (_mock *ReleaseRepository) All() ([]models.Release, error)
- func (_mock *ReleaseRepository) Begin() core.DB
- func (_mock *ReleaseRepository) Create(tx core.DB, t *models.Release) error
- func (_mock *ReleaseRepository) CreateBatch(tx core.DB, ts []models.Release) error
- func (_mock *ReleaseRepository) CreateReleaseItem(tx core.DB, item *models.ReleaseItem) error
- func (_mock *ReleaseRepository) Delete(tx core.DB, id uuid.UUID) error
- func (_mock *ReleaseRepository) DeleteBatch(tx core.DB, ids []models.Release) error
- func (_mock *ReleaseRepository) DeleteReleaseItem(tx core.DB, id uuid.UUID) error
- func (_m *ReleaseRepository) EXPECT() *ReleaseRepository_Expecter
- func (_mock *ReleaseRepository) GetByProjectID(projectID uuid.UUID) ([]models.Release, error)
- func (_mock *ReleaseRepository) GetByProjectIDPaged(tx core.DB, projectID uuid.UUID, pageInfo core.PageInfo, search string, ...) (core.Paged[models.Release], error)
- func (_mock *ReleaseRepository) GetCandidateItemsForRelease(projectID uuid.UUID, releaseID *uuid.UUID) ([]models.Artifact, []models.Release, error)
- func (_mock *ReleaseRepository) GetDB(tx core.DB) core.DB
- func (_mock *ReleaseRepository) List(ids []uuid.UUID) ([]models.Release, error)
- func (_mock *ReleaseRepository) Read(id uuid.UUID) (models.Release, error)
- func (_mock *ReleaseRepository) ReadRecursive(id uuid.UUID) (models.Release, error)
- func (_mock *ReleaseRepository) ReadWithItems(id uuid.UUID) (models.Release, error)
- func (_mock *ReleaseRepository) Save(tx core.DB, t *models.Release) error
- func (_mock *ReleaseRepository) SaveBatch(tx core.DB, ts []models.Release) error
- func (_mock *ReleaseRepository) Transaction(fn func(tx core.DB) error) error
- func (_mock *ReleaseRepository) Upsert(t *[]*models.Release, conflictingColumns []clause.Column, updateOnly []string) error
- type ReleaseRepository_Activate_Call
- func (_c *ReleaseRepository_Activate_Call) Return(err error) *ReleaseRepository_Activate_Call
- func (_c *ReleaseRepository_Activate_Call) Run(run func(tx core.DB, id uuid.UUID)) *ReleaseRepository_Activate_Call
- func (_c *ReleaseRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *ReleaseRepository_Activate_Call
- type ReleaseRepository_All_Call
- func (_c *ReleaseRepository_All_Call) Return(releases []models.Release, err error) *ReleaseRepository_All_Call
- func (_c *ReleaseRepository_All_Call) Run(run func()) *ReleaseRepository_All_Call
- func (_c *ReleaseRepository_All_Call) RunAndReturn(run func() ([]models.Release, error)) *ReleaseRepository_All_Call
- type ReleaseRepository_Begin_Call
- type ReleaseRepository_CreateBatch_Call
- func (_c *ReleaseRepository_CreateBatch_Call) Return(err error) *ReleaseRepository_CreateBatch_Call
- func (_c *ReleaseRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.Release)) *ReleaseRepository_CreateBatch_Call
- func (_c *ReleaseRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Release) error) *ReleaseRepository_CreateBatch_Call
- type ReleaseRepository_CreateReleaseItem_Call
- func (_c *ReleaseRepository_CreateReleaseItem_Call) Return(err error) *ReleaseRepository_CreateReleaseItem_Call
- func (_c *ReleaseRepository_CreateReleaseItem_Call) Run(run func(tx core.DB, item *models.ReleaseItem)) *ReleaseRepository_CreateReleaseItem_Call
- func (_c *ReleaseRepository_CreateReleaseItem_Call) RunAndReturn(run func(tx core.DB, item *models.ReleaseItem) error) *ReleaseRepository_CreateReleaseItem_Call
- type ReleaseRepository_Create_Call
- func (_c *ReleaseRepository_Create_Call) Return(err error) *ReleaseRepository_Create_Call
- func (_c *ReleaseRepository_Create_Call) Run(run func(tx core.DB, t *models.Release)) *ReleaseRepository_Create_Call
- func (_c *ReleaseRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.Release) error) *ReleaseRepository_Create_Call
- type ReleaseRepository_DeleteBatch_Call
- func (_c *ReleaseRepository_DeleteBatch_Call) Return(err error) *ReleaseRepository_DeleteBatch_Call
- func (_c *ReleaseRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.Release)) *ReleaseRepository_DeleteBatch_Call
- func (_c *ReleaseRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.Release) error) *ReleaseRepository_DeleteBatch_Call
- type ReleaseRepository_DeleteReleaseItem_Call
- func (_c *ReleaseRepository_DeleteReleaseItem_Call) Return(err error) *ReleaseRepository_DeleteReleaseItem_Call
- func (_c *ReleaseRepository_DeleteReleaseItem_Call) Run(run func(tx core.DB, id uuid.UUID)) *ReleaseRepository_DeleteReleaseItem_Call
- func (_c *ReleaseRepository_DeleteReleaseItem_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *ReleaseRepository_DeleteReleaseItem_Call
- type ReleaseRepository_Delete_Call
- func (_c *ReleaseRepository_Delete_Call) Return(err error) *ReleaseRepository_Delete_Call
- func (_c *ReleaseRepository_Delete_Call) Run(run func(tx core.DB, id uuid.UUID)) *ReleaseRepository_Delete_Call
- func (_c *ReleaseRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *ReleaseRepository_Delete_Call
- type ReleaseRepository_Expecter
- func (_e *ReleaseRepository_Expecter) Activate(tx interface{}, id interface{}) *ReleaseRepository_Activate_Call
- func (_e *ReleaseRepository_Expecter) All() *ReleaseRepository_All_Call
- func (_e *ReleaseRepository_Expecter) Begin() *ReleaseRepository_Begin_Call
- func (_e *ReleaseRepository_Expecter) Create(tx interface{}, t interface{}) *ReleaseRepository_Create_Call
- func (_e *ReleaseRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *ReleaseRepository_CreateBatch_Call
- func (_e *ReleaseRepository_Expecter) CreateReleaseItem(tx interface{}, item interface{}) *ReleaseRepository_CreateReleaseItem_Call
- func (_e *ReleaseRepository_Expecter) Delete(tx interface{}, id interface{}) *ReleaseRepository_Delete_Call
- func (_e *ReleaseRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *ReleaseRepository_DeleteBatch_Call
- func (_e *ReleaseRepository_Expecter) DeleteReleaseItem(tx interface{}, id interface{}) *ReleaseRepository_DeleteReleaseItem_Call
- func (_e *ReleaseRepository_Expecter) GetByProjectID(projectID interface{}) *ReleaseRepository_GetByProjectID_Call
- func (_e *ReleaseRepository_Expecter) GetByProjectIDPaged(tx interface{}, projectID interface{}, pageInfo interface{}, ...) *ReleaseRepository_GetByProjectIDPaged_Call
- func (_e *ReleaseRepository_Expecter) GetCandidateItemsForRelease(projectID interface{}, releaseID interface{}) *ReleaseRepository_GetCandidateItemsForRelease_Call
- func (_e *ReleaseRepository_Expecter) GetDB(tx interface{}) *ReleaseRepository_GetDB_Call
- func (_e *ReleaseRepository_Expecter) List(ids interface{}) *ReleaseRepository_List_Call
- func (_e *ReleaseRepository_Expecter) Read(id interface{}) *ReleaseRepository_Read_Call
- func (_e *ReleaseRepository_Expecter) ReadRecursive(id interface{}) *ReleaseRepository_ReadRecursive_Call
- func (_e *ReleaseRepository_Expecter) ReadWithItems(id interface{}) *ReleaseRepository_ReadWithItems_Call
- func (_e *ReleaseRepository_Expecter) Save(tx interface{}, t interface{}) *ReleaseRepository_Save_Call
- func (_e *ReleaseRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *ReleaseRepository_SaveBatch_Call
- func (_e *ReleaseRepository_Expecter) Transaction(fn interface{}) *ReleaseRepository_Transaction_Call
- func (_e *ReleaseRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *ReleaseRepository_Upsert_Call
- type ReleaseRepository_GetByProjectIDPaged_Call
- func (_c *ReleaseRepository_GetByProjectIDPaged_Call) Return(paged core.Paged[models.Release], err error) *ReleaseRepository_GetByProjectIDPaged_Call
- func (_c *ReleaseRepository_GetByProjectIDPaged_Call) Run(...) *ReleaseRepository_GetByProjectIDPaged_Call
- func (_c *ReleaseRepository_GetByProjectIDPaged_Call) RunAndReturn(...) *ReleaseRepository_GetByProjectIDPaged_Call
- type ReleaseRepository_GetByProjectID_Call
- func (_c *ReleaseRepository_GetByProjectID_Call) Return(releases []models.Release, err error) *ReleaseRepository_GetByProjectID_Call
- func (_c *ReleaseRepository_GetByProjectID_Call) Run(run func(projectID uuid.UUID)) *ReleaseRepository_GetByProjectID_Call
- func (_c *ReleaseRepository_GetByProjectID_Call) RunAndReturn(run func(projectID uuid.UUID) ([]models.Release, error)) *ReleaseRepository_GetByProjectID_Call
- type ReleaseRepository_GetCandidateItemsForRelease_Call
- func (_c *ReleaseRepository_GetCandidateItemsForRelease_Call) Return(artifacts []models.Artifact, releases []models.Release, err error) *ReleaseRepository_GetCandidateItemsForRelease_Call
- func (_c *ReleaseRepository_GetCandidateItemsForRelease_Call) Run(run func(projectID uuid.UUID, releaseID *uuid.UUID)) *ReleaseRepository_GetCandidateItemsForRelease_Call
- func (_c *ReleaseRepository_GetCandidateItemsForRelease_Call) RunAndReturn(...) *ReleaseRepository_GetCandidateItemsForRelease_Call
- type ReleaseRepository_GetDB_Call
- type ReleaseRepository_List_Call
- func (_c *ReleaseRepository_List_Call) Return(releases []models.Release, err error) *ReleaseRepository_List_Call
- func (_c *ReleaseRepository_List_Call) Run(run func(ids []uuid.UUID)) *ReleaseRepository_List_Call
- func (_c *ReleaseRepository_List_Call) RunAndReturn(run func(ids []uuid.UUID) ([]models.Release, error)) *ReleaseRepository_List_Call
- type ReleaseRepository_ReadRecursive_Call
- func (_c *ReleaseRepository_ReadRecursive_Call) Return(release models.Release, err error) *ReleaseRepository_ReadRecursive_Call
- func (_c *ReleaseRepository_ReadRecursive_Call) Run(run func(id uuid.UUID)) *ReleaseRepository_ReadRecursive_Call
- func (_c *ReleaseRepository_ReadRecursive_Call) RunAndReturn(run func(id uuid.UUID) (models.Release, error)) *ReleaseRepository_ReadRecursive_Call
- type ReleaseRepository_ReadWithItems_Call
- func (_c *ReleaseRepository_ReadWithItems_Call) Return(release models.Release, err error) *ReleaseRepository_ReadWithItems_Call
- func (_c *ReleaseRepository_ReadWithItems_Call) Run(run func(id uuid.UUID)) *ReleaseRepository_ReadWithItems_Call
- func (_c *ReleaseRepository_ReadWithItems_Call) RunAndReturn(run func(id uuid.UUID) (models.Release, error)) *ReleaseRepository_ReadWithItems_Call
- type ReleaseRepository_Read_Call
- func (_c *ReleaseRepository_Read_Call) Return(release models.Release, err error) *ReleaseRepository_Read_Call
- func (_c *ReleaseRepository_Read_Call) Run(run func(id uuid.UUID)) *ReleaseRepository_Read_Call
- func (_c *ReleaseRepository_Read_Call) RunAndReturn(run func(id uuid.UUID) (models.Release, error)) *ReleaseRepository_Read_Call
- type ReleaseRepository_SaveBatch_Call
- func (_c *ReleaseRepository_SaveBatch_Call) Return(err error) *ReleaseRepository_SaveBatch_Call
- func (_c *ReleaseRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.Release)) *ReleaseRepository_SaveBatch_Call
- func (_c *ReleaseRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Release) error) *ReleaseRepository_SaveBatch_Call
- type ReleaseRepository_Save_Call
- func (_c *ReleaseRepository_Save_Call) Return(err error) *ReleaseRepository_Save_Call
- func (_c *ReleaseRepository_Save_Call) Run(run func(tx core.DB, t *models.Release)) *ReleaseRepository_Save_Call
- func (_c *ReleaseRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *models.Release) error) *ReleaseRepository_Save_Call
- type ReleaseRepository_Transaction_Call
- func (_c *ReleaseRepository_Transaction_Call) Return(err error) *ReleaseRepository_Transaction_Call
- func (_c *ReleaseRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *ReleaseRepository_Transaction_Call
- func (_c *ReleaseRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *ReleaseRepository_Transaction_Call
- type ReleaseRepository_Upsert_Call
- type SBOM
- type SBOMScanner
- type SBOMScanner_Expecter
- type SBOMScanner_Scan_Call
- func (_c *SBOMScanner_Scan_Call) Return(vulnInPackages []models.VulnInPackage, err error) *SBOMScanner_Scan_Call
- func (_c *SBOMScanner_Scan_Call) Run(run func(bom normalize.SBOM)) *SBOMScanner_Scan_Call
- func (_c *SBOMScanner_Scan_Call) RunAndReturn(run func(bom normalize.SBOM) ([]models.VulnInPackage, error)) *SBOMScanner_Scan_Call
- type SBOM_Expecter
- type SBOM_GetCdxBom_Call
- type SBOM_GetComponents_Call
- type SBOM_GetDependencies_Call
- func (_c *SBOM_GetDependencies_Call) Return(dependencys *[]cyclonedx.Dependency) *SBOM_GetDependencies_Call
- func (_c *SBOM_GetDependencies_Call) Run(run func()) *SBOM_GetDependencies_Call
- func (_c *SBOM_GetDependencies_Call) RunAndReturn(run func() *[]cyclonedx.Dependency) *SBOM_GetDependencies_Call
- type SBOM_GetMetadata_Call
- type StatisticsRepository
- func (_mock *StatisticsRepository) AverageFixingTime(artifactNam *string, assetVersionName string, assetID uuid.UUID, ...) (time.Duration, error)
- func (_mock *StatisticsRepository) AverageFixingTimeByCvss(artifactName *string, assetVersionName string, assetID uuid.UUID, ...) (time.Duration, error)
- func (_mock *StatisticsRepository) AverageFixingTimeByCvssForRelease(releaseID uuid.UUID, cvssIntervalStart float64, cvssIntervalEnd float64) (time.Duration, error)
- func (_mock *StatisticsRepository) AverageFixingTimeForRelease(releaseID uuid.UUID, riskIntervalStart float64, riskIntervalEnd float64) (time.Duration, error)
- func (_mock *StatisticsRepository) CVESWithKnownExploitsInAssetVersion(assetVersion models.AssetVersion) ([]models.CVE, error)
- func (_m *StatisticsRepository) EXPECT() *StatisticsRepository_Expecter
- func (_mock *StatisticsRepository) TimeTravelDependencyVulnState(artifactName *string, assetVersionName string, assetID uuid.UUID, ...) ([]models.DependencyVuln, error)
- type StatisticsRepository_AverageFixingTimeByCvssForRelease_Call
- func (_c *StatisticsRepository_AverageFixingTimeByCvssForRelease_Call) Return(duration time.Duration, err error) *StatisticsRepository_AverageFixingTimeByCvssForRelease_Call
- func (_c *StatisticsRepository_AverageFixingTimeByCvssForRelease_Call) Run(...) *StatisticsRepository_AverageFixingTimeByCvssForRelease_Call
- func (_c *StatisticsRepository_AverageFixingTimeByCvssForRelease_Call) RunAndReturn(...) *StatisticsRepository_AverageFixingTimeByCvssForRelease_Call
- type StatisticsRepository_AverageFixingTimeByCvss_Call
- func (_c *StatisticsRepository_AverageFixingTimeByCvss_Call) Return(duration time.Duration, err error) *StatisticsRepository_AverageFixingTimeByCvss_Call
- func (_c *StatisticsRepository_AverageFixingTimeByCvss_Call) Run(...) *StatisticsRepository_AverageFixingTimeByCvss_Call
- func (_c *StatisticsRepository_AverageFixingTimeByCvss_Call) RunAndReturn(...) *StatisticsRepository_AverageFixingTimeByCvss_Call
- type StatisticsRepository_AverageFixingTimeForRelease_Call
- func (_c *StatisticsRepository_AverageFixingTimeForRelease_Call) Return(duration time.Duration, err error) *StatisticsRepository_AverageFixingTimeForRelease_Call
- func (_c *StatisticsRepository_AverageFixingTimeForRelease_Call) Run(...) *StatisticsRepository_AverageFixingTimeForRelease_Call
- func (_c *StatisticsRepository_AverageFixingTimeForRelease_Call) RunAndReturn(...) *StatisticsRepository_AverageFixingTimeForRelease_Call
- type StatisticsRepository_AverageFixingTime_Call
- func (_c *StatisticsRepository_AverageFixingTime_Call) Return(duration time.Duration, err error) *StatisticsRepository_AverageFixingTime_Call
- func (_c *StatisticsRepository_AverageFixingTime_Call) Run(run func(artifactNam *string, assetVersionName string, assetID uuid.UUID, ...)) *StatisticsRepository_AverageFixingTime_Call
- func (_c *StatisticsRepository_AverageFixingTime_Call) RunAndReturn(...) *StatisticsRepository_AverageFixingTime_Call
- type StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call
- func (_c *StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call) Return(cVEs []models.CVE, err error) *StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call
- func (_c *StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call) Run(run func(assetVersion models.AssetVersion)) *StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call
- func (_c *StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call) RunAndReturn(run func(assetVersion models.AssetVersion) ([]models.CVE, error)) *StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call
- type StatisticsRepository_Expecter
- func (_e *StatisticsRepository_Expecter) AverageFixingTime(artifactNam interface{}, assetVersionName interface{}, assetID interface{}, ...) *StatisticsRepository_AverageFixingTime_Call
- func (_e *StatisticsRepository_Expecter) AverageFixingTimeByCvss(artifactName interface{}, assetVersionName interface{}, assetID interface{}, ...) *StatisticsRepository_AverageFixingTimeByCvss_Call
- func (_e *StatisticsRepository_Expecter) AverageFixingTimeByCvssForRelease(releaseID interface{}, cvssIntervalStart interface{}, ...) *StatisticsRepository_AverageFixingTimeByCvssForRelease_Call
- func (_e *StatisticsRepository_Expecter) AverageFixingTimeForRelease(releaseID interface{}, riskIntervalStart interface{}, ...) *StatisticsRepository_AverageFixingTimeForRelease_Call
- func (_e *StatisticsRepository_Expecter) CVESWithKnownExploitsInAssetVersion(assetVersion interface{}) *StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call
- func (_e *StatisticsRepository_Expecter) TimeTravelDependencyVulnState(artifactName interface{}, assetVersionName interface{}, assetID interface{}, ...) *StatisticsRepository_TimeTravelDependencyVulnState_Call
- type StatisticsRepository_TimeTravelDependencyVulnState_Call
- func (_c *StatisticsRepository_TimeTravelDependencyVulnState_Call) Return(dependencyVulns []models.DependencyVuln, err error) *StatisticsRepository_TimeTravelDependencyVulnState_Call
- func (_c *StatisticsRepository_TimeTravelDependencyVulnState_Call) Run(...) *StatisticsRepository_TimeTravelDependencyVulnState_Call
- func (_c *StatisticsRepository_TimeTravelDependencyVulnState_Call) RunAndReturn(...) *StatisticsRepository_TimeTravelDependencyVulnState_Call
- type StatisticsService
- func (_m *StatisticsService) EXPECT() *StatisticsService_Expecter
- func (_mock *StatisticsService) GetArtifactRiskHistory(artifactName *string, assetVersionName string, assetID uuid.UUID, ...) ([]models.ArtifactRiskHistory, error)
- func (_mock *StatisticsService) GetAverageFixingTime(artifactName *string, assetVersionName string, assetID uuid.UUID, ...) (time.Duration, error)
- func (_mock *StatisticsService) GetAverageFixingTimeByCvss(artifactName *string, assetVersionName string, assetID uuid.UUID, ...) (time.Duration, error)
- func (_mock *StatisticsService) GetAverageFixingTimeByCvssForRelease(releaseID uuid.UUID, severity string) (time.Duration, error)
- func (_mock *StatisticsService) GetAverageFixingTimeForRelease(releaseID uuid.UUID, severity string) (time.Duration, error)
- func (_mock *StatisticsService) GetComponentRisk(artifactName *string, assetVersionName string, assetID uuid.UUID) (map[string]models.Distribution, error)
- func (_mock *StatisticsService) GetReleaseRiskHistory(releaseID uuid.UUID, start time.Time, end time.Time) ([]models.ArtifactRiskHistory, error)
- func (_mock *StatisticsService) UpdateArtifactRiskAggregation(artifact *models.Artifact, assetID uuid.UUID, begin time.Time, end time.Time) error
- type StatisticsService_Expecter
- func (_e *StatisticsService_Expecter) GetArtifactRiskHistory(artifactName interface{}, assetVersionName interface{}, assetID interface{}, ...) *StatisticsService_GetArtifactRiskHistory_Call
- func (_e *StatisticsService_Expecter) GetAverageFixingTime(artifactName interface{}, assetVersionName interface{}, assetID interface{}, ...) *StatisticsService_GetAverageFixingTime_Call
- func (_e *StatisticsService_Expecter) GetAverageFixingTimeByCvss(artifactName interface{}, assetVersionName interface{}, assetID interface{}, ...) *StatisticsService_GetAverageFixingTimeByCvss_Call
- func (_e *StatisticsService_Expecter) GetAverageFixingTimeByCvssForRelease(releaseID interface{}, severity interface{}) *StatisticsService_GetAverageFixingTimeByCvssForRelease_Call
- func (_e *StatisticsService_Expecter) GetAverageFixingTimeForRelease(releaseID interface{}, severity interface{}) *StatisticsService_GetAverageFixingTimeForRelease_Call
- func (_e *StatisticsService_Expecter) GetComponentRisk(artifactName interface{}, assetVersionName interface{}, assetID interface{}) *StatisticsService_GetComponentRisk_Call
- func (_e *StatisticsService_Expecter) GetReleaseRiskHistory(releaseID interface{}, start interface{}, end interface{}) *StatisticsService_GetReleaseRiskHistory_Call
- func (_e *StatisticsService_Expecter) UpdateArtifactRiskAggregation(artifact interface{}, assetID interface{}, begin interface{}, end interface{}) *StatisticsService_UpdateArtifactRiskAggregation_Call
- type StatisticsService_GetArtifactRiskHistory_Call
- func (_c *StatisticsService_GetArtifactRiskHistory_Call) Return(artifactRiskHistorys []models.ArtifactRiskHistory, err error) *StatisticsService_GetArtifactRiskHistory_Call
- func (_c *StatisticsService_GetArtifactRiskHistory_Call) Run(...) *StatisticsService_GetArtifactRiskHistory_Call
- func (_c *StatisticsService_GetArtifactRiskHistory_Call) RunAndReturn(...) *StatisticsService_GetArtifactRiskHistory_Call
- type StatisticsService_GetAverageFixingTimeByCvssForRelease_Call
- func (_c *StatisticsService_GetAverageFixingTimeByCvssForRelease_Call) Return(duration time.Duration, err error) *StatisticsService_GetAverageFixingTimeByCvssForRelease_Call
- func (_c *StatisticsService_GetAverageFixingTimeByCvssForRelease_Call) Run(run func(releaseID uuid.UUID, severity string)) *StatisticsService_GetAverageFixingTimeByCvssForRelease_Call
- func (_c *StatisticsService_GetAverageFixingTimeByCvssForRelease_Call) RunAndReturn(run func(releaseID uuid.UUID, severity string) (time.Duration, error)) *StatisticsService_GetAverageFixingTimeByCvssForRelease_Call
- type StatisticsService_GetAverageFixingTimeByCvss_Call
- func (_c *StatisticsService_GetAverageFixingTimeByCvss_Call) Return(duration time.Duration, err error) *StatisticsService_GetAverageFixingTimeByCvss_Call
- func (_c *StatisticsService_GetAverageFixingTimeByCvss_Call) Run(...) *StatisticsService_GetAverageFixingTimeByCvss_Call
- func (_c *StatisticsService_GetAverageFixingTimeByCvss_Call) RunAndReturn(...) *StatisticsService_GetAverageFixingTimeByCvss_Call
- type StatisticsService_GetAverageFixingTimeForRelease_Call
- func (_c *StatisticsService_GetAverageFixingTimeForRelease_Call) Return(duration time.Duration, err error) *StatisticsService_GetAverageFixingTimeForRelease_Call
- func (_c *StatisticsService_GetAverageFixingTimeForRelease_Call) Run(run func(releaseID uuid.UUID, severity string)) *StatisticsService_GetAverageFixingTimeForRelease_Call
- func (_c *StatisticsService_GetAverageFixingTimeForRelease_Call) RunAndReturn(run func(releaseID uuid.UUID, severity string) (time.Duration, error)) *StatisticsService_GetAverageFixingTimeForRelease_Call
- type StatisticsService_GetAverageFixingTime_Call
- func (_c *StatisticsService_GetAverageFixingTime_Call) Return(duration time.Duration, err error) *StatisticsService_GetAverageFixingTime_Call
- func (_c *StatisticsService_GetAverageFixingTime_Call) Run(...) *StatisticsService_GetAverageFixingTime_Call
- func (_c *StatisticsService_GetAverageFixingTime_Call) RunAndReturn(...) *StatisticsService_GetAverageFixingTime_Call
- type StatisticsService_GetComponentRisk_Call
- func (_c *StatisticsService_GetComponentRisk_Call) Return(stringToDistribution map[string]models.Distribution, err error) *StatisticsService_GetComponentRisk_Call
- func (_c *StatisticsService_GetComponentRisk_Call) Run(run func(artifactName *string, assetVersionName string, assetID uuid.UUID)) *StatisticsService_GetComponentRisk_Call
- func (_c *StatisticsService_GetComponentRisk_Call) RunAndReturn(...) *StatisticsService_GetComponentRisk_Call
- type StatisticsService_GetReleaseRiskHistory_Call
- func (_c *StatisticsService_GetReleaseRiskHistory_Call) Return(artifactRiskHistorys []models.ArtifactRiskHistory, err error) *StatisticsService_GetReleaseRiskHistory_Call
- func (_c *StatisticsService_GetReleaseRiskHistory_Call) Run(run func(releaseID uuid.UUID, start time.Time, end time.Time)) *StatisticsService_GetReleaseRiskHistory_Call
- func (_c *StatisticsService_GetReleaseRiskHistory_Call) RunAndReturn(...) *StatisticsService_GetReleaseRiskHistory_Call
- type StatisticsService_UpdateArtifactRiskAggregation_Call
- func (_c *StatisticsService_UpdateArtifactRiskAggregation_Call) Return(err error) *StatisticsService_UpdateArtifactRiskAggregation_Call
- func (_c *StatisticsService_UpdateArtifactRiskAggregation_Call) Run(...) *StatisticsService_UpdateArtifactRiskAggregation_Call
- func (_c *StatisticsService_UpdateArtifactRiskAggregation_Call) RunAndReturn(...) *StatisticsService_UpdateArtifactRiskAggregation_Call
- type SupplyChainRepository
- func (_mock *SupplyChainRepository) Activate(tx core.DB, id uuid.UUID) error
- func (_mock *SupplyChainRepository) All() ([]models.SupplyChain, error)
- func (_mock *SupplyChainRepository) Begin() core.DB
- func (_mock *SupplyChainRepository) Create(tx core.DB, t *models.SupplyChain) error
- func (_mock *SupplyChainRepository) CreateBatch(tx core.DB, ts []models.SupplyChain) error
- func (_mock *SupplyChainRepository) Delete(tx core.DB, id uuid.UUID) error
- func (_mock *SupplyChainRepository) DeleteBatch(tx core.DB, ids []models.SupplyChain) error
- func (_m *SupplyChainRepository) EXPECT() *SupplyChainRepository_Expecter
- func (_mock *SupplyChainRepository) FindByDigest(digest string) ([]models.SupplyChain, error)
- func (_mock *SupplyChainRepository) FindBySupplyChainID(supplyChainID string) ([]models.SupplyChain, error)
- func (_mock *SupplyChainRepository) GetDB(tx core.DB) core.DB
- func (_mock *SupplyChainRepository) List(ids []uuid.UUID) ([]models.SupplyChain, error)
- func (_mock *SupplyChainRepository) PercentageOfVerifiedSupplyChains(assetVersionName string, assetID uuid.UUID) (float64, error)
- func (_mock *SupplyChainRepository) Read(id uuid.UUID) (models.SupplyChain, error)
- func (_mock *SupplyChainRepository) Save(tx core.DB, t *models.SupplyChain) error
- func (_mock *SupplyChainRepository) SaveBatch(tx core.DB, ts []models.SupplyChain) error
- func (_mock *SupplyChainRepository) Transaction(fn func(tx core.DB) error) error
- func (_mock *SupplyChainRepository) Upsert(t *[]*models.SupplyChain, conflictingColumns []clause.Column, ...) error
- type SupplyChainRepository_Activate_Call
- func (_c *SupplyChainRepository_Activate_Call) Return(err error) *SupplyChainRepository_Activate_Call
- func (_c *SupplyChainRepository_Activate_Call) Run(run func(tx core.DB, id uuid.UUID)) *SupplyChainRepository_Activate_Call
- func (_c *SupplyChainRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *SupplyChainRepository_Activate_Call
- type SupplyChainRepository_All_Call
- func (_c *SupplyChainRepository_All_Call) Return(supplyChains []models.SupplyChain, err error) *SupplyChainRepository_All_Call
- func (_c *SupplyChainRepository_All_Call) Run(run func()) *SupplyChainRepository_All_Call
- func (_c *SupplyChainRepository_All_Call) RunAndReturn(run func() ([]models.SupplyChain, error)) *SupplyChainRepository_All_Call
- type SupplyChainRepository_Begin_Call
- func (_c *SupplyChainRepository_Begin_Call) Return(v core.DB) *SupplyChainRepository_Begin_Call
- func (_c *SupplyChainRepository_Begin_Call) Run(run func()) *SupplyChainRepository_Begin_Call
- func (_c *SupplyChainRepository_Begin_Call) RunAndReturn(run func() core.DB) *SupplyChainRepository_Begin_Call
- type SupplyChainRepository_CreateBatch_Call
- func (_c *SupplyChainRepository_CreateBatch_Call) Return(err error) *SupplyChainRepository_CreateBatch_Call
- func (_c *SupplyChainRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.SupplyChain)) *SupplyChainRepository_CreateBatch_Call
- func (_c *SupplyChainRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.SupplyChain) error) *SupplyChainRepository_CreateBatch_Call
- type SupplyChainRepository_Create_Call
- func (_c *SupplyChainRepository_Create_Call) Return(err error) *SupplyChainRepository_Create_Call
- func (_c *SupplyChainRepository_Create_Call) Run(run func(tx core.DB, t *models.SupplyChain)) *SupplyChainRepository_Create_Call
- func (_c *SupplyChainRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.SupplyChain) error) *SupplyChainRepository_Create_Call
- type SupplyChainRepository_DeleteBatch_Call
- func (_c *SupplyChainRepository_DeleteBatch_Call) Return(err error) *SupplyChainRepository_DeleteBatch_Call
- func (_c *SupplyChainRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.SupplyChain)) *SupplyChainRepository_DeleteBatch_Call
- func (_c *SupplyChainRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.SupplyChain) error) *SupplyChainRepository_DeleteBatch_Call
- type SupplyChainRepository_Delete_Call
- func (_c *SupplyChainRepository_Delete_Call) Return(err error) *SupplyChainRepository_Delete_Call
- func (_c *SupplyChainRepository_Delete_Call) Run(run func(tx core.DB, id uuid.UUID)) *SupplyChainRepository_Delete_Call
- func (_c *SupplyChainRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *SupplyChainRepository_Delete_Call
- type SupplyChainRepository_Expecter
- func (_e *SupplyChainRepository_Expecter) Activate(tx interface{}, id interface{}) *SupplyChainRepository_Activate_Call
- func (_e *SupplyChainRepository_Expecter) All() *SupplyChainRepository_All_Call
- func (_e *SupplyChainRepository_Expecter) Begin() *SupplyChainRepository_Begin_Call
- func (_e *SupplyChainRepository_Expecter) Create(tx interface{}, t interface{}) *SupplyChainRepository_Create_Call
- func (_e *SupplyChainRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *SupplyChainRepository_CreateBatch_Call
- func (_e *SupplyChainRepository_Expecter) Delete(tx interface{}, id interface{}) *SupplyChainRepository_Delete_Call
- func (_e *SupplyChainRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *SupplyChainRepository_DeleteBatch_Call
- func (_e *SupplyChainRepository_Expecter) FindByDigest(digest interface{}) *SupplyChainRepository_FindByDigest_Call
- func (_e *SupplyChainRepository_Expecter) FindBySupplyChainID(supplyChainID interface{}) *SupplyChainRepository_FindBySupplyChainID_Call
- func (_e *SupplyChainRepository_Expecter) GetDB(tx interface{}) *SupplyChainRepository_GetDB_Call
- func (_e *SupplyChainRepository_Expecter) List(ids interface{}) *SupplyChainRepository_List_Call
- func (_e *SupplyChainRepository_Expecter) PercentageOfVerifiedSupplyChains(assetVersionName interface{}, assetID interface{}) *SupplyChainRepository_PercentageOfVerifiedSupplyChains_Call
- func (_e *SupplyChainRepository_Expecter) Read(id interface{}) *SupplyChainRepository_Read_Call
- func (_e *SupplyChainRepository_Expecter) Save(tx interface{}, t interface{}) *SupplyChainRepository_Save_Call
- func (_e *SupplyChainRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *SupplyChainRepository_SaveBatch_Call
- func (_e *SupplyChainRepository_Expecter) Transaction(fn interface{}) *SupplyChainRepository_Transaction_Call
- func (_e *SupplyChainRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *SupplyChainRepository_Upsert_Call
- type SupplyChainRepository_FindByDigest_Call
- func (_c *SupplyChainRepository_FindByDigest_Call) Return(supplyChains []models.SupplyChain, err error) *SupplyChainRepository_FindByDigest_Call
- func (_c *SupplyChainRepository_FindByDigest_Call) Run(run func(digest string)) *SupplyChainRepository_FindByDigest_Call
- func (_c *SupplyChainRepository_FindByDigest_Call) RunAndReturn(run func(digest string) ([]models.SupplyChain, error)) *SupplyChainRepository_FindByDigest_Call
- type SupplyChainRepository_FindBySupplyChainID_Call
- func (_c *SupplyChainRepository_FindBySupplyChainID_Call) Return(supplyChains []models.SupplyChain, err error) *SupplyChainRepository_FindBySupplyChainID_Call
- func (_c *SupplyChainRepository_FindBySupplyChainID_Call) Run(run func(supplyChainID string)) *SupplyChainRepository_FindBySupplyChainID_Call
- func (_c *SupplyChainRepository_FindBySupplyChainID_Call) RunAndReturn(run func(supplyChainID string) ([]models.SupplyChain, error)) *SupplyChainRepository_FindBySupplyChainID_Call
- type SupplyChainRepository_GetDB_Call
- func (_c *SupplyChainRepository_GetDB_Call) Return(v core.DB) *SupplyChainRepository_GetDB_Call
- func (_c *SupplyChainRepository_GetDB_Call) Run(run func(tx core.DB)) *SupplyChainRepository_GetDB_Call
- func (_c *SupplyChainRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *SupplyChainRepository_GetDB_Call
- type SupplyChainRepository_List_Call
- func (_c *SupplyChainRepository_List_Call) Return(supplyChains []models.SupplyChain, err error) *SupplyChainRepository_List_Call
- func (_c *SupplyChainRepository_List_Call) Run(run func(ids []uuid.UUID)) *SupplyChainRepository_List_Call
- func (_c *SupplyChainRepository_List_Call) RunAndReturn(run func(ids []uuid.UUID) ([]models.SupplyChain, error)) *SupplyChainRepository_List_Call
- type SupplyChainRepository_PercentageOfVerifiedSupplyChains_Call
- func (_c *SupplyChainRepository_PercentageOfVerifiedSupplyChains_Call) Return(f float64, err error) *SupplyChainRepository_PercentageOfVerifiedSupplyChains_Call
- func (_c *SupplyChainRepository_PercentageOfVerifiedSupplyChains_Call) Run(run func(assetVersionName string, assetID uuid.UUID)) *SupplyChainRepository_PercentageOfVerifiedSupplyChains_Call
- func (_c *SupplyChainRepository_PercentageOfVerifiedSupplyChains_Call) RunAndReturn(run func(assetVersionName string, assetID uuid.UUID) (float64, error)) *SupplyChainRepository_PercentageOfVerifiedSupplyChains_Call
- type SupplyChainRepository_Read_Call
- func (_c *SupplyChainRepository_Read_Call) Return(supplyChain models.SupplyChain, err error) *SupplyChainRepository_Read_Call
- func (_c *SupplyChainRepository_Read_Call) Run(run func(id uuid.UUID)) *SupplyChainRepository_Read_Call
- func (_c *SupplyChainRepository_Read_Call) RunAndReturn(run func(id uuid.UUID) (models.SupplyChain, error)) *SupplyChainRepository_Read_Call
- type SupplyChainRepository_SaveBatch_Call
- func (_c *SupplyChainRepository_SaveBatch_Call) Return(err error) *SupplyChainRepository_SaveBatch_Call
- func (_c *SupplyChainRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.SupplyChain)) *SupplyChainRepository_SaveBatch_Call
- func (_c *SupplyChainRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.SupplyChain) error) *SupplyChainRepository_SaveBatch_Call
- type SupplyChainRepository_Save_Call
- func (_c *SupplyChainRepository_Save_Call) Return(err error) *SupplyChainRepository_Save_Call
- func (_c *SupplyChainRepository_Save_Call) Run(run func(tx core.DB, t *models.SupplyChain)) *SupplyChainRepository_Save_Call
- func (_c *SupplyChainRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *models.SupplyChain) error) *SupplyChainRepository_Save_Call
- type SupplyChainRepository_Transaction_Call
- func (_c *SupplyChainRepository_Transaction_Call) Return(err error) *SupplyChainRepository_Transaction_Call
- func (_c *SupplyChainRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *SupplyChainRepository_Transaction_Call
- func (_c *SupplyChainRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *SupplyChainRepository_Transaction_Call
- type SupplyChainRepository_Upsert_Call
- func (_c *SupplyChainRepository_Upsert_Call) Return(err error) *SupplyChainRepository_Upsert_Call
- func (_c *SupplyChainRepository_Upsert_Call) Run(run func(t *[]*models.SupplyChain, conflictingColumns []clause.Column, ...)) *SupplyChainRepository_Upsert_Call
- func (_c *SupplyChainRepository_Upsert_Call) RunAndReturn(...) *SupplyChainRepository_Upsert_Call
- type ThirdPartyIntegration
- func (_mock *ThirdPartyIntegration) CreateIssue(ctx context.Context, asset models.Asset, assetVersionName string, ...) error
- func (_mock *ThirdPartyIntegration) CreateLabels(ctx context.Context, asset models.Asset) error
- func (_m *ThirdPartyIntegration) EXPECT() *ThirdPartyIntegration_Expecter
- func (_mock *ThirdPartyIntegration) GetID() core.IntegrationID
- func (_mock *ThirdPartyIntegration) HandleEvent(event any) error
- func (_mock *ThirdPartyIntegration) HandleWebhook(ctx core.Context) error
- func (_mock *ThirdPartyIntegration) HasAccessToExternalEntityProvider(ctx core.Context, externalEntityProviderID string) (bool, error)
- func (_mock *ThirdPartyIntegration) ListGroups(ctx context.Context, userID string, providerID string) ([]models.Project, []core.Role, error)
- func (_mock *ThirdPartyIntegration) ListOrgs(ctx core.Context) ([]models.Org, error)
- func (_mock *ThirdPartyIntegration) ListProjects(ctx context.Context, userID string, providerID string, groupID string) ([]models.Asset, []core.Role, error)
- func (_mock *ThirdPartyIntegration) ListRepositories(ctx core.Context) ([]core.Repository, error)
- func (_mock *ThirdPartyIntegration) UpdateIssue(ctx context.Context, asset models.Asset, assetVersionSlug string, ...) error
- func (_mock *ThirdPartyIntegration) WantsToHandleWebhook(ctx core.Context) bool
- type ThirdPartyIntegration_CreateIssue_Call
- func (_c *ThirdPartyIntegration_CreateIssue_Call) Return(err error) *ThirdPartyIntegration_CreateIssue_Call
- func (_c *ThirdPartyIntegration_CreateIssue_Call) Run(...) *ThirdPartyIntegration_CreateIssue_Call
- func (_c *ThirdPartyIntegration_CreateIssue_Call) RunAndReturn(...) *ThirdPartyIntegration_CreateIssue_Call
- type ThirdPartyIntegration_CreateLabels_Call
- func (_c *ThirdPartyIntegration_CreateLabels_Call) Return(err error) *ThirdPartyIntegration_CreateLabels_Call
- func (_c *ThirdPartyIntegration_CreateLabels_Call) Run(run func(ctx context.Context, asset models.Asset)) *ThirdPartyIntegration_CreateLabels_Call
- func (_c *ThirdPartyIntegration_CreateLabels_Call) RunAndReturn(run func(ctx context.Context, asset models.Asset) error) *ThirdPartyIntegration_CreateLabels_Call
- type ThirdPartyIntegration_Expecter
- func (_e *ThirdPartyIntegration_Expecter) CreateIssue(ctx interface{}, asset interface{}, assetVersionName interface{}, ...) *ThirdPartyIntegration_CreateIssue_Call
- func (_e *ThirdPartyIntegration_Expecter) CreateLabels(ctx interface{}, asset interface{}) *ThirdPartyIntegration_CreateLabels_Call
- func (_e *ThirdPartyIntegration_Expecter) GetID() *ThirdPartyIntegration_GetID_Call
- func (_e *ThirdPartyIntegration_Expecter) HandleEvent(event interface{}) *ThirdPartyIntegration_HandleEvent_Call
- func (_e *ThirdPartyIntegration_Expecter) HandleWebhook(ctx interface{}) *ThirdPartyIntegration_HandleWebhook_Call
- func (_e *ThirdPartyIntegration_Expecter) HasAccessToExternalEntityProvider(ctx interface{}, externalEntityProviderID interface{}) *ThirdPartyIntegration_HasAccessToExternalEntityProvider_Call
- func (_e *ThirdPartyIntegration_Expecter) ListGroups(ctx interface{}, userID interface{}, providerID interface{}) *ThirdPartyIntegration_ListGroups_Call
- func (_e *ThirdPartyIntegration_Expecter) ListOrgs(ctx interface{}) *ThirdPartyIntegration_ListOrgs_Call
- func (_e *ThirdPartyIntegration_Expecter) ListProjects(ctx interface{}, userID interface{}, providerID interface{}, ...) *ThirdPartyIntegration_ListProjects_Call
- func (_e *ThirdPartyIntegration_Expecter) ListRepositories(ctx interface{}) *ThirdPartyIntegration_ListRepositories_Call
- func (_e *ThirdPartyIntegration_Expecter) UpdateIssue(ctx interface{}, asset interface{}, assetVersionSlug interface{}, ...) *ThirdPartyIntegration_UpdateIssue_Call
- func (_e *ThirdPartyIntegration_Expecter) WantsToHandleWebhook(ctx interface{}) *ThirdPartyIntegration_WantsToHandleWebhook_Call
- type ThirdPartyIntegration_GetID_Call
- func (_c *ThirdPartyIntegration_GetID_Call) Return(integrationID core.IntegrationID) *ThirdPartyIntegration_GetID_Call
- func (_c *ThirdPartyIntegration_GetID_Call) Run(run func()) *ThirdPartyIntegration_GetID_Call
- func (_c *ThirdPartyIntegration_GetID_Call) RunAndReturn(run func() core.IntegrationID) *ThirdPartyIntegration_GetID_Call
- type ThirdPartyIntegration_HandleEvent_Call
- func (_c *ThirdPartyIntegration_HandleEvent_Call) Return(err error) *ThirdPartyIntegration_HandleEvent_Call
- func (_c *ThirdPartyIntegration_HandleEvent_Call) Run(run func(event any)) *ThirdPartyIntegration_HandleEvent_Call
- func (_c *ThirdPartyIntegration_HandleEvent_Call) RunAndReturn(run func(event any) error) *ThirdPartyIntegration_HandleEvent_Call
- type ThirdPartyIntegration_HandleWebhook_Call
- func (_c *ThirdPartyIntegration_HandleWebhook_Call) Return(err error) *ThirdPartyIntegration_HandleWebhook_Call
- func (_c *ThirdPartyIntegration_HandleWebhook_Call) Run(run func(ctx core.Context)) *ThirdPartyIntegration_HandleWebhook_Call
- func (_c *ThirdPartyIntegration_HandleWebhook_Call) RunAndReturn(run func(ctx core.Context) error) *ThirdPartyIntegration_HandleWebhook_Call
- type ThirdPartyIntegration_HasAccessToExternalEntityProvider_Call
- func (_c *ThirdPartyIntegration_HasAccessToExternalEntityProvider_Call) Return(b bool, err error) *ThirdPartyIntegration_HasAccessToExternalEntityProvider_Call
- func (_c *ThirdPartyIntegration_HasAccessToExternalEntityProvider_Call) Run(run func(ctx core.Context, externalEntityProviderID string)) *ThirdPartyIntegration_HasAccessToExternalEntityProvider_Call
- func (_c *ThirdPartyIntegration_HasAccessToExternalEntityProvider_Call) RunAndReturn(run func(ctx core.Context, externalEntityProviderID string) (bool, error)) *ThirdPartyIntegration_HasAccessToExternalEntityProvider_Call
- type ThirdPartyIntegration_ListGroups_Call
- func (_c *ThirdPartyIntegration_ListGroups_Call) Return(projects []models.Project, roles []core.Role, err error) *ThirdPartyIntegration_ListGroups_Call
- func (_c *ThirdPartyIntegration_ListGroups_Call) Run(run func(ctx context.Context, userID string, providerID string)) *ThirdPartyIntegration_ListGroups_Call
- func (_c *ThirdPartyIntegration_ListGroups_Call) RunAndReturn(...) *ThirdPartyIntegration_ListGroups_Call
- type ThirdPartyIntegration_ListOrgs_Call
- func (_c *ThirdPartyIntegration_ListOrgs_Call) Return(orgs []models.Org, err error) *ThirdPartyIntegration_ListOrgs_Call
- func (_c *ThirdPartyIntegration_ListOrgs_Call) Run(run func(ctx core.Context)) *ThirdPartyIntegration_ListOrgs_Call
- func (_c *ThirdPartyIntegration_ListOrgs_Call) RunAndReturn(run func(ctx core.Context) ([]models.Org, error)) *ThirdPartyIntegration_ListOrgs_Call
- type ThirdPartyIntegration_ListProjects_Call
- func (_c *ThirdPartyIntegration_ListProjects_Call) Return(assets []models.Asset, roles []core.Role, err error) *ThirdPartyIntegration_ListProjects_Call
- func (_c *ThirdPartyIntegration_ListProjects_Call) Run(...) *ThirdPartyIntegration_ListProjects_Call
- func (_c *ThirdPartyIntegration_ListProjects_Call) RunAndReturn(...) *ThirdPartyIntegration_ListProjects_Call
- type ThirdPartyIntegration_ListRepositories_Call
- func (_c *ThirdPartyIntegration_ListRepositories_Call) Return(repositorys []core.Repository, err error) *ThirdPartyIntegration_ListRepositories_Call
- func (_c *ThirdPartyIntegration_ListRepositories_Call) Run(run func(ctx core.Context)) *ThirdPartyIntegration_ListRepositories_Call
- func (_c *ThirdPartyIntegration_ListRepositories_Call) RunAndReturn(run func(ctx core.Context) ([]core.Repository, error)) *ThirdPartyIntegration_ListRepositories_Call
- type ThirdPartyIntegration_UpdateIssue_Call
- func (_c *ThirdPartyIntegration_UpdateIssue_Call) Return(err error) *ThirdPartyIntegration_UpdateIssue_Call
- func (_c *ThirdPartyIntegration_UpdateIssue_Call) Run(...) *ThirdPartyIntegration_UpdateIssue_Call
- func (_c *ThirdPartyIntegration_UpdateIssue_Call) RunAndReturn(...) *ThirdPartyIntegration_UpdateIssue_Call
- type ThirdPartyIntegration_WantsToHandleWebhook_Call
- func (_c *ThirdPartyIntegration_WantsToHandleWebhook_Call) Return(b bool) *ThirdPartyIntegration_WantsToHandleWebhook_Call
- func (_c *ThirdPartyIntegration_WantsToHandleWebhook_Call) Run(run func(ctx core.Context)) *ThirdPartyIntegration_WantsToHandleWebhook_Call
- func (_c *ThirdPartyIntegration_WantsToHandleWebhook_Call) RunAndReturn(run func(ctx core.Context) bool) *ThirdPartyIntegration_WantsToHandleWebhook_Call
- type Verifier
- type Verifier_Expecter
- type Verifier_VerifyRequestSignature_Call
- func (_c *Verifier_VerifyRequestSignature_Call) Return(s string, s1 string, err error) *Verifier_VerifyRequestSignature_Call
- func (_c *Verifier_VerifyRequestSignature_Call) Run(run func(req *http.Request)) *Verifier_VerifyRequestSignature_Call
- func (_c *Verifier_VerifyRequestSignature_Call) RunAndReturn(run func(req *http.Request) (string, string, error)) *Verifier_VerifyRequestSignature_Call
- type VulnEventRepository
- func (_m *VulnEventRepository) EXPECT() *VulnEventRepository_Expecter
- func (_mock *VulnEventRepository) ReadAssetEventsByVulnID(vulnID string, vulnType models.VulnType) ([]models.VulnEventDetail, error)
- func (_mock *VulnEventRepository) ReadEventsByAssetIDAndAssetVersionName(assetID uuid.UUID, assetVersionName string, pageInfo core.PageInfo, ...) (core.Paged[models.VulnEventDetail], error)
- func (_mock *VulnEventRepository) Save(db core.DB, event *models.VulnEvent) error
- func (_mock *VulnEventRepository) SaveBatch(db core.DB, events []models.VulnEvent) error
- type VulnEventRepository_Expecter
- func (_e *VulnEventRepository_Expecter) ReadAssetEventsByVulnID(vulnID interface{}, vulnType interface{}) *VulnEventRepository_ReadAssetEventsByVulnID_Call
- func (_e *VulnEventRepository_Expecter) ReadEventsByAssetIDAndAssetVersionName(assetID interface{}, assetVersionName interface{}, pageInfo interface{}, ...) *VulnEventRepository_ReadEventsByAssetIDAndAssetVersionName_Call
- func (_e *VulnEventRepository_Expecter) Save(db interface{}, event interface{}) *VulnEventRepository_Save_Call
- func (_e *VulnEventRepository_Expecter) SaveBatch(db interface{}, events interface{}) *VulnEventRepository_SaveBatch_Call
- type VulnEventRepository_ReadAssetEventsByVulnID_Call
- func (_c *VulnEventRepository_ReadAssetEventsByVulnID_Call) Return(vulnEventDetails []models.VulnEventDetail, err error) *VulnEventRepository_ReadAssetEventsByVulnID_Call
- func (_c *VulnEventRepository_ReadAssetEventsByVulnID_Call) Run(run func(vulnID string, vulnType models.VulnType)) *VulnEventRepository_ReadAssetEventsByVulnID_Call
- func (_c *VulnEventRepository_ReadAssetEventsByVulnID_Call) RunAndReturn(...) *VulnEventRepository_ReadAssetEventsByVulnID_Call
- type VulnEventRepository_ReadEventsByAssetIDAndAssetVersionName_Call
- func (_c *VulnEventRepository_ReadEventsByAssetIDAndAssetVersionName_Call) Return(paged core.Paged[models.VulnEventDetail], err error) *VulnEventRepository_ReadEventsByAssetIDAndAssetVersionName_Call
- func (_c *VulnEventRepository_ReadEventsByAssetIDAndAssetVersionName_Call) Run(...) *VulnEventRepository_ReadEventsByAssetIDAndAssetVersionName_Call
- func (_c *VulnEventRepository_ReadEventsByAssetIDAndAssetVersionName_Call) RunAndReturn(...) *VulnEventRepository_ReadEventsByAssetIDAndAssetVersionName_Call
- type VulnEventRepository_SaveBatch_Call
- func (_c *VulnEventRepository_SaveBatch_Call) Return(err error) *VulnEventRepository_SaveBatch_Call
- func (_c *VulnEventRepository_SaveBatch_Call) Run(run func(db core.DB, events []models.VulnEvent)) *VulnEventRepository_SaveBatch_Call
- func (_c *VulnEventRepository_SaveBatch_Call) RunAndReturn(run func(db core.DB, events []models.VulnEvent) error) *VulnEventRepository_SaveBatch_Call
- type VulnEventRepository_Save_Call
- func (_c *VulnEventRepository_Save_Call) Return(err error) *VulnEventRepository_Save_Call
- func (_c *VulnEventRepository_Save_Call) Run(run func(db core.DB, event *models.VulnEvent)) *VulnEventRepository_Save_Call
- func (_c *VulnEventRepository_Save_Call) RunAndReturn(run func(db core.DB, event *models.VulnEvent) error) *VulnEventRepository_Save_Call
- type VulnRepository
- func (_mock *VulnRepository) ApplyAndSave(tx core.DB, dependencyVuln models.Vuln, vulnEvent *models.VulnEvent) error
- func (_m *VulnRepository) EXPECT() *VulnRepository_Expecter
- func (_mock *VulnRepository) FindByTicketID(tx core.DB, ticketID string) (models.Vuln, error)
- func (_mock *VulnRepository) GetOrgFromVuln(vuln models.Vuln) (models.Org, error)
- func (_mock *VulnRepository) Save(db core.DB, vuln *models.Vuln) error
- func (_mock *VulnRepository) Transaction(fn func(tx core.DB) error) error
- type VulnRepository_ApplyAndSave_Call
- func (_c *VulnRepository_ApplyAndSave_Call) Return(err error) *VulnRepository_ApplyAndSave_Call
- func (_c *VulnRepository_ApplyAndSave_Call) Run(run func(tx core.DB, dependencyVuln models.Vuln, vulnEvent *models.VulnEvent)) *VulnRepository_ApplyAndSave_Call
- func (_c *VulnRepository_ApplyAndSave_Call) RunAndReturn(...) *VulnRepository_ApplyAndSave_Call
- type VulnRepository_Expecter
- func (_e *VulnRepository_Expecter) ApplyAndSave(tx interface{}, dependencyVuln interface{}, vulnEvent interface{}) *VulnRepository_ApplyAndSave_Call
- func (_e *VulnRepository_Expecter) FindByTicketID(tx interface{}, ticketID interface{}) *VulnRepository_FindByTicketID_Call
- func (_e *VulnRepository_Expecter) GetOrgFromVuln(vuln interface{}) *VulnRepository_GetOrgFromVuln_Call
- func (_e *VulnRepository_Expecter) Save(db interface{}, vuln interface{}) *VulnRepository_Save_Call
- func (_e *VulnRepository_Expecter) Transaction(fn interface{}) *VulnRepository_Transaction_Call
- type VulnRepository_FindByTicketID_Call
- func (_c *VulnRepository_FindByTicketID_Call) Return(vuln models.Vuln, err error) *VulnRepository_FindByTicketID_Call
- func (_c *VulnRepository_FindByTicketID_Call) Run(run func(tx core.DB, ticketID string)) *VulnRepository_FindByTicketID_Call
- func (_c *VulnRepository_FindByTicketID_Call) RunAndReturn(run func(tx core.DB, ticketID string) (models.Vuln, error)) *VulnRepository_FindByTicketID_Call
- type VulnRepository_GetOrgFromVuln_Call
- func (_c *VulnRepository_GetOrgFromVuln_Call) Return(org models.Org, err error) *VulnRepository_GetOrgFromVuln_Call
- func (_c *VulnRepository_GetOrgFromVuln_Call) Run(run func(vuln models.Vuln)) *VulnRepository_GetOrgFromVuln_Call
- func (_c *VulnRepository_GetOrgFromVuln_Call) RunAndReturn(run func(vuln models.Vuln) (models.Org, error)) *VulnRepository_GetOrgFromVuln_Call
- type VulnRepository_Save_Call
- func (_c *VulnRepository_Save_Call) Return(err error) *VulnRepository_Save_Call
- func (_c *VulnRepository_Save_Call) Run(run func(db core.DB, vuln *models.Vuln)) *VulnRepository_Save_Call
- func (_c *VulnRepository_Save_Call) RunAndReturn(run func(db core.DB, vuln *models.Vuln) error) *VulnRepository_Save_Call
- type VulnRepository_Transaction_Call
- func (_c *VulnRepository_Transaction_Call) Return(err error) *VulnRepository_Transaction_Call
- func (_c *VulnRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *VulnRepository_Transaction_Call
- func (_c *VulnRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *VulnRepository_Transaction_Call
- type WebhookIntegrationRepository
- func (_mock *WebhookIntegrationRepository) Delete(tx core.DB, id uuid.UUID) error
- func (_m *WebhookIntegrationRepository) EXPECT() *WebhookIntegrationRepository_Expecter
- func (_mock *WebhookIntegrationRepository) FindByOrgIDAndProjectID(orgID uuid.UUID, projectID uuid.UUID) ([]models.WebhookIntegration, error)
- func (_mock *WebhookIntegrationRepository) GetClientByIntegrationID(integrationID uuid.UUID) (models.WebhookIntegration, error)
- func (_mock *WebhookIntegrationRepository) GetProjectWebhooks(orgID uuid.UUID, projectID uuid.UUID) ([]models.WebhookIntegration, error)
- func (_mock *WebhookIntegrationRepository) Read(id uuid.UUID) (models.WebhookIntegration, error)
- func (_mock *WebhookIntegrationRepository) Save(tx core.DB, model *models.WebhookIntegration) error
- type WebhookIntegrationRepository_Delete_Call
- func (_c *WebhookIntegrationRepository_Delete_Call) Return(err error) *WebhookIntegrationRepository_Delete_Call
- func (_c *WebhookIntegrationRepository_Delete_Call) Run(run func(tx core.DB, id uuid.UUID)) *WebhookIntegrationRepository_Delete_Call
- func (_c *WebhookIntegrationRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *WebhookIntegrationRepository_Delete_Call
- type WebhookIntegrationRepository_Expecter
- func (_e *WebhookIntegrationRepository_Expecter) Delete(tx interface{}, id interface{}) *WebhookIntegrationRepository_Delete_Call
- func (_e *WebhookIntegrationRepository_Expecter) FindByOrgIDAndProjectID(orgID interface{}, projectID interface{}) *WebhookIntegrationRepository_FindByOrgIDAndProjectID_Call
- func (_e *WebhookIntegrationRepository_Expecter) GetClientByIntegrationID(integrationID interface{}) *WebhookIntegrationRepository_GetClientByIntegrationID_Call
- func (_e *WebhookIntegrationRepository_Expecter) GetProjectWebhooks(orgID interface{}, projectID interface{}) *WebhookIntegrationRepository_GetProjectWebhooks_Call
- func (_e *WebhookIntegrationRepository_Expecter) Read(id interface{}) *WebhookIntegrationRepository_Read_Call
- func (_e *WebhookIntegrationRepository_Expecter) Save(tx interface{}, model interface{}) *WebhookIntegrationRepository_Save_Call
- type WebhookIntegrationRepository_FindByOrgIDAndProjectID_Call
- func (_c *WebhookIntegrationRepository_FindByOrgIDAndProjectID_Call) Return(webhookIntegrations []models.WebhookIntegration, err error) *WebhookIntegrationRepository_FindByOrgIDAndProjectID_Call
- func (_c *WebhookIntegrationRepository_FindByOrgIDAndProjectID_Call) Run(run func(orgID uuid.UUID, projectID uuid.UUID)) *WebhookIntegrationRepository_FindByOrgIDAndProjectID_Call
- func (_c *WebhookIntegrationRepository_FindByOrgIDAndProjectID_Call) RunAndReturn(...) *WebhookIntegrationRepository_FindByOrgIDAndProjectID_Call
- type WebhookIntegrationRepository_GetClientByIntegrationID_Call
- func (_c *WebhookIntegrationRepository_GetClientByIntegrationID_Call) Return(webhookIntegration models.WebhookIntegration, err error) *WebhookIntegrationRepository_GetClientByIntegrationID_Call
- func (_c *WebhookIntegrationRepository_GetClientByIntegrationID_Call) Run(run func(integrationID uuid.UUID)) *WebhookIntegrationRepository_GetClientByIntegrationID_Call
- func (_c *WebhookIntegrationRepository_GetClientByIntegrationID_Call) RunAndReturn(run func(integrationID uuid.UUID) (models.WebhookIntegration, error)) *WebhookIntegrationRepository_GetClientByIntegrationID_Call
- type WebhookIntegrationRepository_GetProjectWebhooks_Call
- func (_c *WebhookIntegrationRepository_GetProjectWebhooks_Call) Return(webhookIntegrations []models.WebhookIntegration, err error) *WebhookIntegrationRepository_GetProjectWebhooks_Call
- func (_c *WebhookIntegrationRepository_GetProjectWebhooks_Call) Run(run func(orgID uuid.UUID, projectID uuid.UUID)) *WebhookIntegrationRepository_GetProjectWebhooks_Call
- func (_c *WebhookIntegrationRepository_GetProjectWebhooks_Call) RunAndReturn(...) *WebhookIntegrationRepository_GetProjectWebhooks_Call
- type WebhookIntegrationRepository_Read_Call
- func (_c *WebhookIntegrationRepository_Read_Call) Return(webhookIntegration models.WebhookIntegration, err error) *WebhookIntegrationRepository_Read_Call
- func (_c *WebhookIntegrationRepository_Read_Call) Run(run func(id uuid.UUID)) *WebhookIntegrationRepository_Read_Call
- func (_c *WebhookIntegrationRepository_Read_Call) RunAndReturn(run func(id uuid.UUID) (models.WebhookIntegration, error)) *WebhookIntegrationRepository_Read_Call
- type WebhookIntegrationRepository_Save_Call
- func (_c *WebhookIntegrationRepository_Save_Call) Return(err error) *WebhookIntegrationRepository_Save_Call
- func (_c *WebhookIntegrationRepository_Save_Call) Run(run func(tx core.DB, model *models.WebhookIntegration)) *WebhookIntegrationRepository_Save_Call
- func (_c *WebhookIntegrationRepository_Save_Call) RunAndReturn(run func(tx core.DB, model *models.WebhookIntegration) error) *WebhookIntegrationRepository_Save_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessControl ¶ added in v0.17.2
AccessControl is an autogenerated mock type for the AccessControl type
func NewAccessControl ¶ added in v0.17.2
func NewAccessControl(t interface { mock.TestingT Cleanup(func()) }) *AccessControl
NewAccessControl creates a new instance of AccessControl. 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 (*AccessControl) AllowRole ¶ added in v0.17.2
func (_mock *AccessControl) AllowRole(role core.Role, object core.Object, action []core.Action) error
AllowRole provides a mock function for the type AccessControl
func (*AccessControl) AllowRoleInProject ¶ added in v0.17.2
func (_mock *AccessControl) AllowRoleInProject(project string, role core.Role, object core.Object, action []core.Action) error
AllowRoleInProject provides a mock function for the type AccessControl
func (*AccessControl) EXPECT ¶ added in v0.17.2
func (_m *AccessControl) EXPECT() *AccessControl_Expecter
func (*AccessControl) GetAllMembersOfOrganization ¶ added in v0.17.2
func (_mock *AccessControl) GetAllMembersOfOrganization() ([]string, error)
GetAllMembersOfOrganization provides a mock function for the type AccessControl
func (*AccessControl) GetAllMembersOfProject ¶ added in v0.17.2
func (_mock *AccessControl) GetAllMembersOfProject(projectID string) ([]string, error)
GetAllMembersOfProject provides a mock function for the type AccessControl
func (*AccessControl) GetAllProjectsForUser ¶ added in v0.17.2
func (_mock *AccessControl) GetAllProjectsForUser(user string) ([]string, error)
GetAllProjectsForUser provides a mock function for the type AccessControl
func (*AccessControl) GetAllRoles ¶ added in v0.17.2
func (_mock *AccessControl) GetAllRoles(user string) []string
GetAllRoles provides a mock function for the type AccessControl
func (*AccessControl) GetDomainRole ¶ added in v0.17.2
func (_mock *AccessControl) GetDomainRole(user string) (core.Role, error)
GetDomainRole provides a mock function for the type AccessControl
func (*AccessControl) GetExternalEntityProviderID ¶ added in v0.17.2
func (_mock *AccessControl) GetExternalEntityProviderID() *string
GetExternalEntityProviderID provides a mock function for the type AccessControl
func (*AccessControl) GetOwnerOfOrganization ¶ added in v0.17.2
func (_mock *AccessControl) GetOwnerOfOrganization() (string, error)
GetOwnerOfOrganization provides a mock function for the type AccessControl
func (*AccessControl) GetProjectRole ¶ added in v0.17.2
GetProjectRole provides a mock function for the type AccessControl
func (*AccessControl) GrantRole ¶ added in v0.17.2
func (_mock *AccessControl) GrantRole(subject string, role core.Role) error
GrantRole provides a mock function for the type AccessControl
func (*AccessControl) GrantRoleInProject ¶ added in v0.17.2
func (_mock *AccessControl) GrantRoleInProject(subject string, role core.Role, project string) error
GrantRoleInProject provides a mock function for the type AccessControl
func (*AccessControl) HasAccess ¶ added in v0.17.2
func (_mock *AccessControl) HasAccess(subject string) (bool, error)
HasAccess provides a mock function for the type AccessControl
func (*AccessControl) InheritProjectRole ¶ added in v0.17.2
func (_mock *AccessControl) InheritProjectRole(roleWhichGetsPermissions core.Role, roleWhichProvidesPermissions core.Role, project string) error
InheritProjectRole provides a mock function for the type AccessControl
func (*AccessControl) InheritProjectRolesAcrossProjects ¶ added in v0.17.2
func (_mock *AccessControl) InheritProjectRolesAcrossProjects(roleWhichGetsPermissions core.ProjectRole, roleWhichProvidesPermissions core.ProjectRole) error
InheritProjectRolesAcrossProjects provides a mock function for the type AccessControl
func (*AccessControl) InheritRole ¶ added in v0.17.2
func (_mock *AccessControl) InheritRole(roleWhichGetsPermissions core.Role, roleWhichProvidesPermissions core.Role) error
InheritRole provides a mock function for the type AccessControl
func (*AccessControl) IsAllowed ¶ added in v0.17.2
func (_mock *AccessControl) IsAllowed(subject string, object core.Object, action core.Action) (bool, error)
IsAllowed provides a mock function for the type AccessControl
func (*AccessControl) IsAllowedInProject ¶ added in v0.17.2
func (_mock *AccessControl) IsAllowedInProject(project *models.Project, user string, object core.Object, action core.Action) (bool, error)
IsAllowedInProject provides a mock function for the type AccessControl
func (*AccessControl) LinkDomainAndProjectRole ¶ added in v0.17.2
func (_mock *AccessControl) LinkDomainAndProjectRole(domainRoleWhichGetsPermission core.Role, projectRoleWhichProvidesPermissions core.Role, project string) error
LinkDomainAndProjectRole provides a mock function for the type AccessControl
func (*AccessControl) RevokeAllRolesInProjectForUser ¶ added in v0.17.2
func (_mock *AccessControl) RevokeAllRolesInProjectForUser(user string, project string) error
RevokeAllRolesInProjectForUser provides a mock function for the type AccessControl
func (*AccessControl) RevokeRole ¶ added in v0.17.2
func (_mock *AccessControl) RevokeRole(subject string, role core.Role) error
RevokeRole provides a mock function for the type AccessControl
func (*AccessControl) RevokeRoleInProject ¶ added in v0.17.2
func (_mock *AccessControl) RevokeRoleInProject(subject string, role core.Role, project string) error
RevokeRoleInProject provides a mock function for the type AccessControl
type AccessControl_AllowRoleInProject_Call ¶ added in v0.17.2
AccessControl_AllowRoleInProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllowRoleInProject'
func (*AccessControl_AllowRoleInProject_Call) Return ¶ added in v0.17.2
func (_c *AccessControl_AllowRoleInProject_Call) Return(err error) *AccessControl_AllowRoleInProject_Call
func (*AccessControl_AllowRoleInProject_Call) Run ¶ added in v0.17.2
func (_c *AccessControl_AllowRoleInProject_Call) Run(run func(project string, role core.Role, object core.Object, action []core.Action)) *AccessControl_AllowRoleInProject_Call
func (*AccessControl_AllowRoleInProject_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AccessControl_AllowRoleInProject_Call) RunAndReturn(run func(project string, role core.Role, object core.Object, action []core.Action) error) *AccessControl_AllowRoleInProject_Call
type AccessControl_AllowRole_Call ¶ added in v0.17.2
AccessControl_AllowRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllowRole'
func (*AccessControl_AllowRole_Call) Return ¶ added in v0.17.2
func (_c *AccessControl_AllowRole_Call) Return(err error) *AccessControl_AllowRole_Call
func (*AccessControl_AllowRole_Call) Run ¶ added in v0.17.2
func (_c *AccessControl_AllowRole_Call) Run(run func(role core.Role, object core.Object, action []core.Action)) *AccessControl_AllowRole_Call
func (*AccessControl_AllowRole_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AccessControl_AllowRole_Call) RunAndReturn(run func(role core.Role, object core.Object, action []core.Action) error) *AccessControl_AllowRole_Call
type AccessControl_Expecter ¶ added in v0.17.2
type AccessControl_Expecter struct {
// contains filtered or unexported fields
}
func (*AccessControl_Expecter) AllowRole ¶ added in v0.17.2
func (_e *AccessControl_Expecter) AllowRole(role interface{}, object interface{}, action interface{}) *AccessControl_AllowRole_Call
AllowRole is a helper method to define mock.On call
- role core.Role
- object core.Object
- action []core.Action
func (*AccessControl_Expecter) AllowRoleInProject ¶ added in v0.17.2
func (_e *AccessControl_Expecter) AllowRoleInProject(project interface{}, role interface{}, object interface{}, action interface{}) *AccessControl_AllowRoleInProject_Call
AllowRoleInProject is a helper method to define mock.On call
- project string
- role core.Role
- object core.Object
- action []core.Action
func (*AccessControl_Expecter) GetAllMembersOfOrganization ¶ added in v0.17.2
func (_e *AccessControl_Expecter) GetAllMembersOfOrganization() *AccessControl_GetAllMembersOfOrganization_Call
GetAllMembersOfOrganization is a helper method to define mock.On call
func (*AccessControl_Expecter) GetAllMembersOfProject ¶ added in v0.17.2
func (_e *AccessControl_Expecter) GetAllMembersOfProject(projectID interface{}) *AccessControl_GetAllMembersOfProject_Call
GetAllMembersOfProject is a helper method to define mock.On call
- projectID string
func (*AccessControl_Expecter) GetAllProjectsForUser ¶ added in v0.17.2
func (_e *AccessControl_Expecter) GetAllProjectsForUser(user interface{}) *AccessControl_GetAllProjectsForUser_Call
GetAllProjectsForUser is a helper method to define mock.On call
- user string
func (*AccessControl_Expecter) GetAllRoles ¶ added in v0.17.2
func (_e *AccessControl_Expecter) GetAllRoles(user interface{}) *AccessControl_GetAllRoles_Call
GetAllRoles is a helper method to define mock.On call
- user string
func (*AccessControl_Expecter) GetDomainRole ¶ added in v0.17.2
func (_e *AccessControl_Expecter) GetDomainRole(user interface{}) *AccessControl_GetDomainRole_Call
GetDomainRole is a helper method to define mock.On call
- user string
func (*AccessControl_Expecter) GetExternalEntityProviderID ¶ added in v0.17.2
func (_e *AccessControl_Expecter) GetExternalEntityProviderID() *AccessControl_GetExternalEntityProviderID_Call
GetExternalEntityProviderID is a helper method to define mock.On call
func (*AccessControl_Expecter) GetOwnerOfOrganization ¶ added in v0.17.2
func (_e *AccessControl_Expecter) GetOwnerOfOrganization() *AccessControl_GetOwnerOfOrganization_Call
GetOwnerOfOrganization is a helper method to define mock.On call
func (*AccessControl_Expecter) GetProjectRole ¶ added in v0.17.2
func (_e *AccessControl_Expecter) GetProjectRole(user interface{}, project interface{}) *AccessControl_GetProjectRole_Call
GetProjectRole is a helper method to define mock.On call
- user string
- project string
func (*AccessControl_Expecter) GrantRole ¶ added in v0.17.2
func (_e *AccessControl_Expecter) GrantRole(subject interface{}, role interface{}) *AccessControl_GrantRole_Call
GrantRole is a helper method to define mock.On call
- subject string
- role core.Role
func (*AccessControl_Expecter) GrantRoleInProject ¶ added in v0.17.2
func (_e *AccessControl_Expecter) GrantRoleInProject(subject interface{}, role interface{}, project interface{}) *AccessControl_GrantRoleInProject_Call
GrantRoleInProject is a helper method to define mock.On call
- subject string
- role core.Role
- project string
func (*AccessControl_Expecter) HasAccess ¶ added in v0.17.2
func (_e *AccessControl_Expecter) HasAccess(subject interface{}) *AccessControl_HasAccess_Call
HasAccess is a helper method to define mock.On call
- subject string
func (*AccessControl_Expecter) InheritProjectRole ¶ added in v0.17.2
func (_e *AccessControl_Expecter) InheritProjectRole(roleWhichGetsPermissions interface{}, roleWhichProvidesPermissions interface{}, project interface{}) *AccessControl_InheritProjectRole_Call
InheritProjectRole is a helper method to define mock.On call
- roleWhichGetsPermissions core.Role
- roleWhichProvidesPermissions core.Role
- project string
func (*AccessControl_Expecter) InheritProjectRolesAcrossProjects ¶ added in v0.17.2
func (_e *AccessControl_Expecter) InheritProjectRolesAcrossProjects(roleWhichGetsPermissions interface{}, roleWhichProvidesPermissions interface{}) *AccessControl_InheritProjectRolesAcrossProjects_Call
InheritProjectRolesAcrossProjects is a helper method to define mock.On call
- roleWhichGetsPermissions core.ProjectRole
- roleWhichProvidesPermissions core.ProjectRole
func (*AccessControl_Expecter) InheritRole ¶ added in v0.17.2
func (_e *AccessControl_Expecter) InheritRole(roleWhichGetsPermissions interface{}, roleWhichProvidesPermissions interface{}) *AccessControl_InheritRole_Call
InheritRole is a helper method to define mock.On call
- roleWhichGetsPermissions core.Role
- roleWhichProvidesPermissions core.Role
func (*AccessControl_Expecter) IsAllowed ¶ added in v0.17.2
func (_e *AccessControl_Expecter) IsAllowed(subject interface{}, object interface{}, action interface{}) *AccessControl_IsAllowed_Call
IsAllowed is a helper method to define mock.On call
- subject string
- object core.Object
- action core.Action
func (*AccessControl_Expecter) IsAllowedInProject ¶ added in v0.17.2
func (_e *AccessControl_Expecter) IsAllowedInProject(project interface{}, user interface{}, object interface{}, action interface{}) *AccessControl_IsAllowedInProject_Call
IsAllowedInProject is a helper method to define mock.On call
- project *models.Project
- user string
- object core.Object
- action core.Action
func (*AccessControl_Expecter) LinkDomainAndProjectRole ¶ added in v0.17.2
func (_e *AccessControl_Expecter) LinkDomainAndProjectRole(domainRoleWhichGetsPermission interface{}, projectRoleWhichProvidesPermissions interface{}, project interface{}) *AccessControl_LinkDomainAndProjectRole_Call
LinkDomainAndProjectRole is a helper method to define mock.On call
- domainRoleWhichGetsPermission core.Role
- projectRoleWhichProvidesPermissions core.Role
- project string
func (*AccessControl_Expecter) RevokeAllRolesInProjectForUser ¶ added in v0.17.2
func (_e *AccessControl_Expecter) RevokeAllRolesInProjectForUser(user interface{}, project interface{}) *AccessControl_RevokeAllRolesInProjectForUser_Call
RevokeAllRolesInProjectForUser is a helper method to define mock.On call
- user string
- project string
func (*AccessControl_Expecter) RevokeRole ¶ added in v0.17.2
func (_e *AccessControl_Expecter) RevokeRole(subject interface{}, role interface{}) *AccessControl_RevokeRole_Call
RevokeRole is a helper method to define mock.On call
- subject string
- role core.Role
func (*AccessControl_Expecter) RevokeRoleInProject ¶ added in v0.17.2
func (_e *AccessControl_Expecter) RevokeRoleInProject(subject interface{}, role interface{}, project interface{}) *AccessControl_RevokeRoleInProject_Call
RevokeRoleInProject is a helper method to define mock.On call
- subject string
- role core.Role
- project string
type AccessControl_GetAllMembersOfOrganization_Call ¶ added in v0.17.2
AccessControl_GetAllMembersOfOrganization_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllMembersOfOrganization'
func (*AccessControl_GetAllMembersOfOrganization_Call) Return ¶ added in v0.17.2
func (_c *AccessControl_GetAllMembersOfOrganization_Call) Return(strings []string, err error) *AccessControl_GetAllMembersOfOrganization_Call
func (*AccessControl_GetAllMembersOfOrganization_Call) Run ¶ added in v0.17.2
func (_c *AccessControl_GetAllMembersOfOrganization_Call) Run(run func()) *AccessControl_GetAllMembersOfOrganization_Call
func (*AccessControl_GetAllMembersOfOrganization_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AccessControl_GetAllMembersOfOrganization_Call) RunAndReturn(run func() ([]string, error)) *AccessControl_GetAllMembersOfOrganization_Call
type AccessControl_GetAllMembersOfProject_Call ¶ added in v0.17.2
AccessControl_GetAllMembersOfProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllMembersOfProject'
func (*AccessControl_GetAllMembersOfProject_Call) Return ¶ added in v0.17.2
func (_c *AccessControl_GetAllMembersOfProject_Call) Return(strings []string, err error) *AccessControl_GetAllMembersOfProject_Call
func (*AccessControl_GetAllMembersOfProject_Call) Run ¶ added in v0.17.2
func (_c *AccessControl_GetAllMembersOfProject_Call) Run(run func(projectID string)) *AccessControl_GetAllMembersOfProject_Call
func (*AccessControl_GetAllMembersOfProject_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AccessControl_GetAllMembersOfProject_Call) RunAndReturn(run func(projectID string) ([]string, error)) *AccessControl_GetAllMembersOfProject_Call
type AccessControl_GetAllProjectsForUser_Call ¶ added in v0.17.2
AccessControl_GetAllProjectsForUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllProjectsForUser'
func (*AccessControl_GetAllProjectsForUser_Call) Return ¶ added in v0.17.2
func (_c *AccessControl_GetAllProjectsForUser_Call) Return(strings []string, err error) *AccessControl_GetAllProjectsForUser_Call
func (*AccessControl_GetAllProjectsForUser_Call) Run ¶ added in v0.17.2
func (_c *AccessControl_GetAllProjectsForUser_Call) Run(run func(user string)) *AccessControl_GetAllProjectsForUser_Call
func (*AccessControl_GetAllProjectsForUser_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AccessControl_GetAllProjectsForUser_Call) RunAndReturn(run func(user string) ([]string, error)) *AccessControl_GetAllProjectsForUser_Call
type AccessControl_GetAllRoles_Call ¶ added in v0.17.2
AccessControl_GetAllRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllRoles'
func (*AccessControl_GetAllRoles_Call) Return ¶ added in v0.17.2
func (_c *AccessControl_GetAllRoles_Call) Return(strings []string) *AccessControl_GetAllRoles_Call
func (*AccessControl_GetAllRoles_Call) Run ¶ added in v0.17.2
func (_c *AccessControl_GetAllRoles_Call) Run(run func(user string)) *AccessControl_GetAllRoles_Call
func (*AccessControl_GetAllRoles_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AccessControl_GetAllRoles_Call) RunAndReturn(run func(user string) []string) *AccessControl_GetAllRoles_Call
type AccessControl_GetDomainRole_Call ¶ added in v0.17.2
AccessControl_GetDomainRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDomainRole'
func (*AccessControl_GetDomainRole_Call) Return ¶ added in v0.17.2
func (_c *AccessControl_GetDomainRole_Call) Return(role core.Role, err error) *AccessControl_GetDomainRole_Call
func (*AccessControl_GetDomainRole_Call) Run ¶ added in v0.17.2
func (_c *AccessControl_GetDomainRole_Call) Run(run func(user string)) *AccessControl_GetDomainRole_Call
func (*AccessControl_GetDomainRole_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AccessControl_GetDomainRole_Call) RunAndReturn(run func(user string) (core.Role, error)) *AccessControl_GetDomainRole_Call
type AccessControl_GetExternalEntityProviderID_Call ¶ added in v0.17.2
AccessControl_GetExternalEntityProviderID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetExternalEntityProviderID'
func (*AccessControl_GetExternalEntityProviderID_Call) Return ¶ added in v0.17.2
func (_c *AccessControl_GetExternalEntityProviderID_Call) Return(s *string) *AccessControl_GetExternalEntityProviderID_Call
func (*AccessControl_GetExternalEntityProviderID_Call) Run ¶ added in v0.17.2
func (_c *AccessControl_GetExternalEntityProviderID_Call) Run(run func()) *AccessControl_GetExternalEntityProviderID_Call
func (*AccessControl_GetExternalEntityProviderID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AccessControl_GetExternalEntityProviderID_Call) RunAndReturn(run func() *string) *AccessControl_GetExternalEntityProviderID_Call
type AccessControl_GetOwnerOfOrganization_Call ¶ added in v0.17.2
AccessControl_GetOwnerOfOrganization_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOwnerOfOrganization'
func (*AccessControl_GetOwnerOfOrganization_Call) Return ¶ added in v0.17.2
func (_c *AccessControl_GetOwnerOfOrganization_Call) Return(s string, err error) *AccessControl_GetOwnerOfOrganization_Call
func (*AccessControl_GetOwnerOfOrganization_Call) Run ¶ added in v0.17.2
func (_c *AccessControl_GetOwnerOfOrganization_Call) Run(run func()) *AccessControl_GetOwnerOfOrganization_Call
func (*AccessControl_GetOwnerOfOrganization_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AccessControl_GetOwnerOfOrganization_Call) RunAndReturn(run func() (string, error)) *AccessControl_GetOwnerOfOrganization_Call
type AccessControl_GetProjectRole_Call ¶ added in v0.17.2
AccessControl_GetProjectRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProjectRole'
func (*AccessControl_GetProjectRole_Call) Return ¶ added in v0.17.2
func (_c *AccessControl_GetProjectRole_Call) Return(role core.Role, err error) *AccessControl_GetProjectRole_Call
func (*AccessControl_GetProjectRole_Call) Run ¶ added in v0.17.2
func (_c *AccessControl_GetProjectRole_Call) Run(run func(user string, project string)) *AccessControl_GetProjectRole_Call
func (*AccessControl_GetProjectRole_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AccessControl_GetProjectRole_Call) RunAndReturn(run func(user string, project string) (core.Role, error)) *AccessControl_GetProjectRole_Call
type AccessControl_GrantRoleInProject_Call ¶ added in v0.17.2
AccessControl_GrantRoleInProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrantRoleInProject'
func (*AccessControl_GrantRoleInProject_Call) Return ¶ added in v0.17.2
func (_c *AccessControl_GrantRoleInProject_Call) Return(err error) *AccessControl_GrantRoleInProject_Call
func (*AccessControl_GrantRoleInProject_Call) Run ¶ added in v0.17.2
func (_c *AccessControl_GrantRoleInProject_Call) Run(run func(subject string, role core.Role, project string)) *AccessControl_GrantRoleInProject_Call
func (*AccessControl_GrantRoleInProject_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AccessControl_GrantRoleInProject_Call) RunAndReturn(run func(subject string, role core.Role, project string) error) *AccessControl_GrantRoleInProject_Call
type AccessControl_GrantRole_Call ¶ added in v0.17.2
AccessControl_GrantRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GrantRole'
func (*AccessControl_GrantRole_Call) Return ¶ added in v0.17.2
func (_c *AccessControl_GrantRole_Call) Return(err error) *AccessControl_GrantRole_Call
func (*AccessControl_GrantRole_Call) Run ¶ added in v0.17.2
func (_c *AccessControl_GrantRole_Call) Run(run func(subject string, role core.Role)) *AccessControl_GrantRole_Call
func (*AccessControl_GrantRole_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AccessControl_GrantRole_Call) RunAndReturn(run func(subject string, role core.Role) error) *AccessControl_GrantRole_Call
type AccessControl_HasAccess_Call ¶ added in v0.17.2
AccessControl_HasAccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasAccess'
func (*AccessControl_HasAccess_Call) Return ¶ added in v0.17.2
func (_c *AccessControl_HasAccess_Call) Return(b bool, err error) *AccessControl_HasAccess_Call
func (*AccessControl_HasAccess_Call) Run ¶ added in v0.17.2
func (_c *AccessControl_HasAccess_Call) Run(run func(subject string)) *AccessControl_HasAccess_Call
func (*AccessControl_HasAccess_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AccessControl_HasAccess_Call) RunAndReturn(run func(subject string) (bool, error)) *AccessControl_HasAccess_Call
type AccessControl_InheritProjectRole_Call ¶ added in v0.17.2
AccessControl_InheritProjectRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InheritProjectRole'
func (*AccessControl_InheritProjectRole_Call) Return ¶ added in v0.17.2
func (_c *AccessControl_InheritProjectRole_Call) Return(err error) *AccessControl_InheritProjectRole_Call
func (*AccessControl_InheritProjectRole_Call) Run ¶ added in v0.17.2
func (_c *AccessControl_InheritProjectRole_Call) Run(run func(roleWhichGetsPermissions core.Role, roleWhichProvidesPermissions core.Role, project string)) *AccessControl_InheritProjectRole_Call
func (*AccessControl_InheritProjectRole_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AccessControl_InheritProjectRole_Call) RunAndReturn(run func(roleWhichGetsPermissions core.Role, roleWhichProvidesPermissions core.Role, project string) error) *AccessControl_InheritProjectRole_Call
type AccessControl_InheritProjectRolesAcrossProjects_Call ¶ added in v0.17.2
AccessControl_InheritProjectRolesAcrossProjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InheritProjectRolesAcrossProjects'
func (*AccessControl_InheritProjectRolesAcrossProjects_Call) Run ¶ added in v0.17.2
func (_c *AccessControl_InheritProjectRolesAcrossProjects_Call) Run(run func(roleWhichGetsPermissions core.ProjectRole, roleWhichProvidesPermissions core.ProjectRole)) *AccessControl_InheritProjectRolesAcrossProjects_Call
func (*AccessControl_InheritProjectRolesAcrossProjects_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AccessControl_InheritProjectRolesAcrossProjects_Call) RunAndReturn(run func(roleWhichGetsPermissions core.ProjectRole, roleWhichProvidesPermissions core.ProjectRole) error) *AccessControl_InheritProjectRolesAcrossProjects_Call
type AccessControl_InheritRole_Call ¶ added in v0.17.2
AccessControl_InheritRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InheritRole'
func (*AccessControl_InheritRole_Call) Return ¶ added in v0.17.2
func (_c *AccessControl_InheritRole_Call) Return(err error) *AccessControl_InheritRole_Call
func (*AccessControl_InheritRole_Call) Run ¶ added in v0.17.2
func (_c *AccessControl_InheritRole_Call) Run(run func(roleWhichGetsPermissions core.Role, roleWhichProvidesPermissions core.Role)) *AccessControl_InheritRole_Call
func (*AccessControl_InheritRole_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AccessControl_InheritRole_Call) RunAndReturn(run func(roleWhichGetsPermissions core.Role, roleWhichProvidesPermissions core.Role) error) *AccessControl_InheritRole_Call
type AccessControl_IsAllowedInProject_Call ¶ added in v0.17.2
AccessControl_IsAllowedInProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsAllowedInProject'
func (*AccessControl_IsAllowedInProject_Call) Return ¶ added in v0.17.2
func (_c *AccessControl_IsAllowedInProject_Call) Return(b bool, err error) *AccessControl_IsAllowedInProject_Call
func (*AccessControl_IsAllowedInProject_Call) Run ¶ added in v0.17.2
func (_c *AccessControl_IsAllowedInProject_Call) Run(run func(project *models.Project, user string, object core.Object, action core.Action)) *AccessControl_IsAllowedInProject_Call
func (*AccessControl_IsAllowedInProject_Call) RunAndReturn ¶ added in v0.17.2
type AccessControl_IsAllowed_Call ¶ added in v0.17.2
AccessControl_IsAllowed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsAllowed'
func (*AccessControl_IsAllowed_Call) Return ¶ added in v0.17.2
func (_c *AccessControl_IsAllowed_Call) Return(b bool, err error) *AccessControl_IsAllowed_Call
func (*AccessControl_IsAllowed_Call) Run ¶ added in v0.17.2
func (_c *AccessControl_IsAllowed_Call) Run(run func(subject string, object core.Object, action core.Action)) *AccessControl_IsAllowed_Call
func (*AccessControl_IsAllowed_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AccessControl_IsAllowed_Call) RunAndReturn(run func(subject string, object core.Object, action core.Action) (bool, error)) *AccessControl_IsAllowed_Call
type AccessControl_LinkDomainAndProjectRole_Call ¶ added in v0.17.2
AccessControl_LinkDomainAndProjectRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LinkDomainAndProjectRole'
func (*AccessControl_LinkDomainAndProjectRole_Call) Return ¶ added in v0.17.2
func (_c *AccessControl_LinkDomainAndProjectRole_Call) Return(err error) *AccessControl_LinkDomainAndProjectRole_Call
func (*AccessControl_LinkDomainAndProjectRole_Call) Run ¶ added in v0.17.2
func (_c *AccessControl_LinkDomainAndProjectRole_Call) Run(run func(domainRoleWhichGetsPermission core.Role, projectRoleWhichProvidesPermissions core.Role, project string)) *AccessControl_LinkDomainAndProjectRole_Call
func (*AccessControl_LinkDomainAndProjectRole_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AccessControl_LinkDomainAndProjectRole_Call) RunAndReturn(run func(domainRoleWhichGetsPermission core.Role, projectRoleWhichProvidesPermissions core.Role, project string) error) *AccessControl_LinkDomainAndProjectRole_Call
type AccessControl_RevokeAllRolesInProjectForUser_Call ¶ added in v0.17.2
AccessControl_RevokeAllRolesInProjectForUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeAllRolesInProjectForUser'
func (*AccessControl_RevokeAllRolesInProjectForUser_Call) Return ¶ added in v0.17.2
func (_c *AccessControl_RevokeAllRolesInProjectForUser_Call) Return(err error) *AccessControl_RevokeAllRolesInProjectForUser_Call
func (*AccessControl_RevokeAllRolesInProjectForUser_Call) Run ¶ added in v0.17.2
func (_c *AccessControl_RevokeAllRolesInProjectForUser_Call) Run(run func(user string, project string)) *AccessControl_RevokeAllRolesInProjectForUser_Call
func (*AccessControl_RevokeAllRolesInProjectForUser_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AccessControl_RevokeAllRolesInProjectForUser_Call) RunAndReturn(run func(user string, project string) error) *AccessControl_RevokeAllRolesInProjectForUser_Call
type AccessControl_RevokeRoleInProject_Call ¶ added in v0.17.2
AccessControl_RevokeRoleInProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeRoleInProject'
func (*AccessControl_RevokeRoleInProject_Call) Return ¶ added in v0.17.2
func (_c *AccessControl_RevokeRoleInProject_Call) Return(err error) *AccessControl_RevokeRoleInProject_Call
func (*AccessControl_RevokeRoleInProject_Call) Run ¶ added in v0.17.2
func (_c *AccessControl_RevokeRoleInProject_Call) Run(run func(subject string, role core.Role, project string)) *AccessControl_RevokeRoleInProject_Call
func (*AccessControl_RevokeRoleInProject_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AccessControl_RevokeRoleInProject_Call) RunAndReturn(run func(subject string, role core.Role, project string) error) *AccessControl_RevokeRoleInProject_Call
type AccessControl_RevokeRole_Call ¶ added in v0.17.2
AccessControl_RevokeRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeRole'
func (*AccessControl_RevokeRole_Call) Return ¶ added in v0.17.2
func (_c *AccessControl_RevokeRole_Call) Return(err error) *AccessControl_RevokeRole_Call
func (*AccessControl_RevokeRole_Call) Run ¶ added in v0.17.2
func (_c *AccessControl_RevokeRole_Call) Run(run func(subject string, role core.Role)) *AccessControl_RevokeRole_Call
func (*AccessControl_RevokeRole_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AccessControl_RevokeRole_Call) RunAndReturn(run func(subject string, role core.Role) error) *AccessControl_RevokeRole_Call
type AdminClient ¶ added in v0.17.2
AdminClient is an autogenerated mock type for the AdminClient type
func NewAdminClient ¶ added in v0.17.2
func NewAdminClient(t interface { mock.TestingT Cleanup(func()) }) *AdminClient
NewAdminClient creates a new instance of AdminClient. 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 (*AdminClient) EXPECT ¶ added in v0.17.2
func (_m *AdminClient) EXPECT() *AdminClient_Expecter
func (*AdminClient) GetIdentity ¶ added in v0.17.2
func (_mock *AdminClient) GetIdentity(ctx context.Context, userID string) (client.Identity, error)
GetIdentity provides a mock function for the type AdminClient
func (*AdminClient) GetIdentityFromCookie ¶ added in v0.17.2
func (_mock *AdminClient) GetIdentityFromCookie(ctx context.Context, cookie string) (client.Identity, error)
GetIdentityFromCookie provides a mock function for the type AdminClient
func (*AdminClient) GetIdentityWithCredentials ¶ added in v0.17.2
func (_mock *AdminClient) GetIdentityWithCredentials(ctx context.Context, userID string) (client.Identity, error)
GetIdentityWithCredentials provides a mock function for the type AdminClient
func (*AdminClient) ListUser ¶ added in v0.17.2
func (_mock *AdminClient) ListUser(client1 client.IdentityAPIListIdentitiesRequest) ([]client.Identity, error)
ListUser provides a mock function for the type AdminClient
type AdminClient_Expecter ¶ added in v0.17.2
type AdminClient_Expecter struct {
// contains filtered or unexported fields
}
func (*AdminClient_Expecter) GetIdentity ¶ added in v0.17.2
func (_e *AdminClient_Expecter) GetIdentity(ctx interface{}, userID interface{}) *AdminClient_GetIdentity_Call
GetIdentity is a helper method to define mock.On call
- ctx context.Context
- userID string
func (*AdminClient_Expecter) GetIdentityFromCookie ¶ added in v0.17.2
func (_e *AdminClient_Expecter) GetIdentityFromCookie(ctx interface{}, cookie interface{}) *AdminClient_GetIdentityFromCookie_Call
GetIdentityFromCookie is a helper method to define mock.On call
- ctx context.Context
- cookie string
func (*AdminClient_Expecter) GetIdentityWithCredentials ¶ added in v0.17.2
func (_e *AdminClient_Expecter) GetIdentityWithCredentials(ctx interface{}, userID interface{}) *AdminClient_GetIdentityWithCredentials_Call
GetIdentityWithCredentials is a helper method to define mock.On call
- ctx context.Context
- userID string
func (*AdminClient_Expecter) ListUser ¶ added in v0.17.2
func (_e *AdminClient_Expecter) ListUser(client1 interface{}) *AdminClient_ListUser_Call
ListUser is a helper method to define mock.On call
- client1 client.IdentityAPIListIdentitiesRequest
type AdminClient_GetIdentityFromCookie_Call ¶ added in v0.17.2
AdminClient_GetIdentityFromCookie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIdentityFromCookie'
func (*AdminClient_GetIdentityFromCookie_Call) Return ¶ added in v0.17.2
func (_c *AdminClient_GetIdentityFromCookie_Call) Return(identity client.Identity, err error) *AdminClient_GetIdentityFromCookie_Call
func (*AdminClient_GetIdentityFromCookie_Call) Run ¶ added in v0.17.2
func (_c *AdminClient_GetIdentityFromCookie_Call) Run(run func(ctx context.Context, cookie string)) *AdminClient_GetIdentityFromCookie_Call
func (*AdminClient_GetIdentityFromCookie_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AdminClient_GetIdentityFromCookie_Call) RunAndReturn(run func(ctx context.Context, cookie string) (client.Identity, error)) *AdminClient_GetIdentityFromCookie_Call
type AdminClient_GetIdentityWithCredentials_Call ¶ added in v0.17.2
AdminClient_GetIdentityWithCredentials_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIdentityWithCredentials'
func (*AdminClient_GetIdentityWithCredentials_Call) Return ¶ added in v0.17.2
func (_c *AdminClient_GetIdentityWithCredentials_Call) Return(identity client.Identity, err error) *AdminClient_GetIdentityWithCredentials_Call
func (*AdminClient_GetIdentityWithCredentials_Call) Run ¶ added in v0.17.2
func (_c *AdminClient_GetIdentityWithCredentials_Call) Run(run func(ctx context.Context, userID string)) *AdminClient_GetIdentityWithCredentials_Call
func (*AdminClient_GetIdentityWithCredentials_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AdminClient_GetIdentityWithCredentials_Call) RunAndReturn(run func(ctx context.Context, userID string) (client.Identity, error)) *AdminClient_GetIdentityWithCredentials_Call
type AdminClient_GetIdentity_Call ¶ added in v0.17.2
AdminClient_GetIdentity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIdentity'
func (*AdminClient_GetIdentity_Call) Return ¶ added in v0.17.2
func (_c *AdminClient_GetIdentity_Call) Return(identity client.Identity, err error) *AdminClient_GetIdentity_Call
func (*AdminClient_GetIdentity_Call) Run ¶ added in v0.17.2
func (_c *AdminClient_GetIdentity_Call) Run(run func(ctx context.Context, userID string)) *AdminClient_GetIdentity_Call
func (*AdminClient_GetIdentity_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AdminClient_GetIdentity_Call) RunAndReturn(run func(ctx context.Context, userID string) (client.Identity, error)) *AdminClient_GetIdentity_Call
type AdminClient_ListUser_Call ¶ added in v0.17.2
AdminClient_ListUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListUser'
func (*AdminClient_ListUser_Call) Return ¶ added in v0.17.2
func (_c *AdminClient_ListUser_Call) Return(identitys []client.Identity, err error) *AdminClient_ListUser_Call
func (*AdminClient_ListUser_Call) Run ¶ added in v0.17.2
func (_c *AdminClient_ListUser_Call) Run(run func(client1 client.IdentityAPIListIdentitiesRequest)) *AdminClient_ListUser_Call
func (*AdminClient_ListUser_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AdminClient_ListUser_Call) RunAndReturn(run func(client1 client.IdentityAPIListIdentitiesRequest) ([]client.Identity, error)) *AdminClient_ListUser_Call
type AffectedComponentRepository ¶ added in v0.17.2
AffectedComponentRepository is an autogenerated mock type for the AffectedComponentRepository type
func NewAffectedComponentRepository ¶ added in v0.17.2
func NewAffectedComponentRepository(t interface { mock.TestingT Cleanup(func()) }) *AffectedComponentRepository
NewAffectedComponentRepository creates a new instance of AffectedComponentRepository. 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 (*AffectedComponentRepository) Activate ¶ added in v0.17.2
func (_mock *AffectedComponentRepository) Activate(tx core.DB, id string) error
Activate provides a mock function for the type AffectedComponentRepository
func (*AffectedComponentRepository) All ¶ added in v0.17.2
func (_mock *AffectedComponentRepository) All() ([]models.AffectedComponent, error)
All provides a mock function for the type AffectedComponentRepository
func (*AffectedComponentRepository) Begin ¶ added in v0.17.2
func (_mock *AffectedComponentRepository) Begin() core.DB
Begin provides a mock function for the type AffectedComponentRepository
func (*AffectedComponentRepository) Create ¶ added in v0.17.2
func (_mock *AffectedComponentRepository) Create(tx core.DB, t *models.AffectedComponent) error
Create provides a mock function for the type AffectedComponentRepository
func (*AffectedComponentRepository) CreateBatch ¶ added in v0.17.2
func (_mock *AffectedComponentRepository) CreateBatch(tx core.DB, ts []models.AffectedComponent) error
CreateBatch provides a mock function for the type AffectedComponentRepository
func (*AffectedComponentRepository) Delete ¶ added in v0.17.2
func (_mock *AffectedComponentRepository) Delete(tx core.DB, id string) error
Delete provides a mock function for the type AffectedComponentRepository
func (*AffectedComponentRepository) DeleteAll ¶ added in v0.17.2
func (_mock *AffectedComponentRepository) DeleteAll(tx core.DB, ecosystem string) error
DeleteAll provides a mock function for the type AffectedComponentRepository
func (*AffectedComponentRepository) DeleteBatch ¶ added in v0.17.2
func (_mock *AffectedComponentRepository) DeleteBatch(tx core.DB, ids []models.AffectedComponent) error
DeleteBatch provides a mock function for the type AffectedComponentRepository
func (*AffectedComponentRepository) EXPECT ¶ added in v0.17.2
func (_m *AffectedComponentRepository) EXPECT() *AffectedComponentRepository_Expecter
func (*AffectedComponentRepository) GetAllAffectedComponentsID ¶ added in v0.17.2
func (_mock *AffectedComponentRepository) GetAllAffectedComponentsID() ([]string, error)
GetAllAffectedComponentsID provides a mock function for the type AffectedComponentRepository
func (*AffectedComponentRepository) GetDB ¶ added in v0.17.2
func (_mock *AffectedComponentRepository) GetDB(tx core.DB) core.DB
GetDB provides a mock function for the type AffectedComponentRepository
func (*AffectedComponentRepository) List ¶ added in v0.17.2
func (_mock *AffectedComponentRepository) List(ids []string) ([]models.AffectedComponent, error)
List provides a mock function for the type AffectedComponentRepository
func (*AffectedComponentRepository) Read ¶ added in v0.17.2
func (_mock *AffectedComponentRepository) Read(id string) (models.AffectedComponent, error)
Read provides a mock function for the type AffectedComponentRepository
func (*AffectedComponentRepository) Save ¶ added in v0.17.2
func (_mock *AffectedComponentRepository) Save(tx core.DB, affectedComponent *models.AffectedComponent) error
Save provides a mock function for the type AffectedComponentRepository
func (*AffectedComponentRepository) SaveBatch ¶ added in v0.17.2
func (_mock *AffectedComponentRepository) SaveBatch(tx core.DB, affectedPkgs []models.AffectedComponent) error
SaveBatch provides a mock function for the type AffectedComponentRepository
func (*AffectedComponentRepository) Transaction ¶ added in v0.17.2
func (_mock *AffectedComponentRepository) Transaction(fn func(tx core.DB) error) error
Transaction provides a mock function for the type AffectedComponentRepository
func (*AffectedComponentRepository) Upsert ¶ added in v0.17.2
func (_mock *AffectedComponentRepository) Upsert(t *[]*models.AffectedComponent, conflictingColumns []clause.Column, updateOnly []string) error
Upsert provides a mock function for the type AffectedComponentRepository
type AffectedComponentRepository_Activate_Call ¶ added in v0.17.2
AffectedComponentRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*AffectedComponentRepository_Activate_Call) Return ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Activate_Call) Return(err error) *AffectedComponentRepository_Activate_Call
func (*AffectedComponentRepository_Activate_Call) Run ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Activate_Call) Run(run func(tx core.DB, id string)) *AffectedComponentRepository_Activate_Call
func (*AffectedComponentRepository_Activate_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id string) error) *AffectedComponentRepository_Activate_Call
type AffectedComponentRepository_All_Call ¶ added in v0.17.2
AffectedComponentRepository_All_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'All'
func (*AffectedComponentRepository_All_Call) Return ¶ added in v0.17.2
func (_c *AffectedComponentRepository_All_Call) Return(affectedComponents []models.AffectedComponent, err error) *AffectedComponentRepository_All_Call
func (*AffectedComponentRepository_All_Call) Run ¶ added in v0.17.2
func (_c *AffectedComponentRepository_All_Call) Run(run func()) *AffectedComponentRepository_All_Call
func (*AffectedComponentRepository_All_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AffectedComponentRepository_All_Call) RunAndReturn(run func() ([]models.AffectedComponent, error)) *AffectedComponentRepository_All_Call
type AffectedComponentRepository_Begin_Call ¶ added in v0.17.2
AffectedComponentRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*AffectedComponentRepository_Begin_Call) Return ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Begin_Call) Return(v core.DB) *AffectedComponentRepository_Begin_Call
func (*AffectedComponentRepository_Begin_Call) Run ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Begin_Call) Run(run func()) *AffectedComponentRepository_Begin_Call
func (*AffectedComponentRepository_Begin_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Begin_Call) RunAndReturn(run func() core.DB) *AffectedComponentRepository_Begin_Call
type AffectedComponentRepository_CreateBatch_Call ¶ added in v0.17.2
AffectedComponentRepository_CreateBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBatch'
func (*AffectedComponentRepository_CreateBatch_Call) Return ¶ added in v0.17.2
func (_c *AffectedComponentRepository_CreateBatch_Call) Return(err error) *AffectedComponentRepository_CreateBatch_Call
func (*AffectedComponentRepository_CreateBatch_Call) Run ¶ added in v0.17.2
func (_c *AffectedComponentRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.AffectedComponent)) *AffectedComponentRepository_CreateBatch_Call
func (*AffectedComponentRepository_CreateBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AffectedComponentRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.AffectedComponent) error) *AffectedComponentRepository_CreateBatch_Call
type AffectedComponentRepository_Create_Call ¶ added in v0.17.2
AffectedComponentRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*AffectedComponentRepository_Create_Call) Return ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Create_Call) Return(err error) *AffectedComponentRepository_Create_Call
func (*AffectedComponentRepository_Create_Call) Run ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Create_Call) Run(run func(tx core.DB, t *models.AffectedComponent)) *AffectedComponentRepository_Create_Call
func (*AffectedComponentRepository_Create_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.AffectedComponent) error) *AffectedComponentRepository_Create_Call
type AffectedComponentRepository_DeleteAll_Call ¶ added in v0.17.2
AffectedComponentRepository_DeleteAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAll'
func (*AffectedComponentRepository_DeleteAll_Call) Return ¶ added in v0.17.2
func (_c *AffectedComponentRepository_DeleteAll_Call) Return(err error) *AffectedComponentRepository_DeleteAll_Call
func (*AffectedComponentRepository_DeleteAll_Call) Run ¶ added in v0.17.2
func (_c *AffectedComponentRepository_DeleteAll_Call) Run(run func(tx core.DB, ecosystem string)) *AffectedComponentRepository_DeleteAll_Call
func (*AffectedComponentRepository_DeleteAll_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AffectedComponentRepository_DeleteAll_Call) RunAndReturn(run func(tx core.DB, ecosystem string) error) *AffectedComponentRepository_DeleteAll_Call
type AffectedComponentRepository_DeleteBatch_Call ¶ added in v0.17.2
AffectedComponentRepository_DeleteBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBatch'
func (*AffectedComponentRepository_DeleteBatch_Call) Return ¶ added in v0.17.2
func (_c *AffectedComponentRepository_DeleteBatch_Call) Return(err error) *AffectedComponentRepository_DeleteBatch_Call
func (*AffectedComponentRepository_DeleteBatch_Call) Run ¶ added in v0.17.2
func (_c *AffectedComponentRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.AffectedComponent)) *AffectedComponentRepository_DeleteBatch_Call
func (*AffectedComponentRepository_DeleteBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AffectedComponentRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.AffectedComponent) error) *AffectedComponentRepository_DeleteBatch_Call
type AffectedComponentRepository_Delete_Call ¶ added in v0.17.2
AffectedComponentRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*AffectedComponentRepository_Delete_Call) Return ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Delete_Call) Return(err error) *AffectedComponentRepository_Delete_Call
func (*AffectedComponentRepository_Delete_Call) Run ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Delete_Call) Run(run func(tx core.DB, id string)) *AffectedComponentRepository_Delete_Call
func (*AffectedComponentRepository_Delete_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id string) error) *AffectedComponentRepository_Delete_Call
type AffectedComponentRepository_Expecter ¶ added in v0.17.2
type AffectedComponentRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*AffectedComponentRepository_Expecter) Activate ¶ added in v0.17.2
func (_e *AffectedComponentRepository_Expecter) Activate(tx interface{}, id interface{}) *AffectedComponentRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx core.DB
- id string
func (*AffectedComponentRepository_Expecter) All ¶ added in v0.17.2
func (_e *AffectedComponentRepository_Expecter) All() *AffectedComponentRepository_All_Call
All is a helper method to define mock.On call
func (*AffectedComponentRepository_Expecter) Begin ¶ added in v0.17.2
func (_e *AffectedComponentRepository_Expecter) Begin() *AffectedComponentRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*AffectedComponentRepository_Expecter) Create ¶ added in v0.17.2
func (_e *AffectedComponentRepository_Expecter) Create(tx interface{}, t interface{}) *AffectedComponentRepository_Create_Call
Create is a helper method to define mock.On call
- tx core.DB
- t *models.AffectedComponent
func (*AffectedComponentRepository_Expecter) CreateBatch ¶ added in v0.17.2
func (_e *AffectedComponentRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *AffectedComponentRepository_CreateBatch_Call
CreateBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.AffectedComponent
func (*AffectedComponentRepository_Expecter) Delete ¶ added in v0.17.2
func (_e *AffectedComponentRepository_Expecter) Delete(tx interface{}, id interface{}) *AffectedComponentRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx core.DB
- id string
func (*AffectedComponentRepository_Expecter) DeleteAll ¶ added in v0.17.2
func (_e *AffectedComponentRepository_Expecter) DeleteAll(tx interface{}, ecosystem interface{}) *AffectedComponentRepository_DeleteAll_Call
DeleteAll is a helper method to define mock.On call
- tx core.DB
- ecosystem string
func (*AffectedComponentRepository_Expecter) DeleteBatch ¶ added in v0.17.2
func (_e *AffectedComponentRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *AffectedComponentRepository_DeleteBatch_Call
DeleteBatch is a helper method to define mock.On call
- tx core.DB
- ids []models.AffectedComponent
func (*AffectedComponentRepository_Expecter) GetAllAffectedComponentsID ¶ added in v0.17.2
func (_e *AffectedComponentRepository_Expecter) GetAllAffectedComponentsID() *AffectedComponentRepository_GetAllAffectedComponentsID_Call
GetAllAffectedComponentsID is a helper method to define mock.On call
func (*AffectedComponentRepository_Expecter) GetDB ¶ added in v0.17.2
func (_e *AffectedComponentRepository_Expecter) GetDB(tx interface{}) *AffectedComponentRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx core.DB
func (*AffectedComponentRepository_Expecter) List ¶ added in v0.17.2
func (_e *AffectedComponentRepository_Expecter) List(ids interface{}) *AffectedComponentRepository_List_Call
List is a helper method to define mock.On call
- ids []string
func (*AffectedComponentRepository_Expecter) Read ¶ added in v0.17.2
func (_e *AffectedComponentRepository_Expecter) Read(id interface{}) *AffectedComponentRepository_Read_Call
Read is a helper method to define mock.On call
- id string
func (*AffectedComponentRepository_Expecter) Save ¶ added in v0.17.2
func (_e *AffectedComponentRepository_Expecter) Save(tx interface{}, affectedComponent interface{}) *AffectedComponentRepository_Save_Call
Save is a helper method to define mock.On call
- tx core.DB
- affectedComponent *models.AffectedComponent
func (*AffectedComponentRepository_Expecter) SaveBatch ¶ added in v0.17.2
func (_e *AffectedComponentRepository_Expecter) SaveBatch(tx interface{}, affectedPkgs interface{}) *AffectedComponentRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx core.DB
- affectedPkgs []models.AffectedComponent
func (*AffectedComponentRepository_Expecter) Transaction ¶ added in v0.17.2
func (_e *AffectedComponentRepository_Expecter) Transaction(fn interface{}) *AffectedComponentRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- fn func(tx core.DB) error
func (*AffectedComponentRepository_Expecter) Upsert ¶ added in v0.17.2
func (_e *AffectedComponentRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *AffectedComponentRepository_Upsert_Call
Upsert is a helper method to define mock.On call
- t *[]*models.AffectedComponent
- conflictingColumns []clause.Column
- updateOnly []string
type AffectedComponentRepository_GetAllAffectedComponentsID_Call ¶ added in v0.17.2
AffectedComponentRepository_GetAllAffectedComponentsID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllAffectedComponentsID'
func (*AffectedComponentRepository_GetAllAffectedComponentsID_Call) Return ¶ added in v0.17.2
func (_c *AffectedComponentRepository_GetAllAffectedComponentsID_Call) Return(strings []string, err error) *AffectedComponentRepository_GetAllAffectedComponentsID_Call
func (*AffectedComponentRepository_GetAllAffectedComponentsID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AffectedComponentRepository_GetAllAffectedComponentsID_Call) RunAndReturn(run func() ([]string, error)) *AffectedComponentRepository_GetAllAffectedComponentsID_Call
type AffectedComponentRepository_GetDB_Call ¶ added in v0.17.2
AffectedComponentRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*AffectedComponentRepository_GetDB_Call) Return ¶ added in v0.17.2
func (_c *AffectedComponentRepository_GetDB_Call) Return(v core.DB) *AffectedComponentRepository_GetDB_Call
func (*AffectedComponentRepository_GetDB_Call) Run ¶ added in v0.17.2
func (_c *AffectedComponentRepository_GetDB_Call) Run(run func(tx core.DB)) *AffectedComponentRepository_GetDB_Call
func (*AffectedComponentRepository_GetDB_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AffectedComponentRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *AffectedComponentRepository_GetDB_Call
type AffectedComponentRepository_List_Call ¶ added in v0.17.2
AffectedComponentRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*AffectedComponentRepository_List_Call) Return ¶ added in v0.17.2
func (_c *AffectedComponentRepository_List_Call) Return(affectedComponents []models.AffectedComponent, err error) *AffectedComponentRepository_List_Call
func (*AffectedComponentRepository_List_Call) Run ¶ added in v0.17.2
func (_c *AffectedComponentRepository_List_Call) Run(run func(ids []string)) *AffectedComponentRepository_List_Call
func (*AffectedComponentRepository_List_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AffectedComponentRepository_List_Call) RunAndReturn(run func(ids []string) ([]models.AffectedComponent, error)) *AffectedComponentRepository_List_Call
type AffectedComponentRepository_Read_Call ¶ added in v0.17.2
AffectedComponentRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*AffectedComponentRepository_Read_Call) Return ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Read_Call) Return(affectedComponent models.AffectedComponent, err error) *AffectedComponentRepository_Read_Call
func (*AffectedComponentRepository_Read_Call) Run ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Read_Call) Run(run func(id string)) *AffectedComponentRepository_Read_Call
func (*AffectedComponentRepository_Read_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Read_Call) RunAndReturn(run func(id string) (models.AffectedComponent, error)) *AffectedComponentRepository_Read_Call
type AffectedComponentRepository_SaveBatch_Call ¶ added in v0.17.2
AffectedComponentRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*AffectedComponentRepository_SaveBatch_Call) Return ¶ added in v0.17.2
func (_c *AffectedComponentRepository_SaveBatch_Call) Return(err error) *AffectedComponentRepository_SaveBatch_Call
func (*AffectedComponentRepository_SaveBatch_Call) Run ¶ added in v0.17.2
func (_c *AffectedComponentRepository_SaveBatch_Call) Run(run func(tx core.DB, affectedPkgs []models.AffectedComponent)) *AffectedComponentRepository_SaveBatch_Call
func (*AffectedComponentRepository_SaveBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AffectedComponentRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, affectedPkgs []models.AffectedComponent) error) *AffectedComponentRepository_SaveBatch_Call
type AffectedComponentRepository_Save_Call ¶ added in v0.17.2
AffectedComponentRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*AffectedComponentRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Save_Call) Return(err error) *AffectedComponentRepository_Save_Call
func (*AffectedComponentRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Save_Call) Run(run func(tx core.DB, affectedComponent *models.AffectedComponent)) *AffectedComponentRepository_Save_Call
func (*AffectedComponentRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Save_Call) RunAndReturn(run func(tx core.DB, affectedComponent *models.AffectedComponent) error) *AffectedComponentRepository_Save_Call
type AffectedComponentRepository_Transaction_Call ¶ added in v0.17.2
AffectedComponentRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*AffectedComponentRepository_Transaction_Call) Return ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Transaction_Call) Return(err error) *AffectedComponentRepository_Transaction_Call
func (*AffectedComponentRepository_Transaction_Call) Run ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *AffectedComponentRepository_Transaction_Call
func (*AffectedComponentRepository_Transaction_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *AffectedComponentRepository_Transaction_Call
type AffectedComponentRepository_Upsert_Call ¶ added in v0.17.2
AffectedComponentRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*AffectedComponentRepository_Upsert_Call) Return ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Upsert_Call) Return(err error) *AffectedComponentRepository_Upsert_Call
func (*AffectedComponentRepository_Upsert_Call) Run ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Upsert_Call) Run(run func(t *[]*models.AffectedComponent, conflictingColumns []clause.Column, updateOnly []string)) *AffectedComponentRepository_Upsert_Call
func (*AffectedComponentRepository_Upsert_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AffectedComponentRepository_Upsert_Call) RunAndReturn(run func(t *[]*models.AffectedComponent, conflictingColumns []clause.Column, updateOnly []string) error) *AffectedComponentRepository_Upsert_Call
type ArtifactRepository ¶ added in v0.17.2
ArtifactRepository is an autogenerated mock type for the ArtifactRepository type
func NewArtifactRepository ¶ added in v0.17.2
func NewArtifactRepository(t interface { mock.TestingT Cleanup(func()) }) *ArtifactRepository
NewArtifactRepository creates a new instance of ArtifactRepository. 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 (*ArtifactRepository) Activate ¶ added in v0.17.2
func (_mock *ArtifactRepository) Activate(tx core.DB, id string) error
Activate provides a mock function for the type ArtifactRepository
func (*ArtifactRepository) All ¶ added in v0.17.2
func (_mock *ArtifactRepository) All() ([]models.Artifact, error)
All provides a mock function for the type ArtifactRepository
func (*ArtifactRepository) Begin ¶ added in v0.17.2
func (_mock *ArtifactRepository) Begin() core.DB
Begin provides a mock function for the type ArtifactRepository
func (*ArtifactRepository) Create ¶ added in v0.17.2
Create provides a mock function for the type ArtifactRepository
func (*ArtifactRepository) CreateBatch ¶ added in v0.17.2
CreateBatch provides a mock function for the type ArtifactRepository
func (*ArtifactRepository) Delete ¶ added in v0.17.2
func (_mock *ArtifactRepository) Delete(tx core.DB, id string) error
Delete provides a mock function for the type ArtifactRepository
func (*ArtifactRepository) DeleteArtifact ¶ added in v0.17.2
func (_mock *ArtifactRepository) DeleteArtifact(assetID uuid.UUID, assetVersionName string, artifactName string) error
DeleteArtifact provides a mock function for the type ArtifactRepository
func (*ArtifactRepository) DeleteBatch ¶ added in v0.17.2
DeleteBatch provides a mock function for the type ArtifactRepository
func (*ArtifactRepository) EXPECT ¶ added in v0.17.2
func (_m *ArtifactRepository) EXPECT() *ArtifactRepository_Expecter
func (*ArtifactRepository) GetByAssetIDAndAssetVersionName ¶ added in v0.17.2
func (_mock *ArtifactRepository) GetByAssetIDAndAssetVersionName(assetID uuid.UUID, assetVersionName string) ([]models.Artifact, error)
GetByAssetIDAndAssetVersionName provides a mock function for the type ArtifactRepository
func (*ArtifactRepository) GetDB ¶ added in v0.17.2
func (_mock *ArtifactRepository) GetDB(tx core.DB) core.DB
GetDB provides a mock function for the type ArtifactRepository
func (*ArtifactRepository) List ¶ added in v0.17.2
func (_mock *ArtifactRepository) List(ids []string) ([]models.Artifact, error)
List provides a mock function for the type ArtifactRepository
func (*ArtifactRepository) Read ¶ added in v0.17.2
func (_mock *ArtifactRepository) Read(id string) (models.Artifact, error)
Read provides a mock function for the type ArtifactRepository
func (*ArtifactRepository) ReadArtifact ¶ added in v0.17.2
func (_mock *ArtifactRepository) ReadArtifact(name string, assetVersionName string, assetID uuid.UUID) (models.Artifact, error)
ReadArtifact provides a mock function for the type ArtifactRepository
func (*ArtifactRepository) Save ¶ added in v0.17.2
Save provides a mock function for the type ArtifactRepository
func (*ArtifactRepository) SaveBatch ¶ added in v0.17.2
SaveBatch provides a mock function for the type ArtifactRepository
func (*ArtifactRepository) Transaction ¶ added in v0.17.2
func (_mock *ArtifactRepository) Transaction(fn func(tx core.DB) error) error
Transaction provides a mock function for the type ArtifactRepository
type ArtifactRepository_Activate_Call ¶ added in v0.17.2
ArtifactRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*ArtifactRepository_Activate_Call) Return ¶ added in v0.17.2
func (_c *ArtifactRepository_Activate_Call) Return(err error) *ArtifactRepository_Activate_Call
func (*ArtifactRepository_Activate_Call) Run ¶ added in v0.17.2
func (_c *ArtifactRepository_Activate_Call) Run(run func(tx core.DB, id string)) *ArtifactRepository_Activate_Call
func (*ArtifactRepository_Activate_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ArtifactRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id string) error) *ArtifactRepository_Activate_Call
type ArtifactRepository_All_Call ¶ added in v0.17.2
ArtifactRepository_All_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'All'
func (*ArtifactRepository_All_Call) Return ¶ added in v0.17.2
func (_c *ArtifactRepository_All_Call) Return(artifacts []models.Artifact, err error) *ArtifactRepository_All_Call
func (*ArtifactRepository_All_Call) Run ¶ added in v0.17.2
func (_c *ArtifactRepository_All_Call) Run(run func()) *ArtifactRepository_All_Call
func (*ArtifactRepository_All_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ArtifactRepository_All_Call) RunAndReturn(run func() ([]models.Artifact, error)) *ArtifactRepository_All_Call
type ArtifactRepository_Begin_Call ¶ added in v0.17.2
ArtifactRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*ArtifactRepository_Begin_Call) Return ¶ added in v0.17.2
func (_c *ArtifactRepository_Begin_Call) Return(v core.DB) *ArtifactRepository_Begin_Call
func (*ArtifactRepository_Begin_Call) Run ¶ added in v0.17.2
func (_c *ArtifactRepository_Begin_Call) Run(run func()) *ArtifactRepository_Begin_Call
func (*ArtifactRepository_Begin_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ArtifactRepository_Begin_Call) RunAndReturn(run func() core.DB) *ArtifactRepository_Begin_Call
type ArtifactRepository_CreateBatch_Call ¶ added in v0.17.2
ArtifactRepository_CreateBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBatch'
func (*ArtifactRepository_CreateBatch_Call) Return ¶ added in v0.17.2
func (_c *ArtifactRepository_CreateBatch_Call) Return(err error) *ArtifactRepository_CreateBatch_Call
func (*ArtifactRepository_CreateBatch_Call) Run ¶ added in v0.17.2
func (_c *ArtifactRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.Artifact)) *ArtifactRepository_CreateBatch_Call
func (*ArtifactRepository_CreateBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ArtifactRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Artifact) error) *ArtifactRepository_CreateBatch_Call
type ArtifactRepository_Create_Call ¶ added in v0.17.2
ArtifactRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ArtifactRepository_Create_Call) Return ¶ added in v0.17.2
func (_c *ArtifactRepository_Create_Call) Return(err error) *ArtifactRepository_Create_Call
func (*ArtifactRepository_Create_Call) Run ¶ added in v0.17.2
func (_c *ArtifactRepository_Create_Call) Run(run func(tx core.DB, t *models.Artifact)) *ArtifactRepository_Create_Call
func (*ArtifactRepository_Create_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ArtifactRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.Artifact) error) *ArtifactRepository_Create_Call
type ArtifactRepository_DeleteArtifact_Call ¶ added in v0.17.2
ArtifactRepository_DeleteArtifact_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteArtifact'
func (*ArtifactRepository_DeleteArtifact_Call) Return ¶ added in v0.17.2
func (_c *ArtifactRepository_DeleteArtifact_Call) Return(err error) *ArtifactRepository_DeleteArtifact_Call
func (*ArtifactRepository_DeleteArtifact_Call) Run ¶ added in v0.17.2
func (_c *ArtifactRepository_DeleteArtifact_Call) Run(run func(assetID uuid.UUID, assetVersionName string, artifactName string)) *ArtifactRepository_DeleteArtifact_Call
func (*ArtifactRepository_DeleteArtifact_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ArtifactRepository_DeleteArtifact_Call) RunAndReturn(run func(assetID uuid.UUID, assetVersionName string, artifactName string) error) *ArtifactRepository_DeleteArtifact_Call
type ArtifactRepository_DeleteBatch_Call ¶ added in v0.17.2
ArtifactRepository_DeleteBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBatch'
func (*ArtifactRepository_DeleteBatch_Call) Return ¶ added in v0.17.2
func (_c *ArtifactRepository_DeleteBatch_Call) Return(err error) *ArtifactRepository_DeleteBatch_Call
func (*ArtifactRepository_DeleteBatch_Call) Run ¶ added in v0.17.2
func (_c *ArtifactRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.Artifact)) *ArtifactRepository_DeleteBatch_Call
func (*ArtifactRepository_DeleteBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ArtifactRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.Artifact) error) *ArtifactRepository_DeleteBatch_Call
type ArtifactRepository_Delete_Call ¶ added in v0.17.2
ArtifactRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*ArtifactRepository_Delete_Call) Return ¶ added in v0.17.2
func (_c *ArtifactRepository_Delete_Call) Return(err error) *ArtifactRepository_Delete_Call
func (*ArtifactRepository_Delete_Call) Run ¶ added in v0.17.2
func (_c *ArtifactRepository_Delete_Call) Run(run func(tx core.DB, id string)) *ArtifactRepository_Delete_Call
func (*ArtifactRepository_Delete_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ArtifactRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id string) error) *ArtifactRepository_Delete_Call
type ArtifactRepository_Expecter ¶ added in v0.17.2
type ArtifactRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ArtifactRepository_Expecter) Activate ¶ added in v0.17.2
func (_e *ArtifactRepository_Expecter) Activate(tx interface{}, id interface{}) *ArtifactRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx core.DB
- id string
func (*ArtifactRepository_Expecter) All ¶ added in v0.17.2
func (_e *ArtifactRepository_Expecter) All() *ArtifactRepository_All_Call
All is a helper method to define mock.On call
func (*ArtifactRepository_Expecter) Begin ¶ added in v0.17.2
func (_e *ArtifactRepository_Expecter) Begin() *ArtifactRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*ArtifactRepository_Expecter) Create ¶ added in v0.17.2
func (_e *ArtifactRepository_Expecter) Create(tx interface{}, t interface{}) *ArtifactRepository_Create_Call
Create is a helper method to define mock.On call
- tx core.DB
- t *models.Artifact
func (*ArtifactRepository_Expecter) CreateBatch ¶ added in v0.17.2
func (_e *ArtifactRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *ArtifactRepository_CreateBatch_Call
CreateBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.Artifact
func (*ArtifactRepository_Expecter) Delete ¶ added in v0.17.2
func (_e *ArtifactRepository_Expecter) Delete(tx interface{}, id interface{}) *ArtifactRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx core.DB
- id string
func (*ArtifactRepository_Expecter) DeleteArtifact ¶ added in v0.17.2
func (_e *ArtifactRepository_Expecter) DeleteArtifact(assetID interface{}, assetVersionName interface{}, artifactName interface{}) *ArtifactRepository_DeleteArtifact_Call
DeleteArtifact is a helper method to define mock.On call
- assetID uuid.UUID
- assetVersionName string
- artifactName string
func (*ArtifactRepository_Expecter) DeleteBatch ¶ added in v0.17.2
func (_e *ArtifactRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *ArtifactRepository_DeleteBatch_Call
DeleteBatch is a helper method to define mock.On call
- tx core.DB
- ids []models.Artifact
func (*ArtifactRepository_Expecter) GetByAssetIDAndAssetVersionName ¶ added in v0.17.2
func (_e *ArtifactRepository_Expecter) GetByAssetIDAndAssetVersionName(assetID interface{}, assetVersionName interface{}) *ArtifactRepository_GetByAssetIDAndAssetVersionName_Call
GetByAssetIDAndAssetVersionName is a helper method to define mock.On call
- assetID uuid.UUID
- assetVersionName string
func (*ArtifactRepository_Expecter) GetDB ¶ added in v0.17.2
func (_e *ArtifactRepository_Expecter) GetDB(tx interface{}) *ArtifactRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx core.DB
func (*ArtifactRepository_Expecter) List ¶ added in v0.17.2
func (_e *ArtifactRepository_Expecter) List(ids interface{}) *ArtifactRepository_List_Call
List is a helper method to define mock.On call
- ids []string
func (*ArtifactRepository_Expecter) Read ¶ added in v0.17.2
func (_e *ArtifactRepository_Expecter) Read(id interface{}) *ArtifactRepository_Read_Call
Read is a helper method to define mock.On call
- id string
func (*ArtifactRepository_Expecter) ReadArtifact ¶ added in v0.17.2
func (_e *ArtifactRepository_Expecter) ReadArtifact(name interface{}, assetVersionName interface{}, assetID interface{}) *ArtifactRepository_ReadArtifact_Call
ReadArtifact is a helper method to define mock.On call
- name string
- assetVersionName string
- assetID uuid.UUID
func (*ArtifactRepository_Expecter) Save ¶ added in v0.17.2
func (_e *ArtifactRepository_Expecter) Save(tx interface{}, t interface{}) *ArtifactRepository_Save_Call
Save is a helper method to define mock.On call
- tx core.DB
- t *models.Artifact
func (*ArtifactRepository_Expecter) SaveBatch ¶ added in v0.17.2
func (_e *ArtifactRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *ArtifactRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.Artifact
func (*ArtifactRepository_Expecter) Transaction ¶ added in v0.17.2
func (_e *ArtifactRepository_Expecter) Transaction(fn interface{}) *ArtifactRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- fn func(tx core.DB) error
func (*ArtifactRepository_Expecter) Upsert ¶ added in v0.17.2
func (_e *ArtifactRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *ArtifactRepository_Upsert_Call
Upsert is a helper method to define mock.On call
- t *[]*models.Artifact
- conflictingColumns []clause.Column
- updateOnly []string
type ArtifactRepository_GetByAssetIDAndAssetVersionName_Call ¶ added in v0.17.2
ArtifactRepository_GetByAssetIDAndAssetVersionName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByAssetIDAndAssetVersionName'
func (*ArtifactRepository_GetByAssetIDAndAssetVersionName_Call) Return ¶ added in v0.17.2
func (_c *ArtifactRepository_GetByAssetIDAndAssetVersionName_Call) Return(artifacts []models.Artifact, err error) *ArtifactRepository_GetByAssetIDAndAssetVersionName_Call
func (*ArtifactRepository_GetByAssetIDAndAssetVersionName_Call) Run ¶ added in v0.17.2
func (_c *ArtifactRepository_GetByAssetIDAndAssetVersionName_Call) Run(run func(assetID uuid.UUID, assetVersionName string)) *ArtifactRepository_GetByAssetIDAndAssetVersionName_Call
func (*ArtifactRepository_GetByAssetIDAndAssetVersionName_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ArtifactRepository_GetByAssetIDAndAssetVersionName_Call) RunAndReturn(run func(assetID uuid.UUID, assetVersionName string) ([]models.Artifact, error)) *ArtifactRepository_GetByAssetIDAndAssetVersionName_Call
type ArtifactRepository_GetDB_Call ¶ added in v0.17.2
ArtifactRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*ArtifactRepository_GetDB_Call) Return ¶ added in v0.17.2
func (_c *ArtifactRepository_GetDB_Call) Return(v core.DB) *ArtifactRepository_GetDB_Call
func (*ArtifactRepository_GetDB_Call) Run ¶ added in v0.17.2
func (_c *ArtifactRepository_GetDB_Call) Run(run func(tx core.DB)) *ArtifactRepository_GetDB_Call
func (*ArtifactRepository_GetDB_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ArtifactRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *ArtifactRepository_GetDB_Call
type ArtifactRepository_List_Call ¶ added in v0.17.2
ArtifactRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ArtifactRepository_List_Call) Return ¶ added in v0.17.2
func (_c *ArtifactRepository_List_Call) Return(artifacts []models.Artifact, err error) *ArtifactRepository_List_Call
func (*ArtifactRepository_List_Call) Run ¶ added in v0.17.2
func (_c *ArtifactRepository_List_Call) Run(run func(ids []string)) *ArtifactRepository_List_Call
func (*ArtifactRepository_List_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ArtifactRepository_List_Call) RunAndReturn(run func(ids []string) ([]models.Artifact, error)) *ArtifactRepository_List_Call
type ArtifactRepository_ReadArtifact_Call ¶ added in v0.17.2
ArtifactRepository_ReadArtifact_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadArtifact'
func (*ArtifactRepository_ReadArtifact_Call) Return ¶ added in v0.17.2
func (_c *ArtifactRepository_ReadArtifact_Call) Return(artifact models.Artifact, err error) *ArtifactRepository_ReadArtifact_Call
func (*ArtifactRepository_ReadArtifact_Call) Run ¶ added in v0.17.2
func (_c *ArtifactRepository_ReadArtifact_Call) Run(run func(name string, assetVersionName string, assetID uuid.UUID)) *ArtifactRepository_ReadArtifact_Call
func (*ArtifactRepository_ReadArtifact_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ArtifactRepository_ReadArtifact_Call) RunAndReturn(run func(name string, assetVersionName string, assetID uuid.UUID) (models.Artifact, error)) *ArtifactRepository_ReadArtifact_Call
type ArtifactRepository_Read_Call ¶ added in v0.17.2
ArtifactRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*ArtifactRepository_Read_Call) Return ¶ added in v0.17.2
func (_c *ArtifactRepository_Read_Call) Return(artifact models.Artifact, err error) *ArtifactRepository_Read_Call
func (*ArtifactRepository_Read_Call) Run ¶ added in v0.17.2
func (_c *ArtifactRepository_Read_Call) Run(run func(id string)) *ArtifactRepository_Read_Call
func (*ArtifactRepository_Read_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ArtifactRepository_Read_Call) RunAndReturn(run func(id string) (models.Artifact, error)) *ArtifactRepository_Read_Call
type ArtifactRepository_SaveBatch_Call ¶ added in v0.17.2
ArtifactRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*ArtifactRepository_SaveBatch_Call) Return ¶ added in v0.17.2
func (_c *ArtifactRepository_SaveBatch_Call) Return(err error) *ArtifactRepository_SaveBatch_Call
func (*ArtifactRepository_SaveBatch_Call) Run ¶ added in v0.17.2
func (_c *ArtifactRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.Artifact)) *ArtifactRepository_SaveBatch_Call
func (*ArtifactRepository_SaveBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ArtifactRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Artifact) error) *ArtifactRepository_SaveBatch_Call
type ArtifactRepository_Save_Call ¶ added in v0.17.2
ArtifactRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*ArtifactRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *ArtifactRepository_Save_Call) Return(err error) *ArtifactRepository_Save_Call
func (*ArtifactRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *ArtifactRepository_Save_Call) Run(run func(tx core.DB, t *models.Artifact)) *ArtifactRepository_Save_Call
func (*ArtifactRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ArtifactRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *models.Artifact) error) *ArtifactRepository_Save_Call
type ArtifactRepository_Transaction_Call ¶ added in v0.17.2
ArtifactRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*ArtifactRepository_Transaction_Call) Return ¶ added in v0.17.2
func (_c *ArtifactRepository_Transaction_Call) Return(err error) *ArtifactRepository_Transaction_Call
func (*ArtifactRepository_Transaction_Call) Run ¶ added in v0.17.2
func (_c *ArtifactRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *ArtifactRepository_Transaction_Call
func (*ArtifactRepository_Transaction_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ArtifactRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *ArtifactRepository_Transaction_Call
type ArtifactRepository_Upsert_Call ¶ added in v0.17.2
ArtifactRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*ArtifactRepository_Upsert_Call) Return ¶ added in v0.17.2
func (_c *ArtifactRepository_Upsert_Call) Return(err error) *ArtifactRepository_Upsert_Call
func (*ArtifactRepository_Upsert_Call) Run ¶ added in v0.17.2
func (_c *ArtifactRepository_Upsert_Call) Run(run func(t *[]*models.Artifact, conflictingColumns []clause.Column, updateOnly []string)) *ArtifactRepository_Upsert_Call
func (*ArtifactRepository_Upsert_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ArtifactRepository_Upsert_Call) RunAndReturn(run func(t *[]*models.Artifact, conflictingColumns []clause.Column, updateOnly []string) error) *ArtifactRepository_Upsert_Call
type ArtifactRiskHistoryRepository ¶ added in v0.17.2
ArtifactRiskHistoryRepository is an autogenerated mock type for the ArtifactRiskHistoryRepository type
func NewArtifactRiskHistoryRepository ¶ added in v0.17.2
func NewArtifactRiskHistoryRepository(t interface { mock.TestingT Cleanup(func()) }) *ArtifactRiskHistoryRepository
NewArtifactRiskHistoryRepository creates a new instance of ArtifactRiskHistoryRepository. 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 (*ArtifactRiskHistoryRepository) EXPECT ¶ added in v0.17.2
func (_m *ArtifactRiskHistoryRepository) EXPECT() *ArtifactRiskHistoryRepository_Expecter
func (*ArtifactRiskHistoryRepository) GetRiskHistory ¶ added in v0.17.2
func (_mock *ArtifactRiskHistoryRepository) GetRiskHistory(artifactName *string, assetVersionName string, assetID uuid.UUID, start time.Time, end time.Time) ([]models.ArtifactRiskHistory, error)
GetRiskHistory provides a mock function for the type ArtifactRiskHistoryRepository
func (*ArtifactRiskHistoryRepository) GetRiskHistoryByRelease ¶ added in v0.17.2
func (_mock *ArtifactRiskHistoryRepository) GetRiskHistoryByRelease(releaseID uuid.UUID, start time.Time, end time.Time) ([]models.ArtifactRiskHistory, error)
GetRiskHistoryByRelease provides a mock function for the type ArtifactRiskHistoryRepository
func (*ArtifactRiskHistoryRepository) UpdateRiskAggregation ¶ added in v0.17.2
func (_mock *ArtifactRiskHistoryRepository) UpdateRiskAggregation(assetRisk *models.ArtifactRiskHistory) error
UpdateRiskAggregation provides a mock function for the type ArtifactRiskHistoryRepository
type ArtifactRiskHistoryRepository_Expecter ¶ added in v0.17.2
type ArtifactRiskHistoryRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ArtifactRiskHistoryRepository_Expecter) GetRiskHistory ¶ added in v0.17.2
func (_e *ArtifactRiskHistoryRepository_Expecter) GetRiskHistory(artifactName interface{}, assetVersionName interface{}, assetID interface{}, start interface{}, end interface{}) *ArtifactRiskHistoryRepository_GetRiskHistory_Call
GetRiskHistory is a helper method to define mock.On call
- artifactName *string
- assetVersionName string
- assetID uuid.UUID
- start time.Time
- end time.Time
func (*ArtifactRiskHistoryRepository_Expecter) GetRiskHistoryByRelease ¶ added in v0.17.2
func (_e *ArtifactRiskHistoryRepository_Expecter) GetRiskHistoryByRelease(releaseID interface{}, start interface{}, end interface{}) *ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call
GetRiskHistoryByRelease is a helper method to define mock.On call
- releaseID uuid.UUID
- start time.Time
- end time.Time
func (*ArtifactRiskHistoryRepository_Expecter) UpdateRiskAggregation ¶ added in v0.17.2
func (_e *ArtifactRiskHistoryRepository_Expecter) UpdateRiskAggregation(assetRisk interface{}) *ArtifactRiskHistoryRepository_UpdateRiskAggregation_Call
UpdateRiskAggregation is a helper method to define mock.On call
- assetRisk *models.ArtifactRiskHistory
type ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call ¶ added in v0.17.2
ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRiskHistoryByRelease'
func (*ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call) Return ¶ added in v0.17.2
func (_c *ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call) Return(artifactRiskHistorys []models.ArtifactRiskHistory, err error) *ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call
func (*ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call) Run ¶ added in v0.17.2
func (_c *ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call) Run(run func(releaseID uuid.UUID, start time.Time, end time.Time)) *ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call
func (*ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call) RunAndReturn(run func(releaseID uuid.UUID, start time.Time, end time.Time) ([]models.ArtifactRiskHistory, error)) *ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call
type ArtifactRiskHistoryRepository_GetRiskHistory_Call ¶ added in v0.17.2
ArtifactRiskHistoryRepository_GetRiskHistory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRiskHistory'
func (*ArtifactRiskHistoryRepository_GetRiskHistory_Call) Return ¶ added in v0.17.2
func (_c *ArtifactRiskHistoryRepository_GetRiskHistory_Call) Return(artifactRiskHistorys []models.ArtifactRiskHistory, err error) *ArtifactRiskHistoryRepository_GetRiskHistory_Call
func (*ArtifactRiskHistoryRepository_GetRiskHistory_Call) Run ¶ added in v0.17.2
func (_c *ArtifactRiskHistoryRepository_GetRiskHistory_Call) Run(run func(artifactName *string, assetVersionName string, assetID uuid.UUID, start time.Time, end time.Time)) *ArtifactRiskHistoryRepository_GetRiskHistory_Call
func (*ArtifactRiskHistoryRepository_GetRiskHistory_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ArtifactRiskHistoryRepository_GetRiskHistory_Call) RunAndReturn(run func(artifactName *string, assetVersionName string, assetID uuid.UUID, start time.Time, end time.Time) ([]models.ArtifactRiskHistory, error)) *ArtifactRiskHistoryRepository_GetRiskHistory_Call
type ArtifactRiskHistoryRepository_UpdateRiskAggregation_Call ¶ added in v0.17.2
ArtifactRiskHistoryRepository_UpdateRiskAggregation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRiskAggregation'
func (*ArtifactRiskHistoryRepository_UpdateRiskAggregation_Call) Run ¶ added in v0.17.2
func (_c *ArtifactRiskHistoryRepository_UpdateRiskAggregation_Call) Run(run func(assetRisk *models.ArtifactRiskHistory)) *ArtifactRiskHistoryRepository_UpdateRiskAggregation_Call
func (*ArtifactRiskHistoryRepository_UpdateRiskAggregation_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ArtifactRiskHistoryRepository_UpdateRiskAggregation_Call) RunAndReturn(run func(assetRisk *models.ArtifactRiskHistory) error) *ArtifactRiskHistoryRepository_UpdateRiskAggregation_Call
type ArtifactService ¶ added in v0.17.2
ArtifactService is an autogenerated mock type for the ArtifactService type
func NewArtifactService ¶ added in v0.17.2
func NewArtifactService(t interface { mock.TestingT Cleanup(func()) }) *ArtifactService
NewArtifactService creates a new instance of ArtifactService. 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 (*ArtifactService) DeleteArtifact ¶ added in v0.17.2
func (_mock *ArtifactService) DeleteArtifact(assetID uuid.UUID, assetVersionName string, artifactName string) error
DeleteArtifact provides a mock function for the type ArtifactService
func (*ArtifactService) EXPECT ¶ added in v0.17.2
func (_m *ArtifactService) EXPECT() *ArtifactService_Expecter
func (*ArtifactService) GetArtifactNamesByAssetIDAndAssetVersionName ¶ added in v0.17.2
func (_mock *ArtifactService) GetArtifactNamesByAssetIDAndAssetVersionName(assetID uuid.UUID, assetVersionName string) ([]models.Artifact, error)
GetArtifactNamesByAssetIDAndAssetVersionName provides a mock function for the type ArtifactService
func (*ArtifactService) SaveArtifact ¶ added in v0.17.2
func (_mock *ArtifactService) SaveArtifact(artifact *models.Artifact) error
SaveArtifact provides a mock function for the type ArtifactService
type ArtifactService_DeleteArtifact_Call ¶ added in v0.17.2
ArtifactService_DeleteArtifact_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteArtifact'
func (*ArtifactService_DeleteArtifact_Call) Return ¶ added in v0.17.2
func (_c *ArtifactService_DeleteArtifact_Call) Return(err error) *ArtifactService_DeleteArtifact_Call
func (*ArtifactService_DeleteArtifact_Call) Run ¶ added in v0.17.2
func (_c *ArtifactService_DeleteArtifact_Call) Run(run func(assetID uuid.UUID, assetVersionName string, artifactName string)) *ArtifactService_DeleteArtifact_Call
func (*ArtifactService_DeleteArtifact_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ArtifactService_DeleteArtifact_Call) RunAndReturn(run func(assetID uuid.UUID, assetVersionName string, artifactName string) error) *ArtifactService_DeleteArtifact_Call
type ArtifactService_Expecter ¶ added in v0.17.2
type ArtifactService_Expecter struct {
// contains filtered or unexported fields
}
func (*ArtifactService_Expecter) DeleteArtifact ¶ added in v0.17.2
func (_e *ArtifactService_Expecter) DeleteArtifact(assetID interface{}, assetVersionName interface{}, artifactName interface{}) *ArtifactService_DeleteArtifact_Call
DeleteArtifact is a helper method to define mock.On call
- assetID uuid.UUID
- assetVersionName string
- artifactName string
func (*ArtifactService_Expecter) GetArtifactNamesByAssetIDAndAssetVersionName ¶ added in v0.17.2
func (_e *ArtifactService_Expecter) GetArtifactNamesByAssetIDAndAssetVersionName(assetID interface{}, assetVersionName interface{}) *ArtifactService_GetArtifactNamesByAssetIDAndAssetVersionName_Call
GetArtifactNamesByAssetIDAndAssetVersionName is a helper method to define mock.On call
- assetID uuid.UUID
- assetVersionName string
func (*ArtifactService_Expecter) SaveArtifact ¶ added in v0.17.2
func (_e *ArtifactService_Expecter) SaveArtifact(artifact interface{}) *ArtifactService_SaveArtifact_Call
SaveArtifact is a helper method to define mock.On call
- artifact *models.Artifact
type ArtifactService_GetArtifactNamesByAssetIDAndAssetVersionName_Call ¶ added in v0.17.2
ArtifactService_GetArtifactNamesByAssetIDAndAssetVersionName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetArtifactNamesByAssetIDAndAssetVersionName'
func (*ArtifactService_GetArtifactNamesByAssetIDAndAssetVersionName_Call) Return ¶ added in v0.17.2
func (_c *ArtifactService_GetArtifactNamesByAssetIDAndAssetVersionName_Call) Return(artifacts []models.Artifact, err error) *ArtifactService_GetArtifactNamesByAssetIDAndAssetVersionName_Call
func (*ArtifactService_GetArtifactNamesByAssetIDAndAssetVersionName_Call) Run ¶ added in v0.17.2
func (_c *ArtifactService_GetArtifactNamesByAssetIDAndAssetVersionName_Call) Run(run func(assetID uuid.UUID, assetVersionName string)) *ArtifactService_GetArtifactNamesByAssetIDAndAssetVersionName_Call
func (*ArtifactService_GetArtifactNamesByAssetIDAndAssetVersionName_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ArtifactService_GetArtifactNamesByAssetIDAndAssetVersionName_Call) RunAndReturn(run func(assetID uuid.UUID, assetVersionName string) ([]models.Artifact, error)) *ArtifactService_GetArtifactNamesByAssetIDAndAssetVersionName_Call
type ArtifactService_SaveArtifact_Call ¶ added in v0.17.2
ArtifactService_SaveArtifact_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveArtifact'
func (*ArtifactService_SaveArtifact_Call) Return ¶ added in v0.17.2
func (_c *ArtifactService_SaveArtifact_Call) Return(err error) *ArtifactService_SaveArtifact_Call
func (*ArtifactService_SaveArtifact_Call) Run ¶ added in v0.17.2
func (_c *ArtifactService_SaveArtifact_Call) Run(run func(artifact *models.Artifact)) *ArtifactService_SaveArtifact_Call
func (*ArtifactService_SaveArtifact_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ArtifactService_SaveArtifact_Call) RunAndReturn(run func(artifact *models.Artifact) error) *ArtifactService_SaveArtifact_Call
type AssetRepository ¶
AssetRepository is an autogenerated mock type for the AssetRepository 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 for the type AssetRepository
func (*AssetRepository) All ¶ added in v0.17.2
func (_mock *AssetRepository) All() ([]models.Asset, error)
All provides a mock function for the type AssetRepository
func (*AssetRepository) Begin ¶
func (_mock *AssetRepository) Begin() core.DB
Begin provides a mock function for the type AssetRepository
func (*AssetRepository) CreateBatch ¶
CreateBatch provides a mock function for the type AssetRepository
func (*AssetRepository) DeleteBatch ¶ added in v0.17.2
DeleteBatch provides a mock function for the type AssetRepository
func (*AssetRepository) EXPECT ¶
func (_m *AssetRepository) EXPECT() *AssetRepository_Expecter
func (*AssetRepository) FindAssetByExternalProviderID ¶ added in v0.17.2
func (_mock *AssetRepository) FindAssetByExternalProviderID(externalEntityProviderID string, externalEntityID string) (*models.Asset, error)
FindAssetByExternalProviderID provides a mock function for the type AssetRepository
func (*AssetRepository) FindByName ¶
func (_mock *AssetRepository) FindByName(name string) (models.Asset, error)
FindByName provides a mock function for the type AssetRepository
func (*AssetRepository) GetAllAssetsFromDB ¶ added in v0.17.2
func (_mock *AssetRepository) GetAllAssetsFromDB() ([]models.Asset, error)
GetAllAssetsFromDB provides a mock function for the type AssetRepository
func (*AssetRepository) GetAssetIDByBadgeSecret ¶ added in v0.17.2
GetAssetIDByBadgeSecret provides a mock function for the type AssetRepository
func (*AssetRepository) GetAssetIDBySlug ¶
GetAssetIDBySlug provides a mock function for the type AssetRepository
func (*AssetRepository) GetByOrgID ¶ added in v0.17.2
GetByOrgID provides a mock function for the type AssetRepository
func (*AssetRepository) GetByProjectID ¶
GetByProjectID provides a mock function for the type AssetRepository
func (*AssetRepository) GetDB ¶
func (_mock *AssetRepository) GetDB(tx core.DB) core.DB
GetDB provides a mock function for the type AssetRepository
func (*AssetRepository) GetFQNByID ¶ added in v0.17.2
func (_mock *AssetRepository) GetFQNByID(id uuid.UUID) (string, error)
GetFQNByID provides a mock function for the type AssetRepository
func (*AssetRepository) ReadBySlug ¶
ReadBySlug provides a mock function for the type AssetRepository
func (*AssetRepository) ReadBySlugUnscoped ¶ added in v0.5.15
func (_mock *AssetRepository) ReadBySlugUnscoped(projectID uuid.UUID, slug string) (models.Asset, error)
ReadBySlugUnscoped provides a mock function for the type AssetRepository
func (*AssetRepository) ReadWithAssetVersions ¶ added in v0.17.2
ReadWithAssetVersions provides a mock function for the type AssetRepository
func (*AssetRepository) Transaction ¶
func (_mock *AssetRepository) Transaction(fn func(tx core.DB) error) error
Transaction provides a mock function for the type AssetRepository
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(err error) *AssetRepository_Activate_Call
func (*AssetRepository_Activate_Call) Run ¶ added in v0.5.15
func (_c *AssetRepository_Activate_Call) Run(run func(tx core.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(tx core.DB, id uuid.UUID) error) *AssetRepository_Activate_Call
type AssetRepository_All_Call ¶ added in v0.17.2
AssetRepository_All_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'All'
func (*AssetRepository_All_Call) Return ¶ added in v0.17.2
func (_c *AssetRepository_All_Call) Return(assets []models.Asset, err error) *AssetRepository_All_Call
func (*AssetRepository_All_Call) Run ¶ added in v0.17.2
func (_c *AssetRepository_All_Call) Run(run func()) *AssetRepository_All_Call
func (*AssetRepository_All_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetRepository_All_Call) RunAndReturn(run func() ([]models.Asset, error)) *AssetRepository_All_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(v core.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() core.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(err error) *AssetRepository_CreateBatch_Call
func (*AssetRepository_CreateBatch_Call) Run ¶
func (_c *AssetRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.Asset)) *AssetRepository_CreateBatch_Call
func (*AssetRepository_CreateBatch_Call) RunAndReturn ¶
func (_c *AssetRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []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(err error) *AssetRepository_Create_Call
func (*AssetRepository_Create_Call) Run ¶
func (_c *AssetRepository_Create_Call) Run(run func(tx core.DB, t *models.Asset)) *AssetRepository_Create_Call
func (*AssetRepository_Create_Call) RunAndReturn ¶
func (_c *AssetRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.Asset) error) *AssetRepository_Create_Call
type AssetRepository_DeleteBatch_Call ¶ added in v0.17.2
AssetRepository_DeleteBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBatch'
func (*AssetRepository_DeleteBatch_Call) Return ¶ added in v0.17.2
func (_c *AssetRepository_DeleteBatch_Call) Return(err error) *AssetRepository_DeleteBatch_Call
func (*AssetRepository_DeleteBatch_Call) Run ¶ added in v0.17.2
func (_c *AssetRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.Asset)) *AssetRepository_DeleteBatch_Call
func (*AssetRepository_DeleteBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.Asset) error) *AssetRepository_DeleteBatch_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(err error) *AssetRepository_Delete_Call
func (*AssetRepository_Delete_Call) Run ¶
func (_c *AssetRepository_Delete_Call) Run(run func(tx core.DB, id uuid.UUID)) *AssetRepository_Delete_Call
func (*AssetRepository_Delete_Call) RunAndReturn ¶
func (_c *AssetRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id 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 core.DB
- id uuid.UUID
func (*AssetRepository_Expecter) All ¶ added in v0.17.2
func (_e *AssetRepository_Expecter) All() *AssetRepository_All_Call
All is a helper method to define mock.On call
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 core.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 core.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 core.DB
- id uuid.UUID
func (*AssetRepository_Expecter) DeleteBatch ¶ added in v0.17.2
func (_e *AssetRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *AssetRepository_DeleteBatch_Call
DeleteBatch is a helper method to define mock.On call
- tx core.DB
- ids []models.Asset
func (*AssetRepository_Expecter) FindAssetByExternalProviderID ¶ added in v0.17.2
func (_e *AssetRepository_Expecter) FindAssetByExternalProviderID(externalEntityProviderID interface{}, externalEntityID interface{}) *AssetRepository_FindAssetByExternalProviderID_Call
FindAssetByExternalProviderID is a helper method to define mock.On call
- externalEntityProviderID string
- externalEntityID string
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) GetAllAssetsFromDB ¶ added in v0.17.2
func (_e *AssetRepository_Expecter) GetAllAssetsFromDB() *AssetRepository_GetAllAssetsFromDB_Call
GetAllAssetsFromDB is a helper method to define mock.On call
func (*AssetRepository_Expecter) GetAssetIDByBadgeSecret ¶ added in v0.17.2
func (_e *AssetRepository_Expecter) GetAssetIDByBadgeSecret(badgeSecret interface{}) *AssetRepository_GetAssetIDByBadgeSecret_Call
GetAssetIDByBadgeSecret is a helper method to define mock.On call
- badgeSecret uuid.UUID
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) GetByOrgID ¶ added in v0.17.2
func (_e *AssetRepository_Expecter) GetByOrgID(organizationID interface{}) *AssetRepository_GetByOrgID_Call
GetByOrgID is a helper method to define mock.On call
- organizationID uuid.UUID
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 core.DB
func (*AssetRepository_Expecter) GetFQNByID ¶ added in v0.17.2
func (_e *AssetRepository_Expecter) GetFQNByID(id interface{}) *AssetRepository_GetFQNByID_Call
GetFQNByID is a helper method to define mock.On call
- id uuid.UUID
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) ReadWithAssetVersions ¶ added in v0.17.2
func (_e *AssetRepository_Expecter) ReadWithAssetVersions(assetID interface{}) *AssetRepository_ReadWithAssetVersions_Call
ReadWithAssetVersions is a helper method to define mock.On call
- assetID uuid.UUID
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 core.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 core.DB
- ts []models.Asset
func (*AssetRepository_Expecter) Transaction ¶
func (_e *AssetRepository_Expecter) Transaction(fn interface{}) *AssetRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- fn func(tx core.DB) error
func (*AssetRepository_Expecter) Update ¶
func (_e *AssetRepository_Expecter) Update(tx interface{}, asset interface{}) *AssetRepository_Update_Call
Update is a helper method to define mock.On call
- tx core.DB
- asset *models.Asset
func (*AssetRepository_Expecter) Upsert ¶ added in v0.17.2
func (_e *AssetRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *AssetRepository_Upsert_Call
Upsert is a helper method to define mock.On call
- t *[]*models.Asset
- conflictingColumns []clause.Column
- updateOnly []string
type AssetRepository_FindAssetByExternalProviderID_Call ¶ added in v0.17.2
AssetRepository_FindAssetByExternalProviderID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindAssetByExternalProviderID'
func (*AssetRepository_FindAssetByExternalProviderID_Call) Return ¶ added in v0.17.2
func (_c *AssetRepository_FindAssetByExternalProviderID_Call) Return(asset *models.Asset, err error) *AssetRepository_FindAssetByExternalProviderID_Call
func (*AssetRepository_FindAssetByExternalProviderID_Call) Run ¶ added in v0.17.2
func (_c *AssetRepository_FindAssetByExternalProviderID_Call) Run(run func(externalEntityProviderID string, externalEntityID string)) *AssetRepository_FindAssetByExternalProviderID_Call
func (*AssetRepository_FindAssetByExternalProviderID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetRepository_FindAssetByExternalProviderID_Call) RunAndReturn(run func(externalEntityProviderID string, externalEntityID string) (*models.Asset, error)) *AssetRepository_FindAssetByExternalProviderID_Call
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(asset models.Asset, err 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(name string) (models.Asset, error)) *AssetRepository_FindByName_Call
type AssetRepository_GetAllAssetsFromDB_Call ¶ added in v0.17.2
AssetRepository_GetAllAssetsFromDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllAssetsFromDB'
func (*AssetRepository_GetAllAssetsFromDB_Call) Return ¶ added in v0.17.2
func (_c *AssetRepository_GetAllAssetsFromDB_Call) Return(assets []models.Asset, err error) *AssetRepository_GetAllAssetsFromDB_Call
func (*AssetRepository_GetAllAssetsFromDB_Call) Run ¶ added in v0.17.2
func (_c *AssetRepository_GetAllAssetsFromDB_Call) Run(run func()) *AssetRepository_GetAllAssetsFromDB_Call
func (*AssetRepository_GetAllAssetsFromDB_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetRepository_GetAllAssetsFromDB_Call) RunAndReturn(run func() ([]models.Asset, error)) *AssetRepository_GetAllAssetsFromDB_Call
type AssetRepository_GetAssetIDByBadgeSecret_Call ¶ added in v0.17.2
AssetRepository_GetAssetIDByBadgeSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAssetIDByBadgeSecret'
func (*AssetRepository_GetAssetIDByBadgeSecret_Call) Return ¶ added in v0.17.2
func (_c *AssetRepository_GetAssetIDByBadgeSecret_Call) Return(asset models.Asset, err error) *AssetRepository_GetAssetIDByBadgeSecret_Call
func (*AssetRepository_GetAssetIDByBadgeSecret_Call) Run ¶ added in v0.17.2
func (_c *AssetRepository_GetAssetIDByBadgeSecret_Call) Run(run func(badgeSecret uuid.UUID)) *AssetRepository_GetAssetIDByBadgeSecret_Call
func (*AssetRepository_GetAssetIDByBadgeSecret_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetRepository_GetAssetIDByBadgeSecret_Call) RunAndReturn(run func(badgeSecret uuid.UUID) (models.Asset, error)) *AssetRepository_GetAssetIDByBadgeSecret_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(uUID uuid.UUID, err 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(projectID uuid.UUID, slug string) (uuid.UUID, error)) *AssetRepository_GetAssetIDBySlug_Call
type AssetRepository_GetByOrgID_Call ¶ added in v0.17.2
AssetRepository_GetByOrgID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByOrgID'
func (*AssetRepository_GetByOrgID_Call) Return ¶ added in v0.17.2
func (_c *AssetRepository_GetByOrgID_Call) Return(assets []models.Asset, err error) *AssetRepository_GetByOrgID_Call
func (*AssetRepository_GetByOrgID_Call) Run ¶ added in v0.17.2
func (_c *AssetRepository_GetByOrgID_Call) Run(run func(organizationID uuid.UUID)) *AssetRepository_GetByOrgID_Call
func (*AssetRepository_GetByOrgID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetRepository_GetByOrgID_Call) RunAndReturn(run func(organizationID uuid.UUID) ([]models.Asset, error)) *AssetRepository_GetByOrgID_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(assets []models.Asset, err 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(projectID 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(v core.DB) *AssetRepository_GetDB_Call
func (*AssetRepository_GetDB_Call) Run ¶
func (_c *AssetRepository_GetDB_Call) Run(run func(tx core.DB)) *AssetRepository_GetDB_Call
func (*AssetRepository_GetDB_Call) RunAndReturn ¶
func (_c *AssetRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *AssetRepository_GetDB_Call
type AssetRepository_GetFQNByID_Call ¶ added in v0.17.2
AssetRepository_GetFQNByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFQNByID'
func (*AssetRepository_GetFQNByID_Call) Return ¶ added in v0.17.2
func (_c *AssetRepository_GetFQNByID_Call) Return(s string, err error) *AssetRepository_GetFQNByID_Call
func (*AssetRepository_GetFQNByID_Call) Run ¶ added in v0.17.2
func (_c *AssetRepository_GetFQNByID_Call) Run(run func(id uuid.UUID)) *AssetRepository_GetFQNByID_Call
func (*AssetRepository_GetFQNByID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetRepository_GetFQNByID_Call) RunAndReturn(run func(id uuid.UUID) (string, error)) *AssetRepository_GetFQNByID_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(assets []models.Asset, err 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(ids []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(asset models.Asset, err 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(projectID uuid.UUID, slug 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(asset models.Asset, err 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(projectID uuid.UUID, slug string) (models.Asset, error)) *AssetRepository_ReadBySlug_Call
type AssetRepository_ReadWithAssetVersions_Call ¶ added in v0.17.2
AssetRepository_ReadWithAssetVersions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadWithAssetVersions'
func (*AssetRepository_ReadWithAssetVersions_Call) Return ¶ added in v0.17.2
func (_c *AssetRepository_ReadWithAssetVersions_Call) Return(asset models.Asset, err error) *AssetRepository_ReadWithAssetVersions_Call
func (*AssetRepository_ReadWithAssetVersions_Call) Run ¶ added in v0.17.2
func (_c *AssetRepository_ReadWithAssetVersions_Call) Run(run func(assetID uuid.UUID)) *AssetRepository_ReadWithAssetVersions_Call
func (*AssetRepository_ReadWithAssetVersions_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetRepository_ReadWithAssetVersions_Call) RunAndReturn(run func(assetID uuid.UUID) (models.Asset, error)) *AssetRepository_ReadWithAssetVersions_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(asset models.Asset, err 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(id 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(err error) *AssetRepository_SaveBatch_Call
func (*AssetRepository_SaveBatch_Call) Run ¶
func (_c *AssetRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.Asset)) *AssetRepository_SaveBatch_Call
func (*AssetRepository_SaveBatch_Call) RunAndReturn ¶
func (_c *AssetRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []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(err error) *AssetRepository_Save_Call
func (*AssetRepository_Save_Call) Run ¶
func (_c *AssetRepository_Save_Call) Run(run func(tx core.DB, t *models.Asset)) *AssetRepository_Save_Call
func (*AssetRepository_Save_Call) RunAndReturn ¶
func (_c *AssetRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *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(err error) *AssetRepository_Transaction_Call
func (*AssetRepository_Transaction_Call) Run ¶
func (_c *AssetRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *AssetRepository_Transaction_Call
func (*AssetRepository_Transaction_Call) RunAndReturn ¶
func (_c *AssetRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.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(err error) *AssetRepository_Update_Call
func (*AssetRepository_Update_Call) Run ¶
func (_c *AssetRepository_Update_Call) Run(run func(tx core.DB, asset *models.Asset)) *AssetRepository_Update_Call
func (*AssetRepository_Update_Call) RunAndReturn ¶
func (_c *AssetRepository_Update_Call) RunAndReturn(run func(tx core.DB, asset *models.Asset) error) *AssetRepository_Update_Call
type AssetRepository_Upsert_Call ¶ added in v0.17.2
AssetRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*AssetRepository_Upsert_Call) Return ¶ added in v0.17.2
func (_c *AssetRepository_Upsert_Call) Return(err error) *AssetRepository_Upsert_Call
func (*AssetRepository_Upsert_Call) Run ¶ added in v0.17.2
func (_c *AssetRepository_Upsert_Call) Run(run func(t *[]*models.Asset, conflictingColumns []clause.Column, updateOnly []string)) *AssetRepository_Upsert_Call
func (*AssetRepository_Upsert_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetRepository_Upsert_Call) RunAndReturn(run func(t *[]*models.Asset, conflictingColumns []clause.Column, updateOnly []string) error) *AssetRepository_Upsert_Call
type AssetService ¶ added in v0.17.2
AssetService is an autogenerated mock type for the AssetService type
func NewAssetService ¶ added in v0.17.2
func NewAssetService(t interface { mock.TestingT Cleanup(func()) }) *AssetService
NewAssetService creates a new instance of AssetService. 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 (*AssetService) CreateAsset ¶ added in v0.17.2
CreateAsset provides a mock function for the type AssetService
func (*AssetService) EXPECT ¶ added in v0.17.2
func (_m *AssetService) EXPECT() *AssetService_Expecter
func (*AssetService) GetCVSSBadgeSVG ¶ added in v0.17.2
func (_mock *AssetService) GetCVSSBadgeSVG(results []models.ArtifactRiskHistory) string
GetCVSSBadgeSVG provides a mock function for the type AssetService
func (*AssetService) UpdateAssetRequirements ¶ added in v0.17.2
func (_mock *AssetService) UpdateAssetRequirements(asset models.Asset, responsible string, justification string) error
UpdateAssetRequirements provides a mock function for the type AssetService
type AssetService_CreateAsset_Call ¶ added in v0.17.2
AssetService_CreateAsset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAsset'
func (*AssetService_CreateAsset_Call) Return ¶ added in v0.17.2
func (_c *AssetService_CreateAsset_Call) Return(asset1 *models.Asset, err error) *AssetService_CreateAsset_Call
func (*AssetService_CreateAsset_Call) Run ¶ added in v0.17.2
func (_c *AssetService_CreateAsset_Call) Run(run func(asset models.Asset)) *AssetService_CreateAsset_Call
func (*AssetService_CreateAsset_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetService_CreateAsset_Call) RunAndReturn(run func(asset models.Asset) (*models.Asset, error)) *AssetService_CreateAsset_Call
type AssetService_Expecter ¶ added in v0.17.2
type AssetService_Expecter struct {
// contains filtered or unexported fields
}
func (*AssetService_Expecter) CreateAsset ¶ added in v0.17.2
func (_e *AssetService_Expecter) CreateAsset(asset interface{}) *AssetService_CreateAsset_Call
CreateAsset is a helper method to define mock.On call
- asset models.Asset
func (*AssetService_Expecter) GetCVSSBadgeSVG ¶ added in v0.17.2
func (_e *AssetService_Expecter) GetCVSSBadgeSVG(results interface{}) *AssetService_GetCVSSBadgeSVG_Call
GetCVSSBadgeSVG is a helper method to define mock.On call
- results []models.ArtifactRiskHistory
func (*AssetService_Expecter) UpdateAssetRequirements ¶ added in v0.17.2
func (_e *AssetService_Expecter) UpdateAssetRequirements(asset interface{}, responsible interface{}, justification interface{}) *AssetService_UpdateAssetRequirements_Call
UpdateAssetRequirements is a helper method to define mock.On call
- asset models.Asset
- responsible string
- justification string
type AssetService_GetCVSSBadgeSVG_Call ¶ added in v0.17.2
AssetService_GetCVSSBadgeSVG_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCVSSBadgeSVG'
func (*AssetService_GetCVSSBadgeSVG_Call) Return ¶ added in v0.17.2
func (_c *AssetService_GetCVSSBadgeSVG_Call) Return(s string) *AssetService_GetCVSSBadgeSVG_Call
func (*AssetService_GetCVSSBadgeSVG_Call) Run ¶ added in v0.17.2
func (_c *AssetService_GetCVSSBadgeSVG_Call) Run(run func(results []models.ArtifactRiskHistory)) *AssetService_GetCVSSBadgeSVG_Call
func (*AssetService_GetCVSSBadgeSVG_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetService_GetCVSSBadgeSVG_Call) RunAndReturn(run func(results []models.ArtifactRiskHistory) string) *AssetService_GetCVSSBadgeSVG_Call
type AssetService_UpdateAssetRequirements_Call ¶ added in v0.17.2
AssetService_UpdateAssetRequirements_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateAssetRequirements'
func (*AssetService_UpdateAssetRequirements_Call) Return ¶ added in v0.17.2
func (_c *AssetService_UpdateAssetRequirements_Call) Return(err error) *AssetService_UpdateAssetRequirements_Call
func (*AssetService_UpdateAssetRequirements_Call) Run ¶ added in v0.17.2
func (_c *AssetService_UpdateAssetRequirements_Call) Run(run func(asset models.Asset, responsible string, justification string)) *AssetService_UpdateAssetRequirements_Call
func (*AssetService_UpdateAssetRequirements_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetService_UpdateAssetRequirements_Call) RunAndReturn(run func(asset models.Asset, responsible string, justification string) error) *AssetService_UpdateAssetRequirements_Call
type AssetVersionRepository ¶ added in v0.17.2
AssetVersionRepository is an autogenerated mock type for the AssetVersionRepository type
func NewAssetVersionRepository ¶ added in v0.17.2
func NewAssetVersionRepository(t interface { mock.TestingT Cleanup(func()) }) *AssetVersionRepository
NewAssetVersionRepository creates a new instance of AssetVersionRepository. 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 (*AssetVersionRepository) All ¶ added in v0.17.2
func (_mock *AssetVersionRepository) All() ([]models.AssetVersion, error)
All provides a mock function for the type AssetVersionRepository
func (*AssetVersionRepository) Delete ¶ added in v0.17.2
func (_mock *AssetVersionRepository) Delete(tx core.DB, assetVersion *models.AssetVersion) error
Delete provides a mock function for the type AssetVersionRepository
func (*AssetVersionRepository) EXPECT ¶ added in v0.17.2
func (_m *AssetVersionRepository) EXPECT() *AssetVersionRepository_Expecter
func (*AssetVersionRepository) FindOrCreate ¶ added in v0.17.2
func (_mock *AssetVersionRepository) FindOrCreate(assetVersionName string, assetID uuid.UUID, tag bool, defaultBranchName *string) (models.AssetVersion, error)
FindOrCreate provides a mock function for the type AssetVersionRepository
func (*AssetVersionRepository) GetAllAssetsVersionFromDBByAssetID ¶ added in v0.17.2
func (_mock *AssetVersionRepository) GetAllAssetsVersionFromDBByAssetID(tx core.DB, assetID uuid.UUID) ([]models.AssetVersion, error)
GetAllAssetsVersionFromDBByAssetID provides a mock function for the type AssetVersionRepository
func (*AssetVersionRepository) GetDB ¶ added in v0.17.2
func (_mock *AssetVersionRepository) GetDB(v core.DB) core.DB
GetDB provides a mock function for the type AssetVersionRepository
func (*AssetVersionRepository) GetDefaultAssetVersion ¶ added in v0.17.2
func (_mock *AssetVersionRepository) GetDefaultAssetVersion(assetID uuid.UUID) (models.AssetVersion, error)
GetDefaultAssetVersion provides a mock function for the type AssetVersionRepository
func (*AssetVersionRepository) GetDefaultAssetVersionsByProjectID ¶ added in v0.17.2
func (_mock *AssetVersionRepository) GetDefaultAssetVersionsByProjectID(projectID uuid.UUID) ([]models.AssetVersion, error)
GetDefaultAssetVersionsByProjectID provides a mock function for the type AssetVersionRepository
func (*AssetVersionRepository) GetDefaultAssetVersionsByProjectIDs ¶ added in v0.17.2
func (_mock *AssetVersionRepository) GetDefaultAssetVersionsByProjectIDs(projectIDs []uuid.UUID) ([]models.AssetVersion, error)
GetDefaultAssetVersionsByProjectIDs provides a mock function for the type AssetVersionRepository
func (*AssetVersionRepository) Read ¶ added in v0.17.2
func (_mock *AssetVersionRepository) Read(assetVersionName string, assetID uuid.UUID) (models.AssetVersion, error)
Read provides a mock function for the type AssetVersionRepository
func (*AssetVersionRepository) ReadBySlug ¶ added in v0.17.2
func (_mock *AssetVersionRepository) ReadBySlug(assetID uuid.UUID, slug string) (models.AssetVersion, error)
ReadBySlug provides a mock function for the type AssetVersionRepository
func (*AssetVersionRepository) Save ¶ added in v0.17.2
func (_mock *AssetVersionRepository) Save(tx core.DB, assetVersion *models.AssetVersion) error
Save provides a mock function for the type AssetVersionRepository
type AssetVersionRepository_All_Call ¶ added in v0.17.2
AssetVersionRepository_All_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'All'
func (*AssetVersionRepository_All_Call) Return ¶ added in v0.17.2
func (_c *AssetVersionRepository_All_Call) Return(assetVersions []models.AssetVersion, err error) *AssetVersionRepository_All_Call
func (*AssetVersionRepository_All_Call) Run ¶ added in v0.17.2
func (_c *AssetVersionRepository_All_Call) Run(run func()) *AssetVersionRepository_All_Call
func (*AssetVersionRepository_All_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetVersionRepository_All_Call) RunAndReturn(run func() ([]models.AssetVersion, error)) *AssetVersionRepository_All_Call
type AssetVersionRepository_Delete_Call ¶ added in v0.17.2
AssetVersionRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*AssetVersionRepository_Delete_Call) Return ¶ added in v0.17.2
func (_c *AssetVersionRepository_Delete_Call) Return(err error) *AssetVersionRepository_Delete_Call
func (*AssetVersionRepository_Delete_Call) Run ¶ added in v0.17.2
func (_c *AssetVersionRepository_Delete_Call) Run(run func(tx core.DB, assetVersion *models.AssetVersion)) *AssetVersionRepository_Delete_Call
func (*AssetVersionRepository_Delete_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetVersionRepository_Delete_Call) RunAndReturn(run func(tx core.DB, assetVersion *models.AssetVersion) error) *AssetVersionRepository_Delete_Call
type AssetVersionRepository_Expecter ¶ added in v0.17.2
type AssetVersionRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*AssetVersionRepository_Expecter) All ¶ added in v0.17.2
func (_e *AssetVersionRepository_Expecter) All() *AssetVersionRepository_All_Call
All is a helper method to define mock.On call
func (*AssetVersionRepository_Expecter) Delete ¶ added in v0.17.2
func (_e *AssetVersionRepository_Expecter) Delete(tx interface{}, assetVersion interface{}) *AssetVersionRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx core.DB
- assetVersion *models.AssetVersion
func (*AssetVersionRepository_Expecter) FindOrCreate ¶ added in v0.17.2
func (_e *AssetVersionRepository_Expecter) FindOrCreate(assetVersionName interface{}, assetID interface{}, tag interface{}, defaultBranchName interface{}) *AssetVersionRepository_FindOrCreate_Call
FindOrCreate is a helper method to define mock.On call
- assetVersionName string
- assetID uuid.UUID
- tag bool
- defaultBranchName *string
func (*AssetVersionRepository_Expecter) GetAllAssetsVersionFromDBByAssetID ¶ added in v0.17.2
func (_e *AssetVersionRepository_Expecter) GetAllAssetsVersionFromDBByAssetID(tx interface{}, assetID interface{}) *AssetVersionRepository_GetAllAssetsVersionFromDBByAssetID_Call
GetAllAssetsVersionFromDBByAssetID is a helper method to define mock.On call
- tx core.DB
- assetID uuid.UUID
func (*AssetVersionRepository_Expecter) GetDB ¶ added in v0.17.2
func (_e *AssetVersionRepository_Expecter) GetDB(v interface{}) *AssetVersionRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- v core.DB
func (*AssetVersionRepository_Expecter) GetDefaultAssetVersion ¶ added in v0.17.2
func (_e *AssetVersionRepository_Expecter) GetDefaultAssetVersion(assetID interface{}) *AssetVersionRepository_GetDefaultAssetVersion_Call
GetDefaultAssetVersion is a helper method to define mock.On call
- assetID uuid.UUID
func (*AssetVersionRepository_Expecter) GetDefaultAssetVersionsByProjectID ¶ added in v0.17.2
func (_e *AssetVersionRepository_Expecter) GetDefaultAssetVersionsByProjectID(projectID interface{}) *AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call
GetDefaultAssetVersionsByProjectID is a helper method to define mock.On call
- projectID uuid.UUID
func (*AssetVersionRepository_Expecter) GetDefaultAssetVersionsByProjectIDs ¶ added in v0.17.2
func (_e *AssetVersionRepository_Expecter) GetDefaultAssetVersionsByProjectIDs(projectIDs interface{}) *AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call
GetDefaultAssetVersionsByProjectIDs is a helper method to define mock.On call
- projectIDs []uuid.UUID
func (*AssetVersionRepository_Expecter) Read ¶ added in v0.17.2
func (_e *AssetVersionRepository_Expecter) Read(assetVersionName interface{}, assetID interface{}) *AssetVersionRepository_Read_Call
Read is a helper method to define mock.On call
- assetVersionName string
- assetID uuid.UUID
func (*AssetVersionRepository_Expecter) ReadBySlug ¶ added in v0.17.2
func (_e *AssetVersionRepository_Expecter) ReadBySlug(assetID interface{}, slug interface{}) *AssetVersionRepository_ReadBySlug_Call
ReadBySlug is a helper method to define mock.On call
- assetID uuid.UUID
- slug string
func (*AssetVersionRepository_Expecter) Save ¶ added in v0.17.2
func (_e *AssetVersionRepository_Expecter) Save(tx interface{}, assetVersion interface{}) *AssetVersionRepository_Save_Call
Save is a helper method to define mock.On call
- tx core.DB
- assetVersion *models.AssetVersion
type AssetVersionRepository_FindOrCreate_Call ¶ added in v0.17.2
AssetVersionRepository_FindOrCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindOrCreate'
func (*AssetVersionRepository_FindOrCreate_Call) Return ¶ added in v0.17.2
func (_c *AssetVersionRepository_FindOrCreate_Call) Return(assetVersion models.AssetVersion, err error) *AssetVersionRepository_FindOrCreate_Call
func (*AssetVersionRepository_FindOrCreate_Call) Run ¶ added in v0.17.2
func (_c *AssetVersionRepository_FindOrCreate_Call) Run(run func(assetVersionName string, assetID uuid.UUID, tag bool, defaultBranchName *string)) *AssetVersionRepository_FindOrCreate_Call
func (*AssetVersionRepository_FindOrCreate_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetVersionRepository_FindOrCreate_Call) RunAndReturn(run func(assetVersionName string, assetID uuid.UUID, tag bool, defaultBranchName *string) (models.AssetVersion, error)) *AssetVersionRepository_FindOrCreate_Call
type AssetVersionRepository_GetAllAssetsVersionFromDBByAssetID_Call ¶ added in v0.17.2
AssetVersionRepository_GetAllAssetsVersionFromDBByAssetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllAssetsVersionFromDBByAssetID'
func (*AssetVersionRepository_GetAllAssetsVersionFromDBByAssetID_Call) Return ¶ added in v0.17.2
func (_c *AssetVersionRepository_GetAllAssetsVersionFromDBByAssetID_Call) Return(assetVersions []models.AssetVersion, err error) *AssetVersionRepository_GetAllAssetsVersionFromDBByAssetID_Call
func (*AssetVersionRepository_GetAllAssetsVersionFromDBByAssetID_Call) Run ¶ added in v0.17.2
func (_c *AssetVersionRepository_GetAllAssetsVersionFromDBByAssetID_Call) Run(run func(tx core.DB, assetID uuid.UUID)) *AssetVersionRepository_GetAllAssetsVersionFromDBByAssetID_Call
func (*AssetVersionRepository_GetAllAssetsVersionFromDBByAssetID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetVersionRepository_GetAllAssetsVersionFromDBByAssetID_Call) RunAndReturn(run func(tx core.DB, assetID uuid.UUID) ([]models.AssetVersion, error)) *AssetVersionRepository_GetAllAssetsVersionFromDBByAssetID_Call
type AssetVersionRepository_GetDB_Call ¶ added in v0.17.2
AssetVersionRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*AssetVersionRepository_GetDB_Call) Return ¶ added in v0.17.2
func (_c *AssetVersionRepository_GetDB_Call) Return(v1 core.DB) *AssetVersionRepository_GetDB_Call
func (*AssetVersionRepository_GetDB_Call) Run ¶ added in v0.17.2
func (_c *AssetVersionRepository_GetDB_Call) Run(run func(v core.DB)) *AssetVersionRepository_GetDB_Call
func (*AssetVersionRepository_GetDB_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetVersionRepository_GetDB_Call) RunAndReturn(run func(v core.DB) core.DB) *AssetVersionRepository_GetDB_Call
type AssetVersionRepository_GetDefaultAssetVersion_Call ¶ added in v0.17.2
AssetVersionRepository_GetDefaultAssetVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDefaultAssetVersion'
func (*AssetVersionRepository_GetDefaultAssetVersion_Call) Return ¶ added in v0.17.2
func (_c *AssetVersionRepository_GetDefaultAssetVersion_Call) Return(assetVersion models.AssetVersion, err error) *AssetVersionRepository_GetDefaultAssetVersion_Call
func (*AssetVersionRepository_GetDefaultAssetVersion_Call) Run ¶ added in v0.17.2
func (_c *AssetVersionRepository_GetDefaultAssetVersion_Call) Run(run func(assetID uuid.UUID)) *AssetVersionRepository_GetDefaultAssetVersion_Call
func (*AssetVersionRepository_GetDefaultAssetVersion_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetVersionRepository_GetDefaultAssetVersion_Call) RunAndReturn(run func(assetID uuid.UUID) (models.AssetVersion, error)) *AssetVersionRepository_GetDefaultAssetVersion_Call
type AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call ¶ added in v0.17.2
AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDefaultAssetVersionsByProjectID'
func (*AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call) Return ¶ added in v0.17.2
func (_c *AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call) Return(assetVersions []models.AssetVersion, err error) *AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call
func (*AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call) Run ¶ added in v0.17.2
func (_c *AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call) Run(run func(projectID uuid.UUID)) *AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call
func (*AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call) RunAndReturn(run func(projectID uuid.UUID) ([]models.AssetVersion, error)) *AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call
type AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call ¶ added in v0.17.2
AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDefaultAssetVersionsByProjectIDs'
func (*AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call) Return ¶ added in v0.17.2
func (_c *AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call) Return(assetVersions []models.AssetVersion, err error) *AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call
func (*AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call) Run ¶ added in v0.17.2
func (_c *AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call) Run(run func(projectIDs []uuid.UUID)) *AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call
func (*AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call) RunAndReturn(run func(projectIDs []uuid.UUID) ([]models.AssetVersion, error)) *AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call
type AssetVersionRepository_ReadBySlug_Call ¶ added in v0.17.2
AssetVersionRepository_ReadBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadBySlug'
func (*AssetVersionRepository_ReadBySlug_Call) Return ¶ added in v0.17.2
func (_c *AssetVersionRepository_ReadBySlug_Call) Return(assetVersion models.AssetVersion, err error) *AssetVersionRepository_ReadBySlug_Call
func (*AssetVersionRepository_ReadBySlug_Call) Run ¶ added in v0.17.2
func (_c *AssetVersionRepository_ReadBySlug_Call) Run(run func(assetID uuid.UUID, slug string)) *AssetVersionRepository_ReadBySlug_Call
func (*AssetVersionRepository_ReadBySlug_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetVersionRepository_ReadBySlug_Call) RunAndReturn(run func(assetID uuid.UUID, slug string) (models.AssetVersion, error)) *AssetVersionRepository_ReadBySlug_Call
type AssetVersionRepository_Read_Call ¶ added in v0.17.2
AssetVersionRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*AssetVersionRepository_Read_Call) Return ¶ added in v0.17.2
func (_c *AssetVersionRepository_Read_Call) Return(assetVersion models.AssetVersion, err error) *AssetVersionRepository_Read_Call
func (*AssetVersionRepository_Read_Call) Run ¶ added in v0.17.2
func (_c *AssetVersionRepository_Read_Call) Run(run func(assetVersionName string, assetID uuid.UUID)) *AssetVersionRepository_Read_Call
func (*AssetVersionRepository_Read_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetVersionRepository_Read_Call) RunAndReturn(run func(assetVersionName string, assetID uuid.UUID) (models.AssetVersion, error)) *AssetVersionRepository_Read_Call
type AssetVersionRepository_Save_Call ¶ added in v0.17.2
AssetVersionRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*AssetVersionRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *AssetVersionRepository_Save_Call) Return(err error) *AssetVersionRepository_Save_Call
func (*AssetVersionRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *AssetVersionRepository_Save_Call) Run(run func(tx core.DB, assetVersion *models.AssetVersion)) *AssetVersionRepository_Save_Call
func (*AssetVersionRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetVersionRepository_Save_Call) RunAndReturn(run func(tx core.DB, assetVersion *models.AssetVersion) error) *AssetVersionRepository_Save_Call
type AssetVersionService ¶ added in v0.17.2
AssetVersionService is an autogenerated mock type for the AssetVersionService type
func NewAssetVersionService ¶ added in v0.17.2
func NewAssetVersionService(t interface { mock.TestingT Cleanup(func()) }) *AssetVersionService
NewAssetVersionService creates a new instance of AssetVersionService. 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 (*AssetVersionService) BuildOpenVeX ¶ added in v0.17.2
func (_mock *AssetVersionService) BuildOpenVeX(asset models.Asset, assetVersion models.AssetVersion, organizationSlug string, dependencyVulns []models.DependencyVuln) vex.VEX
BuildOpenVeX provides a mock function for the type AssetVersionService
func (*AssetVersionService) BuildSBOM ¶ added in v0.17.2
func (_mock *AssetVersionService) BuildSBOM(assetVersion models.AssetVersion, artifactName string, version string, orgName string, components []models.ComponentDependency) (*cyclonedx.BOM, error)
BuildSBOM provides a mock function for the type AssetVersionService
func (*AssetVersionService) BuildVeX ¶ added in v0.17.2
func (_mock *AssetVersionService) BuildVeX(asset models.Asset, assetVersion models.AssetVersion, artifactName string, orgName string, dependencyVulns []models.DependencyVuln) *cyclonedx.BOM
BuildVeX provides a mock function for the type AssetVersionService
func (*AssetVersionService) EXPECT ¶ added in v0.17.2
func (_m *AssetVersionService) EXPECT() *AssetVersionService_Expecter
func (*AssetVersionService) GetAssetVersionsByAssetID ¶ added in v0.17.2
func (_mock *AssetVersionService) GetAssetVersionsByAssetID(assetID uuid.UUID) ([]models.AssetVersion, error)
GetAssetVersionsByAssetID provides a mock function for the type AssetVersionService
func (*AssetVersionService) HandleFirstPartyVulnResult ¶ added in v0.17.2
func (_mock *AssetVersionService) HandleFirstPartyVulnResult(org models.Org, project models.Project, asset models.Asset, assetVersion *models.AssetVersion, sarifScan common.SarifResult, scannerID string, userID string) ([]models.FirstPartyVuln, []models.FirstPartyVuln, []models.FirstPartyVuln, error)
HandleFirstPartyVulnResult provides a mock function for the type AssetVersionService
func (*AssetVersionService) HandleScanResult ¶ added in v0.17.2
func (_mock *AssetVersionService) HandleScanResult(org models.Org, project models.Project, asset models.Asset, assetVersion *models.AssetVersion, vulns []models.VulnInPackage, artifactName string, userID string) ([]models.DependencyVuln, []models.DependencyVuln, []models.DependencyVuln, error)
HandleScanResult provides a mock function for the type AssetVersionService
func (*AssetVersionService) UpdateSBOM ¶ added in v0.17.2
func (_mock *AssetVersionService) UpdateSBOM(org models.Org, project models.Project, asset models.Asset, assetVersion models.AssetVersion, artifactName string, sbom normalize.SBOM) error
UpdateSBOM provides a mock function for the type AssetVersionService
type AssetVersionService_BuildOpenVeX_Call ¶ added in v0.17.2
AssetVersionService_BuildOpenVeX_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildOpenVeX'
func (*AssetVersionService_BuildOpenVeX_Call) Return ¶ added in v0.17.2
func (_c *AssetVersionService_BuildOpenVeX_Call) Return(vEX vex.VEX) *AssetVersionService_BuildOpenVeX_Call
func (*AssetVersionService_BuildOpenVeX_Call) Run ¶ added in v0.17.2
func (_c *AssetVersionService_BuildOpenVeX_Call) Run(run func(asset models.Asset, assetVersion models.AssetVersion, organizationSlug string, dependencyVulns []models.DependencyVuln)) *AssetVersionService_BuildOpenVeX_Call
func (*AssetVersionService_BuildOpenVeX_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetVersionService_BuildOpenVeX_Call) RunAndReturn(run func(asset models.Asset, assetVersion models.AssetVersion, organizationSlug string, dependencyVulns []models.DependencyVuln) vex.VEX) *AssetVersionService_BuildOpenVeX_Call
type AssetVersionService_BuildSBOM_Call ¶ added in v0.17.2
AssetVersionService_BuildSBOM_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildSBOM'
func (*AssetVersionService_BuildSBOM_Call) Return ¶ added in v0.17.2
func (_c *AssetVersionService_BuildSBOM_Call) Return(bOM *cyclonedx.BOM, err error) *AssetVersionService_BuildSBOM_Call
func (*AssetVersionService_BuildSBOM_Call) Run ¶ added in v0.17.2
func (_c *AssetVersionService_BuildSBOM_Call) Run(run func(assetVersion models.AssetVersion, artifactName string, version string, orgName string, components []models.ComponentDependency)) *AssetVersionService_BuildSBOM_Call
func (*AssetVersionService_BuildSBOM_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetVersionService_BuildSBOM_Call) RunAndReturn(run func(assetVersion models.AssetVersion, artifactName string, version string, orgName string, components []models.ComponentDependency) (*cyclonedx.BOM, error)) *AssetVersionService_BuildSBOM_Call
type AssetVersionService_BuildVeX_Call ¶ added in v0.17.2
AssetVersionService_BuildVeX_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildVeX'
func (*AssetVersionService_BuildVeX_Call) Return ¶ added in v0.17.2
func (_c *AssetVersionService_BuildVeX_Call) Return(bOM *cyclonedx.BOM) *AssetVersionService_BuildVeX_Call
func (*AssetVersionService_BuildVeX_Call) Run ¶ added in v0.17.2
func (_c *AssetVersionService_BuildVeX_Call) Run(run func(asset models.Asset, assetVersion models.AssetVersion, artifactName string, orgName string, dependencyVulns []models.DependencyVuln)) *AssetVersionService_BuildVeX_Call
func (*AssetVersionService_BuildVeX_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetVersionService_BuildVeX_Call) RunAndReturn(run func(asset models.Asset, assetVersion models.AssetVersion, artifactName string, orgName string, dependencyVulns []models.DependencyVuln) *cyclonedx.BOM) *AssetVersionService_BuildVeX_Call
type AssetVersionService_Expecter ¶ added in v0.17.2
type AssetVersionService_Expecter struct {
// contains filtered or unexported fields
}
func (*AssetVersionService_Expecter) BuildOpenVeX ¶ added in v0.17.2
func (_e *AssetVersionService_Expecter) BuildOpenVeX(asset interface{}, assetVersion interface{}, organizationSlug interface{}, dependencyVulns interface{}) *AssetVersionService_BuildOpenVeX_Call
BuildOpenVeX is a helper method to define mock.On call
- asset models.Asset
- assetVersion models.AssetVersion
- organizationSlug string
- dependencyVulns []models.DependencyVuln
func (*AssetVersionService_Expecter) BuildSBOM ¶ added in v0.17.2
func (_e *AssetVersionService_Expecter) BuildSBOM(assetVersion interface{}, artifactName interface{}, version interface{}, orgName interface{}, components interface{}) *AssetVersionService_BuildSBOM_Call
BuildSBOM is a helper method to define mock.On call
- assetVersion models.AssetVersion
- artifactName string
- version string
- orgName string
- components []models.ComponentDependency
func (*AssetVersionService_Expecter) BuildVeX ¶ added in v0.17.2
func (_e *AssetVersionService_Expecter) BuildVeX(asset interface{}, assetVersion interface{}, artifactName interface{}, orgName interface{}, dependencyVulns interface{}) *AssetVersionService_BuildVeX_Call
BuildVeX is a helper method to define mock.On call
- asset models.Asset
- assetVersion models.AssetVersion
- artifactName string
- orgName string
- dependencyVulns []models.DependencyVuln
func (*AssetVersionService_Expecter) GetAssetVersionsByAssetID ¶ added in v0.17.2
func (_e *AssetVersionService_Expecter) GetAssetVersionsByAssetID(assetID interface{}) *AssetVersionService_GetAssetVersionsByAssetID_Call
GetAssetVersionsByAssetID is a helper method to define mock.On call
- assetID uuid.UUID
func (*AssetVersionService_Expecter) HandleFirstPartyVulnResult ¶ added in v0.17.2
func (_e *AssetVersionService_Expecter) HandleFirstPartyVulnResult(org interface{}, project interface{}, asset interface{}, assetVersion interface{}, sarifScan interface{}, scannerID interface{}, userID interface{}) *AssetVersionService_HandleFirstPartyVulnResult_Call
HandleFirstPartyVulnResult is a helper method to define mock.On call
- org models.Org
- project models.Project
- asset models.Asset
- assetVersion *models.AssetVersion
- sarifScan common.SarifResult
- scannerID string
- userID string
func (*AssetVersionService_Expecter) HandleScanResult ¶ added in v0.17.2
func (_e *AssetVersionService_Expecter) HandleScanResult(org interface{}, project interface{}, asset interface{}, assetVersion interface{}, vulns interface{}, artifactName interface{}, userID interface{}) *AssetVersionService_HandleScanResult_Call
HandleScanResult is a helper method to define mock.On call
- org models.Org
- project models.Project
- asset models.Asset
- assetVersion *models.AssetVersion
- vulns []models.VulnInPackage
- artifactName string
- userID string
func (*AssetVersionService_Expecter) UpdateSBOM ¶ added in v0.17.2
func (_e *AssetVersionService_Expecter) UpdateSBOM(org interface{}, project interface{}, asset interface{}, assetVersion interface{}, artifactName interface{}, sbom interface{}) *AssetVersionService_UpdateSBOM_Call
UpdateSBOM is a helper method to define mock.On call
- org models.Org
- project models.Project
- asset models.Asset
- assetVersion models.AssetVersion
- artifactName string
- sbom normalize.SBOM
type AssetVersionService_GetAssetVersionsByAssetID_Call ¶ added in v0.17.2
AssetVersionService_GetAssetVersionsByAssetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAssetVersionsByAssetID'
func (*AssetVersionService_GetAssetVersionsByAssetID_Call) Return ¶ added in v0.17.2
func (_c *AssetVersionService_GetAssetVersionsByAssetID_Call) Return(assetVersions []models.AssetVersion, err error) *AssetVersionService_GetAssetVersionsByAssetID_Call
func (*AssetVersionService_GetAssetVersionsByAssetID_Call) Run ¶ added in v0.17.2
func (_c *AssetVersionService_GetAssetVersionsByAssetID_Call) Run(run func(assetID uuid.UUID)) *AssetVersionService_GetAssetVersionsByAssetID_Call
func (*AssetVersionService_GetAssetVersionsByAssetID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetVersionService_GetAssetVersionsByAssetID_Call) RunAndReturn(run func(assetID uuid.UUID) ([]models.AssetVersion, error)) *AssetVersionService_GetAssetVersionsByAssetID_Call
type AssetVersionService_HandleFirstPartyVulnResult_Call ¶ added in v0.17.2
AssetVersionService_HandleFirstPartyVulnResult_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleFirstPartyVulnResult'
func (*AssetVersionService_HandleFirstPartyVulnResult_Call) Return ¶ added in v0.17.2
func (_c *AssetVersionService_HandleFirstPartyVulnResult_Call) Return(firstPartyVulns []models.FirstPartyVuln, firstPartyVulns1 []models.FirstPartyVuln, firstPartyVulns2 []models.FirstPartyVuln, err error) *AssetVersionService_HandleFirstPartyVulnResult_Call
func (*AssetVersionService_HandleFirstPartyVulnResult_Call) Run ¶ added in v0.17.2
func (_c *AssetVersionService_HandleFirstPartyVulnResult_Call) Run(run func(org models.Org, project models.Project, asset models.Asset, assetVersion *models.AssetVersion, sarifScan common.SarifResult, scannerID string, userID string)) *AssetVersionService_HandleFirstPartyVulnResult_Call
func (*AssetVersionService_HandleFirstPartyVulnResult_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetVersionService_HandleFirstPartyVulnResult_Call) RunAndReturn(run func(org models.Org, project models.Project, asset models.Asset, assetVersion *models.AssetVersion, sarifScan common.SarifResult, scannerID string, userID string) ([]models.FirstPartyVuln, []models.FirstPartyVuln, []models.FirstPartyVuln, error)) *AssetVersionService_HandleFirstPartyVulnResult_Call
type AssetVersionService_HandleScanResult_Call ¶ added in v0.17.2
AssetVersionService_HandleScanResult_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleScanResult'
func (*AssetVersionService_HandleScanResult_Call) Return ¶ added in v0.17.2
func (_c *AssetVersionService_HandleScanResult_Call) Return(opened []models.DependencyVuln, closed []models.DependencyVuln, newState []models.DependencyVuln, err error) *AssetVersionService_HandleScanResult_Call
func (*AssetVersionService_HandleScanResult_Call) Run ¶ added in v0.17.2
func (_c *AssetVersionService_HandleScanResult_Call) Run(run func(org models.Org, project models.Project, asset models.Asset, assetVersion *models.AssetVersion, vulns []models.VulnInPackage, artifactName string, userID string)) *AssetVersionService_HandleScanResult_Call
func (*AssetVersionService_HandleScanResult_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetVersionService_HandleScanResult_Call) RunAndReturn(run func(org models.Org, project models.Project, asset models.Asset, assetVersion *models.AssetVersion, vulns []models.VulnInPackage, artifactName string, userID string) ([]models.DependencyVuln, []models.DependencyVuln, []models.DependencyVuln, error)) *AssetVersionService_HandleScanResult_Call
type AssetVersionService_UpdateSBOM_Call ¶ added in v0.17.2
AssetVersionService_UpdateSBOM_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSBOM'
func (*AssetVersionService_UpdateSBOM_Call) Return ¶ added in v0.17.2
func (_c *AssetVersionService_UpdateSBOM_Call) Return(err error) *AssetVersionService_UpdateSBOM_Call
func (*AssetVersionService_UpdateSBOM_Call) Run ¶ added in v0.17.2
func (_c *AssetVersionService_UpdateSBOM_Call) Run(run func(org models.Org, project models.Project, asset models.Asset, assetVersion models.AssetVersion, artifactName string, sbom normalize.SBOM)) *AssetVersionService_UpdateSBOM_Call
func (*AssetVersionService_UpdateSBOM_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AssetVersionService_UpdateSBOM_Call) RunAndReturn(run func(org models.Org, project models.Project, asset models.Asset, assetVersion models.AssetVersion, artifactName string, sbom normalize.SBOM) error) *AssetVersionService_UpdateSBOM_Call
type AttestationRepository ¶ added in v0.17.2
AttestationRepository is an autogenerated mock type for the AttestationRepository type
func NewAttestationRepository ¶ added in v0.17.2
func NewAttestationRepository(t interface { mock.TestingT Cleanup(func()) }) *AttestationRepository
NewAttestationRepository creates a new instance of AttestationRepository. 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 (*AttestationRepository) Activate ¶ added in v0.17.2
func (_mock *AttestationRepository) Activate(tx core.DB, id string) error
Activate provides a mock function for the type AttestationRepository
func (*AttestationRepository) All ¶ added in v0.17.2
func (_mock *AttestationRepository) All() ([]models.Attestation, error)
All provides a mock function for the type AttestationRepository
func (*AttestationRepository) Begin ¶ added in v0.17.2
func (_mock *AttestationRepository) Begin() core.DB
Begin provides a mock function for the type AttestationRepository
func (*AttestationRepository) Create ¶ added in v0.17.2
func (_mock *AttestationRepository) Create(tx core.DB, t *models.Attestation) error
Create provides a mock function for the type AttestationRepository
func (*AttestationRepository) CreateBatch ¶ added in v0.17.2
func (_mock *AttestationRepository) CreateBatch(tx core.DB, ts []models.Attestation) error
CreateBatch provides a mock function for the type AttestationRepository
func (*AttestationRepository) Delete ¶ added in v0.17.2
func (_mock *AttestationRepository) Delete(tx core.DB, id string) error
Delete provides a mock function for the type AttestationRepository
func (*AttestationRepository) DeleteBatch ¶ added in v0.17.2
func (_mock *AttestationRepository) DeleteBatch(tx core.DB, ids []models.Attestation) error
DeleteBatch provides a mock function for the type AttestationRepository
func (*AttestationRepository) EXPECT ¶ added in v0.17.2
func (_m *AttestationRepository) EXPECT() *AttestationRepository_Expecter
func (*AttestationRepository) GetByAssetID ¶ added in v0.17.2
func (_mock *AttestationRepository) GetByAssetID(assetID uuid.UUID) ([]models.Attestation, error)
GetByAssetID provides a mock function for the type AttestationRepository
func (*AttestationRepository) GetByAssetVersionAndAssetID ¶ added in v0.17.2
func (_mock *AttestationRepository) GetByAssetVersionAndAssetID(assetID uuid.UUID, assetVersion string) ([]models.Attestation, error)
GetByAssetVersionAndAssetID provides a mock function for the type AttestationRepository
func (*AttestationRepository) GetDB ¶ added in v0.17.2
func (_mock *AttestationRepository) GetDB(tx core.DB) core.DB
GetDB provides a mock function for the type AttestationRepository
func (*AttestationRepository) List ¶ added in v0.17.2
func (_mock *AttestationRepository) List(ids []string) ([]models.Attestation, error)
List provides a mock function for the type AttestationRepository
func (*AttestationRepository) Read ¶ added in v0.17.2
func (_mock *AttestationRepository) Read(id string) (models.Attestation, error)
Read provides a mock function for the type AttestationRepository
func (*AttestationRepository) Save ¶ added in v0.17.2
func (_mock *AttestationRepository) Save(tx core.DB, t *models.Attestation) error
Save provides a mock function for the type AttestationRepository
func (*AttestationRepository) SaveBatch ¶ added in v0.17.2
func (_mock *AttestationRepository) SaveBatch(tx core.DB, ts []models.Attestation) error
SaveBatch provides a mock function for the type AttestationRepository
func (*AttestationRepository) Transaction ¶ added in v0.17.2
func (_mock *AttestationRepository) Transaction(fn func(tx core.DB) error) error
Transaction provides a mock function for the type AttestationRepository
func (*AttestationRepository) Upsert ¶ added in v0.17.2
func (_mock *AttestationRepository) Upsert(t *[]*models.Attestation, conflictingColumns []clause.Column, updateOnly []string) error
Upsert provides a mock function for the type AttestationRepository
type AttestationRepository_Activate_Call ¶ added in v0.17.2
AttestationRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*AttestationRepository_Activate_Call) Return ¶ added in v0.17.2
func (_c *AttestationRepository_Activate_Call) Return(err error) *AttestationRepository_Activate_Call
func (*AttestationRepository_Activate_Call) Run ¶ added in v0.17.2
func (_c *AttestationRepository_Activate_Call) Run(run func(tx core.DB, id string)) *AttestationRepository_Activate_Call
func (*AttestationRepository_Activate_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AttestationRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id string) error) *AttestationRepository_Activate_Call
type AttestationRepository_All_Call ¶ added in v0.17.2
AttestationRepository_All_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'All'
func (*AttestationRepository_All_Call) Return ¶ added in v0.17.2
func (_c *AttestationRepository_All_Call) Return(attestations []models.Attestation, err error) *AttestationRepository_All_Call
func (*AttestationRepository_All_Call) Run ¶ added in v0.17.2
func (_c *AttestationRepository_All_Call) Run(run func()) *AttestationRepository_All_Call
func (*AttestationRepository_All_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AttestationRepository_All_Call) RunAndReturn(run func() ([]models.Attestation, error)) *AttestationRepository_All_Call
type AttestationRepository_Begin_Call ¶ added in v0.17.2
AttestationRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*AttestationRepository_Begin_Call) Return ¶ added in v0.17.2
func (_c *AttestationRepository_Begin_Call) Return(v core.DB) *AttestationRepository_Begin_Call
func (*AttestationRepository_Begin_Call) Run ¶ added in v0.17.2
func (_c *AttestationRepository_Begin_Call) Run(run func()) *AttestationRepository_Begin_Call
func (*AttestationRepository_Begin_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AttestationRepository_Begin_Call) RunAndReturn(run func() core.DB) *AttestationRepository_Begin_Call
type AttestationRepository_CreateBatch_Call ¶ added in v0.17.2
AttestationRepository_CreateBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBatch'
func (*AttestationRepository_CreateBatch_Call) Return ¶ added in v0.17.2
func (_c *AttestationRepository_CreateBatch_Call) Return(err error) *AttestationRepository_CreateBatch_Call
func (*AttestationRepository_CreateBatch_Call) Run ¶ added in v0.17.2
func (_c *AttestationRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.Attestation)) *AttestationRepository_CreateBatch_Call
func (*AttestationRepository_CreateBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AttestationRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Attestation) error) *AttestationRepository_CreateBatch_Call
type AttestationRepository_Create_Call ¶ added in v0.17.2
AttestationRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*AttestationRepository_Create_Call) Return ¶ added in v0.17.2
func (_c *AttestationRepository_Create_Call) Return(err error) *AttestationRepository_Create_Call
func (*AttestationRepository_Create_Call) Run ¶ added in v0.17.2
func (_c *AttestationRepository_Create_Call) Run(run func(tx core.DB, t *models.Attestation)) *AttestationRepository_Create_Call
func (*AttestationRepository_Create_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AttestationRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.Attestation) error) *AttestationRepository_Create_Call
type AttestationRepository_DeleteBatch_Call ¶ added in v0.17.2
AttestationRepository_DeleteBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBatch'
func (*AttestationRepository_DeleteBatch_Call) Return ¶ added in v0.17.2
func (_c *AttestationRepository_DeleteBatch_Call) Return(err error) *AttestationRepository_DeleteBatch_Call
func (*AttestationRepository_DeleteBatch_Call) Run ¶ added in v0.17.2
func (_c *AttestationRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.Attestation)) *AttestationRepository_DeleteBatch_Call
func (*AttestationRepository_DeleteBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AttestationRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.Attestation) error) *AttestationRepository_DeleteBatch_Call
type AttestationRepository_Delete_Call ¶ added in v0.17.2
AttestationRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*AttestationRepository_Delete_Call) Return ¶ added in v0.17.2
func (_c *AttestationRepository_Delete_Call) Return(err error) *AttestationRepository_Delete_Call
func (*AttestationRepository_Delete_Call) Run ¶ added in v0.17.2
func (_c *AttestationRepository_Delete_Call) Run(run func(tx core.DB, id string)) *AttestationRepository_Delete_Call
func (*AttestationRepository_Delete_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AttestationRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id string) error) *AttestationRepository_Delete_Call
type AttestationRepository_Expecter ¶ added in v0.17.2
type AttestationRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*AttestationRepository_Expecter) Activate ¶ added in v0.17.2
func (_e *AttestationRepository_Expecter) Activate(tx interface{}, id interface{}) *AttestationRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx core.DB
- id string
func (*AttestationRepository_Expecter) All ¶ added in v0.17.2
func (_e *AttestationRepository_Expecter) All() *AttestationRepository_All_Call
All is a helper method to define mock.On call
func (*AttestationRepository_Expecter) Begin ¶ added in v0.17.2
func (_e *AttestationRepository_Expecter) Begin() *AttestationRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*AttestationRepository_Expecter) Create ¶ added in v0.17.2
func (_e *AttestationRepository_Expecter) Create(tx interface{}, t interface{}) *AttestationRepository_Create_Call
Create is a helper method to define mock.On call
- tx core.DB
- t *models.Attestation
func (*AttestationRepository_Expecter) CreateBatch ¶ added in v0.17.2
func (_e *AttestationRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *AttestationRepository_CreateBatch_Call
CreateBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.Attestation
func (*AttestationRepository_Expecter) Delete ¶ added in v0.17.2
func (_e *AttestationRepository_Expecter) Delete(tx interface{}, id interface{}) *AttestationRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx core.DB
- id string
func (*AttestationRepository_Expecter) DeleteBatch ¶ added in v0.17.2
func (_e *AttestationRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *AttestationRepository_DeleteBatch_Call
DeleteBatch is a helper method to define mock.On call
- tx core.DB
- ids []models.Attestation
func (*AttestationRepository_Expecter) GetByAssetID ¶ added in v0.17.2
func (_e *AttestationRepository_Expecter) GetByAssetID(assetID interface{}) *AttestationRepository_GetByAssetID_Call
GetByAssetID is a helper method to define mock.On call
- assetID uuid.UUID
func (*AttestationRepository_Expecter) GetByAssetVersionAndAssetID ¶ added in v0.17.2
func (_e *AttestationRepository_Expecter) GetByAssetVersionAndAssetID(assetID interface{}, assetVersion interface{}) *AttestationRepository_GetByAssetVersionAndAssetID_Call
GetByAssetVersionAndAssetID is a helper method to define mock.On call
- assetID uuid.UUID
- assetVersion string
func (*AttestationRepository_Expecter) GetDB ¶ added in v0.17.2
func (_e *AttestationRepository_Expecter) GetDB(tx interface{}) *AttestationRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx core.DB
func (*AttestationRepository_Expecter) List ¶ added in v0.17.2
func (_e *AttestationRepository_Expecter) List(ids interface{}) *AttestationRepository_List_Call
List is a helper method to define mock.On call
- ids []string
func (*AttestationRepository_Expecter) Read ¶ added in v0.17.2
func (_e *AttestationRepository_Expecter) Read(id interface{}) *AttestationRepository_Read_Call
Read is a helper method to define mock.On call
- id string
func (*AttestationRepository_Expecter) Save ¶ added in v0.17.2
func (_e *AttestationRepository_Expecter) Save(tx interface{}, t interface{}) *AttestationRepository_Save_Call
Save is a helper method to define mock.On call
- tx core.DB
- t *models.Attestation
func (*AttestationRepository_Expecter) SaveBatch ¶ added in v0.17.2
func (_e *AttestationRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *AttestationRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.Attestation
func (*AttestationRepository_Expecter) Transaction ¶ added in v0.17.2
func (_e *AttestationRepository_Expecter) Transaction(fn interface{}) *AttestationRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- fn func(tx core.DB) error
func (*AttestationRepository_Expecter) Upsert ¶ added in v0.17.2
func (_e *AttestationRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *AttestationRepository_Upsert_Call
Upsert is a helper method to define mock.On call
- t *[]*models.Attestation
- conflictingColumns []clause.Column
- updateOnly []string
type AttestationRepository_GetByAssetID_Call ¶ added in v0.17.2
AttestationRepository_GetByAssetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByAssetID'
func (*AttestationRepository_GetByAssetID_Call) Return ¶ added in v0.17.2
func (_c *AttestationRepository_GetByAssetID_Call) Return(attestations []models.Attestation, err error) *AttestationRepository_GetByAssetID_Call
func (*AttestationRepository_GetByAssetID_Call) Run ¶ added in v0.17.2
func (_c *AttestationRepository_GetByAssetID_Call) Run(run func(assetID uuid.UUID)) *AttestationRepository_GetByAssetID_Call
func (*AttestationRepository_GetByAssetID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AttestationRepository_GetByAssetID_Call) RunAndReturn(run func(assetID uuid.UUID) ([]models.Attestation, error)) *AttestationRepository_GetByAssetID_Call
type AttestationRepository_GetByAssetVersionAndAssetID_Call ¶ added in v0.17.2
AttestationRepository_GetByAssetVersionAndAssetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByAssetVersionAndAssetID'
func (*AttestationRepository_GetByAssetVersionAndAssetID_Call) Return ¶ added in v0.17.2
func (_c *AttestationRepository_GetByAssetVersionAndAssetID_Call) Return(attestations []models.Attestation, err error) *AttestationRepository_GetByAssetVersionAndAssetID_Call
func (*AttestationRepository_GetByAssetVersionAndAssetID_Call) Run ¶ added in v0.17.2
func (_c *AttestationRepository_GetByAssetVersionAndAssetID_Call) Run(run func(assetID uuid.UUID, assetVersion string)) *AttestationRepository_GetByAssetVersionAndAssetID_Call
func (*AttestationRepository_GetByAssetVersionAndAssetID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AttestationRepository_GetByAssetVersionAndAssetID_Call) RunAndReturn(run func(assetID uuid.UUID, assetVersion string) ([]models.Attestation, error)) *AttestationRepository_GetByAssetVersionAndAssetID_Call
type AttestationRepository_GetDB_Call ¶ added in v0.17.2
AttestationRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*AttestationRepository_GetDB_Call) Return ¶ added in v0.17.2
func (_c *AttestationRepository_GetDB_Call) Return(v core.DB) *AttestationRepository_GetDB_Call
func (*AttestationRepository_GetDB_Call) Run ¶ added in v0.17.2
func (_c *AttestationRepository_GetDB_Call) Run(run func(tx core.DB)) *AttestationRepository_GetDB_Call
func (*AttestationRepository_GetDB_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AttestationRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *AttestationRepository_GetDB_Call
type AttestationRepository_List_Call ¶ added in v0.17.2
AttestationRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*AttestationRepository_List_Call) Return ¶ added in v0.17.2
func (_c *AttestationRepository_List_Call) Return(attestations []models.Attestation, err error) *AttestationRepository_List_Call
func (*AttestationRepository_List_Call) Run ¶ added in v0.17.2
func (_c *AttestationRepository_List_Call) Run(run func(ids []string)) *AttestationRepository_List_Call
func (*AttestationRepository_List_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AttestationRepository_List_Call) RunAndReturn(run func(ids []string) ([]models.Attestation, error)) *AttestationRepository_List_Call
type AttestationRepository_Read_Call ¶ added in v0.17.2
AttestationRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*AttestationRepository_Read_Call) Return ¶ added in v0.17.2
func (_c *AttestationRepository_Read_Call) Return(attestation models.Attestation, err error) *AttestationRepository_Read_Call
func (*AttestationRepository_Read_Call) Run ¶ added in v0.17.2
func (_c *AttestationRepository_Read_Call) Run(run func(id string)) *AttestationRepository_Read_Call
func (*AttestationRepository_Read_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AttestationRepository_Read_Call) RunAndReturn(run func(id string) (models.Attestation, error)) *AttestationRepository_Read_Call
type AttestationRepository_SaveBatch_Call ¶ added in v0.17.2
AttestationRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*AttestationRepository_SaveBatch_Call) Return ¶ added in v0.17.2
func (_c *AttestationRepository_SaveBatch_Call) Return(err error) *AttestationRepository_SaveBatch_Call
func (*AttestationRepository_SaveBatch_Call) Run ¶ added in v0.17.2
func (_c *AttestationRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.Attestation)) *AttestationRepository_SaveBatch_Call
func (*AttestationRepository_SaveBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AttestationRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Attestation) error) *AttestationRepository_SaveBatch_Call
type AttestationRepository_Save_Call ¶ added in v0.17.2
AttestationRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*AttestationRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *AttestationRepository_Save_Call) Return(err error) *AttestationRepository_Save_Call
func (*AttestationRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *AttestationRepository_Save_Call) Run(run func(tx core.DB, t *models.Attestation)) *AttestationRepository_Save_Call
func (*AttestationRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AttestationRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *models.Attestation) error) *AttestationRepository_Save_Call
type AttestationRepository_Transaction_Call ¶ added in v0.17.2
AttestationRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*AttestationRepository_Transaction_Call) Return ¶ added in v0.17.2
func (_c *AttestationRepository_Transaction_Call) Return(err error) *AttestationRepository_Transaction_Call
func (*AttestationRepository_Transaction_Call) Run ¶ added in v0.17.2
func (_c *AttestationRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *AttestationRepository_Transaction_Call
func (*AttestationRepository_Transaction_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AttestationRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *AttestationRepository_Transaction_Call
type AttestationRepository_Upsert_Call ¶ added in v0.17.2
AttestationRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*AttestationRepository_Upsert_Call) Return ¶ added in v0.17.2
func (_c *AttestationRepository_Upsert_Call) Return(err error) *AttestationRepository_Upsert_Call
func (*AttestationRepository_Upsert_Call) Run ¶ added in v0.17.2
func (_c *AttestationRepository_Upsert_Call) Run(run func(t *[]*models.Attestation, conflictingColumns []clause.Column, updateOnly []string)) *AttestationRepository_Upsert_Call
func (*AttestationRepository_Upsert_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AttestationRepository_Upsert_Call) RunAndReturn(run func(t *[]*models.Attestation, conflictingColumns []clause.Column, updateOnly []string) error) *AttestationRepository_Upsert_Call
type AuthSession ¶ added in v0.17.2
AuthSession is an autogenerated mock type for the AuthSession type
func NewAuthSession ¶ added in v0.17.2
func NewAuthSession(t interface { mock.TestingT Cleanup(func()) }) *AuthSession
NewAuthSession creates a new instance of AuthSession. 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 (*AuthSession) EXPECT ¶ added in v0.17.2
func (_m *AuthSession) EXPECT() *AuthSession_Expecter
func (*AuthSession) GetScopes ¶ added in v0.17.2
func (_mock *AuthSession) GetScopes() []string
GetScopes provides a mock function for the type AuthSession
func (*AuthSession) GetUserID ¶ added in v0.17.2
func (_mock *AuthSession) GetUserID() string
GetUserID provides a mock function for the type AuthSession
type AuthSession_Expecter ¶ added in v0.17.2
type AuthSession_Expecter struct {
// contains filtered or unexported fields
}
func (*AuthSession_Expecter) GetScopes ¶ added in v0.17.2
func (_e *AuthSession_Expecter) GetScopes() *AuthSession_GetScopes_Call
GetScopes is a helper method to define mock.On call
func (*AuthSession_Expecter) GetUserID ¶ added in v0.17.2
func (_e *AuthSession_Expecter) GetUserID() *AuthSession_GetUserID_Call
GetUserID is a helper method to define mock.On call
type AuthSession_GetScopes_Call ¶ added in v0.17.2
AuthSession_GetScopes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetScopes'
func (*AuthSession_GetScopes_Call) Return ¶ added in v0.17.2
func (_c *AuthSession_GetScopes_Call) Return(strings []string) *AuthSession_GetScopes_Call
func (*AuthSession_GetScopes_Call) Run ¶ added in v0.17.2
func (_c *AuthSession_GetScopes_Call) Run(run func()) *AuthSession_GetScopes_Call
func (*AuthSession_GetScopes_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AuthSession_GetScopes_Call) RunAndReturn(run func() []string) *AuthSession_GetScopes_Call
type AuthSession_GetUserID_Call ¶ added in v0.17.2
AuthSession_GetUserID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserID'
func (*AuthSession_GetUserID_Call) Return ¶ added in v0.17.2
func (_c *AuthSession_GetUserID_Call) Return(s string) *AuthSession_GetUserID_Call
func (*AuthSession_GetUserID_Call) Run ¶ added in v0.17.2
func (_c *AuthSession_GetUserID_Call) Run(run func()) *AuthSession_GetUserID_Call
func (*AuthSession_GetUserID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *AuthSession_GetUserID_Call) RunAndReturn(run func() string) *AuthSession_GetUserID_Call
type Comparer ¶ added in v0.17.2
Comparer is an autogenerated mock type for the comparer type
func NewComparer ¶ added in v0.17.2
NewComparer creates a new instance of Comparer. 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 (*Comparer) EXPECT ¶ added in v0.17.2
func (_m *Comparer) EXPECT() *Comparer_Expecter
type Comparer_Expecter ¶ added in v0.17.2
type Comparer_Expecter struct {
// contains filtered or unexported fields
}
func (*Comparer_Expecter) GetVulns ¶ added in v0.17.2
func (_e *Comparer_Expecter) GetVulns(purl interface{}, notASemverVersion interface{}, componentType interface{}) *Comparer_GetVulns_Call
GetVulns is a helper method to define mock.On call
- purl string
- notASemverVersion string
- componentType string
type Comparer_GetVulns_Call ¶ added in v0.17.2
Comparer_GetVulns_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVulns'
func (*Comparer_GetVulns_Call) Return ¶ added in v0.17.2
func (_c *Comparer_GetVulns_Call) Return(vulnInPackages []models.VulnInPackage, err error) *Comparer_GetVulns_Call
func (*Comparer_GetVulns_Call) Run ¶ added in v0.17.2
func (_c *Comparer_GetVulns_Call) Run(run func(purl string, notASemverVersion string, componentType string)) *Comparer_GetVulns_Call
func (*Comparer_GetVulns_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Comparer_GetVulns_Call) RunAndReturn(run func(purl string, notASemverVersion string, componentType string) ([]models.VulnInPackage, error)) *Comparer_GetVulns_Call
type ComponentProjectRepository ¶ added in v0.17.2
ComponentProjectRepository is an autogenerated mock type for the ComponentProjectRepository type
func NewComponentProjectRepository ¶ added in v0.17.2
func NewComponentProjectRepository(t interface { mock.TestingT Cleanup(func()) }) *ComponentProjectRepository
NewComponentProjectRepository creates a new instance of ComponentProjectRepository. 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 (*ComponentProjectRepository) Activate ¶ added in v0.17.2
func (_mock *ComponentProjectRepository) Activate(tx core.DB, id string) error
Activate provides a mock function for the type ComponentProjectRepository
func (*ComponentProjectRepository) All ¶ added in v0.17.2
func (_mock *ComponentProjectRepository) All() ([]models.ComponentProject, error)
All provides a mock function for the type ComponentProjectRepository
func (*ComponentProjectRepository) Begin ¶ added in v0.17.2
func (_mock *ComponentProjectRepository) Begin() core.DB
Begin provides a mock function for the type ComponentProjectRepository
func (*ComponentProjectRepository) Create ¶ added in v0.17.2
func (_mock *ComponentProjectRepository) Create(tx core.DB, t *models.ComponentProject) error
Create provides a mock function for the type ComponentProjectRepository
func (*ComponentProjectRepository) CreateBatch ¶ added in v0.17.2
func (_mock *ComponentProjectRepository) CreateBatch(tx core.DB, ts []models.ComponentProject) error
CreateBatch provides a mock function for the type ComponentProjectRepository
func (*ComponentProjectRepository) Delete ¶ added in v0.17.2
func (_mock *ComponentProjectRepository) Delete(tx core.DB, id string) error
Delete provides a mock function for the type ComponentProjectRepository
func (*ComponentProjectRepository) DeleteBatch ¶ added in v0.17.2
func (_mock *ComponentProjectRepository) DeleteBatch(tx core.DB, ids []models.ComponentProject) error
DeleteBatch provides a mock function for the type ComponentProjectRepository
func (*ComponentProjectRepository) EXPECT ¶ added in v0.17.2
func (_m *ComponentProjectRepository) EXPECT() *ComponentProjectRepository_Expecter
func (*ComponentProjectRepository) GetDB ¶ added in v0.17.2
func (_mock *ComponentProjectRepository) GetDB(tx core.DB) core.DB
GetDB provides a mock function for the type ComponentProjectRepository
func (*ComponentProjectRepository) List ¶ added in v0.17.2
func (_mock *ComponentProjectRepository) List(ids []string) ([]models.ComponentProject, error)
List provides a mock function for the type ComponentProjectRepository
func (*ComponentProjectRepository) Read ¶ added in v0.17.2
func (_mock *ComponentProjectRepository) Read(id string) (models.ComponentProject, error)
Read provides a mock function for the type ComponentProjectRepository
func (*ComponentProjectRepository) Save ¶ added in v0.17.2
func (_mock *ComponentProjectRepository) Save(tx core.DB, t *models.ComponentProject) error
Save provides a mock function for the type ComponentProjectRepository
func (*ComponentProjectRepository) SaveBatch ¶ added in v0.17.2
func (_mock *ComponentProjectRepository) SaveBatch(tx core.DB, ts []models.ComponentProject) error
SaveBatch provides a mock function for the type ComponentProjectRepository
func (*ComponentProjectRepository) Transaction ¶ added in v0.17.2
func (_mock *ComponentProjectRepository) Transaction(fn func(tx core.DB) error) error
Transaction provides a mock function for the type ComponentProjectRepository
func (*ComponentProjectRepository) Upsert ¶ added in v0.17.2
func (_mock *ComponentProjectRepository) Upsert(t *[]*models.ComponentProject, conflictingColumns []clause.Column, updateOnly []string) error
Upsert provides a mock function for the type ComponentProjectRepository
type ComponentProjectRepository_Activate_Call ¶ added in v0.17.2
ComponentProjectRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*ComponentProjectRepository_Activate_Call) Return ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Activate_Call) Return(err error) *ComponentProjectRepository_Activate_Call
func (*ComponentProjectRepository_Activate_Call) Run ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Activate_Call) Run(run func(tx core.DB, id string)) *ComponentProjectRepository_Activate_Call
func (*ComponentProjectRepository_Activate_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id string) error) *ComponentProjectRepository_Activate_Call
type ComponentProjectRepository_All_Call ¶ added in v0.17.2
ComponentProjectRepository_All_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'All'
func (*ComponentProjectRepository_All_Call) Return ¶ added in v0.17.2
func (_c *ComponentProjectRepository_All_Call) Return(componentProjects []models.ComponentProject, err error) *ComponentProjectRepository_All_Call
func (*ComponentProjectRepository_All_Call) Run ¶ added in v0.17.2
func (_c *ComponentProjectRepository_All_Call) Run(run func()) *ComponentProjectRepository_All_Call
func (*ComponentProjectRepository_All_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentProjectRepository_All_Call) RunAndReturn(run func() ([]models.ComponentProject, error)) *ComponentProjectRepository_All_Call
type ComponentProjectRepository_Begin_Call ¶ added in v0.17.2
ComponentProjectRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*ComponentProjectRepository_Begin_Call) Return ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Begin_Call) Return(v core.DB) *ComponentProjectRepository_Begin_Call
func (*ComponentProjectRepository_Begin_Call) Run ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Begin_Call) Run(run func()) *ComponentProjectRepository_Begin_Call
func (*ComponentProjectRepository_Begin_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Begin_Call) RunAndReturn(run func() core.DB) *ComponentProjectRepository_Begin_Call
type ComponentProjectRepository_CreateBatch_Call ¶ added in v0.17.2
ComponentProjectRepository_CreateBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBatch'
func (*ComponentProjectRepository_CreateBatch_Call) Return ¶ added in v0.17.2
func (_c *ComponentProjectRepository_CreateBatch_Call) Return(err error) *ComponentProjectRepository_CreateBatch_Call
func (*ComponentProjectRepository_CreateBatch_Call) Run ¶ added in v0.17.2
func (_c *ComponentProjectRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.ComponentProject)) *ComponentProjectRepository_CreateBatch_Call
func (*ComponentProjectRepository_CreateBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentProjectRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.ComponentProject) error) *ComponentProjectRepository_CreateBatch_Call
type ComponentProjectRepository_Create_Call ¶ added in v0.17.2
ComponentProjectRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ComponentProjectRepository_Create_Call) Return ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Create_Call) Return(err error) *ComponentProjectRepository_Create_Call
func (*ComponentProjectRepository_Create_Call) Run ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Create_Call) Run(run func(tx core.DB, t *models.ComponentProject)) *ComponentProjectRepository_Create_Call
func (*ComponentProjectRepository_Create_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.ComponentProject) error) *ComponentProjectRepository_Create_Call
type ComponentProjectRepository_DeleteBatch_Call ¶ added in v0.17.2
ComponentProjectRepository_DeleteBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBatch'
func (*ComponentProjectRepository_DeleteBatch_Call) Return ¶ added in v0.17.2
func (_c *ComponentProjectRepository_DeleteBatch_Call) Return(err error) *ComponentProjectRepository_DeleteBatch_Call
func (*ComponentProjectRepository_DeleteBatch_Call) Run ¶ added in v0.17.2
func (_c *ComponentProjectRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.ComponentProject)) *ComponentProjectRepository_DeleteBatch_Call
func (*ComponentProjectRepository_DeleteBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentProjectRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.ComponentProject) error) *ComponentProjectRepository_DeleteBatch_Call
type ComponentProjectRepository_Delete_Call ¶ added in v0.17.2
ComponentProjectRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*ComponentProjectRepository_Delete_Call) Return ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Delete_Call) Return(err error) *ComponentProjectRepository_Delete_Call
func (*ComponentProjectRepository_Delete_Call) Run ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Delete_Call) Run(run func(tx core.DB, id string)) *ComponentProjectRepository_Delete_Call
func (*ComponentProjectRepository_Delete_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id string) error) *ComponentProjectRepository_Delete_Call
type ComponentProjectRepository_Expecter ¶ added in v0.17.2
type ComponentProjectRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ComponentProjectRepository_Expecter) Activate ¶ added in v0.17.2
func (_e *ComponentProjectRepository_Expecter) Activate(tx interface{}, id interface{}) *ComponentProjectRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx core.DB
- id string
func (*ComponentProjectRepository_Expecter) All ¶ added in v0.17.2
func (_e *ComponentProjectRepository_Expecter) All() *ComponentProjectRepository_All_Call
All is a helper method to define mock.On call
func (*ComponentProjectRepository_Expecter) Begin ¶ added in v0.17.2
func (_e *ComponentProjectRepository_Expecter) Begin() *ComponentProjectRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*ComponentProjectRepository_Expecter) Create ¶ added in v0.17.2
func (_e *ComponentProjectRepository_Expecter) Create(tx interface{}, t interface{}) *ComponentProjectRepository_Create_Call
Create is a helper method to define mock.On call
- tx core.DB
- t *models.ComponentProject
func (*ComponentProjectRepository_Expecter) CreateBatch ¶ added in v0.17.2
func (_e *ComponentProjectRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *ComponentProjectRepository_CreateBatch_Call
CreateBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.ComponentProject
func (*ComponentProjectRepository_Expecter) Delete ¶ added in v0.17.2
func (_e *ComponentProjectRepository_Expecter) Delete(tx interface{}, id interface{}) *ComponentProjectRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx core.DB
- id string
func (*ComponentProjectRepository_Expecter) DeleteBatch ¶ added in v0.17.2
func (_e *ComponentProjectRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *ComponentProjectRepository_DeleteBatch_Call
DeleteBatch is a helper method to define mock.On call
- tx core.DB
- ids []models.ComponentProject
func (*ComponentProjectRepository_Expecter) GetDB ¶ added in v0.17.2
func (_e *ComponentProjectRepository_Expecter) GetDB(tx interface{}) *ComponentProjectRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx core.DB
func (*ComponentProjectRepository_Expecter) List ¶ added in v0.17.2
func (_e *ComponentProjectRepository_Expecter) List(ids interface{}) *ComponentProjectRepository_List_Call
List is a helper method to define mock.On call
- ids []string
func (*ComponentProjectRepository_Expecter) Read ¶ added in v0.17.2
func (_e *ComponentProjectRepository_Expecter) Read(id interface{}) *ComponentProjectRepository_Read_Call
Read is a helper method to define mock.On call
- id string
func (*ComponentProjectRepository_Expecter) Save ¶ added in v0.17.2
func (_e *ComponentProjectRepository_Expecter) Save(tx interface{}, t interface{}) *ComponentProjectRepository_Save_Call
Save is a helper method to define mock.On call
- tx core.DB
- t *models.ComponentProject
func (*ComponentProjectRepository_Expecter) SaveBatch ¶ added in v0.17.2
func (_e *ComponentProjectRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *ComponentProjectRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.ComponentProject
func (*ComponentProjectRepository_Expecter) Transaction ¶ added in v0.17.2
func (_e *ComponentProjectRepository_Expecter) Transaction(fn interface{}) *ComponentProjectRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- fn func(tx core.DB) error
func (*ComponentProjectRepository_Expecter) Upsert ¶ added in v0.17.2
func (_e *ComponentProjectRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *ComponentProjectRepository_Upsert_Call
Upsert is a helper method to define mock.On call
- t *[]*models.ComponentProject
- conflictingColumns []clause.Column
- updateOnly []string
type ComponentProjectRepository_GetDB_Call ¶ added in v0.17.2
ComponentProjectRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*ComponentProjectRepository_GetDB_Call) Return ¶ added in v0.17.2
func (_c *ComponentProjectRepository_GetDB_Call) Return(v core.DB) *ComponentProjectRepository_GetDB_Call
func (*ComponentProjectRepository_GetDB_Call) Run ¶ added in v0.17.2
func (_c *ComponentProjectRepository_GetDB_Call) Run(run func(tx core.DB)) *ComponentProjectRepository_GetDB_Call
func (*ComponentProjectRepository_GetDB_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentProjectRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *ComponentProjectRepository_GetDB_Call
type ComponentProjectRepository_List_Call ¶ added in v0.17.2
ComponentProjectRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ComponentProjectRepository_List_Call) Return ¶ added in v0.17.2
func (_c *ComponentProjectRepository_List_Call) Return(componentProjects []models.ComponentProject, err error) *ComponentProjectRepository_List_Call
func (*ComponentProjectRepository_List_Call) Run ¶ added in v0.17.2
func (_c *ComponentProjectRepository_List_Call) Run(run func(ids []string)) *ComponentProjectRepository_List_Call
func (*ComponentProjectRepository_List_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentProjectRepository_List_Call) RunAndReturn(run func(ids []string) ([]models.ComponentProject, error)) *ComponentProjectRepository_List_Call
type ComponentProjectRepository_Read_Call ¶ added in v0.17.2
ComponentProjectRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*ComponentProjectRepository_Read_Call) Return ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Read_Call) Return(componentProject models.ComponentProject, err error) *ComponentProjectRepository_Read_Call
func (*ComponentProjectRepository_Read_Call) Run ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Read_Call) Run(run func(id string)) *ComponentProjectRepository_Read_Call
func (*ComponentProjectRepository_Read_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Read_Call) RunAndReturn(run func(id string) (models.ComponentProject, error)) *ComponentProjectRepository_Read_Call
type ComponentProjectRepository_SaveBatch_Call ¶ added in v0.17.2
ComponentProjectRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*ComponentProjectRepository_SaveBatch_Call) Return ¶ added in v0.17.2
func (_c *ComponentProjectRepository_SaveBatch_Call) Return(err error) *ComponentProjectRepository_SaveBatch_Call
func (*ComponentProjectRepository_SaveBatch_Call) Run ¶ added in v0.17.2
func (_c *ComponentProjectRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.ComponentProject)) *ComponentProjectRepository_SaveBatch_Call
func (*ComponentProjectRepository_SaveBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentProjectRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.ComponentProject) error) *ComponentProjectRepository_SaveBatch_Call
type ComponentProjectRepository_Save_Call ¶ added in v0.17.2
ComponentProjectRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*ComponentProjectRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Save_Call) Return(err error) *ComponentProjectRepository_Save_Call
func (*ComponentProjectRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Save_Call) Run(run func(tx core.DB, t *models.ComponentProject)) *ComponentProjectRepository_Save_Call
func (*ComponentProjectRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *models.ComponentProject) error) *ComponentProjectRepository_Save_Call
type ComponentProjectRepository_Transaction_Call ¶ added in v0.17.2
ComponentProjectRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*ComponentProjectRepository_Transaction_Call) Return ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Transaction_Call) Return(err error) *ComponentProjectRepository_Transaction_Call
func (*ComponentProjectRepository_Transaction_Call) Run ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *ComponentProjectRepository_Transaction_Call
func (*ComponentProjectRepository_Transaction_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *ComponentProjectRepository_Transaction_Call
type ComponentProjectRepository_Upsert_Call ¶ added in v0.17.2
ComponentProjectRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*ComponentProjectRepository_Upsert_Call) Return ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Upsert_Call) Return(err error) *ComponentProjectRepository_Upsert_Call
func (*ComponentProjectRepository_Upsert_Call) Run ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Upsert_Call) Run(run func(t *[]*models.ComponentProject, conflictingColumns []clause.Column, updateOnly []string)) *ComponentProjectRepository_Upsert_Call
func (*ComponentProjectRepository_Upsert_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentProjectRepository_Upsert_Call) RunAndReturn(run func(t *[]*models.ComponentProject, conflictingColumns []clause.Column, updateOnly []string) error) *ComponentProjectRepository_Upsert_Call
type ComponentRepository ¶ added in v0.17.2
ComponentRepository is an autogenerated mock type for the ComponentRepository type
func NewComponentRepository ¶ added in v0.17.2
func NewComponentRepository(t interface { mock.TestingT Cleanup(func()) }) *ComponentRepository
NewComponentRepository creates a new instance of ComponentRepository. 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 (*ComponentRepository) Activate ¶ added in v0.17.2
func (_mock *ComponentRepository) Activate(tx core.DB, id string) error
Activate provides a mock function for the type ComponentRepository
func (*ComponentRepository) All ¶ added in v0.17.2
func (_mock *ComponentRepository) All() ([]models.Component, error)
All provides a mock function for the type ComponentRepository
func (*ComponentRepository) Begin ¶ added in v0.17.2
func (_mock *ComponentRepository) Begin() core.DB
Begin provides a mock function for the type ComponentRepository
func (*ComponentRepository) Create ¶ added in v0.17.2
Create provides a mock function for the type ComponentRepository
func (*ComponentRepository) CreateBatch ¶ added in v0.17.2
CreateBatch provides a mock function for the type ComponentRepository
func (*ComponentRepository) Delete ¶ added in v0.17.2
func (_mock *ComponentRepository) Delete(tx core.DB, id string) error
Delete provides a mock function for the type ComponentRepository
func (*ComponentRepository) DeleteBatch ¶ added in v0.17.2
DeleteBatch provides a mock function for the type ComponentRepository
func (*ComponentRepository) EXPECT ¶ added in v0.17.2
func (_m *ComponentRepository) EXPECT() *ComponentRepository_Expecter
func (*ComponentRepository) FindByPurl ¶ added in v0.17.2
FindByPurl provides a mock function for the type ComponentRepository
func (*ComponentRepository) GetDB ¶ added in v0.17.2
func (_mock *ComponentRepository) GetDB(tx core.DB) core.DB
GetDB provides a mock function for the type ComponentRepository
func (*ComponentRepository) GetLicenseDistribution ¶ added in v0.17.2
func (_mock *ComponentRepository) GetLicenseDistribution(tx core.DB, assetVersionName string, assetID uuid.UUID, artifactName *string) (map[string]int, error)
GetLicenseDistribution provides a mock function for the type ComponentRepository
func (*ComponentRepository) HandleStateDiff ¶ added in v0.17.2
func (_mock *ComponentRepository) HandleStateDiff(tx core.DB, assetVersionName string, assetID uuid.UUID, oldState []models.ComponentDependency, newState []models.ComponentDependency, artifactName string) (bool, error)
HandleStateDiff provides a mock function for the type ComponentRepository
func (*ComponentRepository) List ¶ added in v0.17.2
func (_mock *ComponentRepository) List(ids []string) ([]models.Component, error)
List provides a mock function for the type ComponentRepository
func (*ComponentRepository) LoadComponents ¶ added in v0.17.2
func (_mock *ComponentRepository) LoadComponents(tx core.DB, assetVersionName string, assetID uuid.UUID, artifactName *string) ([]models.ComponentDependency, error)
LoadComponents provides a mock function for the type ComponentRepository
func (*ComponentRepository) LoadComponentsWithProject ¶ added in v0.17.2
func (_mock *ComponentRepository) LoadComponentsWithProject(tx core.DB, overwrittenLicenses []models.LicenseRisk, assetVersionName string, assetID uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.ComponentDependency], error)
LoadComponentsWithProject provides a mock function for the type ComponentRepository
func (*ComponentRepository) LoadPathToComponent ¶ added in v0.17.2
func (_mock *ComponentRepository) LoadPathToComponent(tx core.DB, assetVersionName string, assetID uuid.UUID, pURL string, artifactName *string) ([]models.ComponentDependency, error)
LoadPathToComponent provides a mock function for the type ComponentRepository
func (*ComponentRepository) Read ¶ added in v0.17.2
func (_mock *ComponentRepository) Read(id string) (models.Component, error)
Read provides a mock function for the type ComponentRepository
func (*ComponentRepository) Save ¶ added in v0.17.2
Save provides a mock function for the type ComponentRepository
func (*ComponentRepository) SaveBatch ¶ added in v0.17.2
SaveBatch provides a mock function for the type ComponentRepository
func (*ComponentRepository) Transaction ¶ added in v0.17.2
func (_mock *ComponentRepository) Transaction(fn func(tx core.DB) error) error
Transaction provides a mock function for the type ComponentRepository
type ComponentRepository_Activate_Call ¶ added in v0.17.2
ComponentRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*ComponentRepository_Activate_Call) Return ¶ added in v0.17.2
func (_c *ComponentRepository_Activate_Call) Return(err error) *ComponentRepository_Activate_Call
func (*ComponentRepository_Activate_Call) Run ¶ added in v0.17.2
func (_c *ComponentRepository_Activate_Call) Run(run func(tx core.DB, id string)) *ComponentRepository_Activate_Call
func (*ComponentRepository_Activate_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id string) error) *ComponentRepository_Activate_Call
type ComponentRepository_All_Call ¶ added in v0.17.2
ComponentRepository_All_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'All'
func (*ComponentRepository_All_Call) Return ¶ added in v0.17.2
func (_c *ComponentRepository_All_Call) Return(components []models.Component, err error) *ComponentRepository_All_Call
func (*ComponentRepository_All_Call) Run ¶ added in v0.17.2
func (_c *ComponentRepository_All_Call) Run(run func()) *ComponentRepository_All_Call
func (*ComponentRepository_All_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentRepository_All_Call) RunAndReturn(run func() ([]models.Component, error)) *ComponentRepository_All_Call
type ComponentRepository_Begin_Call ¶ added in v0.17.2
ComponentRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*ComponentRepository_Begin_Call) Return ¶ added in v0.17.2
func (_c *ComponentRepository_Begin_Call) Return(v core.DB) *ComponentRepository_Begin_Call
func (*ComponentRepository_Begin_Call) Run ¶ added in v0.17.2
func (_c *ComponentRepository_Begin_Call) Run(run func()) *ComponentRepository_Begin_Call
func (*ComponentRepository_Begin_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentRepository_Begin_Call) RunAndReturn(run func() core.DB) *ComponentRepository_Begin_Call
type ComponentRepository_CreateBatch_Call ¶ added in v0.17.2
ComponentRepository_CreateBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBatch'
func (*ComponentRepository_CreateBatch_Call) Return ¶ added in v0.17.2
func (_c *ComponentRepository_CreateBatch_Call) Return(err error) *ComponentRepository_CreateBatch_Call
func (*ComponentRepository_CreateBatch_Call) Run ¶ added in v0.17.2
func (_c *ComponentRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.Component)) *ComponentRepository_CreateBatch_Call
func (*ComponentRepository_CreateBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Component) error) *ComponentRepository_CreateBatch_Call
type ComponentRepository_Create_Call ¶ added in v0.17.2
ComponentRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ComponentRepository_Create_Call) Return ¶ added in v0.17.2
func (_c *ComponentRepository_Create_Call) Return(err error) *ComponentRepository_Create_Call
func (*ComponentRepository_Create_Call) Run ¶ added in v0.17.2
func (_c *ComponentRepository_Create_Call) Run(run func(tx core.DB, t *models.Component)) *ComponentRepository_Create_Call
func (*ComponentRepository_Create_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.Component) error) *ComponentRepository_Create_Call
type ComponentRepository_DeleteBatch_Call ¶ added in v0.17.2
ComponentRepository_DeleteBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBatch'
func (*ComponentRepository_DeleteBatch_Call) Return ¶ added in v0.17.2
func (_c *ComponentRepository_DeleteBatch_Call) Return(err error) *ComponentRepository_DeleteBatch_Call
func (*ComponentRepository_DeleteBatch_Call) Run ¶ added in v0.17.2
func (_c *ComponentRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.Component)) *ComponentRepository_DeleteBatch_Call
func (*ComponentRepository_DeleteBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.Component) error) *ComponentRepository_DeleteBatch_Call
type ComponentRepository_Delete_Call ¶ added in v0.17.2
ComponentRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*ComponentRepository_Delete_Call) Return ¶ added in v0.17.2
func (_c *ComponentRepository_Delete_Call) Return(err error) *ComponentRepository_Delete_Call
func (*ComponentRepository_Delete_Call) Run ¶ added in v0.17.2
func (_c *ComponentRepository_Delete_Call) Run(run func(tx core.DB, id string)) *ComponentRepository_Delete_Call
func (*ComponentRepository_Delete_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id string) error) *ComponentRepository_Delete_Call
type ComponentRepository_Expecter ¶ added in v0.17.2
type ComponentRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ComponentRepository_Expecter) Activate ¶ added in v0.17.2
func (_e *ComponentRepository_Expecter) Activate(tx interface{}, id interface{}) *ComponentRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx core.DB
- id string
func (*ComponentRepository_Expecter) All ¶ added in v0.17.2
func (_e *ComponentRepository_Expecter) All() *ComponentRepository_All_Call
All is a helper method to define mock.On call
func (*ComponentRepository_Expecter) Begin ¶ added in v0.17.2
func (_e *ComponentRepository_Expecter) Begin() *ComponentRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*ComponentRepository_Expecter) Create ¶ added in v0.17.2
func (_e *ComponentRepository_Expecter) Create(tx interface{}, t interface{}) *ComponentRepository_Create_Call
Create is a helper method to define mock.On call
- tx core.DB
- t *models.Component
func (*ComponentRepository_Expecter) CreateBatch ¶ added in v0.17.2
func (_e *ComponentRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *ComponentRepository_CreateBatch_Call
CreateBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.Component
func (*ComponentRepository_Expecter) Delete ¶ added in v0.17.2
func (_e *ComponentRepository_Expecter) Delete(tx interface{}, id interface{}) *ComponentRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx core.DB
- id string
func (*ComponentRepository_Expecter) DeleteBatch ¶ added in v0.17.2
func (_e *ComponentRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *ComponentRepository_DeleteBatch_Call
DeleteBatch is a helper method to define mock.On call
- tx core.DB
- ids []models.Component
func (*ComponentRepository_Expecter) FindByPurl ¶ added in v0.17.2
func (_e *ComponentRepository_Expecter) FindByPurl(tx interface{}, purl interface{}) *ComponentRepository_FindByPurl_Call
FindByPurl is a helper method to define mock.On call
- tx core.DB
- purl string
func (*ComponentRepository_Expecter) GetDB ¶ added in v0.17.2
func (_e *ComponentRepository_Expecter) GetDB(tx interface{}) *ComponentRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx core.DB
func (*ComponentRepository_Expecter) GetLicenseDistribution ¶ added in v0.17.2
func (_e *ComponentRepository_Expecter) GetLicenseDistribution(tx interface{}, assetVersionName interface{}, assetID interface{}, artifactName interface{}) *ComponentRepository_GetLicenseDistribution_Call
GetLicenseDistribution is a helper method to define mock.On call
- tx core.DB
- assetVersionName string
- assetID uuid.UUID
- artifactName *string
func (*ComponentRepository_Expecter) HandleStateDiff ¶ added in v0.17.2
func (_e *ComponentRepository_Expecter) HandleStateDiff(tx interface{}, assetVersionName interface{}, assetID interface{}, oldState interface{}, newState interface{}, artifactName interface{}) *ComponentRepository_HandleStateDiff_Call
HandleStateDiff is a helper method to define mock.On call
- tx core.DB
- assetVersionName string
- assetID uuid.UUID
- oldState []models.ComponentDependency
- newState []models.ComponentDependency
- artifactName string
func (*ComponentRepository_Expecter) List ¶ added in v0.17.2
func (_e *ComponentRepository_Expecter) List(ids interface{}) *ComponentRepository_List_Call
List is a helper method to define mock.On call
- ids []string
func (*ComponentRepository_Expecter) LoadComponents ¶ added in v0.17.2
func (_e *ComponentRepository_Expecter) LoadComponents(tx interface{}, assetVersionName interface{}, assetID interface{}, artifactName interface{}) *ComponentRepository_LoadComponents_Call
LoadComponents is a helper method to define mock.On call
- tx core.DB
- assetVersionName string
- assetID uuid.UUID
- artifactName *string
func (*ComponentRepository_Expecter) LoadComponentsWithProject ¶ added in v0.17.2
func (_e *ComponentRepository_Expecter) LoadComponentsWithProject(tx interface{}, overwrittenLicenses interface{}, assetVersionName interface{}, assetID interface{}, pageInfo interface{}, search interface{}, filter interface{}, sort interface{}) *ComponentRepository_LoadComponentsWithProject_Call
LoadComponentsWithProject is a helper method to define mock.On call
- tx core.DB
- overwrittenLicenses []models.LicenseRisk
- assetVersionName string
- assetID uuid.UUID
- pageInfo core.PageInfo
- search string
- filter []core.FilterQuery
- sort []core.SortQuery
func (*ComponentRepository_Expecter) LoadPathToComponent ¶ added in v0.17.2
func (_e *ComponentRepository_Expecter) LoadPathToComponent(tx interface{}, assetVersionName interface{}, assetID interface{}, pURL interface{}, artifactName interface{}) *ComponentRepository_LoadPathToComponent_Call
LoadPathToComponent is a helper method to define mock.On call
- tx core.DB
- assetVersionName string
- assetID uuid.UUID
- pURL string
- artifactName *string
func (*ComponentRepository_Expecter) Read ¶ added in v0.17.2
func (_e *ComponentRepository_Expecter) Read(id interface{}) *ComponentRepository_Read_Call
Read is a helper method to define mock.On call
- id string
func (*ComponentRepository_Expecter) Save ¶ added in v0.17.2
func (_e *ComponentRepository_Expecter) Save(tx interface{}, t interface{}) *ComponentRepository_Save_Call
Save is a helper method to define mock.On call
- tx core.DB
- t *models.Component
func (*ComponentRepository_Expecter) SaveBatch ¶ added in v0.17.2
func (_e *ComponentRepository_Expecter) SaveBatch(tx interface{}, components interface{}) *ComponentRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx core.DB
- components []models.Component
func (*ComponentRepository_Expecter) Transaction ¶ added in v0.17.2
func (_e *ComponentRepository_Expecter) Transaction(fn interface{}) *ComponentRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- fn func(tx core.DB) error
func (*ComponentRepository_Expecter) Upsert ¶ added in v0.17.2
func (_e *ComponentRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *ComponentRepository_Upsert_Call
Upsert is a helper method to define mock.On call
- t *[]*models.Component
- conflictingColumns []clause.Column
- updateOnly []string
type ComponentRepository_FindByPurl_Call ¶ added in v0.17.2
ComponentRepository_FindByPurl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByPurl'
func (*ComponentRepository_FindByPurl_Call) Return ¶ added in v0.17.2
func (_c *ComponentRepository_FindByPurl_Call) Return(component models.Component, err error) *ComponentRepository_FindByPurl_Call
func (*ComponentRepository_FindByPurl_Call) Run ¶ added in v0.17.2
func (_c *ComponentRepository_FindByPurl_Call) Run(run func(tx core.DB, purl string)) *ComponentRepository_FindByPurl_Call
func (*ComponentRepository_FindByPurl_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentRepository_FindByPurl_Call) RunAndReturn(run func(tx core.DB, purl string) (models.Component, error)) *ComponentRepository_FindByPurl_Call
type ComponentRepository_GetDB_Call ¶ added in v0.17.2
ComponentRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*ComponentRepository_GetDB_Call) Return ¶ added in v0.17.2
func (_c *ComponentRepository_GetDB_Call) Return(v core.DB) *ComponentRepository_GetDB_Call
func (*ComponentRepository_GetDB_Call) Run ¶ added in v0.17.2
func (_c *ComponentRepository_GetDB_Call) Run(run func(tx core.DB)) *ComponentRepository_GetDB_Call
func (*ComponentRepository_GetDB_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *ComponentRepository_GetDB_Call
type ComponentRepository_GetLicenseDistribution_Call ¶ added in v0.17.2
ComponentRepository_GetLicenseDistribution_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLicenseDistribution'
func (*ComponentRepository_GetLicenseDistribution_Call) Return ¶ added in v0.17.2
func (_c *ComponentRepository_GetLicenseDistribution_Call) Return(stringToInt map[string]int, err error) *ComponentRepository_GetLicenseDistribution_Call
func (*ComponentRepository_GetLicenseDistribution_Call) Run ¶ added in v0.17.2
func (_c *ComponentRepository_GetLicenseDistribution_Call) Run(run func(tx core.DB, assetVersionName string, assetID uuid.UUID, artifactName *string)) *ComponentRepository_GetLicenseDistribution_Call
func (*ComponentRepository_GetLicenseDistribution_Call) RunAndReturn ¶ added in v0.17.2
type ComponentRepository_HandleStateDiff_Call ¶ added in v0.17.2
ComponentRepository_HandleStateDiff_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleStateDiff'
func (*ComponentRepository_HandleStateDiff_Call) Return ¶ added in v0.17.2
func (_c *ComponentRepository_HandleStateDiff_Call) Return(b bool, err error) *ComponentRepository_HandleStateDiff_Call
func (*ComponentRepository_HandleStateDiff_Call) Run ¶ added in v0.17.2
func (_c *ComponentRepository_HandleStateDiff_Call) Run(run func(tx core.DB, assetVersionName string, assetID uuid.UUID, oldState []models.ComponentDependency, newState []models.ComponentDependency, artifactName string)) *ComponentRepository_HandleStateDiff_Call
func (*ComponentRepository_HandleStateDiff_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentRepository_HandleStateDiff_Call) RunAndReturn(run func(tx core.DB, assetVersionName string, assetID uuid.UUID, oldState []models.ComponentDependency, newState []models.ComponentDependency, artifactName string) (bool, error)) *ComponentRepository_HandleStateDiff_Call
type ComponentRepository_List_Call ¶ added in v0.17.2
ComponentRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ComponentRepository_List_Call) Return ¶ added in v0.17.2
func (_c *ComponentRepository_List_Call) Return(components []models.Component, err error) *ComponentRepository_List_Call
func (*ComponentRepository_List_Call) Run ¶ added in v0.17.2
func (_c *ComponentRepository_List_Call) Run(run func(ids []string)) *ComponentRepository_List_Call
func (*ComponentRepository_List_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentRepository_List_Call) RunAndReturn(run func(ids []string) ([]models.Component, error)) *ComponentRepository_List_Call
type ComponentRepository_LoadComponentsWithProject_Call ¶ added in v0.17.2
ComponentRepository_LoadComponentsWithProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadComponentsWithProject'
func (*ComponentRepository_LoadComponentsWithProject_Call) Return ¶ added in v0.17.2
func (_c *ComponentRepository_LoadComponentsWithProject_Call) Return(paged core.Paged[models.ComponentDependency], err error) *ComponentRepository_LoadComponentsWithProject_Call
func (*ComponentRepository_LoadComponentsWithProject_Call) Run ¶ added in v0.17.2
func (_c *ComponentRepository_LoadComponentsWithProject_Call) Run(run func(tx core.DB, overwrittenLicenses []models.LicenseRisk, assetVersionName string, assetID uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery)) *ComponentRepository_LoadComponentsWithProject_Call
func (*ComponentRepository_LoadComponentsWithProject_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentRepository_LoadComponentsWithProject_Call) RunAndReturn(run func(tx core.DB, overwrittenLicenses []models.LicenseRisk, assetVersionName string, assetID uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.ComponentDependency], error)) *ComponentRepository_LoadComponentsWithProject_Call
type ComponentRepository_LoadComponents_Call ¶ added in v0.17.2
ComponentRepository_LoadComponents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadComponents'
func (*ComponentRepository_LoadComponents_Call) Return ¶ added in v0.17.2
func (_c *ComponentRepository_LoadComponents_Call) Return(componentDependencys []models.ComponentDependency, err error) *ComponentRepository_LoadComponents_Call
func (*ComponentRepository_LoadComponents_Call) Run ¶ added in v0.17.2
func (_c *ComponentRepository_LoadComponents_Call) Run(run func(tx core.DB, assetVersionName string, assetID uuid.UUID, artifactName *string)) *ComponentRepository_LoadComponents_Call
func (*ComponentRepository_LoadComponents_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentRepository_LoadComponents_Call) RunAndReturn(run func(tx core.DB, assetVersionName string, assetID uuid.UUID, artifactName *string) ([]models.ComponentDependency, error)) *ComponentRepository_LoadComponents_Call
type ComponentRepository_LoadPathToComponent_Call ¶ added in v0.17.2
ComponentRepository_LoadPathToComponent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadPathToComponent'
func (*ComponentRepository_LoadPathToComponent_Call) Return ¶ added in v0.17.2
func (_c *ComponentRepository_LoadPathToComponent_Call) Return(componentDependencys []models.ComponentDependency, err error) *ComponentRepository_LoadPathToComponent_Call
func (*ComponentRepository_LoadPathToComponent_Call) Run ¶ added in v0.17.2
func (_c *ComponentRepository_LoadPathToComponent_Call) Run(run func(tx core.DB, assetVersionName string, assetID uuid.UUID, pURL string, artifactName *string)) *ComponentRepository_LoadPathToComponent_Call
func (*ComponentRepository_LoadPathToComponent_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentRepository_LoadPathToComponent_Call) RunAndReturn(run func(tx core.DB, assetVersionName string, assetID uuid.UUID, pURL string, artifactName *string) ([]models.ComponentDependency, error)) *ComponentRepository_LoadPathToComponent_Call
type ComponentRepository_Read_Call ¶ added in v0.17.2
ComponentRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*ComponentRepository_Read_Call) Return ¶ added in v0.17.2
func (_c *ComponentRepository_Read_Call) Return(component models.Component, err error) *ComponentRepository_Read_Call
func (*ComponentRepository_Read_Call) Run ¶ added in v0.17.2
func (_c *ComponentRepository_Read_Call) Run(run func(id string)) *ComponentRepository_Read_Call
func (*ComponentRepository_Read_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentRepository_Read_Call) RunAndReturn(run func(id string) (models.Component, error)) *ComponentRepository_Read_Call
type ComponentRepository_SaveBatch_Call ¶ added in v0.17.2
ComponentRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*ComponentRepository_SaveBatch_Call) Return ¶ added in v0.17.2
func (_c *ComponentRepository_SaveBatch_Call) Return(err error) *ComponentRepository_SaveBatch_Call
func (*ComponentRepository_SaveBatch_Call) Run ¶ added in v0.17.2
func (_c *ComponentRepository_SaveBatch_Call) Run(run func(tx core.DB, components []models.Component)) *ComponentRepository_SaveBatch_Call
func (*ComponentRepository_SaveBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, components []models.Component) error) *ComponentRepository_SaveBatch_Call
type ComponentRepository_Save_Call ¶ added in v0.17.2
ComponentRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*ComponentRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *ComponentRepository_Save_Call) Return(err error) *ComponentRepository_Save_Call
func (*ComponentRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *ComponentRepository_Save_Call) Run(run func(tx core.DB, t *models.Component)) *ComponentRepository_Save_Call
func (*ComponentRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *models.Component) error) *ComponentRepository_Save_Call
type ComponentRepository_Transaction_Call ¶ added in v0.17.2
ComponentRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*ComponentRepository_Transaction_Call) Return ¶ added in v0.17.2
func (_c *ComponentRepository_Transaction_Call) Return(err error) *ComponentRepository_Transaction_Call
func (*ComponentRepository_Transaction_Call) Run ¶ added in v0.17.2
func (_c *ComponentRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *ComponentRepository_Transaction_Call
func (*ComponentRepository_Transaction_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *ComponentRepository_Transaction_Call
type ComponentRepository_Upsert_Call ¶ added in v0.17.2
ComponentRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*ComponentRepository_Upsert_Call) Return ¶ added in v0.17.2
func (_c *ComponentRepository_Upsert_Call) Return(err error) *ComponentRepository_Upsert_Call
func (*ComponentRepository_Upsert_Call) Run ¶ added in v0.17.2
func (_c *ComponentRepository_Upsert_Call) Run(run func(t *[]*models.Component, conflictingColumns []clause.Column, updateOnly []string)) *ComponentRepository_Upsert_Call
func (*ComponentRepository_Upsert_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentRepository_Upsert_Call) RunAndReturn(run func(t *[]*models.Component, conflictingColumns []clause.Column, updateOnly []string) error) *ComponentRepository_Upsert_Call
type ComponentService ¶ added in v0.17.2
ComponentService is an autogenerated mock type for the ComponentService type
func NewComponentService ¶ added in v0.17.2
func NewComponentService(t interface { mock.TestingT Cleanup(func()) }) *ComponentService
NewComponentService creates a new instance of ComponentService. 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 (*ComponentService) EXPECT ¶ added in v0.17.2
func (_m *ComponentService) EXPECT() *ComponentService_Expecter
func (*ComponentService) GetAndSaveLicenseInformation ¶ added in v0.17.2
func (_mock *ComponentService) GetAndSaveLicenseInformation(assetVersion models.AssetVersion, artifactName *string, forceRefresh bool) ([]models.Component, error)
GetAndSaveLicenseInformation provides a mock function for the type ComponentService
func (*ComponentService) GetLicense ¶ added in v0.17.2
GetLicense provides a mock function for the type ComponentService
func (*ComponentService) RefreshComponentProjectInformation ¶ added in v0.17.2
func (_mock *ComponentService) RefreshComponentProjectInformation(project models.ComponentProject)
RefreshComponentProjectInformation provides a mock function for the type ComponentService
type ComponentService_Expecter ¶ added in v0.17.2
type ComponentService_Expecter struct {
// contains filtered or unexported fields
}
func (*ComponentService_Expecter) GetAndSaveLicenseInformation ¶ added in v0.17.2
func (_e *ComponentService_Expecter) GetAndSaveLicenseInformation(assetVersion interface{}, artifactName interface{}, forceRefresh interface{}) *ComponentService_GetAndSaveLicenseInformation_Call
GetAndSaveLicenseInformation is a helper method to define mock.On call
- assetVersion models.AssetVersion
- artifactName *string
- forceRefresh bool
func (*ComponentService_Expecter) GetLicense ¶ added in v0.17.2
func (_e *ComponentService_Expecter) GetLicense(component interface{}) *ComponentService_GetLicense_Call
GetLicense is a helper method to define mock.On call
- component models.Component
func (*ComponentService_Expecter) RefreshComponentProjectInformation ¶ added in v0.17.2
func (_e *ComponentService_Expecter) RefreshComponentProjectInformation(project interface{}) *ComponentService_RefreshComponentProjectInformation_Call
RefreshComponentProjectInformation is a helper method to define mock.On call
- project models.ComponentProject
type ComponentService_GetAndSaveLicenseInformation_Call ¶ added in v0.17.2
ComponentService_GetAndSaveLicenseInformation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAndSaveLicenseInformation'
func (*ComponentService_GetAndSaveLicenseInformation_Call) Return ¶ added in v0.17.2
func (_c *ComponentService_GetAndSaveLicenseInformation_Call) Return(components []models.Component, err error) *ComponentService_GetAndSaveLicenseInformation_Call
func (*ComponentService_GetAndSaveLicenseInformation_Call) Run ¶ added in v0.17.2
func (_c *ComponentService_GetAndSaveLicenseInformation_Call) Run(run func(assetVersion models.AssetVersion, artifactName *string, forceRefresh bool)) *ComponentService_GetAndSaveLicenseInformation_Call
func (*ComponentService_GetAndSaveLicenseInformation_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentService_GetAndSaveLicenseInformation_Call) RunAndReturn(run func(assetVersion models.AssetVersion, artifactName *string, forceRefresh bool) ([]models.Component, error)) *ComponentService_GetAndSaveLicenseInformation_Call
type ComponentService_GetLicense_Call ¶ added in v0.17.2
ComponentService_GetLicense_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLicense'
func (*ComponentService_GetLicense_Call) Return ¶ added in v0.17.2
func (_c *ComponentService_GetLicense_Call) Return(component1 models.Component, err error) *ComponentService_GetLicense_Call
func (*ComponentService_GetLicense_Call) Run ¶ added in v0.17.2
func (_c *ComponentService_GetLicense_Call) Run(run func(component models.Component)) *ComponentService_GetLicense_Call
func (*ComponentService_GetLicense_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentService_GetLicense_Call) RunAndReturn(run func(component models.Component) (models.Component, error)) *ComponentService_GetLicense_Call
type ComponentService_RefreshComponentProjectInformation_Call ¶ added in v0.17.2
ComponentService_RefreshComponentProjectInformation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RefreshComponentProjectInformation'
func (*ComponentService_RefreshComponentProjectInformation_Call) Run ¶ added in v0.17.2
func (_c *ComponentService_RefreshComponentProjectInformation_Call) Run(run func(project models.ComponentProject)) *ComponentService_RefreshComponentProjectInformation_Call
func (*ComponentService_RefreshComponentProjectInformation_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ComponentService_RefreshComponentProjectInformation_Call) RunAndReturn(run func(project models.ComponentProject)) *ComponentService_RefreshComponentProjectInformation_Call
type ConfigRepository ¶ added in v0.17.2
ConfigRepository is an autogenerated mock type for the ConfigRepository type
func NewConfigRepository ¶ added in v0.17.2
func NewConfigRepository(t interface { mock.TestingT Cleanup(func()) }) *ConfigRepository
NewConfigRepository creates a new instance of ConfigRepository. 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 (*ConfigRepository) EXPECT ¶ added in v0.17.2
func (_m *ConfigRepository) EXPECT() *ConfigRepository_Expecter
type ConfigRepository_Expecter ¶ added in v0.17.2
type ConfigRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ConfigRepository_Expecter) GetDB ¶ added in v0.17.2
func (_e *ConfigRepository_Expecter) GetDB(tx interface{}) *ConfigRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx core.DB
func (*ConfigRepository_Expecter) Save ¶ added in v0.17.2
func (_e *ConfigRepository_Expecter) Save(tx interface{}, config interface{}) *ConfigRepository_Save_Call
Save is a helper method to define mock.On call
- tx core.DB
- config *models.Config
type ConfigRepository_GetDB_Call ¶ added in v0.17.2
ConfigRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*ConfigRepository_GetDB_Call) Return ¶ added in v0.17.2
func (_c *ConfigRepository_GetDB_Call) Return(v core.DB) *ConfigRepository_GetDB_Call
func (*ConfigRepository_GetDB_Call) Run ¶ added in v0.17.2
func (_c *ConfigRepository_GetDB_Call) Run(run func(tx core.DB)) *ConfigRepository_GetDB_Call
func (*ConfigRepository_GetDB_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ConfigRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *ConfigRepository_GetDB_Call
type ConfigRepository_Save_Call ¶ added in v0.17.2
ConfigRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*ConfigRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *ConfigRepository_Save_Call) Return(err error) *ConfigRepository_Save_Call
func (*ConfigRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *ConfigRepository_Save_Call) Run(run func(tx core.DB, config *models.Config)) *ConfigRepository_Save_Call
func (*ConfigRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ConfigRepository_Save_Call) RunAndReturn(run func(tx core.DB, config *models.Config) error) *ConfigRepository_Save_Call
type ConfigService ¶ added in v0.17.2
ConfigService is an autogenerated mock type for the ConfigService type
func NewConfigService ¶ added in v0.17.2
func NewConfigService(t interface { mock.TestingT Cleanup(func()) }) *ConfigService
NewConfigService creates a new instance of ConfigService. 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 (*ConfigService) EXPECT ¶ added in v0.17.2
func (_m *ConfigService) EXPECT() *ConfigService_Expecter
func (*ConfigService) GetJSONConfig ¶ added in v0.17.2
func (_mock *ConfigService) GetJSONConfig(key string, v any) error
GetJSONConfig provides a mock function for the type ConfigService
func (*ConfigService) SetJSONConfig ¶ added in v0.17.2
func (_mock *ConfigService) SetJSONConfig(key string, v any) error
SetJSONConfig provides a mock function for the type ConfigService
type ConfigService_Expecter ¶ added in v0.17.2
type ConfigService_Expecter struct {
// contains filtered or unexported fields
}
func (*ConfigService_Expecter) GetJSONConfig ¶ added in v0.17.2
func (_e *ConfigService_Expecter) GetJSONConfig(key interface{}, v interface{}) *ConfigService_GetJSONConfig_Call
GetJSONConfig is a helper method to define mock.On call
- key string
- v any
func (*ConfigService_Expecter) SetJSONConfig ¶ added in v0.17.2
func (_e *ConfigService_Expecter) SetJSONConfig(key interface{}, v interface{}) *ConfigService_SetJSONConfig_Call
SetJSONConfig is a helper method to define mock.On call
- key string
- v any
type ConfigService_GetJSONConfig_Call ¶ added in v0.17.2
ConfigService_GetJSONConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetJSONConfig'
func (*ConfigService_GetJSONConfig_Call) Return ¶ added in v0.17.2
func (_c *ConfigService_GetJSONConfig_Call) Return(err error) *ConfigService_GetJSONConfig_Call
func (*ConfigService_GetJSONConfig_Call) Run ¶ added in v0.17.2
func (_c *ConfigService_GetJSONConfig_Call) Run(run func(key string, v any)) *ConfigService_GetJSONConfig_Call
func (*ConfigService_GetJSONConfig_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ConfigService_GetJSONConfig_Call) RunAndReturn(run func(key string, v any) error) *ConfigService_GetJSONConfig_Call
type ConfigService_SetJSONConfig_Call ¶ added in v0.17.2
ConfigService_SetJSONConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetJSONConfig'
func (*ConfigService_SetJSONConfig_Call) Return ¶ added in v0.17.2
func (_c *ConfigService_SetJSONConfig_Call) Return(err error) *ConfigService_SetJSONConfig_Call
func (*ConfigService_SetJSONConfig_Call) Run ¶ added in v0.17.2
func (_c *ConfigService_SetJSONConfig_Call) Run(run func(key string, v any)) *ConfigService_SetJSONConfig_Call
func (*ConfigService_SetJSONConfig_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ConfigService_SetJSONConfig_Call) RunAndReturn(run func(key string, v any) error) *ConfigService_SetJSONConfig_Call
type Context ¶ added in v0.17.2
Context is an autogenerated mock type for the Context type
func NewContext ¶ added in v0.17.2
NewContext creates a new instance of Context. 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 (*Context) Attachment ¶ added in v0.17.2
Attachment provides a mock function for the type Context
func (*Context) EXPECT ¶ added in v0.17.2
func (_m *Context) EXPECT() *Context_Expecter
func (*Context) Echo ¶ added in v0.17.2
func (_mock *Context) Echo() *echo.Echo
Echo provides a mock function for the type Context
func (*Context) FormFile ¶ added in v0.17.2
func (_mock *Context) FormFile(name string) (*multipart.FileHeader, error)
FormFile provides a mock function for the type Context
func (*Context) FormParams ¶ added in v0.17.2
FormParams provides a mock function for the type Context
func (*Context) FormValue ¶ added in v0.17.2
FormValue provides a mock function for the type Context
func (*Context) Handler ¶ added in v0.17.2
func (_mock *Context) Handler() echo.HandlerFunc
Handler provides a mock function for the type Context
func (*Context) IsWebSocket ¶ added in v0.17.2
IsWebSocket provides a mock function for the type Context
func (*Context) JSONPBlob ¶ added in v0.17.2
JSONPBlob provides a mock function for the type Context
func (*Context) JSONPretty ¶ added in v0.17.2
JSONPretty provides a mock function for the type Context
func (*Context) Logger ¶ added in v0.17.2
func (_mock *Context) Logger() echo.Logger
Logger provides a mock function for the type Context
func (*Context) MultipartForm ¶ added in v0.17.2
MultipartForm provides a mock function for the type Context
func (*Context) NoContent ¶ added in v0.17.2
NoContent provides a mock function for the type Context
func (*Context) ParamNames ¶ added in v0.17.2
ParamNames provides a mock function for the type Context
func (*Context) ParamValues ¶ added in v0.17.2
ParamValues provides a mock function for the type Context
func (*Context) QueryParam ¶ added in v0.17.2
QueryParam provides a mock function for the type Context
func (*Context) QueryParams ¶ added in v0.17.2
QueryParams provides a mock function for the type Context
func (*Context) QueryString ¶ added in v0.17.2
QueryString provides a mock function for the type Context
func (*Context) Reset ¶ added in v0.17.2
func (_mock *Context) Reset(r *http.Request, w http.ResponseWriter)
Reset provides a mock function for the type Context
func (*Context) Response ¶ added in v0.17.2
func (_mock *Context) Response() *echo.Response
Response provides a mock function for the type Context
func (*Context) SetCookie ¶ added in v0.17.2
SetCookie provides a mock function for the type Context
func (*Context) SetHandler ¶ added in v0.17.2
func (_mock *Context) SetHandler(h echo.HandlerFunc)
SetHandler provides a mock function for the type Context
func (*Context) SetLogger ¶ added in v0.17.2
func (_mock *Context) SetLogger(l echo.Logger)
SetLogger provides a mock function for the type Context
func (*Context) SetParamNames ¶ added in v0.17.2
SetParamNames provides a mock function for the type Context
func (*Context) SetParamValues ¶ added in v0.17.2
SetParamValues provides a mock function for the type Context
func (*Context) SetRequest ¶ added in v0.17.2
SetRequest provides a mock function for the type Context
func (*Context) SetResponse ¶ added in v0.17.2
func (_mock *Context) SetResponse(r *echo.Response)
SetResponse provides a mock function for the type Context
type Context_Attachment_Call ¶ added in v0.17.2
Context_Attachment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Attachment'
func (*Context_Attachment_Call) Return ¶ added in v0.17.2
func (_c *Context_Attachment_Call) Return(err error) *Context_Attachment_Call
func (*Context_Attachment_Call) Run ¶ added in v0.17.2
func (_c *Context_Attachment_Call) Run(run func(file string, name string)) *Context_Attachment_Call
func (*Context_Attachment_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_Attachment_Call) RunAndReturn(run func(file string, name string) error) *Context_Attachment_Call
type Context_Bind_Call ¶ added in v0.17.2
Context_Bind_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Bind'
func (*Context_Bind_Call) Return ¶ added in v0.17.2
func (_c *Context_Bind_Call) Return(err error) *Context_Bind_Call
func (*Context_Bind_Call) Run ¶ added in v0.17.2
func (_c *Context_Bind_Call) Run(run func(i interface{})) *Context_Bind_Call
func (*Context_Bind_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_Bind_Call) RunAndReturn(run func(i interface{}) error) *Context_Bind_Call
type Context_Blob_Call ¶ added in v0.17.2
Context_Blob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Blob'
func (*Context_Blob_Call) Return ¶ added in v0.17.2
func (_c *Context_Blob_Call) Return(err error) *Context_Blob_Call
func (*Context_Blob_Call) Run ¶ added in v0.17.2
func (_c *Context_Blob_Call) Run(run func(code int, contentType string, b []byte)) *Context_Blob_Call
func (*Context_Blob_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_Blob_Call) RunAndReturn(run func(code int, contentType string, b []byte) error) *Context_Blob_Call
type Context_Cookie_Call ¶ added in v0.17.2
Context_Cookie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cookie'
func (*Context_Cookie_Call) Return ¶ added in v0.17.2
func (_c *Context_Cookie_Call) Return(cookie *http.Cookie, err error) *Context_Cookie_Call
func (*Context_Cookie_Call) Run ¶ added in v0.17.2
func (_c *Context_Cookie_Call) Run(run func(name string)) *Context_Cookie_Call
func (*Context_Cookie_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_Cookie_Call) RunAndReturn(run func(name string) (*http.Cookie, error)) *Context_Cookie_Call
type Context_Cookies_Call ¶ added in v0.17.2
Context_Cookies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cookies'
func (*Context_Cookies_Call) Return ¶ added in v0.17.2
func (_c *Context_Cookies_Call) Return(cookies []*http.Cookie) *Context_Cookies_Call
func (*Context_Cookies_Call) Run ¶ added in v0.17.2
func (_c *Context_Cookies_Call) Run(run func()) *Context_Cookies_Call
func (*Context_Cookies_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_Cookies_Call) RunAndReturn(run func() []*http.Cookie) *Context_Cookies_Call
type Context_Echo_Call ¶ added in v0.17.2
Context_Echo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Echo'
func (*Context_Echo_Call) Return ¶ added in v0.17.2
func (_c *Context_Echo_Call) Return(echo1 *echo.Echo) *Context_Echo_Call
func (*Context_Echo_Call) Run ¶ added in v0.17.2
func (_c *Context_Echo_Call) Run(run func()) *Context_Echo_Call
func (*Context_Echo_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_Echo_Call) RunAndReturn(run func() *echo.Echo) *Context_Echo_Call
type Context_Error_Call ¶ added in v0.17.2
Context_Error_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Error'
func (*Context_Error_Call) Return ¶ added in v0.17.2
func (_c *Context_Error_Call) Return() *Context_Error_Call
func (*Context_Error_Call) Run ¶ added in v0.17.2
func (_c *Context_Error_Call) Run(run func(err error)) *Context_Error_Call
func (*Context_Error_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_Error_Call) RunAndReturn(run func(err error)) *Context_Error_Call
type Context_Expecter ¶ added in v0.17.2
type Context_Expecter struct {
// contains filtered or unexported fields
}
func (*Context_Expecter) Attachment ¶ added in v0.17.2
func (_e *Context_Expecter) Attachment(file interface{}, name interface{}) *Context_Attachment_Call
Attachment is a helper method to define mock.On call
- file string
- name string
func (*Context_Expecter) Bind ¶ added in v0.17.2
func (_e *Context_Expecter) Bind(i interface{}) *Context_Bind_Call
Bind is a helper method to define mock.On call
- i interface{}
func (*Context_Expecter) Blob ¶ added in v0.17.2
func (_e *Context_Expecter) Blob(code interface{}, contentType interface{}, b interface{}) *Context_Blob_Call
Blob is a helper method to define mock.On call
- code int
- contentType string
- b []byte
func (*Context_Expecter) Cookie ¶ added in v0.17.2
func (_e *Context_Expecter) Cookie(name interface{}) *Context_Cookie_Call
Cookie is a helper method to define mock.On call
- name string
func (*Context_Expecter) Cookies ¶ added in v0.17.2
func (_e *Context_Expecter) Cookies() *Context_Cookies_Call
Cookies is a helper method to define mock.On call
func (*Context_Expecter) Echo ¶ added in v0.17.2
func (_e *Context_Expecter) Echo() *Context_Echo_Call
Echo is a helper method to define mock.On call
func (*Context_Expecter) Error ¶ added in v0.17.2
func (_e *Context_Expecter) Error(err interface{}) *Context_Error_Call
Error is a helper method to define mock.On call
- err error
func (*Context_Expecter) File ¶ added in v0.17.2
func (_e *Context_Expecter) File(file interface{}) *Context_File_Call
File is a helper method to define mock.On call
- file string
func (*Context_Expecter) FormFile ¶ added in v0.17.2
func (_e *Context_Expecter) FormFile(name interface{}) *Context_FormFile_Call
FormFile is a helper method to define mock.On call
- name string
func (*Context_Expecter) FormParams ¶ added in v0.17.2
func (_e *Context_Expecter) FormParams() *Context_FormParams_Call
FormParams is a helper method to define mock.On call
func (*Context_Expecter) FormValue ¶ added in v0.17.2
func (_e *Context_Expecter) FormValue(name interface{}) *Context_FormValue_Call
FormValue is a helper method to define mock.On call
- name string
func (*Context_Expecter) Get ¶ added in v0.17.2
func (_e *Context_Expecter) Get(key interface{}) *Context_Get_Call
Get is a helper method to define mock.On call
- key string
func (*Context_Expecter) HTML ¶ added in v0.17.2
func (_e *Context_Expecter) HTML(code interface{}, html interface{}) *Context_HTML_Call
HTML is a helper method to define mock.On call
- code int
- html string
func (*Context_Expecter) HTMLBlob ¶ added in v0.17.2
func (_e *Context_Expecter) HTMLBlob(code interface{}, b interface{}) *Context_HTMLBlob_Call
HTMLBlob is a helper method to define mock.On call
- code int
- b []byte
func (*Context_Expecter) Handler ¶ added in v0.17.2
func (_e *Context_Expecter) Handler() *Context_Handler_Call
Handler is a helper method to define mock.On call
func (*Context_Expecter) Inline ¶ added in v0.17.2
func (_e *Context_Expecter) Inline(file interface{}, name interface{}) *Context_Inline_Call
Inline is a helper method to define mock.On call
- file string
- name string
func (*Context_Expecter) IsTLS ¶ added in v0.17.2
func (_e *Context_Expecter) IsTLS() *Context_IsTLS_Call
IsTLS is a helper method to define mock.On call
func (*Context_Expecter) IsWebSocket ¶ added in v0.17.2
func (_e *Context_Expecter) IsWebSocket() *Context_IsWebSocket_Call
IsWebSocket is a helper method to define mock.On call
func (*Context_Expecter) JSON ¶ added in v0.17.2
func (_e *Context_Expecter) JSON(code interface{}, i interface{}) *Context_JSON_Call
JSON is a helper method to define mock.On call
- code int
- i interface{}
func (*Context_Expecter) JSONBlob ¶ added in v0.17.2
func (_e *Context_Expecter) JSONBlob(code interface{}, b interface{}) *Context_JSONBlob_Call
JSONBlob is a helper method to define mock.On call
- code int
- b []byte
func (*Context_Expecter) JSONP ¶ added in v0.17.2
func (_e *Context_Expecter) JSONP(code interface{}, callback interface{}, i interface{}) *Context_JSONP_Call
JSONP is a helper method to define mock.On call
- code int
- callback string
- i interface{}
func (*Context_Expecter) JSONPBlob ¶ added in v0.17.2
func (_e *Context_Expecter) JSONPBlob(code interface{}, callback interface{}, b interface{}) *Context_JSONPBlob_Call
JSONPBlob is a helper method to define mock.On call
- code int
- callback string
- b []byte
func (*Context_Expecter) JSONPretty ¶ added in v0.17.2
func (_e *Context_Expecter) JSONPretty(code interface{}, i interface{}, indent interface{}) *Context_JSONPretty_Call
JSONPretty is a helper method to define mock.On call
- code int
- i interface{}
- indent string
func (*Context_Expecter) Logger ¶ added in v0.17.2
func (_e *Context_Expecter) Logger() *Context_Logger_Call
Logger is a helper method to define mock.On call
func (*Context_Expecter) MultipartForm ¶ added in v0.17.2
func (_e *Context_Expecter) MultipartForm() *Context_MultipartForm_Call
MultipartForm is a helper method to define mock.On call
func (*Context_Expecter) NoContent ¶ added in v0.17.2
func (_e *Context_Expecter) NoContent(code interface{}) *Context_NoContent_Call
NoContent is a helper method to define mock.On call
- code int
func (*Context_Expecter) Param ¶ added in v0.17.2
func (_e *Context_Expecter) Param(name interface{}) *Context_Param_Call
Param is a helper method to define mock.On call
- name string
func (*Context_Expecter) ParamNames ¶ added in v0.17.2
func (_e *Context_Expecter) ParamNames() *Context_ParamNames_Call
ParamNames is a helper method to define mock.On call
func (*Context_Expecter) ParamValues ¶ added in v0.17.2
func (_e *Context_Expecter) ParamValues() *Context_ParamValues_Call
ParamValues is a helper method to define mock.On call
func (*Context_Expecter) Path ¶ added in v0.17.2
func (_e *Context_Expecter) Path() *Context_Path_Call
Path is a helper method to define mock.On call
func (*Context_Expecter) QueryParam ¶ added in v0.17.2
func (_e *Context_Expecter) QueryParam(name interface{}) *Context_QueryParam_Call
QueryParam is a helper method to define mock.On call
- name string
func (*Context_Expecter) QueryParams ¶ added in v0.17.2
func (_e *Context_Expecter) QueryParams() *Context_QueryParams_Call
QueryParams is a helper method to define mock.On call
func (*Context_Expecter) QueryString ¶ added in v0.17.2
func (_e *Context_Expecter) QueryString() *Context_QueryString_Call
QueryString is a helper method to define mock.On call
func (*Context_Expecter) RealIP ¶ added in v0.17.2
func (_e *Context_Expecter) RealIP() *Context_RealIP_Call
RealIP is a helper method to define mock.On call
func (*Context_Expecter) Redirect ¶ added in v0.17.2
func (_e *Context_Expecter) Redirect(code interface{}, url1 interface{}) *Context_Redirect_Call
Redirect is a helper method to define mock.On call
- code int
- url1 string
func (*Context_Expecter) Render ¶ added in v0.17.2
func (_e *Context_Expecter) Render(code interface{}, name interface{}, data interface{}) *Context_Render_Call
Render is a helper method to define mock.On call
- code int
- name string
- data interface{}
func (*Context_Expecter) Request ¶ added in v0.17.2
func (_e *Context_Expecter) Request() *Context_Request_Call
Request is a helper method to define mock.On call
func (*Context_Expecter) Reset ¶ added in v0.17.2
func (_e *Context_Expecter) Reset(r interface{}, w interface{}) *Context_Reset_Call
Reset is a helper method to define mock.On call
- r *http.Request
- w http.ResponseWriter
func (*Context_Expecter) Response ¶ added in v0.17.2
func (_e *Context_Expecter) Response() *Context_Response_Call
Response is a helper method to define mock.On call
func (*Context_Expecter) Scheme ¶ added in v0.17.2
func (_e *Context_Expecter) Scheme() *Context_Scheme_Call
Scheme is a helper method to define mock.On call
func (*Context_Expecter) Set ¶ added in v0.17.2
func (_e *Context_Expecter) Set(key interface{}, val interface{}) *Context_Set_Call
Set is a helper method to define mock.On call
- key string
- val interface{}
func (*Context_Expecter) SetCookie ¶ added in v0.17.2
func (_e *Context_Expecter) SetCookie(cookie interface{}) *Context_SetCookie_Call
SetCookie is a helper method to define mock.On call
- cookie *http.Cookie
func (*Context_Expecter) SetHandler ¶ added in v0.17.2
func (_e *Context_Expecter) SetHandler(h interface{}) *Context_SetHandler_Call
SetHandler is a helper method to define mock.On call
- h echo.HandlerFunc
func (*Context_Expecter) SetLogger ¶ added in v0.17.2
func (_e *Context_Expecter) SetLogger(l interface{}) *Context_SetLogger_Call
SetLogger is a helper method to define mock.On call
- l echo.Logger
func (*Context_Expecter) SetParamNames ¶ added in v0.17.2
func (_e *Context_Expecter) SetParamNames(names ...interface{}) *Context_SetParamNames_Call
SetParamNames is a helper method to define mock.On call
- names ...string
func (*Context_Expecter) SetParamValues ¶ added in v0.17.2
func (_e *Context_Expecter) SetParamValues(values ...interface{}) *Context_SetParamValues_Call
SetParamValues is a helper method to define mock.On call
- values ...string
func (*Context_Expecter) SetPath ¶ added in v0.17.2
func (_e *Context_Expecter) SetPath(p interface{}) *Context_SetPath_Call
SetPath is a helper method to define mock.On call
- p string
func (*Context_Expecter) SetRequest ¶ added in v0.17.2
func (_e *Context_Expecter) SetRequest(r interface{}) *Context_SetRequest_Call
SetRequest is a helper method to define mock.On call
- r *http.Request
func (*Context_Expecter) SetResponse ¶ added in v0.17.2
func (_e *Context_Expecter) SetResponse(r interface{}) *Context_SetResponse_Call
SetResponse is a helper method to define mock.On call
- r *echo.Response
func (*Context_Expecter) Stream ¶ added in v0.17.2
func (_e *Context_Expecter) Stream(code interface{}, contentType interface{}, r interface{}) *Context_Stream_Call
Stream is a helper method to define mock.On call
- code int
- contentType string
- r io.Reader
func (*Context_Expecter) String ¶ added in v0.17.2
func (_e *Context_Expecter) String(code interface{}, s interface{}) *Context_String_Call
String is a helper method to define mock.On call
- code int
- s string
func (*Context_Expecter) Validate ¶ added in v0.17.2
func (_e *Context_Expecter) Validate(i interface{}) *Context_Validate_Call
Validate is a helper method to define mock.On call
- i interface{}
func (*Context_Expecter) XML ¶ added in v0.17.2
func (_e *Context_Expecter) XML(code interface{}, i interface{}) *Context_XML_Call
XML is a helper method to define mock.On call
- code int
- i interface{}
func (*Context_Expecter) XMLBlob ¶ added in v0.17.2
func (_e *Context_Expecter) XMLBlob(code interface{}, b interface{}) *Context_XMLBlob_Call
XMLBlob is a helper method to define mock.On call
- code int
- b []byte
func (*Context_Expecter) XMLPretty ¶ added in v0.17.2
func (_e *Context_Expecter) XMLPretty(code interface{}, i interface{}, indent interface{}) *Context_XMLPretty_Call
XMLPretty is a helper method to define mock.On call
- code int
- i interface{}
- indent string
type Context_File_Call ¶ added in v0.17.2
Context_File_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'File'
func (*Context_File_Call) Return ¶ added in v0.17.2
func (_c *Context_File_Call) Return(err error) *Context_File_Call
func (*Context_File_Call) Run ¶ added in v0.17.2
func (_c *Context_File_Call) Run(run func(file string)) *Context_File_Call
func (*Context_File_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_File_Call) RunAndReturn(run func(file string) error) *Context_File_Call
type Context_FormFile_Call ¶ added in v0.17.2
Context_FormFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FormFile'
func (*Context_FormFile_Call) Return ¶ added in v0.17.2
func (_c *Context_FormFile_Call) Return(fileHeader *multipart.FileHeader, err error) *Context_FormFile_Call
func (*Context_FormFile_Call) Run ¶ added in v0.17.2
func (_c *Context_FormFile_Call) Run(run func(name string)) *Context_FormFile_Call
func (*Context_FormFile_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_FormFile_Call) RunAndReturn(run func(name string) (*multipart.FileHeader, error)) *Context_FormFile_Call
type Context_FormParams_Call ¶ added in v0.17.2
Context_FormParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FormParams'
func (*Context_FormParams_Call) Return ¶ added in v0.17.2
func (_c *Context_FormParams_Call) Return(values url.Values, err error) *Context_FormParams_Call
func (*Context_FormParams_Call) Run ¶ added in v0.17.2
func (_c *Context_FormParams_Call) Run(run func()) *Context_FormParams_Call
func (*Context_FormParams_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_FormParams_Call) RunAndReturn(run func() (url.Values, error)) *Context_FormParams_Call
type Context_FormValue_Call ¶ added in v0.17.2
Context_FormValue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FormValue'
func (*Context_FormValue_Call) Return ¶ added in v0.17.2
func (_c *Context_FormValue_Call) Return(s string) *Context_FormValue_Call
func (*Context_FormValue_Call) Run ¶ added in v0.17.2
func (_c *Context_FormValue_Call) Run(run func(name string)) *Context_FormValue_Call
func (*Context_FormValue_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_FormValue_Call) RunAndReturn(run func(name string) string) *Context_FormValue_Call
type Context_Get_Call ¶ added in v0.17.2
Context_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Context_Get_Call) Return ¶ added in v0.17.2
func (_c *Context_Get_Call) Return(ifaceVal interface{}) *Context_Get_Call
func (*Context_Get_Call) Run ¶ added in v0.17.2
func (_c *Context_Get_Call) Run(run func(key string)) *Context_Get_Call
func (*Context_Get_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_Get_Call) RunAndReturn(run func(key string) interface{}) *Context_Get_Call
type Context_HTMLBlob_Call ¶ added in v0.17.2
Context_HTMLBlob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HTMLBlob'
func (*Context_HTMLBlob_Call) Return ¶ added in v0.17.2
func (_c *Context_HTMLBlob_Call) Return(err error) *Context_HTMLBlob_Call
func (*Context_HTMLBlob_Call) Run ¶ added in v0.17.2
func (_c *Context_HTMLBlob_Call) Run(run func(code int, b []byte)) *Context_HTMLBlob_Call
func (*Context_HTMLBlob_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_HTMLBlob_Call) RunAndReturn(run func(code int, b []byte) error) *Context_HTMLBlob_Call
type Context_HTML_Call ¶ added in v0.17.2
Context_HTML_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HTML'
func (*Context_HTML_Call) Return ¶ added in v0.17.2
func (_c *Context_HTML_Call) Return(err error) *Context_HTML_Call
func (*Context_HTML_Call) Run ¶ added in v0.17.2
func (_c *Context_HTML_Call) Run(run func(code int, html string)) *Context_HTML_Call
func (*Context_HTML_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_HTML_Call) RunAndReturn(run func(code int, html string) error) *Context_HTML_Call
type Context_Handler_Call ¶ added in v0.17.2
Context_Handler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Handler'
func (*Context_Handler_Call) Return ¶ added in v0.17.2
func (_c *Context_Handler_Call) Return(handlerFunc echo.HandlerFunc) *Context_Handler_Call
func (*Context_Handler_Call) Run ¶ added in v0.17.2
func (_c *Context_Handler_Call) Run(run func()) *Context_Handler_Call
func (*Context_Handler_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_Handler_Call) RunAndReturn(run func() echo.HandlerFunc) *Context_Handler_Call
type Context_Inline_Call ¶ added in v0.17.2
Context_Inline_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Inline'
func (*Context_Inline_Call) Return ¶ added in v0.17.2
func (_c *Context_Inline_Call) Return(err error) *Context_Inline_Call
func (*Context_Inline_Call) Run ¶ added in v0.17.2
func (_c *Context_Inline_Call) Run(run func(file string, name string)) *Context_Inline_Call
func (*Context_Inline_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_Inline_Call) RunAndReturn(run func(file string, name string) error) *Context_Inline_Call
type Context_IsTLS_Call ¶ added in v0.17.2
Context_IsTLS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsTLS'
func (*Context_IsTLS_Call) Return ¶ added in v0.17.2
func (_c *Context_IsTLS_Call) Return(b bool) *Context_IsTLS_Call
func (*Context_IsTLS_Call) Run ¶ added in v0.17.2
func (_c *Context_IsTLS_Call) Run(run func()) *Context_IsTLS_Call
func (*Context_IsTLS_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_IsTLS_Call) RunAndReturn(run func() bool) *Context_IsTLS_Call
type Context_IsWebSocket_Call ¶ added in v0.17.2
Context_IsWebSocket_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsWebSocket'
func (*Context_IsWebSocket_Call) Return ¶ added in v0.17.2
func (_c *Context_IsWebSocket_Call) Return(b bool) *Context_IsWebSocket_Call
func (*Context_IsWebSocket_Call) Run ¶ added in v0.17.2
func (_c *Context_IsWebSocket_Call) Run(run func()) *Context_IsWebSocket_Call
func (*Context_IsWebSocket_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_IsWebSocket_Call) RunAndReturn(run func() bool) *Context_IsWebSocket_Call
type Context_JSONBlob_Call ¶ added in v0.17.2
Context_JSONBlob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'JSONBlob'
func (*Context_JSONBlob_Call) Return ¶ added in v0.17.2
func (_c *Context_JSONBlob_Call) Return(err error) *Context_JSONBlob_Call
func (*Context_JSONBlob_Call) Run ¶ added in v0.17.2
func (_c *Context_JSONBlob_Call) Run(run func(code int, b []byte)) *Context_JSONBlob_Call
func (*Context_JSONBlob_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_JSONBlob_Call) RunAndReturn(run func(code int, b []byte) error) *Context_JSONBlob_Call
type Context_JSONPBlob_Call ¶ added in v0.17.2
Context_JSONPBlob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'JSONPBlob'
func (*Context_JSONPBlob_Call) Return ¶ added in v0.17.2
func (_c *Context_JSONPBlob_Call) Return(err error) *Context_JSONPBlob_Call
func (*Context_JSONPBlob_Call) Run ¶ added in v0.17.2
func (_c *Context_JSONPBlob_Call) Run(run func(code int, callback string, b []byte)) *Context_JSONPBlob_Call
func (*Context_JSONPBlob_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_JSONPBlob_Call) RunAndReturn(run func(code int, callback string, b []byte) error) *Context_JSONPBlob_Call
type Context_JSONP_Call ¶ added in v0.17.2
Context_JSONP_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'JSONP'
func (*Context_JSONP_Call) Return ¶ added in v0.17.2
func (_c *Context_JSONP_Call) Return(err error) *Context_JSONP_Call
func (*Context_JSONP_Call) Run ¶ added in v0.17.2
func (_c *Context_JSONP_Call) Run(run func(code int, callback string, i interface{})) *Context_JSONP_Call
func (*Context_JSONP_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_JSONP_Call) RunAndReturn(run func(code int, callback string, i interface{}) error) *Context_JSONP_Call
type Context_JSONPretty_Call ¶ added in v0.17.2
Context_JSONPretty_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'JSONPretty'
func (*Context_JSONPretty_Call) Return ¶ added in v0.17.2
func (_c *Context_JSONPretty_Call) Return(err error) *Context_JSONPretty_Call
func (*Context_JSONPretty_Call) Run ¶ added in v0.17.2
func (_c *Context_JSONPretty_Call) Run(run func(code int, i interface{}, indent string)) *Context_JSONPretty_Call
func (*Context_JSONPretty_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_JSONPretty_Call) RunAndReturn(run func(code int, i interface{}, indent string) error) *Context_JSONPretty_Call
type Context_JSON_Call ¶ added in v0.17.2
Context_JSON_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'JSON'
func (*Context_JSON_Call) Return ¶ added in v0.17.2
func (_c *Context_JSON_Call) Return(err error) *Context_JSON_Call
func (*Context_JSON_Call) Run ¶ added in v0.17.2
func (_c *Context_JSON_Call) Run(run func(code int, i interface{})) *Context_JSON_Call
func (*Context_JSON_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_JSON_Call) RunAndReturn(run func(code int, i interface{}) error) *Context_JSON_Call
type Context_Logger_Call ¶ added in v0.17.2
Context_Logger_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Logger'
func (*Context_Logger_Call) Return ¶ added in v0.17.2
func (_c *Context_Logger_Call) Return(logger echo.Logger) *Context_Logger_Call
func (*Context_Logger_Call) Run ¶ added in v0.17.2
func (_c *Context_Logger_Call) Run(run func()) *Context_Logger_Call
func (*Context_Logger_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_Logger_Call) RunAndReturn(run func() echo.Logger) *Context_Logger_Call
type Context_MultipartForm_Call ¶ added in v0.17.2
Context_MultipartForm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MultipartForm'
func (*Context_MultipartForm_Call) Return ¶ added in v0.17.2
func (_c *Context_MultipartForm_Call) Return(form *multipart.Form, err error) *Context_MultipartForm_Call
func (*Context_MultipartForm_Call) Run ¶ added in v0.17.2
func (_c *Context_MultipartForm_Call) Run(run func()) *Context_MultipartForm_Call
func (*Context_MultipartForm_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_MultipartForm_Call) RunAndReturn(run func() (*multipart.Form, error)) *Context_MultipartForm_Call
type Context_NoContent_Call ¶ added in v0.17.2
Context_NoContent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NoContent'
func (*Context_NoContent_Call) Return ¶ added in v0.17.2
func (_c *Context_NoContent_Call) Return(err error) *Context_NoContent_Call
func (*Context_NoContent_Call) Run ¶ added in v0.17.2
func (_c *Context_NoContent_Call) Run(run func(code int)) *Context_NoContent_Call
func (*Context_NoContent_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_NoContent_Call) RunAndReturn(run func(code int) error) *Context_NoContent_Call
type Context_ParamNames_Call ¶ added in v0.17.2
Context_ParamNames_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ParamNames'
func (*Context_ParamNames_Call) Return ¶ added in v0.17.2
func (_c *Context_ParamNames_Call) Return(strings []string) *Context_ParamNames_Call
func (*Context_ParamNames_Call) Run ¶ added in v0.17.2
func (_c *Context_ParamNames_Call) Run(run func()) *Context_ParamNames_Call
func (*Context_ParamNames_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_ParamNames_Call) RunAndReturn(run func() []string) *Context_ParamNames_Call
type Context_ParamValues_Call ¶ added in v0.17.2
Context_ParamValues_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ParamValues'
func (*Context_ParamValues_Call) Return ¶ added in v0.17.2
func (_c *Context_ParamValues_Call) Return(strings []string) *Context_ParamValues_Call
func (*Context_ParamValues_Call) Run ¶ added in v0.17.2
func (_c *Context_ParamValues_Call) Run(run func()) *Context_ParamValues_Call
func (*Context_ParamValues_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_ParamValues_Call) RunAndReturn(run func() []string) *Context_ParamValues_Call
type Context_Param_Call ¶ added in v0.17.2
Context_Param_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Param'
func (*Context_Param_Call) Return ¶ added in v0.17.2
func (_c *Context_Param_Call) Return(s string) *Context_Param_Call
func (*Context_Param_Call) Run ¶ added in v0.17.2
func (_c *Context_Param_Call) Run(run func(name string)) *Context_Param_Call
func (*Context_Param_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_Param_Call) RunAndReturn(run func(name string) string) *Context_Param_Call
type Context_Path_Call ¶ added in v0.17.2
Context_Path_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Path'
func (*Context_Path_Call) Return ¶ added in v0.17.2
func (_c *Context_Path_Call) Return(s string) *Context_Path_Call
func (*Context_Path_Call) Run ¶ added in v0.17.2
func (_c *Context_Path_Call) Run(run func()) *Context_Path_Call
func (*Context_Path_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_Path_Call) RunAndReturn(run func() string) *Context_Path_Call
type Context_QueryParam_Call ¶ added in v0.17.2
Context_QueryParam_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryParam'
func (*Context_QueryParam_Call) Return ¶ added in v0.17.2
func (_c *Context_QueryParam_Call) Return(s string) *Context_QueryParam_Call
func (*Context_QueryParam_Call) Run ¶ added in v0.17.2
func (_c *Context_QueryParam_Call) Run(run func(name string)) *Context_QueryParam_Call
func (*Context_QueryParam_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_QueryParam_Call) RunAndReturn(run func(name string) string) *Context_QueryParam_Call
type Context_QueryParams_Call ¶ added in v0.17.2
Context_QueryParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryParams'
func (*Context_QueryParams_Call) Return ¶ added in v0.17.2
func (_c *Context_QueryParams_Call) Return(values url.Values) *Context_QueryParams_Call
func (*Context_QueryParams_Call) Run ¶ added in v0.17.2
func (_c *Context_QueryParams_Call) Run(run func()) *Context_QueryParams_Call
func (*Context_QueryParams_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_QueryParams_Call) RunAndReturn(run func() url.Values) *Context_QueryParams_Call
type Context_QueryString_Call ¶ added in v0.17.2
Context_QueryString_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryString'
func (*Context_QueryString_Call) Return ¶ added in v0.17.2
func (_c *Context_QueryString_Call) Return(s string) *Context_QueryString_Call
func (*Context_QueryString_Call) Run ¶ added in v0.17.2
func (_c *Context_QueryString_Call) Run(run func()) *Context_QueryString_Call
func (*Context_QueryString_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_QueryString_Call) RunAndReturn(run func() string) *Context_QueryString_Call
type Context_RealIP_Call ¶ added in v0.17.2
Context_RealIP_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RealIP'
func (*Context_RealIP_Call) Return ¶ added in v0.17.2
func (_c *Context_RealIP_Call) Return(s string) *Context_RealIP_Call
func (*Context_RealIP_Call) Run ¶ added in v0.17.2
func (_c *Context_RealIP_Call) Run(run func()) *Context_RealIP_Call
func (*Context_RealIP_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_RealIP_Call) RunAndReturn(run func() string) *Context_RealIP_Call
type Context_Redirect_Call ¶ added in v0.17.2
Context_Redirect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Redirect'
func (*Context_Redirect_Call) Return ¶ added in v0.17.2
func (_c *Context_Redirect_Call) Return(err error) *Context_Redirect_Call
func (*Context_Redirect_Call) Run ¶ added in v0.17.2
func (_c *Context_Redirect_Call) Run(run func(code int, url1 string)) *Context_Redirect_Call
func (*Context_Redirect_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_Redirect_Call) RunAndReturn(run func(code int, url1 string) error) *Context_Redirect_Call
type Context_Render_Call ¶ added in v0.17.2
Context_Render_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Render'
func (*Context_Render_Call) Return ¶ added in v0.17.2
func (_c *Context_Render_Call) Return(err error) *Context_Render_Call
func (*Context_Render_Call) Run ¶ added in v0.17.2
func (_c *Context_Render_Call) Run(run func(code int, name string, data interface{})) *Context_Render_Call
func (*Context_Render_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_Render_Call) RunAndReturn(run func(code int, name string, data interface{}) error) *Context_Render_Call
type Context_Request_Call ¶ added in v0.17.2
Context_Request_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Request'
func (*Context_Request_Call) Return ¶ added in v0.17.2
func (_c *Context_Request_Call) Return(request *http.Request) *Context_Request_Call
func (*Context_Request_Call) Run ¶ added in v0.17.2
func (_c *Context_Request_Call) Run(run func()) *Context_Request_Call
func (*Context_Request_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_Request_Call) RunAndReturn(run func() *http.Request) *Context_Request_Call
type Context_Reset_Call ¶ added in v0.17.2
Context_Reset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reset'
func (*Context_Reset_Call) Return ¶ added in v0.17.2
func (_c *Context_Reset_Call) Return() *Context_Reset_Call
func (*Context_Reset_Call) Run ¶ added in v0.17.2
func (_c *Context_Reset_Call) Run(run func(r *http.Request, w http.ResponseWriter)) *Context_Reset_Call
func (*Context_Reset_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_Reset_Call) RunAndReturn(run func(r *http.Request, w http.ResponseWriter)) *Context_Reset_Call
type Context_Response_Call ¶ added in v0.17.2
Context_Response_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Response'
func (*Context_Response_Call) Return ¶ added in v0.17.2
func (_c *Context_Response_Call) Return(response *echo.Response) *Context_Response_Call
func (*Context_Response_Call) Run ¶ added in v0.17.2
func (_c *Context_Response_Call) Run(run func()) *Context_Response_Call
func (*Context_Response_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_Response_Call) RunAndReturn(run func() *echo.Response) *Context_Response_Call
type Context_Scheme_Call ¶ added in v0.17.2
Context_Scheme_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Scheme'
func (*Context_Scheme_Call) Return ¶ added in v0.17.2
func (_c *Context_Scheme_Call) Return(s string) *Context_Scheme_Call
func (*Context_Scheme_Call) Run ¶ added in v0.17.2
func (_c *Context_Scheme_Call) Run(run func()) *Context_Scheme_Call
func (*Context_Scheme_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_Scheme_Call) RunAndReturn(run func() string) *Context_Scheme_Call
type Context_SetCookie_Call ¶ added in v0.17.2
Context_SetCookie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCookie'
func (*Context_SetCookie_Call) Return ¶ added in v0.17.2
func (_c *Context_SetCookie_Call) Return() *Context_SetCookie_Call
func (*Context_SetCookie_Call) Run ¶ added in v0.17.2
func (_c *Context_SetCookie_Call) Run(run func(cookie *http.Cookie)) *Context_SetCookie_Call
func (*Context_SetCookie_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_SetCookie_Call) RunAndReturn(run func(cookie *http.Cookie)) *Context_SetCookie_Call
type Context_SetHandler_Call ¶ added in v0.17.2
Context_SetHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHandler'
func (*Context_SetHandler_Call) Return ¶ added in v0.17.2
func (_c *Context_SetHandler_Call) Return() *Context_SetHandler_Call
func (*Context_SetHandler_Call) Run ¶ added in v0.17.2
func (_c *Context_SetHandler_Call) Run(run func(h echo.HandlerFunc)) *Context_SetHandler_Call
func (*Context_SetHandler_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_SetHandler_Call) RunAndReturn(run func(h echo.HandlerFunc)) *Context_SetHandler_Call
type Context_SetLogger_Call ¶ added in v0.17.2
Context_SetLogger_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetLogger'
func (*Context_SetLogger_Call) Return ¶ added in v0.17.2
func (_c *Context_SetLogger_Call) Return() *Context_SetLogger_Call
func (*Context_SetLogger_Call) Run ¶ added in v0.17.2
func (_c *Context_SetLogger_Call) Run(run func(l echo.Logger)) *Context_SetLogger_Call
func (*Context_SetLogger_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_SetLogger_Call) RunAndReturn(run func(l echo.Logger)) *Context_SetLogger_Call
type Context_SetParamNames_Call ¶ added in v0.17.2
Context_SetParamNames_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetParamNames'
func (*Context_SetParamNames_Call) Return ¶ added in v0.17.2
func (_c *Context_SetParamNames_Call) Return() *Context_SetParamNames_Call
func (*Context_SetParamNames_Call) Run ¶ added in v0.17.2
func (_c *Context_SetParamNames_Call) Run(run func(names ...string)) *Context_SetParamNames_Call
func (*Context_SetParamNames_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_SetParamNames_Call) RunAndReturn(run func(names ...string)) *Context_SetParamNames_Call
type Context_SetParamValues_Call ¶ added in v0.17.2
Context_SetParamValues_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetParamValues'
func (*Context_SetParamValues_Call) Return ¶ added in v0.17.2
func (_c *Context_SetParamValues_Call) Return() *Context_SetParamValues_Call
func (*Context_SetParamValues_Call) Run ¶ added in v0.17.2
func (_c *Context_SetParamValues_Call) Run(run func(values ...string)) *Context_SetParamValues_Call
func (*Context_SetParamValues_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_SetParamValues_Call) RunAndReturn(run func(values ...string)) *Context_SetParamValues_Call
type Context_SetPath_Call ¶ added in v0.17.2
Context_SetPath_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPath'
func (*Context_SetPath_Call) Return ¶ added in v0.17.2
func (_c *Context_SetPath_Call) Return() *Context_SetPath_Call
func (*Context_SetPath_Call) Run ¶ added in v0.17.2
func (_c *Context_SetPath_Call) Run(run func(p string)) *Context_SetPath_Call
func (*Context_SetPath_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_SetPath_Call) RunAndReturn(run func(p string)) *Context_SetPath_Call
type Context_SetRequest_Call ¶ added in v0.17.2
Context_SetRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetRequest'
func (*Context_SetRequest_Call) Return ¶ added in v0.17.2
func (_c *Context_SetRequest_Call) Return() *Context_SetRequest_Call
func (*Context_SetRequest_Call) Run ¶ added in v0.17.2
func (_c *Context_SetRequest_Call) Run(run func(r *http.Request)) *Context_SetRequest_Call
func (*Context_SetRequest_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_SetRequest_Call) RunAndReturn(run func(r *http.Request)) *Context_SetRequest_Call
type Context_SetResponse_Call ¶ added in v0.17.2
Context_SetResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetResponse'
func (*Context_SetResponse_Call) Return ¶ added in v0.17.2
func (_c *Context_SetResponse_Call) Return() *Context_SetResponse_Call
func (*Context_SetResponse_Call) Run ¶ added in v0.17.2
func (_c *Context_SetResponse_Call) Run(run func(r *echo.Response)) *Context_SetResponse_Call
func (*Context_SetResponse_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_SetResponse_Call) RunAndReturn(run func(r *echo.Response)) *Context_SetResponse_Call
type Context_Set_Call ¶ added in v0.17.2
Context_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
func (*Context_Set_Call) Return ¶ added in v0.17.2
func (_c *Context_Set_Call) Return() *Context_Set_Call
func (*Context_Set_Call) Run ¶ added in v0.17.2
func (_c *Context_Set_Call) Run(run func(key string, val interface{})) *Context_Set_Call
func (*Context_Set_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_Set_Call) RunAndReturn(run func(key string, val interface{})) *Context_Set_Call
type Context_Stream_Call ¶ added in v0.17.2
Context_Stream_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stream'
func (*Context_Stream_Call) Return ¶ added in v0.17.2
func (_c *Context_Stream_Call) Return(err error) *Context_Stream_Call
func (*Context_Stream_Call) Run ¶ added in v0.17.2
func (_c *Context_Stream_Call) Run(run func(code int, contentType string, r io.Reader)) *Context_Stream_Call
func (*Context_Stream_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_Stream_Call) RunAndReturn(run func(code int, contentType string, r io.Reader) error) *Context_Stream_Call
type Context_String_Call ¶ added in v0.17.2
Context_String_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'String'
func (*Context_String_Call) Return ¶ added in v0.17.2
func (_c *Context_String_Call) Return(err error) *Context_String_Call
func (*Context_String_Call) Run ¶ added in v0.17.2
func (_c *Context_String_Call) Run(run func(code int, s string)) *Context_String_Call
func (*Context_String_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_String_Call) RunAndReturn(run func(code int, s string) error) *Context_String_Call
type Context_Validate_Call ¶ added in v0.17.2
Context_Validate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validate'
func (*Context_Validate_Call) Return ¶ added in v0.17.2
func (_c *Context_Validate_Call) Return(err error) *Context_Validate_Call
func (*Context_Validate_Call) Run ¶ added in v0.17.2
func (_c *Context_Validate_Call) Run(run func(i interface{})) *Context_Validate_Call
func (*Context_Validate_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_Validate_Call) RunAndReturn(run func(i interface{}) error) *Context_Validate_Call
type Context_XMLBlob_Call ¶ added in v0.17.2
Context_XMLBlob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'XMLBlob'
func (*Context_XMLBlob_Call) Return ¶ added in v0.17.2
func (_c *Context_XMLBlob_Call) Return(err error) *Context_XMLBlob_Call
func (*Context_XMLBlob_Call) Run ¶ added in v0.17.2
func (_c *Context_XMLBlob_Call) Run(run func(code int, b []byte)) *Context_XMLBlob_Call
func (*Context_XMLBlob_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_XMLBlob_Call) RunAndReturn(run func(code int, b []byte) error) *Context_XMLBlob_Call
type Context_XMLPretty_Call ¶ added in v0.17.2
Context_XMLPretty_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'XMLPretty'
func (*Context_XMLPretty_Call) Return ¶ added in v0.17.2
func (_c *Context_XMLPretty_Call) Return(err error) *Context_XMLPretty_Call
func (*Context_XMLPretty_Call) Run ¶ added in v0.17.2
func (_c *Context_XMLPretty_Call) Run(run func(code int, i interface{}, indent string)) *Context_XMLPretty_Call
func (*Context_XMLPretty_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_XMLPretty_Call) RunAndReturn(run func(code int, i interface{}, indent string) error) *Context_XMLPretty_Call
type Context_XML_Call ¶ added in v0.17.2
Context_XML_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'XML'
func (*Context_XML_Call) Return ¶ added in v0.17.2
func (_c *Context_XML_Call) Return(err error) *Context_XML_Call
func (*Context_XML_Call) Run ¶ added in v0.17.2
func (_c *Context_XML_Call) Run(run func(code int, i interface{})) *Context_XML_Call
func (*Context_XML_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Context_XML_Call) RunAndReturn(run func(code int, i interface{}) error) *Context_XML_Call
type CveRepository ¶ added in v0.17.2
CveRepository is an autogenerated mock type for the CveRepository type
func NewCveRepository ¶ added in v0.17.2
func NewCveRepository(t interface { mock.TestingT Cleanup(func()) }) *CveRepository
NewCveRepository creates a new instance of CveRepository. 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 (*CveRepository) Activate ¶ added in v0.17.2
func (_mock *CveRepository) Activate(tx core.DB, id string) error
Activate provides a mock function for the type CveRepository
func (*CveRepository) All ¶ added in v0.17.2
func (_mock *CveRepository) All() ([]models.CVE, error)
All provides a mock function for the type CveRepository
func (*CveRepository) Begin ¶ added in v0.17.2
func (_mock *CveRepository) Begin() core.DB
Begin provides a mock function for the type CveRepository
func (*CveRepository) Create ¶ added in v0.17.2
Create provides a mock function for the type CveRepository
func (*CveRepository) CreateBatch ¶ added in v0.17.2
CreateBatch provides a mock function for the type CveRepository
func (*CveRepository) Delete ¶ added in v0.17.2
func (_mock *CveRepository) Delete(tx core.DB, id string) error
Delete provides a mock function for the type CveRepository
func (*CveRepository) DeleteBatch ¶ added in v0.17.2
DeleteBatch provides a mock function for the type CveRepository
func (*CveRepository) EXPECT ¶ added in v0.17.2
func (_m *CveRepository) EXPECT() *CveRepository_Expecter
func (*CveRepository) FindAllListPaged ¶ added in v0.17.2
func (_mock *CveRepository) FindAllListPaged(tx core.DB, pageInfo core.PageInfo, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.CVE], error)
FindAllListPaged provides a mock function for the type CveRepository
func (*CveRepository) FindByID ¶ added in v0.17.2
func (_mock *CveRepository) FindByID(id string) (models.CVE, error)
FindByID provides a mock function for the type CveRepository
func (*CveRepository) FindCVE ¶ added in v0.17.2
FindCVE provides a mock function for the type CveRepository
func (*CveRepository) FindCVEs ¶ added in v0.17.2
FindCVEs provides a mock function for the type CveRepository
func (*CveRepository) GetAllCVEsID ¶ added in v0.17.2
func (_mock *CveRepository) GetAllCVEsID() ([]string, error)
GetAllCVEsID provides a mock function for the type CveRepository
func (*CveRepository) GetDB ¶ added in v0.17.2
func (_mock *CveRepository) GetDB(tx core.DB) core.DB
GetDB provides a mock function for the type CveRepository
func (*CveRepository) GetLastModDate ¶ added in v0.17.2
func (_mock *CveRepository) GetLastModDate() (time.Time, error)
GetLastModDate provides a mock function for the type CveRepository
func (*CveRepository) List ¶ added in v0.17.2
func (_mock *CveRepository) List(ids []string) ([]models.CVE, error)
List provides a mock function for the type CveRepository
func (*CveRepository) Read ¶ added in v0.17.2
func (_mock *CveRepository) Read(id string) (models.CVE, error)
Read provides a mock function for the type CveRepository
func (*CveRepository) Save ¶ added in v0.17.2
Save provides a mock function for the type CveRepository
func (*CveRepository) SaveBatch ¶ added in v0.17.2
SaveBatch provides a mock function for the type CveRepository
func (*CveRepository) SaveCveAffectedComponents ¶ added in v0.17.2
func (_mock *CveRepository) SaveCveAffectedComponents(tx core.DB, cveID string, affectedComponentHashes []string) error
SaveCveAffectedComponents provides a mock function for the type CveRepository
func (*CveRepository) Transaction ¶ added in v0.17.2
func (_mock *CveRepository) Transaction(fn func(tx core.DB) error) error
Transaction provides a mock function for the type CveRepository
type CveRepository_Activate_Call ¶ added in v0.17.2
CveRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*CveRepository_Activate_Call) Return ¶ added in v0.17.2
func (_c *CveRepository_Activate_Call) Return(err error) *CveRepository_Activate_Call
func (*CveRepository_Activate_Call) Run ¶ added in v0.17.2
func (_c *CveRepository_Activate_Call) Run(run func(tx core.DB, id string)) *CveRepository_Activate_Call
func (*CveRepository_Activate_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CveRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id string) error) *CveRepository_Activate_Call
type CveRepository_All_Call ¶ added in v0.17.2
CveRepository_All_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'All'
func (*CveRepository_All_Call) Return ¶ added in v0.17.2
func (_c *CveRepository_All_Call) Return(cVEs []models.CVE, err error) *CveRepository_All_Call
func (*CveRepository_All_Call) Run ¶ added in v0.17.2
func (_c *CveRepository_All_Call) Run(run func()) *CveRepository_All_Call
func (*CveRepository_All_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CveRepository_All_Call) RunAndReturn(run func() ([]models.CVE, error)) *CveRepository_All_Call
type CveRepository_Begin_Call ¶ added in v0.17.2
CveRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*CveRepository_Begin_Call) Return ¶ added in v0.17.2
func (_c *CveRepository_Begin_Call) Return(v core.DB) *CveRepository_Begin_Call
func (*CveRepository_Begin_Call) Run ¶ added in v0.17.2
func (_c *CveRepository_Begin_Call) Run(run func()) *CveRepository_Begin_Call
func (*CveRepository_Begin_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CveRepository_Begin_Call) RunAndReturn(run func() core.DB) *CveRepository_Begin_Call
type CveRepository_CreateBatch_Call ¶ added in v0.17.2
CveRepository_CreateBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBatch'
func (*CveRepository_CreateBatch_Call) Return ¶ added in v0.17.2
func (_c *CveRepository_CreateBatch_Call) Return(err error) *CveRepository_CreateBatch_Call
func (*CveRepository_CreateBatch_Call) Run ¶ added in v0.17.2
func (_c *CveRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.CVE)) *CveRepository_CreateBatch_Call
func (*CveRepository_CreateBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CveRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.CVE) error) *CveRepository_CreateBatch_Call
type CveRepository_Create_Call ¶ added in v0.17.2
CveRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*CveRepository_Create_Call) Return ¶ added in v0.17.2
func (_c *CveRepository_Create_Call) Return(err error) *CveRepository_Create_Call
func (*CveRepository_Create_Call) Run ¶ added in v0.17.2
func (_c *CveRepository_Create_Call) Run(run func(tx core.DB, t *models.CVE)) *CveRepository_Create_Call
func (*CveRepository_Create_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CveRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.CVE) error) *CveRepository_Create_Call
type CveRepository_DeleteBatch_Call ¶ added in v0.17.2
CveRepository_DeleteBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBatch'
func (*CveRepository_DeleteBatch_Call) Return ¶ added in v0.17.2
func (_c *CveRepository_DeleteBatch_Call) Return(err error) *CveRepository_DeleteBatch_Call
func (*CveRepository_DeleteBatch_Call) Run ¶ added in v0.17.2
func (_c *CveRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.CVE)) *CveRepository_DeleteBatch_Call
func (*CveRepository_DeleteBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CveRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.CVE) error) *CveRepository_DeleteBatch_Call
type CveRepository_Delete_Call ¶ added in v0.17.2
CveRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*CveRepository_Delete_Call) Return ¶ added in v0.17.2
func (_c *CveRepository_Delete_Call) Return(err error) *CveRepository_Delete_Call
func (*CveRepository_Delete_Call) Run ¶ added in v0.17.2
func (_c *CveRepository_Delete_Call) Run(run func(tx core.DB, id string)) *CveRepository_Delete_Call
func (*CveRepository_Delete_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CveRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id string) error) *CveRepository_Delete_Call
type CveRepository_Expecter ¶ added in v0.17.2
type CveRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*CveRepository_Expecter) Activate ¶ added in v0.17.2
func (_e *CveRepository_Expecter) Activate(tx interface{}, id interface{}) *CveRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx core.DB
- id string
func (*CveRepository_Expecter) All ¶ added in v0.17.2
func (_e *CveRepository_Expecter) All() *CveRepository_All_Call
All is a helper method to define mock.On call
func (*CveRepository_Expecter) Begin ¶ added in v0.17.2
func (_e *CveRepository_Expecter) Begin() *CveRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*CveRepository_Expecter) Create ¶ added in v0.17.2
func (_e *CveRepository_Expecter) Create(tx interface{}, t interface{}) *CveRepository_Create_Call
Create is a helper method to define mock.On call
- tx core.DB
- t *models.CVE
func (*CveRepository_Expecter) CreateBatch ¶ added in v0.17.2
func (_e *CveRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *CveRepository_CreateBatch_Call
CreateBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.CVE
func (*CveRepository_Expecter) Delete ¶ added in v0.17.2
func (_e *CveRepository_Expecter) Delete(tx interface{}, id interface{}) *CveRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx core.DB
- id string
func (*CveRepository_Expecter) DeleteBatch ¶ added in v0.17.2
func (_e *CveRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *CveRepository_DeleteBatch_Call
DeleteBatch is a helper method to define mock.On call
- tx core.DB
- ids []models.CVE
func (*CveRepository_Expecter) FindAllListPaged ¶ added in v0.17.2
func (_e *CveRepository_Expecter) FindAllListPaged(tx interface{}, pageInfo interface{}, filter interface{}, sort interface{}) *CveRepository_FindAllListPaged_Call
FindAllListPaged is a helper method to define mock.On call
- tx core.DB
- pageInfo core.PageInfo
- filter []core.FilterQuery
- sort []core.SortQuery
func (*CveRepository_Expecter) FindByID ¶ added in v0.17.2
func (_e *CveRepository_Expecter) FindByID(id interface{}) *CveRepository_FindByID_Call
FindByID is a helper method to define mock.On call
- id string
func (*CveRepository_Expecter) FindCVE ¶ added in v0.17.2
func (_e *CveRepository_Expecter) FindCVE(tx interface{}, id interface{}) *CveRepository_FindCVE_Call
FindCVE is a helper method to define mock.On call
- tx core.DB
- id string
func (*CveRepository_Expecter) FindCVEs ¶ added in v0.17.2
func (_e *CveRepository_Expecter) FindCVEs(tx interface{}, ids interface{}) *CveRepository_FindCVEs_Call
FindCVEs is a helper method to define mock.On call
- tx core.DB
- ids []string
func (*CveRepository_Expecter) GetAllCVEsID ¶ added in v0.17.2
func (_e *CveRepository_Expecter) GetAllCVEsID() *CveRepository_GetAllCVEsID_Call
GetAllCVEsID is a helper method to define mock.On call
func (*CveRepository_Expecter) GetDB ¶ added in v0.17.2
func (_e *CveRepository_Expecter) GetDB(tx interface{}) *CveRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx core.DB
func (*CveRepository_Expecter) GetLastModDate ¶ added in v0.17.2
func (_e *CveRepository_Expecter) GetLastModDate() *CveRepository_GetLastModDate_Call
GetLastModDate is a helper method to define mock.On call
func (*CveRepository_Expecter) List ¶ added in v0.17.2
func (_e *CveRepository_Expecter) List(ids interface{}) *CveRepository_List_Call
List is a helper method to define mock.On call
- ids []string
func (*CveRepository_Expecter) Read ¶ added in v0.17.2
func (_e *CveRepository_Expecter) Read(id interface{}) *CveRepository_Read_Call
Read is a helper method to define mock.On call
- id string
func (*CveRepository_Expecter) Save ¶ added in v0.17.2
func (_e *CveRepository_Expecter) Save(tx interface{}, cve interface{}) *CveRepository_Save_Call
Save is a helper method to define mock.On call
- tx core.DB
- cve *models.CVE
func (*CveRepository_Expecter) SaveBatch ¶ added in v0.17.2
func (_e *CveRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *CveRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.CVE
func (*CveRepository_Expecter) SaveCveAffectedComponents ¶ added in v0.17.2
func (_e *CveRepository_Expecter) SaveCveAffectedComponents(tx interface{}, cveID interface{}, affectedComponentHashes interface{}) *CveRepository_SaveCveAffectedComponents_Call
SaveCveAffectedComponents is a helper method to define mock.On call
- tx core.DB
- cveID string
- affectedComponentHashes []string
func (*CveRepository_Expecter) Transaction ¶ added in v0.17.2
func (_e *CveRepository_Expecter) Transaction(fn interface{}) *CveRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- fn func(tx core.DB) error
func (*CveRepository_Expecter) Upsert ¶ added in v0.17.2
func (_e *CveRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *CveRepository_Upsert_Call
Upsert is a helper method to define mock.On call
- t *[]*models.CVE
- conflictingColumns []clause.Column
- updateOnly []string
type CveRepository_FindAllListPaged_Call ¶ added in v0.17.2
CveRepository_FindAllListPaged_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindAllListPaged'
func (*CveRepository_FindAllListPaged_Call) Return ¶ added in v0.17.2
func (_c *CveRepository_FindAllListPaged_Call) Return(paged core.Paged[models.CVE], err error) *CveRepository_FindAllListPaged_Call
func (*CveRepository_FindAllListPaged_Call) Run ¶ added in v0.17.2
func (_c *CveRepository_FindAllListPaged_Call) Run(run func(tx core.DB, pageInfo core.PageInfo, filter []core.FilterQuery, sort []core.SortQuery)) *CveRepository_FindAllListPaged_Call
func (*CveRepository_FindAllListPaged_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CveRepository_FindAllListPaged_Call) RunAndReturn(run func(tx core.DB, pageInfo core.PageInfo, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.CVE], error)) *CveRepository_FindAllListPaged_Call
type CveRepository_FindByID_Call ¶ added in v0.17.2
CveRepository_FindByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByID'
func (*CveRepository_FindByID_Call) Return ¶ added in v0.17.2
func (_c *CveRepository_FindByID_Call) Return(cVE models.CVE, err error) *CveRepository_FindByID_Call
func (*CveRepository_FindByID_Call) Run ¶ added in v0.17.2
func (_c *CveRepository_FindByID_Call) Run(run func(id string)) *CveRepository_FindByID_Call
func (*CveRepository_FindByID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CveRepository_FindByID_Call) RunAndReturn(run func(id string) (models.CVE, error)) *CveRepository_FindByID_Call
type CveRepository_FindCVE_Call ¶ added in v0.17.2
CveRepository_FindCVE_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindCVE'
func (*CveRepository_FindCVE_Call) Return ¶ added in v0.17.2
func (_c *CveRepository_FindCVE_Call) Return(cVE models.CVE, err error) *CveRepository_FindCVE_Call
func (*CveRepository_FindCVE_Call) Run ¶ added in v0.17.2
func (_c *CveRepository_FindCVE_Call) Run(run func(tx core.DB, id string)) *CveRepository_FindCVE_Call
func (*CveRepository_FindCVE_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CveRepository_FindCVE_Call) RunAndReturn(run func(tx core.DB, id string) (models.CVE, error)) *CveRepository_FindCVE_Call
type CveRepository_FindCVEs_Call ¶ added in v0.17.2
CveRepository_FindCVEs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindCVEs'
func (*CveRepository_FindCVEs_Call) Return ¶ added in v0.17.2
func (_c *CveRepository_FindCVEs_Call) Return(cVEs []models.CVE, err error) *CveRepository_FindCVEs_Call
func (*CveRepository_FindCVEs_Call) Run ¶ added in v0.17.2
func (_c *CveRepository_FindCVEs_Call) Run(run func(tx core.DB, ids []string)) *CveRepository_FindCVEs_Call
func (*CveRepository_FindCVEs_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CveRepository_FindCVEs_Call) RunAndReturn(run func(tx core.DB, ids []string) ([]models.CVE, error)) *CveRepository_FindCVEs_Call
type CveRepository_GetAllCVEsID_Call ¶ added in v0.17.2
CveRepository_GetAllCVEsID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllCVEsID'
func (*CveRepository_GetAllCVEsID_Call) Return ¶ added in v0.17.2
func (_c *CveRepository_GetAllCVEsID_Call) Return(strings []string, err error) *CveRepository_GetAllCVEsID_Call
func (*CveRepository_GetAllCVEsID_Call) Run ¶ added in v0.17.2
func (_c *CveRepository_GetAllCVEsID_Call) Run(run func()) *CveRepository_GetAllCVEsID_Call
func (*CveRepository_GetAllCVEsID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CveRepository_GetAllCVEsID_Call) RunAndReturn(run func() ([]string, error)) *CveRepository_GetAllCVEsID_Call
type CveRepository_GetDB_Call ¶ added in v0.17.2
CveRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*CveRepository_GetDB_Call) Return ¶ added in v0.17.2
func (_c *CveRepository_GetDB_Call) Return(v core.DB) *CveRepository_GetDB_Call
func (*CveRepository_GetDB_Call) Run ¶ added in v0.17.2
func (_c *CveRepository_GetDB_Call) Run(run func(tx core.DB)) *CveRepository_GetDB_Call
func (*CveRepository_GetDB_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CveRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *CveRepository_GetDB_Call
type CveRepository_GetLastModDate_Call ¶ added in v0.17.2
CveRepository_GetLastModDate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastModDate'
func (*CveRepository_GetLastModDate_Call) Return ¶ added in v0.17.2
func (_c *CveRepository_GetLastModDate_Call) Return(time1 time.Time, err error) *CveRepository_GetLastModDate_Call
func (*CveRepository_GetLastModDate_Call) Run ¶ added in v0.17.2
func (_c *CveRepository_GetLastModDate_Call) Run(run func()) *CveRepository_GetLastModDate_Call
func (*CveRepository_GetLastModDate_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CveRepository_GetLastModDate_Call) RunAndReturn(run func() (time.Time, error)) *CveRepository_GetLastModDate_Call
type CveRepository_List_Call ¶ added in v0.17.2
CveRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*CveRepository_List_Call) Return ¶ added in v0.17.2
func (_c *CveRepository_List_Call) Return(cVEs []models.CVE, err error) *CveRepository_List_Call
func (*CveRepository_List_Call) Run ¶ added in v0.17.2
func (_c *CveRepository_List_Call) Run(run func(ids []string)) *CveRepository_List_Call
func (*CveRepository_List_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CveRepository_List_Call) RunAndReturn(run func(ids []string) ([]models.CVE, error)) *CveRepository_List_Call
type CveRepository_Read_Call ¶ added in v0.17.2
CveRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*CveRepository_Read_Call) Return ¶ added in v0.17.2
func (_c *CveRepository_Read_Call) Return(cVE models.CVE, err error) *CveRepository_Read_Call
func (*CveRepository_Read_Call) Run ¶ added in v0.17.2
func (_c *CveRepository_Read_Call) Run(run func(id string)) *CveRepository_Read_Call
func (*CveRepository_Read_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CveRepository_Read_Call) RunAndReturn(run func(id string) (models.CVE, error)) *CveRepository_Read_Call
type CveRepository_SaveBatch_Call ¶ added in v0.17.2
CveRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*CveRepository_SaveBatch_Call) Return ¶ added in v0.17.2
func (_c *CveRepository_SaveBatch_Call) Return(err error) *CveRepository_SaveBatch_Call
func (*CveRepository_SaveBatch_Call) Run ¶ added in v0.17.2
func (_c *CveRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.CVE)) *CveRepository_SaveBatch_Call
func (*CveRepository_SaveBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CveRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.CVE) error) *CveRepository_SaveBatch_Call
type CveRepository_SaveCveAffectedComponents_Call ¶ added in v0.17.2
CveRepository_SaveCveAffectedComponents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveCveAffectedComponents'
func (*CveRepository_SaveCveAffectedComponents_Call) Return ¶ added in v0.17.2
func (_c *CveRepository_SaveCveAffectedComponents_Call) Return(err error) *CveRepository_SaveCveAffectedComponents_Call
func (*CveRepository_SaveCveAffectedComponents_Call) Run ¶ added in v0.17.2
func (_c *CveRepository_SaveCveAffectedComponents_Call) Run(run func(tx core.DB, cveID string, affectedComponentHashes []string)) *CveRepository_SaveCveAffectedComponents_Call
func (*CveRepository_SaveCveAffectedComponents_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CveRepository_SaveCveAffectedComponents_Call) RunAndReturn(run func(tx core.DB, cveID string, affectedComponentHashes []string) error) *CveRepository_SaveCveAffectedComponents_Call
type CveRepository_Save_Call ¶ added in v0.17.2
CveRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*CveRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *CveRepository_Save_Call) Return(err error) *CveRepository_Save_Call
func (*CveRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *CveRepository_Save_Call) Run(run func(tx core.DB, cve *models.CVE)) *CveRepository_Save_Call
func (*CveRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CveRepository_Save_Call) RunAndReturn(run func(tx core.DB, cve *models.CVE) error) *CveRepository_Save_Call
type CveRepository_Transaction_Call ¶ added in v0.17.2
CveRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*CveRepository_Transaction_Call) Return ¶ added in v0.17.2
func (_c *CveRepository_Transaction_Call) Return(err error) *CveRepository_Transaction_Call
func (*CveRepository_Transaction_Call) Run ¶ added in v0.17.2
func (_c *CveRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *CveRepository_Transaction_Call
func (*CveRepository_Transaction_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CveRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *CveRepository_Transaction_Call
type CveRepository_Upsert_Call ¶ added in v0.17.2
CveRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*CveRepository_Upsert_Call) Return ¶ added in v0.17.2
func (_c *CveRepository_Upsert_Call) Return(err error) *CveRepository_Upsert_Call
func (*CveRepository_Upsert_Call) Run ¶ added in v0.17.2
func (_c *CveRepository_Upsert_Call) Run(run func(t *[]*models.CVE, conflictingColumns []clause.Column, updateOnly []string)) *CveRepository_Upsert_Call
func (*CveRepository_Upsert_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CveRepository_Upsert_Call) RunAndReturn(run func(t *[]*models.CVE, conflictingColumns []clause.Column, updateOnly []string) error) *CveRepository_Upsert_Call
type CvssInterface ¶ added in v0.17.2
CvssInterface is an autogenerated mock type for the cvssInterface type
func NewCvssInterface ¶ added in v0.17.2
func NewCvssInterface(t interface { mock.TestingT Cleanup(func()) }) *CvssInterface
NewCvssInterface creates a new instance of CvssInterface. 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 (*CvssInterface) EXPECT ¶ added in v0.17.2
func (_m *CvssInterface) EXPECT() *CvssInterface_Expecter
func (*CvssInterface) EnvironmentalScore ¶ added in v0.17.2
func (_mock *CvssInterface) EnvironmentalScore() float64
EnvironmentalScore provides a mock function for the type CvssInterface
func (*CvssInterface) Get ¶ added in v0.17.2
func (_mock *CvssInterface) Get(key string) (string, error)
Get provides a mock function for the type CvssInterface
func (*CvssInterface) Set ¶ added in v0.17.2
func (_mock *CvssInterface) Set(key string, value string) error
Set provides a mock function for the type CvssInterface
func (*CvssInterface) TemporalScore ¶ added in v0.17.2
func (_mock *CvssInterface) TemporalScore() float64
TemporalScore provides a mock function for the type CvssInterface
func (*CvssInterface) Vector ¶ added in v0.17.2
func (_mock *CvssInterface) Vector() string
Vector provides a mock function for the type CvssInterface
type CvssInterface_EnvironmentalScore_Call ¶ added in v0.17.2
CvssInterface_EnvironmentalScore_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnvironmentalScore'
func (*CvssInterface_EnvironmentalScore_Call) Return ¶ added in v0.17.2
func (_c *CvssInterface_EnvironmentalScore_Call) Return(f float64) *CvssInterface_EnvironmentalScore_Call
func (*CvssInterface_EnvironmentalScore_Call) Run ¶ added in v0.17.2
func (_c *CvssInterface_EnvironmentalScore_Call) Run(run func()) *CvssInterface_EnvironmentalScore_Call
func (*CvssInterface_EnvironmentalScore_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CvssInterface_EnvironmentalScore_Call) RunAndReturn(run func() float64) *CvssInterface_EnvironmentalScore_Call
type CvssInterface_Expecter ¶ added in v0.17.2
type CvssInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*CvssInterface_Expecter) EnvironmentalScore ¶ added in v0.17.2
func (_e *CvssInterface_Expecter) EnvironmentalScore() *CvssInterface_EnvironmentalScore_Call
EnvironmentalScore is a helper method to define mock.On call
func (*CvssInterface_Expecter) Get ¶ added in v0.17.2
func (_e *CvssInterface_Expecter) Get(key interface{}) *CvssInterface_Get_Call
Get is a helper method to define mock.On call
- key string
func (*CvssInterface_Expecter) Set ¶ added in v0.17.2
func (_e *CvssInterface_Expecter) Set(key interface{}, value interface{}) *CvssInterface_Set_Call
Set is a helper method to define mock.On call
- key string
- value string
func (*CvssInterface_Expecter) TemporalScore ¶ added in v0.17.2
func (_e *CvssInterface_Expecter) TemporalScore() *CvssInterface_TemporalScore_Call
TemporalScore is a helper method to define mock.On call
func (*CvssInterface_Expecter) Vector ¶ added in v0.17.2
func (_e *CvssInterface_Expecter) Vector() *CvssInterface_Vector_Call
Vector is a helper method to define mock.On call
type CvssInterface_Get_Call ¶ added in v0.17.2
CvssInterface_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*CvssInterface_Get_Call) Return ¶ added in v0.17.2
func (_c *CvssInterface_Get_Call) Return(s string, err error) *CvssInterface_Get_Call
func (*CvssInterface_Get_Call) Run ¶ added in v0.17.2
func (_c *CvssInterface_Get_Call) Run(run func(key string)) *CvssInterface_Get_Call
func (*CvssInterface_Get_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CvssInterface_Get_Call) RunAndReturn(run func(key string) (string, error)) *CvssInterface_Get_Call
type CvssInterface_Set_Call ¶ added in v0.17.2
CvssInterface_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
func (*CvssInterface_Set_Call) Return ¶ added in v0.17.2
func (_c *CvssInterface_Set_Call) Return(err error) *CvssInterface_Set_Call
func (*CvssInterface_Set_Call) Run ¶ added in v0.17.2
func (_c *CvssInterface_Set_Call) Run(run func(key string, value string)) *CvssInterface_Set_Call
func (*CvssInterface_Set_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CvssInterface_Set_Call) RunAndReturn(run func(key string, value string) error) *CvssInterface_Set_Call
type CvssInterface_TemporalScore_Call ¶ added in v0.17.2
CvssInterface_TemporalScore_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TemporalScore'
func (*CvssInterface_TemporalScore_Call) Return ¶ added in v0.17.2
func (_c *CvssInterface_TemporalScore_Call) Return(f float64) *CvssInterface_TemporalScore_Call
func (*CvssInterface_TemporalScore_Call) Run ¶ added in v0.17.2
func (_c *CvssInterface_TemporalScore_Call) Run(run func()) *CvssInterface_TemporalScore_Call
func (*CvssInterface_TemporalScore_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CvssInterface_TemporalScore_Call) RunAndReturn(run func() float64) *CvssInterface_TemporalScore_Call
type CvssInterface_Vector_Call ¶ added in v0.17.2
CvssInterface_Vector_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Vector'
func (*CvssInterface_Vector_Call) Return ¶ added in v0.17.2
func (_c *CvssInterface_Vector_Call) Return(s string) *CvssInterface_Vector_Call
func (*CvssInterface_Vector_Call) Run ¶ added in v0.17.2
func (_c *CvssInterface_Vector_Call) Run(run func()) *CvssInterface_Vector_Call
func (*CvssInterface_Vector_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CvssInterface_Vector_Call) RunAndReturn(run func() string) *CvssInterface_Vector_Call
type CweRepository ¶ added in v0.17.2
CweRepository is an autogenerated mock type for the CweRepository type
func NewCweRepository ¶ added in v0.17.2
func NewCweRepository(t interface { mock.TestingT Cleanup(func()) }) *CweRepository
NewCweRepository creates a new instance of CweRepository. 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 (*CweRepository) EXPECT ¶ added in v0.17.2
func (_m *CweRepository) EXPECT() *CweRepository_Expecter
func (*CweRepository) GetAllCWEsID ¶ added in v0.17.2
func (_mock *CweRepository) GetAllCWEsID() ([]string, error)
GetAllCWEsID provides a mock function for the type CweRepository
type CweRepository_Expecter ¶ added in v0.17.2
type CweRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*CweRepository_Expecter) GetAllCWEsID ¶ added in v0.17.2
func (_e *CweRepository_Expecter) GetAllCWEsID() *CweRepository_GetAllCWEsID_Call
GetAllCWEsID is a helper method to define mock.On call
func (*CweRepository_Expecter) SaveBatch ¶ added in v0.17.2
func (_e *CweRepository_Expecter) SaveBatch(tx interface{}, cwes interface{}) *CweRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx core.DB
- cwes []models.CWE
type CweRepository_GetAllCWEsID_Call ¶ added in v0.17.2
CweRepository_GetAllCWEsID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllCWEsID'
func (*CweRepository_GetAllCWEsID_Call) Return ¶ added in v0.17.2
func (_c *CweRepository_GetAllCWEsID_Call) Return(strings []string, err error) *CweRepository_GetAllCWEsID_Call
func (*CweRepository_GetAllCWEsID_Call) Run ¶ added in v0.17.2
func (_c *CweRepository_GetAllCWEsID_Call) Run(run func()) *CweRepository_GetAllCWEsID_Call
func (*CweRepository_GetAllCWEsID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CweRepository_GetAllCWEsID_Call) RunAndReturn(run func() ([]string, error)) *CweRepository_GetAllCWEsID_Call
type CweRepository_SaveBatch_Call ¶ added in v0.17.2
CweRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*CweRepository_SaveBatch_Call) Return ¶ added in v0.17.2
func (_c *CweRepository_SaveBatch_Call) Return(err error) *CweRepository_SaveBatch_Call
func (*CweRepository_SaveBatch_Call) Run ¶ added in v0.17.2
func (_c *CweRepository_SaveBatch_Call) Run(run func(tx core.DB, cwes []models.CWE)) *CweRepository_SaveBatch_Call
func (*CweRepository_SaveBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *CweRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, cwes []models.CWE) error) *CweRepository_SaveBatch_Call
type DependencyVulnRepository ¶ added in v0.17.2
DependencyVulnRepository is an autogenerated mock type for the DependencyVulnRepository type
func NewDependencyVulnRepository ¶ added in v0.17.2
func NewDependencyVulnRepository(t interface { mock.TestingT Cleanup(func()) }) *DependencyVulnRepository
NewDependencyVulnRepository creates a new instance of DependencyVulnRepository. 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 (*DependencyVulnRepository) Activate ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) Activate(tx core.DB, id string) error
Activate provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) All ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) All() ([]models.DependencyVuln, error)
All provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) ApplyAndSave ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) ApplyAndSave(tx core.DB, dependencyVuln *models.DependencyVuln, vulnEvent *models.VulnEvent) error
ApplyAndSave provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) Begin ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) Begin() core.DB
Begin provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) Create ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) Create(tx core.DB, t *models.DependencyVuln) error
Create provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) CreateBatch ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) CreateBatch(tx core.DB, ts []models.DependencyVuln) error
CreateBatch provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) Delete ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) Delete(tx core.DB, id string) error
Delete provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) DeleteBatch ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) DeleteBatch(tx core.DB, ids []models.DependencyVuln) error
DeleteBatch provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) EXPECT ¶ added in v0.17.2
func (_m *DependencyVulnRepository) EXPECT() *DependencyVulnRepository_Expecter
func (*DependencyVulnRepository) GetAllByAssetIDAndState ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) GetAllByAssetIDAndState(tx core.DB, assetID uuid.UUID, state models.VulnState, durationSinceStateChange time.Duration) ([]models.DependencyVuln, error)
GetAllByAssetIDAndState provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) GetAllOpenVulnsByAssetVersionNameAndAssetID ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) GetAllOpenVulnsByAssetVersionNameAndAssetID(tx core.DB, artifactName *string, assetVersionName string, assetID uuid.UUID) ([]models.DependencyVuln, error)
GetAllOpenVulnsByAssetVersionNameAndAssetID provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) GetAllVulnsByAssetID ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) GetAllVulnsByAssetID(tx core.DB, assetID uuid.UUID) ([]models.DependencyVuln, error)
GetAllVulnsByAssetID provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) GetByAssetVersionPaged ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) GetByAssetVersionPaged(tx core.DB, assetVersionName string, assetID uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.DependencyVuln], map[string]int, error)
GetByAssetVersionPaged provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) GetDB ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) GetDB(tx core.DB) core.DB
GetDB provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) GetDefaultDependencyVulnsByOrgIDPaged ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) GetDefaultDependencyVulnsByOrgIDPaged(tx core.DB, userAllowedProjectIds []string, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.DependencyVuln], error)
GetDefaultDependencyVulnsByOrgIDPaged provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) GetDefaultDependencyVulnsByProjectIDPaged ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) GetDefaultDependencyVulnsByProjectIDPaged(tx core.DB, projectID uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.DependencyVuln], error)
GetDefaultDependencyVulnsByProjectIDPaged provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) GetDependencyVulnsByAssetVersion ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) GetDependencyVulnsByAssetVersion(tx core.DB, assetVersionName string, assetID uuid.UUID, artifactName *string) ([]models.DependencyVuln, error)
GetDependencyVulnsByAssetVersion provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) GetDependencyVulnsByAssetVersionPagedAndFlat ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) GetDependencyVulnsByAssetVersionPagedAndFlat(tx core.DB, assetVersionName string, assetVersionID uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.DependencyVuln], error)
GetDependencyVulnsByAssetVersionPagedAndFlat provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) GetDependencyVulnsByDefaultAssetVersion ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) GetDependencyVulnsByDefaultAssetVersion(tx core.DB, assetID uuid.UUID, artifactName *string) ([]models.DependencyVuln, error)
GetDependencyVulnsByDefaultAssetVersion provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) GetDependencyVulnsByOtherAssetVersions ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) GetDependencyVulnsByOtherAssetVersions(tx core.DB, assetVersionName string, assetID uuid.UUID) ([]models.DependencyVuln, error)
GetDependencyVulnsByOtherAssetVersions provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) GetDependencyVulnsByPurl ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) GetDependencyVulnsByPurl(tx core.DB, purls []string) ([]models.DependencyVuln, error)
GetDependencyVulnsByPurl provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) GetHintsInOrganizationForVuln ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) GetHintsInOrganizationForVuln(tx core.DB, orgID uuid.UUID, pURL string, cveID string) (common.DependencyVulnHints, error)
GetHintsInOrganizationForVuln provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) List ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) List(ids []string) ([]models.DependencyVuln, error)
List provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) ListByAssetAndAssetVersion ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) ListByAssetAndAssetVersion(assetVersionName string, assetID uuid.UUID) ([]models.DependencyVuln, error)
ListByAssetAndAssetVersion provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) ListUnfixedByAssetAndAssetVersion ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) ListUnfixedByAssetAndAssetVersion(assetVersionName string, assetID uuid.UUID, artifactName *string) ([]models.DependencyVuln, error)
ListUnfixedByAssetAndAssetVersion provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) Read ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) Read(id string) (models.DependencyVuln, error)
Read provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) Save ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) Save(tx core.DB, t *models.DependencyVuln) error
Save provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) SaveBatch ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) SaveBatch(tx core.DB, ts []models.DependencyVuln) error
SaveBatch provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) Transaction ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) Transaction(fn func(tx core.DB) error) error
Transaction provides a mock function for the type DependencyVulnRepository
func (*DependencyVulnRepository) Upsert ¶ added in v0.17.2
func (_mock *DependencyVulnRepository) Upsert(t *[]*models.DependencyVuln, conflictingColumns []clause.Column, updateOnly []string) error
Upsert provides a mock function for the type DependencyVulnRepository
type DependencyVulnRepository_Activate_Call ¶ added in v0.17.2
DependencyVulnRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*DependencyVulnRepository_Activate_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Activate_Call) Return(err error) *DependencyVulnRepository_Activate_Call
func (*DependencyVulnRepository_Activate_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Activate_Call) Run(run func(tx core.DB, id string)) *DependencyVulnRepository_Activate_Call
func (*DependencyVulnRepository_Activate_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id string) error) *DependencyVulnRepository_Activate_Call
type DependencyVulnRepository_All_Call ¶ added in v0.17.2
DependencyVulnRepository_All_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'All'
func (*DependencyVulnRepository_All_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_All_Call) Return(dependencyVulns []models.DependencyVuln, err error) *DependencyVulnRepository_All_Call
func (*DependencyVulnRepository_All_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_All_Call) Run(run func()) *DependencyVulnRepository_All_Call
func (*DependencyVulnRepository_All_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_All_Call) RunAndReturn(run func() ([]models.DependencyVuln, error)) *DependencyVulnRepository_All_Call
type DependencyVulnRepository_ApplyAndSave_Call ¶ added in v0.17.2
DependencyVulnRepository_ApplyAndSave_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyAndSave'
func (*DependencyVulnRepository_ApplyAndSave_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_ApplyAndSave_Call) Return(err error) *DependencyVulnRepository_ApplyAndSave_Call
func (*DependencyVulnRepository_ApplyAndSave_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_ApplyAndSave_Call) Run(run func(tx core.DB, dependencyVuln *models.DependencyVuln, vulnEvent *models.VulnEvent)) *DependencyVulnRepository_ApplyAndSave_Call
func (*DependencyVulnRepository_ApplyAndSave_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_ApplyAndSave_Call) RunAndReturn(run func(tx core.DB, dependencyVuln *models.DependencyVuln, vulnEvent *models.VulnEvent) error) *DependencyVulnRepository_ApplyAndSave_Call
type DependencyVulnRepository_Begin_Call ¶ added in v0.17.2
DependencyVulnRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*DependencyVulnRepository_Begin_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Begin_Call) Return(v core.DB) *DependencyVulnRepository_Begin_Call
func (*DependencyVulnRepository_Begin_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Begin_Call) Run(run func()) *DependencyVulnRepository_Begin_Call
func (*DependencyVulnRepository_Begin_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Begin_Call) RunAndReturn(run func() core.DB) *DependencyVulnRepository_Begin_Call
type DependencyVulnRepository_CreateBatch_Call ¶ added in v0.17.2
DependencyVulnRepository_CreateBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBatch'
func (*DependencyVulnRepository_CreateBatch_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_CreateBatch_Call) Return(err error) *DependencyVulnRepository_CreateBatch_Call
func (*DependencyVulnRepository_CreateBatch_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.DependencyVuln)) *DependencyVulnRepository_CreateBatch_Call
func (*DependencyVulnRepository_CreateBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.DependencyVuln) error) *DependencyVulnRepository_CreateBatch_Call
type DependencyVulnRepository_Create_Call ¶ added in v0.17.2
DependencyVulnRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*DependencyVulnRepository_Create_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Create_Call) Return(err error) *DependencyVulnRepository_Create_Call
func (*DependencyVulnRepository_Create_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Create_Call) Run(run func(tx core.DB, t *models.DependencyVuln)) *DependencyVulnRepository_Create_Call
func (*DependencyVulnRepository_Create_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.DependencyVuln) error) *DependencyVulnRepository_Create_Call
type DependencyVulnRepository_DeleteBatch_Call ¶ added in v0.17.2
DependencyVulnRepository_DeleteBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBatch'
func (*DependencyVulnRepository_DeleteBatch_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_DeleteBatch_Call) Return(err error) *DependencyVulnRepository_DeleteBatch_Call
func (*DependencyVulnRepository_DeleteBatch_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.DependencyVuln)) *DependencyVulnRepository_DeleteBatch_Call
func (*DependencyVulnRepository_DeleteBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.DependencyVuln) error) *DependencyVulnRepository_DeleteBatch_Call
type DependencyVulnRepository_Delete_Call ¶ added in v0.17.2
DependencyVulnRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*DependencyVulnRepository_Delete_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Delete_Call) Return(err error) *DependencyVulnRepository_Delete_Call
func (*DependencyVulnRepository_Delete_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Delete_Call) Run(run func(tx core.DB, id string)) *DependencyVulnRepository_Delete_Call
func (*DependencyVulnRepository_Delete_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id string) error) *DependencyVulnRepository_Delete_Call
type DependencyVulnRepository_Expecter ¶ added in v0.17.2
type DependencyVulnRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*DependencyVulnRepository_Expecter) Activate ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) Activate(tx interface{}, id interface{}) *DependencyVulnRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx core.DB
- id string
func (*DependencyVulnRepository_Expecter) All ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) All() *DependencyVulnRepository_All_Call
All is a helper method to define mock.On call
func (*DependencyVulnRepository_Expecter) ApplyAndSave ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) ApplyAndSave(tx interface{}, dependencyVuln interface{}, vulnEvent interface{}) *DependencyVulnRepository_ApplyAndSave_Call
ApplyAndSave is a helper method to define mock.On call
- tx core.DB
- dependencyVuln *models.DependencyVuln
- vulnEvent *models.VulnEvent
func (*DependencyVulnRepository_Expecter) Begin ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) Begin() *DependencyVulnRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*DependencyVulnRepository_Expecter) Create ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) Create(tx interface{}, t interface{}) *DependencyVulnRepository_Create_Call
Create is a helper method to define mock.On call
- tx core.DB
- t *models.DependencyVuln
func (*DependencyVulnRepository_Expecter) CreateBatch ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *DependencyVulnRepository_CreateBatch_Call
CreateBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.DependencyVuln
func (*DependencyVulnRepository_Expecter) Delete ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) Delete(tx interface{}, id interface{}) *DependencyVulnRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx core.DB
- id string
func (*DependencyVulnRepository_Expecter) DeleteBatch ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *DependencyVulnRepository_DeleteBatch_Call
DeleteBatch is a helper method to define mock.On call
- tx core.DB
- ids []models.DependencyVuln
func (*DependencyVulnRepository_Expecter) GetAllByAssetIDAndState ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) GetAllByAssetIDAndState(tx interface{}, assetID interface{}, state interface{}, durationSinceStateChange interface{}) *DependencyVulnRepository_GetAllByAssetIDAndState_Call
GetAllByAssetIDAndState is a helper method to define mock.On call
- tx core.DB
- assetID uuid.UUID
- state models.VulnState
- durationSinceStateChange time.Duration
func (*DependencyVulnRepository_Expecter) GetAllOpenVulnsByAssetVersionNameAndAssetID ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) GetAllOpenVulnsByAssetVersionNameAndAssetID(tx interface{}, artifactName interface{}, assetVersionName interface{}, assetID interface{}) *DependencyVulnRepository_GetAllOpenVulnsByAssetVersionNameAndAssetID_Call
GetAllOpenVulnsByAssetVersionNameAndAssetID is a helper method to define mock.On call
- tx core.DB
- artifactName *string
- assetVersionName string
- assetID uuid.UUID
func (*DependencyVulnRepository_Expecter) GetAllVulnsByAssetID ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) GetAllVulnsByAssetID(tx interface{}, assetID interface{}) *DependencyVulnRepository_GetAllVulnsByAssetID_Call
GetAllVulnsByAssetID is a helper method to define mock.On call
- tx core.DB
- assetID uuid.UUID
func (*DependencyVulnRepository_Expecter) GetByAssetVersionPaged ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) GetByAssetVersionPaged(tx interface{}, assetVersionName interface{}, assetID interface{}, pageInfo interface{}, search interface{}, filter interface{}, sort interface{}) *DependencyVulnRepository_GetByAssetVersionPaged_Call
GetByAssetVersionPaged is a helper method to define mock.On call
- tx core.DB
- assetVersionName string
- assetID uuid.UUID
- pageInfo core.PageInfo
- search string
- filter []core.FilterQuery
- sort []core.SortQuery
func (*DependencyVulnRepository_Expecter) GetDB ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) GetDB(tx interface{}) *DependencyVulnRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx core.DB
func (*DependencyVulnRepository_Expecter) GetDefaultDependencyVulnsByOrgIDPaged ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) GetDefaultDependencyVulnsByOrgIDPaged(tx interface{}, userAllowedProjectIds interface{}, pageInfo interface{}, search interface{}, filter interface{}, sort interface{}) *DependencyVulnRepository_GetDefaultDependencyVulnsByOrgIDPaged_Call
GetDefaultDependencyVulnsByOrgIDPaged is a helper method to define mock.On call
- tx core.DB
- userAllowedProjectIds []string
- pageInfo core.PageInfo
- search string
- filter []core.FilterQuery
- sort []core.SortQuery
func (*DependencyVulnRepository_Expecter) GetDefaultDependencyVulnsByProjectIDPaged ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) GetDefaultDependencyVulnsByProjectIDPaged(tx interface{}, projectID interface{}, pageInfo interface{}, search interface{}, filter interface{}, sort interface{}) *DependencyVulnRepository_GetDefaultDependencyVulnsByProjectIDPaged_Call
GetDefaultDependencyVulnsByProjectIDPaged is a helper method to define mock.On call
- tx core.DB
- projectID uuid.UUID
- pageInfo core.PageInfo
- search string
- filter []core.FilterQuery
- sort []core.SortQuery
func (*DependencyVulnRepository_Expecter) GetDependencyVulnsByAssetVersion ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) GetDependencyVulnsByAssetVersion(tx interface{}, assetVersionName interface{}, assetID interface{}, artifactName interface{}) *DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call
GetDependencyVulnsByAssetVersion is a helper method to define mock.On call
- tx core.DB
- assetVersionName string
- assetID uuid.UUID
- artifactName *string
func (*DependencyVulnRepository_Expecter) GetDependencyVulnsByAssetVersionPagedAndFlat ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) GetDependencyVulnsByAssetVersionPagedAndFlat(tx interface{}, assetVersionName interface{}, assetVersionID interface{}, pageInfo interface{}, search interface{}, filter interface{}, sort interface{}) *DependencyVulnRepository_GetDependencyVulnsByAssetVersionPagedAndFlat_Call
GetDependencyVulnsByAssetVersionPagedAndFlat is a helper method to define mock.On call
- tx core.DB
- assetVersionName string
- assetVersionID uuid.UUID
- pageInfo core.PageInfo
- search string
- filter []core.FilterQuery
- sort []core.SortQuery
func (*DependencyVulnRepository_Expecter) GetDependencyVulnsByDefaultAssetVersion ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) GetDependencyVulnsByDefaultAssetVersion(tx interface{}, assetID interface{}, artifactName interface{}) *DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call
GetDependencyVulnsByDefaultAssetVersion is a helper method to define mock.On call
- tx core.DB
- assetID uuid.UUID
- artifactName *string
func (*DependencyVulnRepository_Expecter) GetDependencyVulnsByOtherAssetVersions ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) GetDependencyVulnsByOtherAssetVersions(tx interface{}, assetVersionName interface{}, assetID interface{}) *DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call
GetDependencyVulnsByOtherAssetVersions is a helper method to define mock.On call
- tx core.DB
- assetVersionName string
- assetID uuid.UUID
func (*DependencyVulnRepository_Expecter) GetDependencyVulnsByPurl ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) GetDependencyVulnsByPurl(tx interface{}, purls interface{}) *DependencyVulnRepository_GetDependencyVulnsByPurl_Call
GetDependencyVulnsByPurl is a helper method to define mock.On call
- tx core.DB
- purls []string
func (*DependencyVulnRepository_Expecter) GetHintsInOrganizationForVuln ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) GetHintsInOrganizationForVuln(tx interface{}, orgID interface{}, pURL interface{}, cveID interface{}) *DependencyVulnRepository_GetHintsInOrganizationForVuln_Call
GetHintsInOrganizationForVuln is a helper method to define mock.On call
- tx core.DB
- orgID uuid.UUID
- pURL string
- cveID string
func (*DependencyVulnRepository_Expecter) List ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) List(ids interface{}) *DependencyVulnRepository_List_Call
List is a helper method to define mock.On call
- ids []string
func (*DependencyVulnRepository_Expecter) ListByAssetAndAssetVersion ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) ListByAssetAndAssetVersion(assetVersionName interface{}, assetID interface{}) *DependencyVulnRepository_ListByAssetAndAssetVersion_Call
ListByAssetAndAssetVersion is a helper method to define mock.On call
- assetVersionName string
- assetID uuid.UUID
func (*DependencyVulnRepository_Expecter) ListUnfixedByAssetAndAssetVersion ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) ListUnfixedByAssetAndAssetVersion(assetVersionName interface{}, assetID interface{}, artifactName interface{}) *DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call
ListUnfixedByAssetAndAssetVersion is a helper method to define mock.On call
- assetVersionName string
- assetID uuid.UUID
- artifactName *string
func (*DependencyVulnRepository_Expecter) Read ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) Read(id interface{}) *DependencyVulnRepository_Read_Call
Read is a helper method to define mock.On call
- id string
func (*DependencyVulnRepository_Expecter) Save ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) Save(tx interface{}, t interface{}) *DependencyVulnRepository_Save_Call
Save is a helper method to define mock.On call
- tx core.DB
- t *models.DependencyVuln
func (*DependencyVulnRepository_Expecter) SaveBatch ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *DependencyVulnRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.DependencyVuln
func (*DependencyVulnRepository_Expecter) Transaction ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) Transaction(fn interface{}) *DependencyVulnRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- fn func(tx core.DB) error
func (*DependencyVulnRepository_Expecter) Upsert ¶ added in v0.17.2
func (_e *DependencyVulnRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *DependencyVulnRepository_Upsert_Call
Upsert is a helper method to define mock.On call
- t *[]*models.DependencyVuln
- conflictingColumns []clause.Column
- updateOnly []string
type DependencyVulnRepository_GetAllByAssetIDAndState_Call ¶ added in v0.17.2
DependencyVulnRepository_GetAllByAssetIDAndState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllByAssetIDAndState'
func (*DependencyVulnRepository_GetAllByAssetIDAndState_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetAllByAssetIDAndState_Call) Return(dependencyVulns []models.DependencyVuln, err error) *DependencyVulnRepository_GetAllByAssetIDAndState_Call
func (*DependencyVulnRepository_GetAllByAssetIDAndState_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetAllByAssetIDAndState_Call) Run(run func(tx core.DB, assetID uuid.UUID, state models.VulnState, durationSinceStateChange time.Duration)) *DependencyVulnRepository_GetAllByAssetIDAndState_Call
func (*DependencyVulnRepository_GetAllByAssetIDAndState_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetAllByAssetIDAndState_Call) RunAndReturn(run func(tx core.DB, assetID uuid.UUID, state models.VulnState, durationSinceStateChange time.Duration) ([]models.DependencyVuln, error)) *DependencyVulnRepository_GetAllByAssetIDAndState_Call
type DependencyVulnRepository_GetAllOpenVulnsByAssetVersionNameAndAssetID_Call ¶ added in v0.17.2
type DependencyVulnRepository_GetAllOpenVulnsByAssetVersionNameAndAssetID_Call struct {
*mock.Call
}
DependencyVulnRepository_GetAllOpenVulnsByAssetVersionNameAndAssetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllOpenVulnsByAssetVersionNameAndAssetID'
func (*DependencyVulnRepository_GetAllOpenVulnsByAssetVersionNameAndAssetID_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetAllOpenVulnsByAssetVersionNameAndAssetID_Call) Return(dependencyVulns []models.DependencyVuln, err error) *DependencyVulnRepository_GetAllOpenVulnsByAssetVersionNameAndAssetID_Call
func (*DependencyVulnRepository_GetAllOpenVulnsByAssetVersionNameAndAssetID_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetAllOpenVulnsByAssetVersionNameAndAssetID_Call) Run(run func(tx core.DB, artifactName *string, assetVersionName string, assetID uuid.UUID)) *DependencyVulnRepository_GetAllOpenVulnsByAssetVersionNameAndAssetID_Call
func (*DependencyVulnRepository_GetAllOpenVulnsByAssetVersionNameAndAssetID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetAllOpenVulnsByAssetVersionNameAndAssetID_Call) RunAndReturn(run func(tx core.DB, artifactName *string, assetVersionName string, assetID uuid.UUID) ([]models.DependencyVuln, error)) *DependencyVulnRepository_GetAllOpenVulnsByAssetVersionNameAndAssetID_Call
type DependencyVulnRepository_GetAllVulnsByAssetID_Call ¶ added in v0.17.2
DependencyVulnRepository_GetAllVulnsByAssetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllVulnsByAssetID'
func (*DependencyVulnRepository_GetAllVulnsByAssetID_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetAllVulnsByAssetID_Call) Return(dependencyVulns []models.DependencyVuln, err error) *DependencyVulnRepository_GetAllVulnsByAssetID_Call
func (*DependencyVulnRepository_GetAllVulnsByAssetID_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetAllVulnsByAssetID_Call) Run(run func(tx core.DB, assetID uuid.UUID)) *DependencyVulnRepository_GetAllVulnsByAssetID_Call
func (*DependencyVulnRepository_GetAllVulnsByAssetID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetAllVulnsByAssetID_Call) RunAndReturn(run func(tx core.DB, assetID uuid.UUID) ([]models.DependencyVuln, error)) *DependencyVulnRepository_GetAllVulnsByAssetID_Call
type DependencyVulnRepository_GetByAssetVersionPaged_Call ¶ added in v0.17.2
DependencyVulnRepository_GetByAssetVersionPaged_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByAssetVersionPaged'
func (*DependencyVulnRepository_GetByAssetVersionPaged_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetByAssetVersionPaged_Call) Return(paged core.Paged[models.DependencyVuln], stringToInt map[string]int, err error) *DependencyVulnRepository_GetByAssetVersionPaged_Call
func (*DependencyVulnRepository_GetByAssetVersionPaged_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetByAssetVersionPaged_Call) Run(run func(tx core.DB, assetVersionName string, assetID uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery)) *DependencyVulnRepository_GetByAssetVersionPaged_Call
func (*DependencyVulnRepository_GetByAssetVersionPaged_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetByAssetVersionPaged_Call) RunAndReturn(run func(tx core.DB, assetVersionName string, assetID uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.DependencyVuln], map[string]int, error)) *DependencyVulnRepository_GetByAssetVersionPaged_Call
type DependencyVulnRepository_GetDB_Call ¶ added in v0.17.2
DependencyVulnRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*DependencyVulnRepository_GetDB_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetDB_Call) Return(v core.DB) *DependencyVulnRepository_GetDB_Call
func (*DependencyVulnRepository_GetDB_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetDB_Call) Run(run func(tx core.DB)) *DependencyVulnRepository_GetDB_Call
func (*DependencyVulnRepository_GetDB_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *DependencyVulnRepository_GetDB_Call
type DependencyVulnRepository_GetDefaultDependencyVulnsByOrgIDPaged_Call ¶ added in v0.17.2
DependencyVulnRepository_GetDefaultDependencyVulnsByOrgIDPaged_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDefaultDependencyVulnsByOrgIDPaged'
func (*DependencyVulnRepository_GetDefaultDependencyVulnsByOrgIDPaged_Call) Return ¶ added in v0.17.2
func (*DependencyVulnRepository_GetDefaultDependencyVulnsByOrgIDPaged_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetDefaultDependencyVulnsByOrgIDPaged_Call) Run(run func(tx core.DB, userAllowedProjectIds []string, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery)) *DependencyVulnRepository_GetDefaultDependencyVulnsByOrgIDPaged_Call
func (*DependencyVulnRepository_GetDefaultDependencyVulnsByOrgIDPaged_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetDefaultDependencyVulnsByOrgIDPaged_Call) RunAndReturn(run func(tx core.DB, userAllowedProjectIds []string, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.DependencyVuln], error)) *DependencyVulnRepository_GetDefaultDependencyVulnsByOrgIDPaged_Call
type DependencyVulnRepository_GetDefaultDependencyVulnsByProjectIDPaged_Call ¶ added in v0.17.2
DependencyVulnRepository_GetDefaultDependencyVulnsByProjectIDPaged_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDefaultDependencyVulnsByProjectIDPaged'
func (*DependencyVulnRepository_GetDefaultDependencyVulnsByProjectIDPaged_Call) Return ¶ added in v0.17.2
func (*DependencyVulnRepository_GetDefaultDependencyVulnsByProjectIDPaged_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetDefaultDependencyVulnsByProjectIDPaged_Call) Run(run func(tx core.DB, projectID uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery)) *DependencyVulnRepository_GetDefaultDependencyVulnsByProjectIDPaged_Call
func (*DependencyVulnRepository_GetDefaultDependencyVulnsByProjectIDPaged_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetDefaultDependencyVulnsByProjectIDPaged_Call) RunAndReturn(run func(tx core.DB, projectID uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.DependencyVuln], error)) *DependencyVulnRepository_GetDefaultDependencyVulnsByProjectIDPaged_Call
type DependencyVulnRepository_GetDependencyVulnsByAssetVersionPagedAndFlat_Call ¶ added in v0.17.2
type DependencyVulnRepository_GetDependencyVulnsByAssetVersionPagedAndFlat_Call struct {
*mock.Call
}
DependencyVulnRepository_GetDependencyVulnsByAssetVersionPagedAndFlat_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDependencyVulnsByAssetVersionPagedAndFlat'
func (*DependencyVulnRepository_GetDependencyVulnsByAssetVersionPagedAndFlat_Call) Return ¶ added in v0.17.2
func (*DependencyVulnRepository_GetDependencyVulnsByAssetVersionPagedAndFlat_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetDependencyVulnsByAssetVersionPagedAndFlat_Call) Run(run func(tx core.DB, assetVersionName string, assetVersionID uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery)) *DependencyVulnRepository_GetDependencyVulnsByAssetVersionPagedAndFlat_Call
func (*DependencyVulnRepository_GetDependencyVulnsByAssetVersionPagedAndFlat_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetDependencyVulnsByAssetVersionPagedAndFlat_Call) RunAndReturn(run func(tx core.DB, assetVersionName string, assetVersionID uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.DependencyVuln], error)) *DependencyVulnRepository_GetDependencyVulnsByAssetVersionPagedAndFlat_Call
type DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call ¶ added in v0.17.2
DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDependencyVulnsByAssetVersion'
func (*DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call) Return(dependencyVulns []models.DependencyVuln, err error) *DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call
func (*DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call) Run(run func(tx core.DB, assetVersionName string, assetID uuid.UUID, artifactName *string)) *DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call
func (*DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call) RunAndReturn(run func(tx core.DB, assetVersionName string, assetID uuid.UUID, artifactName *string) ([]models.DependencyVuln, error)) *DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call
type DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call ¶ added in v0.17.2
DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDependencyVulnsByDefaultAssetVersion'
func (*DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call) Return(dependencyVulns []models.DependencyVuln, err error) *DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call
func (*DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call) Run(run func(tx core.DB, assetID uuid.UUID, artifactName *string)) *DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call
func (*DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call) RunAndReturn(run func(tx core.DB, assetID uuid.UUID, artifactName *string) ([]models.DependencyVuln, error)) *DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call
type DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call ¶ added in v0.17.2
DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDependencyVulnsByOtherAssetVersions'
func (*DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call) Return(dependencyVulns []models.DependencyVuln, err error) *DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call
func (*DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call) Run(run func(tx core.DB, assetVersionName string, assetID uuid.UUID)) *DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call
func (*DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call) RunAndReturn(run func(tx core.DB, assetVersionName string, assetID uuid.UUID) ([]models.DependencyVuln, error)) *DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call
type DependencyVulnRepository_GetDependencyVulnsByPurl_Call ¶ added in v0.17.2
DependencyVulnRepository_GetDependencyVulnsByPurl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDependencyVulnsByPurl'
func (*DependencyVulnRepository_GetDependencyVulnsByPurl_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetDependencyVulnsByPurl_Call) Return(dependencyVulns []models.DependencyVuln, err error) *DependencyVulnRepository_GetDependencyVulnsByPurl_Call
func (*DependencyVulnRepository_GetDependencyVulnsByPurl_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetDependencyVulnsByPurl_Call) Run(run func(tx core.DB, purls []string)) *DependencyVulnRepository_GetDependencyVulnsByPurl_Call
func (*DependencyVulnRepository_GetDependencyVulnsByPurl_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetDependencyVulnsByPurl_Call) RunAndReturn(run func(tx core.DB, purls []string) ([]models.DependencyVuln, error)) *DependencyVulnRepository_GetDependencyVulnsByPurl_Call
type DependencyVulnRepository_GetHintsInOrganizationForVuln_Call ¶ added in v0.17.2
DependencyVulnRepository_GetHintsInOrganizationForVuln_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHintsInOrganizationForVuln'
func (*DependencyVulnRepository_GetHintsInOrganizationForVuln_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetHintsInOrganizationForVuln_Call) Return(dependencyVulnHints common.DependencyVulnHints, err error) *DependencyVulnRepository_GetHintsInOrganizationForVuln_Call
func (*DependencyVulnRepository_GetHintsInOrganizationForVuln_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetHintsInOrganizationForVuln_Call) Run(run func(tx core.DB, orgID uuid.UUID, pURL string, cveID string)) *DependencyVulnRepository_GetHintsInOrganizationForVuln_Call
func (*DependencyVulnRepository_GetHintsInOrganizationForVuln_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_GetHintsInOrganizationForVuln_Call) RunAndReturn(run func(tx core.DB, orgID uuid.UUID, pURL string, cveID string) (common.DependencyVulnHints, error)) *DependencyVulnRepository_GetHintsInOrganizationForVuln_Call
type DependencyVulnRepository_ListByAssetAndAssetVersion_Call ¶ added in v0.17.2
DependencyVulnRepository_ListByAssetAndAssetVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByAssetAndAssetVersion'
func (*DependencyVulnRepository_ListByAssetAndAssetVersion_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_ListByAssetAndAssetVersion_Call) Return(dependencyVulns []models.DependencyVuln, err error) *DependencyVulnRepository_ListByAssetAndAssetVersion_Call
func (*DependencyVulnRepository_ListByAssetAndAssetVersion_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_ListByAssetAndAssetVersion_Call) Run(run func(assetVersionName string, assetID uuid.UUID)) *DependencyVulnRepository_ListByAssetAndAssetVersion_Call
func (*DependencyVulnRepository_ListByAssetAndAssetVersion_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_ListByAssetAndAssetVersion_Call) RunAndReturn(run func(assetVersionName string, assetID uuid.UUID) ([]models.DependencyVuln, error)) *DependencyVulnRepository_ListByAssetAndAssetVersion_Call
type DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call ¶ added in v0.17.2
DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListUnfixedByAssetAndAssetVersion'
func (*DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call) Return(dependencyVulns []models.DependencyVuln, err error) *DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call
func (*DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call) Run(run func(assetVersionName string, assetID uuid.UUID, artifactName *string)) *DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call
func (*DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call) RunAndReturn(run func(assetVersionName string, assetID uuid.UUID, artifactName *string) ([]models.DependencyVuln, error)) *DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call
type DependencyVulnRepository_List_Call ¶ added in v0.17.2
DependencyVulnRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*DependencyVulnRepository_List_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_List_Call) Return(dependencyVulns []models.DependencyVuln, err error) *DependencyVulnRepository_List_Call
func (*DependencyVulnRepository_List_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_List_Call) Run(run func(ids []string)) *DependencyVulnRepository_List_Call
func (*DependencyVulnRepository_List_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_List_Call) RunAndReturn(run func(ids []string) ([]models.DependencyVuln, error)) *DependencyVulnRepository_List_Call
type DependencyVulnRepository_Read_Call ¶ added in v0.17.2
DependencyVulnRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*DependencyVulnRepository_Read_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Read_Call) Return(dependencyVuln models.DependencyVuln, err error) *DependencyVulnRepository_Read_Call
func (*DependencyVulnRepository_Read_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Read_Call) Run(run func(id string)) *DependencyVulnRepository_Read_Call
func (*DependencyVulnRepository_Read_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Read_Call) RunAndReturn(run func(id string) (models.DependencyVuln, error)) *DependencyVulnRepository_Read_Call
type DependencyVulnRepository_SaveBatch_Call ¶ added in v0.17.2
DependencyVulnRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*DependencyVulnRepository_SaveBatch_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_SaveBatch_Call) Return(err error) *DependencyVulnRepository_SaveBatch_Call
func (*DependencyVulnRepository_SaveBatch_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.DependencyVuln)) *DependencyVulnRepository_SaveBatch_Call
func (*DependencyVulnRepository_SaveBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.DependencyVuln) error) *DependencyVulnRepository_SaveBatch_Call
type DependencyVulnRepository_Save_Call ¶ added in v0.17.2
DependencyVulnRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*DependencyVulnRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Save_Call) Return(err error) *DependencyVulnRepository_Save_Call
func (*DependencyVulnRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Save_Call) Run(run func(tx core.DB, t *models.DependencyVuln)) *DependencyVulnRepository_Save_Call
func (*DependencyVulnRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *models.DependencyVuln) error) *DependencyVulnRepository_Save_Call
type DependencyVulnRepository_Transaction_Call ¶ added in v0.17.2
DependencyVulnRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*DependencyVulnRepository_Transaction_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Transaction_Call) Return(err error) *DependencyVulnRepository_Transaction_Call
func (*DependencyVulnRepository_Transaction_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *DependencyVulnRepository_Transaction_Call
func (*DependencyVulnRepository_Transaction_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *DependencyVulnRepository_Transaction_Call
type DependencyVulnRepository_Upsert_Call ¶ added in v0.17.2
DependencyVulnRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*DependencyVulnRepository_Upsert_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Upsert_Call) Return(err error) *DependencyVulnRepository_Upsert_Call
func (*DependencyVulnRepository_Upsert_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Upsert_Call) Run(run func(t *[]*models.DependencyVuln, conflictingColumns []clause.Column, updateOnly []string)) *DependencyVulnRepository_Upsert_Call
func (*DependencyVulnRepository_Upsert_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnRepository_Upsert_Call) RunAndReturn(run func(t *[]*models.DependencyVuln, conflictingColumns []clause.Column, updateOnly []string) error) *DependencyVulnRepository_Upsert_Call
type DependencyVulnService ¶ added in v0.17.2
DependencyVulnService is an autogenerated mock type for the DependencyVulnService type
func NewDependencyVulnService ¶ added in v0.17.2
func NewDependencyVulnService(t interface { mock.TestingT Cleanup(func()) }) *DependencyVulnService
NewDependencyVulnService creates a new instance of DependencyVulnService. 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 (*DependencyVulnService) EXPECT ¶ added in v0.17.2
func (_m *DependencyVulnService) EXPECT() *DependencyVulnService_Expecter
func (*DependencyVulnService) RecalculateRawRiskAssessment ¶ added in v0.17.2
func (_mock *DependencyVulnService) RecalculateRawRiskAssessment(tx core.DB, responsible string, dependencyVulns []models.DependencyVuln, justification string, asset models.Asset) error
RecalculateRawRiskAssessment provides a mock function for the type DependencyVulnService
func (*DependencyVulnService) SyncAllIssues ¶ added in v0.17.2
func (_mock *DependencyVulnService) SyncAllIssues(org models.Org, project models.Project, asset models.Asset, assetVersion models.AssetVersion) error
SyncAllIssues provides a mock function for the type DependencyVulnService
func (*DependencyVulnService) SyncIssues ¶ added in v0.17.2
func (_mock *DependencyVulnService) SyncIssues(org models.Org, project models.Project, asset models.Asset, assetVersion models.AssetVersion, vulnList []models.DependencyVuln) error
SyncIssues provides a mock function for the type DependencyVulnService
func (*DependencyVulnService) UpdateDependencyVulnState ¶ added in v0.17.2
func (_mock *DependencyVulnService) UpdateDependencyVulnState(tx core.DB, assetID uuid.UUID, userID string, dependencyVuln *models.DependencyVuln, statusType string, justification string, mechanicalJustification models.MechanicalJustificationType, assetVersionName string) (models.VulnEvent, error)
UpdateDependencyVulnState provides a mock function for the type DependencyVulnService
func (*DependencyVulnService) UserDetectedDependencyVulnInAnotherArtifact ¶ added in v0.17.2
func (_mock *DependencyVulnService) UserDetectedDependencyVulnInAnotherArtifact(tx core.DB, vulnerabilities []models.DependencyVuln, artifactName string) error
UserDetectedDependencyVulnInAnotherArtifact provides a mock function for the type DependencyVulnService
func (*DependencyVulnService) UserDetectedDependencyVulns ¶ added in v0.17.2
func (_mock *DependencyVulnService) UserDetectedDependencyVulns(tx core.DB, artifactName string, dependencyVulns []models.DependencyVuln, assetVersion models.AssetVersion, asset models.Asset) error
UserDetectedDependencyVulns provides a mock function for the type DependencyVulnService
func (*DependencyVulnService) UserDetectedExistingVulnOnDifferentBranch ¶ added in v0.17.2
func (_mock *DependencyVulnService) UserDetectedExistingVulnOnDifferentBranch(tx core.DB, artifactName string, dependencyVulns []models.DependencyVuln, alreadyExistingEvents [][]models.VulnEvent, assetVersion models.AssetVersion, asset models.Asset) error
UserDetectedExistingVulnOnDifferentBranch provides a mock function for the type DependencyVulnService
func (*DependencyVulnService) UserDidNotDetectDependencyVulnInArtifactAnymore ¶ added in v0.17.2
func (_mock *DependencyVulnService) UserDidNotDetectDependencyVulnInArtifactAnymore(tx core.DB, vulnerabilities []models.DependencyVuln, artifactName string) error
UserDidNotDetectDependencyVulnInArtifactAnymore provides a mock function for the type DependencyVulnService
func (*DependencyVulnService) UserFixedDependencyVulns ¶ added in v0.17.2
func (_mock *DependencyVulnService) UserFixedDependencyVulns(tx core.DB, userID string, dependencyVulns []models.DependencyVuln, assetVersion models.AssetVersion, asset models.Asset) error
UserFixedDependencyVulns provides a mock function for the type DependencyVulnService
type DependencyVulnService_Expecter ¶ added in v0.17.2
type DependencyVulnService_Expecter struct {
// contains filtered or unexported fields
}
func (*DependencyVulnService_Expecter) RecalculateRawRiskAssessment ¶ added in v0.17.2
func (_e *DependencyVulnService_Expecter) RecalculateRawRiskAssessment(tx interface{}, responsible interface{}, dependencyVulns interface{}, justification interface{}, asset interface{}) *DependencyVulnService_RecalculateRawRiskAssessment_Call
RecalculateRawRiskAssessment is a helper method to define mock.On call
- tx core.DB
- responsible string
- dependencyVulns []models.DependencyVuln
- justification string
- asset models.Asset
func (*DependencyVulnService_Expecter) SyncAllIssues ¶ added in v0.17.2
func (_e *DependencyVulnService_Expecter) SyncAllIssues(org interface{}, project interface{}, asset interface{}, assetVersion interface{}) *DependencyVulnService_SyncAllIssues_Call
SyncAllIssues is a helper method to define mock.On call
- org models.Org
- project models.Project
- asset models.Asset
- assetVersion models.AssetVersion
func (*DependencyVulnService_Expecter) SyncIssues ¶ added in v0.17.2
func (_e *DependencyVulnService_Expecter) SyncIssues(org interface{}, project interface{}, asset interface{}, assetVersion interface{}, vulnList interface{}) *DependencyVulnService_SyncIssues_Call
SyncIssues is a helper method to define mock.On call
- org models.Org
- project models.Project
- asset models.Asset
- assetVersion models.AssetVersion
- vulnList []models.DependencyVuln
func (*DependencyVulnService_Expecter) UpdateDependencyVulnState ¶ added in v0.17.2
func (_e *DependencyVulnService_Expecter) UpdateDependencyVulnState(tx interface{}, assetID interface{}, userID interface{}, dependencyVuln interface{}, statusType interface{}, justification interface{}, mechanicalJustification interface{}, assetVersionName interface{}) *DependencyVulnService_UpdateDependencyVulnState_Call
UpdateDependencyVulnState is a helper method to define mock.On call
- tx core.DB
- assetID uuid.UUID
- userID string
- dependencyVuln *models.DependencyVuln
- statusType string
- justification string
- mechanicalJustification models.MechanicalJustificationType
- assetVersionName string
func (*DependencyVulnService_Expecter) UserDetectedDependencyVulnInAnotherArtifact ¶ added in v0.17.2
func (_e *DependencyVulnService_Expecter) UserDetectedDependencyVulnInAnotherArtifact(tx interface{}, vulnerabilities interface{}, artifactName interface{}) *DependencyVulnService_UserDetectedDependencyVulnInAnotherArtifact_Call
UserDetectedDependencyVulnInAnotherArtifact is a helper method to define mock.On call
- tx core.DB
- vulnerabilities []models.DependencyVuln
- artifactName string
func (*DependencyVulnService_Expecter) UserDetectedDependencyVulns ¶ added in v0.17.2
func (_e *DependencyVulnService_Expecter) UserDetectedDependencyVulns(tx interface{}, artifactName interface{}, dependencyVulns interface{}, assetVersion interface{}, asset interface{}) *DependencyVulnService_UserDetectedDependencyVulns_Call
UserDetectedDependencyVulns is a helper method to define mock.On call
- tx core.DB
- artifactName string
- dependencyVulns []models.DependencyVuln
- assetVersion models.AssetVersion
- asset models.Asset
func (*DependencyVulnService_Expecter) UserDetectedExistingVulnOnDifferentBranch ¶ added in v0.17.2
func (_e *DependencyVulnService_Expecter) UserDetectedExistingVulnOnDifferentBranch(tx interface{}, artifactName interface{}, dependencyVulns interface{}, alreadyExistingEvents interface{}, assetVersion interface{}, asset interface{}) *DependencyVulnService_UserDetectedExistingVulnOnDifferentBranch_Call
UserDetectedExistingVulnOnDifferentBranch is a helper method to define mock.On call
- tx core.DB
- artifactName string
- dependencyVulns []models.DependencyVuln
- alreadyExistingEvents [][]models.VulnEvent
- assetVersion models.AssetVersion
- asset models.Asset
func (*DependencyVulnService_Expecter) UserDidNotDetectDependencyVulnInArtifactAnymore ¶ added in v0.17.2
func (_e *DependencyVulnService_Expecter) UserDidNotDetectDependencyVulnInArtifactAnymore(tx interface{}, vulnerabilities interface{}, artifactName interface{}) *DependencyVulnService_UserDidNotDetectDependencyVulnInArtifactAnymore_Call
UserDidNotDetectDependencyVulnInArtifactAnymore is a helper method to define mock.On call
- tx core.DB
- vulnerabilities []models.DependencyVuln
- artifactName string
func (*DependencyVulnService_Expecter) UserFixedDependencyVulns ¶ added in v0.17.2
func (_e *DependencyVulnService_Expecter) UserFixedDependencyVulns(tx interface{}, userID interface{}, dependencyVulns interface{}, assetVersion interface{}, asset interface{}) *DependencyVulnService_UserFixedDependencyVulns_Call
UserFixedDependencyVulns is a helper method to define mock.On call
- tx core.DB
- userID string
- dependencyVulns []models.DependencyVuln
- assetVersion models.AssetVersion
- asset models.Asset
type DependencyVulnService_RecalculateRawRiskAssessment_Call ¶ added in v0.17.2
DependencyVulnService_RecalculateRawRiskAssessment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RecalculateRawRiskAssessment'
func (*DependencyVulnService_RecalculateRawRiskAssessment_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnService_RecalculateRawRiskAssessment_Call) Run(run func(tx core.DB, responsible string, dependencyVulns []models.DependencyVuln, justification string, asset models.Asset)) *DependencyVulnService_RecalculateRawRiskAssessment_Call
func (*DependencyVulnService_RecalculateRawRiskAssessment_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnService_RecalculateRawRiskAssessment_Call) RunAndReturn(run func(tx core.DB, responsible string, dependencyVulns []models.DependencyVuln, justification string, asset models.Asset) error) *DependencyVulnService_RecalculateRawRiskAssessment_Call
type DependencyVulnService_SyncAllIssues_Call ¶ added in v0.17.2
DependencyVulnService_SyncAllIssues_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SyncAllIssues'
func (*DependencyVulnService_SyncAllIssues_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnService_SyncAllIssues_Call) Return(err error) *DependencyVulnService_SyncAllIssues_Call
func (*DependencyVulnService_SyncAllIssues_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnService_SyncAllIssues_Call) Run(run func(org models.Org, project models.Project, asset models.Asset, assetVersion models.AssetVersion)) *DependencyVulnService_SyncAllIssues_Call
func (*DependencyVulnService_SyncAllIssues_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnService_SyncAllIssues_Call) RunAndReturn(run func(org models.Org, project models.Project, asset models.Asset, assetVersion models.AssetVersion) error) *DependencyVulnService_SyncAllIssues_Call
type DependencyVulnService_SyncIssues_Call ¶ added in v0.17.2
DependencyVulnService_SyncIssues_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SyncIssues'
func (*DependencyVulnService_SyncIssues_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnService_SyncIssues_Call) Return(err error) *DependencyVulnService_SyncIssues_Call
func (*DependencyVulnService_SyncIssues_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnService_SyncIssues_Call) Run(run func(org models.Org, project models.Project, asset models.Asset, assetVersion models.AssetVersion, vulnList []models.DependencyVuln)) *DependencyVulnService_SyncIssues_Call
func (*DependencyVulnService_SyncIssues_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnService_SyncIssues_Call) RunAndReturn(run func(org models.Org, project models.Project, asset models.Asset, assetVersion models.AssetVersion, vulnList []models.DependencyVuln) error) *DependencyVulnService_SyncIssues_Call
type DependencyVulnService_UpdateDependencyVulnState_Call ¶ added in v0.17.2
DependencyVulnService_UpdateDependencyVulnState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateDependencyVulnState'
func (*DependencyVulnService_UpdateDependencyVulnState_Call) Return ¶ added in v0.17.2
func (_c *DependencyVulnService_UpdateDependencyVulnState_Call) Return(vulnEvent models.VulnEvent, err error) *DependencyVulnService_UpdateDependencyVulnState_Call
func (*DependencyVulnService_UpdateDependencyVulnState_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnService_UpdateDependencyVulnState_Call) Run(run func(tx core.DB, assetID uuid.UUID, userID string, dependencyVuln *models.DependencyVuln, statusType string, justification string, mechanicalJustification models.MechanicalJustificationType, assetVersionName string)) *DependencyVulnService_UpdateDependencyVulnState_Call
func (*DependencyVulnService_UpdateDependencyVulnState_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnService_UpdateDependencyVulnState_Call) RunAndReturn(run func(tx core.DB, assetID uuid.UUID, userID string, dependencyVuln *models.DependencyVuln, statusType string, justification string, mechanicalJustification models.MechanicalJustificationType, assetVersionName string) (models.VulnEvent, error)) *DependencyVulnService_UpdateDependencyVulnState_Call
type DependencyVulnService_UserDetectedDependencyVulnInAnotherArtifact_Call ¶ added in v0.17.2
DependencyVulnService_UserDetectedDependencyVulnInAnotherArtifact_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserDetectedDependencyVulnInAnotherArtifact'
func (*DependencyVulnService_UserDetectedDependencyVulnInAnotherArtifact_Call) Return ¶ added in v0.17.2
func (*DependencyVulnService_UserDetectedDependencyVulnInAnotherArtifact_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnService_UserDetectedDependencyVulnInAnotherArtifact_Call) Run(run func(tx core.DB, vulnerabilities []models.DependencyVuln, artifactName string)) *DependencyVulnService_UserDetectedDependencyVulnInAnotherArtifact_Call
func (*DependencyVulnService_UserDetectedDependencyVulnInAnotherArtifact_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnService_UserDetectedDependencyVulnInAnotherArtifact_Call) RunAndReturn(run func(tx core.DB, vulnerabilities []models.DependencyVuln, artifactName string) error) *DependencyVulnService_UserDetectedDependencyVulnInAnotherArtifact_Call
type DependencyVulnService_UserDetectedDependencyVulns_Call ¶ added in v0.17.2
DependencyVulnService_UserDetectedDependencyVulns_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserDetectedDependencyVulns'
func (*DependencyVulnService_UserDetectedDependencyVulns_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnService_UserDetectedDependencyVulns_Call) Run(run func(tx core.DB, artifactName string, dependencyVulns []models.DependencyVuln, assetVersion models.AssetVersion, asset models.Asset)) *DependencyVulnService_UserDetectedDependencyVulns_Call
func (*DependencyVulnService_UserDetectedDependencyVulns_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnService_UserDetectedDependencyVulns_Call) RunAndReturn(run func(tx core.DB, artifactName string, dependencyVulns []models.DependencyVuln, assetVersion models.AssetVersion, asset models.Asset) error) *DependencyVulnService_UserDetectedDependencyVulns_Call
type DependencyVulnService_UserDetectedExistingVulnOnDifferentBranch_Call ¶ added in v0.17.2
DependencyVulnService_UserDetectedExistingVulnOnDifferentBranch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserDetectedExistingVulnOnDifferentBranch'
func (*DependencyVulnService_UserDetectedExistingVulnOnDifferentBranch_Call) Return ¶ added in v0.17.2
func (*DependencyVulnService_UserDetectedExistingVulnOnDifferentBranch_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnService_UserDetectedExistingVulnOnDifferentBranch_Call) Run(run func(tx core.DB, artifactName string, dependencyVulns []models.DependencyVuln, alreadyExistingEvents [][]models.VulnEvent, assetVersion models.AssetVersion, asset models.Asset)) *DependencyVulnService_UserDetectedExistingVulnOnDifferentBranch_Call
func (*DependencyVulnService_UserDetectedExistingVulnOnDifferentBranch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnService_UserDetectedExistingVulnOnDifferentBranch_Call) RunAndReturn(run func(tx core.DB, artifactName string, dependencyVulns []models.DependencyVuln, alreadyExistingEvents [][]models.VulnEvent, assetVersion models.AssetVersion, asset models.Asset) error) *DependencyVulnService_UserDetectedExistingVulnOnDifferentBranch_Call
type DependencyVulnService_UserDidNotDetectDependencyVulnInArtifactAnymore_Call ¶ added in v0.17.2
type DependencyVulnService_UserDidNotDetectDependencyVulnInArtifactAnymore_Call struct {
*mock.Call
}
DependencyVulnService_UserDidNotDetectDependencyVulnInArtifactAnymore_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserDidNotDetectDependencyVulnInArtifactAnymore'
func (*DependencyVulnService_UserDidNotDetectDependencyVulnInArtifactAnymore_Call) Return ¶ added in v0.17.2
func (*DependencyVulnService_UserDidNotDetectDependencyVulnInArtifactAnymore_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnService_UserDidNotDetectDependencyVulnInArtifactAnymore_Call) Run(run func(tx core.DB, vulnerabilities []models.DependencyVuln, artifactName string)) *DependencyVulnService_UserDidNotDetectDependencyVulnInArtifactAnymore_Call
func (*DependencyVulnService_UserDidNotDetectDependencyVulnInArtifactAnymore_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnService_UserDidNotDetectDependencyVulnInArtifactAnymore_Call) RunAndReturn(run func(tx core.DB, vulnerabilities []models.DependencyVuln, artifactName string) error) *DependencyVulnService_UserDidNotDetectDependencyVulnInArtifactAnymore_Call
type DependencyVulnService_UserFixedDependencyVulns_Call ¶ added in v0.17.2
DependencyVulnService_UserFixedDependencyVulns_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserFixedDependencyVulns'
func (*DependencyVulnService_UserFixedDependencyVulns_Call) Run ¶ added in v0.17.2
func (_c *DependencyVulnService_UserFixedDependencyVulns_Call) Run(run func(tx core.DB, userID string, dependencyVulns []models.DependencyVuln, assetVersion models.AssetVersion, asset models.Asset)) *DependencyVulnService_UserFixedDependencyVulns_Call
func (*DependencyVulnService_UserFixedDependencyVulns_Call) RunAndReturn ¶ added in v0.17.2
func (_c *DependencyVulnService_UserFixedDependencyVulns_Call) RunAndReturn(run func(tx core.DB, userID string, dependencyVulns []models.DependencyVuln, assetVersion models.AssetVersion, asset models.Asset) error) *DependencyVulnService_UserFixedDependencyVulns_Call
type Diffable ¶ added in v0.17.2
Diffable is an autogenerated mock type for the Diffable type
func NewDiffable ¶ added in v0.17.2
NewDiffable creates a new instance of Diffable. 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 (*Diffable) AssetVersionIndependentHash ¶ added in v0.17.2
AssetVersionIndependentHash provides a mock function for the type Diffable
func (*Diffable) EXPECT ¶ added in v0.17.2
func (_m *Diffable) EXPECT() *Diffable_Expecter
func (*Diffable) GetAssetVersionName ¶ added in v0.17.2
GetAssetVersionName provides a mock function for the type Diffable
type Diffable_AssetVersionIndependentHash_Call ¶ added in v0.17.2
Diffable_AssetVersionIndependentHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AssetVersionIndependentHash'
func (*Diffable_AssetVersionIndependentHash_Call) Return ¶ added in v0.17.2
func (_c *Diffable_AssetVersionIndependentHash_Call) Return(s string) *Diffable_AssetVersionIndependentHash_Call
func (*Diffable_AssetVersionIndependentHash_Call) Run ¶ added in v0.17.2
func (_c *Diffable_AssetVersionIndependentHash_Call) Run(run func()) *Diffable_AssetVersionIndependentHash_Call
func (*Diffable_AssetVersionIndependentHash_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Diffable_AssetVersionIndependentHash_Call) RunAndReturn(run func() string) *Diffable_AssetVersionIndependentHash_Call
type Diffable_Expecter ¶ added in v0.17.2
type Diffable_Expecter struct {
// contains filtered or unexported fields
}
func (*Diffable_Expecter) AssetVersionIndependentHash ¶ added in v0.17.2
func (_e *Diffable_Expecter) AssetVersionIndependentHash() *Diffable_AssetVersionIndependentHash_Call
AssetVersionIndependentHash is a helper method to define mock.On call
func (*Diffable_Expecter) GetAssetVersionName ¶ added in v0.17.2
func (_e *Diffable_Expecter) GetAssetVersionName() *Diffable_GetAssetVersionName_Call
GetAssetVersionName is a helper method to define mock.On call
func (*Diffable_Expecter) GetEvents ¶ added in v0.17.2
func (_e *Diffable_Expecter) GetEvents() *Diffable_GetEvents_Call
GetEvents is a helper method to define mock.On call
type Diffable_GetAssetVersionName_Call ¶ added in v0.17.2
Diffable_GetAssetVersionName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAssetVersionName'
func (*Diffable_GetAssetVersionName_Call) Return ¶ added in v0.17.2
func (_c *Diffable_GetAssetVersionName_Call) Return(s string) *Diffable_GetAssetVersionName_Call
func (*Diffable_GetAssetVersionName_Call) Run ¶ added in v0.17.2
func (_c *Diffable_GetAssetVersionName_Call) Run(run func()) *Diffable_GetAssetVersionName_Call
func (*Diffable_GetAssetVersionName_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Diffable_GetAssetVersionName_Call) RunAndReturn(run func() string) *Diffable_GetAssetVersionName_Call
type Diffable_GetEvents_Call ¶ added in v0.17.2
Diffable_GetEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEvents'
func (*Diffable_GetEvents_Call) Return ¶ added in v0.17.2
func (_c *Diffable_GetEvents_Call) Return(vulnEvents []models.VulnEvent) *Diffable_GetEvents_Call
func (*Diffable_GetEvents_Call) Run ¶ added in v0.17.2
func (_c *Diffable_GetEvents_Call) Run(run func()) *Diffable_GetEvents_Call
func (*Diffable_GetEvents_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Diffable_GetEvents_Call) RunAndReturn(run func() []models.VulnEvent) *Diffable_GetEvents_Call
type ExploitRepository ¶ added in v0.17.2
ExploitRepository is an autogenerated mock type for the ExploitRepository type
func NewExploitRepository ¶ added in v0.17.2
func NewExploitRepository(t interface { mock.TestingT Cleanup(func()) }) *ExploitRepository
NewExploitRepository creates a new instance of ExploitRepository. 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 (*ExploitRepository) EXPECT ¶ added in v0.17.2
func (_m *ExploitRepository) EXPECT() *ExploitRepository_Expecter
func (*ExploitRepository) GetAllExploitsID ¶ added in v0.17.2
func (_mock *ExploitRepository) GetAllExploitsID() ([]string, error)
GetAllExploitsID provides a mock function for the type ExploitRepository
type ExploitRepository_Expecter ¶ added in v0.17.2
type ExploitRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ExploitRepository_Expecter) GetAllExploitsID ¶ added in v0.17.2
func (_e *ExploitRepository_Expecter) GetAllExploitsID() *ExploitRepository_GetAllExploitsID_Call
GetAllExploitsID is a helper method to define mock.On call
func (*ExploitRepository_Expecter) SaveBatch ¶ added in v0.17.2
func (_e *ExploitRepository_Expecter) SaveBatch(tx interface{}, exploits interface{}) *ExploitRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx core.DB
- exploits []models.Exploit
type ExploitRepository_GetAllExploitsID_Call ¶ added in v0.17.2
ExploitRepository_GetAllExploitsID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllExploitsID'
func (*ExploitRepository_GetAllExploitsID_Call) Return ¶ added in v0.17.2
func (_c *ExploitRepository_GetAllExploitsID_Call) Return(strings []string, err error) *ExploitRepository_GetAllExploitsID_Call
func (*ExploitRepository_GetAllExploitsID_Call) Run ¶ added in v0.17.2
func (_c *ExploitRepository_GetAllExploitsID_Call) Run(run func()) *ExploitRepository_GetAllExploitsID_Call
func (*ExploitRepository_GetAllExploitsID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ExploitRepository_GetAllExploitsID_Call) RunAndReturn(run func() ([]string, error)) *ExploitRepository_GetAllExploitsID_Call
type ExploitRepository_SaveBatch_Call ¶ added in v0.17.2
ExploitRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*ExploitRepository_SaveBatch_Call) Return ¶ added in v0.17.2
func (_c *ExploitRepository_SaveBatch_Call) Return(err error) *ExploitRepository_SaveBatch_Call
func (*ExploitRepository_SaveBatch_Call) Run ¶ added in v0.17.2
func (_c *ExploitRepository_SaveBatch_Call) Run(run func(tx core.DB, exploits []models.Exploit)) *ExploitRepository_SaveBatch_Call
func (*ExploitRepository_SaveBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ExploitRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, exploits []models.Exploit) error) *ExploitRepository_SaveBatch_Call
type ExternalEntityProviderService ¶ added in v0.17.2
ExternalEntityProviderService is an autogenerated mock type for the ExternalEntityProviderService type
func NewExternalEntityProviderService ¶ added in v0.17.2
func NewExternalEntityProviderService(t interface { mock.TestingT Cleanup(func()) }) *ExternalEntityProviderService
NewExternalEntityProviderService creates a new instance of ExternalEntityProviderService. 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 (*ExternalEntityProviderService) EXPECT ¶ added in v0.17.2
func (_m *ExternalEntityProviderService) EXPECT() *ExternalEntityProviderService_Expecter
func (*ExternalEntityProviderService) RefreshExternalEntityProviderProjects ¶ added in v0.17.2
func (_mock *ExternalEntityProviderService) RefreshExternalEntityProviderProjects(ctx core.Context, org models.Org, user string) error
RefreshExternalEntityProviderProjects provides a mock function for the type ExternalEntityProviderService
func (*ExternalEntityProviderService) SyncOrgs ¶ added in v0.17.2
SyncOrgs provides a mock function for the type ExternalEntityProviderService
func (*ExternalEntityProviderService) TriggerOrgSync ¶ added in v0.17.2
func (_mock *ExternalEntityProviderService) TriggerOrgSync(c core.Context) error
TriggerOrgSync provides a mock function for the type ExternalEntityProviderService
type ExternalEntityProviderService_Expecter ¶ added in v0.17.2
type ExternalEntityProviderService_Expecter struct {
// contains filtered or unexported fields
}
func (*ExternalEntityProviderService_Expecter) RefreshExternalEntityProviderProjects ¶ added in v0.17.2
func (_e *ExternalEntityProviderService_Expecter) RefreshExternalEntityProviderProjects(ctx interface{}, org interface{}, user interface{}) *ExternalEntityProviderService_RefreshExternalEntityProviderProjects_Call
RefreshExternalEntityProviderProjects is a helper method to define mock.On call
- ctx core.Context
- org models.Org
- user string
func (*ExternalEntityProviderService_Expecter) SyncOrgs ¶ added in v0.17.2
func (_e *ExternalEntityProviderService_Expecter) SyncOrgs(c interface{}) *ExternalEntityProviderService_SyncOrgs_Call
SyncOrgs is a helper method to define mock.On call
- c core.Context
func (*ExternalEntityProviderService_Expecter) TriggerOrgSync ¶ added in v0.17.2
func (_e *ExternalEntityProviderService_Expecter) TriggerOrgSync(c interface{}) *ExternalEntityProviderService_TriggerOrgSync_Call
TriggerOrgSync is a helper method to define mock.On call
- c core.Context
type ExternalEntityProviderService_RefreshExternalEntityProviderProjects_Call ¶ added in v0.17.2
ExternalEntityProviderService_RefreshExternalEntityProviderProjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RefreshExternalEntityProviderProjects'
func (*ExternalEntityProviderService_RefreshExternalEntityProviderProjects_Call) Return ¶ added in v0.17.2
func (*ExternalEntityProviderService_RefreshExternalEntityProviderProjects_Call) Run ¶ added in v0.17.2
func (_c *ExternalEntityProviderService_RefreshExternalEntityProviderProjects_Call) Run(run func(ctx core.Context, org models.Org, user string)) *ExternalEntityProviderService_RefreshExternalEntityProviderProjects_Call
func (*ExternalEntityProviderService_RefreshExternalEntityProviderProjects_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ExternalEntityProviderService_RefreshExternalEntityProviderProjects_Call) RunAndReturn(run func(ctx core.Context, org models.Org, user string) error) *ExternalEntityProviderService_RefreshExternalEntityProviderProjects_Call
type ExternalEntityProviderService_SyncOrgs_Call ¶ added in v0.17.2
ExternalEntityProviderService_SyncOrgs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SyncOrgs'
func (*ExternalEntityProviderService_SyncOrgs_Call) Return ¶ added in v0.17.2
func (_c *ExternalEntityProviderService_SyncOrgs_Call) Return(orgs []*models.Org, err error) *ExternalEntityProviderService_SyncOrgs_Call
func (*ExternalEntityProviderService_SyncOrgs_Call) Run ¶ added in v0.17.2
func (_c *ExternalEntityProviderService_SyncOrgs_Call) Run(run func(c core.Context)) *ExternalEntityProviderService_SyncOrgs_Call
func (*ExternalEntityProviderService_SyncOrgs_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ExternalEntityProviderService_SyncOrgs_Call) RunAndReturn(run func(c core.Context) ([]*models.Org, error)) *ExternalEntityProviderService_SyncOrgs_Call
type ExternalEntityProviderService_TriggerOrgSync_Call ¶ added in v0.17.2
ExternalEntityProviderService_TriggerOrgSync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TriggerOrgSync'
func (*ExternalEntityProviderService_TriggerOrgSync_Call) Return ¶ added in v0.17.2
func (_c *ExternalEntityProviderService_TriggerOrgSync_Call) Return(err error) *ExternalEntityProviderService_TriggerOrgSync_Call
func (*ExternalEntityProviderService_TriggerOrgSync_Call) Run ¶ added in v0.17.2
func (_c *ExternalEntityProviderService_TriggerOrgSync_Call) Run(run func(c core.Context)) *ExternalEntityProviderService_TriggerOrgSync_Call
func (*ExternalEntityProviderService_TriggerOrgSync_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ExternalEntityProviderService_TriggerOrgSync_Call) RunAndReturn(run func(c core.Context) error) *ExternalEntityProviderService_TriggerOrgSync_Call
type ExternalUserRepository ¶ added in v0.17.2
ExternalUserRepository is an autogenerated mock type for the ExternalUserRepository type
func NewExternalUserRepository ¶ added in v0.17.2
func NewExternalUserRepository(t interface { mock.TestingT Cleanup(func()) }) *ExternalUserRepository
NewExternalUserRepository creates a new instance of ExternalUserRepository. 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 (*ExternalUserRepository) EXPECT ¶ added in v0.17.2
func (_m *ExternalUserRepository) EXPECT() *ExternalUserRepository_Expecter
func (*ExternalUserRepository) FindByOrgID ¶ added in v0.17.2
func (_mock *ExternalUserRepository) FindByOrgID(tx core.DB, orgID uuid.UUID) ([]models.ExternalUser, error)
FindByOrgID provides a mock function for the type ExternalUserRepository
func (*ExternalUserRepository) GetDB ¶ added in v0.17.2
func (_mock *ExternalUserRepository) GetDB(tx core.DB) core.DB
GetDB provides a mock function for the type ExternalUserRepository
func (*ExternalUserRepository) Save ¶ added in v0.17.2
func (_mock *ExternalUserRepository) Save(db core.DB, user *models.ExternalUser) error
Save provides a mock function for the type ExternalUserRepository
type ExternalUserRepository_Expecter ¶ added in v0.17.2
type ExternalUserRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ExternalUserRepository_Expecter) FindByOrgID ¶ added in v0.17.2
func (_e *ExternalUserRepository_Expecter) FindByOrgID(tx interface{}, orgID interface{}) *ExternalUserRepository_FindByOrgID_Call
FindByOrgID is a helper method to define mock.On call
- tx core.DB
- orgID uuid.UUID
func (*ExternalUserRepository_Expecter) GetDB ¶ added in v0.17.2
func (_e *ExternalUserRepository_Expecter) GetDB(tx interface{}) *ExternalUserRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx core.DB
func (*ExternalUserRepository_Expecter) Save ¶ added in v0.17.2
func (_e *ExternalUserRepository_Expecter) Save(db interface{}, user interface{}) *ExternalUserRepository_Save_Call
Save is a helper method to define mock.On call
- db core.DB
- user *models.ExternalUser
type ExternalUserRepository_FindByOrgID_Call ¶ added in v0.17.2
ExternalUserRepository_FindByOrgID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByOrgID'
func (*ExternalUserRepository_FindByOrgID_Call) Return ¶ added in v0.17.2
func (_c *ExternalUserRepository_FindByOrgID_Call) Return(externalUsers []models.ExternalUser, err error) *ExternalUserRepository_FindByOrgID_Call
func (*ExternalUserRepository_FindByOrgID_Call) Run ¶ added in v0.17.2
func (_c *ExternalUserRepository_FindByOrgID_Call) Run(run func(tx core.DB, orgID uuid.UUID)) *ExternalUserRepository_FindByOrgID_Call
func (*ExternalUserRepository_FindByOrgID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ExternalUserRepository_FindByOrgID_Call) RunAndReturn(run func(tx core.DB, orgID uuid.UUID) ([]models.ExternalUser, error)) *ExternalUserRepository_FindByOrgID_Call
type ExternalUserRepository_GetDB_Call ¶ added in v0.17.2
ExternalUserRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*ExternalUserRepository_GetDB_Call) Return ¶ added in v0.17.2
func (_c *ExternalUserRepository_GetDB_Call) Return(v core.DB) *ExternalUserRepository_GetDB_Call
func (*ExternalUserRepository_GetDB_Call) Run ¶ added in v0.17.2
func (_c *ExternalUserRepository_GetDB_Call) Run(run func(tx core.DB)) *ExternalUserRepository_GetDB_Call
func (*ExternalUserRepository_GetDB_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ExternalUserRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *ExternalUserRepository_GetDB_Call
type ExternalUserRepository_Save_Call ¶ added in v0.17.2
ExternalUserRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*ExternalUserRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *ExternalUserRepository_Save_Call) Return(err error) *ExternalUserRepository_Save_Call
func (*ExternalUserRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *ExternalUserRepository_Save_Call) Run(run func(db core.DB, user *models.ExternalUser)) *ExternalUserRepository_Save_Call
func (*ExternalUserRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ExternalUserRepository_Save_Call) RunAndReturn(run func(db core.DB, user *models.ExternalUser) error) *ExternalUserRepository_Save_Call
type FireAndForgetSynchronizer ¶ added in v0.17.2
FireAndForgetSynchronizer is an autogenerated mock type for the FireAndForgetSynchronizer type
func NewFireAndForgetSynchronizer ¶ added in v0.17.2
func NewFireAndForgetSynchronizer(t interface { mock.TestingT Cleanup(func()) }) *FireAndForgetSynchronizer
NewFireAndForgetSynchronizer creates a new instance of FireAndForgetSynchronizer. 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 (*FireAndForgetSynchronizer) EXPECT ¶ added in v0.17.2
func (_m *FireAndForgetSynchronizer) EXPECT() *FireAndForgetSynchronizer_Expecter
func (*FireAndForgetSynchronizer) FireAndForget ¶ added in v0.17.2
func (_mock *FireAndForgetSynchronizer) FireAndForget(fn func())
FireAndForget provides a mock function for the type FireAndForgetSynchronizer
type FireAndForgetSynchronizer_Expecter ¶ added in v0.17.2
type FireAndForgetSynchronizer_Expecter struct {
// contains filtered or unexported fields
}
func (*FireAndForgetSynchronizer_Expecter) FireAndForget ¶ added in v0.17.2
func (_e *FireAndForgetSynchronizer_Expecter) FireAndForget(fn interface{}) *FireAndForgetSynchronizer_FireAndForget_Call
FireAndForget is a helper method to define mock.On call
- fn func()
type FireAndForgetSynchronizer_FireAndForget_Call ¶ added in v0.17.2
FireAndForgetSynchronizer_FireAndForget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FireAndForget'
func (*FireAndForgetSynchronizer_FireAndForget_Call) Return ¶ added in v0.17.2
func (_c *FireAndForgetSynchronizer_FireAndForget_Call) Return() *FireAndForgetSynchronizer_FireAndForget_Call
func (*FireAndForgetSynchronizer_FireAndForget_Call) Run ¶ added in v0.17.2
func (_c *FireAndForgetSynchronizer_FireAndForget_Call) Run(run func(fn func())) *FireAndForgetSynchronizer_FireAndForget_Call
func (*FireAndForgetSynchronizer_FireAndForget_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FireAndForgetSynchronizer_FireAndForget_Call) RunAndReturn(run func(fn func())) *FireAndForgetSynchronizer_FireAndForget_Call
type FirstPartyVulnRepository ¶ added in v0.17.2
FirstPartyVulnRepository is an autogenerated mock type for the FirstPartyVulnRepository type
func NewFirstPartyVulnRepository ¶ added in v0.17.2
func NewFirstPartyVulnRepository(t interface { mock.TestingT Cleanup(func()) }) *FirstPartyVulnRepository
NewFirstPartyVulnRepository creates a new instance of FirstPartyVulnRepository. 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 (*FirstPartyVulnRepository) Activate ¶ added in v0.17.2
func (_mock *FirstPartyVulnRepository) Activate(tx core.DB, id string) error
Activate provides a mock function for the type FirstPartyVulnRepository
func (*FirstPartyVulnRepository) All ¶ added in v0.17.2
func (_mock *FirstPartyVulnRepository) All() ([]models.FirstPartyVuln, error)
All provides a mock function for the type FirstPartyVulnRepository
func (*FirstPartyVulnRepository) ApplyAndSave ¶ added in v0.17.2
func (_mock *FirstPartyVulnRepository) ApplyAndSave(tx core.DB, dependencyVuln *models.FirstPartyVuln, vulnEvent *models.VulnEvent) error
ApplyAndSave provides a mock function for the type FirstPartyVulnRepository
func (*FirstPartyVulnRepository) Begin ¶ added in v0.17.2
func (_mock *FirstPartyVulnRepository) Begin() core.DB
Begin provides a mock function for the type FirstPartyVulnRepository
func (*FirstPartyVulnRepository) Create ¶ added in v0.17.2
func (_mock *FirstPartyVulnRepository) Create(tx core.DB, t *models.FirstPartyVuln) error
Create provides a mock function for the type FirstPartyVulnRepository
func (*FirstPartyVulnRepository) CreateBatch ¶ added in v0.17.2
func (_mock *FirstPartyVulnRepository) CreateBatch(tx core.DB, ts []models.FirstPartyVuln) error
CreateBatch provides a mock function for the type FirstPartyVulnRepository
func (*FirstPartyVulnRepository) Delete ¶ added in v0.17.2
func (_mock *FirstPartyVulnRepository) Delete(tx core.DB, id string) error
Delete provides a mock function for the type FirstPartyVulnRepository
func (*FirstPartyVulnRepository) DeleteBatch ¶ added in v0.17.2
func (_mock *FirstPartyVulnRepository) DeleteBatch(tx core.DB, ids []models.FirstPartyVuln) error
DeleteBatch provides a mock function for the type FirstPartyVulnRepository
func (*FirstPartyVulnRepository) EXPECT ¶ added in v0.17.2
func (_m *FirstPartyVulnRepository) EXPECT() *FirstPartyVulnRepository_Expecter
func (*FirstPartyVulnRepository) GetByAssetID ¶ added in v0.17.2
func (_mock *FirstPartyVulnRepository) GetByAssetID(tx core.DB, assetID uuid.UUID) ([]models.FirstPartyVuln, error)
GetByAssetID provides a mock function for the type FirstPartyVulnRepository
func (*FirstPartyVulnRepository) GetByAssetVersion ¶ added in v0.17.2
func (_mock *FirstPartyVulnRepository) GetByAssetVersion(tx core.DB, assetVersionName string, assetID uuid.UUID) ([]models.FirstPartyVuln, error)
GetByAssetVersion provides a mock function for the type FirstPartyVulnRepository
func (*FirstPartyVulnRepository) GetByAssetVersionPaged ¶ added in v0.17.2
func (_mock *FirstPartyVulnRepository) GetByAssetVersionPaged(tx core.DB, assetVersionName string, assetID uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.FirstPartyVuln], map[string]int, error)
GetByAssetVersionPaged provides a mock function for the type FirstPartyVulnRepository
func (*FirstPartyVulnRepository) GetDB ¶ added in v0.17.2
func (_mock *FirstPartyVulnRepository) GetDB(tx core.DB) core.DB
GetDB provides a mock function for the type FirstPartyVulnRepository
func (*FirstPartyVulnRepository) GetDefaultFirstPartyVulnsByOrgIDPaged ¶ added in v0.17.2
func (_mock *FirstPartyVulnRepository) GetDefaultFirstPartyVulnsByOrgIDPaged(tx core.DB, userAllowedProjectIds []string, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.FirstPartyVuln], error)
GetDefaultFirstPartyVulnsByOrgIDPaged provides a mock function for the type FirstPartyVulnRepository
func (*FirstPartyVulnRepository) GetDefaultFirstPartyVulnsByProjectIDPaged ¶ added in v0.17.2
func (_mock *FirstPartyVulnRepository) GetDefaultFirstPartyVulnsByProjectIDPaged(tx core.DB, projectID uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.FirstPartyVuln], error)
GetDefaultFirstPartyVulnsByProjectIDPaged provides a mock function for the type FirstPartyVulnRepository
func (*FirstPartyVulnRepository) GetFirstPartyVulnsByOtherAssetVersions ¶ added in v0.17.2
func (_mock *FirstPartyVulnRepository) GetFirstPartyVulnsByOtherAssetVersions(tx core.DB, assetVersionName string, assetID uuid.UUID, scannerID string) ([]models.FirstPartyVuln, error)
GetFirstPartyVulnsByOtherAssetVersions provides a mock function for the type FirstPartyVulnRepository
func (*FirstPartyVulnRepository) List ¶ added in v0.17.2
func (_mock *FirstPartyVulnRepository) List(ids []string) ([]models.FirstPartyVuln, error)
List provides a mock function for the type FirstPartyVulnRepository
func (*FirstPartyVulnRepository) ListByScanner ¶ added in v0.17.2
func (_mock *FirstPartyVulnRepository) ListByScanner(assetVersionName string, assetID uuid.UUID, scannerID string) ([]models.FirstPartyVuln, error)
ListByScanner provides a mock function for the type FirstPartyVulnRepository
func (*FirstPartyVulnRepository) Read ¶ added in v0.17.2
func (_mock *FirstPartyVulnRepository) Read(id string) (models.FirstPartyVuln, error)
Read provides a mock function for the type FirstPartyVulnRepository
func (*FirstPartyVulnRepository) Save ¶ added in v0.17.2
func (_mock *FirstPartyVulnRepository) Save(tx core.DB, vuln *models.FirstPartyVuln) error
Save provides a mock function for the type FirstPartyVulnRepository
func (*FirstPartyVulnRepository) SaveBatch ¶ added in v0.17.2
func (_mock *FirstPartyVulnRepository) SaveBatch(tx core.DB, vulns []models.FirstPartyVuln) error
SaveBatch provides a mock function for the type FirstPartyVulnRepository
func (*FirstPartyVulnRepository) Transaction ¶ added in v0.17.2
func (_mock *FirstPartyVulnRepository) Transaction(txFunc func(core.DB) error) error
Transaction provides a mock function for the type FirstPartyVulnRepository
func (*FirstPartyVulnRepository) Upsert ¶ added in v0.17.2
func (_mock *FirstPartyVulnRepository) Upsert(t *[]*models.FirstPartyVuln, conflictingColumns []clause.Column, updateOnly []string) error
Upsert provides a mock function for the type FirstPartyVulnRepository
type FirstPartyVulnRepository_Activate_Call ¶ added in v0.17.2
FirstPartyVulnRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*FirstPartyVulnRepository_Activate_Call) Return ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Activate_Call) Return(err error) *FirstPartyVulnRepository_Activate_Call
func (*FirstPartyVulnRepository_Activate_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Activate_Call) Run(run func(tx core.DB, id string)) *FirstPartyVulnRepository_Activate_Call
func (*FirstPartyVulnRepository_Activate_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id string) error) *FirstPartyVulnRepository_Activate_Call
type FirstPartyVulnRepository_All_Call ¶ added in v0.17.2
FirstPartyVulnRepository_All_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'All'
func (*FirstPartyVulnRepository_All_Call) Return ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_All_Call) Return(firstPartyVulns []models.FirstPartyVuln, err error) *FirstPartyVulnRepository_All_Call
func (*FirstPartyVulnRepository_All_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_All_Call) Run(run func()) *FirstPartyVulnRepository_All_Call
func (*FirstPartyVulnRepository_All_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_All_Call) RunAndReturn(run func() ([]models.FirstPartyVuln, error)) *FirstPartyVulnRepository_All_Call
type FirstPartyVulnRepository_ApplyAndSave_Call ¶ added in v0.17.2
FirstPartyVulnRepository_ApplyAndSave_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyAndSave'
func (*FirstPartyVulnRepository_ApplyAndSave_Call) Return ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_ApplyAndSave_Call) Return(err error) *FirstPartyVulnRepository_ApplyAndSave_Call
func (*FirstPartyVulnRepository_ApplyAndSave_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_ApplyAndSave_Call) Run(run func(tx core.DB, dependencyVuln *models.FirstPartyVuln, vulnEvent *models.VulnEvent)) *FirstPartyVulnRepository_ApplyAndSave_Call
func (*FirstPartyVulnRepository_ApplyAndSave_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_ApplyAndSave_Call) RunAndReturn(run func(tx core.DB, dependencyVuln *models.FirstPartyVuln, vulnEvent *models.VulnEvent) error) *FirstPartyVulnRepository_ApplyAndSave_Call
type FirstPartyVulnRepository_Begin_Call ¶ added in v0.17.2
FirstPartyVulnRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*FirstPartyVulnRepository_Begin_Call) Return ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Begin_Call) Return(v core.DB) *FirstPartyVulnRepository_Begin_Call
func (*FirstPartyVulnRepository_Begin_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Begin_Call) Run(run func()) *FirstPartyVulnRepository_Begin_Call
func (*FirstPartyVulnRepository_Begin_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Begin_Call) RunAndReturn(run func() core.DB) *FirstPartyVulnRepository_Begin_Call
type FirstPartyVulnRepository_CreateBatch_Call ¶ added in v0.17.2
FirstPartyVulnRepository_CreateBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBatch'
func (*FirstPartyVulnRepository_CreateBatch_Call) Return ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_CreateBatch_Call) Return(err error) *FirstPartyVulnRepository_CreateBatch_Call
func (*FirstPartyVulnRepository_CreateBatch_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.FirstPartyVuln)) *FirstPartyVulnRepository_CreateBatch_Call
func (*FirstPartyVulnRepository_CreateBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.FirstPartyVuln) error) *FirstPartyVulnRepository_CreateBatch_Call
type FirstPartyVulnRepository_Create_Call ¶ added in v0.17.2
FirstPartyVulnRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*FirstPartyVulnRepository_Create_Call) Return ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Create_Call) Return(err error) *FirstPartyVulnRepository_Create_Call
func (*FirstPartyVulnRepository_Create_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Create_Call) Run(run func(tx core.DB, t *models.FirstPartyVuln)) *FirstPartyVulnRepository_Create_Call
func (*FirstPartyVulnRepository_Create_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.FirstPartyVuln) error) *FirstPartyVulnRepository_Create_Call
type FirstPartyVulnRepository_DeleteBatch_Call ¶ added in v0.17.2
FirstPartyVulnRepository_DeleteBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBatch'
func (*FirstPartyVulnRepository_DeleteBatch_Call) Return ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_DeleteBatch_Call) Return(err error) *FirstPartyVulnRepository_DeleteBatch_Call
func (*FirstPartyVulnRepository_DeleteBatch_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.FirstPartyVuln)) *FirstPartyVulnRepository_DeleteBatch_Call
func (*FirstPartyVulnRepository_DeleteBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.FirstPartyVuln) error) *FirstPartyVulnRepository_DeleteBatch_Call
type FirstPartyVulnRepository_Delete_Call ¶ added in v0.17.2
FirstPartyVulnRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*FirstPartyVulnRepository_Delete_Call) Return ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Delete_Call) Return(err error) *FirstPartyVulnRepository_Delete_Call
func (*FirstPartyVulnRepository_Delete_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Delete_Call) Run(run func(tx core.DB, id string)) *FirstPartyVulnRepository_Delete_Call
func (*FirstPartyVulnRepository_Delete_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id string) error) *FirstPartyVulnRepository_Delete_Call
type FirstPartyVulnRepository_Expecter ¶ added in v0.17.2
type FirstPartyVulnRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*FirstPartyVulnRepository_Expecter) Activate ¶ added in v0.17.2
func (_e *FirstPartyVulnRepository_Expecter) Activate(tx interface{}, id interface{}) *FirstPartyVulnRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx core.DB
- id string
func (*FirstPartyVulnRepository_Expecter) All ¶ added in v0.17.2
func (_e *FirstPartyVulnRepository_Expecter) All() *FirstPartyVulnRepository_All_Call
All is a helper method to define mock.On call
func (*FirstPartyVulnRepository_Expecter) ApplyAndSave ¶ added in v0.17.2
func (_e *FirstPartyVulnRepository_Expecter) ApplyAndSave(tx interface{}, dependencyVuln interface{}, vulnEvent interface{}) *FirstPartyVulnRepository_ApplyAndSave_Call
ApplyAndSave is a helper method to define mock.On call
- tx core.DB
- dependencyVuln *models.FirstPartyVuln
- vulnEvent *models.VulnEvent
func (*FirstPartyVulnRepository_Expecter) Begin ¶ added in v0.17.2
func (_e *FirstPartyVulnRepository_Expecter) Begin() *FirstPartyVulnRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*FirstPartyVulnRepository_Expecter) Create ¶ added in v0.17.2
func (_e *FirstPartyVulnRepository_Expecter) Create(tx interface{}, t interface{}) *FirstPartyVulnRepository_Create_Call
Create is a helper method to define mock.On call
- tx core.DB
- t *models.FirstPartyVuln
func (*FirstPartyVulnRepository_Expecter) CreateBatch ¶ added in v0.17.2
func (_e *FirstPartyVulnRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *FirstPartyVulnRepository_CreateBatch_Call
CreateBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.FirstPartyVuln
func (*FirstPartyVulnRepository_Expecter) Delete ¶ added in v0.17.2
func (_e *FirstPartyVulnRepository_Expecter) Delete(tx interface{}, id interface{}) *FirstPartyVulnRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx core.DB
- id string
func (*FirstPartyVulnRepository_Expecter) DeleteBatch ¶ added in v0.17.2
func (_e *FirstPartyVulnRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *FirstPartyVulnRepository_DeleteBatch_Call
DeleteBatch is a helper method to define mock.On call
- tx core.DB
- ids []models.FirstPartyVuln
func (*FirstPartyVulnRepository_Expecter) GetByAssetID ¶ added in v0.17.2
func (_e *FirstPartyVulnRepository_Expecter) GetByAssetID(tx interface{}, assetID interface{}) *FirstPartyVulnRepository_GetByAssetID_Call
GetByAssetID is a helper method to define mock.On call
- tx core.DB
- assetID uuid.UUID
func (*FirstPartyVulnRepository_Expecter) GetByAssetVersion ¶ added in v0.17.2
func (_e *FirstPartyVulnRepository_Expecter) GetByAssetVersion(tx interface{}, assetVersionName interface{}, assetID interface{}) *FirstPartyVulnRepository_GetByAssetVersion_Call
GetByAssetVersion is a helper method to define mock.On call
- tx core.DB
- assetVersionName string
- assetID uuid.UUID
func (*FirstPartyVulnRepository_Expecter) GetByAssetVersionPaged ¶ added in v0.17.2
func (_e *FirstPartyVulnRepository_Expecter) GetByAssetVersionPaged(tx interface{}, assetVersionName interface{}, assetID interface{}, pageInfo interface{}, search interface{}, filter interface{}, sort interface{}) *FirstPartyVulnRepository_GetByAssetVersionPaged_Call
GetByAssetVersionPaged is a helper method to define mock.On call
- tx core.DB
- assetVersionName string
- assetID uuid.UUID
- pageInfo core.PageInfo
- search string
- filter []core.FilterQuery
- sort []core.SortQuery
func (*FirstPartyVulnRepository_Expecter) GetDB ¶ added in v0.17.2
func (_e *FirstPartyVulnRepository_Expecter) GetDB(tx interface{}) *FirstPartyVulnRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx core.DB
func (*FirstPartyVulnRepository_Expecter) GetDefaultFirstPartyVulnsByOrgIDPaged ¶ added in v0.17.2
func (_e *FirstPartyVulnRepository_Expecter) GetDefaultFirstPartyVulnsByOrgIDPaged(tx interface{}, userAllowedProjectIds interface{}, pageInfo interface{}, search interface{}, filter interface{}, sort interface{}) *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByOrgIDPaged_Call
GetDefaultFirstPartyVulnsByOrgIDPaged is a helper method to define mock.On call
- tx core.DB
- userAllowedProjectIds []string
- pageInfo core.PageInfo
- search string
- filter []core.FilterQuery
- sort []core.SortQuery
func (*FirstPartyVulnRepository_Expecter) GetDefaultFirstPartyVulnsByProjectIDPaged ¶ added in v0.17.2
func (_e *FirstPartyVulnRepository_Expecter) GetDefaultFirstPartyVulnsByProjectIDPaged(tx interface{}, projectID interface{}, pageInfo interface{}, search interface{}, filter interface{}, sort interface{}) *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByProjectIDPaged_Call
GetDefaultFirstPartyVulnsByProjectIDPaged is a helper method to define mock.On call
- tx core.DB
- projectID uuid.UUID
- pageInfo core.PageInfo
- search string
- filter []core.FilterQuery
- sort []core.SortQuery
func (*FirstPartyVulnRepository_Expecter) GetFirstPartyVulnsByOtherAssetVersions ¶ added in v0.17.2
func (_e *FirstPartyVulnRepository_Expecter) GetFirstPartyVulnsByOtherAssetVersions(tx interface{}, assetVersionName interface{}, assetID interface{}, scannerID interface{}) *FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call
GetFirstPartyVulnsByOtherAssetVersions is a helper method to define mock.On call
- tx core.DB
- assetVersionName string
- assetID uuid.UUID
- scannerID string
func (*FirstPartyVulnRepository_Expecter) List ¶ added in v0.17.2
func (_e *FirstPartyVulnRepository_Expecter) List(ids interface{}) *FirstPartyVulnRepository_List_Call
List is a helper method to define mock.On call
- ids []string
func (*FirstPartyVulnRepository_Expecter) ListByScanner ¶ added in v0.17.2
func (_e *FirstPartyVulnRepository_Expecter) ListByScanner(assetVersionName interface{}, assetID interface{}, scannerID interface{}) *FirstPartyVulnRepository_ListByScanner_Call
ListByScanner is a helper method to define mock.On call
- assetVersionName string
- assetID uuid.UUID
- scannerID string
func (*FirstPartyVulnRepository_Expecter) Read ¶ added in v0.17.2
func (_e *FirstPartyVulnRepository_Expecter) Read(id interface{}) *FirstPartyVulnRepository_Read_Call
Read is a helper method to define mock.On call
- id string
func (*FirstPartyVulnRepository_Expecter) Save ¶ added in v0.17.2
func (_e *FirstPartyVulnRepository_Expecter) Save(tx interface{}, vuln interface{}) *FirstPartyVulnRepository_Save_Call
Save is a helper method to define mock.On call
- tx core.DB
- vuln *models.FirstPartyVuln
func (*FirstPartyVulnRepository_Expecter) SaveBatch ¶ added in v0.17.2
func (_e *FirstPartyVulnRepository_Expecter) SaveBatch(tx interface{}, vulns interface{}) *FirstPartyVulnRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx core.DB
- vulns []models.FirstPartyVuln
func (*FirstPartyVulnRepository_Expecter) Transaction ¶ added in v0.17.2
func (_e *FirstPartyVulnRepository_Expecter) Transaction(txFunc interface{}) *FirstPartyVulnRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- txFunc func(core.DB) error
func (*FirstPartyVulnRepository_Expecter) Upsert ¶ added in v0.17.2
func (_e *FirstPartyVulnRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *FirstPartyVulnRepository_Upsert_Call
Upsert is a helper method to define mock.On call
- t *[]*models.FirstPartyVuln
- conflictingColumns []clause.Column
- updateOnly []string
type FirstPartyVulnRepository_GetByAssetID_Call ¶ added in v0.17.2
FirstPartyVulnRepository_GetByAssetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByAssetID'
func (*FirstPartyVulnRepository_GetByAssetID_Call) Return ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_GetByAssetID_Call) Return(firstPartyVulns []models.FirstPartyVuln, err error) *FirstPartyVulnRepository_GetByAssetID_Call
func (*FirstPartyVulnRepository_GetByAssetID_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_GetByAssetID_Call) Run(run func(tx core.DB, assetID uuid.UUID)) *FirstPartyVulnRepository_GetByAssetID_Call
func (*FirstPartyVulnRepository_GetByAssetID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_GetByAssetID_Call) RunAndReturn(run func(tx core.DB, assetID uuid.UUID) ([]models.FirstPartyVuln, error)) *FirstPartyVulnRepository_GetByAssetID_Call
type FirstPartyVulnRepository_GetByAssetVersionPaged_Call ¶ added in v0.17.2
FirstPartyVulnRepository_GetByAssetVersionPaged_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByAssetVersionPaged'
func (*FirstPartyVulnRepository_GetByAssetVersionPaged_Call) Return ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_GetByAssetVersionPaged_Call) Return(paged core.Paged[models.FirstPartyVuln], stringToInt map[string]int, err error) *FirstPartyVulnRepository_GetByAssetVersionPaged_Call
func (*FirstPartyVulnRepository_GetByAssetVersionPaged_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_GetByAssetVersionPaged_Call) Run(run func(tx core.DB, assetVersionName string, assetID uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery)) *FirstPartyVulnRepository_GetByAssetVersionPaged_Call
func (*FirstPartyVulnRepository_GetByAssetVersionPaged_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_GetByAssetVersionPaged_Call) RunAndReturn(run func(tx core.DB, assetVersionName string, assetID uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.FirstPartyVuln], map[string]int, error)) *FirstPartyVulnRepository_GetByAssetVersionPaged_Call
type FirstPartyVulnRepository_GetByAssetVersion_Call ¶ added in v0.17.2
FirstPartyVulnRepository_GetByAssetVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByAssetVersion'
func (*FirstPartyVulnRepository_GetByAssetVersion_Call) Return ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_GetByAssetVersion_Call) Return(firstPartyVulns []models.FirstPartyVuln, err error) *FirstPartyVulnRepository_GetByAssetVersion_Call
func (*FirstPartyVulnRepository_GetByAssetVersion_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_GetByAssetVersion_Call) Run(run func(tx core.DB, assetVersionName string, assetID uuid.UUID)) *FirstPartyVulnRepository_GetByAssetVersion_Call
func (*FirstPartyVulnRepository_GetByAssetVersion_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_GetByAssetVersion_Call) RunAndReturn(run func(tx core.DB, assetVersionName string, assetID uuid.UUID) ([]models.FirstPartyVuln, error)) *FirstPartyVulnRepository_GetByAssetVersion_Call
type FirstPartyVulnRepository_GetDB_Call ¶ added in v0.17.2
FirstPartyVulnRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*FirstPartyVulnRepository_GetDB_Call) Return ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_GetDB_Call) Return(v core.DB) *FirstPartyVulnRepository_GetDB_Call
func (*FirstPartyVulnRepository_GetDB_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_GetDB_Call) Run(run func(tx core.DB)) *FirstPartyVulnRepository_GetDB_Call
func (*FirstPartyVulnRepository_GetDB_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *FirstPartyVulnRepository_GetDB_Call
type FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByOrgIDPaged_Call ¶ added in v0.17.2
FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByOrgIDPaged_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDefaultFirstPartyVulnsByOrgIDPaged'
func (*FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByOrgIDPaged_Call) Return ¶ added in v0.17.2
func (*FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByOrgIDPaged_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByOrgIDPaged_Call) Run(run func(tx core.DB, userAllowedProjectIds []string, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery)) *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByOrgIDPaged_Call
func (*FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByOrgIDPaged_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByOrgIDPaged_Call) RunAndReturn(run func(tx core.DB, userAllowedProjectIds []string, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.FirstPartyVuln], error)) *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByOrgIDPaged_Call
type FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByProjectIDPaged_Call ¶ added in v0.17.2
FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByProjectIDPaged_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDefaultFirstPartyVulnsByProjectIDPaged'
func (*FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByProjectIDPaged_Call) Return ¶ added in v0.17.2
func (*FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByProjectIDPaged_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByProjectIDPaged_Call) Run(run func(tx core.DB, projectID uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery)) *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByProjectIDPaged_Call
func (*FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByProjectIDPaged_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByProjectIDPaged_Call) RunAndReturn(run func(tx core.DB, projectID uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.FirstPartyVuln], error)) *FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByProjectIDPaged_Call
type FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call ¶ added in v0.17.2
FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFirstPartyVulnsByOtherAssetVersions'
func (*FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call) Return ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call) Return(firstPartyVulns []models.FirstPartyVuln, err error) *FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call
func (*FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call) Run(run func(tx core.DB, assetVersionName string, assetID uuid.UUID, scannerID string)) *FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call
func (*FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call) RunAndReturn(run func(tx core.DB, assetVersionName string, assetID uuid.UUID, scannerID string) ([]models.FirstPartyVuln, error)) *FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call
type FirstPartyVulnRepository_ListByScanner_Call ¶ added in v0.17.2
FirstPartyVulnRepository_ListByScanner_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByScanner'
func (*FirstPartyVulnRepository_ListByScanner_Call) Return ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_ListByScanner_Call) Return(firstPartyVulns []models.FirstPartyVuln, err error) *FirstPartyVulnRepository_ListByScanner_Call
func (*FirstPartyVulnRepository_ListByScanner_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_ListByScanner_Call) Run(run func(assetVersionName string, assetID uuid.UUID, scannerID string)) *FirstPartyVulnRepository_ListByScanner_Call
func (*FirstPartyVulnRepository_ListByScanner_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_ListByScanner_Call) RunAndReturn(run func(assetVersionName string, assetID uuid.UUID, scannerID string) ([]models.FirstPartyVuln, error)) *FirstPartyVulnRepository_ListByScanner_Call
type FirstPartyVulnRepository_List_Call ¶ added in v0.17.2
FirstPartyVulnRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*FirstPartyVulnRepository_List_Call) Return ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_List_Call) Return(firstPartyVulns []models.FirstPartyVuln, err error) *FirstPartyVulnRepository_List_Call
func (*FirstPartyVulnRepository_List_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_List_Call) Run(run func(ids []string)) *FirstPartyVulnRepository_List_Call
func (*FirstPartyVulnRepository_List_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_List_Call) RunAndReturn(run func(ids []string) ([]models.FirstPartyVuln, error)) *FirstPartyVulnRepository_List_Call
type FirstPartyVulnRepository_Read_Call ¶ added in v0.17.2
FirstPartyVulnRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*FirstPartyVulnRepository_Read_Call) Return ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Read_Call) Return(firstPartyVuln models.FirstPartyVuln, err error) *FirstPartyVulnRepository_Read_Call
func (*FirstPartyVulnRepository_Read_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Read_Call) Run(run func(id string)) *FirstPartyVulnRepository_Read_Call
func (*FirstPartyVulnRepository_Read_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Read_Call) RunAndReturn(run func(id string) (models.FirstPartyVuln, error)) *FirstPartyVulnRepository_Read_Call
type FirstPartyVulnRepository_SaveBatch_Call ¶ added in v0.17.2
FirstPartyVulnRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*FirstPartyVulnRepository_SaveBatch_Call) Return ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_SaveBatch_Call) Return(err error) *FirstPartyVulnRepository_SaveBatch_Call
func (*FirstPartyVulnRepository_SaveBatch_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_SaveBatch_Call) Run(run func(tx core.DB, vulns []models.FirstPartyVuln)) *FirstPartyVulnRepository_SaveBatch_Call
func (*FirstPartyVulnRepository_SaveBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, vulns []models.FirstPartyVuln) error) *FirstPartyVulnRepository_SaveBatch_Call
type FirstPartyVulnRepository_Save_Call ¶ added in v0.17.2
FirstPartyVulnRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*FirstPartyVulnRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Save_Call) Return(err error) *FirstPartyVulnRepository_Save_Call
func (*FirstPartyVulnRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Save_Call) Run(run func(tx core.DB, vuln *models.FirstPartyVuln)) *FirstPartyVulnRepository_Save_Call
func (*FirstPartyVulnRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Save_Call) RunAndReturn(run func(tx core.DB, vuln *models.FirstPartyVuln) error) *FirstPartyVulnRepository_Save_Call
type FirstPartyVulnRepository_Transaction_Call ¶ added in v0.17.2
FirstPartyVulnRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*FirstPartyVulnRepository_Transaction_Call) Return ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Transaction_Call) Return(err error) *FirstPartyVulnRepository_Transaction_Call
func (*FirstPartyVulnRepository_Transaction_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Transaction_Call) Run(run func(txFunc func(core.DB) error)) *FirstPartyVulnRepository_Transaction_Call
func (*FirstPartyVulnRepository_Transaction_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Transaction_Call) RunAndReturn(run func(txFunc func(core.DB) error) error) *FirstPartyVulnRepository_Transaction_Call
type FirstPartyVulnRepository_Upsert_Call ¶ added in v0.17.2
FirstPartyVulnRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*FirstPartyVulnRepository_Upsert_Call) Return ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Upsert_Call) Return(err error) *FirstPartyVulnRepository_Upsert_Call
func (*FirstPartyVulnRepository_Upsert_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Upsert_Call) Run(run func(t *[]*models.FirstPartyVuln, conflictingColumns []clause.Column, updateOnly []string)) *FirstPartyVulnRepository_Upsert_Call
func (*FirstPartyVulnRepository_Upsert_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnRepository_Upsert_Call) RunAndReturn(run func(t *[]*models.FirstPartyVuln, conflictingColumns []clause.Column, updateOnly []string) error) *FirstPartyVulnRepository_Upsert_Call
type FirstPartyVulnService ¶ added in v0.17.2
FirstPartyVulnService is an autogenerated mock type for the FirstPartyVulnService type
func NewFirstPartyVulnService ¶ added in v0.17.2
func NewFirstPartyVulnService(t interface { mock.TestingT Cleanup(func()) }) *FirstPartyVulnService
NewFirstPartyVulnService creates a new instance of FirstPartyVulnService. 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 (*FirstPartyVulnService) EXPECT ¶ added in v0.17.2
func (_m *FirstPartyVulnService) EXPECT() *FirstPartyVulnService_Expecter
func (*FirstPartyVulnService) SyncAllIssues ¶ added in v0.17.2
func (_mock *FirstPartyVulnService) SyncAllIssues(org models.Org, project models.Project, asset models.Asset, assetVersion models.AssetVersion) error
SyncAllIssues provides a mock function for the type FirstPartyVulnService
func (*FirstPartyVulnService) SyncIssues ¶ added in v0.17.2
func (_mock *FirstPartyVulnService) SyncIssues(org models.Org, project models.Project, asset models.Asset, assetVersion models.AssetVersion, vulnList []models.FirstPartyVuln) error
SyncIssues provides a mock function for the type FirstPartyVulnService
func (*FirstPartyVulnService) UpdateFirstPartyVulnState ¶ added in v0.17.2
func (_mock *FirstPartyVulnService) UpdateFirstPartyVulnState(tx core.DB, userID string, firstPartyVuln *models.FirstPartyVuln, statusType string, justification string, mechanicalJustification models.MechanicalJustificationType) (models.VulnEvent, error)
UpdateFirstPartyVulnState provides a mock function for the type FirstPartyVulnService
func (*FirstPartyVulnService) UserDetectedExistingFirstPartyVulnOnDifferentBranch ¶ added in v0.17.2
func (_mock *FirstPartyVulnService) UserDetectedExistingFirstPartyVulnOnDifferentBranch(tx core.DB, scannerID string, firstPartyVulns []models.FirstPartyVuln, alreadyExistingEvents [][]models.VulnEvent, assetVersion models.AssetVersion, asset models.Asset) error
UserDetectedExistingFirstPartyVulnOnDifferentBranch provides a mock function for the type FirstPartyVulnService
func (*FirstPartyVulnService) UserDetectedFirstPartyVulns ¶ added in v0.17.2
func (_mock *FirstPartyVulnService) UserDetectedFirstPartyVulns(tx core.DB, userID string, scannerID string, firstPartyVulns []models.FirstPartyVuln) error
UserDetectedFirstPartyVulns provides a mock function for the type FirstPartyVulnService
func (*FirstPartyVulnService) UserFixedFirstPartyVulns ¶ added in v0.17.2
func (_mock *FirstPartyVulnService) UserFixedFirstPartyVulns(tx core.DB, userID string, firstPartyVulns []models.FirstPartyVuln) error
UserFixedFirstPartyVulns provides a mock function for the type FirstPartyVulnService
type FirstPartyVulnService_Expecter ¶ added in v0.17.2
type FirstPartyVulnService_Expecter struct {
// contains filtered or unexported fields
}
func (*FirstPartyVulnService_Expecter) SyncAllIssues ¶ added in v0.17.2
func (_e *FirstPartyVulnService_Expecter) SyncAllIssues(org interface{}, project interface{}, asset interface{}, assetVersion interface{}) *FirstPartyVulnService_SyncAllIssues_Call
SyncAllIssues is a helper method to define mock.On call
- org models.Org
- project models.Project
- asset models.Asset
- assetVersion models.AssetVersion
func (*FirstPartyVulnService_Expecter) SyncIssues ¶ added in v0.17.2
func (_e *FirstPartyVulnService_Expecter) SyncIssues(org interface{}, project interface{}, asset interface{}, assetVersion interface{}, vulnList interface{}) *FirstPartyVulnService_SyncIssues_Call
SyncIssues is a helper method to define mock.On call
- org models.Org
- project models.Project
- asset models.Asset
- assetVersion models.AssetVersion
- vulnList []models.FirstPartyVuln
func (*FirstPartyVulnService_Expecter) UpdateFirstPartyVulnState ¶ added in v0.17.2
func (_e *FirstPartyVulnService_Expecter) UpdateFirstPartyVulnState(tx interface{}, userID interface{}, firstPartyVuln interface{}, statusType interface{}, justification interface{}, mechanicalJustification interface{}) *FirstPartyVulnService_UpdateFirstPartyVulnState_Call
UpdateFirstPartyVulnState is a helper method to define mock.On call
- tx core.DB
- userID string
- firstPartyVuln *models.FirstPartyVuln
- statusType string
- justification string
- mechanicalJustification models.MechanicalJustificationType
func (*FirstPartyVulnService_Expecter) UserDetectedExistingFirstPartyVulnOnDifferentBranch ¶ added in v0.17.2
func (_e *FirstPartyVulnService_Expecter) UserDetectedExistingFirstPartyVulnOnDifferentBranch(tx interface{}, scannerID interface{}, firstPartyVulns interface{}, alreadyExistingEvents interface{}, assetVersion interface{}, asset interface{}) *FirstPartyVulnService_UserDetectedExistingFirstPartyVulnOnDifferentBranch_Call
UserDetectedExistingFirstPartyVulnOnDifferentBranch is a helper method to define mock.On call
- tx core.DB
- scannerID string
- firstPartyVulns []models.FirstPartyVuln
- alreadyExistingEvents [][]models.VulnEvent
- assetVersion models.AssetVersion
- asset models.Asset
func (*FirstPartyVulnService_Expecter) UserDetectedFirstPartyVulns ¶ added in v0.17.2
func (_e *FirstPartyVulnService_Expecter) UserDetectedFirstPartyVulns(tx interface{}, userID interface{}, scannerID interface{}, firstPartyVulns interface{}) *FirstPartyVulnService_UserDetectedFirstPartyVulns_Call
UserDetectedFirstPartyVulns is a helper method to define mock.On call
- tx core.DB
- userID string
- scannerID string
- firstPartyVulns []models.FirstPartyVuln
func (*FirstPartyVulnService_Expecter) UserFixedFirstPartyVulns ¶ added in v0.17.2
func (_e *FirstPartyVulnService_Expecter) UserFixedFirstPartyVulns(tx interface{}, userID interface{}, firstPartyVulns interface{}) *FirstPartyVulnService_UserFixedFirstPartyVulns_Call
UserFixedFirstPartyVulns is a helper method to define mock.On call
- tx core.DB
- userID string
- firstPartyVulns []models.FirstPartyVuln
type FirstPartyVulnService_SyncAllIssues_Call ¶ added in v0.17.2
FirstPartyVulnService_SyncAllIssues_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SyncAllIssues'
func (*FirstPartyVulnService_SyncAllIssues_Call) Return ¶ added in v0.17.2
func (_c *FirstPartyVulnService_SyncAllIssues_Call) Return(err error) *FirstPartyVulnService_SyncAllIssues_Call
func (*FirstPartyVulnService_SyncAllIssues_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnService_SyncAllIssues_Call) Run(run func(org models.Org, project models.Project, asset models.Asset, assetVersion models.AssetVersion)) *FirstPartyVulnService_SyncAllIssues_Call
func (*FirstPartyVulnService_SyncAllIssues_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnService_SyncAllIssues_Call) RunAndReturn(run func(org models.Org, project models.Project, asset models.Asset, assetVersion models.AssetVersion) error) *FirstPartyVulnService_SyncAllIssues_Call
type FirstPartyVulnService_SyncIssues_Call ¶ added in v0.17.2
FirstPartyVulnService_SyncIssues_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SyncIssues'
func (*FirstPartyVulnService_SyncIssues_Call) Return ¶ added in v0.17.2
func (_c *FirstPartyVulnService_SyncIssues_Call) Return(err error) *FirstPartyVulnService_SyncIssues_Call
func (*FirstPartyVulnService_SyncIssues_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnService_SyncIssues_Call) Run(run func(org models.Org, project models.Project, asset models.Asset, assetVersion models.AssetVersion, vulnList []models.FirstPartyVuln)) *FirstPartyVulnService_SyncIssues_Call
func (*FirstPartyVulnService_SyncIssues_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnService_SyncIssues_Call) RunAndReturn(run func(org models.Org, project models.Project, asset models.Asset, assetVersion models.AssetVersion, vulnList []models.FirstPartyVuln) error) *FirstPartyVulnService_SyncIssues_Call
type FirstPartyVulnService_UpdateFirstPartyVulnState_Call ¶ added in v0.17.2
FirstPartyVulnService_UpdateFirstPartyVulnState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateFirstPartyVulnState'
func (*FirstPartyVulnService_UpdateFirstPartyVulnState_Call) Return ¶ added in v0.17.2
func (_c *FirstPartyVulnService_UpdateFirstPartyVulnState_Call) Return(vulnEvent models.VulnEvent, err error) *FirstPartyVulnService_UpdateFirstPartyVulnState_Call
func (*FirstPartyVulnService_UpdateFirstPartyVulnState_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnService_UpdateFirstPartyVulnState_Call) Run(run func(tx core.DB, userID string, firstPartyVuln *models.FirstPartyVuln, statusType string, justification string, mechanicalJustification models.MechanicalJustificationType)) *FirstPartyVulnService_UpdateFirstPartyVulnState_Call
func (*FirstPartyVulnService_UpdateFirstPartyVulnState_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnService_UpdateFirstPartyVulnState_Call) RunAndReturn(run func(tx core.DB, userID string, firstPartyVuln *models.FirstPartyVuln, statusType string, justification string, mechanicalJustification models.MechanicalJustificationType) (models.VulnEvent, error)) *FirstPartyVulnService_UpdateFirstPartyVulnState_Call
type FirstPartyVulnService_UserDetectedExistingFirstPartyVulnOnDifferentBranch_Call ¶ added in v0.17.2
type FirstPartyVulnService_UserDetectedExistingFirstPartyVulnOnDifferentBranch_Call struct {
*mock.Call
}
FirstPartyVulnService_UserDetectedExistingFirstPartyVulnOnDifferentBranch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserDetectedExistingFirstPartyVulnOnDifferentBranch'
func (*FirstPartyVulnService_UserDetectedExistingFirstPartyVulnOnDifferentBranch_Call) Return ¶ added in v0.17.2
func (*FirstPartyVulnService_UserDetectedExistingFirstPartyVulnOnDifferentBranch_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnService_UserDetectedExistingFirstPartyVulnOnDifferentBranch_Call) Run(run func(tx core.DB, scannerID string, firstPartyVulns []models.FirstPartyVuln, alreadyExistingEvents [][]models.VulnEvent, assetVersion models.AssetVersion, asset models.Asset)) *FirstPartyVulnService_UserDetectedExistingFirstPartyVulnOnDifferentBranch_Call
func (*FirstPartyVulnService_UserDetectedExistingFirstPartyVulnOnDifferentBranch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnService_UserDetectedExistingFirstPartyVulnOnDifferentBranch_Call) RunAndReturn(run func(tx core.DB, scannerID string, firstPartyVulns []models.FirstPartyVuln, alreadyExistingEvents [][]models.VulnEvent, assetVersion models.AssetVersion, asset models.Asset) error) *FirstPartyVulnService_UserDetectedExistingFirstPartyVulnOnDifferentBranch_Call
type FirstPartyVulnService_UserDetectedFirstPartyVulns_Call ¶ added in v0.17.2
FirstPartyVulnService_UserDetectedFirstPartyVulns_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserDetectedFirstPartyVulns'
func (*FirstPartyVulnService_UserDetectedFirstPartyVulns_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnService_UserDetectedFirstPartyVulns_Call) Run(run func(tx core.DB, userID string, scannerID string, firstPartyVulns []models.FirstPartyVuln)) *FirstPartyVulnService_UserDetectedFirstPartyVulns_Call
func (*FirstPartyVulnService_UserDetectedFirstPartyVulns_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnService_UserDetectedFirstPartyVulns_Call) RunAndReturn(run func(tx core.DB, userID string, scannerID string, firstPartyVulns []models.FirstPartyVuln) error) *FirstPartyVulnService_UserDetectedFirstPartyVulns_Call
type FirstPartyVulnService_UserFixedFirstPartyVulns_Call ¶ added in v0.17.2
FirstPartyVulnService_UserFixedFirstPartyVulns_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserFixedFirstPartyVulns'
func (*FirstPartyVulnService_UserFixedFirstPartyVulns_Call) Run ¶ added in v0.17.2
func (_c *FirstPartyVulnService_UserFixedFirstPartyVulns_Call) Run(run func(tx core.DB, userID string, firstPartyVulns []models.FirstPartyVuln)) *FirstPartyVulnService_UserFixedFirstPartyVulns_Call
func (*FirstPartyVulnService_UserFixedFirstPartyVulns_Call) RunAndReturn ¶ added in v0.17.2
func (_c *FirstPartyVulnService_UserFixedFirstPartyVulns_Call) RunAndReturn(run func(tx core.DB, userID string, firstPartyVulns []models.FirstPartyVuln) error) *FirstPartyVulnService_UserFixedFirstPartyVulns_Call
type GitLabOauth2TokenRepository ¶ added in v0.17.2
GitLabOauth2TokenRepository is an autogenerated mock type for the GitLabOauth2TokenRepository type
func NewGitLabOauth2TokenRepository ¶ added in v0.17.2
func NewGitLabOauth2TokenRepository(t interface { mock.TestingT Cleanup(func()) }) *GitLabOauth2TokenRepository
NewGitLabOauth2TokenRepository creates a new instance of GitLabOauth2TokenRepository. 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 (*GitLabOauth2TokenRepository) CreateIfNotExists ¶ added in v0.17.2
func (_mock *GitLabOauth2TokenRepository) CreateIfNotExists(tokens []*models.GitLabOauth2Token) error
CreateIfNotExists provides a mock function for the type GitLabOauth2TokenRepository
func (*GitLabOauth2TokenRepository) Delete ¶ added in v0.17.2
func (_mock *GitLabOauth2TokenRepository) Delete(tx core.DB, tokens []models.GitLabOauth2Token) error
Delete provides a mock function for the type GitLabOauth2TokenRepository
func (*GitLabOauth2TokenRepository) DeleteByUserIDAndProviderID ¶ added in v0.17.2
func (_mock *GitLabOauth2TokenRepository) DeleteByUserIDAndProviderID(userID string, providerID string) error
DeleteByUserIDAndProviderID provides a mock function for the type GitLabOauth2TokenRepository
func (*GitLabOauth2TokenRepository) EXPECT ¶ added in v0.17.2
func (_m *GitLabOauth2TokenRepository) EXPECT() *GitLabOauth2TokenRepository_Expecter
func (*GitLabOauth2TokenRepository) FindByUserID ¶ added in v0.17.2
func (_mock *GitLabOauth2TokenRepository) FindByUserID(userID string) ([]models.GitLabOauth2Token, error)
FindByUserID provides a mock function for the type GitLabOauth2TokenRepository
func (*GitLabOauth2TokenRepository) FindByUserIDAndProviderID ¶ added in v0.17.2
func (_mock *GitLabOauth2TokenRepository) FindByUserIDAndProviderID(userID string, providerID string) (*models.GitLabOauth2Token, error)
FindByUserIDAndProviderID provides a mock function for the type GitLabOauth2TokenRepository
func (*GitLabOauth2TokenRepository) Save ¶ added in v0.17.2
func (_mock *GitLabOauth2TokenRepository) Save(tx core.DB, model ...*models.GitLabOauth2Token) error
Save provides a mock function for the type GitLabOauth2TokenRepository
type GitLabOauth2TokenRepository_CreateIfNotExists_Call ¶ added in v0.17.2
GitLabOauth2TokenRepository_CreateIfNotExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIfNotExists'
func (*GitLabOauth2TokenRepository_CreateIfNotExists_Call) Run ¶ added in v0.17.2
func (_c *GitLabOauth2TokenRepository_CreateIfNotExists_Call) Run(run func(tokens []*models.GitLabOauth2Token)) *GitLabOauth2TokenRepository_CreateIfNotExists_Call
func (*GitLabOauth2TokenRepository_CreateIfNotExists_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitLabOauth2TokenRepository_CreateIfNotExists_Call) RunAndReturn(run func(tokens []*models.GitLabOauth2Token) error) *GitLabOauth2TokenRepository_CreateIfNotExists_Call
type GitLabOauth2TokenRepository_DeleteByUserIDAndProviderID_Call ¶ added in v0.17.2
GitLabOauth2TokenRepository_DeleteByUserIDAndProviderID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByUserIDAndProviderID'
func (*GitLabOauth2TokenRepository_DeleteByUserIDAndProviderID_Call) Run ¶ added in v0.17.2
func (_c *GitLabOauth2TokenRepository_DeleteByUserIDAndProviderID_Call) Run(run func(userID string, providerID string)) *GitLabOauth2TokenRepository_DeleteByUserIDAndProviderID_Call
func (*GitLabOauth2TokenRepository_DeleteByUserIDAndProviderID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitLabOauth2TokenRepository_DeleteByUserIDAndProviderID_Call) RunAndReturn(run func(userID string, providerID string) error) *GitLabOauth2TokenRepository_DeleteByUserIDAndProviderID_Call
type GitLabOauth2TokenRepository_Delete_Call ¶ added in v0.17.2
GitLabOauth2TokenRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*GitLabOauth2TokenRepository_Delete_Call) Return ¶ added in v0.17.2
func (_c *GitLabOauth2TokenRepository_Delete_Call) Return(err error) *GitLabOauth2TokenRepository_Delete_Call
func (*GitLabOauth2TokenRepository_Delete_Call) Run ¶ added in v0.17.2
func (_c *GitLabOauth2TokenRepository_Delete_Call) Run(run func(tx core.DB, tokens []models.GitLabOauth2Token)) *GitLabOauth2TokenRepository_Delete_Call
func (*GitLabOauth2TokenRepository_Delete_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitLabOauth2TokenRepository_Delete_Call) RunAndReturn(run func(tx core.DB, tokens []models.GitLabOauth2Token) error) *GitLabOauth2TokenRepository_Delete_Call
type GitLabOauth2TokenRepository_Expecter ¶ added in v0.17.2
type GitLabOauth2TokenRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*GitLabOauth2TokenRepository_Expecter) CreateIfNotExists ¶ added in v0.17.2
func (_e *GitLabOauth2TokenRepository_Expecter) CreateIfNotExists(tokens interface{}) *GitLabOauth2TokenRepository_CreateIfNotExists_Call
CreateIfNotExists is a helper method to define mock.On call
- tokens []*models.GitLabOauth2Token
func (*GitLabOauth2TokenRepository_Expecter) Delete ¶ added in v0.17.2
func (_e *GitLabOauth2TokenRepository_Expecter) Delete(tx interface{}, tokens interface{}) *GitLabOauth2TokenRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx core.DB
- tokens []models.GitLabOauth2Token
func (*GitLabOauth2TokenRepository_Expecter) DeleteByUserIDAndProviderID ¶ added in v0.17.2
func (_e *GitLabOauth2TokenRepository_Expecter) DeleteByUserIDAndProviderID(userID interface{}, providerID interface{}) *GitLabOauth2TokenRepository_DeleteByUserIDAndProviderID_Call
DeleteByUserIDAndProviderID is a helper method to define mock.On call
- userID string
- providerID string
func (*GitLabOauth2TokenRepository_Expecter) FindByUserID ¶ added in v0.17.2
func (_e *GitLabOauth2TokenRepository_Expecter) FindByUserID(userID interface{}) *GitLabOauth2TokenRepository_FindByUserID_Call
FindByUserID is a helper method to define mock.On call
- userID string
func (*GitLabOauth2TokenRepository_Expecter) FindByUserIDAndProviderID ¶ added in v0.17.2
func (_e *GitLabOauth2TokenRepository_Expecter) FindByUserIDAndProviderID(userID interface{}, providerID interface{}) *GitLabOauth2TokenRepository_FindByUserIDAndProviderID_Call
FindByUserIDAndProviderID is a helper method to define mock.On call
- userID string
- providerID string
func (*GitLabOauth2TokenRepository_Expecter) Save ¶ added in v0.17.2
func (_e *GitLabOauth2TokenRepository_Expecter) Save(tx interface{}, model ...interface{}) *GitLabOauth2TokenRepository_Save_Call
Save is a helper method to define mock.On call
- tx core.DB
- model ...*models.GitLabOauth2Token
type GitLabOauth2TokenRepository_FindByUserIDAndProviderID_Call ¶ added in v0.17.2
GitLabOauth2TokenRepository_FindByUserIDAndProviderID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByUserIDAndProviderID'
func (*GitLabOauth2TokenRepository_FindByUserIDAndProviderID_Call) Return ¶ added in v0.17.2
func (_c *GitLabOauth2TokenRepository_FindByUserIDAndProviderID_Call) Return(gitLabOauth2Token *models.GitLabOauth2Token, err error) *GitLabOauth2TokenRepository_FindByUserIDAndProviderID_Call
func (*GitLabOauth2TokenRepository_FindByUserIDAndProviderID_Call) Run ¶ added in v0.17.2
func (_c *GitLabOauth2TokenRepository_FindByUserIDAndProviderID_Call) Run(run func(userID string, providerID string)) *GitLabOauth2TokenRepository_FindByUserIDAndProviderID_Call
func (*GitLabOauth2TokenRepository_FindByUserIDAndProviderID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitLabOauth2TokenRepository_FindByUserIDAndProviderID_Call) RunAndReturn(run func(userID string, providerID string) (*models.GitLabOauth2Token, error)) *GitLabOauth2TokenRepository_FindByUserIDAndProviderID_Call
type GitLabOauth2TokenRepository_FindByUserID_Call ¶ added in v0.17.2
GitLabOauth2TokenRepository_FindByUserID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByUserID'
func (*GitLabOauth2TokenRepository_FindByUserID_Call) Return ¶ added in v0.17.2
func (_c *GitLabOauth2TokenRepository_FindByUserID_Call) Return(gitLabOauth2Tokens []models.GitLabOauth2Token, err error) *GitLabOauth2TokenRepository_FindByUserID_Call
func (*GitLabOauth2TokenRepository_FindByUserID_Call) Run ¶ added in v0.17.2
func (_c *GitLabOauth2TokenRepository_FindByUserID_Call) Run(run func(userID string)) *GitLabOauth2TokenRepository_FindByUserID_Call
func (*GitLabOauth2TokenRepository_FindByUserID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitLabOauth2TokenRepository_FindByUserID_Call) RunAndReturn(run func(userID string) ([]models.GitLabOauth2Token, error)) *GitLabOauth2TokenRepository_FindByUserID_Call
type GitLabOauth2TokenRepository_Save_Call ¶ added in v0.17.2
GitLabOauth2TokenRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*GitLabOauth2TokenRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *GitLabOauth2TokenRepository_Save_Call) Return(err error) *GitLabOauth2TokenRepository_Save_Call
func (*GitLabOauth2TokenRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *GitLabOauth2TokenRepository_Save_Call) Run(run func(tx core.DB, model ...*models.GitLabOauth2Token)) *GitLabOauth2TokenRepository_Save_Call
func (*GitLabOauth2TokenRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitLabOauth2TokenRepository_Save_Call) RunAndReturn(run func(tx core.DB, model ...*models.GitLabOauth2Token) error) *GitLabOauth2TokenRepository_Save_Call
type GitLister ¶ added in v0.17.2
GitLister is an autogenerated mock type for the gitLister type
func NewGitLister ¶ added in v0.17.2
NewGitLister creates a new instance of GitLister. 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 (*GitLister) EXPECT ¶ added in v0.17.2
func (_m *GitLister) EXPECT() *GitLister_Expecter
func (*GitLister) GetBranchName ¶ added in v0.17.2
GetBranchName provides a mock function for the type GitLister
func (*GitLister) GetDefaultBranchName ¶ added in v0.17.2
GetDefaultBranchName provides a mock function for the type GitLister
func (*GitLister) GetTags ¶ added in v0.17.2
GetTags provides a mock function for the type GitLister
func (*GitLister) GitCommitCount ¶ added in v0.17.2
GitCommitCount provides a mock function for the type GitLister
func (*GitLister) MarkAllPathsAsSafe ¶ added in v0.17.2
MarkAllPathsAsSafe provides a mock function for the type GitLister
type GitLister_Expecter ¶ added in v0.17.2
type GitLister_Expecter struct {
// contains filtered or unexported fields
}
func (*GitLister_Expecter) GetBranchName ¶ added in v0.17.2
func (_e *GitLister_Expecter) GetBranchName(path interface{}) *GitLister_GetBranchName_Call
GetBranchName is a helper method to define mock.On call
- path string
func (*GitLister_Expecter) GetDefaultBranchName ¶ added in v0.17.2
func (_e *GitLister_Expecter) GetDefaultBranchName(path interface{}) *GitLister_GetDefaultBranchName_Call
GetDefaultBranchName is a helper method to define mock.On call
- path string
func (*GitLister_Expecter) GetTags ¶ added in v0.17.2
func (_e *GitLister_Expecter) GetTags(path interface{}) *GitLister_GetTags_Call
GetTags is a helper method to define mock.On call
- path string
func (*GitLister_Expecter) GitCommitCount ¶ added in v0.17.2
func (_e *GitLister_Expecter) GitCommitCount(path interface{}, tag interface{}) *GitLister_GitCommitCount_Call
GitCommitCount is a helper method to define mock.On call
- path string
- tag *string
func (*GitLister_Expecter) MarkAllPathsAsSafe ¶ added in v0.17.2
func (_e *GitLister_Expecter) MarkAllPathsAsSafe() *GitLister_MarkAllPathsAsSafe_Call
MarkAllPathsAsSafe is a helper method to define mock.On call
type GitLister_GetBranchName_Call ¶ added in v0.17.2
GitLister_GetBranchName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBranchName'
func (*GitLister_GetBranchName_Call) Return ¶ added in v0.17.2
func (_c *GitLister_GetBranchName_Call) Return(s string, err error) *GitLister_GetBranchName_Call
func (*GitLister_GetBranchName_Call) Run ¶ added in v0.17.2
func (_c *GitLister_GetBranchName_Call) Run(run func(path string)) *GitLister_GetBranchName_Call
func (*GitLister_GetBranchName_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitLister_GetBranchName_Call) RunAndReturn(run func(path string) (string, error)) *GitLister_GetBranchName_Call
type GitLister_GetDefaultBranchName_Call ¶ added in v0.17.2
GitLister_GetDefaultBranchName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDefaultBranchName'
func (*GitLister_GetDefaultBranchName_Call) Return ¶ added in v0.17.2
func (_c *GitLister_GetDefaultBranchName_Call) Return(s string, err error) *GitLister_GetDefaultBranchName_Call
func (*GitLister_GetDefaultBranchName_Call) Run ¶ added in v0.17.2
func (_c *GitLister_GetDefaultBranchName_Call) Run(run func(path string)) *GitLister_GetDefaultBranchName_Call
func (*GitLister_GetDefaultBranchName_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitLister_GetDefaultBranchName_Call) RunAndReturn(run func(path string) (string, error)) *GitLister_GetDefaultBranchName_Call
type GitLister_GetTags_Call ¶ added in v0.17.2
GitLister_GetTags_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTags'
func (*GitLister_GetTags_Call) Return ¶ added in v0.17.2
func (_c *GitLister_GetTags_Call) Return(strings []string, err error) *GitLister_GetTags_Call
func (*GitLister_GetTags_Call) Run ¶ added in v0.17.2
func (_c *GitLister_GetTags_Call) Run(run func(path string)) *GitLister_GetTags_Call
func (*GitLister_GetTags_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitLister_GetTags_Call) RunAndReturn(run func(path string) ([]string, error)) *GitLister_GetTags_Call
type GitLister_GitCommitCount_Call ¶ added in v0.17.2
GitLister_GitCommitCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GitCommitCount'
func (*GitLister_GitCommitCount_Call) Return ¶ added in v0.17.2
func (_c *GitLister_GitCommitCount_Call) Return(n int, err error) *GitLister_GitCommitCount_Call
func (*GitLister_GitCommitCount_Call) Run ¶ added in v0.17.2
func (_c *GitLister_GitCommitCount_Call) Run(run func(path string, tag *string)) *GitLister_GitCommitCount_Call
func (*GitLister_GitCommitCount_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitLister_GitCommitCount_Call) RunAndReturn(run func(path string, tag *string) (int, error)) *GitLister_GitCommitCount_Call
type GitLister_MarkAllPathsAsSafe_Call ¶ added in v0.17.2
GitLister_MarkAllPathsAsSafe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarkAllPathsAsSafe'
func (*GitLister_MarkAllPathsAsSafe_Call) Return ¶ added in v0.17.2
func (_c *GitLister_MarkAllPathsAsSafe_Call) Return(err error) *GitLister_MarkAllPathsAsSafe_Call
func (*GitLister_MarkAllPathsAsSafe_Call) Run ¶ added in v0.17.2
func (_c *GitLister_MarkAllPathsAsSafe_Call) Run(run func()) *GitLister_MarkAllPathsAsSafe_Call
func (*GitLister_MarkAllPathsAsSafe_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitLister_MarkAllPathsAsSafe_Call) RunAndReturn(run func() error) *GitLister_MarkAllPathsAsSafe_Call
type GithubAppInstallationRepository ¶ added in v0.17.2
GithubAppInstallationRepository is an autogenerated mock type for the GithubAppInstallationRepository type
func NewGithubAppInstallationRepository ¶ added in v0.17.2
func NewGithubAppInstallationRepository(t interface { mock.TestingT Cleanup(func()) }) *GithubAppInstallationRepository
NewGithubAppInstallationRepository creates a new instance of GithubAppInstallationRepository. 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 (*GithubAppInstallationRepository) Delete ¶ added in v0.17.2
func (_mock *GithubAppInstallationRepository) Delete(tx core.DB, installationID int) error
Delete provides a mock function for the type GithubAppInstallationRepository
func (*GithubAppInstallationRepository) EXPECT ¶ added in v0.17.2
func (_m *GithubAppInstallationRepository) EXPECT() *GithubAppInstallationRepository_Expecter
func (*GithubAppInstallationRepository) FindByOrganizationID ¶ added in v0.17.2
func (_mock *GithubAppInstallationRepository) FindByOrganizationID(orgID uuid.UUID) ([]models.GithubAppInstallation, error)
FindByOrganizationID provides a mock function for the type GithubAppInstallationRepository
func (*GithubAppInstallationRepository) Read ¶ added in v0.17.2
func (_mock *GithubAppInstallationRepository) Read(installationID int) (models.GithubAppInstallation, error)
Read provides a mock function for the type GithubAppInstallationRepository
func (*GithubAppInstallationRepository) Save ¶ added in v0.17.2
func (_mock *GithubAppInstallationRepository) Save(tx core.DB, model *models.GithubAppInstallation) error
Save provides a mock function for the type GithubAppInstallationRepository
type GithubAppInstallationRepository_Delete_Call ¶ added in v0.17.2
GithubAppInstallationRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*GithubAppInstallationRepository_Delete_Call) Return ¶ added in v0.17.2
func (_c *GithubAppInstallationRepository_Delete_Call) Return(err error) *GithubAppInstallationRepository_Delete_Call
func (*GithubAppInstallationRepository_Delete_Call) Run ¶ added in v0.17.2
func (_c *GithubAppInstallationRepository_Delete_Call) Run(run func(tx core.DB, installationID int)) *GithubAppInstallationRepository_Delete_Call
func (*GithubAppInstallationRepository_Delete_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GithubAppInstallationRepository_Delete_Call) RunAndReturn(run func(tx core.DB, installationID int) error) *GithubAppInstallationRepository_Delete_Call
type GithubAppInstallationRepository_Expecter ¶ added in v0.17.2
type GithubAppInstallationRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*GithubAppInstallationRepository_Expecter) Delete ¶ added in v0.17.2
func (_e *GithubAppInstallationRepository_Expecter) Delete(tx interface{}, installationID interface{}) *GithubAppInstallationRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx core.DB
- installationID int
func (*GithubAppInstallationRepository_Expecter) FindByOrganizationID ¶ added in v0.17.2
func (_e *GithubAppInstallationRepository_Expecter) FindByOrganizationID(orgID interface{}) *GithubAppInstallationRepository_FindByOrganizationID_Call
FindByOrganizationID is a helper method to define mock.On call
- orgID uuid.UUID
func (*GithubAppInstallationRepository_Expecter) Read ¶ added in v0.17.2
func (_e *GithubAppInstallationRepository_Expecter) Read(installationID interface{}) *GithubAppInstallationRepository_Read_Call
Read is a helper method to define mock.On call
- installationID int
func (*GithubAppInstallationRepository_Expecter) Save ¶ added in v0.17.2
func (_e *GithubAppInstallationRepository_Expecter) Save(tx interface{}, model interface{}) *GithubAppInstallationRepository_Save_Call
Save is a helper method to define mock.On call
- tx core.DB
- model *models.GithubAppInstallation
type GithubAppInstallationRepository_FindByOrganizationID_Call ¶ added in v0.17.2
GithubAppInstallationRepository_FindByOrganizationID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByOrganizationID'
func (*GithubAppInstallationRepository_FindByOrganizationID_Call) Return ¶ added in v0.17.2
func (_c *GithubAppInstallationRepository_FindByOrganizationID_Call) Return(githubAppInstallations []models.GithubAppInstallation, err error) *GithubAppInstallationRepository_FindByOrganizationID_Call
func (*GithubAppInstallationRepository_FindByOrganizationID_Call) Run ¶ added in v0.17.2
func (_c *GithubAppInstallationRepository_FindByOrganizationID_Call) Run(run func(orgID uuid.UUID)) *GithubAppInstallationRepository_FindByOrganizationID_Call
func (*GithubAppInstallationRepository_FindByOrganizationID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GithubAppInstallationRepository_FindByOrganizationID_Call) RunAndReturn(run func(orgID uuid.UUID) ([]models.GithubAppInstallation, error)) *GithubAppInstallationRepository_FindByOrganizationID_Call
type GithubAppInstallationRepository_Read_Call ¶ added in v0.17.2
GithubAppInstallationRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*GithubAppInstallationRepository_Read_Call) Return ¶ added in v0.17.2
func (_c *GithubAppInstallationRepository_Read_Call) Return(githubAppInstallation models.GithubAppInstallation, err error) *GithubAppInstallationRepository_Read_Call
func (*GithubAppInstallationRepository_Read_Call) Run ¶ added in v0.17.2
func (_c *GithubAppInstallationRepository_Read_Call) Run(run func(installationID int)) *GithubAppInstallationRepository_Read_Call
func (*GithubAppInstallationRepository_Read_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GithubAppInstallationRepository_Read_Call) RunAndReturn(run func(installationID int) (models.GithubAppInstallation, error)) *GithubAppInstallationRepository_Read_Call
type GithubAppInstallationRepository_Save_Call ¶ added in v0.17.2
GithubAppInstallationRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*GithubAppInstallationRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *GithubAppInstallationRepository_Save_Call) Return(err error) *GithubAppInstallationRepository_Save_Call
func (*GithubAppInstallationRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *GithubAppInstallationRepository_Save_Call) Run(run func(tx core.DB, model *models.GithubAppInstallation)) *GithubAppInstallationRepository_Save_Call
func (*GithubAppInstallationRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GithubAppInstallationRepository_Save_Call) RunAndReturn(run func(tx core.DB, model *models.GithubAppInstallation) error) *GithubAppInstallationRepository_Save_Call
type GithubClientFacade ¶ added in v0.17.2
GithubClientFacade is an autogenerated mock type for the githubClientFacade type
func NewGithubClientFacade ¶ added in v0.17.2
func NewGithubClientFacade(t interface { mock.TestingT Cleanup(func()) }) *GithubClientFacade
NewGithubClientFacade creates a new instance of GithubClientFacade. 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 (*GithubClientFacade) CreateIssue ¶ added in v0.17.2
func (_mock *GithubClientFacade) CreateIssue(ctx context.Context, owner string, repo string, issue *github.IssueRequest) (*github.Issue, *github.Response, error)
CreateIssue provides a mock function for the type GithubClientFacade
func (*GithubClientFacade) CreateIssueComment ¶ added in v0.17.2
func (_mock *GithubClientFacade) CreateIssueComment(ctx context.Context, owner string, repo string, number int, comment *github.IssueComment) (*github.IssueComment, *github.Response, error)
CreateIssueComment provides a mock function for the type GithubClientFacade
func (*GithubClientFacade) EXPECT ¶ added in v0.17.2
func (_m *GithubClientFacade) EXPECT() *GithubClientFacade_Expecter
func (*GithubClientFacade) EditIssue ¶ added in v0.17.2
func (_mock *GithubClientFacade) EditIssue(ctx context.Context, owner string, repo string, number int, issue *github.IssueRequest) (*github.Issue, *github.Response, error)
EditIssue provides a mock function for the type GithubClientFacade
func (*GithubClientFacade) EditIssueLabel ¶ added in v0.17.2
func (_mock *GithubClientFacade) EditIssueLabel(ctx context.Context, owner string, repo string, name string, label *github.Label) (*github.Label, *github.Response, error)
EditIssueLabel provides a mock function for the type GithubClientFacade
func (*GithubClientFacade) IsCollaboratorInRepository ¶ added in v0.17.2
func (_mock *GithubClientFacade) IsCollaboratorInRepository(ctx context.Context, owner string, repoID string, userID int64, opts *github.ListCollaboratorsOptions) (bool, error)
IsCollaboratorInRepository provides a mock function for the type GithubClientFacade
type GithubClientFacade_CreateIssueComment_Call ¶ added in v0.17.2
GithubClientFacade_CreateIssueComment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIssueComment'
func (*GithubClientFacade_CreateIssueComment_Call) Return ¶ added in v0.17.2
func (_c *GithubClientFacade_CreateIssueComment_Call) Return(issueComment *github.IssueComment, response *github.Response, err error) *GithubClientFacade_CreateIssueComment_Call
func (*GithubClientFacade_CreateIssueComment_Call) Run ¶ added in v0.17.2
func (_c *GithubClientFacade_CreateIssueComment_Call) Run(run func(ctx context.Context, owner string, repo string, number int, comment *github.IssueComment)) *GithubClientFacade_CreateIssueComment_Call
func (*GithubClientFacade_CreateIssueComment_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GithubClientFacade_CreateIssueComment_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, number int, comment *github.IssueComment) (*github.IssueComment, *github.Response, error)) *GithubClientFacade_CreateIssueComment_Call
type GithubClientFacade_CreateIssue_Call ¶ added in v0.17.2
GithubClientFacade_CreateIssue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIssue'
func (*GithubClientFacade_CreateIssue_Call) Return ¶ added in v0.17.2
func (_c *GithubClientFacade_CreateIssue_Call) Return(issue1 *github.Issue, response *github.Response, err error) *GithubClientFacade_CreateIssue_Call
func (*GithubClientFacade_CreateIssue_Call) Run ¶ added in v0.17.2
func (_c *GithubClientFacade_CreateIssue_Call) Run(run func(ctx context.Context, owner string, repo string, issue *github.IssueRequest)) *GithubClientFacade_CreateIssue_Call
func (*GithubClientFacade_CreateIssue_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GithubClientFacade_CreateIssue_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, issue *github.IssueRequest) (*github.Issue, *github.Response, error)) *GithubClientFacade_CreateIssue_Call
type GithubClientFacade_EditIssueLabel_Call ¶ added in v0.17.2
GithubClientFacade_EditIssueLabel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EditIssueLabel'
func (*GithubClientFacade_EditIssueLabel_Call) Return ¶ added in v0.17.2
func (_c *GithubClientFacade_EditIssueLabel_Call) Return(label1 *github.Label, response *github.Response, err error) *GithubClientFacade_EditIssueLabel_Call
func (*GithubClientFacade_EditIssueLabel_Call) Run ¶ added in v0.17.2
func (_c *GithubClientFacade_EditIssueLabel_Call) Run(run func(ctx context.Context, owner string, repo string, name string, label *github.Label)) *GithubClientFacade_EditIssueLabel_Call
func (*GithubClientFacade_EditIssueLabel_Call) RunAndReturn ¶ added in v0.17.2
type GithubClientFacade_EditIssue_Call ¶ added in v0.17.2
GithubClientFacade_EditIssue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EditIssue'
func (*GithubClientFacade_EditIssue_Call) Return ¶ added in v0.17.2
func (_c *GithubClientFacade_EditIssue_Call) Return(issue1 *github.Issue, response *github.Response, err error) *GithubClientFacade_EditIssue_Call
func (*GithubClientFacade_EditIssue_Call) Run ¶ added in v0.17.2
func (_c *GithubClientFacade_EditIssue_Call) Run(run func(ctx context.Context, owner string, repo string, number int, issue *github.IssueRequest)) *GithubClientFacade_EditIssue_Call
func (*GithubClientFacade_EditIssue_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GithubClientFacade_EditIssue_Call) RunAndReturn(run func(ctx context.Context, owner string, repo string, number int, issue *github.IssueRequest) (*github.Issue, *github.Response, error)) *GithubClientFacade_EditIssue_Call
type GithubClientFacade_Expecter ¶ added in v0.17.2
type GithubClientFacade_Expecter struct {
// contains filtered or unexported fields
}
func (*GithubClientFacade_Expecter) CreateIssue ¶ added in v0.17.2
func (_e *GithubClientFacade_Expecter) CreateIssue(ctx interface{}, owner interface{}, repo interface{}, issue interface{}) *GithubClientFacade_CreateIssue_Call
CreateIssue is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- issue *github.IssueRequest
func (*GithubClientFacade_Expecter) CreateIssueComment ¶ added in v0.17.2
func (_e *GithubClientFacade_Expecter) CreateIssueComment(ctx interface{}, owner interface{}, repo interface{}, number interface{}, comment interface{}) *GithubClientFacade_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 (*GithubClientFacade_Expecter) EditIssue ¶ added in v0.17.2
func (_e *GithubClientFacade_Expecter) EditIssue(ctx interface{}, owner interface{}, repo interface{}, number interface{}, issue interface{}) *GithubClientFacade_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 (*GithubClientFacade_Expecter) EditIssueLabel ¶ added in v0.17.2
func (_e *GithubClientFacade_Expecter) EditIssueLabel(ctx interface{}, owner interface{}, repo interface{}, name interface{}, label interface{}) *GithubClientFacade_EditIssueLabel_Call
EditIssueLabel is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- name string
- label *github.Label
func (*GithubClientFacade_Expecter) IsCollaboratorInRepository ¶ added in v0.17.2
func (_e *GithubClientFacade_Expecter) IsCollaboratorInRepository(ctx interface{}, owner interface{}, repoID interface{}, userID interface{}, opts interface{}) *GithubClientFacade_IsCollaboratorInRepository_Call
IsCollaboratorInRepository is a helper method to define mock.On call
- ctx context.Context
- owner string
- repoID string
- userID int64
- opts *github.ListCollaboratorsOptions
type GithubClientFacade_IsCollaboratorInRepository_Call ¶ added in v0.17.2
GithubClientFacade_IsCollaboratorInRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsCollaboratorInRepository'
func (*GithubClientFacade_IsCollaboratorInRepository_Call) Return ¶ added in v0.17.2
func (_c *GithubClientFacade_IsCollaboratorInRepository_Call) Return(b bool, err error) *GithubClientFacade_IsCollaboratorInRepository_Call
func (*GithubClientFacade_IsCollaboratorInRepository_Call) Run ¶ added in v0.17.2
func (_c *GithubClientFacade_IsCollaboratorInRepository_Call) Run(run func(ctx context.Context, owner string, repoID string, userID int64, opts *github.ListCollaboratorsOptions)) *GithubClientFacade_IsCollaboratorInRepository_Call
func (*GithubClientFacade_IsCollaboratorInRepository_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GithubClientFacade_IsCollaboratorInRepository_Call) RunAndReturn(run func(ctx context.Context, owner string, repoID string, userID int64, opts *github.ListCollaboratorsOptions) (bool, error)) *GithubClientFacade_IsCollaboratorInRepository_Call
type GitlabClientFacade ¶ added in v0.17.2
GitlabClientFacade is an autogenerated mock type for the GitlabClientFacade type
func NewGitlabClientFacade ¶ added in v0.17.2
func NewGitlabClientFacade(t interface { mock.TestingT Cleanup(func()) }) *GitlabClientFacade
NewGitlabClientFacade creates a new instance of GitlabClientFacade. 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 (*GitlabClientFacade) AddProjectHook ¶ added in v0.17.2
func (_mock *GitlabClientFacade) AddProjectHook(ctx context.Context, projectID int, opt *gitlab.AddProjectHookOptions) (*gitlab.ProjectHook, *gitlab.Response, error)
AddProjectHook provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) CreateIssue ¶ added in v0.17.2
func (_mock *GitlabClientFacade) CreateIssue(ctx context.Context, pid int, opt *gitlab.CreateIssueOptions) (*gitlab.Issue, *gitlab.Response, error)
CreateIssue provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) CreateIssueComment ¶ added in v0.17.2
func (_mock *GitlabClientFacade) CreateIssueComment(ctx context.Context, pid int, issue int, opt *gitlab.CreateIssueNoteOptions) (*gitlab.Note, *gitlab.Response, error)
CreateIssueComment provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) CreateMergeRequest ¶ added in v0.17.2
func (_mock *GitlabClientFacade) CreateMergeRequest(ctx context.Context, project string, opt *gitlab.CreateMergeRequestOptions) (*gitlab.MergeRequest, *gitlab.Response, error)
CreateMergeRequest provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) CreateNewLabel ¶ added in v0.17.3
func (_mock *GitlabClientFacade) CreateNewLabel(ctx context.Context, projectID int, label *gitlab.CreateLabelOptions) (*gitlab.Label, *gitlab.Response, error)
CreateNewLabel provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) CreateVariable ¶ added in v0.17.2
func (_mock *GitlabClientFacade) CreateVariable(ctx context.Context, projectID int, opt *gitlab.CreateProjectVariableOptions) (*gitlab.ProjectVariable, *gitlab.Response, error)
CreateVariable provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) DeleteProjectHook ¶ added in v0.17.2
func (_mock *GitlabClientFacade) DeleteProjectHook(ctx context.Context, projectID int, hookID int) (*gitlab.Response, error)
DeleteProjectHook provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) EXPECT ¶ added in v0.17.2
func (_m *GitlabClientFacade) EXPECT() *GitlabClientFacade_Expecter
func (*GitlabClientFacade) EditIssue ¶ added in v0.17.2
func (_mock *GitlabClientFacade) EditIssue(ctx context.Context, pid int, issue int, opt *gitlab.UpdateIssueOptions) (*gitlab.Issue, *gitlab.Response, error)
EditIssue provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) EditIssueLabel ¶ added in v0.17.2
func (_mock *GitlabClientFacade) EditIssueLabel(ctx context.Context, pid int, issue int, labels []*gitlab.CreateLabelOptions) (*gitlab.Response, error)
EditIssueLabel provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) FetchGroupAvatarBase64 ¶ added in v0.17.2
func (_mock *GitlabClientFacade) FetchGroupAvatarBase64(groupID int) (string, error)
FetchGroupAvatarBase64 provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) FetchProjectAvatarBase64 ¶ added in v0.17.2
func (_mock *GitlabClientFacade) FetchProjectAvatarBase64(projectID int) (string, error)
FetchProjectAvatarBase64 provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) GetClientID ¶ added in v0.17.2
func (_mock *GitlabClientFacade) GetClientID() string
GetClientID provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) GetGroup ¶ added in v0.17.2
func (_mock *GitlabClientFacade) GetGroup(ctx context.Context, groupID int) (*gitlab.Group, *gitlab.Response, error)
GetGroup provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) GetMemberInGroup ¶ added in v0.17.2
func (_mock *GitlabClientFacade) GetMemberInGroup(ctx context.Context, userID int, groupID int) (*gitlab.GroupMember, *gitlab.Response, error)
GetMemberInGroup provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) GetMemberInProject ¶ added in v0.17.2
func (_mock *GitlabClientFacade) GetMemberInProject(ctx context.Context, userID int, projectID int) (*gitlab.ProjectMember, *gitlab.Response, error)
GetMemberInProject provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) GetProject ¶ added in v0.17.2
func (_mock *GitlabClientFacade) GetProject(ctx context.Context, projectID int) (*gitlab.Project, *gitlab.Response, error)
GetProject provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) GetProjectIssues ¶ added in v0.17.3
func (_mock *GitlabClientFacade) GetProjectIssues(projectID int, opt *gitlab.ListProjectIssuesOptions) ([]*gitlab.Issue, *gitlab.Response, error)
GetProjectIssues provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) GetVersion ¶ added in v0.17.2
func (_mock *GitlabClientFacade) GetVersion(ctx context.Context) (*gitlab.Version, *gitlab.Response, error)
GetVersion provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) InviteReporter ¶ added in v0.17.2
func (_mock *GitlabClientFacade) InviteReporter(ctx context.Context, projectID int, userID int) (*gitlab.ProjectMember, *gitlab.Response, error)
InviteReporter provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) IsProjectMember ¶ added in v0.17.2
func (_mock *GitlabClientFacade) IsProjectMember(ctx context.Context, projectID int, userID int, options *gitlab.ListProjectMembersOptions) (bool, error)
IsProjectMember provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) ListGroups ¶ added in v0.17.2
func (_mock *GitlabClientFacade) ListGroups(ctx context.Context, opt *gitlab.ListGroupsOptions) ([]*gitlab.Group, *gitlab.Response, error)
ListGroups provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) ListLabels ¶ added in v0.17.3
func (_mock *GitlabClientFacade) ListLabels(ctx context.Context, projectID int, opt *gitlab.ListLabelsOptions) ([]*gitlab.Label, *gitlab.Response, error)
ListLabels provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) ListProjectHooks ¶ added in v0.17.2
func (_mock *GitlabClientFacade) ListProjectHooks(ctx context.Context, projectID int, options *gitlab.ListProjectHooksOptions) ([]*gitlab.ProjectHook, *gitlab.Response, error)
ListProjectHooks provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) ListProjects ¶ added in v0.17.2
func (_mock *GitlabClientFacade) ListProjects(ctx context.Context, opt *gitlab.ListProjectsOptions) ([]*gitlab.Project, *gitlab.Response, error)
ListProjects provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) ListProjectsInGroup ¶ added in v0.17.2
func (_mock *GitlabClientFacade) ListProjectsInGroup(ctx context.Context, groupID int, opt *gitlab.ListGroupProjectsOptions) ([]*gitlab.Project, *gitlab.Response, error)
ListProjectsInGroup provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) ListVariables ¶ added in v0.17.2
func (_mock *GitlabClientFacade) ListVariables(ctx context.Context, projectID int, options *gitlab.ListProjectVariablesOptions) ([]*gitlab.ProjectVariable, *gitlab.Response, error)
ListVariables provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) RemoveVariable ¶ added in v0.17.2
func (_mock *GitlabClientFacade) RemoveVariable(ctx context.Context, projectID int, key string) (*gitlab.Response, error)
RemoveVariable provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) UpdateLabel ¶ added in v0.17.3
func (_mock *GitlabClientFacade) UpdateLabel(ctx context.Context, projectID int, labelID int, opt *gitlab.UpdateLabelOptions) (*gitlab.Label, *gitlab.Response, error)
UpdateLabel provides a mock function for the type GitlabClientFacade
func (*GitlabClientFacade) UpdateVariable ¶ added in v0.17.2
func (_mock *GitlabClientFacade) UpdateVariable(ctx context.Context, projectID int, key string, opt *gitlab.UpdateProjectVariableOptions) (*gitlab.ProjectVariable, *gitlab.Response, error)
UpdateVariable provides a mock function for the type GitlabClientFacade
type GitlabClientFacade_AddProjectHook_Call ¶ added in v0.17.2
GitlabClientFacade_AddProjectHook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddProjectHook'
func (*GitlabClientFacade_AddProjectHook_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_AddProjectHook_Call) Return(projectHook *gitlab.ProjectHook, response *gitlab.Response, err error) *GitlabClientFacade_AddProjectHook_Call
func (*GitlabClientFacade_AddProjectHook_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_AddProjectHook_Call) Run(run func(ctx context.Context, projectID int, opt *gitlab.AddProjectHookOptions)) *GitlabClientFacade_AddProjectHook_Call
func (*GitlabClientFacade_AddProjectHook_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_AddProjectHook_Call) RunAndReturn(run func(ctx context.Context, projectID int, opt *gitlab.AddProjectHookOptions) (*gitlab.ProjectHook, *gitlab.Response, error)) *GitlabClientFacade_AddProjectHook_Call
type GitlabClientFacade_CreateIssueComment_Call ¶ added in v0.17.2
GitlabClientFacade_CreateIssueComment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIssueComment'
func (*GitlabClientFacade_CreateIssueComment_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_CreateIssueComment_Call) Return(note *gitlab.Note, response *gitlab.Response, err error) *GitlabClientFacade_CreateIssueComment_Call
func (*GitlabClientFacade_CreateIssueComment_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_CreateIssueComment_Call) Run(run func(ctx context.Context, pid int, issue int, opt *gitlab.CreateIssueNoteOptions)) *GitlabClientFacade_CreateIssueComment_Call
func (*GitlabClientFacade_CreateIssueComment_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_CreateIssueComment_Call) RunAndReturn(run func(ctx context.Context, pid int, issue int, opt *gitlab.CreateIssueNoteOptions) (*gitlab.Note, *gitlab.Response, error)) *GitlabClientFacade_CreateIssueComment_Call
type GitlabClientFacade_CreateIssue_Call ¶ added in v0.17.2
GitlabClientFacade_CreateIssue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIssue'
func (*GitlabClientFacade_CreateIssue_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_CreateIssue_Call) Return(issue *gitlab.Issue, response *gitlab.Response, err error) *GitlabClientFacade_CreateIssue_Call
func (*GitlabClientFacade_CreateIssue_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_CreateIssue_Call) Run(run func(ctx context.Context, pid int, opt *gitlab.CreateIssueOptions)) *GitlabClientFacade_CreateIssue_Call
func (*GitlabClientFacade_CreateIssue_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_CreateIssue_Call) RunAndReturn(run func(ctx context.Context, pid int, opt *gitlab.CreateIssueOptions) (*gitlab.Issue, *gitlab.Response, error)) *GitlabClientFacade_CreateIssue_Call
type GitlabClientFacade_CreateMergeRequest_Call ¶ added in v0.17.2
GitlabClientFacade_CreateMergeRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateMergeRequest'
func (*GitlabClientFacade_CreateMergeRequest_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_CreateMergeRequest_Call) Return(mergeRequest *gitlab.MergeRequest, response *gitlab.Response, err error) *GitlabClientFacade_CreateMergeRequest_Call
func (*GitlabClientFacade_CreateMergeRequest_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_CreateMergeRequest_Call) Run(run func(ctx context.Context, project string, opt *gitlab.CreateMergeRequestOptions)) *GitlabClientFacade_CreateMergeRequest_Call
func (*GitlabClientFacade_CreateMergeRequest_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_CreateMergeRequest_Call) RunAndReturn(run func(ctx context.Context, project string, opt *gitlab.CreateMergeRequestOptions) (*gitlab.MergeRequest, *gitlab.Response, error)) *GitlabClientFacade_CreateMergeRequest_Call
type GitlabClientFacade_CreateNewLabel_Call ¶ added in v0.17.3
GitlabClientFacade_CreateNewLabel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateNewLabel'
func (*GitlabClientFacade_CreateNewLabel_Call) Return ¶ added in v0.17.3
func (_c *GitlabClientFacade_CreateNewLabel_Call) Return(label1 *gitlab.Label, response *gitlab.Response, err error) *GitlabClientFacade_CreateNewLabel_Call
func (*GitlabClientFacade_CreateNewLabel_Call) Run ¶ added in v0.17.3
func (_c *GitlabClientFacade_CreateNewLabel_Call) Run(run func(ctx context.Context, projectID int, label *gitlab.CreateLabelOptions)) *GitlabClientFacade_CreateNewLabel_Call
func (*GitlabClientFacade_CreateNewLabel_Call) RunAndReturn ¶ added in v0.17.3
func (_c *GitlabClientFacade_CreateNewLabel_Call) RunAndReturn(run func(ctx context.Context, projectID int, label *gitlab.CreateLabelOptions) (*gitlab.Label, *gitlab.Response, error)) *GitlabClientFacade_CreateNewLabel_Call
type GitlabClientFacade_CreateVariable_Call ¶ added in v0.17.2
GitlabClientFacade_CreateVariable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateVariable'
func (*GitlabClientFacade_CreateVariable_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_CreateVariable_Call) Return(projectVariable *gitlab.ProjectVariable, response *gitlab.Response, err error) *GitlabClientFacade_CreateVariable_Call
func (*GitlabClientFacade_CreateVariable_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_CreateVariable_Call) Run(run func(ctx context.Context, projectID int, opt *gitlab.CreateProjectVariableOptions)) *GitlabClientFacade_CreateVariable_Call
func (*GitlabClientFacade_CreateVariable_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_CreateVariable_Call) RunAndReturn(run func(ctx context.Context, projectID int, opt *gitlab.CreateProjectVariableOptions) (*gitlab.ProjectVariable, *gitlab.Response, error)) *GitlabClientFacade_CreateVariable_Call
type GitlabClientFacade_DeleteProjectHook_Call ¶ added in v0.17.2
GitlabClientFacade_DeleteProjectHook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteProjectHook'
func (*GitlabClientFacade_DeleteProjectHook_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_DeleteProjectHook_Call) Return(response *gitlab.Response, err error) *GitlabClientFacade_DeleteProjectHook_Call
func (*GitlabClientFacade_DeleteProjectHook_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_DeleteProjectHook_Call) Run(run func(ctx context.Context, projectID int, hookID int)) *GitlabClientFacade_DeleteProjectHook_Call
func (*GitlabClientFacade_DeleteProjectHook_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_DeleteProjectHook_Call) RunAndReturn(run func(ctx context.Context, projectID int, hookID int) (*gitlab.Response, error)) *GitlabClientFacade_DeleteProjectHook_Call
type GitlabClientFacade_EditIssueLabel_Call ¶ added in v0.17.2
GitlabClientFacade_EditIssueLabel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EditIssueLabel'
func (*GitlabClientFacade_EditIssueLabel_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_EditIssueLabel_Call) Return(response *gitlab.Response, err error) *GitlabClientFacade_EditIssueLabel_Call
func (*GitlabClientFacade_EditIssueLabel_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_EditIssueLabel_Call) Run(run func(ctx context.Context, pid int, issue int, labels []*gitlab.CreateLabelOptions)) *GitlabClientFacade_EditIssueLabel_Call
func (*GitlabClientFacade_EditIssueLabel_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_EditIssueLabel_Call) RunAndReturn(run func(ctx context.Context, pid int, issue int, labels []*gitlab.CreateLabelOptions) (*gitlab.Response, error)) *GitlabClientFacade_EditIssueLabel_Call
type GitlabClientFacade_EditIssue_Call ¶ added in v0.17.2
GitlabClientFacade_EditIssue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EditIssue'
func (*GitlabClientFacade_EditIssue_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_EditIssue_Call) Return(issue1 *gitlab.Issue, response *gitlab.Response, err error) *GitlabClientFacade_EditIssue_Call
func (*GitlabClientFacade_EditIssue_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_EditIssue_Call) Run(run func(ctx context.Context, pid int, issue int, opt *gitlab.UpdateIssueOptions)) *GitlabClientFacade_EditIssue_Call
func (*GitlabClientFacade_EditIssue_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_EditIssue_Call) RunAndReturn(run func(ctx context.Context, pid int, issue int, opt *gitlab.UpdateIssueOptions) (*gitlab.Issue, *gitlab.Response, error)) *GitlabClientFacade_EditIssue_Call
type GitlabClientFacade_Expecter ¶ added in v0.17.2
type GitlabClientFacade_Expecter struct {
// contains filtered or unexported fields
}
func (*GitlabClientFacade_Expecter) AddProjectHook ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) AddProjectHook(ctx interface{}, projectID interface{}, opt interface{}) *GitlabClientFacade_AddProjectHook_Call
AddProjectHook is a helper method to define mock.On call
- ctx context.Context
- projectID int
- opt *gitlab.AddProjectHookOptions
func (*GitlabClientFacade_Expecter) CreateIssue ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) CreateIssue(ctx interface{}, pid interface{}, opt interface{}) *GitlabClientFacade_CreateIssue_Call
CreateIssue is a helper method to define mock.On call
- ctx context.Context
- pid int
- opt *gitlab.CreateIssueOptions
func (*GitlabClientFacade_Expecter) CreateIssueComment ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) CreateIssueComment(ctx interface{}, pid interface{}, issue interface{}, opt interface{}) *GitlabClientFacade_CreateIssueComment_Call
CreateIssueComment is a helper method to define mock.On call
- ctx context.Context
- pid int
- issue int
- opt *gitlab.CreateIssueNoteOptions
func (*GitlabClientFacade_Expecter) CreateMergeRequest ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) CreateMergeRequest(ctx interface{}, project interface{}, opt interface{}) *GitlabClientFacade_CreateMergeRequest_Call
CreateMergeRequest is a helper method to define mock.On call
- ctx context.Context
- project string
- opt *gitlab.CreateMergeRequestOptions
func (*GitlabClientFacade_Expecter) CreateNewLabel ¶ added in v0.17.3
func (_e *GitlabClientFacade_Expecter) CreateNewLabel(ctx interface{}, projectID interface{}, label interface{}) *GitlabClientFacade_CreateNewLabel_Call
CreateNewLabel is a helper method to define mock.On call
- ctx context.Context
- projectID int
- label *gitlab.CreateLabelOptions
func (*GitlabClientFacade_Expecter) CreateVariable ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) CreateVariable(ctx interface{}, projectID interface{}, opt interface{}) *GitlabClientFacade_CreateVariable_Call
CreateVariable is a helper method to define mock.On call
- ctx context.Context
- projectID int
- opt *gitlab.CreateProjectVariableOptions
func (*GitlabClientFacade_Expecter) DeleteProjectHook ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) DeleteProjectHook(ctx interface{}, projectID interface{}, hookID interface{}) *GitlabClientFacade_DeleteProjectHook_Call
DeleteProjectHook is a helper method to define mock.On call
- ctx context.Context
- projectID int
- hookID int
func (*GitlabClientFacade_Expecter) EditIssue ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) EditIssue(ctx interface{}, pid interface{}, issue interface{}, opt interface{}) *GitlabClientFacade_EditIssue_Call
EditIssue is a helper method to define mock.On call
- ctx context.Context
- pid int
- issue int
- opt *gitlab.UpdateIssueOptions
func (*GitlabClientFacade_Expecter) EditIssueLabel ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) EditIssueLabel(ctx interface{}, pid interface{}, issue interface{}, labels interface{}) *GitlabClientFacade_EditIssueLabel_Call
EditIssueLabel is a helper method to define mock.On call
- ctx context.Context
- pid int
- issue int
- labels []*gitlab.CreateLabelOptions
func (*GitlabClientFacade_Expecter) FetchGroupAvatarBase64 ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) FetchGroupAvatarBase64(groupID interface{}) *GitlabClientFacade_FetchGroupAvatarBase64_Call
FetchGroupAvatarBase64 is a helper method to define mock.On call
- groupID int
func (*GitlabClientFacade_Expecter) FetchProjectAvatarBase64 ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) FetchProjectAvatarBase64(projectID interface{}) *GitlabClientFacade_FetchProjectAvatarBase64_Call
FetchProjectAvatarBase64 is a helper method to define mock.On call
- projectID int
func (*GitlabClientFacade_Expecter) GetClientID ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) GetClientID() *GitlabClientFacade_GetClientID_Call
GetClientID is a helper method to define mock.On call
func (*GitlabClientFacade_Expecter) GetGroup ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) GetGroup(ctx interface{}, groupID interface{}) *GitlabClientFacade_GetGroup_Call
GetGroup is a helper method to define mock.On call
- ctx context.Context
- groupID int
func (*GitlabClientFacade_Expecter) GetMemberInGroup ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) GetMemberInGroup(ctx interface{}, userID interface{}, groupID interface{}) *GitlabClientFacade_GetMemberInGroup_Call
GetMemberInGroup is a helper method to define mock.On call
- ctx context.Context
- userID int
- groupID int
func (*GitlabClientFacade_Expecter) GetMemberInProject ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) GetMemberInProject(ctx interface{}, userID interface{}, projectID interface{}) *GitlabClientFacade_GetMemberInProject_Call
GetMemberInProject is a helper method to define mock.On call
- ctx context.Context
- userID int
- projectID int
func (*GitlabClientFacade_Expecter) GetProject ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) GetProject(ctx interface{}, projectID interface{}) *GitlabClientFacade_GetProject_Call
GetProject is a helper method to define mock.On call
- ctx context.Context
- projectID int
func (*GitlabClientFacade_Expecter) GetProjectIssues ¶ added in v0.17.3
func (_e *GitlabClientFacade_Expecter) GetProjectIssues(projectID interface{}, opt interface{}) *GitlabClientFacade_GetProjectIssues_Call
GetProjectIssues is a helper method to define mock.On call
- projectID int
- opt *gitlab.ListProjectIssuesOptions
func (*GitlabClientFacade_Expecter) GetVersion ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) GetVersion(ctx interface{}) *GitlabClientFacade_GetVersion_Call
GetVersion is a helper method to define mock.On call
- ctx context.Context
func (*GitlabClientFacade_Expecter) InviteReporter ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) InviteReporter(ctx interface{}, projectID interface{}, userID interface{}) *GitlabClientFacade_InviteReporter_Call
InviteReporter is a helper method to define mock.On call
- ctx context.Context
- projectID int
- userID int
func (*GitlabClientFacade_Expecter) IsProjectMember ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) IsProjectMember(ctx interface{}, projectID interface{}, userID interface{}, options interface{}) *GitlabClientFacade_IsProjectMember_Call
IsProjectMember is a helper method to define mock.On call
- ctx context.Context
- projectID int
- userID int
- options *gitlab.ListProjectMembersOptions
func (*GitlabClientFacade_Expecter) ListGroups ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) ListGroups(ctx interface{}, opt interface{}) *GitlabClientFacade_ListGroups_Call
ListGroups is a helper method to define mock.On call
- ctx context.Context
- opt *gitlab.ListGroupsOptions
func (*GitlabClientFacade_Expecter) ListLabels ¶ added in v0.17.3
func (_e *GitlabClientFacade_Expecter) ListLabels(ctx interface{}, projectID interface{}, opt interface{}) *GitlabClientFacade_ListLabels_Call
ListLabels is a helper method to define mock.On call
- ctx context.Context
- projectID int
- opt *gitlab.ListLabelsOptions
func (*GitlabClientFacade_Expecter) ListProjectHooks ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) ListProjectHooks(ctx interface{}, projectID interface{}, options interface{}) *GitlabClientFacade_ListProjectHooks_Call
ListProjectHooks is a helper method to define mock.On call
- ctx context.Context
- projectID int
- options *gitlab.ListProjectHooksOptions
func (*GitlabClientFacade_Expecter) ListProjects ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) ListProjects(ctx interface{}, opt interface{}) *GitlabClientFacade_ListProjects_Call
ListProjects is a helper method to define mock.On call
- ctx context.Context
- opt *gitlab.ListProjectsOptions
func (*GitlabClientFacade_Expecter) ListProjectsInGroup ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) ListProjectsInGroup(ctx interface{}, groupID interface{}, opt interface{}) *GitlabClientFacade_ListProjectsInGroup_Call
ListProjectsInGroup is a helper method to define mock.On call
- ctx context.Context
- groupID int
- opt *gitlab.ListGroupProjectsOptions
func (*GitlabClientFacade_Expecter) ListVariables ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) ListVariables(ctx interface{}, projectID interface{}, options interface{}) *GitlabClientFacade_ListVariables_Call
ListVariables is a helper method to define mock.On call
- ctx context.Context
- projectID int
- options *gitlab.ListProjectVariablesOptions
func (*GitlabClientFacade_Expecter) RemoveVariable ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) RemoveVariable(ctx interface{}, projectID interface{}, key interface{}) *GitlabClientFacade_RemoveVariable_Call
RemoveVariable is a helper method to define mock.On call
- ctx context.Context
- projectID int
- key string
func (*GitlabClientFacade_Expecter) UpdateLabel ¶ added in v0.17.3
func (_e *GitlabClientFacade_Expecter) UpdateLabel(ctx interface{}, projectID interface{}, labelID interface{}, opt interface{}) *GitlabClientFacade_UpdateLabel_Call
UpdateLabel is a helper method to define mock.On call
- ctx context.Context
- projectID int
- labelID int
- opt *gitlab.UpdateLabelOptions
func (*GitlabClientFacade_Expecter) UpdateVariable ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) UpdateVariable(ctx interface{}, projectID interface{}, key interface{}, opt interface{}) *GitlabClientFacade_UpdateVariable_Call
UpdateVariable is a helper method to define mock.On call
- ctx context.Context
- projectID int
- key string
- opt *gitlab.UpdateProjectVariableOptions
func (*GitlabClientFacade_Expecter) Whoami ¶ added in v0.17.2
func (_e *GitlabClientFacade_Expecter) Whoami(ctx interface{}) *GitlabClientFacade_Whoami_Call
Whoami is a helper method to define mock.On call
- ctx context.Context
type GitlabClientFacade_FetchGroupAvatarBase64_Call ¶ added in v0.17.2
GitlabClientFacade_FetchGroupAvatarBase64_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FetchGroupAvatarBase64'
func (*GitlabClientFacade_FetchGroupAvatarBase64_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_FetchGroupAvatarBase64_Call) Return(s string, err error) *GitlabClientFacade_FetchGroupAvatarBase64_Call
func (*GitlabClientFacade_FetchGroupAvatarBase64_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_FetchGroupAvatarBase64_Call) Run(run func(groupID int)) *GitlabClientFacade_FetchGroupAvatarBase64_Call
func (*GitlabClientFacade_FetchGroupAvatarBase64_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_FetchGroupAvatarBase64_Call) RunAndReturn(run func(groupID int) (string, error)) *GitlabClientFacade_FetchGroupAvatarBase64_Call
type GitlabClientFacade_FetchProjectAvatarBase64_Call ¶ added in v0.17.2
GitlabClientFacade_FetchProjectAvatarBase64_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FetchProjectAvatarBase64'
func (*GitlabClientFacade_FetchProjectAvatarBase64_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_FetchProjectAvatarBase64_Call) Return(s string, err error) *GitlabClientFacade_FetchProjectAvatarBase64_Call
func (*GitlabClientFacade_FetchProjectAvatarBase64_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_FetchProjectAvatarBase64_Call) Run(run func(projectID int)) *GitlabClientFacade_FetchProjectAvatarBase64_Call
func (*GitlabClientFacade_FetchProjectAvatarBase64_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_FetchProjectAvatarBase64_Call) RunAndReturn(run func(projectID int) (string, error)) *GitlabClientFacade_FetchProjectAvatarBase64_Call
type GitlabClientFacade_GetClientID_Call ¶ added in v0.17.2
GitlabClientFacade_GetClientID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClientID'
func (*GitlabClientFacade_GetClientID_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_GetClientID_Call) Return(s string) *GitlabClientFacade_GetClientID_Call
func (*GitlabClientFacade_GetClientID_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_GetClientID_Call) Run(run func()) *GitlabClientFacade_GetClientID_Call
func (*GitlabClientFacade_GetClientID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_GetClientID_Call) RunAndReturn(run func() string) *GitlabClientFacade_GetClientID_Call
type GitlabClientFacade_GetGroup_Call ¶ added in v0.17.2
GitlabClientFacade_GetGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetGroup'
func (*GitlabClientFacade_GetGroup_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_GetGroup_Call) Return(group *gitlab.Group, response *gitlab.Response, err error) *GitlabClientFacade_GetGroup_Call
func (*GitlabClientFacade_GetGroup_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_GetGroup_Call) Run(run func(ctx context.Context, groupID int)) *GitlabClientFacade_GetGroup_Call
func (*GitlabClientFacade_GetGroup_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_GetGroup_Call) RunAndReturn(run func(ctx context.Context, groupID int) (*gitlab.Group, *gitlab.Response, error)) *GitlabClientFacade_GetGroup_Call
type GitlabClientFacade_GetMemberInGroup_Call ¶ added in v0.17.2
GitlabClientFacade_GetMemberInGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMemberInGroup'
func (*GitlabClientFacade_GetMemberInGroup_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_GetMemberInGroup_Call) Return(groupMember *gitlab.GroupMember, response *gitlab.Response, err error) *GitlabClientFacade_GetMemberInGroup_Call
func (*GitlabClientFacade_GetMemberInGroup_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_GetMemberInGroup_Call) Run(run func(ctx context.Context, userID int, groupID int)) *GitlabClientFacade_GetMemberInGroup_Call
func (*GitlabClientFacade_GetMemberInGroup_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_GetMemberInGroup_Call) RunAndReturn(run func(ctx context.Context, userID int, groupID int) (*gitlab.GroupMember, *gitlab.Response, error)) *GitlabClientFacade_GetMemberInGroup_Call
type GitlabClientFacade_GetMemberInProject_Call ¶ added in v0.17.2
GitlabClientFacade_GetMemberInProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMemberInProject'
func (*GitlabClientFacade_GetMemberInProject_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_GetMemberInProject_Call) Return(projectMember *gitlab.ProjectMember, response *gitlab.Response, err error) *GitlabClientFacade_GetMemberInProject_Call
func (*GitlabClientFacade_GetMemberInProject_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_GetMemberInProject_Call) Run(run func(ctx context.Context, userID int, projectID int)) *GitlabClientFacade_GetMemberInProject_Call
func (*GitlabClientFacade_GetMemberInProject_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_GetMemberInProject_Call) RunAndReturn(run func(ctx context.Context, userID int, projectID int) (*gitlab.ProjectMember, *gitlab.Response, error)) *GitlabClientFacade_GetMemberInProject_Call
type GitlabClientFacade_GetProjectIssues_Call ¶ added in v0.17.3
GitlabClientFacade_GetProjectIssues_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProjectIssues'
func (*GitlabClientFacade_GetProjectIssues_Call) Return ¶ added in v0.17.3
func (_c *GitlabClientFacade_GetProjectIssues_Call) Return(issues []*gitlab.Issue, response *gitlab.Response, err error) *GitlabClientFacade_GetProjectIssues_Call
func (*GitlabClientFacade_GetProjectIssues_Call) Run ¶ added in v0.17.3
func (_c *GitlabClientFacade_GetProjectIssues_Call) Run(run func(projectID int, opt *gitlab.ListProjectIssuesOptions)) *GitlabClientFacade_GetProjectIssues_Call
func (*GitlabClientFacade_GetProjectIssues_Call) RunAndReturn ¶ added in v0.17.3
func (_c *GitlabClientFacade_GetProjectIssues_Call) RunAndReturn(run func(projectID int, opt *gitlab.ListProjectIssuesOptions) ([]*gitlab.Issue, *gitlab.Response, error)) *GitlabClientFacade_GetProjectIssues_Call
type GitlabClientFacade_GetProject_Call ¶ added in v0.17.2
GitlabClientFacade_GetProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProject'
func (*GitlabClientFacade_GetProject_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_GetProject_Call) Return(project *gitlab.Project, response *gitlab.Response, err error) *GitlabClientFacade_GetProject_Call
func (*GitlabClientFacade_GetProject_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_GetProject_Call) Run(run func(ctx context.Context, projectID int)) *GitlabClientFacade_GetProject_Call
func (*GitlabClientFacade_GetProject_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_GetProject_Call) RunAndReturn(run func(ctx context.Context, projectID int) (*gitlab.Project, *gitlab.Response, error)) *GitlabClientFacade_GetProject_Call
type GitlabClientFacade_GetVersion_Call ¶ added in v0.17.2
GitlabClientFacade_GetVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVersion'
func (*GitlabClientFacade_GetVersion_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_GetVersion_Call) Return(version *gitlab.Version, response *gitlab.Response, err error) *GitlabClientFacade_GetVersion_Call
func (*GitlabClientFacade_GetVersion_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_GetVersion_Call) Run(run func(ctx context.Context)) *GitlabClientFacade_GetVersion_Call
func (*GitlabClientFacade_GetVersion_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_GetVersion_Call) RunAndReturn(run func(ctx context.Context) (*gitlab.Version, *gitlab.Response, error)) *GitlabClientFacade_GetVersion_Call
type GitlabClientFacade_InviteReporter_Call ¶ added in v0.17.2
GitlabClientFacade_InviteReporter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InviteReporter'
func (*GitlabClientFacade_InviteReporter_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_InviteReporter_Call) Return(projectMember *gitlab.ProjectMember, response *gitlab.Response, err error) *GitlabClientFacade_InviteReporter_Call
func (*GitlabClientFacade_InviteReporter_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_InviteReporter_Call) Run(run func(ctx context.Context, projectID int, userID int)) *GitlabClientFacade_InviteReporter_Call
func (*GitlabClientFacade_InviteReporter_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_InviteReporter_Call) RunAndReturn(run func(ctx context.Context, projectID int, userID int) (*gitlab.ProjectMember, *gitlab.Response, error)) *GitlabClientFacade_InviteReporter_Call
type GitlabClientFacade_IsProjectMember_Call ¶ added in v0.17.2
GitlabClientFacade_IsProjectMember_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsProjectMember'
func (*GitlabClientFacade_IsProjectMember_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_IsProjectMember_Call) Return(b bool, err error) *GitlabClientFacade_IsProjectMember_Call
func (*GitlabClientFacade_IsProjectMember_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_IsProjectMember_Call) Run(run func(ctx context.Context, projectID int, userID int, options *gitlab.ListProjectMembersOptions)) *GitlabClientFacade_IsProjectMember_Call
func (*GitlabClientFacade_IsProjectMember_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_IsProjectMember_Call) RunAndReturn(run func(ctx context.Context, projectID int, userID int, options *gitlab.ListProjectMembersOptions) (bool, error)) *GitlabClientFacade_IsProjectMember_Call
type GitlabClientFacade_ListGroups_Call ¶ added in v0.17.2
GitlabClientFacade_ListGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListGroups'
func (*GitlabClientFacade_ListGroups_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_ListGroups_Call) Return(groups []*gitlab.Group, response *gitlab.Response, err error) *GitlabClientFacade_ListGroups_Call
func (*GitlabClientFacade_ListGroups_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_ListGroups_Call) Run(run func(ctx context.Context, opt *gitlab.ListGroupsOptions)) *GitlabClientFacade_ListGroups_Call
func (*GitlabClientFacade_ListGroups_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_ListGroups_Call) RunAndReturn(run func(ctx context.Context, opt *gitlab.ListGroupsOptions) ([]*gitlab.Group, *gitlab.Response, error)) *GitlabClientFacade_ListGroups_Call
type GitlabClientFacade_ListLabels_Call ¶ added in v0.17.3
GitlabClientFacade_ListLabels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListLabels'
func (*GitlabClientFacade_ListLabels_Call) Return ¶ added in v0.17.3
func (_c *GitlabClientFacade_ListLabels_Call) Return(labels []*gitlab.Label, response *gitlab.Response, err error) *GitlabClientFacade_ListLabels_Call
func (*GitlabClientFacade_ListLabels_Call) Run ¶ added in v0.17.3
func (_c *GitlabClientFacade_ListLabels_Call) Run(run func(ctx context.Context, projectID int, opt *gitlab.ListLabelsOptions)) *GitlabClientFacade_ListLabels_Call
func (*GitlabClientFacade_ListLabels_Call) RunAndReturn ¶ added in v0.17.3
func (_c *GitlabClientFacade_ListLabels_Call) RunAndReturn(run func(ctx context.Context, projectID int, opt *gitlab.ListLabelsOptions) ([]*gitlab.Label, *gitlab.Response, error)) *GitlabClientFacade_ListLabels_Call
type GitlabClientFacade_ListProjectHooks_Call ¶ added in v0.17.2
GitlabClientFacade_ListProjectHooks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListProjectHooks'
func (*GitlabClientFacade_ListProjectHooks_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_ListProjectHooks_Call) Return(projectHooks []*gitlab.ProjectHook, response *gitlab.Response, err error) *GitlabClientFacade_ListProjectHooks_Call
func (*GitlabClientFacade_ListProjectHooks_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_ListProjectHooks_Call) Run(run func(ctx context.Context, projectID int, options *gitlab.ListProjectHooksOptions)) *GitlabClientFacade_ListProjectHooks_Call
func (*GitlabClientFacade_ListProjectHooks_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_ListProjectHooks_Call) RunAndReturn(run func(ctx context.Context, projectID int, options *gitlab.ListProjectHooksOptions) ([]*gitlab.ProjectHook, *gitlab.Response, error)) *GitlabClientFacade_ListProjectHooks_Call
type GitlabClientFacade_ListProjectsInGroup_Call ¶ added in v0.17.2
GitlabClientFacade_ListProjectsInGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListProjectsInGroup'
func (*GitlabClientFacade_ListProjectsInGroup_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_ListProjectsInGroup_Call) Return(projects []*gitlab.Project, response *gitlab.Response, err error) *GitlabClientFacade_ListProjectsInGroup_Call
func (*GitlabClientFacade_ListProjectsInGroup_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_ListProjectsInGroup_Call) Run(run func(ctx context.Context, groupID int, opt *gitlab.ListGroupProjectsOptions)) *GitlabClientFacade_ListProjectsInGroup_Call
func (*GitlabClientFacade_ListProjectsInGroup_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_ListProjectsInGroup_Call) RunAndReturn(run func(ctx context.Context, groupID int, opt *gitlab.ListGroupProjectsOptions) ([]*gitlab.Project, *gitlab.Response, error)) *GitlabClientFacade_ListProjectsInGroup_Call
type GitlabClientFacade_ListProjects_Call ¶ added in v0.17.2
GitlabClientFacade_ListProjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListProjects'
func (*GitlabClientFacade_ListProjects_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_ListProjects_Call) Return(projects []*gitlab.Project, response *gitlab.Response, err error) *GitlabClientFacade_ListProjects_Call
func (*GitlabClientFacade_ListProjects_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_ListProjects_Call) Run(run func(ctx context.Context, opt *gitlab.ListProjectsOptions)) *GitlabClientFacade_ListProjects_Call
func (*GitlabClientFacade_ListProjects_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_ListProjects_Call) RunAndReturn(run func(ctx context.Context, opt *gitlab.ListProjectsOptions) ([]*gitlab.Project, *gitlab.Response, error)) *GitlabClientFacade_ListProjects_Call
type GitlabClientFacade_ListVariables_Call ¶ added in v0.17.2
GitlabClientFacade_ListVariables_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListVariables'
func (*GitlabClientFacade_ListVariables_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_ListVariables_Call) Return(projectVariables []*gitlab.ProjectVariable, response *gitlab.Response, err error) *GitlabClientFacade_ListVariables_Call
func (*GitlabClientFacade_ListVariables_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_ListVariables_Call) Run(run func(ctx context.Context, projectID int, options *gitlab.ListProjectVariablesOptions)) *GitlabClientFacade_ListVariables_Call
func (*GitlabClientFacade_ListVariables_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_ListVariables_Call) RunAndReturn(run func(ctx context.Context, projectID int, options *gitlab.ListProjectVariablesOptions) ([]*gitlab.ProjectVariable, *gitlab.Response, error)) *GitlabClientFacade_ListVariables_Call
type GitlabClientFacade_RemoveVariable_Call ¶ added in v0.17.2
GitlabClientFacade_RemoveVariable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveVariable'
func (*GitlabClientFacade_RemoveVariable_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_RemoveVariable_Call) Return(response *gitlab.Response, err error) *GitlabClientFacade_RemoveVariable_Call
func (*GitlabClientFacade_RemoveVariable_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_RemoveVariable_Call) Run(run func(ctx context.Context, projectID int, key string)) *GitlabClientFacade_RemoveVariable_Call
func (*GitlabClientFacade_RemoveVariable_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_RemoveVariable_Call) RunAndReturn(run func(ctx context.Context, projectID int, key string) (*gitlab.Response, error)) *GitlabClientFacade_RemoveVariable_Call
type GitlabClientFacade_UpdateLabel_Call ¶ added in v0.17.3
GitlabClientFacade_UpdateLabel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateLabel'
func (*GitlabClientFacade_UpdateLabel_Call) Return ¶ added in v0.17.3
func (_c *GitlabClientFacade_UpdateLabel_Call) Return(label *gitlab.Label, response *gitlab.Response, err error) *GitlabClientFacade_UpdateLabel_Call
func (*GitlabClientFacade_UpdateLabel_Call) Run ¶ added in v0.17.3
func (_c *GitlabClientFacade_UpdateLabel_Call) Run(run func(ctx context.Context, projectID int, labelID int, opt *gitlab.UpdateLabelOptions)) *GitlabClientFacade_UpdateLabel_Call
func (*GitlabClientFacade_UpdateLabel_Call) RunAndReturn ¶ added in v0.17.3
func (_c *GitlabClientFacade_UpdateLabel_Call) RunAndReturn(run func(ctx context.Context, projectID int, labelID int, opt *gitlab.UpdateLabelOptions) (*gitlab.Label, *gitlab.Response, error)) *GitlabClientFacade_UpdateLabel_Call
type GitlabClientFacade_UpdateVariable_Call ¶ added in v0.17.2
GitlabClientFacade_UpdateVariable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateVariable'
func (*GitlabClientFacade_UpdateVariable_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_UpdateVariable_Call) Return(projectVariable *gitlab.ProjectVariable, response *gitlab.Response, err error) *GitlabClientFacade_UpdateVariable_Call
func (*GitlabClientFacade_UpdateVariable_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_UpdateVariable_Call) Run(run func(ctx context.Context, projectID int, key string, opt *gitlab.UpdateProjectVariableOptions)) *GitlabClientFacade_UpdateVariable_Call
func (*GitlabClientFacade_UpdateVariable_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_UpdateVariable_Call) RunAndReturn(run func(ctx context.Context, projectID int, key string, opt *gitlab.UpdateProjectVariableOptions) (*gitlab.ProjectVariable, *gitlab.Response, error)) *GitlabClientFacade_UpdateVariable_Call
type GitlabClientFacade_Whoami_Call ¶ added in v0.17.2
GitlabClientFacade_Whoami_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Whoami'
func (*GitlabClientFacade_Whoami_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFacade_Whoami_Call) Return(user *gitlab.User, response *gitlab.Response, err error) *GitlabClientFacade_Whoami_Call
func (*GitlabClientFacade_Whoami_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFacade_Whoami_Call) Run(run func(ctx context.Context)) *GitlabClientFacade_Whoami_Call
func (*GitlabClientFacade_Whoami_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFacade_Whoami_Call) RunAndReturn(run func(ctx context.Context) (*gitlab.User, *gitlab.Response, error)) *GitlabClientFacade_Whoami_Call
type GitlabClientFactory ¶ added in v0.17.2
GitlabClientFactory is an autogenerated mock type for the GitlabClientFactory type
func NewGitlabClientFactory ¶ added in v0.17.2
func NewGitlabClientFactory(t interface { mock.TestingT Cleanup(func()) }) *GitlabClientFactory
NewGitlabClientFactory creates a new instance of GitlabClientFactory. 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 (*GitlabClientFactory) EXPECT ¶ added in v0.17.2
func (_m *GitlabClientFactory) EXPECT() *GitlabClientFactory_Expecter
func (*GitlabClientFactory) FromAccessToken ¶ added in v0.17.2
func (_mock *GitlabClientFactory) FromAccessToken(accessToken string, baseURL string) (core.GitlabClientFacade, error)
FromAccessToken provides a mock function for the type GitlabClientFactory
func (*GitlabClientFactory) FromIntegration ¶ added in v0.17.2
func (_mock *GitlabClientFactory) FromIntegration(integration models.GitLabIntegration) (core.GitlabClientFacade, error)
FromIntegration provides a mock function for the type GitlabClientFactory
func (*GitlabClientFactory) FromIntegrationUUID ¶ added in v0.17.2
func (_mock *GitlabClientFactory) FromIntegrationUUID(id uuid.UUID) (core.GitlabClientFacade, error)
FromIntegrationUUID provides a mock function for the type GitlabClientFactory
func (*GitlabClientFactory) FromOauth2Token ¶ added in v0.17.2
func (_mock *GitlabClientFactory) FromOauth2Token(token models.GitLabOauth2Token, enableClientCache bool) (core.GitlabClientFacade, error)
FromOauth2Token provides a mock function for the type GitlabClientFactory
type GitlabClientFactory_Expecter ¶ added in v0.17.2
type GitlabClientFactory_Expecter struct {
// contains filtered or unexported fields
}
func (*GitlabClientFactory_Expecter) FromAccessToken ¶ added in v0.17.2
func (_e *GitlabClientFactory_Expecter) FromAccessToken(accessToken interface{}, baseURL interface{}) *GitlabClientFactory_FromAccessToken_Call
FromAccessToken is a helper method to define mock.On call
- accessToken string
- baseURL string
func (*GitlabClientFactory_Expecter) FromIntegration ¶ added in v0.17.2
func (_e *GitlabClientFactory_Expecter) FromIntegration(integration interface{}) *GitlabClientFactory_FromIntegration_Call
FromIntegration is a helper method to define mock.On call
- integration models.GitLabIntegration
func (*GitlabClientFactory_Expecter) FromIntegrationUUID ¶ added in v0.17.2
func (_e *GitlabClientFactory_Expecter) FromIntegrationUUID(id interface{}) *GitlabClientFactory_FromIntegrationUUID_Call
FromIntegrationUUID is a helper method to define mock.On call
- id uuid.UUID
func (*GitlabClientFactory_Expecter) FromOauth2Token ¶ added in v0.17.2
func (_e *GitlabClientFactory_Expecter) FromOauth2Token(token interface{}, enableClientCache interface{}) *GitlabClientFactory_FromOauth2Token_Call
FromOauth2Token is a helper method to define mock.On call
- token models.GitLabOauth2Token
- enableClientCache bool
type GitlabClientFactory_FromAccessToken_Call ¶ added in v0.17.2
GitlabClientFactory_FromAccessToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FromAccessToken'
func (*GitlabClientFactory_FromAccessToken_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFactory_FromAccessToken_Call) Return(gitlabClientFacade core.GitlabClientFacade, err error) *GitlabClientFactory_FromAccessToken_Call
func (*GitlabClientFactory_FromAccessToken_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFactory_FromAccessToken_Call) Run(run func(accessToken string, baseURL string)) *GitlabClientFactory_FromAccessToken_Call
func (*GitlabClientFactory_FromAccessToken_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFactory_FromAccessToken_Call) RunAndReturn(run func(accessToken string, baseURL string) (core.GitlabClientFacade, error)) *GitlabClientFactory_FromAccessToken_Call
type GitlabClientFactory_FromIntegrationUUID_Call ¶ added in v0.17.2
GitlabClientFactory_FromIntegrationUUID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FromIntegrationUUID'
func (*GitlabClientFactory_FromIntegrationUUID_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFactory_FromIntegrationUUID_Call) Return(gitlabClientFacade core.GitlabClientFacade, err error) *GitlabClientFactory_FromIntegrationUUID_Call
func (*GitlabClientFactory_FromIntegrationUUID_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFactory_FromIntegrationUUID_Call) Run(run func(id uuid.UUID)) *GitlabClientFactory_FromIntegrationUUID_Call
func (*GitlabClientFactory_FromIntegrationUUID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFactory_FromIntegrationUUID_Call) RunAndReturn(run func(id uuid.UUID) (core.GitlabClientFacade, error)) *GitlabClientFactory_FromIntegrationUUID_Call
type GitlabClientFactory_FromIntegration_Call ¶ added in v0.17.2
GitlabClientFactory_FromIntegration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FromIntegration'
func (*GitlabClientFactory_FromIntegration_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFactory_FromIntegration_Call) Return(gitlabClientFacade core.GitlabClientFacade, err error) *GitlabClientFactory_FromIntegration_Call
func (*GitlabClientFactory_FromIntegration_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFactory_FromIntegration_Call) Run(run func(integration models.GitLabIntegration)) *GitlabClientFactory_FromIntegration_Call
func (*GitlabClientFactory_FromIntegration_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFactory_FromIntegration_Call) RunAndReturn(run func(integration models.GitLabIntegration) (core.GitlabClientFacade, error)) *GitlabClientFactory_FromIntegration_Call
type GitlabClientFactory_FromOauth2Token_Call ¶ added in v0.17.2
GitlabClientFactory_FromOauth2Token_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FromOauth2Token'
func (*GitlabClientFactory_FromOauth2Token_Call) Return ¶ added in v0.17.2
func (_c *GitlabClientFactory_FromOauth2Token_Call) Return(gitlabClientFacade core.GitlabClientFacade, err error) *GitlabClientFactory_FromOauth2Token_Call
func (*GitlabClientFactory_FromOauth2Token_Call) Run ¶ added in v0.17.2
func (_c *GitlabClientFactory_FromOauth2Token_Call) Run(run func(token models.GitLabOauth2Token, enableClientCache bool)) *GitlabClientFactory_FromOauth2Token_Call
func (*GitlabClientFactory_FromOauth2Token_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabClientFactory_FromOauth2Token_Call) RunAndReturn(run func(token models.GitLabOauth2Token, enableClientCache bool) (core.GitlabClientFacade, error)) *GitlabClientFactory_FromOauth2Token_Call
type GitlabIntegrationRepository ¶ added in v0.17.2
GitlabIntegrationRepository is an autogenerated mock type for the GitlabIntegrationRepository type
func NewGitlabIntegrationRepository ¶ added in v0.17.2
func NewGitlabIntegrationRepository(t interface { mock.TestingT Cleanup(func()) }) *GitlabIntegrationRepository
NewGitlabIntegrationRepository creates a new instance of GitlabIntegrationRepository. 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 (*GitlabIntegrationRepository) Delete ¶ added in v0.17.2
Delete provides a mock function for the type GitlabIntegrationRepository
func (*GitlabIntegrationRepository) EXPECT ¶ added in v0.17.2
func (_m *GitlabIntegrationRepository) EXPECT() *GitlabIntegrationRepository_Expecter
func (*GitlabIntegrationRepository) FindByOrganizationID ¶ added in v0.17.2
func (_mock *GitlabIntegrationRepository) FindByOrganizationID(orgID uuid.UUID) ([]models.GitLabIntegration, error)
FindByOrganizationID provides a mock function for the type GitlabIntegrationRepository
func (*GitlabIntegrationRepository) Read ¶ added in v0.17.2
func (_mock *GitlabIntegrationRepository) Read(id uuid.UUID) (models.GitLabIntegration, error)
Read provides a mock function for the type GitlabIntegrationRepository
func (*GitlabIntegrationRepository) Save ¶ added in v0.17.2
func (_mock *GitlabIntegrationRepository) Save(tx core.DB, model *models.GitLabIntegration) error
Save provides a mock function for the type GitlabIntegrationRepository
type GitlabIntegrationRepository_Delete_Call ¶ added in v0.17.2
GitlabIntegrationRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*GitlabIntegrationRepository_Delete_Call) Return ¶ added in v0.17.2
func (_c *GitlabIntegrationRepository_Delete_Call) Return(err error) *GitlabIntegrationRepository_Delete_Call
func (*GitlabIntegrationRepository_Delete_Call) Run ¶ added in v0.17.2
func (_c *GitlabIntegrationRepository_Delete_Call) Run(run func(tx core.DB, id uuid.UUID)) *GitlabIntegrationRepository_Delete_Call
func (*GitlabIntegrationRepository_Delete_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabIntegrationRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *GitlabIntegrationRepository_Delete_Call
type GitlabIntegrationRepository_Expecter ¶ added in v0.17.2
type GitlabIntegrationRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*GitlabIntegrationRepository_Expecter) Delete ¶ added in v0.17.2
func (_e *GitlabIntegrationRepository_Expecter) Delete(tx interface{}, id interface{}) *GitlabIntegrationRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx core.DB
- id uuid.UUID
func (*GitlabIntegrationRepository_Expecter) FindByOrganizationID ¶ added in v0.17.2
func (_e *GitlabIntegrationRepository_Expecter) FindByOrganizationID(orgID interface{}) *GitlabIntegrationRepository_FindByOrganizationID_Call
FindByOrganizationID is a helper method to define mock.On call
- orgID uuid.UUID
func (*GitlabIntegrationRepository_Expecter) Read ¶ added in v0.17.2
func (_e *GitlabIntegrationRepository_Expecter) Read(id interface{}) *GitlabIntegrationRepository_Read_Call
Read is a helper method to define mock.On call
- id uuid.UUID
func (*GitlabIntegrationRepository_Expecter) Save ¶ added in v0.17.2
func (_e *GitlabIntegrationRepository_Expecter) Save(tx interface{}, model interface{}) *GitlabIntegrationRepository_Save_Call
Save is a helper method to define mock.On call
- tx core.DB
- model *models.GitLabIntegration
type GitlabIntegrationRepository_FindByOrganizationID_Call ¶ added in v0.17.2
GitlabIntegrationRepository_FindByOrganizationID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByOrganizationID'
func (*GitlabIntegrationRepository_FindByOrganizationID_Call) Return ¶ added in v0.17.2
func (_c *GitlabIntegrationRepository_FindByOrganizationID_Call) Return(gitLabIntegrations []models.GitLabIntegration, err error) *GitlabIntegrationRepository_FindByOrganizationID_Call
func (*GitlabIntegrationRepository_FindByOrganizationID_Call) Run ¶ added in v0.17.2
func (_c *GitlabIntegrationRepository_FindByOrganizationID_Call) Run(run func(orgID uuid.UUID)) *GitlabIntegrationRepository_FindByOrganizationID_Call
func (*GitlabIntegrationRepository_FindByOrganizationID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabIntegrationRepository_FindByOrganizationID_Call) RunAndReturn(run func(orgID uuid.UUID) ([]models.GitLabIntegration, error)) *GitlabIntegrationRepository_FindByOrganizationID_Call
type GitlabIntegrationRepository_Read_Call ¶ added in v0.17.2
GitlabIntegrationRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*GitlabIntegrationRepository_Read_Call) Return ¶ added in v0.17.2
func (_c *GitlabIntegrationRepository_Read_Call) Return(gitLabIntegration models.GitLabIntegration, err error) *GitlabIntegrationRepository_Read_Call
func (*GitlabIntegrationRepository_Read_Call) Run ¶ added in v0.17.2
func (_c *GitlabIntegrationRepository_Read_Call) Run(run func(id uuid.UUID)) *GitlabIntegrationRepository_Read_Call
func (*GitlabIntegrationRepository_Read_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabIntegrationRepository_Read_Call) RunAndReturn(run func(id uuid.UUID) (models.GitLabIntegration, error)) *GitlabIntegrationRepository_Read_Call
type GitlabIntegrationRepository_Save_Call ¶ added in v0.17.2
GitlabIntegrationRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*GitlabIntegrationRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *GitlabIntegrationRepository_Save_Call) Return(err error) *GitlabIntegrationRepository_Save_Call
func (*GitlabIntegrationRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *GitlabIntegrationRepository_Save_Call) Run(run func(tx core.DB, model *models.GitLabIntegration)) *GitlabIntegrationRepository_Save_Call
func (*GitlabIntegrationRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *GitlabIntegrationRepository_Save_Call) RunAndReturn(run func(tx core.DB, model *models.GitLabIntegration) error) *GitlabIntegrationRepository_Save_Call
type InTotoLinkRepository ¶ added in v0.17.2
InTotoLinkRepository is an autogenerated mock type for the InTotoLinkRepository type
func NewInTotoLinkRepository ¶ added in v0.17.2
func NewInTotoLinkRepository(t interface { mock.TestingT Cleanup(func()) }) *InTotoLinkRepository
NewInTotoLinkRepository creates a new instance of InTotoLinkRepository. 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 (*InTotoLinkRepository) Activate ¶ added in v0.17.2
Activate provides a mock function for the type InTotoLinkRepository
func (*InTotoLinkRepository) All ¶ added in v0.17.2
func (_mock *InTotoLinkRepository) All() ([]models.InTotoLink, error)
All provides a mock function for the type InTotoLinkRepository
func (*InTotoLinkRepository) Begin ¶ added in v0.17.2
func (_mock *InTotoLinkRepository) Begin() core.DB
Begin provides a mock function for the type InTotoLinkRepository
func (*InTotoLinkRepository) Create ¶ added in v0.17.2
func (_mock *InTotoLinkRepository) Create(tx core.DB, t *models.InTotoLink) error
Create provides a mock function for the type InTotoLinkRepository
func (*InTotoLinkRepository) CreateBatch ¶ added in v0.17.2
func (_mock *InTotoLinkRepository) CreateBatch(tx core.DB, ts []models.InTotoLink) error
CreateBatch provides a mock function for the type InTotoLinkRepository
func (*InTotoLinkRepository) Delete ¶ added in v0.17.2
Delete provides a mock function for the type InTotoLinkRepository
func (*InTotoLinkRepository) DeleteBatch ¶ added in v0.17.2
func (_mock *InTotoLinkRepository) DeleteBatch(tx core.DB, ids []models.InTotoLink) error
DeleteBatch provides a mock function for the type InTotoLinkRepository
func (*InTotoLinkRepository) EXPECT ¶ added in v0.17.2
func (_m *InTotoLinkRepository) EXPECT() *InTotoLinkRepository_Expecter
func (*InTotoLinkRepository) FindByAssetAndSupplyChainID ¶ added in v0.17.2
func (_mock *InTotoLinkRepository) FindByAssetAndSupplyChainID(assetID uuid.UUID, supplyChainID string) ([]models.InTotoLink, error)
FindByAssetAndSupplyChainID provides a mock function for the type InTotoLinkRepository
func (*InTotoLinkRepository) FindBySupplyChainID ¶ added in v0.17.2
func (_mock *InTotoLinkRepository) FindBySupplyChainID(supplyChainID string) ([]models.InTotoLink, error)
FindBySupplyChainID provides a mock function for the type InTotoLinkRepository
func (*InTotoLinkRepository) GetDB ¶ added in v0.17.2
func (_mock *InTotoLinkRepository) GetDB(tx core.DB) core.DB
GetDB provides a mock function for the type InTotoLinkRepository
func (*InTotoLinkRepository) List ¶ added in v0.17.2
func (_mock *InTotoLinkRepository) List(ids []uuid.UUID) ([]models.InTotoLink, error)
List provides a mock function for the type InTotoLinkRepository
func (*InTotoLinkRepository) Read ¶ added in v0.17.2
func (_mock *InTotoLinkRepository) Read(id uuid.UUID) (models.InTotoLink, error)
Read provides a mock function for the type InTotoLinkRepository
func (*InTotoLinkRepository) Save ¶ added in v0.17.2
func (_mock *InTotoLinkRepository) Save(tx core.DB, model *models.InTotoLink) error
Save provides a mock function for the type InTotoLinkRepository
func (*InTotoLinkRepository) SaveBatch ¶ added in v0.17.2
func (_mock *InTotoLinkRepository) SaveBatch(tx core.DB, ts []models.InTotoLink) error
SaveBatch provides a mock function for the type InTotoLinkRepository
func (*InTotoLinkRepository) Transaction ¶ added in v0.17.2
func (_mock *InTotoLinkRepository) Transaction(fn func(tx core.DB) error) error
Transaction provides a mock function for the type InTotoLinkRepository
func (*InTotoLinkRepository) Upsert ¶ added in v0.17.2
func (_mock *InTotoLinkRepository) Upsert(t *[]*models.InTotoLink, conflictingColumns []clause.Column, updateOnly []string) error
Upsert provides a mock function for the type InTotoLinkRepository
type InTotoLinkRepository_Activate_Call ¶ added in v0.17.2
InTotoLinkRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*InTotoLinkRepository_Activate_Call) Return ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Activate_Call) Return(err error) *InTotoLinkRepository_Activate_Call
func (*InTotoLinkRepository_Activate_Call) Run ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Activate_Call) Run(run func(tx core.DB, id uuid.UUID)) *InTotoLinkRepository_Activate_Call
func (*InTotoLinkRepository_Activate_Call) RunAndReturn ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *InTotoLinkRepository_Activate_Call
type InTotoLinkRepository_All_Call ¶ added in v0.17.2
InTotoLinkRepository_All_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'All'
func (*InTotoLinkRepository_All_Call) Return ¶ added in v0.17.2
func (_c *InTotoLinkRepository_All_Call) Return(inTotoLinks []models.InTotoLink, err error) *InTotoLinkRepository_All_Call
func (*InTotoLinkRepository_All_Call) Run ¶ added in v0.17.2
func (_c *InTotoLinkRepository_All_Call) Run(run func()) *InTotoLinkRepository_All_Call
func (*InTotoLinkRepository_All_Call) RunAndReturn ¶ added in v0.17.2
func (_c *InTotoLinkRepository_All_Call) RunAndReturn(run func() ([]models.InTotoLink, error)) *InTotoLinkRepository_All_Call
type InTotoLinkRepository_Begin_Call ¶ added in v0.17.2
InTotoLinkRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*InTotoLinkRepository_Begin_Call) Return ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Begin_Call) Return(v core.DB) *InTotoLinkRepository_Begin_Call
func (*InTotoLinkRepository_Begin_Call) Run ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Begin_Call) Run(run func()) *InTotoLinkRepository_Begin_Call
func (*InTotoLinkRepository_Begin_Call) RunAndReturn ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Begin_Call) RunAndReturn(run func() core.DB) *InTotoLinkRepository_Begin_Call
type InTotoLinkRepository_CreateBatch_Call ¶ added in v0.17.2
InTotoLinkRepository_CreateBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBatch'
func (*InTotoLinkRepository_CreateBatch_Call) Return ¶ added in v0.17.2
func (_c *InTotoLinkRepository_CreateBatch_Call) Return(err error) *InTotoLinkRepository_CreateBatch_Call
func (*InTotoLinkRepository_CreateBatch_Call) Run ¶ added in v0.17.2
func (_c *InTotoLinkRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.InTotoLink)) *InTotoLinkRepository_CreateBatch_Call
func (*InTotoLinkRepository_CreateBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *InTotoLinkRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.InTotoLink) error) *InTotoLinkRepository_CreateBatch_Call
type InTotoLinkRepository_Create_Call ¶ added in v0.17.2
InTotoLinkRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*InTotoLinkRepository_Create_Call) Return ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Create_Call) Return(err error) *InTotoLinkRepository_Create_Call
func (*InTotoLinkRepository_Create_Call) Run ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Create_Call) Run(run func(tx core.DB, t *models.InTotoLink)) *InTotoLinkRepository_Create_Call
func (*InTotoLinkRepository_Create_Call) RunAndReturn ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.InTotoLink) error) *InTotoLinkRepository_Create_Call
type InTotoLinkRepository_DeleteBatch_Call ¶ added in v0.17.2
InTotoLinkRepository_DeleteBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBatch'
func (*InTotoLinkRepository_DeleteBatch_Call) Return ¶ added in v0.17.2
func (_c *InTotoLinkRepository_DeleteBatch_Call) Return(err error) *InTotoLinkRepository_DeleteBatch_Call
func (*InTotoLinkRepository_DeleteBatch_Call) Run ¶ added in v0.17.2
func (_c *InTotoLinkRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.InTotoLink)) *InTotoLinkRepository_DeleteBatch_Call
func (*InTotoLinkRepository_DeleteBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *InTotoLinkRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.InTotoLink) error) *InTotoLinkRepository_DeleteBatch_Call
type InTotoLinkRepository_Delete_Call ¶ added in v0.17.2
InTotoLinkRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*InTotoLinkRepository_Delete_Call) Return ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Delete_Call) Return(err error) *InTotoLinkRepository_Delete_Call
func (*InTotoLinkRepository_Delete_Call) Run ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Delete_Call) Run(run func(tx core.DB, id uuid.UUID)) *InTotoLinkRepository_Delete_Call
func (*InTotoLinkRepository_Delete_Call) RunAndReturn ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *InTotoLinkRepository_Delete_Call
type InTotoLinkRepository_Expecter ¶ added in v0.17.2
type InTotoLinkRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*InTotoLinkRepository_Expecter) Activate ¶ added in v0.17.2
func (_e *InTotoLinkRepository_Expecter) Activate(tx interface{}, id interface{}) *InTotoLinkRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx core.DB
- id uuid.UUID
func (*InTotoLinkRepository_Expecter) All ¶ added in v0.17.2
func (_e *InTotoLinkRepository_Expecter) All() *InTotoLinkRepository_All_Call
All is a helper method to define mock.On call
func (*InTotoLinkRepository_Expecter) Begin ¶ added in v0.17.2
func (_e *InTotoLinkRepository_Expecter) Begin() *InTotoLinkRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*InTotoLinkRepository_Expecter) Create ¶ added in v0.17.2
func (_e *InTotoLinkRepository_Expecter) Create(tx interface{}, t interface{}) *InTotoLinkRepository_Create_Call
Create is a helper method to define mock.On call
- tx core.DB
- t *models.InTotoLink
func (*InTotoLinkRepository_Expecter) CreateBatch ¶ added in v0.17.2
func (_e *InTotoLinkRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *InTotoLinkRepository_CreateBatch_Call
CreateBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.InTotoLink
func (*InTotoLinkRepository_Expecter) Delete ¶ added in v0.17.2
func (_e *InTotoLinkRepository_Expecter) Delete(tx interface{}, id interface{}) *InTotoLinkRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx core.DB
- id uuid.UUID
func (*InTotoLinkRepository_Expecter) DeleteBatch ¶ added in v0.17.2
func (_e *InTotoLinkRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *InTotoLinkRepository_DeleteBatch_Call
DeleteBatch is a helper method to define mock.On call
- tx core.DB
- ids []models.InTotoLink
func (*InTotoLinkRepository_Expecter) FindByAssetAndSupplyChainID ¶ added in v0.17.2
func (_e *InTotoLinkRepository_Expecter) FindByAssetAndSupplyChainID(assetID interface{}, supplyChainID interface{}) *InTotoLinkRepository_FindByAssetAndSupplyChainID_Call
FindByAssetAndSupplyChainID is a helper method to define mock.On call
- assetID uuid.UUID
- supplyChainID string
func (*InTotoLinkRepository_Expecter) FindBySupplyChainID ¶ added in v0.17.2
func (_e *InTotoLinkRepository_Expecter) FindBySupplyChainID(supplyChainID interface{}) *InTotoLinkRepository_FindBySupplyChainID_Call
FindBySupplyChainID is a helper method to define mock.On call
- supplyChainID string
func (*InTotoLinkRepository_Expecter) GetDB ¶ added in v0.17.2
func (_e *InTotoLinkRepository_Expecter) GetDB(tx interface{}) *InTotoLinkRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx core.DB
func (*InTotoLinkRepository_Expecter) List ¶ added in v0.17.2
func (_e *InTotoLinkRepository_Expecter) List(ids interface{}) *InTotoLinkRepository_List_Call
List is a helper method to define mock.On call
- ids []uuid.UUID
func (*InTotoLinkRepository_Expecter) Read ¶ added in v0.17.2
func (_e *InTotoLinkRepository_Expecter) Read(id interface{}) *InTotoLinkRepository_Read_Call
Read is a helper method to define mock.On call
- id uuid.UUID
func (*InTotoLinkRepository_Expecter) Save ¶ added in v0.17.2
func (_e *InTotoLinkRepository_Expecter) Save(tx interface{}, model interface{}) *InTotoLinkRepository_Save_Call
Save is a helper method to define mock.On call
- tx core.DB
- model *models.InTotoLink
func (*InTotoLinkRepository_Expecter) SaveBatch ¶ added in v0.17.2
func (_e *InTotoLinkRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *InTotoLinkRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.InTotoLink
func (*InTotoLinkRepository_Expecter) Transaction ¶ added in v0.17.2
func (_e *InTotoLinkRepository_Expecter) Transaction(fn interface{}) *InTotoLinkRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- fn func(tx core.DB) error
func (*InTotoLinkRepository_Expecter) Upsert ¶ added in v0.17.2
func (_e *InTotoLinkRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *InTotoLinkRepository_Upsert_Call
Upsert is a helper method to define mock.On call
- t *[]*models.InTotoLink
- conflictingColumns []clause.Column
- updateOnly []string
type InTotoLinkRepository_FindByAssetAndSupplyChainID_Call ¶ added in v0.17.2
InTotoLinkRepository_FindByAssetAndSupplyChainID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByAssetAndSupplyChainID'
func (*InTotoLinkRepository_FindByAssetAndSupplyChainID_Call) Return ¶ added in v0.17.2
func (_c *InTotoLinkRepository_FindByAssetAndSupplyChainID_Call) Return(inTotoLinks []models.InTotoLink, err error) *InTotoLinkRepository_FindByAssetAndSupplyChainID_Call
func (*InTotoLinkRepository_FindByAssetAndSupplyChainID_Call) Run ¶ added in v0.17.2
func (_c *InTotoLinkRepository_FindByAssetAndSupplyChainID_Call) Run(run func(assetID uuid.UUID, supplyChainID string)) *InTotoLinkRepository_FindByAssetAndSupplyChainID_Call
func (*InTotoLinkRepository_FindByAssetAndSupplyChainID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *InTotoLinkRepository_FindByAssetAndSupplyChainID_Call) RunAndReturn(run func(assetID uuid.UUID, supplyChainID string) ([]models.InTotoLink, error)) *InTotoLinkRepository_FindByAssetAndSupplyChainID_Call
type InTotoLinkRepository_FindBySupplyChainID_Call ¶ added in v0.17.2
InTotoLinkRepository_FindBySupplyChainID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindBySupplyChainID'
func (*InTotoLinkRepository_FindBySupplyChainID_Call) Return ¶ added in v0.17.2
func (_c *InTotoLinkRepository_FindBySupplyChainID_Call) Return(inTotoLinks []models.InTotoLink, err error) *InTotoLinkRepository_FindBySupplyChainID_Call
func (*InTotoLinkRepository_FindBySupplyChainID_Call) Run ¶ added in v0.17.2
func (_c *InTotoLinkRepository_FindBySupplyChainID_Call) Run(run func(supplyChainID string)) *InTotoLinkRepository_FindBySupplyChainID_Call
func (*InTotoLinkRepository_FindBySupplyChainID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *InTotoLinkRepository_FindBySupplyChainID_Call) RunAndReturn(run func(supplyChainID string) ([]models.InTotoLink, error)) *InTotoLinkRepository_FindBySupplyChainID_Call
type InTotoLinkRepository_GetDB_Call ¶ added in v0.17.2
InTotoLinkRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*InTotoLinkRepository_GetDB_Call) Return ¶ added in v0.17.2
func (_c *InTotoLinkRepository_GetDB_Call) Return(v core.DB) *InTotoLinkRepository_GetDB_Call
func (*InTotoLinkRepository_GetDB_Call) Run ¶ added in v0.17.2
func (_c *InTotoLinkRepository_GetDB_Call) Run(run func(tx core.DB)) *InTotoLinkRepository_GetDB_Call
func (*InTotoLinkRepository_GetDB_Call) RunAndReturn ¶ added in v0.17.2
func (_c *InTotoLinkRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *InTotoLinkRepository_GetDB_Call
type InTotoLinkRepository_List_Call ¶ added in v0.17.2
InTotoLinkRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*InTotoLinkRepository_List_Call) Return ¶ added in v0.17.2
func (_c *InTotoLinkRepository_List_Call) Return(inTotoLinks []models.InTotoLink, err error) *InTotoLinkRepository_List_Call
func (*InTotoLinkRepository_List_Call) Run ¶ added in v0.17.2
func (_c *InTotoLinkRepository_List_Call) Run(run func(ids []uuid.UUID)) *InTotoLinkRepository_List_Call
func (*InTotoLinkRepository_List_Call) RunAndReturn ¶ added in v0.17.2
func (_c *InTotoLinkRepository_List_Call) RunAndReturn(run func(ids []uuid.UUID) ([]models.InTotoLink, error)) *InTotoLinkRepository_List_Call
type InTotoLinkRepository_Read_Call ¶ added in v0.17.2
InTotoLinkRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*InTotoLinkRepository_Read_Call) Return ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Read_Call) Return(inTotoLink models.InTotoLink, err error) *InTotoLinkRepository_Read_Call
func (*InTotoLinkRepository_Read_Call) Run ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Read_Call) Run(run func(id uuid.UUID)) *InTotoLinkRepository_Read_Call
func (*InTotoLinkRepository_Read_Call) RunAndReturn ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Read_Call) RunAndReturn(run func(id uuid.UUID) (models.InTotoLink, error)) *InTotoLinkRepository_Read_Call
type InTotoLinkRepository_SaveBatch_Call ¶ added in v0.17.2
InTotoLinkRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*InTotoLinkRepository_SaveBatch_Call) Return ¶ added in v0.17.2
func (_c *InTotoLinkRepository_SaveBatch_Call) Return(err error) *InTotoLinkRepository_SaveBatch_Call
func (*InTotoLinkRepository_SaveBatch_Call) Run ¶ added in v0.17.2
func (_c *InTotoLinkRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.InTotoLink)) *InTotoLinkRepository_SaveBatch_Call
func (*InTotoLinkRepository_SaveBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *InTotoLinkRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.InTotoLink) error) *InTotoLinkRepository_SaveBatch_Call
type InTotoLinkRepository_Save_Call ¶ added in v0.17.2
InTotoLinkRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*InTotoLinkRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Save_Call) Return(err error) *InTotoLinkRepository_Save_Call
func (*InTotoLinkRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Save_Call) Run(run func(tx core.DB, model *models.InTotoLink)) *InTotoLinkRepository_Save_Call
func (*InTotoLinkRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Save_Call) RunAndReturn(run func(tx core.DB, model *models.InTotoLink) error) *InTotoLinkRepository_Save_Call
type InTotoLinkRepository_Transaction_Call ¶ added in v0.17.2
InTotoLinkRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*InTotoLinkRepository_Transaction_Call) Return ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Transaction_Call) Return(err error) *InTotoLinkRepository_Transaction_Call
func (*InTotoLinkRepository_Transaction_Call) Run ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *InTotoLinkRepository_Transaction_Call
func (*InTotoLinkRepository_Transaction_Call) RunAndReturn ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *InTotoLinkRepository_Transaction_Call
type InTotoLinkRepository_Upsert_Call ¶ added in v0.17.2
InTotoLinkRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*InTotoLinkRepository_Upsert_Call) Return ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Upsert_Call) Return(err error) *InTotoLinkRepository_Upsert_Call
func (*InTotoLinkRepository_Upsert_Call) Run ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Upsert_Call) Run(run func(t *[]*models.InTotoLink, conflictingColumns []clause.Column, updateOnly []string)) *InTotoLinkRepository_Upsert_Call
func (*InTotoLinkRepository_Upsert_Call) RunAndReturn ¶ added in v0.17.2
func (_c *InTotoLinkRepository_Upsert_Call) RunAndReturn(run func(t *[]*models.InTotoLink, conflictingColumns []clause.Column, updateOnly []string) error) *InTotoLinkRepository_Upsert_Call
type InTotoVerifierService ¶ added in v0.17.2
InTotoVerifierService is an autogenerated mock type for the InTotoVerifierService type
func NewInTotoVerifierService ¶ added in v0.17.2
func NewInTotoVerifierService(t interface { mock.TestingT Cleanup(func()) }) *InTotoVerifierService
NewInTotoVerifierService creates a new instance of InTotoVerifierService. 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 (*InTotoVerifierService) EXPECT ¶ added in v0.17.2
func (_m *InTotoVerifierService) EXPECT() *InTotoVerifierService_Expecter
func (*InTotoVerifierService) VerifySupplyChain ¶ added in v0.17.2
func (_mock *InTotoVerifierService) VerifySupplyChain(supplyChainID string) (bool, error)
VerifySupplyChain provides a mock function for the type InTotoVerifierService
func (*InTotoVerifierService) VerifySupplyChainByDigestOnly ¶ added in v0.17.2
func (_mock *InTotoVerifierService) VerifySupplyChainByDigestOnly(digest string) (bool, error)
VerifySupplyChainByDigestOnly provides a mock function for the type InTotoVerifierService
func (*InTotoVerifierService) VerifySupplyChainWithOutputDigest ¶ added in v0.17.2
func (_mock *InTotoVerifierService) VerifySupplyChainWithOutputDigest(supplyChainID string, digest string) (bool, error)
VerifySupplyChainWithOutputDigest provides a mock function for the type InTotoVerifierService
type InTotoVerifierService_Expecter ¶ added in v0.17.2
type InTotoVerifierService_Expecter struct {
// contains filtered or unexported fields
}
func (*InTotoVerifierService_Expecter) VerifySupplyChain ¶ added in v0.17.2
func (_e *InTotoVerifierService_Expecter) VerifySupplyChain(supplyChainID interface{}) *InTotoVerifierService_VerifySupplyChain_Call
VerifySupplyChain is a helper method to define mock.On call
- supplyChainID string
func (*InTotoVerifierService_Expecter) VerifySupplyChainByDigestOnly ¶ added in v0.17.2
func (_e *InTotoVerifierService_Expecter) VerifySupplyChainByDigestOnly(digest interface{}) *InTotoVerifierService_VerifySupplyChainByDigestOnly_Call
VerifySupplyChainByDigestOnly is a helper method to define mock.On call
- digest string
func (*InTotoVerifierService_Expecter) VerifySupplyChainWithOutputDigest ¶ added in v0.17.2
func (_e *InTotoVerifierService_Expecter) VerifySupplyChainWithOutputDigest(supplyChainID interface{}, digest interface{}) *InTotoVerifierService_VerifySupplyChainWithOutputDigest_Call
VerifySupplyChainWithOutputDigest is a helper method to define mock.On call
- supplyChainID string
- digest string
type InTotoVerifierService_VerifySupplyChainByDigestOnly_Call ¶ added in v0.17.2
InTotoVerifierService_VerifySupplyChainByDigestOnly_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VerifySupplyChainByDigestOnly'
func (*InTotoVerifierService_VerifySupplyChainByDigestOnly_Call) Run ¶ added in v0.17.2
func (_c *InTotoVerifierService_VerifySupplyChainByDigestOnly_Call) Run(run func(digest string)) *InTotoVerifierService_VerifySupplyChainByDigestOnly_Call
func (*InTotoVerifierService_VerifySupplyChainByDigestOnly_Call) RunAndReturn ¶ added in v0.17.2
func (_c *InTotoVerifierService_VerifySupplyChainByDigestOnly_Call) RunAndReturn(run func(digest string) (bool, error)) *InTotoVerifierService_VerifySupplyChainByDigestOnly_Call
type InTotoVerifierService_VerifySupplyChainWithOutputDigest_Call ¶ added in v0.17.2
InTotoVerifierService_VerifySupplyChainWithOutputDigest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VerifySupplyChainWithOutputDigest'
func (*InTotoVerifierService_VerifySupplyChainWithOutputDigest_Call) Run ¶ added in v0.17.2
func (_c *InTotoVerifierService_VerifySupplyChainWithOutputDigest_Call) Run(run func(supplyChainID string, digest string)) *InTotoVerifierService_VerifySupplyChainWithOutputDigest_Call
func (*InTotoVerifierService_VerifySupplyChainWithOutputDigest_Call) RunAndReturn ¶ added in v0.17.2
func (_c *InTotoVerifierService_VerifySupplyChainWithOutputDigest_Call) RunAndReturn(run func(supplyChainID string, digest string) (bool, error)) *InTotoVerifierService_VerifySupplyChainWithOutputDigest_Call
type InTotoVerifierService_VerifySupplyChain_Call ¶ added in v0.17.2
InTotoVerifierService_VerifySupplyChain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VerifySupplyChain'
func (*InTotoVerifierService_VerifySupplyChain_Call) Return ¶ added in v0.17.2
func (_c *InTotoVerifierService_VerifySupplyChain_Call) Return(b bool, err error) *InTotoVerifierService_VerifySupplyChain_Call
func (*InTotoVerifierService_VerifySupplyChain_Call) Run ¶ added in v0.17.2
func (_c *InTotoVerifierService_VerifySupplyChain_Call) Run(run func(supplyChainID string)) *InTotoVerifierService_VerifySupplyChain_Call
func (*InTotoVerifierService_VerifySupplyChain_Call) RunAndReturn ¶ added in v0.17.2
func (_c *InTotoVerifierService_VerifySupplyChain_Call) RunAndReturn(run func(supplyChainID string) (bool, error)) *InTotoVerifierService_VerifySupplyChain_Call
type IntegrationAggregate ¶ added in v0.17.2
IntegrationAggregate is an autogenerated mock type for the IntegrationAggregate type
func NewIntegrationAggregate ¶ added in v0.17.2
func NewIntegrationAggregate(t interface { mock.TestingT Cleanup(func()) }) *IntegrationAggregate
NewIntegrationAggregate creates a new instance of IntegrationAggregate. 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 (*IntegrationAggregate) CreateIssue ¶ added in v0.17.2
func (_mock *IntegrationAggregate) CreateIssue(ctx context.Context, asset models.Asset, assetVersionName string, vuln models.Vuln, projectSlug string, orgSlug string, justification string, userID string) error
CreateIssue provides a mock function for the type IntegrationAggregate
func (*IntegrationAggregate) CreateLabels ¶ added in v0.17.3
CreateLabels provides a mock function for the type IntegrationAggregate
func (*IntegrationAggregate) EXPECT ¶ added in v0.17.2
func (_m *IntegrationAggregate) EXPECT() *IntegrationAggregate_Expecter
func (*IntegrationAggregate) GetID ¶ added in v0.17.2
func (_mock *IntegrationAggregate) GetID() core.IntegrationID
GetID provides a mock function for the type IntegrationAggregate
func (*IntegrationAggregate) GetIntegration ¶ added in v0.17.2
func (_mock *IntegrationAggregate) GetIntegration(id core.IntegrationID) core.ThirdPartyIntegration
GetIntegration provides a mock function for the type IntegrationAggregate
func (*IntegrationAggregate) GetUsers ¶ added in v0.17.2
func (_mock *IntegrationAggregate) GetUsers(org models.Org) []core.User
GetUsers provides a mock function for the type IntegrationAggregate
func (*IntegrationAggregate) HandleEvent ¶ added in v0.17.2
func (_mock *IntegrationAggregate) HandleEvent(event any) error
HandleEvent provides a mock function for the type IntegrationAggregate
func (*IntegrationAggregate) HandleWebhook ¶ added in v0.17.2
func (_mock *IntegrationAggregate) HandleWebhook(ctx core.Context) error
HandleWebhook provides a mock function for the type IntegrationAggregate
func (*IntegrationAggregate) HasAccessToExternalEntityProvider ¶ added in v0.17.2
func (_mock *IntegrationAggregate) HasAccessToExternalEntityProvider(ctx core.Context, externalEntityProviderID string) (bool, error)
HasAccessToExternalEntityProvider provides a mock function for the type IntegrationAggregate
func (*IntegrationAggregate) ListGroups ¶ added in v0.17.2
func (_mock *IntegrationAggregate) ListGroups(ctx context.Context, userID string, providerID string) ([]models.Project, []core.Role, error)
ListGroups provides a mock function for the type IntegrationAggregate
func (*IntegrationAggregate) ListOrgs ¶ added in v0.17.2
ListOrgs provides a mock function for the type IntegrationAggregate
func (*IntegrationAggregate) ListProjects ¶ added in v0.17.2
func (_mock *IntegrationAggregate) ListProjects(ctx context.Context, userID string, providerID string, groupID string) ([]models.Asset, []core.Role, error)
ListProjects provides a mock function for the type IntegrationAggregate
func (*IntegrationAggregate) ListRepositories ¶ added in v0.17.2
func (_mock *IntegrationAggregate) ListRepositories(ctx core.Context) ([]core.Repository, error)
ListRepositories provides a mock function for the type IntegrationAggregate
func (*IntegrationAggregate) UpdateIssue ¶ added in v0.17.2
func (_mock *IntegrationAggregate) UpdateIssue(ctx context.Context, asset models.Asset, assetVersionSlug string, vuln models.Vuln) error
UpdateIssue provides a mock function for the type IntegrationAggregate
func (*IntegrationAggregate) WantsToHandleWebhook ¶ added in v0.17.2
func (_mock *IntegrationAggregate) WantsToHandleWebhook(ctx core.Context) bool
WantsToHandleWebhook provides a mock function for the type IntegrationAggregate
type IntegrationAggregate_CreateIssue_Call ¶ added in v0.17.2
IntegrationAggregate_CreateIssue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIssue'
func (*IntegrationAggregate_CreateIssue_Call) Return ¶ added in v0.17.2
func (_c *IntegrationAggregate_CreateIssue_Call) Return(err error) *IntegrationAggregate_CreateIssue_Call
func (*IntegrationAggregate_CreateIssue_Call) RunAndReturn ¶ added in v0.17.2
type IntegrationAggregate_CreateLabels_Call ¶ added in v0.17.3
IntegrationAggregate_CreateLabels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateLabels'
func (*IntegrationAggregate_CreateLabels_Call) Return ¶ added in v0.17.3
func (_c *IntegrationAggregate_CreateLabels_Call) Return(err error) *IntegrationAggregate_CreateLabels_Call
func (*IntegrationAggregate_CreateLabels_Call) Run ¶ added in v0.17.3
func (_c *IntegrationAggregate_CreateLabels_Call) Run(run func(ctx context.Context, asset models.Asset)) *IntegrationAggregate_CreateLabels_Call
func (*IntegrationAggregate_CreateLabels_Call) RunAndReturn ¶ added in v0.17.3
func (_c *IntegrationAggregate_CreateLabels_Call) RunAndReturn(run func(ctx context.Context, asset models.Asset) error) *IntegrationAggregate_CreateLabels_Call
type IntegrationAggregate_Expecter ¶ added in v0.17.2
type IntegrationAggregate_Expecter struct {
// contains filtered or unexported fields
}
func (*IntegrationAggregate_Expecter) CreateIssue ¶ added in v0.17.2
func (_e *IntegrationAggregate_Expecter) CreateIssue(ctx interface{}, asset interface{}, assetVersionName interface{}, vuln interface{}, projectSlug interface{}, orgSlug interface{}, justification interface{}, userID interface{}) *IntegrationAggregate_CreateIssue_Call
CreateIssue is a helper method to define mock.On call
- ctx context.Context
- asset models.Asset
- assetVersionName string
- vuln models.Vuln
- projectSlug string
- orgSlug string
- justification string
- userID string
func (*IntegrationAggregate_Expecter) CreateLabels ¶ added in v0.17.3
func (_e *IntegrationAggregate_Expecter) CreateLabels(ctx interface{}, asset interface{}) *IntegrationAggregate_CreateLabels_Call
CreateLabels is a helper method to define mock.On call
- ctx context.Context
- asset models.Asset
func (*IntegrationAggregate_Expecter) GetID ¶ added in v0.17.2
func (_e *IntegrationAggregate_Expecter) GetID() *IntegrationAggregate_GetID_Call
GetID is a helper method to define mock.On call
func (*IntegrationAggregate_Expecter) GetIntegration ¶ added in v0.17.2
func (_e *IntegrationAggregate_Expecter) GetIntegration(id interface{}) *IntegrationAggregate_GetIntegration_Call
GetIntegration is a helper method to define mock.On call
- id core.IntegrationID
func (*IntegrationAggregate_Expecter) GetUsers ¶ added in v0.17.2
func (_e *IntegrationAggregate_Expecter) GetUsers(org interface{}) *IntegrationAggregate_GetUsers_Call
GetUsers is a helper method to define mock.On call
- org models.Org
func (*IntegrationAggregate_Expecter) HandleEvent ¶ added in v0.17.2
func (_e *IntegrationAggregate_Expecter) HandleEvent(event interface{}) *IntegrationAggregate_HandleEvent_Call
HandleEvent is a helper method to define mock.On call
- event any
func (*IntegrationAggregate_Expecter) HandleWebhook ¶ added in v0.17.2
func (_e *IntegrationAggregate_Expecter) HandleWebhook(ctx interface{}) *IntegrationAggregate_HandleWebhook_Call
HandleWebhook is a helper method to define mock.On call
- ctx core.Context
func (*IntegrationAggregate_Expecter) HasAccessToExternalEntityProvider ¶ added in v0.17.2
func (_e *IntegrationAggregate_Expecter) HasAccessToExternalEntityProvider(ctx interface{}, externalEntityProviderID interface{}) *IntegrationAggregate_HasAccessToExternalEntityProvider_Call
HasAccessToExternalEntityProvider is a helper method to define mock.On call
- ctx core.Context
- externalEntityProviderID string
func (*IntegrationAggregate_Expecter) ListGroups ¶ added in v0.17.2
func (_e *IntegrationAggregate_Expecter) ListGroups(ctx interface{}, userID interface{}, providerID interface{}) *IntegrationAggregate_ListGroups_Call
ListGroups is a helper method to define mock.On call
- ctx context.Context
- userID string
- providerID string
func (*IntegrationAggregate_Expecter) ListOrgs ¶ added in v0.17.2
func (_e *IntegrationAggregate_Expecter) ListOrgs(ctx interface{}) *IntegrationAggregate_ListOrgs_Call
ListOrgs is a helper method to define mock.On call
- ctx core.Context
func (*IntegrationAggregate_Expecter) ListProjects ¶ added in v0.17.2
func (_e *IntegrationAggregate_Expecter) ListProjects(ctx interface{}, userID interface{}, providerID interface{}, groupID interface{}) *IntegrationAggregate_ListProjects_Call
ListProjects is a helper method to define mock.On call
- ctx context.Context
- userID string
- providerID string
- groupID string
func (*IntegrationAggregate_Expecter) ListRepositories ¶ added in v0.17.2
func (_e *IntegrationAggregate_Expecter) ListRepositories(ctx interface{}) *IntegrationAggregate_ListRepositories_Call
ListRepositories is a helper method to define mock.On call
- ctx core.Context
func (*IntegrationAggregate_Expecter) UpdateIssue ¶ added in v0.17.2
func (_e *IntegrationAggregate_Expecter) UpdateIssue(ctx interface{}, asset interface{}, assetVersionSlug interface{}, vuln interface{}) *IntegrationAggregate_UpdateIssue_Call
UpdateIssue is a helper method to define mock.On call
- ctx context.Context
- asset models.Asset
- assetVersionSlug string
- vuln models.Vuln
func (*IntegrationAggregate_Expecter) WantsToHandleWebhook ¶ added in v0.17.2
func (_e *IntegrationAggregate_Expecter) WantsToHandleWebhook(ctx interface{}) *IntegrationAggregate_WantsToHandleWebhook_Call
WantsToHandleWebhook is a helper method to define mock.On call
- ctx core.Context
type IntegrationAggregate_GetID_Call ¶ added in v0.17.2
IntegrationAggregate_GetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetID'
func (*IntegrationAggregate_GetID_Call) Return ¶ added in v0.17.2
func (_c *IntegrationAggregate_GetID_Call) Return(integrationID core.IntegrationID) *IntegrationAggregate_GetID_Call
func (*IntegrationAggregate_GetID_Call) Run ¶ added in v0.17.2
func (_c *IntegrationAggregate_GetID_Call) Run(run func()) *IntegrationAggregate_GetID_Call
func (*IntegrationAggregate_GetID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *IntegrationAggregate_GetID_Call) RunAndReturn(run func() core.IntegrationID) *IntegrationAggregate_GetID_Call
type IntegrationAggregate_GetIntegration_Call ¶ added in v0.17.2
IntegrationAggregate_GetIntegration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIntegration'
func (*IntegrationAggregate_GetIntegration_Call) Return ¶ added in v0.17.2
func (_c *IntegrationAggregate_GetIntegration_Call) Return(thirdPartyIntegration core.ThirdPartyIntegration) *IntegrationAggregate_GetIntegration_Call
func (*IntegrationAggregate_GetIntegration_Call) Run ¶ added in v0.17.2
func (_c *IntegrationAggregate_GetIntegration_Call) Run(run func(id core.IntegrationID)) *IntegrationAggregate_GetIntegration_Call
func (*IntegrationAggregate_GetIntegration_Call) RunAndReturn ¶ added in v0.17.2
func (_c *IntegrationAggregate_GetIntegration_Call) RunAndReturn(run func(id core.IntegrationID) core.ThirdPartyIntegration) *IntegrationAggregate_GetIntegration_Call
type IntegrationAggregate_GetUsers_Call ¶ added in v0.17.2
IntegrationAggregate_GetUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUsers'
func (*IntegrationAggregate_GetUsers_Call) Return ¶ added in v0.17.2
func (_c *IntegrationAggregate_GetUsers_Call) Return(users []core.User) *IntegrationAggregate_GetUsers_Call
func (*IntegrationAggregate_GetUsers_Call) Run ¶ added in v0.17.2
func (_c *IntegrationAggregate_GetUsers_Call) Run(run func(org models.Org)) *IntegrationAggregate_GetUsers_Call
func (*IntegrationAggregate_GetUsers_Call) RunAndReturn ¶ added in v0.17.2
func (_c *IntegrationAggregate_GetUsers_Call) RunAndReturn(run func(org models.Org) []core.User) *IntegrationAggregate_GetUsers_Call
type IntegrationAggregate_HandleEvent_Call ¶ added in v0.17.2
IntegrationAggregate_HandleEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleEvent'
func (*IntegrationAggregate_HandleEvent_Call) Return ¶ added in v0.17.2
func (_c *IntegrationAggregate_HandleEvent_Call) Return(err error) *IntegrationAggregate_HandleEvent_Call
func (*IntegrationAggregate_HandleEvent_Call) Run ¶ added in v0.17.2
func (_c *IntegrationAggregate_HandleEvent_Call) Run(run func(event any)) *IntegrationAggregate_HandleEvent_Call
func (*IntegrationAggregate_HandleEvent_Call) RunAndReturn ¶ added in v0.17.2
func (_c *IntegrationAggregate_HandleEvent_Call) RunAndReturn(run func(event any) error) *IntegrationAggregate_HandleEvent_Call
type IntegrationAggregate_HandleWebhook_Call ¶ added in v0.17.2
IntegrationAggregate_HandleWebhook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleWebhook'
func (*IntegrationAggregate_HandleWebhook_Call) Return ¶ added in v0.17.2
func (_c *IntegrationAggregate_HandleWebhook_Call) Return(err error) *IntegrationAggregate_HandleWebhook_Call
func (*IntegrationAggregate_HandleWebhook_Call) Run ¶ added in v0.17.2
func (_c *IntegrationAggregate_HandleWebhook_Call) Run(run func(ctx core.Context)) *IntegrationAggregate_HandleWebhook_Call
func (*IntegrationAggregate_HandleWebhook_Call) RunAndReturn ¶ added in v0.17.2
func (_c *IntegrationAggregate_HandleWebhook_Call) RunAndReturn(run func(ctx core.Context) error) *IntegrationAggregate_HandleWebhook_Call
type IntegrationAggregate_HasAccessToExternalEntityProvider_Call ¶ added in v0.17.2
IntegrationAggregate_HasAccessToExternalEntityProvider_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasAccessToExternalEntityProvider'
func (*IntegrationAggregate_HasAccessToExternalEntityProvider_Call) Run ¶ added in v0.17.2
func (_c *IntegrationAggregate_HasAccessToExternalEntityProvider_Call) Run(run func(ctx core.Context, externalEntityProviderID string)) *IntegrationAggregate_HasAccessToExternalEntityProvider_Call
func (*IntegrationAggregate_HasAccessToExternalEntityProvider_Call) RunAndReturn ¶ added in v0.17.2
func (_c *IntegrationAggregate_HasAccessToExternalEntityProvider_Call) RunAndReturn(run func(ctx core.Context, externalEntityProviderID string) (bool, error)) *IntegrationAggregate_HasAccessToExternalEntityProvider_Call
type IntegrationAggregate_ListGroups_Call ¶ added in v0.17.2
IntegrationAggregate_ListGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListGroups'
func (*IntegrationAggregate_ListGroups_Call) Return ¶ added in v0.17.2
func (_c *IntegrationAggregate_ListGroups_Call) Return(projects []models.Project, roles []core.Role, err error) *IntegrationAggregate_ListGroups_Call
func (*IntegrationAggregate_ListGroups_Call) Run ¶ added in v0.17.2
func (_c *IntegrationAggregate_ListGroups_Call) Run(run func(ctx context.Context, userID string, providerID string)) *IntegrationAggregate_ListGroups_Call
func (*IntegrationAggregate_ListGroups_Call) RunAndReturn ¶ added in v0.17.2
type IntegrationAggregate_ListOrgs_Call ¶ added in v0.17.2
IntegrationAggregate_ListOrgs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListOrgs'
func (*IntegrationAggregate_ListOrgs_Call) Return ¶ added in v0.17.2
func (_c *IntegrationAggregate_ListOrgs_Call) Return(orgs []models.Org, err error) *IntegrationAggregate_ListOrgs_Call
func (*IntegrationAggregate_ListOrgs_Call) Run ¶ added in v0.17.2
func (_c *IntegrationAggregate_ListOrgs_Call) Run(run func(ctx core.Context)) *IntegrationAggregate_ListOrgs_Call
func (*IntegrationAggregate_ListOrgs_Call) RunAndReturn ¶ added in v0.17.2
func (_c *IntegrationAggregate_ListOrgs_Call) RunAndReturn(run func(ctx core.Context) ([]models.Org, error)) *IntegrationAggregate_ListOrgs_Call
type IntegrationAggregate_ListProjects_Call ¶ added in v0.17.2
IntegrationAggregate_ListProjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListProjects'
func (*IntegrationAggregate_ListProjects_Call) Return ¶ added in v0.17.2
func (_c *IntegrationAggregate_ListProjects_Call) Return(assets []models.Asset, roles []core.Role, err error) *IntegrationAggregate_ListProjects_Call
func (*IntegrationAggregate_ListProjects_Call) Run ¶ added in v0.17.2
func (_c *IntegrationAggregate_ListProjects_Call) Run(run func(ctx context.Context, userID string, providerID string, groupID string)) *IntegrationAggregate_ListProjects_Call
func (*IntegrationAggregate_ListProjects_Call) RunAndReturn ¶ added in v0.17.2
type IntegrationAggregate_ListRepositories_Call ¶ added in v0.17.2
IntegrationAggregate_ListRepositories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRepositories'
func (*IntegrationAggregate_ListRepositories_Call) Return ¶ added in v0.17.2
func (_c *IntegrationAggregate_ListRepositories_Call) Return(repositorys []core.Repository, err error) *IntegrationAggregate_ListRepositories_Call
func (*IntegrationAggregate_ListRepositories_Call) Run ¶ added in v0.17.2
func (_c *IntegrationAggregate_ListRepositories_Call) Run(run func(ctx core.Context)) *IntegrationAggregate_ListRepositories_Call
func (*IntegrationAggregate_ListRepositories_Call) RunAndReturn ¶ added in v0.17.2
func (_c *IntegrationAggregate_ListRepositories_Call) RunAndReturn(run func(ctx core.Context) ([]core.Repository, error)) *IntegrationAggregate_ListRepositories_Call
type IntegrationAggregate_UpdateIssue_Call ¶ added in v0.17.2
IntegrationAggregate_UpdateIssue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateIssue'
func (*IntegrationAggregate_UpdateIssue_Call) Return ¶ added in v0.17.2
func (_c *IntegrationAggregate_UpdateIssue_Call) Return(err error) *IntegrationAggregate_UpdateIssue_Call
func (*IntegrationAggregate_UpdateIssue_Call) Run ¶ added in v0.17.2
func (_c *IntegrationAggregate_UpdateIssue_Call) Run(run func(ctx context.Context, asset models.Asset, assetVersionSlug string, vuln models.Vuln)) *IntegrationAggregate_UpdateIssue_Call
func (*IntegrationAggregate_UpdateIssue_Call) RunAndReturn ¶ added in v0.17.2
func (_c *IntegrationAggregate_UpdateIssue_Call) RunAndReturn(run func(ctx context.Context, asset models.Asset, assetVersionSlug string, vuln models.Vuln) error) *IntegrationAggregate_UpdateIssue_Call
type IntegrationAggregate_WantsToHandleWebhook_Call ¶ added in v0.17.2
IntegrationAggregate_WantsToHandleWebhook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WantsToHandleWebhook'
func (*IntegrationAggregate_WantsToHandleWebhook_Call) Return ¶ added in v0.17.2
func (_c *IntegrationAggregate_WantsToHandleWebhook_Call) Return(b bool) *IntegrationAggregate_WantsToHandleWebhook_Call
func (*IntegrationAggregate_WantsToHandleWebhook_Call) Run ¶ added in v0.17.2
func (_c *IntegrationAggregate_WantsToHandleWebhook_Call) Run(run func(ctx core.Context)) *IntegrationAggregate_WantsToHandleWebhook_Call
func (*IntegrationAggregate_WantsToHandleWebhook_Call) RunAndReturn ¶ added in v0.17.2
func (_c *IntegrationAggregate_WantsToHandleWebhook_Call) RunAndReturn(run func(ctx core.Context) bool) *IntegrationAggregate_WantsToHandleWebhook_Call
type InvitationRepository ¶ added in v0.17.2
InvitationRepository is an autogenerated mock type for the InvitationRepository type
func NewInvitationRepository ¶ added in v0.17.2
func NewInvitationRepository(t interface { mock.TestingT Cleanup(func()) }) *InvitationRepository
NewInvitationRepository creates a new instance of InvitationRepository. 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 (*InvitationRepository) Delete ¶ added in v0.17.2
Delete provides a mock function for the type InvitationRepository
func (*InvitationRepository) EXPECT ¶ added in v0.17.2
func (_m *InvitationRepository) EXPECT() *InvitationRepository_Expecter
func (*InvitationRepository) FindByCode ¶ added in v0.17.2
func (_mock *InvitationRepository) FindByCode(code string) (models.Invitation, error)
FindByCode provides a mock function for the type InvitationRepository
func (*InvitationRepository) Save ¶ added in v0.17.2
func (_mock *InvitationRepository) Save(tx core.DB, invitation *models.Invitation) error
Save provides a mock function for the type InvitationRepository
type InvitationRepository_Delete_Call ¶ added in v0.17.2
InvitationRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*InvitationRepository_Delete_Call) Return ¶ added in v0.17.2
func (_c *InvitationRepository_Delete_Call) Return(err error) *InvitationRepository_Delete_Call
func (*InvitationRepository_Delete_Call) Run ¶ added in v0.17.2
func (_c *InvitationRepository_Delete_Call) Run(run func(tx core.DB, id uuid.UUID)) *InvitationRepository_Delete_Call
func (*InvitationRepository_Delete_Call) RunAndReturn ¶ added in v0.17.2
func (_c *InvitationRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *InvitationRepository_Delete_Call
type InvitationRepository_Expecter ¶ added in v0.17.2
type InvitationRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*InvitationRepository_Expecter) Delete ¶ added in v0.17.2
func (_e *InvitationRepository_Expecter) Delete(tx interface{}, id interface{}) *InvitationRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx core.DB
- id uuid.UUID
func (*InvitationRepository_Expecter) FindByCode ¶ added in v0.17.2
func (_e *InvitationRepository_Expecter) FindByCode(code interface{}) *InvitationRepository_FindByCode_Call
FindByCode is a helper method to define mock.On call
- code string
func (*InvitationRepository_Expecter) Save ¶ added in v0.17.2
func (_e *InvitationRepository_Expecter) Save(tx interface{}, invitation interface{}) *InvitationRepository_Save_Call
Save is a helper method to define mock.On call
- tx core.DB
- invitation *models.Invitation
type InvitationRepository_FindByCode_Call ¶ added in v0.17.2
InvitationRepository_FindByCode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByCode'
func (*InvitationRepository_FindByCode_Call) Return ¶ added in v0.17.2
func (_c *InvitationRepository_FindByCode_Call) Return(invitation models.Invitation, err error) *InvitationRepository_FindByCode_Call
func (*InvitationRepository_FindByCode_Call) Run ¶ added in v0.17.2
func (_c *InvitationRepository_FindByCode_Call) Run(run func(code string)) *InvitationRepository_FindByCode_Call
func (*InvitationRepository_FindByCode_Call) RunAndReturn ¶ added in v0.17.2
func (_c *InvitationRepository_FindByCode_Call) RunAndReturn(run func(code string) (models.Invitation, error)) *InvitationRepository_FindByCode_Call
type InvitationRepository_Save_Call ¶ added in v0.17.2
InvitationRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*InvitationRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *InvitationRepository_Save_Call) Return(err error) *InvitationRepository_Save_Call
func (*InvitationRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *InvitationRepository_Save_Call) Run(run func(tx core.DB, invitation *models.Invitation)) *InvitationRepository_Save_Call
func (*InvitationRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *InvitationRepository_Save_Call) RunAndReturn(run func(tx core.DB, invitation *models.Invitation) error) *InvitationRepository_Save_Call
type JiraIntegrationRepository ¶ added in v0.17.2
JiraIntegrationRepository is an autogenerated mock type for the JiraIntegrationRepository type
func NewJiraIntegrationRepository ¶ added in v0.17.2
func NewJiraIntegrationRepository(t interface { mock.TestingT Cleanup(func()) }) *JiraIntegrationRepository
NewJiraIntegrationRepository creates a new instance of JiraIntegrationRepository. 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 (*JiraIntegrationRepository) Delete ¶ added in v0.17.2
Delete provides a mock function for the type JiraIntegrationRepository
func (*JiraIntegrationRepository) EXPECT ¶ added in v0.17.2
func (_m *JiraIntegrationRepository) EXPECT() *JiraIntegrationRepository_Expecter
func (*JiraIntegrationRepository) FindByOrganizationID ¶ added in v0.17.2
func (_mock *JiraIntegrationRepository) FindByOrganizationID(orgID uuid.UUID) ([]models.JiraIntegration, error)
FindByOrganizationID provides a mock function for the type JiraIntegrationRepository
func (*JiraIntegrationRepository) GetClientByIntegrationID ¶ added in v0.17.2
func (_mock *JiraIntegrationRepository) GetClientByIntegrationID(integrationID uuid.UUID) (models.JiraIntegration, error)
GetClientByIntegrationID provides a mock function for the type JiraIntegrationRepository
func (*JiraIntegrationRepository) Read ¶ added in v0.17.2
func (_mock *JiraIntegrationRepository) Read(id uuid.UUID) (models.JiraIntegration, error)
Read provides a mock function for the type JiraIntegrationRepository
func (*JiraIntegrationRepository) Save ¶ added in v0.17.2
func (_mock *JiraIntegrationRepository) Save(tx core.DB, model *models.JiraIntegration) error
Save provides a mock function for the type JiraIntegrationRepository
type JiraIntegrationRepository_Delete_Call ¶ added in v0.17.2
JiraIntegrationRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*JiraIntegrationRepository_Delete_Call) Return ¶ added in v0.17.2
func (_c *JiraIntegrationRepository_Delete_Call) Return(err error) *JiraIntegrationRepository_Delete_Call
func (*JiraIntegrationRepository_Delete_Call) Run ¶ added in v0.17.2
func (_c *JiraIntegrationRepository_Delete_Call) Run(run func(tx core.DB, id uuid.UUID)) *JiraIntegrationRepository_Delete_Call
func (*JiraIntegrationRepository_Delete_Call) RunAndReturn ¶ added in v0.17.2
func (_c *JiraIntegrationRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *JiraIntegrationRepository_Delete_Call
type JiraIntegrationRepository_Expecter ¶ added in v0.17.2
type JiraIntegrationRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*JiraIntegrationRepository_Expecter) Delete ¶ added in v0.17.2
func (_e *JiraIntegrationRepository_Expecter) Delete(tx interface{}, id interface{}) *JiraIntegrationRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx core.DB
- id uuid.UUID
func (*JiraIntegrationRepository_Expecter) FindByOrganizationID ¶ added in v0.17.2
func (_e *JiraIntegrationRepository_Expecter) FindByOrganizationID(orgID interface{}) *JiraIntegrationRepository_FindByOrganizationID_Call
FindByOrganizationID is a helper method to define mock.On call
- orgID uuid.UUID
func (*JiraIntegrationRepository_Expecter) GetClientByIntegrationID ¶ added in v0.17.2
func (_e *JiraIntegrationRepository_Expecter) GetClientByIntegrationID(integrationID interface{}) *JiraIntegrationRepository_GetClientByIntegrationID_Call
GetClientByIntegrationID is a helper method to define mock.On call
- integrationID uuid.UUID
func (*JiraIntegrationRepository_Expecter) Read ¶ added in v0.17.2
func (_e *JiraIntegrationRepository_Expecter) Read(id interface{}) *JiraIntegrationRepository_Read_Call
Read is a helper method to define mock.On call
- id uuid.UUID
func (*JiraIntegrationRepository_Expecter) Save ¶ added in v0.17.2
func (_e *JiraIntegrationRepository_Expecter) Save(tx interface{}, model interface{}) *JiraIntegrationRepository_Save_Call
Save is a helper method to define mock.On call
- tx core.DB
- model *models.JiraIntegration
type JiraIntegrationRepository_FindByOrganizationID_Call ¶ added in v0.17.2
JiraIntegrationRepository_FindByOrganizationID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByOrganizationID'
func (*JiraIntegrationRepository_FindByOrganizationID_Call) Return ¶ added in v0.17.2
func (_c *JiraIntegrationRepository_FindByOrganizationID_Call) Return(jiraIntegrations []models.JiraIntegration, err error) *JiraIntegrationRepository_FindByOrganizationID_Call
func (*JiraIntegrationRepository_FindByOrganizationID_Call) Run ¶ added in v0.17.2
func (_c *JiraIntegrationRepository_FindByOrganizationID_Call) Run(run func(orgID uuid.UUID)) *JiraIntegrationRepository_FindByOrganizationID_Call
func (*JiraIntegrationRepository_FindByOrganizationID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *JiraIntegrationRepository_FindByOrganizationID_Call) RunAndReturn(run func(orgID uuid.UUID) ([]models.JiraIntegration, error)) *JiraIntegrationRepository_FindByOrganizationID_Call
type JiraIntegrationRepository_GetClientByIntegrationID_Call ¶ added in v0.17.2
JiraIntegrationRepository_GetClientByIntegrationID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClientByIntegrationID'
func (*JiraIntegrationRepository_GetClientByIntegrationID_Call) Return ¶ added in v0.17.2
func (_c *JiraIntegrationRepository_GetClientByIntegrationID_Call) Return(jiraIntegration models.JiraIntegration, err error) *JiraIntegrationRepository_GetClientByIntegrationID_Call
func (*JiraIntegrationRepository_GetClientByIntegrationID_Call) Run ¶ added in v0.17.2
func (_c *JiraIntegrationRepository_GetClientByIntegrationID_Call) Run(run func(integrationID uuid.UUID)) *JiraIntegrationRepository_GetClientByIntegrationID_Call
func (*JiraIntegrationRepository_GetClientByIntegrationID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *JiraIntegrationRepository_GetClientByIntegrationID_Call) RunAndReturn(run func(integrationID uuid.UUID) (models.JiraIntegration, error)) *JiraIntegrationRepository_GetClientByIntegrationID_Call
type JiraIntegrationRepository_Read_Call ¶ added in v0.17.2
JiraIntegrationRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*JiraIntegrationRepository_Read_Call) Return ¶ added in v0.17.2
func (_c *JiraIntegrationRepository_Read_Call) Return(jiraIntegration models.JiraIntegration, err error) *JiraIntegrationRepository_Read_Call
func (*JiraIntegrationRepository_Read_Call) Run ¶ added in v0.17.2
func (_c *JiraIntegrationRepository_Read_Call) Run(run func(id uuid.UUID)) *JiraIntegrationRepository_Read_Call
func (*JiraIntegrationRepository_Read_Call) RunAndReturn ¶ added in v0.17.2
func (_c *JiraIntegrationRepository_Read_Call) RunAndReturn(run func(id uuid.UUID) (models.JiraIntegration, error)) *JiraIntegrationRepository_Read_Call
type JiraIntegrationRepository_Save_Call ¶ added in v0.17.2
JiraIntegrationRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*JiraIntegrationRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *JiraIntegrationRepository_Save_Call) Return(err error) *JiraIntegrationRepository_Save_Call
func (*JiraIntegrationRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *JiraIntegrationRepository_Save_Call) Run(run func(tx core.DB, model *models.JiraIntegration)) *JiraIntegrationRepository_Save_Call
func (*JiraIntegrationRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *JiraIntegrationRepository_Save_Call) RunAndReturn(run func(tx core.DB, model *models.JiraIntegration) error) *JiraIntegrationRepository_Save_Call
type LicenseRiskRepository ¶ added in v0.17.2
LicenseRiskRepository is an autogenerated mock type for the LicenseRiskRepository type
func NewLicenseRiskRepository ¶ added in v0.17.2
func NewLicenseRiskRepository(t interface { mock.TestingT Cleanup(func()) }) *LicenseRiskRepository
NewLicenseRiskRepository creates a new instance of LicenseRiskRepository. 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 (*LicenseRiskRepository) Activate ¶ added in v0.17.2
func (_mock *LicenseRiskRepository) Activate(tx core.DB, id string) error
Activate provides a mock function for the type LicenseRiskRepository
func (*LicenseRiskRepository) All ¶ added in v0.17.2
func (_mock *LicenseRiskRepository) All() ([]models.LicenseRisk, error)
All provides a mock function for the type LicenseRiskRepository
func (*LicenseRiskRepository) ApplyAndSave ¶ added in v0.17.2
func (_mock *LicenseRiskRepository) ApplyAndSave(tx core.DB, licenseRisk *models.LicenseRisk, vulnEvent *models.VulnEvent) error
ApplyAndSave provides a mock function for the type LicenseRiskRepository
func (*LicenseRiskRepository) Begin ¶ added in v0.17.2
func (_mock *LicenseRiskRepository) Begin() core.DB
Begin provides a mock function for the type LicenseRiskRepository
func (*LicenseRiskRepository) Create ¶ added in v0.17.2
func (_mock *LicenseRiskRepository) Create(tx core.DB, t *models.LicenseRisk) error
Create provides a mock function for the type LicenseRiskRepository
func (*LicenseRiskRepository) CreateBatch ¶ added in v0.17.2
func (_mock *LicenseRiskRepository) CreateBatch(tx core.DB, ts []models.LicenseRisk) error
CreateBatch provides a mock function for the type LicenseRiskRepository
func (*LicenseRiskRepository) Delete ¶ added in v0.17.2
func (_mock *LicenseRiskRepository) Delete(tx core.DB, id string) error
Delete provides a mock function for the type LicenseRiskRepository
func (*LicenseRiskRepository) DeleteBatch ¶ added in v0.17.2
func (_mock *LicenseRiskRepository) DeleteBatch(tx core.DB, ids []models.LicenseRisk) error
DeleteBatch provides a mock function for the type LicenseRiskRepository
func (*LicenseRiskRepository) DeleteByComponentPurl ¶ added in v0.17.2
func (_mock *LicenseRiskRepository) DeleteByComponentPurl(assetID uuid.UUID, assetVersionName string, purl packageurl.PackageURL) error
DeleteByComponentPurl provides a mock function for the type LicenseRiskRepository
func (*LicenseRiskRepository) EXPECT ¶ added in v0.17.2
func (_m *LicenseRiskRepository) EXPECT() *LicenseRiskRepository_Expecter
func (*LicenseRiskRepository) GetAllLicenseRisksForAssetVersion ¶ added in v0.17.2
func (_mock *LicenseRiskRepository) GetAllLicenseRisksForAssetVersion(assetID uuid.UUID, assetVersionName string) ([]models.LicenseRisk, error)
GetAllLicenseRisksForAssetVersion provides a mock function for the type LicenseRiskRepository
func (*LicenseRiskRepository) GetAllLicenseRisksForAssetVersionPaged ¶ added in v0.17.2
func (_mock *LicenseRiskRepository) GetAllLicenseRisksForAssetVersionPaged(tx core.DB, assetID uuid.UUID, assetVersionName string, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.LicenseRisk], error)
GetAllLicenseRisksForAssetVersionPaged provides a mock function for the type LicenseRiskRepository
func (*LicenseRiskRepository) GetAllOverwrittenLicensesForAssetVersion ¶ added in v0.17.2
func (_mock *LicenseRiskRepository) GetAllOverwrittenLicensesForAssetVersion(assetID uuid.UUID, assetVersionName string) ([]models.LicenseRisk, error)
GetAllOverwrittenLicensesForAssetVersion provides a mock function for the type LicenseRiskRepository
func (*LicenseRiskRepository) GetDB ¶ added in v0.17.2
func (_mock *LicenseRiskRepository) GetDB(tx core.DB) core.DB
GetDB provides a mock function for the type LicenseRiskRepository
func (*LicenseRiskRepository) GetLicenseRisksByOtherAssetVersions ¶ added in v0.17.2
func (_mock *LicenseRiskRepository) GetLicenseRisksByOtherAssetVersions(tx core.DB, assetVersionName string, assetID uuid.UUID) ([]models.LicenseRisk, error)
GetLicenseRisksByOtherAssetVersions provides a mock function for the type LicenseRiskRepository
func (*LicenseRiskRepository) List ¶ added in v0.17.2
func (_mock *LicenseRiskRepository) List(ids []string) ([]models.LicenseRisk, error)
List provides a mock function for the type LicenseRiskRepository
func (*LicenseRiskRepository) ListByArtifactName ¶ added in v0.17.2
func (_mock *LicenseRiskRepository) ListByArtifactName(assetVersionName string, assetID uuid.UUID, scannerID string) ([]models.LicenseRisk, error)
ListByArtifactName provides a mock function for the type LicenseRiskRepository
func (*LicenseRiskRepository) MaybeGetLicenseOverwriteForComponent ¶ added in v0.17.2
func (_mock *LicenseRiskRepository) MaybeGetLicenseOverwriteForComponent(assetID uuid.UUID, assetVersionName string, pURL packageurl.PackageURL) (models.LicenseRisk, error)
MaybeGetLicenseOverwriteForComponent provides a mock function for the type LicenseRiskRepository
func (*LicenseRiskRepository) Read ¶ added in v0.17.2
func (_mock *LicenseRiskRepository) Read(id string) (models.LicenseRisk, error)
Read provides a mock function for the type LicenseRiskRepository
func (*LicenseRiskRepository) Save ¶ added in v0.17.2
func (_mock *LicenseRiskRepository) Save(tx core.DB, t *models.LicenseRisk) error
Save provides a mock function for the type LicenseRiskRepository
func (*LicenseRiskRepository) SaveBatch ¶ added in v0.17.2
func (_mock *LicenseRiskRepository) SaveBatch(tx core.DB, ts []models.LicenseRisk) error
SaveBatch provides a mock function for the type LicenseRiskRepository
func (*LicenseRiskRepository) Transaction ¶ added in v0.17.2
func (_mock *LicenseRiskRepository) Transaction(fn func(tx core.DB) error) error
Transaction provides a mock function for the type LicenseRiskRepository
func (*LicenseRiskRepository) Upsert ¶ added in v0.17.2
func (_mock *LicenseRiskRepository) Upsert(t *[]*models.LicenseRisk, conflictingColumns []clause.Column, updateOnly []string) error
Upsert provides a mock function for the type LicenseRiskRepository
type LicenseRiskRepository_Activate_Call ¶ added in v0.17.2
LicenseRiskRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*LicenseRiskRepository_Activate_Call) Return ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Activate_Call) Return(err error) *LicenseRiskRepository_Activate_Call
func (*LicenseRiskRepository_Activate_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Activate_Call) Run(run func(tx core.DB, id string)) *LicenseRiskRepository_Activate_Call
func (*LicenseRiskRepository_Activate_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id string) error) *LicenseRiskRepository_Activate_Call
type LicenseRiskRepository_All_Call ¶ added in v0.17.2
LicenseRiskRepository_All_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'All'
func (*LicenseRiskRepository_All_Call) Return ¶ added in v0.17.2
func (_c *LicenseRiskRepository_All_Call) Return(licenseRisks []models.LicenseRisk, err error) *LicenseRiskRepository_All_Call
func (*LicenseRiskRepository_All_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskRepository_All_Call) Run(run func()) *LicenseRiskRepository_All_Call
func (*LicenseRiskRepository_All_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskRepository_All_Call) RunAndReturn(run func() ([]models.LicenseRisk, error)) *LicenseRiskRepository_All_Call
type LicenseRiskRepository_ApplyAndSave_Call ¶ added in v0.17.2
LicenseRiskRepository_ApplyAndSave_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyAndSave'
func (*LicenseRiskRepository_ApplyAndSave_Call) Return ¶ added in v0.17.2
func (_c *LicenseRiskRepository_ApplyAndSave_Call) Return(err error) *LicenseRiskRepository_ApplyAndSave_Call
func (*LicenseRiskRepository_ApplyAndSave_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskRepository_ApplyAndSave_Call) Run(run func(tx core.DB, licenseRisk *models.LicenseRisk, vulnEvent *models.VulnEvent)) *LicenseRiskRepository_ApplyAndSave_Call
func (*LicenseRiskRepository_ApplyAndSave_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskRepository_ApplyAndSave_Call) RunAndReturn(run func(tx core.DB, licenseRisk *models.LicenseRisk, vulnEvent *models.VulnEvent) error) *LicenseRiskRepository_ApplyAndSave_Call
type LicenseRiskRepository_Begin_Call ¶ added in v0.17.2
LicenseRiskRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*LicenseRiskRepository_Begin_Call) Return ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Begin_Call) Return(v core.DB) *LicenseRiskRepository_Begin_Call
func (*LicenseRiskRepository_Begin_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Begin_Call) Run(run func()) *LicenseRiskRepository_Begin_Call
func (*LicenseRiskRepository_Begin_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Begin_Call) RunAndReturn(run func() core.DB) *LicenseRiskRepository_Begin_Call
type LicenseRiskRepository_CreateBatch_Call ¶ added in v0.17.2
LicenseRiskRepository_CreateBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBatch'
func (*LicenseRiskRepository_CreateBatch_Call) Return ¶ added in v0.17.2
func (_c *LicenseRiskRepository_CreateBatch_Call) Return(err error) *LicenseRiskRepository_CreateBatch_Call
func (*LicenseRiskRepository_CreateBatch_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.LicenseRisk)) *LicenseRiskRepository_CreateBatch_Call
func (*LicenseRiskRepository_CreateBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.LicenseRisk) error) *LicenseRiskRepository_CreateBatch_Call
type LicenseRiskRepository_Create_Call ¶ added in v0.17.2
LicenseRiskRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*LicenseRiskRepository_Create_Call) Return ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Create_Call) Return(err error) *LicenseRiskRepository_Create_Call
func (*LicenseRiskRepository_Create_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Create_Call) Run(run func(tx core.DB, t *models.LicenseRisk)) *LicenseRiskRepository_Create_Call
func (*LicenseRiskRepository_Create_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.LicenseRisk) error) *LicenseRiskRepository_Create_Call
type LicenseRiskRepository_DeleteBatch_Call ¶ added in v0.17.2
LicenseRiskRepository_DeleteBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBatch'
func (*LicenseRiskRepository_DeleteBatch_Call) Return ¶ added in v0.17.2
func (_c *LicenseRiskRepository_DeleteBatch_Call) Return(err error) *LicenseRiskRepository_DeleteBatch_Call
func (*LicenseRiskRepository_DeleteBatch_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.LicenseRisk)) *LicenseRiskRepository_DeleteBatch_Call
func (*LicenseRiskRepository_DeleteBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.LicenseRisk) error) *LicenseRiskRepository_DeleteBatch_Call
type LicenseRiskRepository_DeleteByComponentPurl_Call ¶ added in v0.17.2
LicenseRiskRepository_DeleteByComponentPurl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByComponentPurl'
func (*LicenseRiskRepository_DeleteByComponentPurl_Call) Return ¶ added in v0.17.2
func (_c *LicenseRiskRepository_DeleteByComponentPurl_Call) Return(err error) *LicenseRiskRepository_DeleteByComponentPurl_Call
func (*LicenseRiskRepository_DeleteByComponentPurl_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskRepository_DeleteByComponentPurl_Call) Run(run func(assetID uuid.UUID, assetVersionName string, purl packageurl.PackageURL)) *LicenseRiskRepository_DeleteByComponentPurl_Call
func (*LicenseRiskRepository_DeleteByComponentPurl_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskRepository_DeleteByComponentPurl_Call) RunAndReturn(run func(assetID uuid.UUID, assetVersionName string, purl packageurl.PackageURL) error) *LicenseRiskRepository_DeleteByComponentPurl_Call
type LicenseRiskRepository_Delete_Call ¶ added in v0.17.2
LicenseRiskRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*LicenseRiskRepository_Delete_Call) Return ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Delete_Call) Return(err error) *LicenseRiskRepository_Delete_Call
func (*LicenseRiskRepository_Delete_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Delete_Call) Run(run func(tx core.DB, id string)) *LicenseRiskRepository_Delete_Call
func (*LicenseRiskRepository_Delete_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id string) error) *LicenseRiskRepository_Delete_Call
type LicenseRiskRepository_Expecter ¶ added in v0.17.2
type LicenseRiskRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*LicenseRiskRepository_Expecter) Activate ¶ added in v0.17.2
func (_e *LicenseRiskRepository_Expecter) Activate(tx interface{}, id interface{}) *LicenseRiskRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx core.DB
- id string
func (*LicenseRiskRepository_Expecter) All ¶ added in v0.17.2
func (_e *LicenseRiskRepository_Expecter) All() *LicenseRiskRepository_All_Call
All is a helper method to define mock.On call
func (*LicenseRiskRepository_Expecter) ApplyAndSave ¶ added in v0.17.2
func (_e *LicenseRiskRepository_Expecter) ApplyAndSave(tx interface{}, licenseRisk interface{}, vulnEvent interface{}) *LicenseRiskRepository_ApplyAndSave_Call
ApplyAndSave is a helper method to define mock.On call
- tx core.DB
- licenseRisk *models.LicenseRisk
- vulnEvent *models.VulnEvent
func (*LicenseRiskRepository_Expecter) Begin ¶ added in v0.17.2
func (_e *LicenseRiskRepository_Expecter) Begin() *LicenseRiskRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*LicenseRiskRepository_Expecter) Create ¶ added in v0.17.2
func (_e *LicenseRiskRepository_Expecter) Create(tx interface{}, t interface{}) *LicenseRiskRepository_Create_Call
Create is a helper method to define mock.On call
- tx core.DB
- t *models.LicenseRisk
func (*LicenseRiskRepository_Expecter) CreateBatch ¶ added in v0.17.2
func (_e *LicenseRiskRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *LicenseRiskRepository_CreateBatch_Call
CreateBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.LicenseRisk
func (*LicenseRiskRepository_Expecter) Delete ¶ added in v0.17.2
func (_e *LicenseRiskRepository_Expecter) Delete(tx interface{}, id interface{}) *LicenseRiskRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx core.DB
- id string
func (*LicenseRiskRepository_Expecter) DeleteBatch ¶ added in v0.17.2
func (_e *LicenseRiskRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *LicenseRiskRepository_DeleteBatch_Call
DeleteBatch is a helper method to define mock.On call
- tx core.DB
- ids []models.LicenseRisk
func (*LicenseRiskRepository_Expecter) DeleteByComponentPurl ¶ added in v0.17.2
func (_e *LicenseRiskRepository_Expecter) DeleteByComponentPurl(assetID interface{}, assetVersionName interface{}, purl interface{}) *LicenseRiskRepository_DeleteByComponentPurl_Call
DeleteByComponentPurl is a helper method to define mock.On call
- assetID uuid.UUID
- assetVersionName string
- purl packageurl.PackageURL
func (*LicenseRiskRepository_Expecter) GetAllLicenseRisksForAssetVersion ¶ added in v0.17.2
func (_e *LicenseRiskRepository_Expecter) GetAllLicenseRisksForAssetVersion(assetID interface{}, assetVersionName interface{}) *LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call
GetAllLicenseRisksForAssetVersion is a helper method to define mock.On call
- assetID uuid.UUID
- assetVersionName string
func (*LicenseRiskRepository_Expecter) GetAllLicenseRisksForAssetVersionPaged ¶ added in v0.17.2
func (_e *LicenseRiskRepository_Expecter) GetAllLicenseRisksForAssetVersionPaged(tx interface{}, assetID interface{}, assetVersionName interface{}, pageInfo interface{}, search interface{}, filter interface{}, sort interface{}) *LicenseRiskRepository_GetAllLicenseRisksForAssetVersionPaged_Call
GetAllLicenseRisksForAssetVersionPaged is a helper method to define mock.On call
- tx core.DB
- assetID uuid.UUID
- assetVersionName string
- pageInfo core.PageInfo
- search string
- filter []core.FilterQuery
- sort []core.SortQuery
func (*LicenseRiskRepository_Expecter) GetAllOverwrittenLicensesForAssetVersion ¶ added in v0.17.2
func (_e *LicenseRiskRepository_Expecter) GetAllOverwrittenLicensesForAssetVersion(assetID interface{}, assetVersionName interface{}) *LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call
GetAllOverwrittenLicensesForAssetVersion is a helper method to define mock.On call
- assetID uuid.UUID
- assetVersionName string
func (*LicenseRiskRepository_Expecter) GetDB ¶ added in v0.17.2
func (_e *LicenseRiskRepository_Expecter) GetDB(tx interface{}) *LicenseRiskRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx core.DB
func (*LicenseRiskRepository_Expecter) GetLicenseRisksByOtherAssetVersions ¶ added in v0.17.2
func (_e *LicenseRiskRepository_Expecter) GetLicenseRisksByOtherAssetVersions(tx interface{}, assetVersionName interface{}, assetID interface{}) *LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call
GetLicenseRisksByOtherAssetVersions is a helper method to define mock.On call
- tx core.DB
- assetVersionName string
- assetID uuid.UUID
func (*LicenseRiskRepository_Expecter) List ¶ added in v0.17.2
func (_e *LicenseRiskRepository_Expecter) List(ids interface{}) *LicenseRiskRepository_List_Call
List is a helper method to define mock.On call
- ids []string
func (*LicenseRiskRepository_Expecter) ListByArtifactName ¶ added in v0.17.2
func (_e *LicenseRiskRepository_Expecter) ListByArtifactName(assetVersionName interface{}, assetID interface{}, scannerID interface{}) *LicenseRiskRepository_ListByArtifactName_Call
ListByArtifactName is a helper method to define mock.On call
- assetVersionName string
- assetID uuid.UUID
- scannerID string
func (*LicenseRiskRepository_Expecter) MaybeGetLicenseOverwriteForComponent ¶ added in v0.17.2
func (_e *LicenseRiskRepository_Expecter) MaybeGetLicenseOverwriteForComponent(assetID interface{}, assetVersionName interface{}, pURL interface{}) *LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call
MaybeGetLicenseOverwriteForComponent is a helper method to define mock.On call
- assetID uuid.UUID
- assetVersionName string
- pURL packageurl.PackageURL
func (*LicenseRiskRepository_Expecter) Read ¶ added in v0.17.2
func (_e *LicenseRiskRepository_Expecter) Read(id interface{}) *LicenseRiskRepository_Read_Call
Read is a helper method to define mock.On call
- id string
func (*LicenseRiskRepository_Expecter) Save ¶ added in v0.17.2
func (_e *LicenseRiskRepository_Expecter) Save(tx interface{}, t interface{}) *LicenseRiskRepository_Save_Call
Save is a helper method to define mock.On call
- tx core.DB
- t *models.LicenseRisk
func (*LicenseRiskRepository_Expecter) SaveBatch ¶ added in v0.17.2
func (_e *LicenseRiskRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *LicenseRiskRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.LicenseRisk
func (*LicenseRiskRepository_Expecter) Transaction ¶ added in v0.17.2
func (_e *LicenseRiskRepository_Expecter) Transaction(fn interface{}) *LicenseRiskRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- fn func(tx core.DB) error
func (*LicenseRiskRepository_Expecter) Upsert ¶ added in v0.17.2
func (_e *LicenseRiskRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *LicenseRiskRepository_Upsert_Call
Upsert is a helper method to define mock.On call
- t *[]*models.LicenseRisk
- conflictingColumns []clause.Column
- updateOnly []string
type LicenseRiskRepository_GetAllLicenseRisksForAssetVersionPaged_Call ¶ added in v0.17.2
LicenseRiskRepository_GetAllLicenseRisksForAssetVersionPaged_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllLicenseRisksForAssetVersionPaged'
func (*LicenseRiskRepository_GetAllLicenseRisksForAssetVersionPaged_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskRepository_GetAllLicenseRisksForAssetVersionPaged_Call) Run(run func(tx core.DB, assetID uuid.UUID, assetVersionName string, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery)) *LicenseRiskRepository_GetAllLicenseRisksForAssetVersionPaged_Call
func (*LicenseRiskRepository_GetAllLicenseRisksForAssetVersionPaged_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskRepository_GetAllLicenseRisksForAssetVersionPaged_Call) RunAndReturn(run func(tx core.DB, assetID uuid.UUID, assetVersionName string, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.LicenseRisk], error)) *LicenseRiskRepository_GetAllLicenseRisksForAssetVersionPaged_Call
type LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call ¶ added in v0.17.2
LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllLicenseRisksForAssetVersion'
func (*LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call) Return ¶ added in v0.17.2
func (_c *LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call) Return(licenseRisks []models.LicenseRisk, err error) *LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call
func (*LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call) Run(run func(assetID uuid.UUID, assetVersionName string)) *LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call
func (*LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call) RunAndReturn(run func(assetID uuid.UUID, assetVersionName string) ([]models.LicenseRisk, error)) *LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call
type LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call ¶ added in v0.17.2
LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllOverwrittenLicensesForAssetVersion'
func (*LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call) Return ¶ added in v0.17.2
func (_c *LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call) Return(licenseRisks []models.LicenseRisk, err error) *LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call
func (*LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call) Run(run func(assetID uuid.UUID, assetVersionName string)) *LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call
func (*LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call) RunAndReturn(run func(assetID uuid.UUID, assetVersionName string) ([]models.LicenseRisk, error)) *LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call
type LicenseRiskRepository_GetDB_Call ¶ added in v0.17.2
LicenseRiskRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*LicenseRiskRepository_GetDB_Call) Return ¶ added in v0.17.2
func (_c *LicenseRiskRepository_GetDB_Call) Return(v core.DB) *LicenseRiskRepository_GetDB_Call
func (*LicenseRiskRepository_GetDB_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskRepository_GetDB_Call) Run(run func(tx core.DB)) *LicenseRiskRepository_GetDB_Call
func (*LicenseRiskRepository_GetDB_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *LicenseRiskRepository_GetDB_Call
type LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call ¶ added in v0.17.2
LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLicenseRisksByOtherAssetVersions'
func (*LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call) Return ¶ added in v0.17.2
func (_c *LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call) Return(licenseRisks []models.LicenseRisk, err error) *LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call
func (*LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call) Run(run func(tx core.DB, assetVersionName string, assetID uuid.UUID)) *LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call
func (*LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call) RunAndReturn(run func(tx core.DB, assetVersionName string, assetID uuid.UUID) ([]models.LicenseRisk, error)) *LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call
type LicenseRiskRepository_ListByArtifactName_Call ¶ added in v0.17.2
LicenseRiskRepository_ListByArtifactName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByArtifactName'
func (*LicenseRiskRepository_ListByArtifactName_Call) Return ¶ added in v0.17.2
func (_c *LicenseRiskRepository_ListByArtifactName_Call) Return(licenseRisks []models.LicenseRisk, err error) *LicenseRiskRepository_ListByArtifactName_Call
func (*LicenseRiskRepository_ListByArtifactName_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskRepository_ListByArtifactName_Call) Run(run func(assetVersionName string, assetID uuid.UUID, scannerID string)) *LicenseRiskRepository_ListByArtifactName_Call
func (*LicenseRiskRepository_ListByArtifactName_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskRepository_ListByArtifactName_Call) RunAndReturn(run func(assetVersionName string, assetID uuid.UUID, scannerID string) ([]models.LicenseRisk, error)) *LicenseRiskRepository_ListByArtifactName_Call
type LicenseRiskRepository_List_Call ¶ added in v0.17.2
LicenseRiskRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*LicenseRiskRepository_List_Call) Return ¶ added in v0.17.2
func (_c *LicenseRiskRepository_List_Call) Return(licenseRisks []models.LicenseRisk, err error) *LicenseRiskRepository_List_Call
func (*LicenseRiskRepository_List_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskRepository_List_Call) Run(run func(ids []string)) *LicenseRiskRepository_List_Call
func (*LicenseRiskRepository_List_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskRepository_List_Call) RunAndReturn(run func(ids []string) ([]models.LicenseRisk, error)) *LicenseRiskRepository_List_Call
type LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call ¶ added in v0.17.2
LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MaybeGetLicenseOverwriteForComponent'
func (*LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call) Return ¶ added in v0.17.2
func (_c *LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call) Return(licenseRisk models.LicenseRisk, err error) *LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call
func (*LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call) Run(run func(assetID uuid.UUID, assetVersionName string, pURL packageurl.PackageURL)) *LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call
func (*LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call) RunAndReturn(run func(assetID uuid.UUID, assetVersionName string, pURL packageurl.PackageURL) (models.LicenseRisk, error)) *LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call
type LicenseRiskRepository_Read_Call ¶ added in v0.17.2
LicenseRiskRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*LicenseRiskRepository_Read_Call) Return ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Read_Call) Return(licenseRisk models.LicenseRisk, err error) *LicenseRiskRepository_Read_Call
func (*LicenseRiskRepository_Read_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Read_Call) Run(run func(id string)) *LicenseRiskRepository_Read_Call
func (*LicenseRiskRepository_Read_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Read_Call) RunAndReturn(run func(id string) (models.LicenseRisk, error)) *LicenseRiskRepository_Read_Call
type LicenseRiskRepository_SaveBatch_Call ¶ added in v0.17.2
LicenseRiskRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*LicenseRiskRepository_SaveBatch_Call) Return ¶ added in v0.17.2
func (_c *LicenseRiskRepository_SaveBatch_Call) Return(err error) *LicenseRiskRepository_SaveBatch_Call
func (*LicenseRiskRepository_SaveBatch_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.LicenseRisk)) *LicenseRiskRepository_SaveBatch_Call
func (*LicenseRiskRepository_SaveBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.LicenseRisk) error) *LicenseRiskRepository_SaveBatch_Call
type LicenseRiskRepository_Save_Call ¶ added in v0.17.2
LicenseRiskRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*LicenseRiskRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Save_Call) Return(err error) *LicenseRiskRepository_Save_Call
func (*LicenseRiskRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Save_Call) Run(run func(tx core.DB, t *models.LicenseRisk)) *LicenseRiskRepository_Save_Call
func (*LicenseRiskRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *models.LicenseRisk) error) *LicenseRiskRepository_Save_Call
type LicenseRiskRepository_Transaction_Call ¶ added in v0.17.2
LicenseRiskRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*LicenseRiskRepository_Transaction_Call) Return ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Transaction_Call) Return(err error) *LicenseRiskRepository_Transaction_Call
func (*LicenseRiskRepository_Transaction_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *LicenseRiskRepository_Transaction_Call
func (*LicenseRiskRepository_Transaction_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *LicenseRiskRepository_Transaction_Call
type LicenseRiskRepository_Upsert_Call ¶ added in v0.17.2
LicenseRiskRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*LicenseRiskRepository_Upsert_Call) Return ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Upsert_Call) Return(err error) *LicenseRiskRepository_Upsert_Call
func (*LicenseRiskRepository_Upsert_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Upsert_Call) Run(run func(t *[]*models.LicenseRisk, conflictingColumns []clause.Column, updateOnly []string)) *LicenseRiskRepository_Upsert_Call
func (*LicenseRiskRepository_Upsert_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskRepository_Upsert_Call) RunAndReturn(run func(t *[]*models.LicenseRisk, conflictingColumns []clause.Column, updateOnly []string) error) *LicenseRiskRepository_Upsert_Call
type LicenseRiskService ¶ added in v0.17.2
LicenseRiskService is an autogenerated mock type for the LicenseRiskService type
func NewLicenseRiskService ¶ added in v0.17.2
func NewLicenseRiskService(t interface { mock.TestingT Cleanup(func()) }) *LicenseRiskService
NewLicenseRiskService creates a new instance of LicenseRiskService. 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 (*LicenseRiskService) EXPECT ¶ added in v0.17.2
func (_m *LicenseRiskService) EXPECT() *LicenseRiskService_Expecter
func (*LicenseRiskService) FindLicenseRisksInComponents ¶ added in v0.17.2
func (_mock *LicenseRiskService) FindLicenseRisksInComponents(assetVersion models.AssetVersion, components []models.Component, artifactName string) error
FindLicenseRisksInComponents provides a mock function for the type LicenseRiskService
func (*LicenseRiskService) MakeFinalLicenseDecision ¶ added in v0.17.2
func (_mock *LicenseRiskService) MakeFinalLicenseDecision(vulnID string, finalLicense string, justification string, userID string) error
MakeFinalLicenseDecision provides a mock function for the type LicenseRiskService
func (*LicenseRiskService) UpdateLicenseRiskState ¶ added in v0.17.2
func (_mock *LicenseRiskService) UpdateLicenseRiskState(tx core.DB, userID string, licenseRisk *models.LicenseRisk, statusType string, justification string, mechanicalJustification models.MechanicalJustificationType) (models.VulnEvent, error)
UpdateLicenseRiskState provides a mock function for the type LicenseRiskService
type LicenseRiskService_Expecter ¶ added in v0.17.2
type LicenseRiskService_Expecter struct {
// contains filtered or unexported fields
}
func (*LicenseRiskService_Expecter) FindLicenseRisksInComponents ¶ added in v0.17.2
func (_e *LicenseRiskService_Expecter) FindLicenseRisksInComponents(assetVersion interface{}, components interface{}, artifactName interface{}) *LicenseRiskService_FindLicenseRisksInComponents_Call
FindLicenseRisksInComponents is a helper method to define mock.On call
- assetVersion models.AssetVersion
- components []models.Component
- artifactName string
func (*LicenseRiskService_Expecter) MakeFinalLicenseDecision ¶ added in v0.17.2
func (_e *LicenseRiskService_Expecter) MakeFinalLicenseDecision(vulnID interface{}, finalLicense interface{}, justification interface{}, userID interface{}) *LicenseRiskService_MakeFinalLicenseDecision_Call
MakeFinalLicenseDecision is a helper method to define mock.On call
- vulnID string
- finalLicense string
- justification string
- userID string
func (*LicenseRiskService_Expecter) UpdateLicenseRiskState ¶ added in v0.17.2
func (_e *LicenseRiskService_Expecter) UpdateLicenseRiskState(tx interface{}, userID interface{}, licenseRisk interface{}, statusType interface{}, justification interface{}, mechanicalJustification interface{}) *LicenseRiskService_UpdateLicenseRiskState_Call
UpdateLicenseRiskState is a helper method to define mock.On call
- tx core.DB
- userID string
- licenseRisk *models.LicenseRisk
- statusType string
- justification string
- mechanicalJustification models.MechanicalJustificationType
type LicenseRiskService_FindLicenseRisksInComponents_Call ¶ added in v0.17.2
LicenseRiskService_FindLicenseRisksInComponents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindLicenseRisksInComponents'
func (*LicenseRiskService_FindLicenseRisksInComponents_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskService_FindLicenseRisksInComponents_Call) Run(run func(assetVersion models.AssetVersion, components []models.Component, artifactName string)) *LicenseRiskService_FindLicenseRisksInComponents_Call
func (*LicenseRiskService_FindLicenseRisksInComponents_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskService_FindLicenseRisksInComponents_Call) RunAndReturn(run func(assetVersion models.AssetVersion, components []models.Component, artifactName string) error) *LicenseRiskService_FindLicenseRisksInComponents_Call
type LicenseRiskService_MakeFinalLicenseDecision_Call ¶ added in v0.17.2
LicenseRiskService_MakeFinalLicenseDecision_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeFinalLicenseDecision'
func (*LicenseRiskService_MakeFinalLicenseDecision_Call) Return ¶ added in v0.17.2
func (_c *LicenseRiskService_MakeFinalLicenseDecision_Call) Return(err error) *LicenseRiskService_MakeFinalLicenseDecision_Call
func (*LicenseRiskService_MakeFinalLicenseDecision_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskService_MakeFinalLicenseDecision_Call) Run(run func(vulnID string, finalLicense string, justification string, userID string)) *LicenseRiskService_MakeFinalLicenseDecision_Call
func (*LicenseRiskService_MakeFinalLicenseDecision_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskService_MakeFinalLicenseDecision_Call) RunAndReturn(run func(vulnID string, finalLicense string, justification string, userID string) error) *LicenseRiskService_MakeFinalLicenseDecision_Call
type LicenseRiskService_UpdateLicenseRiskState_Call ¶ added in v0.17.2
LicenseRiskService_UpdateLicenseRiskState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateLicenseRiskState'
func (*LicenseRiskService_UpdateLicenseRiskState_Call) Return ¶ added in v0.17.2
func (_c *LicenseRiskService_UpdateLicenseRiskState_Call) Return(vulnEvent models.VulnEvent, err error) *LicenseRiskService_UpdateLicenseRiskState_Call
func (*LicenseRiskService_UpdateLicenseRiskState_Call) Run ¶ added in v0.17.2
func (_c *LicenseRiskService_UpdateLicenseRiskState_Call) Run(run func(tx core.DB, userID string, licenseRisk *models.LicenseRisk, statusType string, justification string, mechanicalJustification models.MechanicalJustificationType)) *LicenseRiskService_UpdateLicenseRiskState_Call
func (*LicenseRiskService_UpdateLicenseRiskState_Call) RunAndReturn ¶ added in v0.17.2
func (_c *LicenseRiskService_UpdateLicenseRiskState_Call) RunAndReturn(run func(tx core.DB, userID string, licenseRisk *models.LicenseRisk, statusType string, justification string, mechanicalJustification models.MechanicalJustificationType) (models.VulnEvent, error)) *LicenseRiskService_UpdateLicenseRiskState_Call
type OpenSourceInsightService ¶ added in v0.17.2
OpenSourceInsightService is an autogenerated mock type for the OpenSourceInsightService type
func NewOpenSourceInsightService ¶ added in v0.17.2
func NewOpenSourceInsightService(t interface { mock.TestingT Cleanup(func()) }) *OpenSourceInsightService
NewOpenSourceInsightService creates a new instance of OpenSourceInsightService. 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 (*OpenSourceInsightService) EXPECT ¶ added in v0.17.2
func (_m *OpenSourceInsightService) EXPECT() *OpenSourceInsightService_Expecter
func (*OpenSourceInsightService) GetProject ¶ added in v0.17.2
func (_mock *OpenSourceInsightService) GetProject(ctx context.Context, projectID string) (common.OpenSourceInsightsProjectResponse, error)
GetProject provides a mock function for the type OpenSourceInsightService
func (*OpenSourceInsightService) GetVersion ¶ added in v0.17.2
func (_mock *OpenSourceInsightService) GetVersion(ctx context.Context, ecosystem string, packageName string, version string) (common.OpenSourceInsightsVersionResponse, error)
GetVersion provides a mock function for the type OpenSourceInsightService
type OpenSourceInsightService_Expecter ¶ added in v0.17.2
type OpenSourceInsightService_Expecter struct {
// contains filtered or unexported fields
}
func (*OpenSourceInsightService_Expecter) GetProject ¶ added in v0.17.2
func (_e *OpenSourceInsightService_Expecter) GetProject(ctx interface{}, projectID interface{}) *OpenSourceInsightService_GetProject_Call
GetProject is a helper method to define mock.On call
- ctx context.Context
- projectID string
func (*OpenSourceInsightService_Expecter) GetVersion ¶ added in v0.17.2
func (_e *OpenSourceInsightService_Expecter) GetVersion(ctx interface{}, ecosystem interface{}, packageName interface{}, version interface{}) *OpenSourceInsightService_GetVersion_Call
GetVersion is a helper method to define mock.On call
- ctx context.Context
- ecosystem string
- packageName string
- version string
type OpenSourceInsightService_GetProject_Call ¶ added in v0.17.2
OpenSourceInsightService_GetProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProject'
func (*OpenSourceInsightService_GetProject_Call) Return ¶ added in v0.17.2
func (_c *OpenSourceInsightService_GetProject_Call) Return(openSourceInsightsProjectResponse common.OpenSourceInsightsProjectResponse, err error) *OpenSourceInsightService_GetProject_Call
func (*OpenSourceInsightService_GetProject_Call) Run ¶ added in v0.17.2
func (_c *OpenSourceInsightService_GetProject_Call) Run(run func(ctx context.Context, projectID string)) *OpenSourceInsightService_GetProject_Call
func (*OpenSourceInsightService_GetProject_Call) RunAndReturn ¶ added in v0.17.2
func (_c *OpenSourceInsightService_GetProject_Call) RunAndReturn(run func(ctx context.Context, projectID string) (common.OpenSourceInsightsProjectResponse, error)) *OpenSourceInsightService_GetProject_Call
type OpenSourceInsightService_GetVersion_Call ¶ added in v0.17.2
OpenSourceInsightService_GetVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVersion'
func (*OpenSourceInsightService_GetVersion_Call) Return ¶ added in v0.17.2
func (_c *OpenSourceInsightService_GetVersion_Call) Return(openSourceInsightsVersionResponse common.OpenSourceInsightsVersionResponse, err error) *OpenSourceInsightService_GetVersion_Call
func (*OpenSourceInsightService_GetVersion_Call) Run ¶ added in v0.17.2
func (_c *OpenSourceInsightService_GetVersion_Call) Run(run func(ctx context.Context, ecosystem string, packageName string, version string)) *OpenSourceInsightService_GetVersion_Call
func (*OpenSourceInsightService_GetVersion_Call) RunAndReturn ¶ added in v0.17.2
func (_c *OpenSourceInsightService_GetVersion_Call) RunAndReturn(run func(ctx context.Context, ecosystem string, packageName string, version string) (common.OpenSourceInsightsVersionResponse, error)) *OpenSourceInsightService_GetVersion_Call
type OrgService ¶ added in v0.17.2
OrgService is an autogenerated mock type for the OrgService type
func NewOrgService ¶ added in v0.17.2
func NewOrgService(t interface { mock.TestingT Cleanup(func()) }) *OrgService
NewOrgService creates a new instance of OrgService. 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 (*OrgService) CreateOrganization ¶ added in v0.17.2
CreateOrganization provides a mock function for the type OrgService
func (*OrgService) EXPECT ¶ added in v0.17.2
func (_m *OrgService) EXPECT() *OrgService_Expecter
func (*OrgService) ReadBySlug ¶ added in v0.17.2
func (_mock *OrgService) ReadBySlug(slug string) (*models.Org, error)
ReadBySlug provides a mock function for the type OrgService
type OrgService_CreateOrganization_Call ¶ added in v0.17.2
OrgService_CreateOrganization_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateOrganization'
func (*OrgService_CreateOrganization_Call) Return ¶ added in v0.17.2
func (_c *OrgService_CreateOrganization_Call) Return(err error) *OrgService_CreateOrganization_Call
func (*OrgService_CreateOrganization_Call) Run ¶ added in v0.17.2
func (_c *OrgService_CreateOrganization_Call) Run(run func(ctx core.Context, organization *models.Org)) *OrgService_CreateOrganization_Call
func (*OrgService_CreateOrganization_Call) RunAndReturn ¶ added in v0.17.2
func (_c *OrgService_CreateOrganization_Call) RunAndReturn(run func(ctx core.Context, organization *models.Org) error) *OrgService_CreateOrganization_Call
type OrgService_Expecter ¶ added in v0.17.2
type OrgService_Expecter struct {
// contains filtered or unexported fields
}
func (*OrgService_Expecter) CreateOrganization ¶ added in v0.17.2
func (_e *OrgService_Expecter) CreateOrganization(ctx interface{}, organization interface{}) *OrgService_CreateOrganization_Call
CreateOrganization is a helper method to define mock.On call
- ctx core.Context
- organization *models.Org
func (*OrgService_Expecter) ReadBySlug ¶ added in v0.17.2
func (_e *OrgService_Expecter) ReadBySlug(slug interface{}) *OrgService_ReadBySlug_Call
ReadBySlug is a helper method to define mock.On call
- slug string
type OrgService_ReadBySlug_Call ¶ added in v0.17.2
OrgService_ReadBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadBySlug'
func (*OrgService_ReadBySlug_Call) Return ¶ added in v0.17.2
func (_c *OrgService_ReadBySlug_Call) Return(org *models.Org, err error) *OrgService_ReadBySlug_Call
func (*OrgService_ReadBySlug_Call) Run ¶ added in v0.17.2
func (_c *OrgService_ReadBySlug_Call) Run(run func(slug string)) *OrgService_ReadBySlug_Call
func (*OrgService_ReadBySlug_Call) RunAndReturn ¶ added in v0.17.2
func (_c *OrgService_ReadBySlug_Call) RunAndReturn(run func(slug string) (*models.Org, error)) *OrgService_ReadBySlug_Call
type OrganizationRepository ¶ added in v0.17.2
OrganizationRepository is an autogenerated mock type for the OrganizationRepository type
func NewOrganizationRepository ¶ added in v0.17.2
func NewOrganizationRepository(t interface { mock.TestingT Cleanup(func()) }) *OrganizationRepository
NewOrganizationRepository creates a new instance of OrganizationRepository. 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 (*OrganizationRepository) Activate ¶ added in v0.17.2
Activate provides a mock function for the type OrganizationRepository
func (*OrganizationRepository) All ¶ added in v0.17.2
func (_mock *OrganizationRepository) All() ([]models.Org, error)
All provides a mock function for the type OrganizationRepository
func (*OrganizationRepository) Begin ¶ added in v0.17.2
func (_mock *OrganizationRepository) Begin() core.DB
Begin provides a mock function for the type OrganizationRepository
func (*OrganizationRepository) ContentTree ¶ added in v0.17.2
func (_mock *OrganizationRepository) ContentTree(orgID uuid.UUID, projects []string) []any
ContentTree provides a mock function for the type OrganizationRepository
func (*OrganizationRepository) Create ¶ added in v0.17.2
Create provides a mock function for the type OrganizationRepository
func (*OrganizationRepository) CreateBatch ¶ added in v0.17.2
CreateBatch provides a mock function for the type OrganizationRepository
func (*OrganizationRepository) Delete ¶ added in v0.17.2
Delete provides a mock function for the type OrganizationRepository
func (*OrganizationRepository) DeleteBatch ¶ added in v0.17.2
DeleteBatch provides a mock function for the type OrganizationRepository
func (*OrganizationRepository) EXPECT ¶ added in v0.17.2
func (_m *OrganizationRepository) EXPECT() *OrganizationRepository_Expecter
func (*OrganizationRepository) GetDB ¶ added in v0.17.2
func (_mock *OrganizationRepository) GetDB(tx core.DB) core.DB
GetDB provides a mock function for the type OrganizationRepository
func (*OrganizationRepository) GetOrgByID ¶ added in v0.17.2
GetOrgByID provides a mock function for the type OrganizationRepository
func (*OrganizationRepository) List ¶ added in v0.17.2
List provides a mock function for the type OrganizationRepository
func (*OrganizationRepository) Read ¶ added in v0.17.2
Read provides a mock function for the type OrganizationRepository
func (*OrganizationRepository) ReadBySlug ¶ added in v0.17.2
func (_mock *OrganizationRepository) ReadBySlug(slug string) (models.Org, error)
ReadBySlug provides a mock function for the type OrganizationRepository
func (*OrganizationRepository) Save ¶ added in v0.17.2
Save provides a mock function for the type OrganizationRepository
func (*OrganizationRepository) SaveBatch ¶ added in v0.17.2
SaveBatch provides a mock function for the type OrganizationRepository
func (*OrganizationRepository) Transaction ¶ added in v0.17.2
func (_mock *OrganizationRepository) Transaction(fn func(tx core.DB) error) error
Transaction provides a mock function for the type OrganizationRepository
type OrganizationRepository_Activate_Call ¶ added in v0.17.2
OrganizationRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*OrganizationRepository_Activate_Call) Return ¶ added in v0.17.2
func (_c *OrganizationRepository_Activate_Call) Return(err error) *OrganizationRepository_Activate_Call
func (*OrganizationRepository_Activate_Call) Run ¶ added in v0.17.2
func (_c *OrganizationRepository_Activate_Call) Run(run func(tx core.DB, id uuid.UUID)) *OrganizationRepository_Activate_Call
func (*OrganizationRepository_Activate_Call) RunAndReturn ¶ added in v0.17.2
func (_c *OrganizationRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *OrganizationRepository_Activate_Call
type OrganizationRepository_All_Call ¶ added in v0.17.2
OrganizationRepository_All_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'All'
func (*OrganizationRepository_All_Call) Return ¶ added in v0.17.2
func (_c *OrganizationRepository_All_Call) Return(orgs []models.Org, err error) *OrganizationRepository_All_Call
func (*OrganizationRepository_All_Call) Run ¶ added in v0.17.2
func (_c *OrganizationRepository_All_Call) Run(run func()) *OrganizationRepository_All_Call
func (*OrganizationRepository_All_Call) RunAndReturn ¶ added in v0.17.2
func (_c *OrganizationRepository_All_Call) RunAndReturn(run func() ([]models.Org, error)) *OrganizationRepository_All_Call
type OrganizationRepository_Begin_Call ¶ added in v0.17.2
OrganizationRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*OrganizationRepository_Begin_Call) Return ¶ added in v0.17.2
func (_c *OrganizationRepository_Begin_Call) Return(v core.DB) *OrganizationRepository_Begin_Call
func (*OrganizationRepository_Begin_Call) Run ¶ added in v0.17.2
func (_c *OrganizationRepository_Begin_Call) Run(run func()) *OrganizationRepository_Begin_Call
func (*OrganizationRepository_Begin_Call) RunAndReturn ¶ added in v0.17.2
func (_c *OrganizationRepository_Begin_Call) RunAndReturn(run func() core.DB) *OrganizationRepository_Begin_Call
type OrganizationRepository_ContentTree_Call ¶ added in v0.17.2
OrganizationRepository_ContentTree_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContentTree'
func (*OrganizationRepository_ContentTree_Call) Return ¶ added in v0.17.2
func (_c *OrganizationRepository_ContentTree_Call) Return(vs []any) *OrganizationRepository_ContentTree_Call
func (*OrganizationRepository_ContentTree_Call) Run ¶ added in v0.17.2
func (_c *OrganizationRepository_ContentTree_Call) Run(run func(orgID uuid.UUID, projects []string)) *OrganizationRepository_ContentTree_Call
func (*OrganizationRepository_ContentTree_Call) RunAndReturn ¶ added in v0.17.2
func (_c *OrganizationRepository_ContentTree_Call) RunAndReturn(run func(orgID uuid.UUID, projects []string) []any) *OrganizationRepository_ContentTree_Call
type OrganizationRepository_CreateBatch_Call ¶ added in v0.17.2
OrganizationRepository_CreateBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBatch'
func (*OrganizationRepository_CreateBatch_Call) Return ¶ added in v0.17.2
func (_c *OrganizationRepository_CreateBatch_Call) Return(err error) *OrganizationRepository_CreateBatch_Call
func (*OrganizationRepository_CreateBatch_Call) Run ¶ added in v0.17.2
func (_c *OrganizationRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.Org)) *OrganizationRepository_CreateBatch_Call
func (*OrganizationRepository_CreateBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *OrganizationRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Org) error) *OrganizationRepository_CreateBatch_Call
type OrganizationRepository_Create_Call ¶ added in v0.17.2
OrganizationRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*OrganizationRepository_Create_Call) Return ¶ added in v0.17.2
func (_c *OrganizationRepository_Create_Call) Return(err error) *OrganizationRepository_Create_Call
func (*OrganizationRepository_Create_Call) Run ¶ added in v0.17.2
func (_c *OrganizationRepository_Create_Call) Run(run func(tx core.DB, t *models.Org)) *OrganizationRepository_Create_Call
func (*OrganizationRepository_Create_Call) RunAndReturn ¶ added in v0.17.2
func (_c *OrganizationRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.Org) error) *OrganizationRepository_Create_Call
type OrganizationRepository_DeleteBatch_Call ¶ added in v0.17.2
OrganizationRepository_DeleteBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBatch'
func (*OrganizationRepository_DeleteBatch_Call) Return ¶ added in v0.17.2
func (_c *OrganizationRepository_DeleteBatch_Call) Return(err error) *OrganizationRepository_DeleteBatch_Call
func (*OrganizationRepository_DeleteBatch_Call) Run ¶ added in v0.17.2
func (_c *OrganizationRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.Org)) *OrganizationRepository_DeleteBatch_Call
func (*OrganizationRepository_DeleteBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *OrganizationRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.Org) error) *OrganizationRepository_DeleteBatch_Call
type OrganizationRepository_Delete_Call ¶ added in v0.17.2
OrganizationRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*OrganizationRepository_Delete_Call) Return ¶ added in v0.17.2
func (_c *OrganizationRepository_Delete_Call) Return(err error) *OrganizationRepository_Delete_Call
func (*OrganizationRepository_Delete_Call) Run ¶ added in v0.17.2
func (_c *OrganizationRepository_Delete_Call) Run(run func(tx core.DB, id uuid.UUID)) *OrganizationRepository_Delete_Call
func (*OrganizationRepository_Delete_Call) RunAndReturn ¶ added in v0.17.2
func (_c *OrganizationRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *OrganizationRepository_Delete_Call
type OrganizationRepository_Expecter ¶ added in v0.17.2
type OrganizationRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*OrganizationRepository_Expecter) Activate ¶ added in v0.17.2
func (_e *OrganizationRepository_Expecter) Activate(tx interface{}, id interface{}) *OrganizationRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx core.DB
- id uuid.UUID
func (*OrganizationRepository_Expecter) All ¶ added in v0.17.2
func (_e *OrganizationRepository_Expecter) All() *OrganizationRepository_All_Call
All is a helper method to define mock.On call
func (*OrganizationRepository_Expecter) Begin ¶ added in v0.17.2
func (_e *OrganizationRepository_Expecter) Begin() *OrganizationRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*OrganizationRepository_Expecter) ContentTree ¶ added in v0.17.2
func (_e *OrganizationRepository_Expecter) ContentTree(orgID interface{}, projects interface{}) *OrganizationRepository_ContentTree_Call
ContentTree is a helper method to define mock.On call
- orgID uuid.UUID
- projects []string
func (*OrganizationRepository_Expecter) Create ¶ added in v0.17.2
func (_e *OrganizationRepository_Expecter) Create(tx interface{}, t interface{}) *OrganizationRepository_Create_Call
Create is a helper method to define mock.On call
- tx core.DB
- t *models.Org
func (*OrganizationRepository_Expecter) CreateBatch ¶ added in v0.17.2
func (_e *OrganizationRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *OrganizationRepository_CreateBatch_Call
CreateBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.Org
func (*OrganizationRepository_Expecter) Delete ¶ added in v0.17.2
func (_e *OrganizationRepository_Expecter) Delete(tx interface{}, id interface{}) *OrganizationRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx core.DB
- id uuid.UUID
func (*OrganizationRepository_Expecter) DeleteBatch ¶ added in v0.17.2
func (_e *OrganizationRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *OrganizationRepository_DeleteBatch_Call
DeleteBatch is a helper method to define mock.On call
- tx core.DB
- ids []models.Org
func (*OrganizationRepository_Expecter) GetDB ¶ added in v0.17.2
func (_e *OrganizationRepository_Expecter) GetDB(tx interface{}) *OrganizationRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx core.DB
func (*OrganizationRepository_Expecter) GetOrgByID ¶ added in v0.17.2
func (_e *OrganizationRepository_Expecter) GetOrgByID(id interface{}) *OrganizationRepository_GetOrgByID_Call
GetOrgByID is a helper method to define mock.On call
- id uuid.UUID
func (*OrganizationRepository_Expecter) List ¶ added in v0.17.2
func (_e *OrganizationRepository_Expecter) List(ids interface{}) *OrganizationRepository_List_Call
List is a helper method to define mock.On call
- ids []uuid.UUID
func (*OrganizationRepository_Expecter) Read ¶ added in v0.17.2
func (_e *OrganizationRepository_Expecter) Read(id interface{}) *OrganizationRepository_Read_Call
Read is a helper method to define mock.On call
- id uuid.UUID
func (*OrganizationRepository_Expecter) ReadBySlug ¶ added in v0.17.2
func (_e *OrganizationRepository_Expecter) ReadBySlug(slug interface{}) *OrganizationRepository_ReadBySlug_Call
ReadBySlug is a helper method to define mock.On call
- slug string
func (*OrganizationRepository_Expecter) Save ¶ added in v0.17.2
func (_e *OrganizationRepository_Expecter) Save(tx interface{}, t interface{}) *OrganizationRepository_Save_Call
Save is a helper method to define mock.On call
- tx core.DB
- t *models.Org
func (*OrganizationRepository_Expecter) SaveBatch ¶ added in v0.17.2
func (_e *OrganizationRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *OrganizationRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.Org
func (*OrganizationRepository_Expecter) Transaction ¶ added in v0.17.2
func (_e *OrganizationRepository_Expecter) Transaction(fn interface{}) *OrganizationRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- fn func(tx core.DB) error
func (*OrganizationRepository_Expecter) Update ¶ added in v0.17.2
func (_e *OrganizationRepository_Expecter) Update(tx interface{}, organization interface{}) *OrganizationRepository_Update_Call
Update is a helper method to define mock.On call
- tx core.DB
- organization *models.Org
func (*OrganizationRepository_Expecter) Upsert ¶ added in v0.17.2
func (_e *OrganizationRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *OrganizationRepository_Upsert_Call
Upsert is a helper method to define mock.On call
- t *[]*models.Org
- conflictingColumns []clause.Column
- updateOnly []string
type OrganizationRepository_GetDB_Call ¶ added in v0.17.2
OrganizationRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*OrganizationRepository_GetDB_Call) Return ¶ added in v0.17.2
func (_c *OrganizationRepository_GetDB_Call) Return(v core.DB) *OrganizationRepository_GetDB_Call
func (*OrganizationRepository_GetDB_Call) Run ¶ added in v0.17.2
func (_c *OrganizationRepository_GetDB_Call) Run(run func(tx core.DB)) *OrganizationRepository_GetDB_Call
func (*OrganizationRepository_GetDB_Call) RunAndReturn ¶ added in v0.17.2
func (_c *OrganizationRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *OrganizationRepository_GetDB_Call
type OrganizationRepository_GetOrgByID_Call ¶ added in v0.17.2
OrganizationRepository_GetOrgByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrgByID'
func (*OrganizationRepository_GetOrgByID_Call) Return ¶ added in v0.17.2
func (_c *OrganizationRepository_GetOrgByID_Call) Return(org models.Org, err error) *OrganizationRepository_GetOrgByID_Call
func (*OrganizationRepository_GetOrgByID_Call) Run ¶ added in v0.17.2
func (_c *OrganizationRepository_GetOrgByID_Call) Run(run func(id uuid.UUID)) *OrganizationRepository_GetOrgByID_Call
func (*OrganizationRepository_GetOrgByID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *OrganizationRepository_GetOrgByID_Call) RunAndReturn(run func(id uuid.UUID) (models.Org, error)) *OrganizationRepository_GetOrgByID_Call
type OrganizationRepository_List_Call ¶ added in v0.17.2
OrganizationRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*OrganizationRepository_List_Call) Return ¶ added in v0.17.2
func (_c *OrganizationRepository_List_Call) Return(orgs []models.Org, err error) *OrganizationRepository_List_Call
func (*OrganizationRepository_List_Call) Run ¶ added in v0.17.2
func (_c *OrganizationRepository_List_Call) Run(run func(ids []uuid.UUID)) *OrganizationRepository_List_Call
func (*OrganizationRepository_List_Call) RunAndReturn ¶ added in v0.17.2
func (_c *OrganizationRepository_List_Call) RunAndReturn(run func(ids []uuid.UUID) ([]models.Org, error)) *OrganizationRepository_List_Call
type OrganizationRepository_ReadBySlug_Call ¶ added in v0.17.2
OrganizationRepository_ReadBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadBySlug'
func (*OrganizationRepository_ReadBySlug_Call) Return ¶ added in v0.17.2
func (_c *OrganizationRepository_ReadBySlug_Call) Return(org models.Org, err error) *OrganizationRepository_ReadBySlug_Call
func (*OrganizationRepository_ReadBySlug_Call) Run ¶ added in v0.17.2
func (_c *OrganizationRepository_ReadBySlug_Call) Run(run func(slug string)) *OrganizationRepository_ReadBySlug_Call
func (*OrganizationRepository_ReadBySlug_Call) RunAndReturn ¶ added in v0.17.2
func (_c *OrganizationRepository_ReadBySlug_Call) RunAndReturn(run func(slug string) (models.Org, error)) *OrganizationRepository_ReadBySlug_Call
type OrganizationRepository_Read_Call ¶ added in v0.17.2
OrganizationRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*OrganizationRepository_Read_Call) Return ¶ added in v0.17.2
func (_c *OrganizationRepository_Read_Call) Return(org models.Org, err error) *OrganizationRepository_Read_Call
func (*OrganizationRepository_Read_Call) Run ¶ added in v0.17.2
func (_c *OrganizationRepository_Read_Call) Run(run func(id uuid.UUID)) *OrganizationRepository_Read_Call
func (*OrganizationRepository_Read_Call) RunAndReturn ¶ added in v0.17.2
func (_c *OrganizationRepository_Read_Call) RunAndReturn(run func(id uuid.UUID) (models.Org, error)) *OrganizationRepository_Read_Call
type OrganizationRepository_SaveBatch_Call ¶ added in v0.17.2
OrganizationRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*OrganizationRepository_SaveBatch_Call) Return ¶ added in v0.17.2
func (_c *OrganizationRepository_SaveBatch_Call) Return(err error) *OrganizationRepository_SaveBatch_Call
func (*OrganizationRepository_SaveBatch_Call) Run ¶ added in v0.17.2
func (_c *OrganizationRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.Org)) *OrganizationRepository_SaveBatch_Call
func (*OrganizationRepository_SaveBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *OrganizationRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Org) error) *OrganizationRepository_SaveBatch_Call
type OrganizationRepository_Save_Call ¶ added in v0.17.2
OrganizationRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*OrganizationRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *OrganizationRepository_Save_Call) Return(err error) *OrganizationRepository_Save_Call
func (*OrganizationRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *OrganizationRepository_Save_Call) Run(run func(tx core.DB, t *models.Org)) *OrganizationRepository_Save_Call
func (*OrganizationRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *OrganizationRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *models.Org) error) *OrganizationRepository_Save_Call
type OrganizationRepository_Transaction_Call ¶ added in v0.17.2
OrganizationRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*OrganizationRepository_Transaction_Call) Return ¶ added in v0.17.2
func (_c *OrganizationRepository_Transaction_Call) Return(err error) *OrganizationRepository_Transaction_Call
func (*OrganizationRepository_Transaction_Call) Run ¶ added in v0.17.2
func (_c *OrganizationRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *OrganizationRepository_Transaction_Call
func (*OrganizationRepository_Transaction_Call) RunAndReturn ¶ added in v0.17.2
func (_c *OrganizationRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *OrganizationRepository_Transaction_Call
type OrganizationRepository_Update_Call ¶ added in v0.17.2
OrganizationRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*OrganizationRepository_Update_Call) Return ¶ added in v0.17.2
func (_c *OrganizationRepository_Update_Call) Return(err error) *OrganizationRepository_Update_Call
func (*OrganizationRepository_Update_Call) Run ¶ added in v0.17.2
func (_c *OrganizationRepository_Update_Call) Run(run func(tx core.DB, organization *models.Org)) *OrganizationRepository_Update_Call
func (*OrganizationRepository_Update_Call) RunAndReturn ¶ added in v0.17.2
func (_c *OrganizationRepository_Update_Call) RunAndReturn(run func(tx core.DB, organization *models.Org) error) *OrganizationRepository_Update_Call
type OrganizationRepository_Upsert_Call ¶ added in v0.17.2
OrganizationRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*OrganizationRepository_Upsert_Call) Return ¶ added in v0.17.2
func (_c *OrganizationRepository_Upsert_Call) Return(err error) *OrganizationRepository_Upsert_Call
func (*OrganizationRepository_Upsert_Call) Run ¶ added in v0.17.2
func (_c *OrganizationRepository_Upsert_Call) Run(run func(t *[]*models.Org, conflictingColumns []clause.Column, updateOnly []string)) *OrganizationRepository_Upsert_Call
func (*OrganizationRepository_Upsert_Call) RunAndReturn ¶ added in v0.17.2
func (_c *OrganizationRepository_Upsert_Call) RunAndReturn(run func(t *[]*models.Org, conflictingColumns []clause.Column, updateOnly []string) error) *OrganizationRepository_Upsert_Call
type PersonalAccessTokenRepository ¶ added in v0.17.2
PersonalAccessTokenRepository is an autogenerated mock type for the PersonalAccessTokenRepository type
func NewPersonalAccessTokenRepository ¶ added in v0.17.2
func NewPersonalAccessTokenRepository(t interface { mock.TestingT Cleanup(func()) }) *PersonalAccessTokenRepository
NewPersonalAccessTokenRepository creates a new instance of PersonalAccessTokenRepository. 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 (*PersonalAccessTokenRepository) Activate ¶ added in v0.17.2
Activate provides a mock function for the type PersonalAccessTokenRepository
func (*PersonalAccessTokenRepository) All ¶ added in v0.17.2
func (_mock *PersonalAccessTokenRepository) All() ([]models.PAT, error)
All provides a mock function for the type PersonalAccessTokenRepository
func (*PersonalAccessTokenRepository) Begin ¶ added in v0.17.2
func (_mock *PersonalAccessTokenRepository) Begin() core.DB
Begin provides a mock function for the type PersonalAccessTokenRepository
func (*PersonalAccessTokenRepository) Create ¶ added in v0.17.2
Create provides a mock function for the type PersonalAccessTokenRepository
func (*PersonalAccessTokenRepository) CreateBatch ¶ added in v0.17.2
CreateBatch provides a mock function for the type PersonalAccessTokenRepository
func (*PersonalAccessTokenRepository) Delete ¶ added in v0.17.2
Delete provides a mock function for the type PersonalAccessTokenRepository
func (*PersonalAccessTokenRepository) DeleteBatch ¶ added in v0.17.2
DeleteBatch provides a mock function for the type PersonalAccessTokenRepository
func (*PersonalAccessTokenRepository) DeleteByFingerprint ¶ added in v0.17.2
func (_mock *PersonalAccessTokenRepository) DeleteByFingerprint(fingerprint string) error
DeleteByFingerprint provides a mock function for the type PersonalAccessTokenRepository
func (*PersonalAccessTokenRepository) EXPECT ¶ added in v0.17.2
func (_m *PersonalAccessTokenRepository) EXPECT() *PersonalAccessTokenRepository_Expecter
func (*PersonalAccessTokenRepository) FindByUserIDs ¶ added in v0.17.2
FindByUserIDs provides a mock function for the type PersonalAccessTokenRepository
func (*PersonalAccessTokenRepository) GetByFingerprint ¶ added in v0.17.2
func (_mock *PersonalAccessTokenRepository) GetByFingerprint(fingerprint string) (models.PAT, error)
GetByFingerprint provides a mock function for the type PersonalAccessTokenRepository
func (*PersonalAccessTokenRepository) GetDB ¶ added in v0.17.2
func (_mock *PersonalAccessTokenRepository) GetDB(tx core.DB) core.DB
GetDB provides a mock function for the type PersonalAccessTokenRepository
func (*PersonalAccessTokenRepository) List ¶ added in v0.17.2
List provides a mock function for the type PersonalAccessTokenRepository
func (*PersonalAccessTokenRepository) ListByUserID ¶ added in v0.17.2
func (_mock *PersonalAccessTokenRepository) ListByUserID(userID string) ([]models.PAT, error)
ListByUserID provides a mock function for the type PersonalAccessTokenRepository
func (*PersonalAccessTokenRepository) MarkAsLastUsedNow ¶ added in v0.17.2
func (_mock *PersonalAccessTokenRepository) MarkAsLastUsedNow(fingerprint string) error
MarkAsLastUsedNow provides a mock function for the type PersonalAccessTokenRepository
func (*PersonalAccessTokenRepository) Read ¶ added in v0.17.2
Read provides a mock function for the type PersonalAccessTokenRepository
func (*PersonalAccessTokenRepository) Save ¶ added in v0.17.2
Save provides a mock function for the type PersonalAccessTokenRepository
func (*PersonalAccessTokenRepository) SaveBatch ¶ added in v0.17.2
SaveBatch provides a mock function for the type PersonalAccessTokenRepository
func (*PersonalAccessTokenRepository) Transaction ¶ added in v0.17.2
func (_mock *PersonalAccessTokenRepository) Transaction(fn func(tx core.DB) error) error
Transaction provides a mock function for the type PersonalAccessTokenRepository
type PersonalAccessTokenRepository_Activate_Call ¶ added in v0.17.2
PersonalAccessTokenRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*PersonalAccessTokenRepository_Activate_Call) Return ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Activate_Call) Return(err error) *PersonalAccessTokenRepository_Activate_Call
func (*PersonalAccessTokenRepository_Activate_Call) Run ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Activate_Call) Run(run func(tx core.DB, id uuid.UUID)) *PersonalAccessTokenRepository_Activate_Call
func (*PersonalAccessTokenRepository_Activate_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *PersonalAccessTokenRepository_Activate_Call
type PersonalAccessTokenRepository_All_Call ¶ added in v0.17.2
PersonalAccessTokenRepository_All_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'All'
func (*PersonalAccessTokenRepository_All_Call) Return ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_All_Call) Return(pATs []models.PAT, err error) *PersonalAccessTokenRepository_All_Call
func (*PersonalAccessTokenRepository_All_Call) Run ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_All_Call) Run(run func()) *PersonalAccessTokenRepository_All_Call
func (*PersonalAccessTokenRepository_All_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_All_Call) RunAndReturn(run func() ([]models.PAT, error)) *PersonalAccessTokenRepository_All_Call
type PersonalAccessTokenRepository_Begin_Call ¶ added in v0.17.2
PersonalAccessTokenRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*PersonalAccessTokenRepository_Begin_Call) Return ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Begin_Call) Return(v core.DB) *PersonalAccessTokenRepository_Begin_Call
func (*PersonalAccessTokenRepository_Begin_Call) Run ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Begin_Call) Run(run func()) *PersonalAccessTokenRepository_Begin_Call
func (*PersonalAccessTokenRepository_Begin_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Begin_Call) RunAndReturn(run func() core.DB) *PersonalAccessTokenRepository_Begin_Call
type PersonalAccessTokenRepository_CreateBatch_Call ¶ added in v0.17.2
PersonalAccessTokenRepository_CreateBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBatch'
func (*PersonalAccessTokenRepository_CreateBatch_Call) Return ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_CreateBatch_Call) Return(err error) *PersonalAccessTokenRepository_CreateBatch_Call
func (*PersonalAccessTokenRepository_CreateBatch_Call) Run ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.PAT)) *PersonalAccessTokenRepository_CreateBatch_Call
func (*PersonalAccessTokenRepository_CreateBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.PAT) error) *PersonalAccessTokenRepository_CreateBatch_Call
type PersonalAccessTokenRepository_Create_Call ¶ added in v0.17.2
PersonalAccessTokenRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*PersonalAccessTokenRepository_Create_Call) Return ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Create_Call) Return(err error) *PersonalAccessTokenRepository_Create_Call
func (*PersonalAccessTokenRepository_Create_Call) Run ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Create_Call) Run(run func(tx core.DB, t *models.PAT)) *PersonalAccessTokenRepository_Create_Call
func (*PersonalAccessTokenRepository_Create_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.PAT) error) *PersonalAccessTokenRepository_Create_Call
type PersonalAccessTokenRepository_DeleteBatch_Call ¶ added in v0.17.2
PersonalAccessTokenRepository_DeleteBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBatch'
func (*PersonalAccessTokenRepository_DeleteBatch_Call) Return ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_DeleteBatch_Call) Return(err error) *PersonalAccessTokenRepository_DeleteBatch_Call
func (*PersonalAccessTokenRepository_DeleteBatch_Call) Run ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.PAT)) *PersonalAccessTokenRepository_DeleteBatch_Call
func (*PersonalAccessTokenRepository_DeleteBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.PAT) error) *PersonalAccessTokenRepository_DeleteBatch_Call
type PersonalAccessTokenRepository_DeleteByFingerprint_Call ¶ added in v0.17.2
PersonalAccessTokenRepository_DeleteByFingerprint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByFingerprint'
func (*PersonalAccessTokenRepository_DeleteByFingerprint_Call) Run ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_DeleteByFingerprint_Call) Run(run func(fingerprint string)) *PersonalAccessTokenRepository_DeleteByFingerprint_Call
func (*PersonalAccessTokenRepository_DeleteByFingerprint_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_DeleteByFingerprint_Call) RunAndReturn(run func(fingerprint string) error) *PersonalAccessTokenRepository_DeleteByFingerprint_Call
type PersonalAccessTokenRepository_Delete_Call ¶ added in v0.17.2
PersonalAccessTokenRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*PersonalAccessTokenRepository_Delete_Call) Return ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Delete_Call) Return(err error) *PersonalAccessTokenRepository_Delete_Call
func (*PersonalAccessTokenRepository_Delete_Call) Run ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Delete_Call) Run(run func(tx core.DB, id uuid.UUID)) *PersonalAccessTokenRepository_Delete_Call
func (*PersonalAccessTokenRepository_Delete_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *PersonalAccessTokenRepository_Delete_Call
type PersonalAccessTokenRepository_Expecter ¶ added in v0.17.2
type PersonalAccessTokenRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*PersonalAccessTokenRepository_Expecter) Activate ¶ added in v0.17.2
func (_e *PersonalAccessTokenRepository_Expecter) Activate(tx interface{}, id interface{}) *PersonalAccessTokenRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx core.DB
- id uuid.UUID
func (*PersonalAccessTokenRepository_Expecter) All ¶ added in v0.17.2
func (_e *PersonalAccessTokenRepository_Expecter) All() *PersonalAccessTokenRepository_All_Call
All is a helper method to define mock.On call
func (*PersonalAccessTokenRepository_Expecter) Begin ¶ added in v0.17.2
func (_e *PersonalAccessTokenRepository_Expecter) Begin() *PersonalAccessTokenRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*PersonalAccessTokenRepository_Expecter) Create ¶ added in v0.17.2
func (_e *PersonalAccessTokenRepository_Expecter) Create(tx interface{}, t interface{}) *PersonalAccessTokenRepository_Create_Call
Create is a helper method to define mock.On call
- tx core.DB
- t *models.PAT
func (*PersonalAccessTokenRepository_Expecter) CreateBatch ¶ added in v0.17.2
func (_e *PersonalAccessTokenRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *PersonalAccessTokenRepository_CreateBatch_Call
CreateBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.PAT
func (*PersonalAccessTokenRepository_Expecter) Delete ¶ added in v0.17.2
func (_e *PersonalAccessTokenRepository_Expecter) Delete(tx interface{}, id interface{}) *PersonalAccessTokenRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx core.DB
- id uuid.UUID
func (*PersonalAccessTokenRepository_Expecter) DeleteBatch ¶ added in v0.17.2
func (_e *PersonalAccessTokenRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *PersonalAccessTokenRepository_DeleteBatch_Call
DeleteBatch is a helper method to define mock.On call
- tx core.DB
- ids []models.PAT
func (*PersonalAccessTokenRepository_Expecter) DeleteByFingerprint ¶ added in v0.17.2
func (_e *PersonalAccessTokenRepository_Expecter) DeleteByFingerprint(fingerprint interface{}) *PersonalAccessTokenRepository_DeleteByFingerprint_Call
DeleteByFingerprint is a helper method to define mock.On call
- fingerprint string
func (*PersonalAccessTokenRepository_Expecter) FindByUserIDs ¶ added in v0.17.2
func (_e *PersonalAccessTokenRepository_Expecter) FindByUserIDs(userID interface{}) *PersonalAccessTokenRepository_FindByUserIDs_Call
FindByUserIDs is a helper method to define mock.On call
- userID []uuid.UUID
func (*PersonalAccessTokenRepository_Expecter) GetByFingerprint ¶ added in v0.17.2
func (_e *PersonalAccessTokenRepository_Expecter) GetByFingerprint(fingerprint interface{}) *PersonalAccessTokenRepository_GetByFingerprint_Call
GetByFingerprint is a helper method to define mock.On call
- fingerprint string
func (*PersonalAccessTokenRepository_Expecter) GetDB ¶ added in v0.17.2
func (_e *PersonalAccessTokenRepository_Expecter) GetDB(tx interface{}) *PersonalAccessTokenRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx core.DB
func (*PersonalAccessTokenRepository_Expecter) List ¶ added in v0.17.2
func (_e *PersonalAccessTokenRepository_Expecter) List(ids interface{}) *PersonalAccessTokenRepository_List_Call
List is a helper method to define mock.On call
- ids []uuid.UUID
func (*PersonalAccessTokenRepository_Expecter) ListByUserID ¶ added in v0.17.2
func (_e *PersonalAccessTokenRepository_Expecter) ListByUserID(userID interface{}) *PersonalAccessTokenRepository_ListByUserID_Call
ListByUserID is a helper method to define mock.On call
- userID string
func (*PersonalAccessTokenRepository_Expecter) MarkAsLastUsedNow ¶ added in v0.17.2
func (_e *PersonalAccessTokenRepository_Expecter) MarkAsLastUsedNow(fingerprint interface{}) *PersonalAccessTokenRepository_MarkAsLastUsedNow_Call
MarkAsLastUsedNow is a helper method to define mock.On call
- fingerprint string
func (*PersonalAccessTokenRepository_Expecter) Read ¶ added in v0.17.2
func (_e *PersonalAccessTokenRepository_Expecter) Read(id interface{}) *PersonalAccessTokenRepository_Read_Call
Read is a helper method to define mock.On call
- id uuid.UUID
func (*PersonalAccessTokenRepository_Expecter) Save ¶ added in v0.17.2
func (_e *PersonalAccessTokenRepository_Expecter) Save(tx interface{}, t interface{}) *PersonalAccessTokenRepository_Save_Call
Save is a helper method to define mock.On call
- tx core.DB
- t *models.PAT
func (*PersonalAccessTokenRepository_Expecter) SaveBatch ¶ added in v0.17.2
func (_e *PersonalAccessTokenRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *PersonalAccessTokenRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.PAT
func (*PersonalAccessTokenRepository_Expecter) Transaction ¶ added in v0.17.2
func (_e *PersonalAccessTokenRepository_Expecter) Transaction(fn interface{}) *PersonalAccessTokenRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- fn func(tx core.DB) error
func (*PersonalAccessTokenRepository_Expecter) Upsert ¶ added in v0.17.2
func (_e *PersonalAccessTokenRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *PersonalAccessTokenRepository_Upsert_Call
Upsert is a helper method to define mock.On call
- t *[]*models.PAT
- conflictingColumns []clause.Column
- updateOnly []string
type PersonalAccessTokenRepository_FindByUserIDs_Call ¶ added in v0.17.2
PersonalAccessTokenRepository_FindByUserIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByUserIDs'
func (*PersonalAccessTokenRepository_FindByUserIDs_Call) Return ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_FindByUserIDs_Call) Return(pATs []models.PAT, err error) *PersonalAccessTokenRepository_FindByUserIDs_Call
func (*PersonalAccessTokenRepository_FindByUserIDs_Call) Run ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_FindByUserIDs_Call) Run(run func(userID []uuid.UUID)) *PersonalAccessTokenRepository_FindByUserIDs_Call
func (*PersonalAccessTokenRepository_FindByUserIDs_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_FindByUserIDs_Call) RunAndReturn(run func(userID []uuid.UUID) ([]models.PAT, error)) *PersonalAccessTokenRepository_FindByUserIDs_Call
type PersonalAccessTokenRepository_GetByFingerprint_Call ¶ added in v0.17.2
PersonalAccessTokenRepository_GetByFingerprint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByFingerprint'
func (*PersonalAccessTokenRepository_GetByFingerprint_Call) Return ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_GetByFingerprint_Call) Return(pAT models.PAT, err error) *PersonalAccessTokenRepository_GetByFingerprint_Call
func (*PersonalAccessTokenRepository_GetByFingerprint_Call) Run ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_GetByFingerprint_Call) Run(run func(fingerprint string)) *PersonalAccessTokenRepository_GetByFingerprint_Call
func (*PersonalAccessTokenRepository_GetByFingerprint_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_GetByFingerprint_Call) RunAndReturn(run func(fingerprint string) (models.PAT, error)) *PersonalAccessTokenRepository_GetByFingerprint_Call
type PersonalAccessTokenRepository_GetDB_Call ¶ added in v0.17.2
PersonalAccessTokenRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*PersonalAccessTokenRepository_GetDB_Call) Return ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_GetDB_Call) Return(v core.DB) *PersonalAccessTokenRepository_GetDB_Call
func (*PersonalAccessTokenRepository_GetDB_Call) Run ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_GetDB_Call) Run(run func(tx core.DB)) *PersonalAccessTokenRepository_GetDB_Call
func (*PersonalAccessTokenRepository_GetDB_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *PersonalAccessTokenRepository_GetDB_Call
type PersonalAccessTokenRepository_ListByUserID_Call ¶ added in v0.17.2
PersonalAccessTokenRepository_ListByUserID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByUserID'
func (*PersonalAccessTokenRepository_ListByUserID_Call) Return ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_ListByUserID_Call) Return(pATs []models.PAT, err error) *PersonalAccessTokenRepository_ListByUserID_Call
func (*PersonalAccessTokenRepository_ListByUserID_Call) Run ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_ListByUserID_Call) Run(run func(userID string)) *PersonalAccessTokenRepository_ListByUserID_Call
func (*PersonalAccessTokenRepository_ListByUserID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_ListByUserID_Call) RunAndReturn(run func(userID string) ([]models.PAT, error)) *PersonalAccessTokenRepository_ListByUserID_Call
type PersonalAccessTokenRepository_List_Call ¶ added in v0.17.2
PersonalAccessTokenRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*PersonalAccessTokenRepository_List_Call) Return ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_List_Call) Return(pATs []models.PAT, err error) *PersonalAccessTokenRepository_List_Call
func (*PersonalAccessTokenRepository_List_Call) Run ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_List_Call) Run(run func(ids []uuid.UUID)) *PersonalAccessTokenRepository_List_Call
func (*PersonalAccessTokenRepository_List_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_List_Call) RunAndReturn(run func(ids []uuid.UUID) ([]models.PAT, error)) *PersonalAccessTokenRepository_List_Call
type PersonalAccessTokenRepository_MarkAsLastUsedNow_Call ¶ added in v0.17.2
PersonalAccessTokenRepository_MarkAsLastUsedNow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarkAsLastUsedNow'
func (*PersonalAccessTokenRepository_MarkAsLastUsedNow_Call) Run ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_MarkAsLastUsedNow_Call) Run(run func(fingerprint string)) *PersonalAccessTokenRepository_MarkAsLastUsedNow_Call
func (*PersonalAccessTokenRepository_MarkAsLastUsedNow_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_MarkAsLastUsedNow_Call) RunAndReturn(run func(fingerprint string) error) *PersonalAccessTokenRepository_MarkAsLastUsedNow_Call
type PersonalAccessTokenRepository_Read_Call ¶ added in v0.17.2
PersonalAccessTokenRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*PersonalAccessTokenRepository_Read_Call) Return ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Read_Call) Return(pAT models.PAT, err error) *PersonalAccessTokenRepository_Read_Call
func (*PersonalAccessTokenRepository_Read_Call) Run ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Read_Call) Run(run func(id uuid.UUID)) *PersonalAccessTokenRepository_Read_Call
func (*PersonalAccessTokenRepository_Read_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Read_Call) RunAndReturn(run func(id uuid.UUID) (models.PAT, error)) *PersonalAccessTokenRepository_Read_Call
type PersonalAccessTokenRepository_SaveBatch_Call ¶ added in v0.17.2
PersonalAccessTokenRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*PersonalAccessTokenRepository_SaveBatch_Call) Return ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_SaveBatch_Call) Return(err error) *PersonalAccessTokenRepository_SaveBatch_Call
func (*PersonalAccessTokenRepository_SaveBatch_Call) Run ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.PAT)) *PersonalAccessTokenRepository_SaveBatch_Call
func (*PersonalAccessTokenRepository_SaveBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.PAT) error) *PersonalAccessTokenRepository_SaveBatch_Call
type PersonalAccessTokenRepository_Save_Call ¶ added in v0.17.2
PersonalAccessTokenRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*PersonalAccessTokenRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Save_Call) Return(err error) *PersonalAccessTokenRepository_Save_Call
func (*PersonalAccessTokenRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Save_Call) Run(run func(tx core.DB, t *models.PAT)) *PersonalAccessTokenRepository_Save_Call
func (*PersonalAccessTokenRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *models.PAT) error) *PersonalAccessTokenRepository_Save_Call
type PersonalAccessTokenRepository_Transaction_Call ¶ added in v0.17.2
PersonalAccessTokenRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*PersonalAccessTokenRepository_Transaction_Call) Return ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Transaction_Call) Return(err error) *PersonalAccessTokenRepository_Transaction_Call
func (*PersonalAccessTokenRepository_Transaction_Call) Run ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *PersonalAccessTokenRepository_Transaction_Call
func (*PersonalAccessTokenRepository_Transaction_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *PersonalAccessTokenRepository_Transaction_Call
type PersonalAccessTokenRepository_Upsert_Call ¶ added in v0.17.2
PersonalAccessTokenRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*PersonalAccessTokenRepository_Upsert_Call) Return ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Upsert_Call) Return(err error) *PersonalAccessTokenRepository_Upsert_Call
func (*PersonalAccessTokenRepository_Upsert_Call) Run ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Upsert_Call) Run(run func(t *[]*models.PAT, conflictingColumns []clause.Column, updateOnly []string)) *PersonalAccessTokenRepository_Upsert_Call
func (*PersonalAccessTokenRepository_Upsert_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PersonalAccessTokenRepository_Upsert_Call) RunAndReturn(run func(t *[]*models.PAT, conflictingColumns []clause.Column, updateOnly []string) error) *PersonalAccessTokenRepository_Upsert_Call
type PolicyRepository ¶ added in v0.17.2
PolicyRepository is an autogenerated mock type for the PolicyRepository type
func NewPolicyRepository ¶ added in v0.17.2
func NewPolicyRepository(t interface { mock.TestingT Cleanup(func()) }) *PolicyRepository
NewPolicyRepository creates a new instance of PolicyRepository. 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 (*PolicyRepository) Activate ¶ added in v0.17.2
Activate provides a mock function for the type PolicyRepository
func (*PolicyRepository) All ¶ added in v0.17.2
func (_mock *PolicyRepository) All() ([]models.Policy, error)
All provides a mock function for the type PolicyRepository
func (*PolicyRepository) Begin ¶ added in v0.17.2
func (_mock *PolicyRepository) Begin() core.DB
Begin provides a mock function for the type PolicyRepository
func (*PolicyRepository) Create ¶ added in v0.17.2
Create provides a mock function for the type PolicyRepository
func (*PolicyRepository) CreateBatch ¶ added in v0.17.2
CreateBatch provides a mock function for the type PolicyRepository
func (*PolicyRepository) Delete ¶ added in v0.17.2
Delete provides a mock function for the type PolicyRepository
func (*PolicyRepository) DeleteBatch ¶ added in v0.17.2
DeleteBatch provides a mock function for the type PolicyRepository
func (*PolicyRepository) EXPECT ¶ added in v0.17.2
func (_m *PolicyRepository) EXPECT() *PolicyRepository_Expecter
func (*PolicyRepository) FindByOrganizationID ¶ added in v0.17.2
func (_mock *PolicyRepository) FindByOrganizationID(organizationID uuid.UUID) ([]models.Policy, error)
FindByOrganizationID provides a mock function for the type PolicyRepository
func (*PolicyRepository) FindByProjectID ¶ added in v0.17.2
FindByProjectID provides a mock function for the type PolicyRepository
func (*PolicyRepository) FindCommunityManagedPolicies ¶ added in v0.17.2
func (_mock *PolicyRepository) FindCommunityManagedPolicies() ([]models.Policy, error)
FindCommunityManagedPolicies provides a mock function for the type PolicyRepository
func (*PolicyRepository) GetDB ¶ added in v0.17.2
func (_mock *PolicyRepository) GetDB(tx core.DB) core.DB
GetDB provides a mock function for the type PolicyRepository
func (*PolicyRepository) List ¶ added in v0.17.2
List provides a mock function for the type PolicyRepository
func (*PolicyRepository) Read ¶ added in v0.17.2
Read provides a mock function for the type PolicyRepository
func (*PolicyRepository) Save ¶ added in v0.17.2
Save provides a mock function for the type PolicyRepository
func (*PolicyRepository) SaveBatch ¶ added in v0.17.2
SaveBatch provides a mock function for the type PolicyRepository
func (*PolicyRepository) Transaction ¶ added in v0.17.2
func (_mock *PolicyRepository) Transaction(fn func(tx core.DB) error) error
Transaction provides a mock function for the type PolicyRepository
type PolicyRepository_Activate_Call ¶ added in v0.17.2
PolicyRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*PolicyRepository_Activate_Call) Return ¶ added in v0.17.2
func (_c *PolicyRepository_Activate_Call) Return(err error) *PolicyRepository_Activate_Call
func (*PolicyRepository_Activate_Call) Run ¶ added in v0.17.2
func (_c *PolicyRepository_Activate_Call) Run(run func(tx core.DB, id uuid.UUID)) *PolicyRepository_Activate_Call
func (*PolicyRepository_Activate_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PolicyRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *PolicyRepository_Activate_Call
type PolicyRepository_All_Call ¶ added in v0.17.2
PolicyRepository_All_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'All'
func (*PolicyRepository_All_Call) Return ¶ added in v0.17.2
func (_c *PolicyRepository_All_Call) Return(policys []models.Policy, err error) *PolicyRepository_All_Call
func (*PolicyRepository_All_Call) Run ¶ added in v0.17.2
func (_c *PolicyRepository_All_Call) Run(run func()) *PolicyRepository_All_Call
func (*PolicyRepository_All_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PolicyRepository_All_Call) RunAndReturn(run func() ([]models.Policy, error)) *PolicyRepository_All_Call
type PolicyRepository_Begin_Call ¶ added in v0.17.2
PolicyRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*PolicyRepository_Begin_Call) Return ¶ added in v0.17.2
func (_c *PolicyRepository_Begin_Call) Return(v core.DB) *PolicyRepository_Begin_Call
func (*PolicyRepository_Begin_Call) Run ¶ added in v0.17.2
func (_c *PolicyRepository_Begin_Call) Run(run func()) *PolicyRepository_Begin_Call
func (*PolicyRepository_Begin_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PolicyRepository_Begin_Call) RunAndReturn(run func() core.DB) *PolicyRepository_Begin_Call
type PolicyRepository_CreateBatch_Call ¶ added in v0.17.2
PolicyRepository_CreateBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBatch'
func (*PolicyRepository_CreateBatch_Call) Return ¶ added in v0.17.2
func (_c *PolicyRepository_CreateBatch_Call) Return(err error) *PolicyRepository_CreateBatch_Call
func (*PolicyRepository_CreateBatch_Call) Run ¶ added in v0.17.2
func (_c *PolicyRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.Policy)) *PolicyRepository_CreateBatch_Call
func (*PolicyRepository_CreateBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PolicyRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Policy) error) *PolicyRepository_CreateBatch_Call
type PolicyRepository_Create_Call ¶ added in v0.17.2
PolicyRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*PolicyRepository_Create_Call) Return ¶ added in v0.17.2
func (_c *PolicyRepository_Create_Call) Return(err error) *PolicyRepository_Create_Call
func (*PolicyRepository_Create_Call) Run ¶ added in v0.17.2
func (_c *PolicyRepository_Create_Call) Run(run func(tx core.DB, t *models.Policy)) *PolicyRepository_Create_Call
func (*PolicyRepository_Create_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PolicyRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.Policy) error) *PolicyRepository_Create_Call
type PolicyRepository_DeleteBatch_Call ¶ added in v0.17.2
PolicyRepository_DeleteBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBatch'
func (*PolicyRepository_DeleteBatch_Call) Return ¶ added in v0.17.2
func (_c *PolicyRepository_DeleteBatch_Call) Return(err error) *PolicyRepository_DeleteBatch_Call
func (*PolicyRepository_DeleteBatch_Call) Run ¶ added in v0.17.2
func (_c *PolicyRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.Policy)) *PolicyRepository_DeleteBatch_Call
func (*PolicyRepository_DeleteBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PolicyRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.Policy) error) *PolicyRepository_DeleteBatch_Call
type PolicyRepository_Delete_Call ¶ added in v0.17.2
PolicyRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*PolicyRepository_Delete_Call) Return ¶ added in v0.17.2
func (_c *PolicyRepository_Delete_Call) Return(err error) *PolicyRepository_Delete_Call
func (*PolicyRepository_Delete_Call) Run ¶ added in v0.17.2
func (_c *PolicyRepository_Delete_Call) Run(run func(tx core.DB, id uuid.UUID)) *PolicyRepository_Delete_Call
func (*PolicyRepository_Delete_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PolicyRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *PolicyRepository_Delete_Call
type PolicyRepository_Expecter ¶ added in v0.17.2
type PolicyRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*PolicyRepository_Expecter) Activate ¶ added in v0.17.2
func (_e *PolicyRepository_Expecter) Activate(tx interface{}, id interface{}) *PolicyRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx core.DB
- id uuid.UUID
func (*PolicyRepository_Expecter) All ¶ added in v0.17.2
func (_e *PolicyRepository_Expecter) All() *PolicyRepository_All_Call
All is a helper method to define mock.On call
func (*PolicyRepository_Expecter) Begin ¶ added in v0.17.2
func (_e *PolicyRepository_Expecter) Begin() *PolicyRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*PolicyRepository_Expecter) Create ¶ added in v0.17.2
func (_e *PolicyRepository_Expecter) Create(tx interface{}, t interface{}) *PolicyRepository_Create_Call
Create is a helper method to define mock.On call
- tx core.DB
- t *models.Policy
func (*PolicyRepository_Expecter) CreateBatch ¶ added in v0.17.2
func (_e *PolicyRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *PolicyRepository_CreateBatch_Call
CreateBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.Policy
func (*PolicyRepository_Expecter) Delete ¶ added in v0.17.2
func (_e *PolicyRepository_Expecter) Delete(tx interface{}, id interface{}) *PolicyRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx core.DB
- id uuid.UUID
func (*PolicyRepository_Expecter) DeleteBatch ¶ added in v0.17.2
func (_e *PolicyRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *PolicyRepository_DeleteBatch_Call
DeleteBatch is a helper method to define mock.On call
- tx core.DB
- ids []models.Policy
func (*PolicyRepository_Expecter) FindByOrganizationID ¶ added in v0.17.2
func (_e *PolicyRepository_Expecter) FindByOrganizationID(organizationID interface{}) *PolicyRepository_FindByOrganizationID_Call
FindByOrganizationID is a helper method to define mock.On call
- organizationID uuid.UUID
func (*PolicyRepository_Expecter) FindByProjectID ¶ added in v0.17.2
func (_e *PolicyRepository_Expecter) FindByProjectID(projectID interface{}) *PolicyRepository_FindByProjectID_Call
FindByProjectID is a helper method to define mock.On call
- projectID uuid.UUID
func (*PolicyRepository_Expecter) FindCommunityManagedPolicies ¶ added in v0.17.2
func (_e *PolicyRepository_Expecter) FindCommunityManagedPolicies() *PolicyRepository_FindCommunityManagedPolicies_Call
FindCommunityManagedPolicies is a helper method to define mock.On call
func (*PolicyRepository_Expecter) GetDB ¶ added in v0.17.2
func (_e *PolicyRepository_Expecter) GetDB(tx interface{}) *PolicyRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx core.DB
func (*PolicyRepository_Expecter) List ¶ added in v0.17.2
func (_e *PolicyRepository_Expecter) List(ids interface{}) *PolicyRepository_List_Call
List is a helper method to define mock.On call
- ids []uuid.UUID
func (*PolicyRepository_Expecter) Read ¶ added in v0.17.2
func (_e *PolicyRepository_Expecter) Read(id interface{}) *PolicyRepository_Read_Call
Read is a helper method to define mock.On call
- id uuid.UUID
func (*PolicyRepository_Expecter) Save ¶ added in v0.17.2
func (_e *PolicyRepository_Expecter) Save(tx interface{}, t interface{}) *PolicyRepository_Save_Call
Save is a helper method to define mock.On call
- tx core.DB
- t *models.Policy
func (*PolicyRepository_Expecter) SaveBatch ¶ added in v0.17.2
func (_e *PolicyRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *PolicyRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.Policy
func (*PolicyRepository_Expecter) Transaction ¶ added in v0.17.2
func (_e *PolicyRepository_Expecter) Transaction(fn interface{}) *PolicyRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- fn func(tx core.DB) error
func (*PolicyRepository_Expecter) Upsert ¶ added in v0.17.2
func (_e *PolicyRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *PolicyRepository_Upsert_Call
Upsert is a helper method to define mock.On call
- t *[]*models.Policy
- conflictingColumns []clause.Column
- updateOnly []string
type PolicyRepository_FindByOrganizationID_Call ¶ added in v0.17.2
PolicyRepository_FindByOrganizationID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByOrganizationID'
func (*PolicyRepository_FindByOrganizationID_Call) Return ¶ added in v0.17.2
func (_c *PolicyRepository_FindByOrganizationID_Call) Return(policys []models.Policy, err error) *PolicyRepository_FindByOrganizationID_Call
func (*PolicyRepository_FindByOrganizationID_Call) Run ¶ added in v0.17.2
func (_c *PolicyRepository_FindByOrganizationID_Call) Run(run func(organizationID uuid.UUID)) *PolicyRepository_FindByOrganizationID_Call
func (*PolicyRepository_FindByOrganizationID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PolicyRepository_FindByOrganizationID_Call) RunAndReturn(run func(organizationID uuid.UUID) ([]models.Policy, error)) *PolicyRepository_FindByOrganizationID_Call
type PolicyRepository_FindByProjectID_Call ¶ added in v0.17.2
PolicyRepository_FindByProjectID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByProjectID'
func (*PolicyRepository_FindByProjectID_Call) Return ¶ added in v0.17.2
func (_c *PolicyRepository_FindByProjectID_Call) Return(policys []models.Policy, err error) *PolicyRepository_FindByProjectID_Call
func (*PolicyRepository_FindByProjectID_Call) Run ¶ added in v0.17.2
func (_c *PolicyRepository_FindByProjectID_Call) Run(run func(projectID uuid.UUID)) *PolicyRepository_FindByProjectID_Call
func (*PolicyRepository_FindByProjectID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PolicyRepository_FindByProjectID_Call) RunAndReturn(run func(projectID uuid.UUID) ([]models.Policy, error)) *PolicyRepository_FindByProjectID_Call
type PolicyRepository_FindCommunityManagedPolicies_Call ¶ added in v0.17.2
PolicyRepository_FindCommunityManagedPolicies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindCommunityManagedPolicies'
func (*PolicyRepository_FindCommunityManagedPolicies_Call) Return ¶ added in v0.17.2
func (_c *PolicyRepository_FindCommunityManagedPolicies_Call) Return(policys []models.Policy, err error) *PolicyRepository_FindCommunityManagedPolicies_Call
func (*PolicyRepository_FindCommunityManagedPolicies_Call) Run ¶ added in v0.17.2
func (_c *PolicyRepository_FindCommunityManagedPolicies_Call) Run(run func()) *PolicyRepository_FindCommunityManagedPolicies_Call
func (*PolicyRepository_FindCommunityManagedPolicies_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PolicyRepository_FindCommunityManagedPolicies_Call) RunAndReturn(run func() ([]models.Policy, error)) *PolicyRepository_FindCommunityManagedPolicies_Call
type PolicyRepository_GetDB_Call ¶ added in v0.17.2
PolicyRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*PolicyRepository_GetDB_Call) Return ¶ added in v0.17.2
func (_c *PolicyRepository_GetDB_Call) Return(v core.DB) *PolicyRepository_GetDB_Call
func (*PolicyRepository_GetDB_Call) Run ¶ added in v0.17.2
func (_c *PolicyRepository_GetDB_Call) Run(run func(tx core.DB)) *PolicyRepository_GetDB_Call
func (*PolicyRepository_GetDB_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PolicyRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *PolicyRepository_GetDB_Call
type PolicyRepository_List_Call ¶ added in v0.17.2
PolicyRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*PolicyRepository_List_Call) Return ¶ added in v0.17.2
func (_c *PolicyRepository_List_Call) Return(policys []models.Policy, err error) *PolicyRepository_List_Call
func (*PolicyRepository_List_Call) Run ¶ added in v0.17.2
func (_c *PolicyRepository_List_Call) Run(run func(ids []uuid.UUID)) *PolicyRepository_List_Call
func (*PolicyRepository_List_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PolicyRepository_List_Call) RunAndReturn(run func(ids []uuid.UUID) ([]models.Policy, error)) *PolicyRepository_List_Call
type PolicyRepository_Read_Call ¶ added in v0.17.2
PolicyRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*PolicyRepository_Read_Call) Return ¶ added in v0.17.2
func (_c *PolicyRepository_Read_Call) Return(policy models.Policy, err error) *PolicyRepository_Read_Call
func (*PolicyRepository_Read_Call) Run ¶ added in v0.17.2
func (_c *PolicyRepository_Read_Call) Run(run func(id uuid.UUID)) *PolicyRepository_Read_Call
func (*PolicyRepository_Read_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PolicyRepository_Read_Call) RunAndReturn(run func(id uuid.UUID) (models.Policy, error)) *PolicyRepository_Read_Call
type PolicyRepository_SaveBatch_Call ¶ added in v0.17.2
PolicyRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*PolicyRepository_SaveBatch_Call) Return ¶ added in v0.17.2
func (_c *PolicyRepository_SaveBatch_Call) Return(err error) *PolicyRepository_SaveBatch_Call
func (*PolicyRepository_SaveBatch_Call) Run ¶ added in v0.17.2
func (_c *PolicyRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.Policy)) *PolicyRepository_SaveBatch_Call
func (*PolicyRepository_SaveBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PolicyRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Policy) error) *PolicyRepository_SaveBatch_Call
type PolicyRepository_Save_Call ¶ added in v0.17.2
PolicyRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*PolicyRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *PolicyRepository_Save_Call) Return(err error) *PolicyRepository_Save_Call
func (*PolicyRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *PolicyRepository_Save_Call) Run(run func(tx core.DB, t *models.Policy)) *PolicyRepository_Save_Call
func (*PolicyRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PolicyRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *models.Policy) error) *PolicyRepository_Save_Call
type PolicyRepository_Transaction_Call ¶ added in v0.17.2
PolicyRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*PolicyRepository_Transaction_Call) Return ¶ added in v0.17.2
func (_c *PolicyRepository_Transaction_Call) Return(err error) *PolicyRepository_Transaction_Call
func (*PolicyRepository_Transaction_Call) Run ¶ added in v0.17.2
func (_c *PolicyRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *PolicyRepository_Transaction_Call
func (*PolicyRepository_Transaction_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PolicyRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *PolicyRepository_Transaction_Call
type PolicyRepository_Upsert_Call ¶ added in v0.17.2
PolicyRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*PolicyRepository_Upsert_Call) Return ¶ added in v0.17.2
func (_c *PolicyRepository_Upsert_Call) Return(err error) *PolicyRepository_Upsert_Call
func (*PolicyRepository_Upsert_Call) Run ¶ added in v0.17.2
func (_c *PolicyRepository_Upsert_Call) Run(run func(t *[]*models.Policy, conflictingColumns []clause.Column, updateOnly []string)) *PolicyRepository_Upsert_Call
func (*PolicyRepository_Upsert_Call) RunAndReturn ¶ added in v0.17.2
func (_c *PolicyRepository_Upsert_Call) RunAndReturn(run func(t *[]*models.Policy, conflictingColumns []clause.Column, updateOnly []string) error) *PolicyRepository_Upsert_Call
type ProjectRepository ¶ added in v0.17.2
ProjectRepository is an autogenerated mock type for the ProjectRepository type
func NewProjectRepository ¶ added in v0.17.2
func NewProjectRepository(t interface { mock.TestingT Cleanup(func()) }) *ProjectRepository
NewProjectRepository creates a new instance of ProjectRepository. 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 (*ProjectRepository) Activate ¶ added in v0.17.2
Activate provides a mock function for the type ProjectRepository
func (*ProjectRepository) Create ¶ added in v0.17.2
Create provides a mock function for the type ProjectRepository
func (*ProjectRepository) Delete ¶ added in v0.17.2
Delete provides a mock function for the type ProjectRepository
func (*ProjectRepository) DisablePolicyForProject ¶ added in v0.17.2
func (_mock *ProjectRepository) DisablePolicyForProject(tx core.DB, projectID uuid.UUID, policyID uuid.UUID) error
DisablePolicyForProject provides a mock function for the type ProjectRepository
func (*ProjectRepository) EXPECT ¶ added in v0.17.2
func (_m *ProjectRepository) EXPECT() *ProjectRepository_Expecter
func (*ProjectRepository) EnableCommunityManagedPolicies ¶ added in v0.17.2
func (_mock *ProjectRepository) EnableCommunityManagedPolicies(tx core.DB, projectID uuid.UUID) error
EnableCommunityManagedPolicies provides a mock function for the type ProjectRepository
func (*ProjectRepository) EnablePolicyForProject ¶ added in v0.17.2
func (_mock *ProjectRepository) EnablePolicyForProject(tx core.DB, projectID uuid.UUID, policyID uuid.UUID) error
EnablePolicyForProject provides a mock function for the type ProjectRepository
func (*ProjectRepository) GetByOrgID ¶ added in v0.17.2
GetByOrgID provides a mock function for the type ProjectRepository
func (*ProjectRepository) GetDirectChildProjects ¶ added in v0.17.2
func (_mock *ProjectRepository) GetDirectChildProjects(projectID uuid.UUID) ([]models.Project, error)
GetDirectChildProjects provides a mock function for the type ProjectRepository
func (*ProjectRepository) GetProjectByAssetID ¶ added in v0.17.2
GetProjectByAssetID provides a mock function for the type ProjectRepository
func (*ProjectRepository) List ¶ added in v0.17.2
func (_mock *ProjectRepository) List(idSlice []uuid.UUID, parentID *uuid.UUID, organizationID uuid.UUID) ([]models.Project, error)
List provides a mock function for the type ProjectRepository
func (*ProjectRepository) ListPaged ¶ added in v0.17.2
func (_mock *ProjectRepository) ListPaged(projectIDs []uuid.UUID, parentID *uuid.UUID, orgID uuid.UUID, pageInfo core.PageInfo, search string) (core.Paged[models.Project], error)
ListPaged provides a mock function for the type ProjectRepository
func (*ProjectRepository) Read ¶ added in v0.17.2
Read provides a mock function for the type ProjectRepository
func (*ProjectRepository) ReadBySlug ¶ added in v0.17.2
func (_mock *ProjectRepository) ReadBySlug(organizationID uuid.UUID, slug string) (models.Project, error)
ReadBySlug provides a mock function for the type ProjectRepository
func (*ProjectRepository) ReadBySlugUnscoped ¶ added in v0.17.2
func (_mock *ProjectRepository) ReadBySlugUnscoped(organizationID uuid.UUID, slug string) (models.Project, error)
ReadBySlugUnscoped provides a mock function for the type ProjectRepository
func (*ProjectRepository) RecursivelyGetChildProjects ¶ added in v0.17.2
func (_mock *ProjectRepository) RecursivelyGetChildProjects(projectID uuid.UUID) ([]models.Project, error)
RecursivelyGetChildProjects provides a mock function for the type ProjectRepository
func (*ProjectRepository) Update ¶ added in v0.17.2
Update provides a mock function for the type ProjectRepository
type ProjectRepository_Activate_Call ¶ added in v0.17.2
ProjectRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*ProjectRepository_Activate_Call) Return ¶ added in v0.17.2
func (_c *ProjectRepository_Activate_Call) Return(err error) *ProjectRepository_Activate_Call
func (*ProjectRepository_Activate_Call) Run ¶ added in v0.17.2
func (_c *ProjectRepository_Activate_Call) Run(run func(tx core.DB, projectID uuid.UUID)) *ProjectRepository_Activate_Call
func (*ProjectRepository_Activate_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectRepository_Activate_Call) RunAndReturn(run func(tx core.DB, projectID uuid.UUID) error) *ProjectRepository_Activate_Call
type ProjectRepository_Create_Call ¶ added in v0.17.2
ProjectRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ProjectRepository_Create_Call) Return ¶ added in v0.17.2
func (_c *ProjectRepository_Create_Call) Return(err error) *ProjectRepository_Create_Call
func (*ProjectRepository_Create_Call) Run ¶ added in v0.17.2
func (_c *ProjectRepository_Create_Call) Run(run func(tx core.DB, project *models.Project)) *ProjectRepository_Create_Call
func (*ProjectRepository_Create_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectRepository_Create_Call) RunAndReturn(run func(tx core.DB, project *models.Project) error) *ProjectRepository_Create_Call
type ProjectRepository_Delete_Call ¶ added in v0.17.2
ProjectRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*ProjectRepository_Delete_Call) Return ¶ added in v0.17.2
func (_c *ProjectRepository_Delete_Call) Return(err error) *ProjectRepository_Delete_Call
func (*ProjectRepository_Delete_Call) Run ¶ added in v0.17.2
func (_c *ProjectRepository_Delete_Call) Run(run func(tx core.DB, projectID uuid.UUID)) *ProjectRepository_Delete_Call
func (*ProjectRepository_Delete_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectRepository_Delete_Call) RunAndReturn(run func(tx core.DB, projectID uuid.UUID) error) *ProjectRepository_Delete_Call
type ProjectRepository_DisablePolicyForProject_Call ¶ added in v0.17.2
ProjectRepository_DisablePolicyForProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DisablePolicyForProject'
func (*ProjectRepository_DisablePolicyForProject_Call) Return ¶ added in v0.17.2
func (_c *ProjectRepository_DisablePolicyForProject_Call) Return(err error) *ProjectRepository_DisablePolicyForProject_Call
func (*ProjectRepository_DisablePolicyForProject_Call) Run ¶ added in v0.17.2
func (_c *ProjectRepository_DisablePolicyForProject_Call) Run(run func(tx core.DB, projectID uuid.UUID, policyID uuid.UUID)) *ProjectRepository_DisablePolicyForProject_Call
func (*ProjectRepository_DisablePolicyForProject_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectRepository_DisablePolicyForProject_Call) RunAndReturn(run func(tx core.DB, projectID uuid.UUID, policyID uuid.UUID) error) *ProjectRepository_DisablePolicyForProject_Call
type ProjectRepository_EnableCommunityManagedPolicies_Call ¶ added in v0.17.2
ProjectRepository_EnableCommunityManagedPolicies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnableCommunityManagedPolicies'
func (*ProjectRepository_EnableCommunityManagedPolicies_Call) Run ¶ added in v0.17.2
func (_c *ProjectRepository_EnableCommunityManagedPolicies_Call) Run(run func(tx core.DB, projectID uuid.UUID)) *ProjectRepository_EnableCommunityManagedPolicies_Call
func (*ProjectRepository_EnableCommunityManagedPolicies_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectRepository_EnableCommunityManagedPolicies_Call) RunAndReturn(run func(tx core.DB, projectID uuid.UUID) error) *ProjectRepository_EnableCommunityManagedPolicies_Call
type ProjectRepository_EnablePolicyForProject_Call ¶ added in v0.17.2
ProjectRepository_EnablePolicyForProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnablePolicyForProject'
func (*ProjectRepository_EnablePolicyForProject_Call) Return ¶ added in v0.17.2
func (_c *ProjectRepository_EnablePolicyForProject_Call) Return(err error) *ProjectRepository_EnablePolicyForProject_Call
func (*ProjectRepository_EnablePolicyForProject_Call) Run ¶ added in v0.17.2
func (_c *ProjectRepository_EnablePolicyForProject_Call) Run(run func(tx core.DB, projectID uuid.UUID, policyID uuid.UUID)) *ProjectRepository_EnablePolicyForProject_Call
func (*ProjectRepository_EnablePolicyForProject_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectRepository_EnablePolicyForProject_Call) RunAndReturn(run func(tx core.DB, projectID uuid.UUID, policyID uuid.UUID) error) *ProjectRepository_EnablePolicyForProject_Call
type ProjectRepository_Expecter ¶ added in v0.17.2
type ProjectRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ProjectRepository_Expecter) Activate ¶ added in v0.17.2
func (_e *ProjectRepository_Expecter) Activate(tx interface{}, projectID interface{}) *ProjectRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx core.DB
- projectID uuid.UUID
func (*ProjectRepository_Expecter) Create ¶ added in v0.17.2
func (_e *ProjectRepository_Expecter) Create(tx interface{}, project interface{}) *ProjectRepository_Create_Call
Create is a helper method to define mock.On call
- tx core.DB
- project *models.Project
func (*ProjectRepository_Expecter) Delete ¶ added in v0.17.2
func (_e *ProjectRepository_Expecter) Delete(tx interface{}, projectID interface{}) *ProjectRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx core.DB
- projectID uuid.UUID
func (*ProjectRepository_Expecter) DisablePolicyForProject ¶ added in v0.17.2
func (_e *ProjectRepository_Expecter) DisablePolicyForProject(tx interface{}, projectID interface{}, policyID interface{}) *ProjectRepository_DisablePolicyForProject_Call
DisablePolicyForProject is a helper method to define mock.On call
- tx core.DB
- projectID uuid.UUID
- policyID uuid.UUID
func (*ProjectRepository_Expecter) EnableCommunityManagedPolicies ¶ added in v0.17.2
func (_e *ProjectRepository_Expecter) EnableCommunityManagedPolicies(tx interface{}, projectID interface{}) *ProjectRepository_EnableCommunityManagedPolicies_Call
EnableCommunityManagedPolicies is a helper method to define mock.On call
- tx core.DB
- projectID uuid.UUID
func (*ProjectRepository_Expecter) EnablePolicyForProject ¶ added in v0.17.2
func (_e *ProjectRepository_Expecter) EnablePolicyForProject(tx interface{}, projectID interface{}, policyID interface{}) *ProjectRepository_EnablePolicyForProject_Call
EnablePolicyForProject is a helper method to define mock.On call
- tx core.DB
- projectID uuid.UUID
- policyID uuid.UUID
func (*ProjectRepository_Expecter) GetByOrgID ¶ added in v0.17.2
func (_e *ProjectRepository_Expecter) GetByOrgID(organizationID interface{}) *ProjectRepository_GetByOrgID_Call
GetByOrgID is a helper method to define mock.On call
- organizationID uuid.UUID
func (*ProjectRepository_Expecter) GetDirectChildProjects ¶ added in v0.17.2
func (_e *ProjectRepository_Expecter) GetDirectChildProjects(projectID interface{}) *ProjectRepository_GetDirectChildProjects_Call
GetDirectChildProjects is a helper method to define mock.On call
- projectID uuid.UUID
func (*ProjectRepository_Expecter) GetProjectByAssetID ¶ added in v0.17.2
func (_e *ProjectRepository_Expecter) GetProjectByAssetID(assetID interface{}) *ProjectRepository_GetProjectByAssetID_Call
GetProjectByAssetID is a helper method to define mock.On call
- assetID uuid.UUID
func (*ProjectRepository_Expecter) List ¶ added in v0.17.2
func (_e *ProjectRepository_Expecter) List(idSlice interface{}, parentID interface{}, organizationID interface{}) *ProjectRepository_List_Call
List is a helper method to define mock.On call
- idSlice []uuid.UUID
- parentID *uuid.UUID
- organizationID uuid.UUID
func (*ProjectRepository_Expecter) ListPaged ¶ added in v0.17.2
func (_e *ProjectRepository_Expecter) ListPaged(projectIDs interface{}, parentID interface{}, orgID interface{}, pageInfo interface{}, search interface{}) *ProjectRepository_ListPaged_Call
ListPaged is a helper method to define mock.On call
- projectIDs []uuid.UUID
- parentID *uuid.UUID
- orgID uuid.UUID
- pageInfo core.PageInfo
- search string
func (*ProjectRepository_Expecter) Read ¶ added in v0.17.2
func (_e *ProjectRepository_Expecter) Read(projectID interface{}) *ProjectRepository_Read_Call
Read is a helper method to define mock.On call
- projectID uuid.UUID
func (*ProjectRepository_Expecter) ReadBySlug ¶ added in v0.17.2
func (_e *ProjectRepository_Expecter) ReadBySlug(organizationID interface{}, slug interface{}) *ProjectRepository_ReadBySlug_Call
ReadBySlug is a helper method to define mock.On call
- organizationID uuid.UUID
- slug string
func (*ProjectRepository_Expecter) ReadBySlugUnscoped ¶ added in v0.17.2
func (_e *ProjectRepository_Expecter) ReadBySlugUnscoped(organizationID interface{}, slug interface{}) *ProjectRepository_ReadBySlugUnscoped_Call
ReadBySlugUnscoped is a helper method to define mock.On call
- organizationID uuid.UUID
- slug string
func (*ProjectRepository_Expecter) RecursivelyGetChildProjects ¶ added in v0.17.2
func (_e *ProjectRepository_Expecter) RecursivelyGetChildProjects(projectID interface{}) *ProjectRepository_RecursivelyGetChildProjects_Call
RecursivelyGetChildProjects is a helper method to define mock.On call
- projectID uuid.UUID
func (*ProjectRepository_Expecter) Update ¶ added in v0.17.2
func (_e *ProjectRepository_Expecter) Update(tx interface{}, project interface{}) *ProjectRepository_Update_Call
Update is a helper method to define mock.On call
- tx core.DB
- project *models.Project
func (*ProjectRepository_Expecter) Upsert ¶ added in v0.17.2
func (_e *ProjectRepository_Expecter) Upsert(projects interface{}, conflictingColumns interface{}, toUpdate interface{}) *ProjectRepository_Upsert_Call
Upsert is a helper method to define mock.On call
- projects *[]*models.Project
- conflictingColumns []clause.Column
- toUpdate []string
func (*ProjectRepository_Expecter) UpsertSplit ¶ added in v0.17.2
func (_e *ProjectRepository_Expecter) UpsertSplit(tx interface{}, externalProviderID interface{}, projects interface{}) *ProjectRepository_UpsertSplit_Call
UpsertSplit is a helper method to define mock.On call
- tx core.DB
- externalProviderID string
- projects []*models.Project
type ProjectRepository_GetByOrgID_Call ¶ added in v0.17.2
ProjectRepository_GetByOrgID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByOrgID'
func (*ProjectRepository_GetByOrgID_Call) Return ¶ added in v0.17.2
func (_c *ProjectRepository_GetByOrgID_Call) Return(projects []models.Project, err error) *ProjectRepository_GetByOrgID_Call
func (*ProjectRepository_GetByOrgID_Call) Run ¶ added in v0.17.2
func (_c *ProjectRepository_GetByOrgID_Call) Run(run func(organizationID uuid.UUID)) *ProjectRepository_GetByOrgID_Call
func (*ProjectRepository_GetByOrgID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectRepository_GetByOrgID_Call) RunAndReturn(run func(organizationID uuid.UUID) ([]models.Project, error)) *ProjectRepository_GetByOrgID_Call
type ProjectRepository_GetDirectChildProjects_Call ¶ added in v0.17.2
ProjectRepository_GetDirectChildProjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDirectChildProjects'
func (*ProjectRepository_GetDirectChildProjects_Call) Return ¶ added in v0.17.2
func (_c *ProjectRepository_GetDirectChildProjects_Call) Return(projects []models.Project, err error) *ProjectRepository_GetDirectChildProjects_Call
func (*ProjectRepository_GetDirectChildProjects_Call) Run ¶ added in v0.17.2
func (_c *ProjectRepository_GetDirectChildProjects_Call) Run(run func(projectID uuid.UUID)) *ProjectRepository_GetDirectChildProjects_Call
func (*ProjectRepository_GetDirectChildProjects_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectRepository_GetDirectChildProjects_Call) RunAndReturn(run func(projectID uuid.UUID) ([]models.Project, error)) *ProjectRepository_GetDirectChildProjects_Call
type ProjectRepository_GetProjectByAssetID_Call ¶ added in v0.17.2
ProjectRepository_GetProjectByAssetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProjectByAssetID'
func (*ProjectRepository_GetProjectByAssetID_Call) Return ¶ added in v0.17.2
func (_c *ProjectRepository_GetProjectByAssetID_Call) Return(project models.Project, err error) *ProjectRepository_GetProjectByAssetID_Call
func (*ProjectRepository_GetProjectByAssetID_Call) Run ¶ added in v0.17.2
func (_c *ProjectRepository_GetProjectByAssetID_Call) Run(run func(assetID uuid.UUID)) *ProjectRepository_GetProjectByAssetID_Call
func (*ProjectRepository_GetProjectByAssetID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectRepository_GetProjectByAssetID_Call) RunAndReturn(run func(assetID uuid.UUID) (models.Project, error)) *ProjectRepository_GetProjectByAssetID_Call
type ProjectRepository_ListPaged_Call ¶ added in v0.17.2
ProjectRepository_ListPaged_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPaged'
func (*ProjectRepository_ListPaged_Call) Return ¶ added in v0.17.2
func (_c *ProjectRepository_ListPaged_Call) Return(paged core.Paged[models.Project], err error) *ProjectRepository_ListPaged_Call
func (*ProjectRepository_ListPaged_Call) RunAndReturn ¶ added in v0.17.2
type ProjectRepository_List_Call ¶ added in v0.17.2
ProjectRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ProjectRepository_List_Call) Return ¶ added in v0.17.2
func (_c *ProjectRepository_List_Call) Return(projects []models.Project, err error) *ProjectRepository_List_Call
func (*ProjectRepository_List_Call) Run ¶ added in v0.17.2
func (_c *ProjectRepository_List_Call) Run(run func(idSlice []uuid.UUID, parentID *uuid.UUID, organizationID uuid.UUID)) *ProjectRepository_List_Call
func (*ProjectRepository_List_Call) RunAndReturn ¶ added in v0.17.2
type ProjectRepository_ReadBySlugUnscoped_Call ¶ added in v0.17.2
ProjectRepository_ReadBySlugUnscoped_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadBySlugUnscoped'
func (*ProjectRepository_ReadBySlugUnscoped_Call) Return ¶ added in v0.17.2
func (_c *ProjectRepository_ReadBySlugUnscoped_Call) Return(project models.Project, err error) *ProjectRepository_ReadBySlugUnscoped_Call
func (*ProjectRepository_ReadBySlugUnscoped_Call) Run ¶ added in v0.17.2
func (_c *ProjectRepository_ReadBySlugUnscoped_Call) Run(run func(organizationID uuid.UUID, slug string)) *ProjectRepository_ReadBySlugUnscoped_Call
func (*ProjectRepository_ReadBySlugUnscoped_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectRepository_ReadBySlugUnscoped_Call) RunAndReturn(run func(organizationID uuid.UUID, slug string) (models.Project, error)) *ProjectRepository_ReadBySlugUnscoped_Call
type ProjectRepository_ReadBySlug_Call ¶ added in v0.17.2
ProjectRepository_ReadBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadBySlug'
func (*ProjectRepository_ReadBySlug_Call) Return ¶ added in v0.17.2
func (_c *ProjectRepository_ReadBySlug_Call) Return(project models.Project, err error) *ProjectRepository_ReadBySlug_Call
func (*ProjectRepository_ReadBySlug_Call) Run ¶ added in v0.17.2
func (_c *ProjectRepository_ReadBySlug_Call) Run(run func(organizationID uuid.UUID, slug string)) *ProjectRepository_ReadBySlug_Call
func (*ProjectRepository_ReadBySlug_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectRepository_ReadBySlug_Call) RunAndReturn(run func(organizationID uuid.UUID, slug string) (models.Project, error)) *ProjectRepository_ReadBySlug_Call
type ProjectRepository_Read_Call ¶ added in v0.17.2
ProjectRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*ProjectRepository_Read_Call) Return ¶ added in v0.17.2
func (_c *ProjectRepository_Read_Call) Return(project models.Project, err error) *ProjectRepository_Read_Call
func (*ProjectRepository_Read_Call) Run ¶ added in v0.17.2
func (_c *ProjectRepository_Read_Call) Run(run func(projectID uuid.UUID)) *ProjectRepository_Read_Call
func (*ProjectRepository_Read_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectRepository_Read_Call) RunAndReturn(run func(projectID uuid.UUID) (models.Project, error)) *ProjectRepository_Read_Call
type ProjectRepository_RecursivelyGetChildProjects_Call ¶ added in v0.17.2
ProjectRepository_RecursivelyGetChildProjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RecursivelyGetChildProjects'
func (*ProjectRepository_RecursivelyGetChildProjects_Call) Return ¶ added in v0.17.2
func (_c *ProjectRepository_RecursivelyGetChildProjects_Call) Return(projects []models.Project, err error) *ProjectRepository_RecursivelyGetChildProjects_Call
func (*ProjectRepository_RecursivelyGetChildProjects_Call) Run ¶ added in v0.17.2
func (_c *ProjectRepository_RecursivelyGetChildProjects_Call) Run(run func(projectID uuid.UUID)) *ProjectRepository_RecursivelyGetChildProjects_Call
func (*ProjectRepository_RecursivelyGetChildProjects_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectRepository_RecursivelyGetChildProjects_Call) RunAndReturn(run func(projectID uuid.UUID) ([]models.Project, error)) *ProjectRepository_RecursivelyGetChildProjects_Call
type ProjectRepository_Update_Call ¶ added in v0.17.2
ProjectRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*ProjectRepository_Update_Call) Return ¶ added in v0.17.2
func (_c *ProjectRepository_Update_Call) Return(err error) *ProjectRepository_Update_Call
func (*ProjectRepository_Update_Call) Run ¶ added in v0.17.2
func (_c *ProjectRepository_Update_Call) Run(run func(tx core.DB, project *models.Project)) *ProjectRepository_Update_Call
func (*ProjectRepository_Update_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectRepository_Update_Call) RunAndReturn(run func(tx core.DB, project *models.Project) error) *ProjectRepository_Update_Call
type ProjectRepository_UpsertSplit_Call ¶ added in v0.17.2
ProjectRepository_UpsertSplit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpsertSplit'
func (*ProjectRepository_UpsertSplit_Call) Return ¶ added in v0.17.2
func (_c *ProjectRepository_UpsertSplit_Call) Return(projects1 []*models.Project, projects2 []*models.Project, err error) *ProjectRepository_UpsertSplit_Call
func (*ProjectRepository_UpsertSplit_Call) Run ¶ added in v0.17.2
func (_c *ProjectRepository_UpsertSplit_Call) Run(run func(tx core.DB, externalProviderID string, projects []*models.Project)) *ProjectRepository_UpsertSplit_Call
func (*ProjectRepository_UpsertSplit_Call) RunAndReturn ¶ added in v0.17.2
type ProjectRepository_Upsert_Call ¶ added in v0.17.2
ProjectRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*ProjectRepository_Upsert_Call) Return ¶ added in v0.17.2
func (_c *ProjectRepository_Upsert_Call) Return(err error) *ProjectRepository_Upsert_Call
func (*ProjectRepository_Upsert_Call) Run ¶ added in v0.17.2
func (_c *ProjectRepository_Upsert_Call) Run(run func(projects *[]*models.Project, conflictingColumns []clause.Column, toUpdate []string)) *ProjectRepository_Upsert_Call
func (*ProjectRepository_Upsert_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectRepository_Upsert_Call) RunAndReturn(run func(projects *[]*models.Project, conflictingColumns []clause.Column, toUpdate []string) error) *ProjectRepository_Upsert_Call
type ProjectRiskHistoryRepository ¶ added in v0.17.2
ProjectRiskHistoryRepository is an autogenerated mock type for the ProjectRiskHistoryRepository type
func NewProjectRiskHistoryRepository ¶ added in v0.17.2
func NewProjectRiskHistoryRepository(t interface { mock.TestingT Cleanup(func()) }) *ProjectRiskHistoryRepository
NewProjectRiskHistoryRepository creates a new instance of ProjectRiskHistoryRepository. 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 (*ProjectRiskHistoryRepository) EXPECT ¶ added in v0.17.2
func (_m *ProjectRiskHistoryRepository) EXPECT() *ProjectRiskHistoryRepository_Expecter
func (*ProjectRiskHistoryRepository) GetRiskHistory ¶ added in v0.17.2
func (_mock *ProjectRiskHistoryRepository) GetRiskHistory(projectID uuid.UUID, start time.Time, end time.Time) ([]models.ProjectRiskHistory, error)
GetRiskHistory provides a mock function for the type ProjectRiskHistoryRepository
func (*ProjectRiskHistoryRepository) UpdateRiskAggregation ¶ added in v0.17.2
func (_mock *ProjectRiskHistoryRepository) UpdateRiskAggregation(projectRisk *models.ProjectRiskHistory) error
UpdateRiskAggregation provides a mock function for the type ProjectRiskHistoryRepository
type ProjectRiskHistoryRepository_Expecter ¶ added in v0.17.2
type ProjectRiskHistoryRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ProjectRiskHistoryRepository_Expecter) GetRiskHistory ¶ added in v0.17.2
func (_e *ProjectRiskHistoryRepository_Expecter) GetRiskHistory(projectID interface{}, start interface{}, end interface{}) *ProjectRiskHistoryRepository_GetRiskHistory_Call
GetRiskHistory is a helper method to define mock.On call
- projectID uuid.UUID
- start time.Time
- end time.Time
func (*ProjectRiskHistoryRepository_Expecter) UpdateRiskAggregation ¶ added in v0.17.2
func (_e *ProjectRiskHistoryRepository_Expecter) UpdateRiskAggregation(projectRisk interface{}) *ProjectRiskHistoryRepository_UpdateRiskAggregation_Call
UpdateRiskAggregation is a helper method to define mock.On call
- projectRisk *models.ProjectRiskHistory
type ProjectRiskHistoryRepository_GetRiskHistory_Call ¶ added in v0.17.2
ProjectRiskHistoryRepository_GetRiskHistory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRiskHistory'
func (*ProjectRiskHistoryRepository_GetRiskHistory_Call) Return ¶ added in v0.17.2
func (_c *ProjectRiskHistoryRepository_GetRiskHistory_Call) Return(projectRiskHistorys []models.ProjectRiskHistory, err error) *ProjectRiskHistoryRepository_GetRiskHistory_Call
func (*ProjectRiskHistoryRepository_GetRiskHistory_Call) Run ¶ added in v0.17.2
func (_c *ProjectRiskHistoryRepository_GetRiskHistory_Call) Run(run func(projectID uuid.UUID, start time.Time, end time.Time)) *ProjectRiskHistoryRepository_GetRiskHistory_Call
func (*ProjectRiskHistoryRepository_GetRiskHistory_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectRiskHistoryRepository_GetRiskHistory_Call) RunAndReturn(run func(projectID uuid.UUID, start time.Time, end time.Time) ([]models.ProjectRiskHistory, error)) *ProjectRiskHistoryRepository_GetRiskHistory_Call
type ProjectRiskHistoryRepository_UpdateRiskAggregation_Call ¶ added in v0.17.2
ProjectRiskHistoryRepository_UpdateRiskAggregation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRiskAggregation'
func (*ProjectRiskHistoryRepository_UpdateRiskAggregation_Call) Run ¶ added in v0.17.2
func (_c *ProjectRiskHistoryRepository_UpdateRiskAggregation_Call) Run(run func(projectRisk *models.ProjectRiskHistory)) *ProjectRiskHistoryRepository_UpdateRiskAggregation_Call
func (*ProjectRiskHistoryRepository_UpdateRiskAggregation_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectRiskHistoryRepository_UpdateRiskAggregation_Call) RunAndReturn(run func(projectRisk *models.ProjectRiskHistory) error) *ProjectRiskHistoryRepository_UpdateRiskAggregation_Call
type ProjectService ¶ added in v0.17.2
ProjectService is an autogenerated mock type for the ProjectService type
func NewProjectService ¶ added in v0.17.2
func NewProjectService(t interface { mock.TestingT Cleanup(func()) }) *ProjectService
NewProjectService creates a new instance of ProjectService. 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 (*ProjectService) BootstrapProject ¶ added in v0.17.2
func (_mock *ProjectService) BootstrapProject(rbac core.AccessControl, project *models.Project) error
BootstrapProject provides a mock function for the type ProjectService
func (*ProjectService) CreateProject ¶ added in v0.17.2
CreateProject provides a mock function for the type ProjectService
func (*ProjectService) EXPECT ¶ added in v0.17.2
func (_m *ProjectService) EXPECT() *ProjectService_Expecter
func (*ProjectService) GetDirectChildProjects ¶ added in v0.17.2
GetDirectChildProjects provides a mock function for the type ProjectService
func (*ProjectService) ListAllowedProjects ¶ added in v0.17.2
ListAllowedProjects provides a mock function for the type ProjectService
func (*ProjectService) ListAllowedProjectsPaged ¶ added in v0.17.2
func (_mock *ProjectService) ListAllowedProjectsPaged(c core.Context) (core.Paged[models.Project], error)
ListAllowedProjectsPaged provides a mock function for the type ProjectService
func (*ProjectService) ListProjectsByOrganizationID ¶ added in v0.17.2
func (_mock *ProjectService) ListProjectsByOrganizationID(organizationID uuid.UUID) ([]models.Project, error)
ListProjectsByOrganizationID provides a mock function for the type ProjectService
func (*ProjectService) ReadBySlug ¶ added in v0.17.2
func (_mock *ProjectService) ReadBySlug(ctx core.Context, organizationID uuid.UUID, slug string) (models.Project, error)
ReadBySlug provides a mock function for the type ProjectService
func (*ProjectService) RecursivelyGetChildProjects ¶ added in v0.17.2
func (_mock *ProjectService) RecursivelyGetChildProjects(projectID uuid.UUID) ([]models.Project, error)
RecursivelyGetChildProjects provides a mock function for the type ProjectService
type ProjectService_BootstrapProject_Call ¶ added in v0.17.2
ProjectService_BootstrapProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BootstrapProject'
func (*ProjectService_BootstrapProject_Call) Return ¶ added in v0.17.2
func (_c *ProjectService_BootstrapProject_Call) Return(err error) *ProjectService_BootstrapProject_Call
func (*ProjectService_BootstrapProject_Call) Run ¶ added in v0.17.2
func (_c *ProjectService_BootstrapProject_Call) Run(run func(rbac core.AccessControl, project *models.Project)) *ProjectService_BootstrapProject_Call
func (*ProjectService_BootstrapProject_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectService_BootstrapProject_Call) RunAndReturn(run func(rbac core.AccessControl, project *models.Project) error) *ProjectService_BootstrapProject_Call
type ProjectService_CreateProject_Call ¶ added in v0.17.2
ProjectService_CreateProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateProject'
func (*ProjectService_CreateProject_Call) Return ¶ added in v0.17.2
func (_c *ProjectService_CreateProject_Call) Return(err error) *ProjectService_CreateProject_Call
func (*ProjectService_CreateProject_Call) Run ¶ added in v0.17.2
func (_c *ProjectService_CreateProject_Call) Run(run func(ctx core.Context, project *models.Project)) *ProjectService_CreateProject_Call
func (*ProjectService_CreateProject_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectService_CreateProject_Call) RunAndReturn(run func(ctx core.Context, project *models.Project) error) *ProjectService_CreateProject_Call
type ProjectService_Expecter ¶ added in v0.17.2
type ProjectService_Expecter struct {
// contains filtered or unexported fields
}
func (*ProjectService_Expecter) BootstrapProject ¶ added in v0.17.2
func (_e *ProjectService_Expecter) BootstrapProject(rbac interface{}, project interface{}) *ProjectService_BootstrapProject_Call
BootstrapProject is a helper method to define mock.On call
- rbac core.AccessControl
- project *models.Project
func (*ProjectService_Expecter) CreateProject ¶ added in v0.17.2
func (_e *ProjectService_Expecter) CreateProject(ctx interface{}, project interface{}) *ProjectService_CreateProject_Call
CreateProject is a helper method to define mock.On call
- ctx core.Context
- project *models.Project
func (*ProjectService_Expecter) GetDirectChildProjects ¶ added in v0.17.2
func (_e *ProjectService_Expecter) GetDirectChildProjects(projectID interface{}) *ProjectService_GetDirectChildProjects_Call
GetDirectChildProjects is a helper method to define mock.On call
- projectID uuid.UUID
func (*ProjectService_Expecter) ListAllowedProjects ¶ added in v0.17.2
func (_e *ProjectService_Expecter) ListAllowedProjects(ctx interface{}) *ProjectService_ListAllowedProjects_Call
ListAllowedProjects is a helper method to define mock.On call
- ctx core.Context
func (*ProjectService_Expecter) ListAllowedProjectsPaged ¶ added in v0.17.2
func (_e *ProjectService_Expecter) ListAllowedProjectsPaged(c interface{}) *ProjectService_ListAllowedProjectsPaged_Call
ListAllowedProjectsPaged is a helper method to define mock.On call
- c core.Context
func (*ProjectService_Expecter) ListProjectsByOrganizationID ¶ added in v0.17.2
func (_e *ProjectService_Expecter) ListProjectsByOrganizationID(organizationID interface{}) *ProjectService_ListProjectsByOrganizationID_Call
ListProjectsByOrganizationID is a helper method to define mock.On call
- organizationID uuid.UUID
func (*ProjectService_Expecter) ReadBySlug ¶ added in v0.17.2
func (_e *ProjectService_Expecter) ReadBySlug(ctx interface{}, organizationID interface{}, slug interface{}) *ProjectService_ReadBySlug_Call
ReadBySlug is a helper method to define mock.On call
- ctx core.Context
- organizationID uuid.UUID
- slug string
func (*ProjectService_Expecter) RecursivelyGetChildProjects ¶ added in v0.17.2
func (_e *ProjectService_Expecter) RecursivelyGetChildProjects(projectID interface{}) *ProjectService_RecursivelyGetChildProjects_Call
RecursivelyGetChildProjects is a helper method to define mock.On call
- projectID uuid.UUID
type ProjectService_GetDirectChildProjects_Call ¶ added in v0.17.2
ProjectService_GetDirectChildProjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDirectChildProjects'
func (*ProjectService_GetDirectChildProjects_Call) Return ¶ added in v0.17.2
func (_c *ProjectService_GetDirectChildProjects_Call) Return(projects []models.Project, err error) *ProjectService_GetDirectChildProjects_Call
func (*ProjectService_GetDirectChildProjects_Call) Run ¶ added in v0.17.2
func (_c *ProjectService_GetDirectChildProjects_Call) Run(run func(projectID uuid.UUID)) *ProjectService_GetDirectChildProjects_Call
func (*ProjectService_GetDirectChildProjects_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectService_GetDirectChildProjects_Call) RunAndReturn(run func(projectID uuid.UUID) ([]models.Project, error)) *ProjectService_GetDirectChildProjects_Call
type ProjectService_ListAllowedProjectsPaged_Call ¶ added in v0.17.2
ProjectService_ListAllowedProjectsPaged_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAllowedProjectsPaged'
func (*ProjectService_ListAllowedProjectsPaged_Call) Return ¶ added in v0.17.2
func (_c *ProjectService_ListAllowedProjectsPaged_Call) Return(paged core.Paged[models.Project], err error) *ProjectService_ListAllowedProjectsPaged_Call
func (*ProjectService_ListAllowedProjectsPaged_Call) Run ¶ added in v0.17.2
func (_c *ProjectService_ListAllowedProjectsPaged_Call) Run(run func(c core.Context)) *ProjectService_ListAllowedProjectsPaged_Call
func (*ProjectService_ListAllowedProjectsPaged_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectService_ListAllowedProjectsPaged_Call) RunAndReturn(run func(c core.Context) (core.Paged[models.Project], error)) *ProjectService_ListAllowedProjectsPaged_Call
type ProjectService_ListAllowedProjects_Call ¶ added in v0.17.2
ProjectService_ListAllowedProjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAllowedProjects'
func (*ProjectService_ListAllowedProjects_Call) Return ¶ added in v0.17.2
func (_c *ProjectService_ListAllowedProjects_Call) Return(projects []models.Project, err error) *ProjectService_ListAllowedProjects_Call
func (*ProjectService_ListAllowedProjects_Call) Run ¶ added in v0.17.2
func (_c *ProjectService_ListAllowedProjects_Call) Run(run func(ctx core.Context)) *ProjectService_ListAllowedProjects_Call
func (*ProjectService_ListAllowedProjects_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectService_ListAllowedProjects_Call) RunAndReturn(run func(ctx core.Context) ([]models.Project, error)) *ProjectService_ListAllowedProjects_Call
type ProjectService_ListProjectsByOrganizationID_Call ¶ added in v0.17.2
ProjectService_ListProjectsByOrganizationID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListProjectsByOrganizationID'
func (*ProjectService_ListProjectsByOrganizationID_Call) Return ¶ added in v0.17.2
func (_c *ProjectService_ListProjectsByOrganizationID_Call) Return(projects []models.Project, err error) *ProjectService_ListProjectsByOrganizationID_Call
func (*ProjectService_ListProjectsByOrganizationID_Call) Run ¶ added in v0.17.2
func (_c *ProjectService_ListProjectsByOrganizationID_Call) Run(run func(organizationID uuid.UUID)) *ProjectService_ListProjectsByOrganizationID_Call
func (*ProjectService_ListProjectsByOrganizationID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectService_ListProjectsByOrganizationID_Call) RunAndReturn(run func(organizationID uuid.UUID) ([]models.Project, error)) *ProjectService_ListProjectsByOrganizationID_Call
type ProjectService_ReadBySlug_Call ¶ added in v0.17.2
ProjectService_ReadBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadBySlug'
func (*ProjectService_ReadBySlug_Call) Return ¶ added in v0.17.2
func (_c *ProjectService_ReadBySlug_Call) Return(project models.Project, err error) *ProjectService_ReadBySlug_Call
func (*ProjectService_ReadBySlug_Call) Run ¶ added in v0.17.2
func (_c *ProjectService_ReadBySlug_Call) Run(run func(ctx core.Context, organizationID uuid.UUID, slug string)) *ProjectService_ReadBySlug_Call
func (*ProjectService_ReadBySlug_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectService_ReadBySlug_Call) RunAndReturn(run func(ctx core.Context, organizationID uuid.UUID, slug string) (models.Project, error)) *ProjectService_ReadBySlug_Call
type ProjectService_RecursivelyGetChildProjects_Call ¶ added in v0.17.2
ProjectService_RecursivelyGetChildProjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RecursivelyGetChildProjects'
func (*ProjectService_RecursivelyGetChildProjects_Call) Return ¶ added in v0.17.2
func (_c *ProjectService_RecursivelyGetChildProjects_Call) Return(projects []models.Project, err error) *ProjectService_RecursivelyGetChildProjects_Call
func (*ProjectService_RecursivelyGetChildProjects_Call) Run ¶ added in v0.17.2
func (_c *ProjectService_RecursivelyGetChildProjects_Call) Run(run func(projectID uuid.UUID)) *ProjectService_RecursivelyGetChildProjects_Call
func (*ProjectService_RecursivelyGetChildProjects_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ProjectService_RecursivelyGetChildProjects_Call) RunAndReturn(run func(projectID uuid.UUID) ([]models.Project, error)) *ProjectService_RecursivelyGetChildProjects_Call
type RBACProvider ¶ added in v0.17.2
RBACProvider is an autogenerated mock type for the RBACProvider type
func NewRBACProvider ¶ added in v0.17.2
func NewRBACProvider(t interface { mock.TestingT Cleanup(func()) }) *RBACProvider
NewRBACProvider creates a new instance of RBACProvider. 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 (*RBACProvider) DomainsOfUser ¶ added in v0.17.2
func (_mock *RBACProvider) DomainsOfUser(user string) ([]string, error)
DomainsOfUser provides a mock function for the type RBACProvider
func (*RBACProvider) EXPECT ¶ added in v0.17.2
func (_m *RBACProvider) EXPECT() *RBACProvider_Expecter
func (*RBACProvider) GetDomainRBAC ¶ added in v0.17.2
func (_mock *RBACProvider) GetDomainRBAC(domain string) core.AccessControl
GetDomainRBAC provides a mock function for the type RBACProvider
type RBACProvider_DomainsOfUser_Call ¶ added in v0.17.2
RBACProvider_DomainsOfUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DomainsOfUser'
func (*RBACProvider_DomainsOfUser_Call) Return ¶ added in v0.17.2
func (_c *RBACProvider_DomainsOfUser_Call) Return(strings []string, err error) *RBACProvider_DomainsOfUser_Call
func (*RBACProvider_DomainsOfUser_Call) Run ¶ added in v0.17.2
func (_c *RBACProvider_DomainsOfUser_Call) Run(run func(user string)) *RBACProvider_DomainsOfUser_Call
func (*RBACProvider_DomainsOfUser_Call) RunAndReturn ¶ added in v0.17.2
func (_c *RBACProvider_DomainsOfUser_Call) RunAndReturn(run func(user string) ([]string, error)) *RBACProvider_DomainsOfUser_Call
type RBACProvider_Expecter ¶ added in v0.17.2
type RBACProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*RBACProvider_Expecter) DomainsOfUser ¶ added in v0.17.2
func (_e *RBACProvider_Expecter) DomainsOfUser(user interface{}) *RBACProvider_DomainsOfUser_Call
DomainsOfUser is a helper method to define mock.On call
- user string
func (*RBACProvider_Expecter) GetDomainRBAC ¶ added in v0.17.2
func (_e *RBACProvider_Expecter) GetDomainRBAC(domain interface{}) *RBACProvider_GetDomainRBAC_Call
GetDomainRBAC is a helper method to define mock.On call
- domain string
type RBACProvider_GetDomainRBAC_Call ¶ added in v0.17.2
RBACProvider_GetDomainRBAC_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDomainRBAC'
func (*RBACProvider_GetDomainRBAC_Call) Return ¶ added in v0.17.2
func (_c *RBACProvider_GetDomainRBAC_Call) Return(accessControl core.AccessControl) *RBACProvider_GetDomainRBAC_Call
func (*RBACProvider_GetDomainRBAC_Call) Run ¶ added in v0.17.2
func (_c *RBACProvider_GetDomainRBAC_Call) Run(run func(domain string)) *RBACProvider_GetDomainRBAC_Call
func (*RBACProvider_GetDomainRBAC_Call) RunAndReturn ¶ added in v0.17.2
func (_c *RBACProvider_GetDomainRBAC_Call) RunAndReturn(run func(domain string) core.AccessControl) *RBACProvider_GetDomainRBAC_Call
type ReleaseRepository ¶ added in v0.17.2
ReleaseRepository is an autogenerated mock type for the ReleaseRepository type
func NewReleaseRepository ¶ added in v0.17.2
func NewReleaseRepository(t interface { mock.TestingT Cleanup(func()) }) *ReleaseRepository
NewReleaseRepository creates a new instance of ReleaseRepository. 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 (*ReleaseRepository) Activate ¶ added in v0.17.2
Activate provides a mock function for the type ReleaseRepository
func (*ReleaseRepository) All ¶ added in v0.17.2
func (_mock *ReleaseRepository) All() ([]models.Release, error)
All provides a mock function for the type ReleaseRepository
func (*ReleaseRepository) Begin ¶ added in v0.17.2
func (_mock *ReleaseRepository) Begin() core.DB
Begin provides a mock function for the type ReleaseRepository
func (*ReleaseRepository) Create ¶ added in v0.17.2
Create provides a mock function for the type ReleaseRepository
func (*ReleaseRepository) CreateBatch ¶ added in v0.17.2
CreateBatch provides a mock function for the type ReleaseRepository
func (*ReleaseRepository) CreateReleaseItem ¶ added in v0.17.2
func (_mock *ReleaseRepository) CreateReleaseItem(tx core.DB, item *models.ReleaseItem) error
CreateReleaseItem provides a mock function for the type ReleaseRepository
func (*ReleaseRepository) Delete ¶ added in v0.17.2
Delete provides a mock function for the type ReleaseRepository
func (*ReleaseRepository) DeleteBatch ¶ added in v0.17.2
DeleteBatch provides a mock function for the type ReleaseRepository
func (*ReleaseRepository) DeleteReleaseItem ¶ added in v0.17.2
DeleteReleaseItem provides a mock function for the type ReleaseRepository
func (*ReleaseRepository) EXPECT ¶ added in v0.17.2
func (_m *ReleaseRepository) EXPECT() *ReleaseRepository_Expecter
func (*ReleaseRepository) GetByProjectID ¶ added in v0.17.2
GetByProjectID provides a mock function for the type ReleaseRepository
func (*ReleaseRepository) GetByProjectIDPaged ¶ added in v0.17.2
func (_mock *ReleaseRepository) GetByProjectIDPaged(tx core.DB, projectID uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.Release], error)
GetByProjectIDPaged provides a mock function for the type ReleaseRepository
func (*ReleaseRepository) GetCandidateItemsForRelease ¶ added in v0.17.2
func (_mock *ReleaseRepository) GetCandidateItemsForRelease(projectID uuid.UUID, releaseID *uuid.UUID) ([]models.Artifact, []models.Release, error)
GetCandidateItemsForRelease provides a mock function for the type ReleaseRepository
func (*ReleaseRepository) GetDB ¶ added in v0.17.2
func (_mock *ReleaseRepository) GetDB(tx core.DB) core.DB
GetDB provides a mock function for the type ReleaseRepository
func (*ReleaseRepository) List ¶ added in v0.17.2
List provides a mock function for the type ReleaseRepository
func (*ReleaseRepository) Read ¶ added in v0.17.2
Read provides a mock function for the type ReleaseRepository
func (*ReleaseRepository) ReadRecursive ¶ added in v0.17.2
ReadRecursive provides a mock function for the type ReleaseRepository
func (*ReleaseRepository) ReadWithItems ¶ added in v0.17.2
ReadWithItems provides a mock function for the type ReleaseRepository
func (*ReleaseRepository) Save ¶ added in v0.17.2
Save provides a mock function for the type ReleaseRepository
func (*ReleaseRepository) SaveBatch ¶ added in v0.17.2
SaveBatch provides a mock function for the type ReleaseRepository
func (*ReleaseRepository) Transaction ¶ added in v0.17.2
func (_mock *ReleaseRepository) Transaction(fn func(tx core.DB) error) error
Transaction provides a mock function for the type ReleaseRepository
type ReleaseRepository_Activate_Call ¶ added in v0.17.2
ReleaseRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*ReleaseRepository_Activate_Call) Return ¶ added in v0.17.2
func (_c *ReleaseRepository_Activate_Call) Return(err error) *ReleaseRepository_Activate_Call
func (*ReleaseRepository_Activate_Call) Run ¶ added in v0.17.2
func (_c *ReleaseRepository_Activate_Call) Run(run func(tx core.DB, id uuid.UUID)) *ReleaseRepository_Activate_Call
func (*ReleaseRepository_Activate_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ReleaseRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *ReleaseRepository_Activate_Call
type ReleaseRepository_All_Call ¶ added in v0.17.2
ReleaseRepository_All_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'All'
func (*ReleaseRepository_All_Call) Return ¶ added in v0.17.2
func (_c *ReleaseRepository_All_Call) Return(releases []models.Release, err error) *ReleaseRepository_All_Call
func (*ReleaseRepository_All_Call) Run ¶ added in v0.17.2
func (_c *ReleaseRepository_All_Call) Run(run func()) *ReleaseRepository_All_Call
func (*ReleaseRepository_All_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ReleaseRepository_All_Call) RunAndReturn(run func() ([]models.Release, error)) *ReleaseRepository_All_Call
type ReleaseRepository_Begin_Call ¶ added in v0.17.2
ReleaseRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*ReleaseRepository_Begin_Call) Return ¶ added in v0.17.2
func (_c *ReleaseRepository_Begin_Call) Return(v core.DB) *ReleaseRepository_Begin_Call
func (*ReleaseRepository_Begin_Call) Run ¶ added in v0.17.2
func (_c *ReleaseRepository_Begin_Call) Run(run func()) *ReleaseRepository_Begin_Call
func (*ReleaseRepository_Begin_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ReleaseRepository_Begin_Call) RunAndReturn(run func() core.DB) *ReleaseRepository_Begin_Call
type ReleaseRepository_CreateBatch_Call ¶ added in v0.17.2
ReleaseRepository_CreateBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBatch'
func (*ReleaseRepository_CreateBatch_Call) Return ¶ added in v0.17.2
func (_c *ReleaseRepository_CreateBatch_Call) Return(err error) *ReleaseRepository_CreateBatch_Call
func (*ReleaseRepository_CreateBatch_Call) Run ¶ added in v0.17.2
func (_c *ReleaseRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.Release)) *ReleaseRepository_CreateBatch_Call
func (*ReleaseRepository_CreateBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ReleaseRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Release) error) *ReleaseRepository_CreateBatch_Call
type ReleaseRepository_CreateReleaseItem_Call ¶ added in v0.17.2
ReleaseRepository_CreateReleaseItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateReleaseItem'
func (*ReleaseRepository_CreateReleaseItem_Call) Return ¶ added in v0.17.2
func (_c *ReleaseRepository_CreateReleaseItem_Call) Return(err error) *ReleaseRepository_CreateReleaseItem_Call
func (*ReleaseRepository_CreateReleaseItem_Call) Run ¶ added in v0.17.2
func (_c *ReleaseRepository_CreateReleaseItem_Call) Run(run func(tx core.DB, item *models.ReleaseItem)) *ReleaseRepository_CreateReleaseItem_Call
func (*ReleaseRepository_CreateReleaseItem_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ReleaseRepository_CreateReleaseItem_Call) RunAndReturn(run func(tx core.DB, item *models.ReleaseItem) error) *ReleaseRepository_CreateReleaseItem_Call
type ReleaseRepository_Create_Call ¶ added in v0.17.2
ReleaseRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ReleaseRepository_Create_Call) Return ¶ added in v0.17.2
func (_c *ReleaseRepository_Create_Call) Return(err error) *ReleaseRepository_Create_Call
func (*ReleaseRepository_Create_Call) Run ¶ added in v0.17.2
func (_c *ReleaseRepository_Create_Call) Run(run func(tx core.DB, t *models.Release)) *ReleaseRepository_Create_Call
func (*ReleaseRepository_Create_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ReleaseRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.Release) error) *ReleaseRepository_Create_Call
type ReleaseRepository_DeleteBatch_Call ¶ added in v0.17.2
ReleaseRepository_DeleteBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBatch'
func (*ReleaseRepository_DeleteBatch_Call) Return ¶ added in v0.17.2
func (_c *ReleaseRepository_DeleteBatch_Call) Return(err error) *ReleaseRepository_DeleteBatch_Call
func (*ReleaseRepository_DeleteBatch_Call) Run ¶ added in v0.17.2
func (_c *ReleaseRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.Release)) *ReleaseRepository_DeleteBatch_Call
func (*ReleaseRepository_DeleteBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ReleaseRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.Release) error) *ReleaseRepository_DeleteBatch_Call
type ReleaseRepository_DeleteReleaseItem_Call ¶ added in v0.17.2
ReleaseRepository_DeleteReleaseItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteReleaseItem'
func (*ReleaseRepository_DeleteReleaseItem_Call) Return ¶ added in v0.17.2
func (_c *ReleaseRepository_DeleteReleaseItem_Call) Return(err error) *ReleaseRepository_DeleteReleaseItem_Call
func (*ReleaseRepository_DeleteReleaseItem_Call) Run ¶ added in v0.17.2
func (_c *ReleaseRepository_DeleteReleaseItem_Call) Run(run func(tx core.DB, id uuid.UUID)) *ReleaseRepository_DeleteReleaseItem_Call
func (*ReleaseRepository_DeleteReleaseItem_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ReleaseRepository_DeleteReleaseItem_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *ReleaseRepository_DeleteReleaseItem_Call
type ReleaseRepository_Delete_Call ¶ added in v0.17.2
ReleaseRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*ReleaseRepository_Delete_Call) Return ¶ added in v0.17.2
func (_c *ReleaseRepository_Delete_Call) Return(err error) *ReleaseRepository_Delete_Call
func (*ReleaseRepository_Delete_Call) Run ¶ added in v0.17.2
func (_c *ReleaseRepository_Delete_Call) Run(run func(tx core.DB, id uuid.UUID)) *ReleaseRepository_Delete_Call
func (*ReleaseRepository_Delete_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ReleaseRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *ReleaseRepository_Delete_Call
type ReleaseRepository_Expecter ¶ added in v0.17.2
type ReleaseRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ReleaseRepository_Expecter) Activate ¶ added in v0.17.2
func (_e *ReleaseRepository_Expecter) Activate(tx interface{}, id interface{}) *ReleaseRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx core.DB
- id uuid.UUID
func (*ReleaseRepository_Expecter) All ¶ added in v0.17.2
func (_e *ReleaseRepository_Expecter) All() *ReleaseRepository_All_Call
All is a helper method to define mock.On call
func (*ReleaseRepository_Expecter) Begin ¶ added in v0.17.2
func (_e *ReleaseRepository_Expecter) Begin() *ReleaseRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*ReleaseRepository_Expecter) Create ¶ added in v0.17.2
func (_e *ReleaseRepository_Expecter) Create(tx interface{}, t interface{}) *ReleaseRepository_Create_Call
Create is a helper method to define mock.On call
- tx core.DB
- t *models.Release
func (*ReleaseRepository_Expecter) CreateBatch ¶ added in v0.17.2
func (_e *ReleaseRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *ReleaseRepository_CreateBatch_Call
CreateBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.Release
func (*ReleaseRepository_Expecter) CreateReleaseItem ¶ added in v0.17.2
func (_e *ReleaseRepository_Expecter) CreateReleaseItem(tx interface{}, item interface{}) *ReleaseRepository_CreateReleaseItem_Call
CreateReleaseItem is a helper method to define mock.On call
- tx core.DB
- item *models.ReleaseItem
func (*ReleaseRepository_Expecter) Delete ¶ added in v0.17.2
func (_e *ReleaseRepository_Expecter) Delete(tx interface{}, id interface{}) *ReleaseRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx core.DB
- id uuid.UUID
func (*ReleaseRepository_Expecter) DeleteBatch ¶ added in v0.17.2
func (_e *ReleaseRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *ReleaseRepository_DeleteBatch_Call
DeleteBatch is a helper method to define mock.On call
- tx core.DB
- ids []models.Release
func (*ReleaseRepository_Expecter) DeleteReleaseItem ¶ added in v0.17.2
func (_e *ReleaseRepository_Expecter) DeleteReleaseItem(tx interface{}, id interface{}) *ReleaseRepository_DeleteReleaseItem_Call
DeleteReleaseItem is a helper method to define mock.On call
- tx core.DB
- id uuid.UUID
func (*ReleaseRepository_Expecter) GetByProjectID ¶ added in v0.17.2
func (_e *ReleaseRepository_Expecter) GetByProjectID(projectID interface{}) *ReleaseRepository_GetByProjectID_Call
GetByProjectID is a helper method to define mock.On call
- projectID uuid.UUID
func (*ReleaseRepository_Expecter) GetByProjectIDPaged ¶ added in v0.17.2
func (_e *ReleaseRepository_Expecter) GetByProjectIDPaged(tx interface{}, projectID interface{}, pageInfo interface{}, search interface{}, filter interface{}, sort interface{}) *ReleaseRepository_GetByProjectIDPaged_Call
GetByProjectIDPaged is a helper method to define mock.On call
- tx core.DB
- projectID uuid.UUID
- pageInfo core.PageInfo
- search string
- filter []core.FilterQuery
- sort []core.SortQuery
func (*ReleaseRepository_Expecter) GetCandidateItemsForRelease ¶ added in v0.17.2
func (_e *ReleaseRepository_Expecter) GetCandidateItemsForRelease(projectID interface{}, releaseID interface{}) *ReleaseRepository_GetCandidateItemsForRelease_Call
GetCandidateItemsForRelease is a helper method to define mock.On call
- projectID uuid.UUID
- releaseID *uuid.UUID
func (*ReleaseRepository_Expecter) GetDB ¶ added in v0.17.2
func (_e *ReleaseRepository_Expecter) GetDB(tx interface{}) *ReleaseRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx core.DB
func (*ReleaseRepository_Expecter) List ¶ added in v0.17.2
func (_e *ReleaseRepository_Expecter) List(ids interface{}) *ReleaseRepository_List_Call
List is a helper method to define mock.On call
- ids []uuid.UUID
func (*ReleaseRepository_Expecter) Read ¶ added in v0.17.2
func (_e *ReleaseRepository_Expecter) Read(id interface{}) *ReleaseRepository_Read_Call
Read is a helper method to define mock.On call
- id uuid.UUID
func (*ReleaseRepository_Expecter) ReadRecursive ¶ added in v0.17.2
func (_e *ReleaseRepository_Expecter) ReadRecursive(id interface{}) *ReleaseRepository_ReadRecursive_Call
ReadRecursive is a helper method to define mock.On call
- id uuid.UUID
func (*ReleaseRepository_Expecter) ReadWithItems ¶ added in v0.17.2
func (_e *ReleaseRepository_Expecter) ReadWithItems(id interface{}) *ReleaseRepository_ReadWithItems_Call
ReadWithItems is a helper method to define mock.On call
- id uuid.UUID
func (*ReleaseRepository_Expecter) Save ¶ added in v0.17.2
func (_e *ReleaseRepository_Expecter) Save(tx interface{}, t interface{}) *ReleaseRepository_Save_Call
Save is a helper method to define mock.On call
- tx core.DB
- t *models.Release
func (*ReleaseRepository_Expecter) SaveBatch ¶ added in v0.17.2
func (_e *ReleaseRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *ReleaseRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.Release
func (*ReleaseRepository_Expecter) Transaction ¶ added in v0.17.2
func (_e *ReleaseRepository_Expecter) Transaction(fn interface{}) *ReleaseRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- fn func(tx core.DB) error
func (*ReleaseRepository_Expecter) Upsert ¶ added in v0.17.2
func (_e *ReleaseRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *ReleaseRepository_Upsert_Call
Upsert is a helper method to define mock.On call
- t *[]*models.Release
- conflictingColumns []clause.Column
- updateOnly []string
type ReleaseRepository_GetByProjectIDPaged_Call ¶ added in v0.17.2
ReleaseRepository_GetByProjectIDPaged_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByProjectIDPaged'
func (*ReleaseRepository_GetByProjectIDPaged_Call) Return ¶ added in v0.17.2
func (_c *ReleaseRepository_GetByProjectIDPaged_Call) Return(paged core.Paged[models.Release], err error) *ReleaseRepository_GetByProjectIDPaged_Call
func (*ReleaseRepository_GetByProjectIDPaged_Call) Run ¶ added in v0.17.2
func (_c *ReleaseRepository_GetByProjectIDPaged_Call) Run(run func(tx core.DB, projectID uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery)) *ReleaseRepository_GetByProjectIDPaged_Call
func (*ReleaseRepository_GetByProjectIDPaged_Call) RunAndReturn ¶ added in v0.17.2
type ReleaseRepository_GetByProjectID_Call ¶ added in v0.17.2
ReleaseRepository_GetByProjectID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByProjectID'
func (*ReleaseRepository_GetByProjectID_Call) Return ¶ added in v0.17.2
func (_c *ReleaseRepository_GetByProjectID_Call) Return(releases []models.Release, err error) *ReleaseRepository_GetByProjectID_Call
func (*ReleaseRepository_GetByProjectID_Call) Run ¶ added in v0.17.2
func (_c *ReleaseRepository_GetByProjectID_Call) Run(run func(projectID uuid.UUID)) *ReleaseRepository_GetByProjectID_Call
func (*ReleaseRepository_GetByProjectID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ReleaseRepository_GetByProjectID_Call) RunAndReturn(run func(projectID uuid.UUID) ([]models.Release, error)) *ReleaseRepository_GetByProjectID_Call
type ReleaseRepository_GetCandidateItemsForRelease_Call ¶ added in v0.17.2
ReleaseRepository_GetCandidateItemsForRelease_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCandidateItemsForRelease'
func (*ReleaseRepository_GetCandidateItemsForRelease_Call) Return ¶ added in v0.17.2
func (_c *ReleaseRepository_GetCandidateItemsForRelease_Call) Return(artifacts []models.Artifact, releases []models.Release, err error) *ReleaseRepository_GetCandidateItemsForRelease_Call
func (*ReleaseRepository_GetCandidateItemsForRelease_Call) Run ¶ added in v0.17.2
func (_c *ReleaseRepository_GetCandidateItemsForRelease_Call) Run(run func(projectID uuid.UUID, releaseID *uuid.UUID)) *ReleaseRepository_GetCandidateItemsForRelease_Call
func (*ReleaseRepository_GetCandidateItemsForRelease_Call) RunAndReturn ¶ added in v0.17.2
type ReleaseRepository_GetDB_Call ¶ added in v0.17.2
ReleaseRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*ReleaseRepository_GetDB_Call) Return ¶ added in v0.17.2
func (_c *ReleaseRepository_GetDB_Call) Return(v core.DB) *ReleaseRepository_GetDB_Call
func (*ReleaseRepository_GetDB_Call) Run ¶ added in v0.17.2
func (_c *ReleaseRepository_GetDB_Call) Run(run func(tx core.DB)) *ReleaseRepository_GetDB_Call
func (*ReleaseRepository_GetDB_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ReleaseRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *ReleaseRepository_GetDB_Call
type ReleaseRepository_List_Call ¶ added in v0.17.2
ReleaseRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ReleaseRepository_List_Call) Return ¶ added in v0.17.2
func (_c *ReleaseRepository_List_Call) Return(releases []models.Release, err error) *ReleaseRepository_List_Call
func (*ReleaseRepository_List_Call) Run ¶ added in v0.17.2
func (_c *ReleaseRepository_List_Call) Run(run func(ids []uuid.UUID)) *ReleaseRepository_List_Call
func (*ReleaseRepository_List_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ReleaseRepository_List_Call) RunAndReturn(run func(ids []uuid.UUID) ([]models.Release, error)) *ReleaseRepository_List_Call
type ReleaseRepository_ReadRecursive_Call ¶ added in v0.17.2
ReleaseRepository_ReadRecursive_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadRecursive'
func (*ReleaseRepository_ReadRecursive_Call) Return ¶ added in v0.17.2
func (_c *ReleaseRepository_ReadRecursive_Call) Return(release models.Release, err error) *ReleaseRepository_ReadRecursive_Call
func (*ReleaseRepository_ReadRecursive_Call) Run ¶ added in v0.17.2
func (_c *ReleaseRepository_ReadRecursive_Call) Run(run func(id uuid.UUID)) *ReleaseRepository_ReadRecursive_Call
func (*ReleaseRepository_ReadRecursive_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ReleaseRepository_ReadRecursive_Call) RunAndReturn(run func(id uuid.UUID) (models.Release, error)) *ReleaseRepository_ReadRecursive_Call
type ReleaseRepository_ReadWithItems_Call ¶ added in v0.17.2
ReleaseRepository_ReadWithItems_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadWithItems'
func (*ReleaseRepository_ReadWithItems_Call) Return ¶ added in v0.17.2
func (_c *ReleaseRepository_ReadWithItems_Call) Return(release models.Release, err error) *ReleaseRepository_ReadWithItems_Call
func (*ReleaseRepository_ReadWithItems_Call) Run ¶ added in v0.17.2
func (_c *ReleaseRepository_ReadWithItems_Call) Run(run func(id uuid.UUID)) *ReleaseRepository_ReadWithItems_Call
func (*ReleaseRepository_ReadWithItems_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ReleaseRepository_ReadWithItems_Call) RunAndReturn(run func(id uuid.UUID) (models.Release, error)) *ReleaseRepository_ReadWithItems_Call
type ReleaseRepository_Read_Call ¶ added in v0.17.2
ReleaseRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*ReleaseRepository_Read_Call) Return ¶ added in v0.17.2
func (_c *ReleaseRepository_Read_Call) Return(release models.Release, err error) *ReleaseRepository_Read_Call
func (*ReleaseRepository_Read_Call) Run ¶ added in v0.17.2
func (_c *ReleaseRepository_Read_Call) Run(run func(id uuid.UUID)) *ReleaseRepository_Read_Call
func (*ReleaseRepository_Read_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ReleaseRepository_Read_Call) RunAndReturn(run func(id uuid.UUID) (models.Release, error)) *ReleaseRepository_Read_Call
type ReleaseRepository_SaveBatch_Call ¶ added in v0.17.2
ReleaseRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*ReleaseRepository_SaveBatch_Call) Return ¶ added in v0.17.2
func (_c *ReleaseRepository_SaveBatch_Call) Return(err error) *ReleaseRepository_SaveBatch_Call
func (*ReleaseRepository_SaveBatch_Call) Run ¶ added in v0.17.2
func (_c *ReleaseRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.Release)) *ReleaseRepository_SaveBatch_Call
func (*ReleaseRepository_SaveBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ReleaseRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.Release) error) *ReleaseRepository_SaveBatch_Call
type ReleaseRepository_Save_Call ¶ added in v0.17.2
ReleaseRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*ReleaseRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *ReleaseRepository_Save_Call) Return(err error) *ReleaseRepository_Save_Call
func (*ReleaseRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *ReleaseRepository_Save_Call) Run(run func(tx core.DB, t *models.Release)) *ReleaseRepository_Save_Call
func (*ReleaseRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ReleaseRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *models.Release) error) *ReleaseRepository_Save_Call
type ReleaseRepository_Transaction_Call ¶ added in v0.17.2
ReleaseRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*ReleaseRepository_Transaction_Call) Return ¶ added in v0.17.2
func (_c *ReleaseRepository_Transaction_Call) Return(err error) *ReleaseRepository_Transaction_Call
func (*ReleaseRepository_Transaction_Call) Run ¶ added in v0.17.2
func (_c *ReleaseRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *ReleaseRepository_Transaction_Call
func (*ReleaseRepository_Transaction_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ReleaseRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *ReleaseRepository_Transaction_Call
type ReleaseRepository_Upsert_Call ¶ added in v0.17.2
ReleaseRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*ReleaseRepository_Upsert_Call) Return ¶ added in v0.17.2
func (_c *ReleaseRepository_Upsert_Call) Return(err error) *ReleaseRepository_Upsert_Call
func (*ReleaseRepository_Upsert_Call) Run ¶ added in v0.17.2
func (_c *ReleaseRepository_Upsert_Call) Run(run func(t *[]*models.Release, conflictingColumns []clause.Column, updateOnly []string)) *ReleaseRepository_Upsert_Call
func (*ReleaseRepository_Upsert_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ReleaseRepository_Upsert_Call) RunAndReturn(run func(t *[]*models.Release, conflictingColumns []clause.Column, updateOnly []string) error) *ReleaseRepository_Upsert_Call
type SBOM ¶ added in v0.17.2
SBOM is an autogenerated mock type for the SBOM type
func NewSBOM ¶ added in v0.17.2
NewSBOM creates a new instance of SBOM. 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 (*SBOM) EXPECT ¶ added in v0.17.2
func (_m *SBOM) EXPECT() *SBOM_Expecter
func (*SBOM) GetCdxBom ¶ added in v0.17.2
func (_mock *SBOM) GetCdxBom() *cyclonedx.BOM
GetCdxBom provides a mock function for the type SBOM
func (*SBOM) GetComponents ¶ added in v0.17.2
func (_mock *SBOM) GetComponents() *[]cyclonedx.Component
GetComponents provides a mock function for the type SBOM
func (*SBOM) GetDependencies ¶ added in v0.17.2
func (_mock *SBOM) GetDependencies() *[]cyclonedx.Dependency
GetDependencies provides a mock function for the type SBOM
func (*SBOM) GetMetadata ¶ added in v0.17.2
func (_mock *SBOM) GetMetadata() *cyclonedx.Metadata
GetMetadata provides a mock function for the type SBOM
type SBOMScanner ¶ added in v0.17.2
SBOMScanner is an autogenerated mock type for the SBOMScanner type
func NewSBOMScanner ¶ added in v0.17.2
func NewSBOMScanner(t interface { mock.TestingT Cleanup(func()) }) *SBOMScanner
NewSBOMScanner creates a new instance of SBOMScanner. 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 (*SBOMScanner) EXPECT ¶ added in v0.17.2
func (_m *SBOMScanner) EXPECT() *SBOMScanner_Expecter
func (*SBOMScanner) Scan ¶ added in v0.17.2
func (_mock *SBOMScanner) Scan(bom normalize.SBOM) ([]models.VulnInPackage, error)
Scan provides a mock function for the type SBOMScanner
type SBOMScanner_Expecter ¶ added in v0.17.2
type SBOMScanner_Expecter struct {
// contains filtered or unexported fields
}
func (*SBOMScanner_Expecter) Scan ¶ added in v0.17.2
func (_e *SBOMScanner_Expecter) Scan(bom interface{}) *SBOMScanner_Scan_Call
Scan is a helper method to define mock.On call
- bom normalize.SBOM
type SBOMScanner_Scan_Call ¶ added in v0.17.2
SBOMScanner_Scan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Scan'
func (*SBOMScanner_Scan_Call) Return ¶ added in v0.17.2
func (_c *SBOMScanner_Scan_Call) Return(vulnInPackages []models.VulnInPackage, err error) *SBOMScanner_Scan_Call
func (*SBOMScanner_Scan_Call) Run ¶ added in v0.17.2
func (_c *SBOMScanner_Scan_Call) Run(run func(bom normalize.SBOM)) *SBOMScanner_Scan_Call
func (*SBOMScanner_Scan_Call) RunAndReturn ¶ added in v0.17.2
func (_c *SBOMScanner_Scan_Call) RunAndReturn(run func(bom normalize.SBOM) ([]models.VulnInPackage, error)) *SBOMScanner_Scan_Call
type SBOM_Expecter ¶ added in v0.17.2
type SBOM_Expecter struct {
// contains filtered or unexported fields
}
func (*SBOM_Expecter) GetCdxBom ¶ added in v0.17.2
func (_e *SBOM_Expecter) GetCdxBom() *SBOM_GetCdxBom_Call
GetCdxBom is a helper method to define mock.On call
func (*SBOM_Expecter) GetComponents ¶ added in v0.17.2
func (_e *SBOM_Expecter) GetComponents() *SBOM_GetComponents_Call
GetComponents is a helper method to define mock.On call
func (*SBOM_Expecter) GetDependencies ¶ added in v0.17.2
func (_e *SBOM_Expecter) GetDependencies() *SBOM_GetDependencies_Call
GetDependencies is a helper method to define mock.On call
func (*SBOM_Expecter) GetMetadata ¶ added in v0.17.2
func (_e *SBOM_Expecter) GetMetadata() *SBOM_GetMetadata_Call
GetMetadata is a helper method to define mock.On call
type SBOM_GetCdxBom_Call ¶ added in v0.17.2
SBOM_GetCdxBom_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCdxBom'
func (*SBOM_GetCdxBom_Call) Return ¶ added in v0.17.2
func (_c *SBOM_GetCdxBom_Call) Return(bOM *cyclonedx.BOM) *SBOM_GetCdxBom_Call
func (*SBOM_GetCdxBom_Call) Run ¶ added in v0.17.2
func (_c *SBOM_GetCdxBom_Call) Run(run func()) *SBOM_GetCdxBom_Call
func (*SBOM_GetCdxBom_Call) RunAndReturn ¶ added in v0.17.2
func (_c *SBOM_GetCdxBom_Call) RunAndReturn(run func() *cyclonedx.BOM) *SBOM_GetCdxBom_Call
type SBOM_GetComponents_Call ¶ added in v0.17.2
SBOM_GetComponents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetComponents'
func (*SBOM_GetComponents_Call) Return ¶ added in v0.17.2
func (_c *SBOM_GetComponents_Call) Return(components *[]cyclonedx.Component) *SBOM_GetComponents_Call
func (*SBOM_GetComponents_Call) Run ¶ added in v0.17.2
func (_c *SBOM_GetComponents_Call) Run(run func()) *SBOM_GetComponents_Call
func (*SBOM_GetComponents_Call) RunAndReturn ¶ added in v0.17.2
func (_c *SBOM_GetComponents_Call) RunAndReturn(run func() *[]cyclonedx.Component) *SBOM_GetComponents_Call
type SBOM_GetDependencies_Call ¶ added in v0.17.2
SBOM_GetDependencies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDependencies'
func (*SBOM_GetDependencies_Call) Return ¶ added in v0.17.2
func (_c *SBOM_GetDependencies_Call) Return(dependencys *[]cyclonedx.Dependency) *SBOM_GetDependencies_Call
func (*SBOM_GetDependencies_Call) Run ¶ added in v0.17.2
func (_c *SBOM_GetDependencies_Call) Run(run func()) *SBOM_GetDependencies_Call
func (*SBOM_GetDependencies_Call) RunAndReturn ¶ added in v0.17.2
func (_c *SBOM_GetDependencies_Call) RunAndReturn(run func() *[]cyclonedx.Dependency) *SBOM_GetDependencies_Call
type SBOM_GetMetadata_Call ¶ added in v0.17.2
SBOM_GetMetadata_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMetadata'
func (*SBOM_GetMetadata_Call) Return ¶ added in v0.17.2
func (_c *SBOM_GetMetadata_Call) Return(metadata *cyclonedx.Metadata) *SBOM_GetMetadata_Call
func (*SBOM_GetMetadata_Call) Run ¶ added in v0.17.2
func (_c *SBOM_GetMetadata_Call) Run(run func()) *SBOM_GetMetadata_Call
func (*SBOM_GetMetadata_Call) RunAndReturn ¶ added in v0.17.2
func (_c *SBOM_GetMetadata_Call) RunAndReturn(run func() *cyclonedx.Metadata) *SBOM_GetMetadata_Call
type StatisticsRepository ¶ added in v0.17.2
StatisticsRepository is an autogenerated mock type for the StatisticsRepository type
func NewStatisticsRepository ¶ added in v0.17.2
func NewStatisticsRepository(t interface { mock.TestingT Cleanup(func()) }) *StatisticsRepository
NewStatisticsRepository creates a new instance of StatisticsRepository. 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 (*StatisticsRepository) AverageFixingTime ¶ added in v0.17.2
func (_mock *StatisticsRepository) AverageFixingTime(artifactNam *string, assetVersionName string, assetID uuid.UUID, riskIntervalStart float64, riskIntervalEnd float64) (time.Duration, error)
AverageFixingTime provides a mock function for the type StatisticsRepository
func (*StatisticsRepository) AverageFixingTimeByCvss ¶ added in v0.17.2
func (_mock *StatisticsRepository) AverageFixingTimeByCvss(artifactName *string, assetVersionName string, assetID uuid.UUID, cvssIntervalStart float64, cvssIntervalEnd float64) (time.Duration, error)
AverageFixingTimeByCvss provides a mock function for the type StatisticsRepository
func (*StatisticsRepository) AverageFixingTimeByCvssForRelease ¶ added in v0.17.2
func (_mock *StatisticsRepository) AverageFixingTimeByCvssForRelease(releaseID uuid.UUID, cvssIntervalStart float64, cvssIntervalEnd float64) (time.Duration, error)
AverageFixingTimeByCvssForRelease provides a mock function for the type StatisticsRepository
func (*StatisticsRepository) AverageFixingTimeForRelease ¶ added in v0.17.2
func (_mock *StatisticsRepository) AverageFixingTimeForRelease(releaseID uuid.UUID, riskIntervalStart float64, riskIntervalEnd float64) (time.Duration, error)
AverageFixingTimeForRelease provides a mock function for the type StatisticsRepository
func (*StatisticsRepository) CVESWithKnownExploitsInAssetVersion ¶ added in v0.17.2
func (_mock *StatisticsRepository) CVESWithKnownExploitsInAssetVersion(assetVersion models.AssetVersion) ([]models.CVE, error)
CVESWithKnownExploitsInAssetVersion provides a mock function for the type StatisticsRepository
func (*StatisticsRepository) EXPECT ¶ added in v0.17.2
func (_m *StatisticsRepository) EXPECT() *StatisticsRepository_Expecter
func (*StatisticsRepository) TimeTravelDependencyVulnState ¶ added in v0.17.2
func (_mock *StatisticsRepository) TimeTravelDependencyVulnState(artifactName *string, assetVersionName string, assetID uuid.UUID, time1 time.Time) ([]models.DependencyVuln, error)
TimeTravelDependencyVulnState provides a mock function for the type StatisticsRepository
type StatisticsRepository_AverageFixingTimeByCvssForRelease_Call ¶ added in v0.17.2
StatisticsRepository_AverageFixingTimeByCvssForRelease_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AverageFixingTimeByCvssForRelease'
func (*StatisticsRepository_AverageFixingTimeByCvssForRelease_Call) Return ¶ added in v0.17.2
func (_c *StatisticsRepository_AverageFixingTimeByCvssForRelease_Call) Return(duration time.Duration, err error) *StatisticsRepository_AverageFixingTimeByCvssForRelease_Call
func (*StatisticsRepository_AverageFixingTimeByCvssForRelease_Call) Run ¶ added in v0.17.2
func (_c *StatisticsRepository_AverageFixingTimeByCvssForRelease_Call) Run(run func(releaseID uuid.UUID, cvssIntervalStart float64, cvssIntervalEnd float64)) *StatisticsRepository_AverageFixingTimeByCvssForRelease_Call
func (*StatisticsRepository_AverageFixingTimeByCvssForRelease_Call) RunAndReturn ¶ added in v0.17.2
func (_c *StatisticsRepository_AverageFixingTimeByCvssForRelease_Call) RunAndReturn(run func(releaseID uuid.UUID, cvssIntervalStart float64, cvssIntervalEnd float64) (time.Duration, error)) *StatisticsRepository_AverageFixingTimeByCvssForRelease_Call
type StatisticsRepository_AverageFixingTimeByCvss_Call ¶ added in v0.17.2
StatisticsRepository_AverageFixingTimeByCvss_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AverageFixingTimeByCvss'
func (*StatisticsRepository_AverageFixingTimeByCvss_Call) Return ¶ added in v0.17.2
func (_c *StatisticsRepository_AverageFixingTimeByCvss_Call) Return(duration time.Duration, err error) *StatisticsRepository_AverageFixingTimeByCvss_Call
func (*StatisticsRepository_AverageFixingTimeByCvss_Call) Run ¶ added in v0.17.2
func (_c *StatisticsRepository_AverageFixingTimeByCvss_Call) Run(run func(artifactName *string, assetVersionName string, assetID uuid.UUID, cvssIntervalStart float64, cvssIntervalEnd float64)) *StatisticsRepository_AverageFixingTimeByCvss_Call
func (*StatisticsRepository_AverageFixingTimeByCvss_Call) RunAndReturn ¶ added in v0.17.2
type StatisticsRepository_AverageFixingTimeForRelease_Call ¶ added in v0.17.2
StatisticsRepository_AverageFixingTimeForRelease_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AverageFixingTimeForRelease'
func (*StatisticsRepository_AverageFixingTimeForRelease_Call) Return ¶ added in v0.17.2
func (_c *StatisticsRepository_AverageFixingTimeForRelease_Call) Return(duration time.Duration, err error) *StatisticsRepository_AverageFixingTimeForRelease_Call
func (*StatisticsRepository_AverageFixingTimeForRelease_Call) Run ¶ added in v0.17.2
func (_c *StatisticsRepository_AverageFixingTimeForRelease_Call) Run(run func(releaseID uuid.UUID, riskIntervalStart float64, riskIntervalEnd float64)) *StatisticsRepository_AverageFixingTimeForRelease_Call
func (*StatisticsRepository_AverageFixingTimeForRelease_Call) RunAndReturn ¶ added in v0.17.2
func (_c *StatisticsRepository_AverageFixingTimeForRelease_Call) RunAndReturn(run func(releaseID uuid.UUID, riskIntervalStart float64, riskIntervalEnd float64) (time.Duration, error)) *StatisticsRepository_AverageFixingTimeForRelease_Call
type StatisticsRepository_AverageFixingTime_Call ¶ added in v0.17.2
StatisticsRepository_AverageFixingTime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AverageFixingTime'
func (*StatisticsRepository_AverageFixingTime_Call) Return ¶ added in v0.17.2
func (_c *StatisticsRepository_AverageFixingTime_Call) Return(duration time.Duration, err error) *StatisticsRepository_AverageFixingTime_Call
func (*StatisticsRepository_AverageFixingTime_Call) Run ¶ added in v0.17.2
func (_c *StatisticsRepository_AverageFixingTime_Call) Run(run func(artifactNam *string, assetVersionName string, assetID uuid.UUID, riskIntervalStart float64, riskIntervalEnd float64)) *StatisticsRepository_AverageFixingTime_Call
func (*StatisticsRepository_AverageFixingTime_Call) RunAndReturn ¶ added in v0.17.2
type StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call ¶ added in v0.17.2
StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CVESWithKnownExploitsInAssetVersion'
func (*StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call) Return ¶ added in v0.17.2
func (_c *StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call) Return(cVEs []models.CVE, err error) *StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call
func (*StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call) Run ¶ added in v0.17.2
func (_c *StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call) Run(run func(assetVersion models.AssetVersion)) *StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call
func (*StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call) RunAndReturn ¶ added in v0.17.2
func (_c *StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call) RunAndReturn(run func(assetVersion models.AssetVersion) ([]models.CVE, error)) *StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call
type StatisticsRepository_Expecter ¶ added in v0.17.2
type StatisticsRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*StatisticsRepository_Expecter) AverageFixingTime ¶ added in v0.17.2
func (_e *StatisticsRepository_Expecter) AverageFixingTime(artifactNam interface{}, assetVersionName interface{}, assetID interface{}, riskIntervalStart interface{}, riskIntervalEnd interface{}) *StatisticsRepository_AverageFixingTime_Call
AverageFixingTime is a helper method to define mock.On call
- artifactNam *string
- assetVersionName string
- assetID uuid.UUID
- riskIntervalStart float64
- riskIntervalEnd float64
func (*StatisticsRepository_Expecter) AverageFixingTimeByCvss ¶ added in v0.17.2
func (_e *StatisticsRepository_Expecter) AverageFixingTimeByCvss(artifactName interface{}, assetVersionName interface{}, assetID interface{}, cvssIntervalStart interface{}, cvssIntervalEnd interface{}) *StatisticsRepository_AverageFixingTimeByCvss_Call
AverageFixingTimeByCvss is a helper method to define mock.On call
- artifactName *string
- assetVersionName string
- assetID uuid.UUID
- cvssIntervalStart float64
- cvssIntervalEnd float64
func (*StatisticsRepository_Expecter) AverageFixingTimeByCvssForRelease ¶ added in v0.17.2
func (_e *StatisticsRepository_Expecter) AverageFixingTimeByCvssForRelease(releaseID interface{}, cvssIntervalStart interface{}, cvssIntervalEnd interface{}) *StatisticsRepository_AverageFixingTimeByCvssForRelease_Call
AverageFixingTimeByCvssForRelease is a helper method to define mock.On call
- releaseID uuid.UUID
- cvssIntervalStart float64
- cvssIntervalEnd float64
func (*StatisticsRepository_Expecter) AverageFixingTimeForRelease ¶ added in v0.17.2
func (_e *StatisticsRepository_Expecter) AverageFixingTimeForRelease(releaseID interface{}, riskIntervalStart interface{}, riskIntervalEnd interface{}) *StatisticsRepository_AverageFixingTimeForRelease_Call
AverageFixingTimeForRelease is a helper method to define mock.On call
- releaseID uuid.UUID
- riskIntervalStart float64
- riskIntervalEnd float64
func (*StatisticsRepository_Expecter) CVESWithKnownExploitsInAssetVersion ¶ added in v0.17.2
func (_e *StatisticsRepository_Expecter) CVESWithKnownExploitsInAssetVersion(assetVersion interface{}) *StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call
CVESWithKnownExploitsInAssetVersion is a helper method to define mock.On call
- assetVersion models.AssetVersion
func (*StatisticsRepository_Expecter) TimeTravelDependencyVulnState ¶ added in v0.17.2
func (_e *StatisticsRepository_Expecter) TimeTravelDependencyVulnState(artifactName interface{}, assetVersionName interface{}, assetID interface{}, time1 interface{}) *StatisticsRepository_TimeTravelDependencyVulnState_Call
TimeTravelDependencyVulnState is a helper method to define mock.On call
- artifactName *string
- assetVersionName string
- assetID uuid.UUID
- time1 time.Time
type StatisticsRepository_TimeTravelDependencyVulnState_Call ¶ added in v0.17.2
StatisticsRepository_TimeTravelDependencyVulnState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TimeTravelDependencyVulnState'
func (*StatisticsRepository_TimeTravelDependencyVulnState_Call) Return ¶ added in v0.17.2
func (_c *StatisticsRepository_TimeTravelDependencyVulnState_Call) Return(dependencyVulns []models.DependencyVuln, err error) *StatisticsRepository_TimeTravelDependencyVulnState_Call
func (*StatisticsRepository_TimeTravelDependencyVulnState_Call) Run ¶ added in v0.17.2
func (_c *StatisticsRepository_TimeTravelDependencyVulnState_Call) Run(run func(artifactName *string, assetVersionName string, assetID uuid.UUID, time1 time.Time)) *StatisticsRepository_TimeTravelDependencyVulnState_Call
func (*StatisticsRepository_TimeTravelDependencyVulnState_Call) RunAndReturn ¶ added in v0.17.2
func (_c *StatisticsRepository_TimeTravelDependencyVulnState_Call) RunAndReturn(run func(artifactName *string, assetVersionName string, assetID uuid.UUID, time1 time.Time) ([]models.DependencyVuln, error)) *StatisticsRepository_TimeTravelDependencyVulnState_Call
type StatisticsService ¶ added in v0.17.2
StatisticsService is an autogenerated mock type for the StatisticsService type
func NewStatisticsService ¶ added in v0.17.2
func NewStatisticsService(t interface { mock.TestingT Cleanup(func()) }) *StatisticsService
NewStatisticsService creates a new instance of StatisticsService. 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 (*StatisticsService) EXPECT ¶ added in v0.17.2
func (_m *StatisticsService) EXPECT() *StatisticsService_Expecter
func (*StatisticsService) GetArtifactRiskHistory ¶ added in v0.17.2
func (_mock *StatisticsService) GetArtifactRiskHistory(artifactName *string, assetVersionName string, assetID uuid.UUID, start time.Time, end time.Time) ([]models.ArtifactRiskHistory, error)
GetArtifactRiskHistory provides a mock function for the type StatisticsService
func (*StatisticsService) GetAverageFixingTime ¶ added in v0.17.2
func (_mock *StatisticsService) GetAverageFixingTime(artifactName *string, assetVersionName string, assetID uuid.UUID, severity string) (time.Duration, error)
GetAverageFixingTime provides a mock function for the type StatisticsService
func (*StatisticsService) GetAverageFixingTimeByCvss ¶ added in v0.17.2
func (_mock *StatisticsService) GetAverageFixingTimeByCvss(artifactName *string, assetVersionName string, assetID uuid.UUID, severity string) (time.Duration, error)
GetAverageFixingTimeByCvss provides a mock function for the type StatisticsService
func (*StatisticsService) GetAverageFixingTimeByCvssForRelease ¶ added in v0.17.2
func (_mock *StatisticsService) GetAverageFixingTimeByCvssForRelease(releaseID uuid.UUID, severity string) (time.Duration, error)
GetAverageFixingTimeByCvssForRelease provides a mock function for the type StatisticsService
func (*StatisticsService) GetAverageFixingTimeForRelease ¶ added in v0.17.2
func (_mock *StatisticsService) GetAverageFixingTimeForRelease(releaseID uuid.UUID, severity string) (time.Duration, error)
GetAverageFixingTimeForRelease provides a mock function for the type StatisticsService
func (*StatisticsService) GetComponentRisk ¶ added in v0.17.2
func (_mock *StatisticsService) GetComponentRisk(artifactName *string, assetVersionName string, assetID uuid.UUID) (map[string]models.Distribution, error)
GetComponentRisk provides a mock function for the type StatisticsService
func (*StatisticsService) GetReleaseRiskHistory ¶ added in v0.17.2
func (_mock *StatisticsService) GetReleaseRiskHistory(releaseID uuid.UUID, start time.Time, end time.Time) ([]models.ArtifactRiskHistory, error)
GetReleaseRiskHistory provides a mock function for the type StatisticsService
func (*StatisticsService) UpdateArtifactRiskAggregation ¶ added in v0.17.2
func (_mock *StatisticsService) UpdateArtifactRiskAggregation(artifact *models.Artifact, assetID uuid.UUID, begin time.Time, end time.Time) error
UpdateArtifactRiskAggregation provides a mock function for the type StatisticsService
type StatisticsService_Expecter ¶ added in v0.17.2
type StatisticsService_Expecter struct {
// contains filtered or unexported fields
}
func (*StatisticsService_Expecter) GetArtifactRiskHistory ¶ added in v0.17.2
func (_e *StatisticsService_Expecter) GetArtifactRiskHistory(artifactName interface{}, assetVersionName interface{}, assetID interface{}, start interface{}, end interface{}) *StatisticsService_GetArtifactRiskHistory_Call
GetArtifactRiskHistory is a helper method to define mock.On call
- artifactName *string
- assetVersionName string
- assetID uuid.UUID
- start time.Time
- end time.Time
func (*StatisticsService_Expecter) GetAverageFixingTime ¶ added in v0.17.2
func (_e *StatisticsService_Expecter) GetAverageFixingTime(artifactName interface{}, assetVersionName interface{}, assetID interface{}, severity interface{}) *StatisticsService_GetAverageFixingTime_Call
GetAverageFixingTime is a helper method to define mock.On call
- artifactName *string
- assetVersionName string
- assetID uuid.UUID
- severity string
func (*StatisticsService_Expecter) GetAverageFixingTimeByCvss ¶ added in v0.17.2
func (_e *StatisticsService_Expecter) GetAverageFixingTimeByCvss(artifactName interface{}, assetVersionName interface{}, assetID interface{}, severity interface{}) *StatisticsService_GetAverageFixingTimeByCvss_Call
GetAverageFixingTimeByCvss is a helper method to define mock.On call
- artifactName *string
- assetVersionName string
- assetID uuid.UUID
- severity string
func (*StatisticsService_Expecter) GetAverageFixingTimeByCvssForRelease ¶ added in v0.17.2
func (_e *StatisticsService_Expecter) GetAverageFixingTimeByCvssForRelease(releaseID interface{}, severity interface{}) *StatisticsService_GetAverageFixingTimeByCvssForRelease_Call
GetAverageFixingTimeByCvssForRelease is a helper method to define mock.On call
- releaseID uuid.UUID
- severity string
func (*StatisticsService_Expecter) GetAverageFixingTimeForRelease ¶ added in v0.17.2
func (_e *StatisticsService_Expecter) GetAverageFixingTimeForRelease(releaseID interface{}, severity interface{}) *StatisticsService_GetAverageFixingTimeForRelease_Call
GetAverageFixingTimeForRelease is a helper method to define mock.On call
- releaseID uuid.UUID
- severity string
func (*StatisticsService_Expecter) GetComponentRisk ¶ added in v0.17.2
func (_e *StatisticsService_Expecter) GetComponentRisk(artifactName interface{}, assetVersionName interface{}, assetID interface{}) *StatisticsService_GetComponentRisk_Call
GetComponentRisk is a helper method to define mock.On call
- artifactName *string
- assetVersionName string
- assetID uuid.UUID
func (*StatisticsService_Expecter) GetReleaseRiskHistory ¶ added in v0.17.2
func (_e *StatisticsService_Expecter) GetReleaseRiskHistory(releaseID interface{}, start interface{}, end interface{}) *StatisticsService_GetReleaseRiskHistory_Call
GetReleaseRiskHistory is a helper method to define mock.On call
- releaseID uuid.UUID
- start time.Time
- end time.Time
func (*StatisticsService_Expecter) UpdateArtifactRiskAggregation ¶ added in v0.17.2
func (_e *StatisticsService_Expecter) UpdateArtifactRiskAggregation(artifact interface{}, assetID interface{}, begin interface{}, end interface{}) *StatisticsService_UpdateArtifactRiskAggregation_Call
UpdateArtifactRiskAggregation is a helper method to define mock.On call
- artifact *models.Artifact
- assetID uuid.UUID
- begin time.Time
- end time.Time
type StatisticsService_GetArtifactRiskHistory_Call ¶ added in v0.17.2
StatisticsService_GetArtifactRiskHistory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetArtifactRiskHistory'
func (*StatisticsService_GetArtifactRiskHistory_Call) Return ¶ added in v0.17.2
func (_c *StatisticsService_GetArtifactRiskHistory_Call) Return(artifactRiskHistorys []models.ArtifactRiskHistory, err error) *StatisticsService_GetArtifactRiskHistory_Call
func (*StatisticsService_GetArtifactRiskHistory_Call) Run ¶ added in v0.17.2
func (_c *StatisticsService_GetArtifactRiskHistory_Call) Run(run func(artifactName *string, assetVersionName string, assetID uuid.UUID, start time.Time, end time.Time)) *StatisticsService_GetArtifactRiskHistory_Call
func (*StatisticsService_GetArtifactRiskHistory_Call) RunAndReturn ¶ added in v0.17.2
func (_c *StatisticsService_GetArtifactRiskHistory_Call) RunAndReturn(run func(artifactName *string, assetVersionName string, assetID uuid.UUID, start time.Time, end time.Time) ([]models.ArtifactRiskHistory, error)) *StatisticsService_GetArtifactRiskHistory_Call
type StatisticsService_GetAverageFixingTimeByCvssForRelease_Call ¶ added in v0.17.2
StatisticsService_GetAverageFixingTimeByCvssForRelease_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAverageFixingTimeByCvssForRelease'
func (*StatisticsService_GetAverageFixingTimeByCvssForRelease_Call) Return ¶ added in v0.17.2
func (_c *StatisticsService_GetAverageFixingTimeByCvssForRelease_Call) Return(duration time.Duration, err error) *StatisticsService_GetAverageFixingTimeByCvssForRelease_Call
func (*StatisticsService_GetAverageFixingTimeByCvssForRelease_Call) Run ¶ added in v0.17.2
func (_c *StatisticsService_GetAverageFixingTimeByCvssForRelease_Call) Run(run func(releaseID uuid.UUID, severity string)) *StatisticsService_GetAverageFixingTimeByCvssForRelease_Call
func (*StatisticsService_GetAverageFixingTimeByCvssForRelease_Call) RunAndReturn ¶ added in v0.17.2
func (_c *StatisticsService_GetAverageFixingTimeByCvssForRelease_Call) RunAndReturn(run func(releaseID uuid.UUID, severity string) (time.Duration, error)) *StatisticsService_GetAverageFixingTimeByCvssForRelease_Call
type StatisticsService_GetAverageFixingTimeByCvss_Call ¶ added in v0.17.2
StatisticsService_GetAverageFixingTimeByCvss_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAverageFixingTimeByCvss'
func (*StatisticsService_GetAverageFixingTimeByCvss_Call) Return ¶ added in v0.17.2
func (_c *StatisticsService_GetAverageFixingTimeByCvss_Call) Return(duration time.Duration, err error) *StatisticsService_GetAverageFixingTimeByCvss_Call
func (*StatisticsService_GetAverageFixingTimeByCvss_Call) Run ¶ added in v0.17.2
func (_c *StatisticsService_GetAverageFixingTimeByCvss_Call) Run(run func(artifactName *string, assetVersionName string, assetID uuid.UUID, severity string)) *StatisticsService_GetAverageFixingTimeByCvss_Call
func (*StatisticsService_GetAverageFixingTimeByCvss_Call) RunAndReturn ¶ added in v0.17.2
func (_c *StatisticsService_GetAverageFixingTimeByCvss_Call) RunAndReturn(run func(artifactName *string, assetVersionName string, assetID uuid.UUID, severity string) (time.Duration, error)) *StatisticsService_GetAverageFixingTimeByCvss_Call
type StatisticsService_GetAverageFixingTimeForRelease_Call ¶ added in v0.17.2
StatisticsService_GetAverageFixingTimeForRelease_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAverageFixingTimeForRelease'
func (*StatisticsService_GetAverageFixingTimeForRelease_Call) Return ¶ added in v0.17.2
func (_c *StatisticsService_GetAverageFixingTimeForRelease_Call) Return(duration time.Duration, err error) *StatisticsService_GetAverageFixingTimeForRelease_Call
func (*StatisticsService_GetAverageFixingTimeForRelease_Call) Run ¶ added in v0.17.2
func (_c *StatisticsService_GetAverageFixingTimeForRelease_Call) Run(run func(releaseID uuid.UUID, severity string)) *StatisticsService_GetAverageFixingTimeForRelease_Call
func (*StatisticsService_GetAverageFixingTimeForRelease_Call) RunAndReturn ¶ added in v0.17.2
func (_c *StatisticsService_GetAverageFixingTimeForRelease_Call) RunAndReturn(run func(releaseID uuid.UUID, severity string) (time.Duration, error)) *StatisticsService_GetAverageFixingTimeForRelease_Call
type StatisticsService_GetAverageFixingTime_Call ¶ added in v0.17.2
StatisticsService_GetAverageFixingTime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAverageFixingTime'
func (*StatisticsService_GetAverageFixingTime_Call) Return ¶ added in v0.17.2
func (_c *StatisticsService_GetAverageFixingTime_Call) Return(duration time.Duration, err error) *StatisticsService_GetAverageFixingTime_Call
func (*StatisticsService_GetAverageFixingTime_Call) Run ¶ added in v0.17.2
func (_c *StatisticsService_GetAverageFixingTime_Call) Run(run func(artifactName *string, assetVersionName string, assetID uuid.UUID, severity string)) *StatisticsService_GetAverageFixingTime_Call
func (*StatisticsService_GetAverageFixingTime_Call) RunAndReturn ¶ added in v0.17.2
func (_c *StatisticsService_GetAverageFixingTime_Call) RunAndReturn(run func(artifactName *string, assetVersionName string, assetID uuid.UUID, severity string) (time.Duration, error)) *StatisticsService_GetAverageFixingTime_Call
type StatisticsService_GetComponentRisk_Call ¶ added in v0.17.2
StatisticsService_GetComponentRisk_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetComponentRisk'
func (*StatisticsService_GetComponentRisk_Call) Return ¶ added in v0.17.2
func (_c *StatisticsService_GetComponentRisk_Call) Return(stringToDistribution map[string]models.Distribution, err error) *StatisticsService_GetComponentRisk_Call
func (*StatisticsService_GetComponentRisk_Call) Run ¶ added in v0.17.2
func (_c *StatisticsService_GetComponentRisk_Call) Run(run func(artifactName *string, assetVersionName string, assetID uuid.UUID)) *StatisticsService_GetComponentRisk_Call
func (*StatisticsService_GetComponentRisk_Call) RunAndReturn ¶ added in v0.17.2
func (_c *StatisticsService_GetComponentRisk_Call) RunAndReturn(run func(artifactName *string, assetVersionName string, assetID uuid.UUID) (map[string]models.Distribution, error)) *StatisticsService_GetComponentRisk_Call
type StatisticsService_GetReleaseRiskHistory_Call ¶ added in v0.17.2
StatisticsService_GetReleaseRiskHistory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReleaseRiskHistory'
func (*StatisticsService_GetReleaseRiskHistory_Call) Return ¶ added in v0.17.2
func (_c *StatisticsService_GetReleaseRiskHistory_Call) Return(artifactRiskHistorys []models.ArtifactRiskHistory, err error) *StatisticsService_GetReleaseRiskHistory_Call
func (*StatisticsService_GetReleaseRiskHistory_Call) Run ¶ added in v0.17.2
func (_c *StatisticsService_GetReleaseRiskHistory_Call) Run(run func(releaseID uuid.UUID, start time.Time, end time.Time)) *StatisticsService_GetReleaseRiskHistory_Call
func (*StatisticsService_GetReleaseRiskHistory_Call) RunAndReturn ¶ added in v0.17.2
func (_c *StatisticsService_GetReleaseRiskHistory_Call) RunAndReturn(run func(releaseID uuid.UUID, start time.Time, end time.Time) ([]models.ArtifactRiskHistory, error)) *StatisticsService_GetReleaseRiskHistory_Call
type StatisticsService_UpdateArtifactRiskAggregation_Call ¶ added in v0.17.2
StatisticsService_UpdateArtifactRiskAggregation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateArtifactRiskAggregation'
func (*StatisticsService_UpdateArtifactRiskAggregation_Call) Run ¶ added in v0.17.2
func (_c *StatisticsService_UpdateArtifactRiskAggregation_Call) Run(run func(artifact *models.Artifact, assetID uuid.UUID, begin time.Time, end time.Time)) *StatisticsService_UpdateArtifactRiskAggregation_Call
func (*StatisticsService_UpdateArtifactRiskAggregation_Call) RunAndReturn ¶ added in v0.17.2
type SupplyChainRepository ¶ added in v0.17.2
SupplyChainRepository is an autogenerated mock type for the SupplyChainRepository type
func NewSupplyChainRepository ¶ added in v0.17.2
func NewSupplyChainRepository(t interface { mock.TestingT Cleanup(func()) }) *SupplyChainRepository
NewSupplyChainRepository creates a new instance of SupplyChainRepository. 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 (*SupplyChainRepository) Activate ¶ added in v0.17.2
Activate provides a mock function for the type SupplyChainRepository
func (*SupplyChainRepository) All ¶ added in v0.17.2
func (_mock *SupplyChainRepository) All() ([]models.SupplyChain, error)
All provides a mock function for the type SupplyChainRepository
func (*SupplyChainRepository) Begin ¶ added in v0.17.2
func (_mock *SupplyChainRepository) Begin() core.DB
Begin provides a mock function for the type SupplyChainRepository
func (*SupplyChainRepository) Create ¶ added in v0.17.2
func (_mock *SupplyChainRepository) Create(tx core.DB, t *models.SupplyChain) error
Create provides a mock function for the type SupplyChainRepository
func (*SupplyChainRepository) CreateBatch ¶ added in v0.17.2
func (_mock *SupplyChainRepository) CreateBatch(tx core.DB, ts []models.SupplyChain) error
CreateBatch provides a mock function for the type SupplyChainRepository
func (*SupplyChainRepository) Delete ¶ added in v0.17.2
Delete provides a mock function for the type SupplyChainRepository
func (*SupplyChainRepository) DeleteBatch ¶ added in v0.17.2
func (_mock *SupplyChainRepository) DeleteBatch(tx core.DB, ids []models.SupplyChain) error
DeleteBatch provides a mock function for the type SupplyChainRepository
func (*SupplyChainRepository) EXPECT ¶ added in v0.17.2
func (_m *SupplyChainRepository) EXPECT() *SupplyChainRepository_Expecter
func (*SupplyChainRepository) FindByDigest ¶ added in v0.17.2
func (_mock *SupplyChainRepository) FindByDigest(digest string) ([]models.SupplyChain, error)
FindByDigest provides a mock function for the type SupplyChainRepository
func (*SupplyChainRepository) FindBySupplyChainID ¶ added in v0.17.2
func (_mock *SupplyChainRepository) FindBySupplyChainID(supplyChainID string) ([]models.SupplyChain, error)
FindBySupplyChainID provides a mock function for the type SupplyChainRepository
func (*SupplyChainRepository) GetDB ¶ added in v0.17.2
func (_mock *SupplyChainRepository) GetDB(tx core.DB) core.DB
GetDB provides a mock function for the type SupplyChainRepository
func (*SupplyChainRepository) List ¶ added in v0.17.2
func (_mock *SupplyChainRepository) List(ids []uuid.UUID) ([]models.SupplyChain, error)
List provides a mock function for the type SupplyChainRepository
func (*SupplyChainRepository) PercentageOfVerifiedSupplyChains ¶ added in v0.17.2
func (_mock *SupplyChainRepository) PercentageOfVerifiedSupplyChains(assetVersionName string, assetID uuid.UUID) (float64, error)
PercentageOfVerifiedSupplyChains provides a mock function for the type SupplyChainRepository
func (*SupplyChainRepository) Read ¶ added in v0.17.2
func (_mock *SupplyChainRepository) Read(id uuid.UUID) (models.SupplyChain, error)
Read provides a mock function for the type SupplyChainRepository
func (*SupplyChainRepository) Save ¶ added in v0.17.2
func (_mock *SupplyChainRepository) Save(tx core.DB, t *models.SupplyChain) error
Save provides a mock function for the type SupplyChainRepository
func (*SupplyChainRepository) SaveBatch ¶ added in v0.17.2
func (_mock *SupplyChainRepository) SaveBatch(tx core.DB, ts []models.SupplyChain) error
SaveBatch provides a mock function for the type SupplyChainRepository
func (*SupplyChainRepository) Transaction ¶ added in v0.17.2
func (_mock *SupplyChainRepository) Transaction(fn func(tx core.DB) error) error
Transaction provides a mock function for the type SupplyChainRepository
func (*SupplyChainRepository) Upsert ¶ added in v0.17.2
func (_mock *SupplyChainRepository) Upsert(t *[]*models.SupplyChain, conflictingColumns []clause.Column, updateOnly []string) error
Upsert provides a mock function for the type SupplyChainRepository
type SupplyChainRepository_Activate_Call ¶ added in v0.17.2
SupplyChainRepository_Activate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Activate'
func (*SupplyChainRepository_Activate_Call) Return ¶ added in v0.17.2
func (_c *SupplyChainRepository_Activate_Call) Return(err error) *SupplyChainRepository_Activate_Call
func (*SupplyChainRepository_Activate_Call) Run ¶ added in v0.17.2
func (_c *SupplyChainRepository_Activate_Call) Run(run func(tx core.DB, id uuid.UUID)) *SupplyChainRepository_Activate_Call
func (*SupplyChainRepository_Activate_Call) RunAndReturn ¶ added in v0.17.2
func (_c *SupplyChainRepository_Activate_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *SupplyChainRepository_Activate_Call
type SupplyChainRepository_All_Call ¶ added in v0.17.2
SupplyChainRepository_All_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'All'
func (*SupplyChainRepository_All_Call) Return ¶ added in v0.17.2
func (_c *SupplyChainRepository_All_Call) Return(supplyChains []models.SupplyChain, err error) *SupplyChainRepository_All_Call
func (*SupplyChainRepository_All_Call) Run ¶ added in v0.17.2
func (_c *SupplyChainRepository_All_Call) Run(run func()) *SupplyChainRepository_All_Call
func (*SupplyChainRepository_All_Call) RunAndReturn ¶ added in v0.17.2
func (_c *SupplyChainRepository_All_Call) RunAndReturn(run func() ([]models.SupplyChain, error)) *SupplyChainRepository_All_Call
type SupplyChainRepository_Begin_Call ¶ added in v0.17.2
SupplyChainRepository_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*SupplyChainRepository_Begin_Call) Return ¶ added in v0.17.2
func (_c *SupplyChainRepository_Begin_Call) Return(v core.DB) *SupplyChainRepository_Begin_Call
func (*SupplyChainRepository_Begin_Call) Run ¶ added in v0.17.2
func (_c *SupplyChainRepository_Begin_Call) Run(run func()) *SupplyChainRepository_Begin_Call
func (*SupplyChainRepository_Begin_Call) RunAndReturn ¶ added in v0.17.2
func (_c *SupplyChainRepository_Begin_Call) RunAndReturn(run func() core.DB) *SupplyChainRepository_Begin_Call
type SupplyChainRepository_CreateBatch_Call ¶ added in v0.17.2
SupplyChainRepository_CreateBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBatch'
func (*SupplyChainRepository_CreateBatch_Call) Return ¶ added in v0.17.2
func (_c *SupplyChainRepository_CreateBatch_Call) Return(err error) *SupplyChainRepository_CreateBatch_Call
func (*SupplyChainRepository_CreateBatch_Call) Run ¶ added in v0.17.2
func (_c *SupplyChainRepository_CreateBatch_Call) Run(run func(tx core.DB, ts []models.SupplyChain)) *SupplyChainRepository_CreateBatch_Call
func (*SupplyChainRepository_CreateBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *SupplyChainRepository_CreateBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.SupplyChain) error) *SupplyChainRepository_CreateBatch_Call
type SupplyChainRepository_Create_Call ¶ added in v0.17.2
SupplyChainRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*SupplyChainRepository_Create_Call) Return ¶ added in v0.17.2
func (_c *SupplyChainRepository_Create_Call) Return(err error) *SupplyChainRepository_Create_Call
func (*SupplyChainRepository_Create_Call) Run ¶ added in v0.17.2
func (_c *SupplyChainRepository_Create_Call) Run(run func(tx core.DB, t *models.SupplyChain)) *SupplyChainRepository_Create_Call
func (*SupplyChainRepository_Create_Call) RunAndReturn ¶ added in v0.17.2
func (_c *SupplyChainRepository_Create_Call) RunAndReturn(run func(tx core.DB, t *models.SupplyChain) error) *SupplyChainRepository_Create_Call
type SupplyChainRepository_DeleteBatch_Call ¶ added in v0.17.2
SupplyChainRepository_DeleteBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBatch'
func (*SupplyChainRepository_DeleteBatch_Call) Return ¶ added in v0.17.2
func (_c *SupplyChainRepository_DeleteBatch_Call) Return(err error) *SupplyChainRepository_DeleteBatch_Call
func (*SupplyChainRepository_DeleteBatch_Call) Run ¶ added in v0.17.2
func (_c *SupplyChainRepository_DeleteBatch_Call) Run(run func(tx core.DB, ids []models.SupplyChain)) *SupplyChainRepository_DeleteBatch_Call
func (*SupplyChainRepository_DeleteBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *SupplyChainRepository_DeleteBatch_Call) RunAndReturn(run func(tx core.DB, ids []models.SupplyChain) error) *SupplyChainRepository_DeleteBatch_Call
type SupplyChainRepository_Delete_Call ¶ added in v0.17.2
SupplyChainRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*SupplyChainRepository_Delete_Call) Return ¶ added in v0.17.2
func (_c *SupplyChainRepository_Delete_Call) Return(err error) *SupplyChainRepository_Delete_Call
func (*SupplyChainRepository_Delete_Call) Run ¶ added in v0.17.2
func (_c *SupplyChainRepository_Delete_Call) Run(run func(tx core.DB, id uuid.UUID)) *SupplyChainRepository_Delete_Call
func (*SupplyChainRepository_Delete_Call) RunAndReturn ¶ added in v0.17.2
func (_c *SupplyChainRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *SupplyChainRepository_Delete_Call
type SupplyChainRepository_Expecter ¶ added in v0.17.2
type SupplyChainRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*SupplyChainRepository_Expecter) Activate ¶ added in v0.17.2
func (_e *SupplyChainRepository_Expecter) Activate(tx interface{}, id interface{}) *SupplyChainRepository_Activate_Call
Activate is a helper method to define mock.On call
- tx core.DB
- id uuid.UUID
func (*SupplyChainRepository_Expecter) All ¶ added in v0.17.2
func (_e *SupplyChainRepository_Expecter) All() *SupplyChainRepository_All_Call
All is a helper method to define mock.On call
func (*SupplyChainRepository_Expecter) Begin ¶ added in v0.17.2
func (_e *SupplyChainRepository_Expecter) Begin() *SupplyChainRepository_Begin_Call
Begin is a helper method to define mock.On call
func (*SupplyChainRepository_Expecter) Create ¶ added in v0.17.2
func (_e *SupplyChainRepository_Expecter) Create(tx interface{}, t interface{}) *SupplyChainRepository_Create_Call
Create is a helper method to define mock.On call
- tx core.DB
- t *models.SupplyChain
func (*SupplyChainRepository_Expecter) CreateBatch ¶ added in v0.17.2
func (_e *SupplyChainRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *SupplyChainRepository_CreateBatch_Call
CreateBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.SupplyChain
func (*SupplyChainRepository_Expecter) Delete ¶ added in v0.17.2
func (_e *SupplyChainRepository_Expecter) Delete(tx interface{}, id interface{}) *SupplyChainRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx core.DB
- id uuid.UUID
func (*SupplyChainRepository_Expecter) DeleteBatch ¶ added in v0.17.2
func (_e *SupplyChainRepository_Expecter) DeleteBatch(tx interface{}, ids interface{}) *SupplyChainRepository_DeleteBatch_Call
DeleteBatch is a helper method to define mock.On call
- tx core.DB
- ids []models.SupplyChain
func (*SupplyChainRepository_Expecter) FindByDigest ¶ added in v0.17.2
func (_e *SupplyChainRepository_Expecter) FindByDigest(digest interface{}) *SupplyChainRepository_FindByDigest_Call
FindByDigest is a helper method to define mock.On call
- digest string
func (*SupplyChainRepository_Expecter) FindBySupplyChainID ¶ added in v0.17.2
func (_e *SupplyChainRepository_Expecter) FindBySupplyChainID(supplyChainID interface{}) *SupplyChainRepository_FindBySupplyChainID_Call
FindBySupplyChainID is a helper method to define mock.On call
- supplyChainID string
func (*SupplyChainRepository_Expecter) GetDB ¶ added in v0.17.2
func (_e *SupplyChainRepository_Expecter) GetDB(tx interface{}) *SupplyChainRepository_GetDB_Call
GetDB is a helper method to define mock.On call
- tx core.DB
func (*SupplyChainRepository_Expecter) List ¶ added in v0.17.2
func (_e *SupplyChainRepository_Expecter) List(ids interface{}) *SupplyChainRepository_List_Call
List is a helper method to define mock.On call
- ids []uuid.UUID
func (*SupplyChainRepository_Expecter) PercentageOfVerifiedSupplyChains ¶ added in v0.17.2
func (_e *SupplyChainRepository_Expecter) PercentageOfVerifiedSupplyChains(assetVersionName interface{}, assetID interface{}) *SupplyChainRepository_PercentageOfVerifiedSupplyChains_Call
PercentageOfVerifiedSupplyChains is a helper method to define mock.On call
- assetVersionName string
- assetID uuid.UUID
func (*SupplyChainRepository_Expecter) Read ¶ added in v0.17.2
func (_e *SupplyChainRepository_Expecter) Read(id interface{}) *SupplyChainRepository_Read_Call
Read is a helper method to define mock.On call
- id uuid.UUID
func (*SupplyChainRepository_Expecter) Save ¶ added in v0.17.2
func (_e *SupplyChainRepository_Expecter) Save(tx interface{}, t interface{}) *SupplyChainRepository_Save_Call
Save is a helper method to define mock.On call
- tx core.DB
- t *models.SupplyChain
func (*SupplyChainRepository_Expecter) SaveBatch ¶ added in v0.17.2
func (_e *SupplyChainRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *SupplyChainRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- tx core.DB
- ts []models.SupplyChain
func (*SupplyChainRepository_Expecter) Transaction ¶ added in v0.17.2
func (_e *SupplyChainRepository_Expecter) Transaction(fn interface{}) *SupplyChainRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- fn func(tx core.DB) error
func (*SupplyChainRepository_Expecter) Upsert ¶ added in v0.17.2
func (_e *SupplyChainRepository_Expecter) Upsert(t interface{}, conflictingColumns interface{}, updateOnly interface{}) *SupplyChainRepository_Upsert_Call
Upsert is a helper method to define mock.On call
- t *[]*models.SupplyChain
- conflictingColumns []clause.Column
- updateOnly []string
type SupplyChainRepository_FindByDigest_Call ¶ added in v0.17.2
SupplyChainRepository_FindByDigest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByDigest'
func (*SupplyChainRepository_FindByDigest_Call) Return ¶ added in v0.17.2
func (_c *SupplyChainRepository_FindByDigest_Call) Return(supplyChains []models.SupplyChain, err error) *SupplyChainRepository_FindByDigest_Call
func (*SupplyChainRepository_FindByDigest_Call) Run ¶ added in v0.17.2
func (_c *SupplyChainRepository_FindByDigest_Call) Run(run func(digest string)) *SupplyChainRepository_FindByDigest_Call
func (*SupplyChainRepository_FindByDigest_Call) RunAndReturn ¶ added in v0.17.2
func (_c *SupplyChainRepository_FindByDigest_Call) RunAndReturn(run func(digest string) ([]models.SupplyChain, error)) *SupplyChainRepository_FindByDigest_Call
type SupplyChainRepository_FindBySupplyChainID_Call ¶ added in v0.17.2
SupplyChainRepository_FindBySupplyChainID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindBySupplyChainID'
func (*SupplyChainRepository_FindBySupplyChainID_Call) Return ¶ added in v0.17.2
func (_c *SupplyChainRepository_FindBySupplyChainID_Call) Return(supplyChains []models.SupplyChain, err error) *SupplyChainRepository_FindBySupplyChainID_Call
func (*SupplyChainRepository_FindBySupplyChainID_Call) Run ¶ added in v0.17.2
func (_c *SupplyChainRepository_FindBySupplyChainID_Call) Run(run func(supplyChainID string)) *SupplyChainRepository_FindBySupplyChainID_Call
func (*SupplyChainRepository_FindBySupplyChainID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *SupplyChainRepository_FindBySupplyChainID_Call) RunAndReturn(run func(supplyChainID string) ([]models.SupplyChain, error)) *SupplyChainRepository_FindBySupplyChainID_Call
type SupplyChainRepository_GetDB_Call ¶ added in v0.17.2
SupplyChainRepository_GetDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDB'
func (*SupplyChainRepository_GetDB_Call) Return ¶ added in v0.17.2
func (_c *SupplyChainRepository_GetDB_Call) Return(v core.DB) *SupplyChainRepository_GetDB_Call
func (*SupplyChainRepository_GetDB_Call) Run ¶ added in v0.17.2
func (_c *SupplyChainRepository_GetDB_Call) Run(run func(tx core.DB)) *SupplyChainRepository_GetDB_Call
func (*SupplyChainRepository_GetDB_Call) RunAndReturn ¶ added in v0.17.2
func (_c *SupplyChainRepository_GetDB_Call) RunAndReturn(run func(tx core.DB) core.DB) *SupplyChainRepository_GetDB_Call
type SupplyChainRepository_List_Call ¶ added in v0.17.2
SupplyChainRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*SupplyChainRepository_List_Call) Return ¶ added in v0.17.2
func (_c *SupplyChainRepository_List_Call) Return(supplyChains []models.SupplyChain, err error) *SupplyChainRepository_List_Call
func (*SupplyChainRepository_List_Call) Run ¶ added in v0.17.2
func (_c *SupplyChainRepository_List_Call) Run(run func(ids []uuid.UUID)) *SupplyChainRepository_List_Call
func (*SupplyChainRepository_List_Call) RunAndReturn ¶ added in v0.17.2
func (_c *SupplyChainRepository_List_Call) RunAndReturn(run func(ids []uuid.UUID) ([]models.SupplyChain, error)) *SupplyChainRepository_List_Call
type SupplyChainRepository_PercentageOfVerifiedSupplyChains_Call ¶ added in v0.17.2
SupplyChainRepository_PercentageOfVerifiedSupplyChains_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PercentageOfVerifiedSupplyChains'
func (*SupplyChainRepository_PercentageOfVerifiedSupplyChains_Call) Run ¶ added in v0.17.2
func (_c *SupplyChainRepository_PercentageOfVerifiedSupplyChains_Call) Run(run func(assetVersionName string, assetID uuid.UUID)) *SupplyChainRepository_PercentageOfVerifiedSupplyChains_Call
func (*SupplyChainRepository_PercentageOfVerifiedSupplyChains_Call) RunAndReturn ¶ added in v0.17.2
func (_c *SupplyChainRepository_PercentageOfVerifiedSupplyChains_Call) RunAndReturn(run func(assetVersionName string, assetID uuid.UUID) (float64, error)) *SupplyChainRepository_PercentageOfVerifiedSupplyChains_Call
type SupplyChainRepository_Read_Call ¶ added in v0.17.2
SupplyChainRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*SupplyChainRepository_Read_Call) Return ¶ added in v0.17.2
func (_c *SupplyChainRepository_Read_Call) Return(supplyChain models.SupplyChain, err error) *SupplyChainRepository_Read_Call
func (*SupplyChainRepository_Read_Call) Run ¶ added in v0.17.2
func (_c *SupplyChainRepository_Read_Call) Run(run func(id uuid.UUID)) *SupplyChainRepository_Read_Call
func (*SupplyChainRepository_Read_Call) RunAndReturn ¶ added in v0.17.2
func (_c *SupplyChainRepository_Read_Call) RunAndReturn(run func(id uuid.UUID) (models.SupplyChain, error)) *SupplyChainRepository_Read_Call
type SupplyChainRepository_SaveBatch_Call ¶ added in v0.17.2
SupplyChainRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*SupplyChainRepository_SaveBatch_Call) Return ¶ added in v0.17.2
func (_c *SupplyChainRepository_SaveBatch_Call) Return(err error) *SupplyChainRepository_SaveBatch_Call
func (*SupplyChainRepository_SaveBatch_Call) Run ¶ added in v0.17.2
func (_c *SupplyChainRepository_SaveBatch_Call) Run(run func(tx core.DB, ts []models.SupplyChain)) *SupplyChainRepository_SaveBatch_Call
func (*SupplyChainRepository_SaveBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *SupplyChainRepository_SaveBatch_Call) RunAndReturn(run func(tx core.DB, ts []models.SupplyChain) error) *SupplyChainRepository_SaveBatch_Call
type SupplyChainRepository_Save_Call ¶ added in v0.17.2
SupplyChainRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*SupplyChainRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *SupplyChainRepository_Save_Call) Return(err error) *SupplyChainRepository_Save_Call
func (*SupplyChainRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *SupplyChainRepository_Save_Call) Run(run func(tx core.DB, t *models.SupplyChain)) *SupplyChainRepository_Save_Call
func (*SupplyChainRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *SupplyChainRepository_Save_Call) RunAndReturn(run func(tx core.DB, t *models.SupplyChain) error) *SupplyChainRepository_Save_Call
type SupplyChainRepository_Transaction_Call ¶ added in v0.17.2
SupplyChainRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*SupplyChainRepository_Transaction_Call) Return ¶ added in v0.17.2
func (_c *SupplyChainRepository_Transaction_Call) Return(err error) *SupplyChainRepository_Transaction_Call
func (*SupplyChainRepository_Transaction_Call) Run ¶ added in v0.17.2
func (_c *SupplyChainRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *SupplyChainRepository_Transaction_Call
func (*SupplyChainRepository_Transaction_Call) RunAndReturn ¶ added in v0.17.2
func (_c *SupplyChainRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *SupplyChainRepository_Transaction_Call
type SupplyChainRepository_Upsert_Call ¶ added in v0.17.2
SupplyChainRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*SupplyChainRepository_Upsert_Call) Return ¶ added in v0.17.2
func (_c *SupplyChainRepository_Upsert_Call) Return(err error) *SupplyChainRepository_Upsert_Call
func (*SupplyChainRepository_Upsert_Call) Run ¶ added in v0.17.2
func (_c *SupplyChainRepository_Upsert_Call) Run(run func(t *[]*models.SupplyChain, conflictingColumns []clause.Column, updateOnly []string)) *SupplyChainRepository_Upsert_Call
func (*SupplyChainRepository_Upsert_Call) RunAndReturn ¶ added in v0.17.2
func (_c *SupplyChainRepository_Upsert_Call) RunAndReturn(run func(t *[]*models.SupplyChain, conflictingColumns []clause.Column, updateOnly []string) error) *SupplyChainRepository_Upsert_Call
type ThirdPartyIntegration ¶ added in v0.17.2
ThirdPartyIntegration is an autogenerated mock type for the ThirdPartyIntegration type
func NewThirdPartyIntegration ¶ added in v0.17.2
func NewThirdPartyIntegration(t interface { mock.TestingT Cleanup(func()) }) *ThirdPartyIntegration
NewThirdPartyIntegration creates a new instance of ThirdPartyIntegration. 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 (*ThirdPartyIntegration) CreateIssue ¶ added in v0.17.2
func (_mock *ThirdPartyIntegration) CreateIssue(ctx context.Context, asset models.Asset, assetVersionName string, vuln models.Vuln, projectSlug string, orgSlug string, justification string, userID string) error
CreateIssue provides a mock function for the type ThirdPartyIntegration
func (*ThirdPartyIntegration) CreateLabels ¶ added in v0.17.3
CreateLabels provides a mock function for the type ThirdPartyIntegration
func (*ThirdPartyIntegration) EXPECT ¶ added in v0.17.2
func (_m *ThirdPartyIntegration) EXPECT() *ThirdPartyIntegration_Expecter
func (*ThirdPartyIntegration) GetID ¶ added in v0.17.2
func (_mock *ThirdPartyIntegration) GetID() core.IntegrationID
GetID provides a mock function for the type ThirdPartyIntegration
func (*ThirdPartyIntegration) HandleEvent ¶ added in v0.17.2
func (_mock *ThirdPartyIntegration) HandleEvent(event any) error
HandleEvent provides a mock function for the type ThirdPartyIntegration
func (*ThirdPartyIntegration) HandleWebhook ¶ added in v0.17.2
func (_mock *ThirdPartyIntegration) HandleWebhook(ctx core.Context) error
HandleWebhook provides a mock function for the type ThirdPartyIntegration
func (*ThirdPartyIntegration) HasAccessToExternalEntityProvider ¶ added in v0.17.2
func (_mock *ThirdPartyIntegration) HasAccessToExternalEntityProvider(ctx core.Context, externalEntityProviderID string) (bool, error)
HasAccessToExternalEntityProvider provides a mock function for the type ThirdPartyIntegration
func (*ThirdPartyIntegration) ListGroups ¶ added in v0.17.2
func (_mock *ThirdPartyIntegration) ListGroups(ctx context.Context, userID string, providerID string) ([]models.Project, []core.Role, error)
ListGroups provides a mock function for the type ThirdPartyIntegration
func (*ThirdPartyIntegration) ListOrgs ¶ added in v0.17.2
ListOrgs provides a mock function for the type ThirdPartyIntegration
func (*ThirdPartyIntegration) ListProjects ¶ added in v0.17.2
func (_mock *ThirdPartyIntegration) ListProjects(ctx context.Context, userID string, providerID string, groupID string) ([]models.Asset, []core.Role, error)
ListProjects provides a mock function for the type ThirdPartyIntegration
func (*ThirdPartyIntegration) ListRepositories ¶ added in v0.17.2
func (_mock *ThirdPartyIntegration) ListRepositories(ctx core.Context) ([]core.Repository, error)
ListRepositories provides a mock function for the type ThirdPartyIntegration
func (*ThirdPartyIntegration) UpdateIssue ¶ added in v0.17.2
func (_mock *ThirdPartyIntegration) UpdateIssue(ctx context.Context, asset models.Asset, assetVersionSlug string, vuln models.Vuln) error
UpdateIssue provides a mock function for the type ThirdPartyIntegration
func (*ThirdPartyIntegration) WantsToHandleWebhook ¶ added in v0.17.2
func (_mock *ThirdPartyIntegration) WantsToHandleWebhook(ctx core.Context) bool
WantsToHandleWebhook provides a mock function for the type ThirdPartyIntegration
type ThirdPartyIntegration_CreateIssue_Call ¶ added in v0.17.2
ThirdPartyIntegration_CreateIssue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIssue'
func (*ThirdPartyIntegration_CreateIssue_Call) Return ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_CreateIssue_Call) Return(err error) *ThirdPartyIntegration_CreateIssue_Call
func (*ThirdPartyIntegration_CreateIssue_Call) RunAndReturn ¶ added in v0.17.2
type ThirdPartyIntegration_CreateLabels_Call ¶ added in v0.17.3
ThirdPartyIntegration_CreateLabels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateLabels'
func (*ThirdPartyIntegration_CreateLabels_Call) Return ¶ added in v0.17.3
func (_c *ThirdPartyIntegration_CreateLabels_Call) Return(err error) *ThirdPartyIntegration_CreateLabels_Call
func (*ThirdPartyIntegration_CreateLabels_Call) Run ¶ added in v0.17.3
func (_c *ThirdPartyIntegration_CreateLabels_Call) Run(run func(ctx context.Context, asset models.Asset)) *ThirdPartyIntegration_CreateLabels_Call
func (*ThirdPartyIntegration_CreateLabels_Call) RunAndReturn ¶ added in v0.17.3
func (_c *ThirdPartyIntegration_CreateLabels_Call) RunAndReturn(run func(ctx context.Context, asset models.Asset) error) *ThirdPartyIntegration_CreateLabels_Call
type ThirdPartyIntegration_Expecter ¶ added in v0.17.2
type ThirdPartyIntegration_Expecter struct {
// contains filtered or unexported fields
}
func (*ThirdPartyIntegration_Expecter) CreateIssue ¶ added in v0.17.2
func (_e *ThirdPartyIntegration_Expecter) CreateIssue(ctx interface{}, asset interface{}, assetVersionName interface{}, vuln interface{}, projectSlug interface{}, orgSlug interface{}, justification interface{}, userID interface{}) *ThirdPartyIntegration_CreateIssue_Call
CreateIssue is a helper method to define mock.On call
- ctx context.Context
- asset models.Asset
- assetVersionName string
- vuln models.Vuln
- projectSlug string
- orgSlug string
- justification string
- userID string
func (*ThirdPartyIntegration_Expecter) CreateLabels ¶ added in v0.17.3
func (_e *ThirdPartyIntegration_Expecter) CreateLabels(ctx interface{}, asset interface{}) *ThirdPartyIntegration_CreateLabels_Call
CreateLabels is a helper method to define mock.On call
- ctx context.Context
- asset models.Asset
func (*ThirdPartyIntegration_Expecter) GetID ¶ added in v0.17.2
func (_e *ThirdPartyIntegration_Expecter) GetID() *ThirdPartyIntegration_GetID_Call
GetID is a helper method to define mock.On call
func (*ThirdPartyIntegration_Expecter) HandleEvent ¶ added in v0.17.2
func (_e *ThirdPartyIntegration_Expecter) HandleEvent(event interface{}) *ThirdPartyIntegration_HandleEvent_Call
HandleEvent is a helper method to define mock.On call
- event any
func (*ThirdPartyIntegration_Expecter) HandleWebhook ¶ added in v0.17.2
func (_e *ThirdPartyIntegration_Expecter) HandleWebhook(ctx interface{}) *ThirdPartyIntegration_HandleWebhook_Call
HandleWebhook is a helper method to define mock.On call
- ctx core.Context
func (*ThirdPartyIntegration_Expecter) HasAccessToExternalEntityProvider ¶ added in v0.17.2
func (_e *ThirdPartyIntegration_Expecter) HasAccessToExternalEntityProvider(ctx interface{}, externalEntityProviderID interface{}) *ThirdPartyIntegration_HasAccessToExternalEntityProvider_Call
HasAccessToExternalEntityProvider is a helper method to define mock.On call
- ctx core.Context
- externalEntityProviderID string
func (*ThirdPartyIntegration_Expecter) ListGroups ¶ added in v0.17.2
func (_e *ThirdPartyIntegration_Expecter) ListGroups(ctx interface{}, userID interface{}, providerID interface{}) *ThirdPartyIntegration_ListGroups_Call
ListGroups is a helper method to define mock.On call
- ctx context.Context
- userID string
- providerID string
func (*ThirdPartyIntegration_Expecter) ListOrgs ¶ added in v0.17.2
func (_e *ThirdPartyIntegration_Expecter) ListOrgs(ctx interface{}) *ThirdPartyIntegration_ListOrgs_Call
ListOrgs is a helper method to define mock.On call
- ctx core.Context
func (*ThirdPartyIntegration_Expecter) ListProjects ¶ added in v0.17.2
func (_e *ThirdPartyIntegration_Expecter) ListProjects(ctx interface{}, userID interface{}, providerID interface{}, groupID interface{}) *ThirdPartyIntegration_ListProjects_Call
ListProjects is a helper method to define mock.On call
- ctx context.Context
- userID string
- providerID string
- groupID string
func (*ThirdPartyIntegration_Expecter) ListRepositories ¶ added in v0.17.2
func (_e *ThirdPartyIntegration_Expecter) ListRepositories(ctx interface{}) *ThirdPartyIntegration_ListRepositories_Call
ListRepositories is a helper method to define mock.On call
- ctx core.Context
func (*ThirdPartyIntegration_Expecter) UpdateIssue ¶ added in v0.17.2
func (_e *ThirdPartyIntegration_Expecter) UpdateIssue(ctx interface{}, asset interface{}, assetVersionSlug interface{}, vuln interface{}) *ThirdPartyIntegration_UpdateIssue_Call
UpdateIssue is a helper method to define mock.On call
- ctx context.Context
- asset models.Asset
- assetVersionSlug string
- vuln models.Vuln
func (*ThirdPartyIntegration_Expecter) WantsToHandleWebhook ¶ added in v0.17.2
func (_e *ThirdPartyIntegration_Expecter) WantsToHandleWebhook(ctx interface{}) *ThirdPartyIntegration_WantsToHandleWebhook_Call
WantsToHandleWebhook is a helper method to define mock.On call
- ctx core.Context
type ThirdPartyIntegration_GetID_Call ¶ added in v0.17.2
ThirdPartyIntegration_GetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetID'
func (*ThirdPartyIntegration_GetID_Call) Return ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_GetID_Call) Return(integrationID core.IntegrationID) *ThirdPartyIntegration_GetID_Call
func (*ThirdPartyIntegration_GetID_Call) Run ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_GetID_Call) Run(run func()) *ThirdPartyIntegration_GetID_Call
func (*ThirdPartyIntegration_GetID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_GetID_Call) RunAndReturn(run func() core.IntegrationID) *ThirdPartyIntegration_GetID_Call
type ThirdPartyIntegration_HandleEvent_Call ¶ added in v0.17.2
ThirdPartyIntegration_HandleEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleEvent'
func (*ThirdPartyIntegration_HandleEvent_Call) Return ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_HandleEvent_Call) Return(err error) *ThirdPartyIntegration_HandleEvent_Call
func (*ThirdPartyIntegration_HandleEvent_Call) Run ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_HandleEvent_Call) Run(run func(event any)) *ThirdPartyIntegration_HandleEvent_Call
func (*ThirdPartyIntegration_HandleEvent_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_HandleEvent_Call) RunAndReturn(run func(event any) error) *ThirdPartyIntegration_HandleEvent_Call
type ThirdPartyIntegration_HandleWebhook_Call ¶ added in v0.17.2
ThirdPartyIntegration_HandleWebhook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleWebhook'
func (*ThirdPartyIntegration_HandleWebhook_Call) Return ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_HandleWebhook_Call) Return(err error) *ThirdPartyIntegration_HandleWebhook_Call
func (*ThirdPartyIntegration_HandleWebhook_Call) Run ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_HandleWebhook_Call) Run(run func(ctx core.Context)) *ThirdPartyIntegration_HandleWebhook_Call
func (*ThirdPartyIntegration_HandleWebhook_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_HandleWebhook_Call) RunAndReturn(run func(ctx core.Context) error) *ThirdPartyIntegration_HandleWebhook_Call
type ThirdPartyIntegration_HasAccessToExternalEntityProvider_Call ¶ added in v0.17.2
ThirdPartyIntegration_HasAccessToExternalEntityProvider_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasAccessToExternalEntityProvider'
func (*ThirdPartyIntegration_HasAccessToExternalEntityProvider_Call) Run ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_HasAccessToExternalEntityProvider_Call) Run(run func(ctx core.Context, externalEntityProviderID string)) *ThirdPartyIntegration_HasAccessToExternalEntityProvider_Call
func (*ThirdPartyIntegration_HasAccessToExternalEntityProvider_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_HasAccessToExternalEntityProvider_Call) RunAndReturn(run func(ctx core.Context, externalEntityProviderID string) (bool, error)) *ThirdPartyIntegration_HasAccessToExternalEntityProvider_Call
type ThirdPartyIntegration_ListGroups_Call ¶ added in v0.17.2
ThirdPartyIntegration_ListGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListGroups'
func (*ThirdPartyIntegration_ListGroups_Call) Return ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_ListGroups_Call) Return(projects []models.Project, roles []core.Role, err error) *ThirdPartyIntegration_ListGroups_Call
func (*ThirdPartyIntegration_ListGroups_Call) Run ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_ListGroups_Call) Run(run func(ctx context.Context, userID string, providerID string)) *ThirdPartyIntegration_ListGroups_Call
func (*ThirdPartyIntegration_ListGroups_Call) RunAndReturn ¶ added in v0.17.2
type ThirdPartyIntegration_ListOrgs_Call ¶ added in v0.17.2
ThirdPartyIntegration_ListOrgs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListOrgs'
func (*ThirdPartyIntegration_ListOrgs_Call) Return ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_ListOrgs_Call) Return(orgs []models.Org, err error) *ThirdPartyIntegration_ListOrgs_Call
func (*ThirdPartyIntegration_ListOrgs_Call) Run ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_ListOrgs_Call) Run(run func(ctx core.Context)) *ThirdPartyIntegration_ListOrgs_Call
func (*ThirdPartyIntegration_ListOrgs_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_ListOrgs_Call) RunAndReturn(run func(ctx core.Context) ([]models.Org, error)) *ThirdPartyIntegration_ListOrgs_Call
type ThirdPartyIntegration_ListProjects_Call ¶ added in v0.17.2
ThirdPartyIntegration_ListProjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListProjects'
func (*ThirdPartyIntegration_ListProjects_Call) Return ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_ListProjects_Call) Return(assets []models.Asset, roles []core.Role, err error) *ThirdPartyIntegration_ListProjects_Call
func (*ThirdPartyIntegration_ListProjects_Call) Run ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_ListProjects_Call) Run(run func(ctx context.Context, userID string, providerID string, groupID string)) *ThirdPartyIntegration_ListProjects_Call
func (*ThirdPartyIntegration_ListProjects_Call) RunAndReturn ¶ added in v0.17.2
type ThirdPartyIntegration_ListRepositories_Call ¶ added in v0.17.2
ThirdPartyIntegration_ListRepositories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRepositories'
func (*ThirdPartyIntegration_ListRepositories_Call) Return ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_ListRepositories_Call) Return(repositorys []core.Repository, err error) *ThirdPartyIntegration_ListRepositories_Call
func (*ThirdPartyIntegration_ListRepositories_Call) Run ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_ListRepositories_Call) Run(run func(ctx core.Context)) *ThirdPartyIntegration_ListRepositories_Call
func (*ThirdPartyIntegration_ListRepositories_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_ListRepositories_Call) RunAndReturn(run func(ctx core.Context) ([]core.Repository, error)) *ThirdPartyIntegration_ListRepositories_Call
type ThirdPartyIntegration_UpdateIssue_Call ¶ added in v0.17.2
ThirdPartyIntegration_UpdateIssue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateIssue'
func (*ThirdPartyIntegration_UpdateIssue_Call) Return ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_UpdateIssue_Call) Return(err error) *ThirdPartyIntegration_UpdateIssue_Call
func (*ThirdPartyIntegration_UpdateIssue_Call) Run ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_UpdateIssue_Call) Run(run func(ctx context.Context, asset models.Asset, assetVersionSlug string, vuln models.Vuln)) *ThirdPartyIntegration_UpdateIssue_Call
func (*ThirdPartyIntegration_UpdateIssue_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_UpdateIssue_Call) RunAndReturn(run func(ctx context.Context, asset models.Asset, assetVersionSlug string, vuln models.Vuln) error) *ThirdPartyIntegration_UpdateIssue_Call
type ThirdPartyIntegration_WantsToHandleWebhook_Call ¶ added in v0.17.2
ThirdPartyIntegration_WantsToHandleWebhook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WantsToHandleWebhook'
func (*ThirdPartyIntegration_WantsToHandleWebhook_Call) Run ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_WantsToHandleWebhook_Call) Run(run func(ctx core.Context)) *ThirdPartyIntegration_WantsToHandleWebhook_Call
func (*ThirdPartyIntegration_WantsToHandleWebhook_Call) RunAndReturn ¶ added in v0.17.2
func (_c *ThirdPartyIntegration_WantsToHandleWebhook_Call) RunAndReturn(run func(ctx core.Context) bool) *ThirdPartyIntegration_WantsToHandleWebhook_Call
type Verifier ¶ added in v0.17.2
Verifier is an autogenerated mock type for the Verifier type
func NewVerifier ¶ added in v0.17.2
NewVerifier creates a new instance of Verifier. 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 (*Verifier) EXPECT ¶ added in v0.17.2
func (_m *Verifier) EXPECT() *Verifier_Expecter
type Verifier_Expecter ¶ added in v0.17.2
type Verifier_Expecter struct {
// contains filtered or unexported fields
}
func (*Verifier_Expecter) VerifyRequestSignature ¶ added in v0.17.2
func (_e *Verifier_Expecter) VerifyRequestSignature(req interface{}) *Verifier_VerifyRequestSignature_Call
VerifyRequestSignature is a helper method to define mock.On call
- req *http.Request
type Verifier_VerifyRequestSignature_Call ¶ added in v0.17.2
Verifier_VerifyRequestSignature_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VerifyRequestSignature'
func (*Verifier_VerifyRequestSignature_Call) Return ¶ added in v0.17.2
func (_c *Verifier_VerifyRequestSignature_Call) Return(s string, s1 string, err error) *Verifier_VerifyRequestSignature_Call
func (*Verifier_VerifyRequestSignature_Call) Run ¶ added in v0.17.2
func (_c *Verifier_VerifyRequestSignature_Call) Run(run func(req *http.Request)) *Verifier_VerifyRequestSignature_Call
func (*Verifier_VerifyRequestSignature_Call) RunAndReturn ¶ added in v0.17.2
func (_c *Verifier_VerifyRequestSignature_Call) RunAndReturn(run func(req *http.Request) (string, string, error)) *Verifier_VerifyRequestSignature_Call
type VulnEventRepository ¶ added in v0.17.2
VulnEventRepository is an autogenerated mock type for the VulnEventRepository type
func NewVulnEventRepository ¶ added in v0.17.2
func NewVulnEventRepository(t interface { mock.TestingT Cleanup(func()) }) *VulnEventRepository
NewVulnEventRepository creates a new instance of VulnEventRepository. 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 (*VulnEventRepository) EXPECT ¶ added in v0.17.2
func (_m *VulnEventRepository) EXPECT() *VulnEventRepository_Expecter
func (*VulnEventRepository) ReadAssetEventsByVulnID ¶ added in v0.17.2
func (_mock *VulnEventRepository) ReadAssetEventsByVulnID(vulnID string, vulnType models.VulnType) ([]models.VulnEventDetail, error)
ReadAssetEventsByVulnID provides a mock function for the type VulnEventRepository
func (*VulnEventRepository) ReadEventsByAssetIDAndAssetVersionName ¶ added in v0.17.2
func (_mock *VulnEventRepository) ReadEventsByAssetIDAndAssetVersionName(assetID uuid.UUID, assetVersionName string, pageInfo core.PageInfo, filter []core.FilterQuery) (core.Paged[models.VulnEventDetail], error)
ReadEventsByAssetIDAndAssetVersionName provides a mock function for the type VulnEventRepository
type VulnEventRepository_Expecter ¶ added in v0.17.2
type VulnEventRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*VulnEventRepository_Expecter) ReadAssetEventsByVulnID ¶ added in v0.17.2
func (_e *VulnEventRepository_Expecter) ReadAssetEventsByVulnID(vulnID interface{}, vulnType interface{}) *VulnEventRepository_ReadAssetEventsByVulnID_Call
ReadAssetEventsByVulnID is a helper method to define mock.On call
- vulnID string
- vulnType models.VulnType
func (*VulnEventRepository_Expecter) ReadEventsByAssetIDAndAssetVersionName ¶ added in v0.17.2
func (_e *VulnEventRepository_Expecter) ReadEventsByAssetIDAndAssetVersionName(assetID interface{}, assetVersionName interface{}, pageInfo interface{}, filter interface{}) *VulnEventRepository_ReadEventsByAssetIDAndAssetVersionName_Call
ReadEventsByAssetIDAndAssetVersionName is a helper method to define mock.On call
- assetID uuid.UUID
- assetVersionName string
- pageInfo core.PageInfo
- filter []core.FilterQuery
func (*VulnEventRepository_Expecter) Save ¶ added in v0.17.2
func (_e *VulnEventRepository_Expecter) Save(db interface{}, event interface{}) *VulnEventRepository_Save_Call
Save is a helper method to define mock.On call
- db core.DB
- event *models.VulnEvent
func (*VulnEventRepository_Expecter) SaveBatch ¶ added in v0.17.2
func (_e *VulnEventRepository_Expecter) SaveBatch(db interface{}, events interface{}) *VulnEventRepository_SaveBatch_Call
SaveBatch is a helper method to define mock.On call
- db core.DB
- events []models.VulnEvent
type VulnEventRepository_ReadAssetEventsByVulnID_Call ¶ added in v0.17.2
VulnEventRepository_ReadAssetEventsByVulnID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadAssetEventsByVulnID'
func (*VulnEventRepository_ReadAssetEventsByVulnID_Call) Return ¶ added in v0.17.2
func (_c *VulnEventRepository_ReadAssetEventsByVulnID_Call) Return(vulnEventDetails []models.VulnEventDetail, err error) *VulnEventRepository_ReadAssetEventsByVulnID_Call
func (*VulnEventRepository_ReadAssetEventsByVulnID_Call) Run ¶ added in v0.17.2
func (_c *VulnEventRepository_ReadAssetEventsByVulnID_Call) Run(run func(vulnID string, vulnType models.VulnType)) *VulnEventRepository_ReadAssetEventsByVulnID_Call
func (*VulnEventRepository_ReadAssetEventsByVulnID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *VulnEventRepository_ReadAssetEventsByVulnID_Call) RunAndReturn(run func(vulnID string, vulnType models.VulnType) ([]models.VulnEventDetail, error)) *VulnEventRepository_ReadAssetEventsByVulnID_Call
type VulnEventRepository_ReadEventsByAssetIDAndAssetVersionName_Call ¶ added in v0.17.2
VulnEventRepository_ReadEventsByAssetIDAndAssetVersionName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadEventsByAssetIDAndAssetVersionName'
func (*VulnEventRepository_ReadEventsByAssetIDAndAssetVersionName_Call) Run ¶ added in v0.17.2
func (_c *VulnEventRepository_ReadEventsByAssetIDAndAssetVersionName_Call) Run(run func(assetID uuid.UUID, assetVersionName string, pageInfo core.PageInfo, filter []core.FilterQuery)) *VulnEventRepository_ReadEventsByAssetIDAndAssetVersionName_Call
func (*VulnEventRepository_ReadEventsByAssetIDAndAssetVersionName_Call) RunAndReturn ¶ added in v0.17.2
func (_c *VulnEventRepository_ReadEventsByAssetIDAndAssetVersionName_Call) RunAndReturn(run func(assetID uuid.UUID, assetVersionName string, pageInfo core.PageInfo, filter []core.FilterQuery) (core.Paged[models.VulnEventDetail], error)) *VulnEventRepository_ReadEventsByAssetIDAndAssetVersionName_Call
type VulnEventRepository_SaveBatch_Call ¶ added in v0.17.2
VulnEventRepository_SaveBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBatch'
func (*VulnEventRepository_SaveBatch_Call) Return ¶ added in v0.17.2
func (_c *VulnEventRepository_SaveBatch_Call) Return(err error) *VulnEventRepository_SaveBatch_Call
func (*VulnEventRepository_SaveBatch_Call) Run ¶ added in v0.17.2
func (_c *VulnEventRepository_SaveBatch_Call) Run(run func(db core.DB, events []models.VulnEvent)) *VulnEventRepository_SaveBatch_Call
func (*VulnEventRepository_SaveBatch_Call) RunAndReturn ¶ added in v0.17.2
func (_c *VulnEventRepository_SaveBatch_Call) RunAndReturn(run func(db core.DB, events []models.VulnEvent) error) *VulnEventRepository_SaveBatch_Call
type VulnEventRepository_Save_Call ¶ added in v0.17.2
VulnEventRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*VulnEventRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *VulnEventRepository_Save_Call) Return(err error) *VulnEventRepository_Save_Call
func (*VulnEventRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *VulnEventRepository_Save_Call) Run(run func(db core.DB, event *models.VulnEvent)) *VulnEventRepository_Save_Call
func (*VulnEventRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *VulnEventRepository_Save_Call) RunAndReturn(run func(db core.DB, event *models.VulnEvent) error) *VulnEventRepository_Save_Call
type VulnRepository ¶ added in v0.17.2
VulnRepository is an autogenerated mock type for the VulnRepository type
func NewVulnRepository ¶ added in v0.17.2
func NewVulnRepository(t interface { mock.TestingT Cleanup(func()) }) *VulnRepository
NewVulnRepository creates a new instance of VulnRepository. 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 (*VulnRepository) ApplyAndSave ¶ added in v0.17.2
func (_mock *VulnRepository) ApplyAndSave(tx core.DB, dependencyVuln models.Vuln, vulnEvent *models.VulnEvent) error
ApplyAndSave provides a mock function for the type VulnRepository
func (*VulnRepository) EXPECT ¶ added in v0.17.2
func (_m *VulnRepository) EXPECT() *VulnRepository_Expecter
func (*VulnRepository) FindByTicketID ¶ added in v0.17.2
FindByTicketID provides a mock function for the type VulnRepository
func (*VulnRepository) GetOrgFromVuln ¶ added in v0.17.2
GetOrgFromVuln provides a mock function for the type VulnRepository
func (*VulnRepository) Save ¶ added in v0.17.2
Save provides a mock function for the type VulnRepository
func (*VulnRepository) Transaction ¶ added in v0.17.2
func (_mock *VulnRepository) Transaction(fn func(tx core.DB) error) error
Transaction provides a mock function for the type VulnRepository
type VulnRepository_ApplyAndSave_Call ¶ added in v0.17.2
VulnRepository_ApplyAndSave_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyAndSave'
func (*VulnRepository_ApplyAndSave_Call) Return ¶ added in v0.17.2
func (_c *VulnRepository_ApplyAndSave_Call) Return(err error) *VulnRepository_ApplyAndSave_Call
func (*VulnRepository_ApplyAndSave_Call) Run ¶ added in v0.17.2
func (_c *VulnRepository_ApplyAndSave_Call) Run(run func(tx core.DB, dependencyVuln models.Vuln, vulnEvent *models.VulnEvent)) *VulnRepository_ApplyAndSave_Call
func (*VulnRepository_ApplyAndSave_Call) RunAndReturn ¶ added in v0.17.2
func (_c *VulnRepository_ApplyAndSave_Call) RunAndReturn(run func(tx core.DB, dependencyVuln models.Vuln, vulnEvent *models.VulnEvent) error) *VulnRepository_ApplyAndSave_Call
type VulnRepository_Expecter ¶ added in v0.17.2
type VulnRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*VulnRepository_Expecter) ApplyAndSave ¶ added in v0.17.2
func (_e *VulnRepository_Expecter) ApplyAndSave(tx interface{}, dependencyVuln interface{}, vulnEvent interface{}) *VulnRepository_ApplyAndSave_Call
ApplyAndSave is a helper method to define mock.On call
- tx core.DB
- dependencyVuln models.Vuln
- vulnEvent *models.VulnEvent
func (*VulnRepository_Expecter) FindByTicketID ¶ added in v0.17.2
func (_e *VulnRepository_Expecter) FindByTicketID(tx interface{}, ticketID interface{}) *VulnRepository_FindByTicketID_Call
FindByTicketID is a helper method to define mock.On call
- tx core.DB
- ticketID string
func (*VulnRepository_Expecter) GetOrgFromVuln ¶ added in v0.17.2
func (_e *VulnRepository_Expecter) GetOrgFromVuln(vuln interface{}) *VulnRepository_GetOrgFromVuln_Call
GetOrgFromVuln is a helper method to define mock.On call
- vuln models.Vuln
func (*VulnRepository_Expecter) Save ¶ added in v0.17.2
func (_e *VulnRepository_Expecter) Save(db interface{}, vuln interface{}) *VulnRepository_Save_Call
Save is a helper method to define mock.On call
- db core.DB
- vuln *models.Vuln
func (*VulnRepository_Expecter) Transaction ¶ added in v0.17.2
func (_e *VulnRepository_Expecter) Transaction(fn interface{}) *VulnRepository_Transaction_Call
Transaction is a helper method to define mock.On call
- fn func(tx core.DB) error
type VulnRepository_FindByTicketID_Call ¶ added in v0.17.2
VulnRepository_FindByTicketID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByTicketID'
func (*VulnRepository_FindByTicketID_Call) Return ¶ added in v0.17.2
func (_c *VulnRepository_FindByTicketID_Call) Return(vuln models.Vuln, err error) *VulnRepository_FindByTicketID_Call
func (*VulnRepository_FindByTicketID_Call) Run ¶ added in v0.17.2
func (_c *VulnRepository_FindByTicketID_Call) Run(run func(tx core.DB, ticketID string)) *VulnRepository_FindByTicketID_Call
func (*VulnRepository_FindByTicketID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *VulnRepository_FindByTicketID_Call) RunAndReturn(run func(tx core.DB, ticketID string) (models.Vuln, error)) *VulnRepository_FindByTicketID_Call
type VulnRepository_GetOrgFromVuln_Call ¶ added in v0.17.2
VulnRepository_GetOrgFromVuln_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrgFromVuln'
func (*VulnRepository_GetOrgFromVuln_Call) Return ¶ added in v0.17.2
func (_c *VulnRepository_GetOrgFromVuln_Call) Return(org models.Org, err error) *VulnRepository_GetOrgFromVuln_Call
func (*VulnRepository_GetOrgFromVuln_Call) Run ¶ added in v0.17.2
func (_c *VulnRepository_GetOrgFromVuln_Call) Run(run func(vuln models.Vuln)) *VulnRepository_GetOrgFromVuln_Call
func (*VulnRepository_GetOrgFromVuln_Call) RunAndReturn ¶ added in v0.17.2
func (_c *VulnRepository_GetOrgFromVuln_Call) RunAndReturn(run func(vuln models.Vuln) (models.Org, error)) *VulnRepository_GetOrgFromVuln_Call
type VulnRepository_Save_Call ¶ added in v0.17.2
VulnRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*VulnRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *VulnRepository_Save_Call) Return(err error) *VulnRepository_Save_Call
func (*VulnRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *VulnRepository_Save_Call) Run(run func(db core.DB, vuln *models.Vuln)) *VulnRepository_Save_Call
func (*VulnRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *VulnRepository_Save_Call) RunAndReturn(run func(db core.DB, vuln *models.Vuln) error) *VulnRepository_Save_Call
type VulnRepository_Transaction_Call ¶ added in v0.17.2
VulnRepository_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*VulnRepository_Transaction_Call) Return ¶ added in v0.17.2
func (_c *VulnRepository_Transaction_Call) Return(err error) *VulnRepository_Transaction_Call
func (*VulnRepository_Transaction_Call) Run ¶ added in v0.17.2
func (_c *VulnRepository_Transaction_Call) Run(run func(fn func(tx core.DB) error)) *VulnRepository_Transaction_Call
func (*VulnRepository_Transaction_Call) RunAndReturn ¶ added in v0.17.2
func (_c *VulnRepository_Transaction_Call) RunAndReturn(run func(fn func(tx core.DB) error) error) *VulnRepository_Transaction_Call
type WebhookIntegrationRepository ¶ added in v0.17.2
WebhookIntegrationRepository is an autogenerated mock type for the WebhookIntegrationRepository type
func NewWebhookIntegrationRepository ¶ added in v0.17.2
func NewWebhookIntegrationRepository(t interface { mock.TestingT Cleanup(func()) }) *WebhookIntegrationRepository
NewWebhookIntegrationRepository creates a new instance of WebhookIntegrationRepository. 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 (*WebhookIntegrationRepository) Delete ¶ added in v0.17.2
Delete provides a mock function for the type WebhookIntegrationRepository
func (*WebhookIntegrationRepository) EXPECT ¶ added in v0.17.2
func (_m *WebhookIntegrationRepository) EXPECT() *WebhookIntegrationRepository_Expecter
func (*WebhookIntegrationRepository) FindByOrgIDAndProjectID ¶ added in v0.17.2
func (_mock *WebhookIntegrationRepository) FindByOrgIDAndProjectID(orgID uuid.UUID, projectID uuid.UUID) ([]models.WebhookIntegration, error)
FindByOrgIDAndProjectID provides a mock function for the type WebhookIntegrationRepository
func (*WebhookIntegrationRepository) GetClientByIntegrationID ¶ added in v0.17.2
func (_mock *WebhookIntegrationRepository) GetClientByIntegrationID(integrationID uuid.UUID) (models.WebhookIntegration, error)
GetClientByIntegrationID provides a mock function for the type WebhookIntegrationRepository
func (*WebhookIntegrationRepository) GetProjectWebhooks ¶ added in v0.17.2
func (_mock *WebhookIntegrationRepository) GetProjectWebhooks(orgID uuid.UUID, projectID uuid.UUID) ([]models.WebhookIntegration, error)
GetProjectWebhooks provides a mock function for the type WebhookIntegrationRepository
func (*WebhookIntegrationRepository) Read ¶ added in v0.17.2
func (_mock *WebhookIntegrationRepository) Read(id uuid.UUID) (models.WebhookIntegration, error)
Read provides a mock function for the type WebhookIntegrationRepository
func (*WebhookIntegrationRepository) Save ¶ added in v0.17.2
func (_mock *WebhookIntegrationRepository) Save(tx core.DB, model *models.WebhookIntegration) error
Save provides a mock function for the type WebhookIntegrationRepository
type WebhookIntegrationRepository_Delete_Call ¶ added in v0.17.2
WebhookIntegrationRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*WebhookIntegrationRepository_Delete_Call) Return ¶ added in v0.17.2
func (_c *WebhookIntegrationRepository_Delete_Call) Return(err error) *WebhookIntegrationRepository_Delete_Call
func (*WebhookIntegrationRepository_Delete_Call) Run ¶ added in v0.17.2
func (_c *WebhookIntegrationRepository_Delete_Call) Run(run func(tx core.DB, id uuid.UUID)) *WebhookIntegrationRepository_Delete_Call
func (*WebhookIntegrationRepository_Delete_Call) RunAndReturn ¶ added in v0.17.2
func (_c *WebhookIntegrationRepository_Delete_Call) RunAndReturn(run func(tx core.DB, id uuid.UUID) error) *WebhookIntegrationRepository_Delete_Call
type WebhookIntegrationRepository_Expecter ¶ added in v0.17.2
type WebhookIntegrationRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*WebhookIntegrationRepository_Expecter) Delete ¶ added in v0.17.2
func (_e *WebhookIntegrationRepository_Expecter) Delete(tx interface{}, id interface{}) *WebhookIntegrationRepository_Delete_Call
Delete is a helper method to define mock.On call
- tx core.DB
- id uuid.UUID
func (*WebhookIntegrationRepository_Expecter) FindByOrgIDAndProjectID ¶ added in v0.17.2
func (_e *WebhookIntegrationRepository_Expecter) FindByOrgIDAndProjectID(orgID interface{}, projectID interface{}) *WebhookIntegrationRepository_FindByOrgIDAndProjectID_Call
FindByOrgIDAndProjectID is a helper method to define mock.On call
- orgID uuid.UUID
- projectID uuid.UUID
func (*WebhookIntegrationRepository_Expecter) GetClientByIntegrationID ¶ added in v0.17.2
func (_e *WebhookIntegrationRepository_Expecter) GetClientByIntegrationID(integrationID interface{}) *WebhookIntegrationRepository_GetClientByIntegrationID_Call
GetClientByIntegrationID is a helper method to define mock.On call
- integrationID uuid.UUID
func (*WebhookIntegrationRepository_Expecter) GetProjectWebhooks ¶ added in v0.17.2
func (_e *WebhookIntegrationRepository_Expecter) GetProjectWebhooks(orgID interface{}, projectID interface{}) *WebhookIntegrationRepository_GetProjectWebhooks_Call
GetProjectWebhooks is a helper method to define mock.On call
- orgID uuid.UUID
- projectID uuid.UUID
func (*WebhookIntegrationRepository_Expecter) Read ¶ added in v0.17.2
func (_e *WebhookIntegrationRepository_Expecter) Read(id interface{}) *WebhookIntegrationRepository_Read_Call
Read is a helper method to define mock.On call
- id uuid.UUID
func (*WebhookIntegrationRepository_Expecter) Save ¶ added in v0.17.2
func (_e *WebhookIntegrationRepository_Expecter) Save(tx interface{}, model interface{}) *WebhookIntegrationRepository_Save_Call
Save is a helper method to define mock.On call
- tx core.DB
- model *models.WebhookIntegration
type WebhookIntegrationRepository_FindByOrgIDAndProjectID_Call ¶ added in v0.17.2
WebhookIntegrationRepository_FindByOrgIDAndProjectID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByOrgIDAndProjectID'
func (*WebhookIntegrationRepository_FindByOrgIDAndProjectID_Call) Return ¶ added in v0.17.2
func (_c *WebhookIntegrationRepository_FindByOrgIDAndProjectID_Call) Return(webhookIntegrations []models.WebhookIntegration, err error) *WebhookIntegrationRepository_FindByOrgIDAndProjectID_Call
func (*WebhookIntegrationRepository_FindByOrgIDAndProjectID_Call) Run ¶ added in v0.17.2
func (_c *WebhookIntegrationRepository_FindByOrgIDAndProjectID_Call) Run(run func(orgID uuid.UUID, projectID uuid.UUID)) *WebhookIntegrationRepository_FindByOrgIDAndProjectID_Call
func (*WebhookIntegrationRepository_FindByOrgIDAndProjectID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *WebhookIntegrationRepository_FindByOrgIDAndProjectID_Call) RunAndReturn(run func(orgID uuid.UUID, projectID uuid.UUID) ([]models.WebhookIntegration, error)) *WebhookIntegrationRepository_FindByOrgIDAndProjectID_Call
type WebhookIntegrationRepository_GetClientByIntegrationID_Call ¶ added in v0.17.2
WebhookIntegrationRepository_GetClientByIntegrationID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClientByIntegrationID'
func (*WebhookIntegrationRepository_GetClientByIntegrationID_Call) Return ¶ added in v0.17.2
func (_c *WebhookIntegrationRepository_GetClientByIntegrationID_Call) Return(webhookIntegration models.WebhookIntegration, err error) *WebhookIntegrationRepository_GetClientByIntegrationID_Call
func (*WebhookIntegrationRepository_GetClientByIntegrationID_Call) Run ¶ added in v0.17.2
func (_c *WebhookIntegrationRepository_GetClientByIntegrationID_Call) Run(run func(integrationID uuid.UUID)) *WebhookIntegrationRepository_GetClientByIntegrationID_Call
func (*WebhookIntegrationRepository_GetClientByIntegrationID_Call) RunAndReturn ¶ added in v0.17.2
func (_c *WebhookIntegrationRepository_GetClientByIntegrationID_Call) RunAndReturn(run func(integrationID uuid.UUID) (models.WebhookIntegration, error)) *WebhookIntegrationRepository_GetClientByIntegrationID_Call
type WebhookIntegrationRepository_GetProjectWebhooks_Call ¶ added in v0.17.2
WebhookIntegrationRepository_GetProjectWebhooks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProjectWebhooks'
func (*WebhookIntegrationRepository_GetProjectWebhooks_Call) Return ¶ added in v0.17.2
func (_c *WebhookIntegrationRepository_GetProjectWebhooks_Call) Return(webhookIntegrations []models.WebhookIntegration, err error) *WebhookIntegrationRepository_GetProjectWebhooks_Call
func (*WebhookIntegrationRepository_GetProjectWebhooks_Call) Run ¶ added in v0.17.2
func (_c *WebhookIntegrationRepository_GetProjectWebhooks_Call) Run(run func(orgID uuid.UUID, projectID uuid.UUID)) *WebhookIntegrationRepository_GetProjectWebhooks_Call
func (*WebhookIntegrationRepository_GetProjectWebhooks_Call) RunAndReturn ¶ added in v0.17.2
func (_c *WebhookIntegrationRepository_GetProjectWebhooks_Call) RunAndReturn(run func(orgID uuid.UUID, projectID uuid.UUID) ([]models.WebhookIntegration, error)) *WebhookIntegrationRepository_GetProjectWebhooks_Call
type WebhookIntegrationRepository_Read_Call ¶ added in v0.17.2
WebhookIntegrationRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*WebhookIntegrationRepository_Read_Call) Return ¶ added in v0.17.2
func (_c *WebhookIntegrationRepository_Read_Call) Return(webhookIntegration models.WebhookIntegration, err error) *WebhookIntegrationRepository_Read_Call
func (*WebhookIntegrationRepository_Read_Call) Run ¶ added in v0.17.2
func (_c *WebhookIntegrationRepository_Read_Call) Run(run func(id uuid.UUID)) *WebhookIntegrationRepository_Read_Call
func (*WebhookIntegrationRepository_Read_Call) RunAndReturn ¶ added in v0.17.2
func (_c *WebhookIntegrationRepository_Read_Call) RunAndReturn(run func(id uuid.UUID) (models.WebhookIntegration, error)) *WebhookIntegrationRepository_Read_Call
type WebhookIntegrationRepository_Save_Call ¶ added in v0.17.2
WebhookIntegrationRepository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*WebhookIntegrationRepository_Save_Call) Return ¶ added in v0.17.2
func (_c *WebhookIntegrationRepository_Save_Call) Return(err error) *WebhookIntegrationRepository_Save_Call
func (*WebhookIntegrationRepository_Save_Call) Run ¶ added in v0.17.2
func (_c *WebhookIntegrationRepository_Save_Call) Run(run func(tx core.DB, model *models.WebhookIntegration)) *WebhookIntegrationRepository_Save_Call
func (*WebhookIntegrationRepository_Save_Call) RunAndReturn ¶ added in v0.17.2
func (_c *WebhookIntegrationRepository_Save_Call) RunAndReturn(run func(tx core.DB, model *models.WebhookIntegration) error) *WebhookIntegrationRepository_Save_Call
Source Files
¶
- mock_AccessControl.go
- mock_AdminClient.go
- mock_AffectedComponentRepository.go
- mock_ArtifactRepository.go
- mock_ArtifactRiskHistoryRepository.go
- mock_ArtifactService.go
- mock_AssetRepository.go
- mock_AssetService.go
- mock_AssetVersionRepository.go
- mock_AssetVersionService.go
- mock_AttestationRepository.go
- mock_AuthSession.go
- mock_ComponentProjectRepository.go
- mock_ComponentRepository.go
- mock_ComponentService.go
- mock_ConfigRepository.go
- mock_ConfigService.go
- mock_Context.go
- mock_CveRepository.go
- mock_CweRepository.go
- mock_DependencyVulnRepository.go
- mock_DependencyVulnService.go
- mock_Diffable.go
- mock_ExploitRepository.go
- mock_ExternalEntityProviderService.go
- mock_ExternalUserRepository.go
- mock_FireAndForgetSynchronizer.go
- mock_FirstPartyVulnRepository.go
- mock_FirstPartyVulnService.go
- mock_GitLabOauth2TokenRepository.go
- mock_GithubAppInstallationRepository.go
- mock_GitlabIntegrationRepository.go
- mock_InTotoLinkRepository.go
- mock_InTotoVerifierService.go
- mock_IntegrationAggregate.go
- mock_InvitationRepository.go
- mock_JiraIntegrationRepository.go
- mock_LicenseRiskRepository.go
- mock_LicenseRiskService.go
- mock_OpenSourceInsightService.go
- mock_OrgService.go
- mock_OrganizationRepository.go
- mock_PersonalAccessTokenRepository.go
- mock_PolicyRepository.go
- mock_ProjectRepository.go
- mock_ProjectRiskHistoryRepository.go
- mock_ProjectService.go
- mock_RBACProvider.go
- mock_ReleaseRepository.go
- mock_SBOM.go
- mock_SBOMScanner.go
- mock_StatisticsRepository.go
- mock_StatisticsService.go
- mock_SupplyChainRepository.go
- mock_ThirdPartyIntegration.go
- mock_Verifier.go
- mock_VulnEventRepository.go
- mock_VulnRepository.go
- mock_WebhookIntegrationRepository.go
- mock_comparer.go
- mock_cvssInterface.go
- mock_gitLister.go
- mock_githubClientFacade.go
- mock_gitlabClientFacade.go
- mock_gitlabClientFactory.go