mocks

package
v0.17.5 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessControl added in v0.17.2

type AccessControl struct {
	mock.Mock
}

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

func (_mock *AccessControl) GetProjectRole(user string, project string) (core.Role, error)

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

type AccessControl_AllowRoleInProject_Call struct {
	*mock.Call
}

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 (*AccessControl_AllowRoleInProject_Call) Run added in v0.17.2

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

type AccessControl_AllowRole_Call struct {
	*mock.Call
}

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 (*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

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

GetExternalEntityProviderID is a helper method to define mock.On call

func (*AccessControl_Expecter) GetOwnerOfOrganization added in v0.17.2

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

type AccessControl_GetAllMembersOfOrganization_Call struct {
	*mock.Call
}

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 (*AccessControl_GetAllMembersOfOrganization_Call) Run added in v0.17.2

func (*AccessControl_GetAllMembersOfOrganization_Call) RunAndReturn added in v0.17.2

type AccessControl_GetAllMembersOfProject_Call added in v0.17.2

type AccessControl_GetAllMembersOfProject_Call struct {
	*mock.Call
}

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 (*AccessControl_GetAllMembersOfProject_Call) Run added in v0.17.2

func (*AccessControl_GetAllMembersOfProject_Call) RunAndReturn added in v0.17.2

type AccessControl_GetAllProjectsForUser_Call added in v0.17.2

type AccessControl_GetAllProjectsForUser_Call struct {
	*mock.Call
}

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 (*AccessControl_GetAllProjectsForUser_Call) Run added in v0.17.2

func (*AccessControl_GetAllProjectsForUser_Call) RunAndReturn added in v0.17.2

type AccessControl_GetAllRoles_Call added in v0.17.2

type AccessControl_GetAllRoles_Call struct {
	*mock.Call
}

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 (*AccessControl_GetAllRoles_Call) Run added in v0.17.2

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

type AccessControl_GetDomainRole_Call struct {
	*mock.Call
}

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 (*AccessControl_GetDomainRole_Call) Run added in v0.17.2

func (*AccessControl_GetDomainRole_Call) RunAndReturn added in v0.17.2

type AccessControl_GetExternalEntityProviderID_Call added in v0.17.2

type AccessControl_GetExternalEntityProviderID_Call struct {
	*mock.Call
}

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 (*AccessControl_GetExternalEntityProviderID_Call) Run added in v0.17.2

func (*AccessControl_GetExternalEntityProviderID_Call) RunAndReturn added in v0.17.2

type AccessControl_GetOwnerOfOrganization_Call added in v0.17.2

type AccessControl_GetOwnerOfOrganization_Call struct {
	*mock.Call
}

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 (*AccessControl_GetOwnerOfOrganization_Call) Run added in v0.17.2

func (*AccessControl_GetOwnerOfOrganization_Call) RunAndReturn added in v0.17.2

type AccessControl_GetProjectRole_Call added in v0.17.2

type AccessControl_GetProjectRole_Call struct {
	*mock.Call
}

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 (*AccessControl_GetProjectRole_Call) Run added in v0.17.2

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

type AccessControl_GrantRoleInProject_Call struct {
	*mock.Call
}

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 (*AccessControl_GrantRoleInProject_Call) Run added in v0.17.2

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

type AccessControl_GrantRole_Call struct {
	*mock.Call
}

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 (*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

type AccessControl_HasAccess_Call struct {
	*mock.Call
}

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 (*AccessControl_HasAccess_Call) Run added in v0.17.2

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

type AccessControl_InheritProjectRole_Call struct {
	*mock.Call
}

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 (*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

type AccessControl_InheritProjectRolesAcrossProjects_Call struct {
	*mock.Call
}

AccessControl_InheritProjectRolesAcrossProjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InheritProjectRolesAcrossProjects'

func (*AccessControl_InheritProjectRolesAcrossProjects_Call) Return added in v0.17.2

func (*AccessControl_InheritProjectRolesAcrossProjects_Call) Run added in v0.17.2

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

type AccessControl_InheritRole_Call struct {
	*mock.Call
}

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 (*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

type AccessControl_IsAllowedInProject_Call struct {
	*mock.Call
}

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 (*AccessControl_IsAllowedInProject_Call) Run added in v0.17.2

func (*AccessControl_IsAllowedInProject_Call) RunAndReturn added in v0.17.2

func (_c *AccessControl_IsAllowedInProject_Call) RunAndReturn(run func(project *models.Project, user string, object core.Object, action core.Action) (bool, error)) *AccessControl_IsAllowedInProject_Call

type AccessControl_IsAllowed_Call added in v0.17.2

type AccessControl_IsAllowed_Call struct {
	*mock.Call
}

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 (*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

type AccessControl_LinkDomainAndProjectRole_Call struct {
	*mock.Call
}

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 (*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

type AccessControl_RevokeAllRolesInProjectForUser_Call struct {
	*mock.Call
}

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 (*AccessControl_RevokeAllRolesInProjectForUser_Call) Run added in v0.17.2

func (*AccessControl_RevokeAllRolesInProjectForUser_Call) RunAndReturn added in v0.17.2

type AccessControl_RevokeRoleInProject_Call added in v0.17.2

type AccessControl_RevokeRoleInProject_Call struct {
	*mock.Call
}

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 (*AccessControl_RevokeRoleInProject_Call) Run added in v0.17.2

func (*AccessControl_RevokeRoleInProject_Call) RunAndReturn added in v0.17.2

type AccessControl_RevokeRole_Call added in v0.17.2

type AccessControl_RevokeRole_Call struct {
	*mock.Call
}

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 (*AccessControl_RevokeRole_Call) Run added in v0.17.2

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

type AdminClient struct {
	mock.Mock
}

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

type AdminClient_GetIdentityFromCookie_Call struct {
	*mock.Call
}

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 (*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

type AdminClient_GetIdentityWithCredentials_Call struct {
	*mock.Call
}

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 (*AdminClient_GetIdentityWithCredentials_Call) Run added in v0.17.2

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

type AdminClient_GetIdentity_Call struct {
	*mock.Call
}

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 (*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

type AdminClient_ListUser_Call struct {
	*mock.Call
}

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

type AffectedComponentRepository struct {
	mock.Mock
}

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

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

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 (*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

List provides a mock function for the type AffectedComponentRepository

func (*AffectedComponentRepository) Read added in v0.17.2

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

type AffectedComponentRepository_Activate_Call struct {
	*mock.Call
}

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 (*AffectedComponentRepository_Activate_Call) Run added in v0.17.2

func (*AffectedComponentRepository_Activate_Call) RunAndReturn added in v0.17.2

type AffectedComponentRepository_All_Call added in v0.17.2

type AffectedComponentRepository_All_Call struct {
	*mock.Call
}

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 (*AffectedComponentRepository_All_Call) Run added in v0.17.2

func (*AffectedComponentRepository_All_Call) RunAndReturn added in v0.17.2

type AffectedComponentRepository_Begin_Call added in v0.17.2

type AffectedComponentRepository_Begin_Call struct {
	*mock.Call
}

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 (*AffectedComponentRepository_Begin_Call) Run added in v0.17.2

func (*AffectedComponentRepository_Begin_Call) RunAndReturn added in v0.17.2

type AffectedComponentRepository_CreateBatch_Call added in v0.17.2

type AffectedComponentRepository_CreateBatch_Call struct {
	*mock.Call
}

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 (*AffectedComponentRepository_CreateBatch_Call) Run added in v0.17.2

func (*AffectedComponentRepository_CreateBatch_Call) RunAndReturn added in v0.17.2

type AffectedComponentRepository_Create_Call added in v0.17.2

type AffectedComponentRepository_Create_Call struct {
	*mock.Call
}

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 (*AffectedComponentRepository_Create_Call) Run added in v0.17.2

func (*AffectedComponentRepository_Create_Call) RunAndReturn added in v0.17.2

type AffectedComponentRepository_DeleteAll_Call added in v0.17.2

type AffectedComponentRepository_DeleteAll_Call struct {
	*mock.Call
}

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 (*AffectedComponentRepository_DeleteAll_Call) Run added in v0.17.2

func (*AffectedComponentRepository_DeleteAll_Call) RunAndReturn added in v0.17.2

type AffectedComponentRepository_DeleteBatch_Call added in v0.17.2

type AffectedComponentRepository_DeleteBatch_Call struct {
	*mock.Call
}

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 (*AffectedComponentRepository_DeleteBatch_Call) Run added in v0.17.2

func (*AffectedComponentRepository_DeleteBatch_Call) RunAndReturn added in v0.17.2

type AffectedComponentRepository_Delete_Call added in v0.17.2

type AffectedComponentRepository_Delete_Call struct {
	*mock.Call
}

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 (*AffectedComponentRepository_Delete_Call) Run added in v0.17.2

func (*AffectedComponentRepository_Delete_Call) RunAndReturn added in v0.17.2

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

All is a helper method to define mock.On call

func (*AffectedComponentRepository_Expecter) Begin added in v0.17.2

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

GetAllAffectedComponentsID is a helper method to define mock.On call

func (*AffectedComponentRepository_Expecter) GetDB added in v0.17.2

GetDB is a helper method to define mock.On call

  • tx core.DB

func (*AffectedComponentRepository_Expecter) List added in v0.17.2

List is a helper method to define mock.On call

  • ids []string

func (*AffectedComponentRepository_Expecter) Read added in v0.17.2

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

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

type AffectedComponentRepository_GetAllAffectedComponentsID_Call struct {
	*mock.Call
}

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 (*AffectedComponentRepository_GetAllAffectedComponentsID_Call) Run added in v0.17.2

func (*AffectedComponentRepository_GetAllAffectedComponentsID_Call) RunAndReturn added in v0.17.2

type AffectedComponentRepository_GetDB_Call added in v0.17.2

type AffectedComponentRepository_GetDB_Call struct {
	*mock.Call
}

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 (*AffectedComponentRepository_GetDB_Call) Run added in v0.17.2

func (*AffectedComponentRepository_GetDB_Call) RunAndReturn added in v0.17.2

type AffectedComponentRepository_List_Call added in v0.17.2

type AffectedComponentRepository_List_Call struct {
	*mock.Call
}

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 (*AffectedComponentRepository_List_Call) Run added in v0.17.2

func (*AffectedComponentRepository_List_Call) RunAndReturn added in v0.17.2

type AffectedComponentRepository_Read_Call added in v0.17.2

type AffectedComponentRepository_Read_Call struct {
	*mock.Call
}

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 (*AffectedComponentRepository_Read_Call) Run added in v0.17.2

func (*AffectedComponentRepository_Read_Call) RunAndReturn added in v0.17.2

type AffectedComponentRepository_SaveBatch_Call added in v0.17.2

type AffectedComponentRepository_SaveBatch_Call struct {
	*mock.Call
}

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 (*AffectedComponentRepository_SaveBatch_Call) Run added in v0.17.2

func (*AffectedComponentRepository_SaveBatch_Call) RunAndReturn added in v0.17.2

type AffectedComponentRepository_Save_Call added in v0.17.2

type AffectedComponentRepository_Save_Call struct {
	*mock.Call
}

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 (*AffectedComponentRepository_Save_Call) Run added in v0.17.2

func (*AffectedComponentRepository_Save_Call) RunAndReturn added in v0.17.2

type AffectedComponentRepository_Transaction_Call added in v0.17.2

type AffectedComponentRepository_Transaction_Call struct {
	*mock.Call
}

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 (*AffectedComponentRepository_Transaction_Call) Run added in v0.17.2

func (*AffectedComponentRepository_Transaction_Call) RunAndReturn added in v0.17.2

type AffectedComponentRepository_Upsert_Call added in v0.17.2

type AffectedComponentRepository_Upsert_Call struct {
	*mock.Call
}

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 (*AffectedComponentRepository_Upsert_Call) Run added in v0.17.2

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

type ArtifactRepository struct {
	mock.Mock
}

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

func (_mock *ArtifactRepository) Create(tx core.DB, t *models.Artifact) error

Create provides a mock function for the type ArtifactRepository

func (*ArtifactRepository) CreateBatch added in v0.17.2

func (_mock *ArtifactRepository) CreateBatch(tx core.DB, ts []models.Artifact) error

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

func (_mock *ArtifactRepository) DeleteBatch(tx core.DB, ids []models.Artifact) error

DeleteBatch provides a mock function for the type ArtifactRepository

func (*ArtifactRepository) EXPECT added in v0.17.2

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

func (_mock *ArtifactRepository) Save(tx core.DB, t *models.Artifact) error

Save provides a mock function for the type ArtifactRepository

func (*ArtifactRepository) SaveBatch added in v0.17.2

func (_mock *ArtifactRepository) SaveBatch(tx core.DB, ts []models.Artifact) error

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

func (*ArtifactRepository) Upsert added in v0.17.2

func (_mock *ArtifactRepository) Upsert(t *[]*models.Artifact, conflictingColumns []clause.Column, updateOnly []string) error

Upsert provides a mock function for the type ArtifactRepository

type ArtifactRepository_Activate_Call added in v0.17.2

type ArtifactRepository_Activate_Call struct {
	*mock.Call
}

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 (*ArtifactRepository_Activate_Call) Run added in v0.17.2

func (*ArtifactRepository_Activate_Call) RunAndReturn added in v0.17.2

type ArtifactRepository_All_Call added in v0.17.2

type ArtifactRepository_All_Call struct {
	*mock.Call
}

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 (*ArtifactRepository_All_Call) Run added in v0.17.2

func (*ArtifactRepository_All_Call) RunAndReturn added in v0.17.2

type ArtifactRepository_Begin_Call added in v0.17.2

type ArtifactRepository_Begin_Call struct {
	*mock.Call
}

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 (*ArtifactRepository_Begin_Call) Run added in v0.17.2

func (*ArtifactRepository_Begin_Call) RunAndReturn added in v0.17.2

type ArtifactRepository_CreateBatch_Call added in v0.17.2

type ArtifactRepository_CreateBatch_Call struct {
	*mock.Call
}

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 (*ArtifactRepository_CreateBatch_Call) Run added in v0.17.2

func (*ArtifactRepository_CreateBatch_Call) RunAndReturn added in v0.17.2

type ArtifactRepository_Create_Call added in v0.17.2

type ArtifactRepository_Create_Call struct {
	*mock.Call
}

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 (*ArtifactRepository_Create_Call) Run added in v0.17.2

func (*ArtifactRepository_Create_Call) RunAndReturn added in v0.17.2

type ArtifactRepository_DeleteArtifact_Call added in v0.17.2

type ArtifactRepository_DeleteArtifact_Call struct {
	*mock.Call
}

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 (*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

type ArtifactRepository_DeleteBatch_Call struct {
	*mock.Call
}

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 (*ArtifactRepository_DeleteBatch_Call) Run added in v0.17.2

func (*ArtifactRepository_DeleteBatch_Call) RunAndReturn added in v0.17.2

type ArtifactRepository_Delete_Call added in v0.17.2

type ArtifactRepository_Delete_Call struct {
	*mock.Call
}

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 (*ArtifactRepository_Delete_Call) Run added in v0.17.2

func (*ArtifactRepository_Delete_Call) RunAndReturn added in v0.17.2

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

All is a helper method to define mock.On call

func (*ArtifactRepository_Expecter) Begin added in v0.17.2

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

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

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

type ArtifactRepository_GetByAssetIDAndAssetVersionName_Call struct {
	*mock.Call
}

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 (*ArtifactRepository_GetByAssetIDAndAssetVersionName_Call) Run added in v0.17.2

func (*ArtifactRepository_GetByAssetIDAndAssetVersionName_Call) RunAndReturn added in v0.17.2

type ArtifactRepository_GetDB_Call added in v0.17.2

type ArtifactRepository_GetDB_Call struct {
	*mock.Call
}

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 (*ArtifactRepository_GetDB_Call) Run added in v0.17.2

func (*ArtifactRepository_GetDB_Call) RunAndReturn added in v0.17.2

type ArtifactRepository_List_Call added in v0.17.2

type ArtifactRepository_List_Call struct {
	*mock.Call
}

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 (*ArtifactRepository_List_Call) Run added in v0.17.2

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

type ArtifactRepository_ReadArtifact_Call struct {
	*mock.Call
}

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 (*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

type ArtifactRepository_Read_Call struct {
	*mock.Call
}

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 (*ArtifactRepository_Read_Call) Run added in v0.17.2

func (*ArtifactRepository_Read_Call) RunAndReturn added in v0.17.2

type ArtifactRepository_SaveBatch_Call added in v0.17.2

type ArtifactRepository_SaveBatch_Call struct {
	*mock.Call
}

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 (*ArtifactRepository_SaveBatch_Call) Run added in v0.17.2

func (*ArtifactRepository_SaveBatch_Call) RunAndReturn added in v0.17.2

type ArtifactRepository_Save_Call added in v0.17.2

type ArtifactRepository_Save_Call struct {
	*mock.Call
}

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 (*ArtifactRepository_Save_Call) Run added in v0.17.2

func (*ArtifactRepository_Save_Call) RunAndReturn added in v0.17.2

type ArtifactRepository_Transaction_Call added in v0.17.2

type ArtifactRepository_Transaction_Call struct {
	*mock.Call
}

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 (*ArtifactRepository_Transaction_Call) Run added in v0.17.2

func (*ArtifactRepository_Transaction_Call) RunAndReturn added in v0.17.2

type ArtifactRepository_Upsert_Call added in v0.17.2

type ArtifactRepository_Upsert_Call struct {
	*mock.Call
}

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 (*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

type ArtifactRiskHistoryRepository struct {
	mock.Mock
}

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 (*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

UpdateRiskAggregation is a helper method to define mock.On call

  • assetRisk *models.ArtifactRiskHistory

type ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call added in v0.17.2

type ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call struct {
	*mock.Call
}

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 (*ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call) Run added in v0.17.2

func (*ArtifactRiskHistoryRepository_GetRiskHistoryByRelease_Call) RunAndReturn added in v0.17.2

type ArtifactRiskHistoryRepository_GetRiskHistory_Call added in v0.17.2

type ArtifactRiskHistoryRepository_GetRiskHistory_Call struct {
	*mock.Call
}

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 (*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

type ArtifactRiskHistoryRepository_UpdateRiskAggregation_Call added in v0.17.2

type ArtifactRiskHistoryRepository_UpdateRiskAggregation_Call struct {
	*mock.Call
}

ArtifactRiskHistoryRepository_UpdateRiskAggregation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRiskAggregation'

func (*ArtifactRiskHistoryRepository_UpdateRiskAggregation_Call) Return added in v0.17.2

func (*ArtifactRiskHistoryRepository_UpdateRiskAggregation_Call) Run added in v0.17.2

func (*ArtifactRiskHistoryRepository_UpdateRiskAggregation_Call) RunAndReturn added in v0.17.2

type ArtifactService added in v0.17.2

type ArtifactService struct {
	mock.Mock
}

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 (*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

type ArtifactService_DeleteArtifact_Call struct {
	*mock.Call
}

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 (*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

type ArtifactService_GetArtifactNamesByAssetIDAndAssetVersionName_Call struct {
	*mock.Call
}

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 (*ArtifactService_GetArtifactNamesByAssetIDAndAssetVersionName_Call) Run added in v0.17.2

func (*ArtifactService_GetArtifactNamesByAssetIDAndAssetVersionName_Call) RunAndReturn added in v0.17.2

type ArtifactService_SaveArtifact_Call added in v0.17.2

type ArtifactService_SaveArtifact_Call struct {
	*mock.Call
}

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 (*ArtifactService_SaveArtifact_Call) Run added in v0.17.2

func (*ArtifactService_SaveArtifact_Call) RunAndReturn added in v0.17.2

type AssetRepository

type AssetRepository struct {
	mock.Mock
}

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

func (_mock *AssetRepository) Activate(tx core.DB, id uuid.UUID) error

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

func (_mock *AssetRepository) Create(tx core.DB, t *models.Asset) error

Create provides a mock function for the type AssetRepository

func (*AssetRepository) CreateBatch

func (_mock *AssetRepository) CreateBatch(tx core.DB, ts []models.Asset) error

CreateBatch provides a mock function for the type AssetRepository

func (*AssetRepository) Delete

func (_mock *AssetRepository) Delete(tx core.DB, id uuid.UUID) error

Delete provides a mock function for the type AssetRepository

func (*AssetRepository) DeleteBatch added in v0.17.2

func (_mock *AssetRepository) DeleteBatch(tx core.DB, ids []models.Asset) error

DeleteBatch provides a mock function for the type AssetRepository

func (*AssetRepository) EXPECT

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

func (_mock *AssetRepository) GetAssetIDByBadgeSecret(badgeSecret uuid.UUID) (models.Asset, error)

GetAssetIDByBadgeSecret provides a mock function for the type AssetRepository

func (*AssetRepository) GetAssetIDBySlug

func (_mock *AssetRepository) GetAssetIDBySlug(projectID uuid.UUID, slug string) (uuid.UUID, error)

GetAssetIDBySlug provides a mock function for the type AssetRepository

func (*AssetRepository) GetByOrgID added in v0.17.2

func (_mock *AssetRepository) GetByOrgID(organizationID uuid.UUID) ([]models.Asset, error)

GetByOrgID provides a mock function for the type AssetRepository

func (*AssetRepository) GetByProjectID

func (_mock *AssetRepository) GetByProjectID(projectID uuid.UUID) ([]models.Asset, error)

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

func (_mock *AssetRepository) List(ids []uuid.UUID) ([]models.Asset, error)

List provides a mock function for the type AssetRepository

func (*AssetRepository) Read

func (_mock *AssetRepository) Read(id uuid.UUID) (models.Asset, error)

Read provides a mock function for the type AssetRepository

func (*AssetRepository) ReadBySlug

func (_mock *AssetRepository) ReadBySlug(projectID uuid.UUID, slug string) (models.Asset, error)

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

func (_mock *AssetRepository) ReadWithAssetVersions(assetID uuid.UUID) (models.Asset, error)

ReadWithAssetVersions provides a mock function for the type AssetRepository

func (*AssetRepository) Save

func (_mock *AssetRepository) Save(tx core.DB, t *models.Asset) error

Save provides a mock function for the type AssetRepository

func (*AssetRepository) SaveBatch

func (_mock *AssetRepository) SaveBatch(tx core.DB, ts []models.Asset) error

SaveBatch 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

func (*AssetRepository) Update

func (_mock *AssetRepository) Update(tx core.DB, asset *models.Asset) error

Update provides a mock function for the type AssetRepository

func (*AssetRepository) Upsert added in v0.17.2

func (_mock *AssetRepository) Upsert(t *[]*models.Asset, conflictingColumns []clause.Column, updateOnly []string) error

Upsert provides a mock function for the type AssetRepository

type AssetRepository_Activate_Call added in v0.5.15

type AssetRepository_Activate_Call struct {
	*mock.Call
}

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 (*AssetRepository_Activate_Call) Run added in v0.5.15

func (*AssetRepository_Activate_Call) RunAndReturn added in v0.5.15

type AssetRepository_All_Call added in v0.17.2

type AssetRepository_All_Call struct {
	*mock.Call
}

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 (*AssetRepository_All_Call) Run added in v0.17.2

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

type AssetRepository_Begin_Call struct {
	*mock.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 (*AssetRepository_Begin_Call) Run

func (*AssetRepository_Begin_Call) RunAndReturn

func (_c *AssetRepository_Begin_Call) RunAndReturn(run func() core.DB) *AssetRepository_Begin_Call

type AssetRepository_CreateBatch_Call

type AssetRepository_CreateBatch_Call struct {
	*mock.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 (*AssetRepository_CreateBatch_Call) Run

func (*AssetRepository_CreateBatch_Call) RunAndReturn

type AssetRepository_Create_Call

type AssetRepository_Create_Call struct {
	*mock.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 (*AssetRepository_Create_Call) Run

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

type AssetRepository_DeleteBatch_Call struct {
	*mock.Call
}

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 (*AssetRepository_DeleteBatch_Call) Run added in v0.17.2

func (*AssetRepository_DeleteBatch_Call) RunAndReturn added in v0.17.2

type AssetRepository_Delete_Call

type AssetRepository_Delete_Call struct {
	*mock.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 (*AssetRepository_Delete_Call) Run

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

All is a helper method to define mock.On call

func (*AssetRepository_Expecter) Begin

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

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

type AssetRepository_FindAssetByExternalProviderID_Call struct {
	*mock.Call
}

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 (*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

type AssetRepository_FindByName_Call struct {
	*mock.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 (*AssetRepository_FindByName_Call) Run

func (*AssetRepository_FindByName_Call) RunAndReturn

type AssetRepository_GetAllAssetsFromDB_Call added in v0.17.2

type AssetRepository_GetAllAssetsFromDB_Call struct {
	*mock.Call
}

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 (*AssetRepository_GetAllAssetsFromDB_Call) Run added in v0.17.2

func (*AssetRepository_GetAllAssetsFromDB_Call) RunAndReturn added in v0.17.2

type AssetRepository_GetAssetIDByBadgeSecret_Call added in v0.17.2

type AssetRepository_GetAssetIDByBadgeSecret_Call struct {
	*mock.Call
}

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 (*AssetRepository_GetAssetIDByBadgeSecret_Call) Run added in v0.17.2

func (*AssetRepository_GetAssetIDByBadgeSecret_Call) RunAndReturn added in v0.17.2

type AssetRepository_GetAssetIDBySlug_Call

type AssetRepository_GetAssetIDBySlug_Call struct {
	*mock.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 (*AssetRepository_GetAssetIDBySlug_Call) Run

func (*AssetRepository_GetAssetIDBySlug_Call) RunAndReturn

type AssetRepository_GetByOrgID_Call added in v0.17.2

type AssetRepository_GetByOrgID_Call struct {
	*mock.Call
}

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 (*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

type AssetRepository_GetByProjectID_Call struct {
	*mock.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 (*AssetRepository_GetByProjectID_Call) Run

func (*AssetRepository_GetByProjectID_Call) RunAndReturn

type AssetRepository_GetDB_Call

type AssetRepository_GetDB_Call struct {
	*mock.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 (*AssetRepository_GetDB_Call) Run

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

type AssetRepository_GetFQNByID_Call struct {
	*mock.Call
}

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 (*AssetRepository_GetFQNByID_Call) Run added in v0.17.2

func (*AssetRepository_GetFQNByID_Call) RunAndReturn added in v0.17.2

type AssetRepository_List_Call

type AssetRepository_List_Call struct {
	*mock.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 (*AssetRepository_List_Call) Run

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

type AssetRepository_ReadBySlugUnscoped_Call struct {
	*mock.Call
}

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 (*AssetRepository_ReadBySlugUnscoped_Call) Run added in v0.5.15

func (*AssetRepository_ReadBySlugUnscoped_Call) RunAndReturn added in v0.5.15

type AssetRepository_ReadBySlug_Call

type AssetRepository_ReadBySlug_Call struct {
	*mock.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 (*AssetRepository_ReadBySlug_Call) Run

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

type AssetRepository_ReadWithAssetVersions_Call struct {
	*mock.Call
}

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 (*AssetRepository_ReadWithAssetVersions_Call) Run added in v0.17.2

func (*AssetRepository_ReadWithAssetVersions_Call) RunAndReturn added in v0.17.2

type AssetRepository_Read_Call

type AssetRepository_Read_Call struct {
	*mock.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 (*AssetRepository_Read_Call) Run

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

type AssetRepository_SaveBatch_Call struct {
	*mock.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 (*AssetRepository_SaveBatch_Call) Run

func (*AssetRepository_SaveBatch_Call) RunAndReturn

type AssetRepository_Save_Call

type AssetRepository_Save_Call struct {
	*mock.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 (*AssetRepository_Save_Call) Run

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

type AssetRepository_Transaction_Call struct {
	*mock.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 (*AssetRepository_Transaction_Call) Run

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

type AssetRepository_Update_Call struct {
	*mock.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 (*AssetRepository_Update_Call) Run

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

type AssetRepository_Upsert_Call struct {
	*mock.Call
}

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 (*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

type AssetService struct {
	mock.Mock
}

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

func (_mock *AssetService) CreateAsset(asset models.Asset) (*models.Asset, error)

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

type AssetService_CreateAsset_Call struct {
	*mock.Call
}

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 (*AssetService_CreateAsset_Call) Run added in v0.17.2

func (*AssetService_CreateAsset_Call) RunAndReturn added in v0.17.2

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

type AssetService_GetCVSSBadgeSVG_Call struct {
	*mock.Call
}

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 (*AssetService_GetCVSSBadgeSVG_Call) Run added in v0.17.2

func (*AssetService_GetCVSSBadgeSVG_Call) RunAndReturn added in v0.17.2

type AssetService_UpdateAssetRequirements_Call added in v0.17.2

type AssetService_UpdateAssetRequirements_Call struct {
	*mock.Call
}

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 (*AssetService_UpdateAssetRequirements_Call) Run added in v0.17.2

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

type AssetVersionRepository struct {
	mock.Mock
}

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 (*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

type AssetVersionRepository_All_Call struct {
	*mock.Call
}

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 (*AssetVersionRepository_All_Call) Run added in v0.17.2

func (*AssetVersionRepository_All_Call) RunAndReturn added in v0.17.2

type AssetVersionRepository_Delete_Call added in v0.17.2

type AssetVersionRepository_Delete_Call struct {
	*mock.Call
}

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 (*AssetVersionRepository_Delete_Call) Run added in v0.17.2

func (*AssetVersionRepository_Delete_Call) RunAndReturn added in v0.17.2

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

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

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

type AssetVersionRepository_FindOrCreate_Call struct {
	*mock.Call
}

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 (*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

type AssetVersionRepository_GetAllAssetsVersionFromDBByAssetID_Call struct {
	*mock.Call
}

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 (*AssetVersionRepository_GetAllAssetsVersionFromDBByAssetID_Call) Run added in v0.17.2

func (*AssetVersionRepository_GetAllAssetsVersionFromDBByAssetID_Call) RunAndReturn added in v0.17.2

type AssetVersionRepository_GetDB_Call added in v0.17.2

type AssetVersionRepository_GetDB_Call struct {
	*mock.Call
}

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 (*AssetVersionRepository_GetDB_Call) Run added in v0.17.2

func (*AssetVersionRepository_GetDB_Call) RunAndReturn added in v0.17.2

type AssetVersionRepository_GetDefaultAssetVersion_Call added in v0.17.2

type AssetVersionRepository_GetDefaultAssetVersion_Call struct {
	*mock.Call
}

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 (*AssetVersionRepository_GetDefaultAssetVersion_Call) Run added in v0.17.2

func (*AssetVersionRepository_GetDefaultAssetVersion_Call) RunAndReturn added in v0.17.2

type AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call added in v0.17.2

type AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call struct {
	*mock.Call
}

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 (*AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call) Run added in v0.17.2

func (*AssetVersionRepository_GetDefaultAssetVersionsByProjectID_Call) RunAndReturn added in v0.17.2

type AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call added in v0.17.2

type AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call struct {
	*mock.Call
}

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 (*AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call) Run added in v0.17.2

func (*AssetVersionRepository_GetDefaultAssetVersionsByProjectIDs_Call) RunAndReturn added in v0.17.2

type AssetVersionRepository_ReadBySlug_Call added in v0.17.2

type AssetVersionRepository_ReadBySlug_Call struct {
	*mock.Call
}

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 (*AssetVersionRepository_ReadBySlug_Call) Run added in v0.17.2

func (*AssetVersionRepository_ReadBySlug_Call) RunAndReturn added in v0.17.2

type AssetVersionRepository_Read_Call added in v0.17.2

type AssetVersionRepository_Read_Call struct {
	*mock.Call
}

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 (*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

type AssetVersionRepository_Save_Call struct {
	*mock.Call
}

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 (*AssetVersionRepository_Save_Call) Run added in v0.17.2

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

type AssetVersionService struct {
	mock.Mock
}

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 (*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

type AssetVersionService_BuildOpenVeX_Call struct {
	*mock.Call
}

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 (*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

type AssetVersionService_BuildSBOM_Call struct {
	*mock.Call
}

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 (*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

type AssetVersionService_BuildVeX_Call struct {
	*mock.Call
}

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 (*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

type AssetVersionService_GetAssetVersionsByAssetID_Call struct {
	*mock.Call
}

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 (*AssetVersionService_GetAssetVersionsByAssetID_Call) Run added in v0.17.2

func (*AssetVersionService_GetAssetVersionsByAssetID_Call) RunAndReturn added in v0.17.2

type AssetVersionService_HandleFirstPartyVulnResult_Call added in v0.17.2

type AssetVersionService_HandleFirstPartyVulnResult_Call struct {
	*mock.Call
}

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 (*AssetVersionService_HandleFirstPartyVulnResult_Call) Run added in v0.17.2

func (*AssetVersionService_HandleFirstPartyVulnResult_Call) RunAndReturn added in v0.17.2

type AssetVersionService_HandleScanResult_Call added in v0.17.2

type AssetVersionService_HandleScanResult_Call struct {
	*mock.Call
}

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 (*AssetVersionService_HandleScanResult_Call) Run added in v0.17.2

func (*AssetVersionService_HandleScanResult_Call) RunAndReturn added in v0.17.2

type AssetVersionService_UpdateSBOM_Call added in v0.17.2

type AssetVersionService_UpdateSBOM_Call struct {
	*mock.Call
}

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 (*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

type AttestationRepository struct {
	mock.Mock
}

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 (*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

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

type AttestationRepository_Activate_Call struct {
	*mock.Call
}

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 (*AttestationRepository_Activate_Call) Run added in v0.17.2

func (*AttestationRepository_Activate_Call) RunAndReturn added in v0.17.2

type AttestationRepository_All_Call added in v0.17.2

type AttestationRepository_All_Call struct {
	*mock.Call
}

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 (*AttestationRepository_All_Call) Run added in v0.17.2

func (*AttestationRepository_All_Call) RunAndReturn added in v0.17.2

type AttestationRepository_Begin_Call added in v0.17.2

type AttestationRepository_Begin_Call struct {
	*mock.Call
}

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 (*AttestationRepository_Begin_Call) Run added in v0.17.2

func (*AttestationRepository_Begin_Call) RunAndReturn added in v0.17.2

type AttestationRepository_CreateBatch_Call added in v0.17.2

type AttestationRepository_CreateBatch_Call struct {
	*mock.Call
}

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 (*AttestationRepository_CreateBatch_Call) Run added in v0.17.2

func (*AttestationRepository_CreateBatch_Call) RunAndReturn added in v0.17.2

type AttestationRepository_Create_Call added in v0.17.2

type AttestationRepository_Create_Call struct {
	*mock.Call
}

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 (*AttestationRepository_Create_Call) Run added in v0.17.2

func (*AttestationRepository_Create_Call) RunAndReturn added in v0.17.2

type AttestationRepository_DeleteBatch_Call added in v0.17.2

type AttestationRepository_DeleteBatch_Call struct {
	*mock.Call
}

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 (*AttestationRepository_DeleteBatch_Call) Run added in v0.17.2

func (*AttestationRepository_DeleteBatch_Call) RunAndReturn added in v0.17.2

type AttestationRepository_Delete_Call added in v0.17.2

type AttestationRepository_Delete_Call struct {
	*mock.Call
}

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 (*AttestationRepository_Delete_Call) Run added in v0.17.2

func (*AttestationRepository_Delete_Call) RunAndReturn added in v0.17.2

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

All is a helper method to define mock.On call

func (*AttestationRepository_Expecter) Begin added in v0.17.2

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

GetDB is a helper method to define mock.On call

  • tx core.DB

func (*AttestationRepository_Expecter) List added in v0.17.2

List is a helper method to define mock.On call

  • ids []string

func (*AttestationRepository_Expecter) Read added in v0.17.2

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

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

type AttestationRepository_GetByAssetID_Call struct {
	*mock.Call
}

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 (*AttestationRepository_GetByAssetID_Call) Run added in v0.17.2

func (*AttestationRepository_GetByAssetID_Call) RunAndReturn added in v0.17.2

type AttestationRepository_GetByAssetVersionAndAssetID_Call added in v0.17.2

type AttestationRepository_GetByAssetVersionAndAssetID_Call struct {
	*mock.Call
}

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 (*AttestationRepository_GetByAssetVersionAndAssetID_Call) Run added in v0.17.2

func (*AttestationRepository_GetByAssetVersionAndAssetID_Call) RunAndReturn added in v0.17.2

type AttestationRepository_GetDB_Call added in v0.17.2

type AttestationRepository_GetDB_Call struct {
	*mock.Call
}

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 (*AttestationRepository_GetDB_Call) Run added in v0.17.2

func (*AttestationRepository_GetDB_Call) RunAndReturn added in v0.17.2

type AttestationRepository_List_Call added in v0.17.2

type AttestationRepository_List_Call struct {
	*mock.Call
}

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 (*AttestationRepository_List_Call) Run added in v0.17.2

func (*AttestationRepository_List_Call) RunAndReturn added in v0.17.2

type AttestationRepository_Read_Call added in v0.17.2

type AttestationRepository_Read_Call struct {
	*mock.Call
}

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 (*AttestationRepository_Read_Call) Run added in v0.17.2

func (*AttestationRepository_Read_Call) RunAndReturn added in v0.17.2

type AttestationRepository_SaveBatch_Call added in v0.17.2

type AttestationRepository_SaveBatch_Call struct {
	*mock.Call
}

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 (*AttestationRepository_SaveBatch_Call) Run added in v0.17.2

func (*AttestationRepository_SaveBatch_Call) RunAndReturn added in v0.17.2

type AttestationRepository_Save_Call added in v0.17.2

type AttestationRepository_Save_Call struct {
	*mock.Call
}

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 (*AttestationRepository_Save_Call) Run added in v0.17.2

func (*AttestationRepository_Save_Call) RunAndReturn added in v0.17.2

type AttestationRepository_Transaction_Call added in v0.17.2

type AttestationRepository_Transaction_Call struct {
	*mock.Call
}

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 (*AttestationRepository_Transaction_Call) Run added in v0.17.2

func (*AttestationRepository_Transaction_Call) RunAndReturn added in v0.17.2

type AttestationRepository_Upsert_Call added in v0.17.2

type AttestationRepository_Upsert_Call struct {
	*mock.Call
}

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 (*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

type AuthSession struct {
	mock.Mock
}

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

GetScopes is a helper method to define mock.On call

func (*AuthSession_Expecter) GetUserID added in v0.17.2

GetUserID is a helper method to define mock.On call

type AuthSession_GetScopes_Call added in v0.17.2

type AuthSession_GetScopes_Call struct {
	*mock.Call
}

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 (*AuthSession_GetScopes_Call) Run added in v0.17.2

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

type AuthSession_GetUserID_Call struct {
	*mock.Call
}

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 (*AuthSession_GetUserID_Call) Run added in v0.17.2

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

type Comparer struct {
	mock.Mock
}

Comparer is an autogenerated mock type for the comparer type

func NewComparer added in v0.17.2

func NewComparer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Comparer

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

func (*Comparer) GetVulns added in v0.17.2

func (_mock *Comparer) GetVulns(purl string, notASemverVersion string, componentType string) ([]models.VulnInPackage, error)

GetVulns provides a mock function for the type Comparer

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

type Comparer_GetVulns_Call struct {
	*mock.Call
}

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

type ComponentProjectRepository struct {
	mock.Mock
}

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

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

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 (*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

List provides a mock function for the type ComponentProjectRepository

func (*ComponentProjectRepository) Read added in v0.17.2

Read provides a mock function for the type ComponentProjectRepository

func (*ComponentProjectRepository) Save added in v0.17.2

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

type ComponentProjectRepository_Activate_Call struct {
	*mock.Call
}

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 (*ComponentProjectRepository_Activate_Call) Run added in v0.17.2

func (*ComponentProjectRepository_Activate_Call) RunAndReturn added in v0.17.2

type ComponentProjectRepository_All_Call added in v0.17.2

type ComponentProjectRepository_All_Call struct {
	*mock.Call
}

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 (*ComponentProjectRepository_All_Call) Run added in v0.17.2

func (*ComponentProjectRepository_All_Call) RunAndReturn added in v0.17.2

type ComponentProjectRepository_Begin_Call added in v0.17.2

type ComponentProjectRepository_Begin_Call struct {
	*mock.Call
}

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 (*ComponentProjectRepository_Begin_Call) Run added in v0.17.2

func (*ComponentProjectRepository_Begin_Call) RunAndReturn added in v0.17.2

type ComponentProjectRepository_CreateBatch_Call added in v0.17.2

type ComponentProjectRepository_CreateBatch_Call struct {
	*mock.Call
}

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 (*ComponentProjectRepository_CreateBatch_Call) Run added in v0.17.2

func (*ComponentProjectRepository_CreateBatch_Call) RunAndReturn added in v0.17.2

type ComponentProjectRepository_Create_Call added in v0.17.2

type ComponentProjectRepository_Create_Call struct {
	*mock.Call
}

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 (*ComponentProjectRepository_Create_Call) Run added in v0.17.2

func (*ComponentProjectRepository_Create_Call) RunAndReturn added in v0.17.2

type ComponentProjectRepository_DeleteBatch_Call added in v0.17.2

type ComponentProjectRepository_DeleteBatch_Call struct {
	*mock.Call
}

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 (*ComponentProjectRepository_DeleteBatch_Call) Run added in v0.17.2

func (*ComponentProjectRepository_DeleteBatch_Call) RunAndReturn added in v0.17.2

type ComponentProjectRepository_Delete_Call added in v0.17.2

type ComponentProjectRepository_Delete_Call struct {
	*mock.Call
}

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 (*ComponentProjectRepository_Delete_Call) Run added in v0.17.2

func (*ComponentProjectRepository_Delete_Call) RunAndReturn added in v0.17.2

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

All is a helper method to define mock.On call

func (*ComponentProjectRepository_Expecter) Begin added in v0.17.2

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

GetDB is a helper method to define mock.On call

  • tx core.DB

func (*ComponentProjectRepository_Expecter) List added in v0.17.2

List is a helper method to define mock.On call

  • ids []string

func (*ComponentProjectRepository_Expecter) Read added in v0.17.2

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

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

type ComponentProjectRepository_GetDB_Call struct {
	*mock.Call
}

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 (*ComponentProjectRepository_GetDB_Call) Run added in v0.17.2

func (*ComponentProjectRepository_GetDB_Call) RunAndReturn added in v0.17.2

type ComponentProjectRepository_List_Call added in v0.17.2

type ComponentProjectRepository_List_Call struct {
	*mock.Call
}

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 (*ComponentProjectRepository_List_Call) Run added in v0.17.2

func (*ComponentProjectRepository_List_Call) RunAndReturn added in v0.17.2

type ComponentProjectRepository_Read_Call added in v0.17.2

type ComponentProjectRepository_Read_Call struct {
	*mock.Call
}

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 (*ComponentProjectRepository_Read_Call) Run added in v0.17.2

func (*ComponentProjectRepository_Read_Call) RunAndReturn added in v0.17.2

type ComponentProjectRepository_SaveBatch_Call added in v0.17.2

type ComponentProjectRepository_SaveBatch_Call struct {
	*mock.Call
}

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 (*ComponentProjectRepository_SaveBatch_Call) Run added in v0.17.2

func (*ComponentProjectRepository_SaveBatch_Call) RunAndReturn added in v0.17.2

type ComponentProjectRepository_Save_Call added in v0.17.2

type ComponentProjectRepository_Save_Call struct {
	*mock.Call
}

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 (*ComponentProjectRepository_Save_Call) Run added in v0.17.2

func (*ComponentProjectRepository_Save_Call) RunAndReturn added in v0.17.2

type ComponentProjectRepository_Transaction_Call added in v0.17.2

type ComponentProjectRepository_Transaction_Call struct {
	*mock.Call
}

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 (*ComponentProjectRepository_Transaction_Call) Run added in v0.17.2

func (*ComponentProjectRepository_Transaction_Call) RunAndReturn added in v0.17.2

type ComponentProjectRepository_Upsert_Call added in v0.17.2

type ComponentProjectRepository_Upsert_Call struct {
	*mock.Call
}

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 (*ComponentProjectRepository_Upsert_Call) Run added in v0.17.2

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

type ComponentRepository struct {
	mock.Mock
}

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

func (_mock *ComponentRepository) Create(tx core.DB, t *models.Component) error

Create provides a mock function for the type ComponentRepository

func (*ComponentRepository) CreateBatch added in v0.17.2

func (_mock *ComponentRepository) CreateBatch(tx core.DB, ts []models.Component) error

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

func (_mock *ComponentRepository) DeleteBatch(tx core.DB, ids []models.Component) error

DeleteBatch provides a mock function for the type ComponentRepository

func (*ComponentRepository) EXPECT added in v0.17.2

func (*ComponentRepository) FindByPurl added in v0.17.2

func (_mock *ComponentRepository) FindByPurl(tx core.DB, purl string) (models.Component, error)

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

func (_mock *ComponentRepository) Save(tx core.DB, t *models.Component) error

Save provides a mock function for the type ComponentRepository

func (*ComponentRepository) SaveBatch added in v0.17.2

func (_mock *ComponentRepository) SaveBatch(tx core.DB, components []models.Component) error

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

func (*ComponentRepository) Upsert added in v0.17.2

func (_mock *ComponentRepository) Upsert(t *[]*models.Component, conflictingColumns []clause.Column, updateOnly []string) error

Upsert provides a mock function for the type ComponentRepository

type ComponentRepository_Activate_Call added in v0.17.2

type ComponentRepository_Activate_Call struct {
	*mock.Call
}

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 (*ComponentRepository_Activate_Call) Run added in v0.17.2

func (*ComponentRepository_Activate_Call) RunAndReturn added in v0.17.2

type ComponentRepository_All_Call added in v0.17.2

type ComponentRepository_All_Call struct {
	*mock.Call
}

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 (*ComponentRepository_All_Call) Run added in v0.17.2

func (*ComponentRepository_All_Call) RunAndReturn added in v0.17.2

type ComponentRepository_Begin_Call added in v0.17.2

type ComponentRepository_Begin_Call struct {
	*mock.Call
}

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 (*ComponentRepository_Begin_Call) Run added in v0.17.2

func (*ComponentRepository_Begin_Call) RunAndReturn added in v0.17.2

type ComponentRepository_CreateBatch_Call added in v0.17.2

type ComponentRepository_CreateBatch_Call struct {
	*mock.Call
}

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 (*ComponentRepository_CreateBatch_Call) Run added in v0.17.2

func (*ComponentRepository_CreateBatch_Call) RunAndReturn added in v0.17.2

type ComponentRepository_Create_Call added in v0.17.2

type ComponentRepository_Create_Call struct {
	*mock.Call
}

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 (*ComponentRepository_Create_Call) Run added in v0.17.2

func (*ComponentRepository_Create_Call) RunAndReturn added in v0.17.2

type ComponentRepository_DeleteBatch_Call added in v0.17.2

type ComponentRepository_DeleteBatch_Call struct {
	*mock.Call
}

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 (*ComponentRepository_DeleteBatch_Call) Run added in v0.17.2

func (*ComponentRepository_DeleteBatch_Call) RunAndReturn added in v0.17.2

type ComponentRepository_Delete_Call added in v0.17.2

type ComponentRepository_Delete_Call struct {
	*mock.Call
}

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 (*ComponentRepository_Delete_Call) Run added in v0.17.2

func (*ComponentRepository_Delete_Call) RunAndReturn added in v0.17.2

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

All is a helper method to define mock.On call

func (*ComponentRepository_Expecter) Begin added in v0.17.2

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

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

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

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

type ComponentRepository_FindByPurl_Call struct {
	*mock.Call
}

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 (*ComponentRepository_FindByPurl_Call) Run added in v0.17.2

func (*ComponentRepository_FindByPurl_Call) RunAndReturn added in v0.17.2

type ComponentRepository_GetDB_Call added in v0.17.2

type ComponentRepository_GetDB_Call struct {
	*mock.Call
}

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 (*ComponentRepository_GetDB_Call) Run added in v0.17.2

func (*ComponentRepository_GetDB_Call) RunAndReturn added in v0.17.2

type ComponentRepository_GetLicenseDistribution_Call added in v0.17.2

type ComponentRepository_GetLicenseDistribution_Call struct {
	*mock.Call
}

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 (*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

func (_c *ComponentRepository_GetLicenseDistribution_Call) RunAndReturn(run func(tx core.DB, assetVersionName string, assetID uuid.UUID, artifactName *string) (map[string]int, error)) *ComponentRepository_GetLicenseDistribution_Call

type ComponentRepository_HandleStateDiff_Call added in v0.17.2

type ComponentRepository_HandleStateDiff_Call struct {
	*mock.Call
}

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 (*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

type ComponentRepository_List_Call struct {
	*mock.Call
}

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 (*ComponentRepository_List_Call) Run added in v0.17.2

func (*ComponentRepository_List_Call) RunAndReturn added in v0.17.2

type ComponentRepository_LoadComponentsWithProject_Call added in v0.17.2

type ComponentRepository_LoadComponentsWithProject_Call struct {
	*mock.Call
}

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 (*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

type ComponentRepository_LoadComponents_Call struct {
	*mock.Call
}

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 (*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

type ComponentRepository_LoadPathToComponent_Call struct {
	*mock.Call
}

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 (*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

type ComponentRepository_Read_Call struct {
	*mock.Call
}

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 (*ComponentRepository_Read_Call) Run added in v0.17.2

func (*ComponentRepository_Read_Call) RunAndReturn added in v0.17.2

type ComponentRepository_SaveBatch_Call added in v0.17.2

type ComponentRepository_SaveBatch_Call struct {
	*mock.Call
}

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 (*ComponentRepository_SaveBatch_Call) Run added in v0.17.2

func (*ComponentRepository_SaveBatch_Call) RunAndReturn added in v0.17.2

type ComponentRepository_Save_Call added in v0.17.2

type ComponentRepository_Save_Call struct {
	*mock.Call
}

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 (*ComponentRepository_Save_Call) Run added in v0.17.2

func (*ComponentRepository_Save_Call) RunAndReturn added in v0.17.2

type ComponentRepository_Transaction_Call added in v0.17.2

type ComponentRepository_Transaction_Call struct {
	*mock.Call
}

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 (*ComponentRepository_Transaction_Call) Run added in v0.17.2

func (*ComponentRepository_Transaction_Call) RunAndReturn added in v0.17.2

type ComponentRepository_Upsert_Call added in v0.17.2

type ComponentRepository_Upsert_Call struct {
	*mock.Call
}

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 (*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

type ComponentService struct {
	mock.Mock
}

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 (*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

func (_mock *ComponentService) GetLicense(component models.Component) (models.Component, error)

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

type ComponentService_GetAndSaveLicenseInformation_Call struct {
	*mock.Call
}

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 (*ComponentService_GetAndSaveLicenseInformation_Call) Run added in v0.17.2

func (*ComponentService_GetAndSaveLicenseInformation_Call) RunAndReturn added in v0.17.2

type ComponentService_GetLicense_Call added in v0.17.2

type ComponentService_GetLicense_Call struct {
	*mock.Call
}

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 (*ComponentService_GetLicense_Call) Run added in v0.17.2

func (*ComponentService_GetLicense_Call) RunAndReturn added in v0.17.2

type ComponentService_RefreshComponentProjectInformation_Call added in v0.17.2

type ComponentService_RefreshComponentProjectInformation_Call struct {
	*mock.Call
}

ComponentService_RefreshComponentProjectInformation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RefreshComponentProjectInformation'

func (*ComponentService_RefreshComponentProjectInformation_Call) Return added in v0.17.2

func (*ComponentService_RefreshComponentProjectInformation_Call) Run added in v0.17.2

func (*ComponentService_RefreshComponentProjectInformation_Call) RunAndReturn added in v0.17.2

type ConfigRepository added in v0.17.2

type ConfigRepository struct {
	mock.Mock
}

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 (*ConfigRepository) GetDB added in v0.17.2

func (_mock *ConfigRepository) GetDB(tx core.DB) core.DB

GetDB provides a mock function for the type ConfigRepository

func (*ConfigRepository) Save added in v0.17.2

func (_mock *ConfigRepository) Save(tx core.DB, config *models.Config) error

Save provides a mock function for the type ConfigRepository

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

type ConfigRepository_GetDB_Call struct {
	*mock.Call
}

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 (*ConfigRepository_GetDB_Call) Run added in v0.17.2

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

type ConfigRepository_Save_Call struct {
	*mock.Call
}

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 (*ConfigRepository_Save_Call) Run added in v0.17.2

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

type ConfigService struct {
	mock.Mock
}

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

type ConfigService_GetJSONConfig_Call struct {
	*mock.Call
}

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 (*ConfigService_GetJSONConfig_Call) Run added in v0.17.2

func (*ConfigService_GetJSONConfig_Call) RunAndReturn added in v0.17.2

type ConfigService_SetJSONConfig_Call added in v0.17.2

type ConfigService_SetJSONConfig_Call struct {
	*mock.Call
}

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 (*ConfigService_SetJSONConfig_Call) Run added in v0.17.2

func (*ConfigService_SetJSONConfig_Call) RunAndReturn added in v0.17.2

type Context added in v0.17.2

type Context struct {
	mock.Mock
}

Context is an autogenerated mock type for the Context type

func NewContext added in v0.17.2

func NewContext(t interface {
	mock.TestingT
	Cleanup(func())
}) *Context

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

func (_mock *Context) Attachment(file string, name string) error

Attachment provides a mock function for the type Context

func (*Context) Bind added in v0.17.2

func (_mock *Context) Bind(i interface{}) error

Bind provides a mock function for the type Context

func (*Context) Blob added in v0.17.2

func (_mock *Context) Blob(code int, contentType string, b []byte) error

Blob provides a mock function for the type Context

func (*Context) Cookie added in v0.17.2

func (_mock *Context) Cookie(name string) (*http.Cookie, error)

Cookie provides a mock function for the type Context

func (*Context) Cookies added in v0.17.2

func (_mock *Context) Cookies() []*http.Cookie

Cookies 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) Error added in v0.17.2

func (_mock *Context) Error(err error)

Error provides a mock function for the type Context

func (*Context) File added in v0.17.2

func (_mock *Context) File(file string) error

File 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

func (_mock *Context) FormParams() (url.Values, error)

FormParams provides a mock function for the type Context

func (*Context) FormValue added in v0.17.2

func (_mock *Context) FormValue(name string) string

FormValue provides a mock function for the type Context

func (*Context) Get added in v0.17.2

func (_mock *Context) Get(key string) interface{}

Get provides a mock function for the type Context

func (*Context) HTML added in v0.17.2

func (_mock *Context) HTML(code int, html string) error

HTML provides a mock function for the type Context

func (*Context) HTMLBlob added in v0.17.2

func (_mock *Context) HTMLBlob(code int, b []byte) error

HTMLBlob 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) Inline added in v0.17.2

func (_mock *Context) Inline(file string, name string) error

Inline provides a mock function for the type Context

func (*Context) IsTLS added in v0.17.2

func (_mock *Context) IsTLS() bool

IsTLS provides a mock function for the type Context

func (*Context) IsWebSocket added in v0.17.2

func (_mock *Context) IsWebSocket() bool

IsWebSocket provides a mock function for the type Context

func (*Context) JSON added in v0.17.2

func (_mock *Context) JSON(code int, i interface{}) error

JSON provides a mock function for the type Context

func (*Context) JSONBlob added in v0.17.2

func (_mock *Context) JSONBlob(code int, b []byte) error

JSONBlob provides a mock function for the type Context

func (*Context) JSONP added in v0.17.2

func (_mock *Context) JSONP(code int, callback string, i interface{}) error

JSONP provides a mock function for the type Context

func (*Context) JSONPBlob added in v0.17.2

func (_mock *Context) JSONPBlob(code int, callback string, b []byte) error

JSONPBlob provides a mock function for the type Context

func (*Context) JSONPretty added in v0.17.2

func (_mock *Context) JSONPretty(code int, i interface{}, indent string) error

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

func (_mock *Context) MultipartForm() (*multipart.Form, error)

MultipartForm provides a mock function for the type Context

func (*Context) NoContent added in v0.17.2

func (_mock *Context) NoContent(code int) error

NoContent provides a mock function for the type Context

func (*Context) Param added in v0.17.2

func (_mock *Context) Param(name string) string

Param provides a mock function for the type Context

func (*Context) ParamNames added in v0.17.2

func (_mock *Context) ParamNames() []string

ParamNames provides a mock function for the type Context

func (*Context) ParamValues added in v0.17.2

func (_mock *Context) ParamValues() []string

ParamValues provides a mock function for the type Context

func (*Context) Path added in v0.17.2

func (_mock *Context) Path() string

Path provides a mock function for the type Context

func (*Context) QueryParam added in v0.17.2

func (_mock *Context) QueryParam(name string) string

QueryParam provides a mock function for the type Context

func (*Context) QueryParams added in v0.17.2

func (_mock *Context) QueryParams() url.Values

QueryParams provides a mock function for the type Context

func (*Context) QueryString added in v0.17.2

func (_mock *Context) QueryString() string

QueryString provides a mock function for the type Context

func (*Context) RealIP added in v0.17.2

func (_mock *Context) RealIP() string

RealIP provides a mock function for the type Context

func (*Context) Redirect added in v0.17.2

func (_mock *Context) Redirect(code int, url1 string) error

Redirect provides a mock function for the type Context

func (*Context) Render added in v0.17.2

func (_mock *Context) Render(code int, name string, data interface{}) error

Render provides a mock function for the type Context

func (*Context) Request added in v0.17.2

func (_mock *Context) Request() *http.Request

Request 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) Scheme added in v0.17.2

func (_mock *Context) Scheme() string

Scheme provides a mock function for the type Context

func (*Context) Set added in v0.17.2

func (_mock *Context) Set(key string, val interface{})

Set provides a mock function for the type Context

func (*Context) SetCookie added in v0.17.2

func (_mock *Context) SetCookie(cookie *http.Cookie)

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

func (_mock *Context) SetParamNames(names ...string)

SetParamNames provides a mock function for the type Context

func (*Context) SetParamValues added in v0.17.2

func (_mock *Context) SetParamValues(values ...string)

SetParamValues provides a mock function for the type Context

func (*Context) SetPath added in v0.17.2

func (_mock *Context) SetPath(p string)

SetPath provides a mock function for the type Context

func (*Context) SetRequest added in v0.17.2

func (_mock *Context) SetRequest(r *http.Request)

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

func (*Context) Stream added in v0.17.2

func (_mock *Context) Stream(code int, contentType string, r io.Reader) error

Stream provides a mock function for the type Context

func (*Context) String added in v0.17.2

func (_mock *Context) String(code int, s string) error

String provides a mock function for the type Context

func (*Context) Validate added in v0.17.2

func (_mock *Context) Validate(i interface{}) error

Validate provides a mock function for the type Context

func (*Context) XML added in v0.17.2

func (_mock *Context) XML(code int, i interface{}) error

XML provides a mock function for the type Context

func (*Context) XMLBlob added in v0.17.2

func (_mock *Context) XMLBlob(code int, b []byte) error

XMLBlob provides a mock function for the type Context

func (*Context) XMLPretty added in v0.17.2

func (_mock *Context) XMLPretty(code int, i interface{}, indent string) error

XMLPretty provides a mock function for the type Context

type Context_Attachment_Call added in v0.17.2

type Context_Attachment_Call struct {
	*mock.Call
}

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 (*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

type Context_Bind_Call struct {
	*mock.Call
}

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

type Context_Blob_Call struct {
	*mock.Call
}

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 struct {
	*mock.Call
}

Context_Cookie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cookie'

func (_c *Context_Cookie_Call) Return(cookie *http.Cookie, err error) *Context_Cookie_Call
func (_c *Context_Cookie_Call) Run(run func(name string)) *Context_Cookie_Call
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

type Context_Cookies_Call struct {
	*mock.Call
}

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

type Context_Echo_Call struct {
	*mock.Call
}

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

type Context_Error_Call struct {
	*mock.Call
}

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

type Context_File_Call struct {
	*mock.Call
}

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

type Context_FormFile_Call struct {
	*mock.Call
}

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 (*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

type Context_FormParams_Call struct {
	*mock.Call
}

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 (*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

type Context_FormValue_Call struct {
	*mock.Call
}

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 (*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

type Context_Get_Call struct {
	*mock.Call
}

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

type Context_HTMLBlob_Call struct {
	*mock.Call
}

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 (*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

type Context_HTML_Call struct {
	*mock.Call
}

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

type Context_Handler_Call struct {
	*mock.Call
}

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

type Context_Inline_Call struct {
	*mock.Call
}

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 (*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

type Context_IsTLS_Call struct {
	*mock.Call
}

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 (*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

type Context_IsWebSocket_Call struct {
	*mock.Call
}

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 (*Context_IsWebSocket_Call) Run added in v0.17.2

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

type Context_JSONBlob_Call struct {
	*mock.Call
}

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 (*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

type Context_JSONPBlob_Call struct {
	*mock.Call
}

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 (*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

type Context_JSONP_Call struct {
	*mock.Call
}

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

type Context_JSONPretty_Call struct {
	*mock.Call
}

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 (*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

type Context_JSON_Call struct {
	*mock.Call
}

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

type Context_Logger_Call struct {
	*mock.Call
}

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

type Context_MultipartForm_Call struct {
	*mock.Call
}

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 (*Context_MultipartForm_Call) Run added in v0.17.2

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

type Context_NoContent_Call struct {
	*mock.Call
}

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 (*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

type Context_ParamNames_Call struct {
	*mock.Call
}

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 (*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

type Context_ParamValues_Call struct {
	*mock.Call
}

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 (*Context_ParamValues_Call) Run added in v0.17.2

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

type Context_Param_Call struct {
	*mock.Call
}

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 (*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

type Context_Path_Call struct {
	*mock.Call
}

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 (*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

type Context_QueryParam_Call struct {
	*mock.Call
}

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 (*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

type Context_QueryParams_Call struct {
	*mock.Call
}

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 (*Context_QueryParams_Call) Run added in v0.17.2

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

type Context_QueryString_Call struct {
	*mock.Call
}

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 (*Context_QueryString_Call) Run added in v0.17.2

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

type Context_RealIP_Call struct {
	*mock.Call
}

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 (*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

type Context_Redirect_Call struct {
	*mock.Call
}

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 (*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

type Context_Render_Call struct {
	*mock.Call
}

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 (*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

type Context_Request_Call struct {
	*mock.Call
}

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

type Context_Reset_Call struct {
	*mock.Call
}

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 (*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

type Context_Response_Call struct {
	*mock.Call
}

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

type Context_Scheme_Call struct {
	*mock.Call
}

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 (*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

type Context_SetCookie_Call struct {
	*mock.Call
}

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 (*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

type Context_SetHandler_Call struct {
	*mock.Call
}

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 (*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

type Context_SetLogger_Call struct {
	*mock.Call
}

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 (*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

type Context_SetParamNames_Call struct {
	*mock.Call
}

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 (*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

type Context_SetParamValues_Call struct {
	*mock.Call
}

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 (*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

type Context_SetPath_Call struct {
	*mock.Call
}

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 (*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

type Context_SetRequest_Call struct {
	*mock.Call
}

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 (*Context_SetRequest_Call) Run added in v0.17.2

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

type Context_SetResponse_Call struct {
	*mock.Call
}

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 (*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

type Context_Set_Call struct {
	*mock.Call
}

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

type Context_Stream_Call struct {
	*mock.Call
}

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 (*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

type Context_String_Call struct {
	*mock.Call
}

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 (*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

type Context_Validate_Call struct {
	*mock.Call
}

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 (*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

type Context_XMLBlob_Call struct {
	*mock.Call
}

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 (*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

type Context_XMLPretty_Call struct {
	*mock.Call
}

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 (*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

type Context_XML_Call struct {
	*mock.Call
}

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

type CveRepository struct {
	mock.Mock
}

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

func (_mock *CveRepository) Create(tx core.DB, t *models.CVE) error

Create provides a mock function for the type CveRepository

func (*CveRepository) CreateBatch added in v0.17.2

func (_mock *CveRepository) CreateBatch(tx core.DB, ts []models.CVE) error

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

func (_mock *CveRepository) DeleteBatch(tx core.DB, ids []models.CVE) error

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

func (_mock *CveRepository) FindCVE(tx core.DB, id string) (models.CVE, error)

FindCVE provides a mock function for the type CveRepository

func (*CveRepository) FindCVEs added in v0.17.2

func (_mock *CveRepository) FindCVEs(tx core.DB, ids []string) ([]models.CVE, error)

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

func (_mock *CveRepository) Save(tx core.DB, cve *models.CVE) error

Save provides a mock function for the type CveRepository

func (*CveRepository) SaveBatch added in v0.17.2

func (_mock *CveRepository) SaveBatch(tx core.DB, ts []models.CVE) error

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

func (*CveRepository) Upsert added in v0.17.2

func (_mock *CveRepository) Upsert(t *[]*models.CVE, conflictingColumns []clause.Column, updateOnly []string) error

Upsert provides a mock function for the type CveRepository

type CveRepository_Activate_Call added in v0.17.2

type CveRepository_Activate_Call struct {
	*mock.Call
}

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 (*CveRepository_Activate_Call) Run added in v0.17.2

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

type CveRepository_All_Call struct {
	*mock.Call
}

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 (*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

type CveRepository_Begin_Call struct {
	*mock.Call
}

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 (*CveRepository_Begin_Call) Run added in v0.17.2

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

type CveRepository_CreateBatch_Call struct {
	*mock.Call
}

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 (*CveRepository_CreateBatch_Call) Run added in v0.17.2

func (*CveRepository_CreateBatch_Call) RunAndReturn added in v0.17.2

type CveRepository_Create_Call added in v0.17.2

type CveRepository_Create_Call struct {
	*mock.Call
}

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 (*CveRepository_Create_Call) Run added in v0.17.2

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

type CveRepository_DeleteBatch_Call struct {
	*mock.Call
}

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 (*CveRepository_DeleteBatch_Call) Run added in v0.17.2

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

type CveRepository_Delete_Call struct {
	*mock.Call
}

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 (*CveRepository_Delete_Call) Run added in v0.17.2

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

All is a helper method to define mock.On call

func (*CveRepository_Expecter) Begin added in v0.17.2

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

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

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

type CveRepository_FindAllListPaged_Call struct {
	*mock.Call
}

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 (*CveRepository_FindAllListPaged_Call) Run added in v0.17.2

func (*CveRepository_FindAllListPaged_Call) RunAndReturn added in v0.17.2

type CveRepository_FindByID_Call added in v0.17.2

type CveRepository_FindByID_Call struct {
	*mock.Call
}

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 (*CveRepository_FindByID_Call) Run added in v0.17.2

func (*CveRepository_FindByID_Call) RunAndReturn added in v0.17.2

type CveRepository_FindCVE_Call added in v0.17.2

type CveRepository_FindCVE_Call struct {
	*mock.Call
}

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 (*CveRepository_FindCVE_Call) Run added in v0.17.2

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

type CveRepository_FindCVEs_Call struct {
	*mock.Call
}

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 (*CveRepository_FindCVEs_Call) Run added in v0.17.2

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

type CveRepository_GetAllCVEsID_Call struct {
	*mock.Call
}

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 (*CveRepository_GetAllCVEsID_Call) Run added in v0.17.2

func (*CveRepository_GetAllCVEsID_Call) RunAndReturn added in v0.17.2

type CveRepository_GetDB_Call added in v0.17.2

type CveRepository_GetDB_Call struct {
	*mock.Call
}

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 (*CveRepository_GetDB_Call) Run added in v0.17.2

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

type CveRepository_GetLastModDate_Call struct {
	*mock.Call
}

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 (*CveRepository_GetLastModDate_Call) Run added in v0.17.2

func (*CveRepository_GetLastModDate_Call) RunAndReturn added in v0.17.2

type CveRepository_List_Call added in v0.17.2

type CveRepository_List_Call struct {
	*mock.Call
}

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 (*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

type CveRepository_Read_Call struct {
	*mock.Call
}

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 (*CveRepository_Read_Call) Run added in v0.17.2

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

type CveRepository_SaveBatch_Call struct {
	*mock.Call
}

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 (*CveRepository_SaveBatch_Call) Run added in v0.17.2

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

type CveRepository_SaveCveAffectedComponents_Call struct {
	*mock.Call
}

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 (*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

type CveRepository_Save_Call struct {
	*mock.Call
}

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 (*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

type CveRepository_Transaction_Call struct {
	*mock.Call
}

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 (*CveRepository_Transaction_Call) Run added in v0.17.2

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

type CveRepository_Upsert_Call struct {
	*mock.Call
}

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 (*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

type CvssInterface struct {
	mock.Mock
}

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

type CvssInterface_EnvironmentalScore_Call struct {
	*mock.Call
}

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 (*CvssInterface_EnvironmentalScore_Call) Run added in v0.17.2

func (*CvssInterface_EnvironmentalScore_Call) RunAndReturn added in v0.17.2

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

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

TemporalScore is a helper method to define mock.On call

func (*CvssInterface_Expecter) Vector added in v0.17.2

Vector is a helper method to define mock.On call

type CvssInterface_Get_Call added in v0.17.2

type CvssInterface_Get_Call struct {
	*mock.Call
}

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 (*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

type CvssInterface_Set_Call struct {
	*mock.Call
}

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 (*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

type CvssInterface_TemporalScore_Call struct {
	*mock.Call
}

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 (*CvssInterface_TemporalScore_Call) Run added in v0.17.2

func (*CvssInterface_TemporalScore_Call) RunAndReturn added in v0.17.2

type CvssInterface_Vector_Call added in v0.17.2

type CvssInterface_Vector_Call struct {
	*mock.Call
}

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 (*CvssInterface_Vector_Call) Run added in v0.17.2

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

type CweRepository struct {
	mock.Mock
}

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

func (*CweRepository) SaveBatch added in v0.17.2

func (_mock *CweRepository) SaveBatch(tx core.DB, cwes []models.CWE) error

SaveBatch 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

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

type CweRepository_GetAllCWEsID_Call struct {
	*mock.Call
}

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 (*CweRepository_GetAllCWEsID_Call) Run added in v0.17.2

func (*CweRepository_GetAllCWEsID_Call) RunAndReturn added in v0.17.2

type CweRepository_SaveBatch_Call added in v0.17.2

type CweRepository_SaveBatch_Call struct {
	*mock.Call
}

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 (*CweRepository_SaveBatch_Call) Run added in v0.17.2

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

type DependencyVulnRepository struct {
	mock.Mock
}

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

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

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 (*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

Read provides a mock function for the type DependencyVulnRepository

func (*DependencyVulnRepository) Save added in v0.17.2

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

type DependencyVulnRepository_Activate_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_Activate_Call) Run added in v0.17.2

func (*DependencyVulnRepository_Activate_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_All_Call added in v0.17.2

type DependencyVulnRepository_All_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_All_Call) Run added in v0.17.2

func (*DependencyVulnRepository_All_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_ApplyAndSave_Call added in v0.17.2

type DependencyVulnRepository_ApplyAndSave_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_ApplyAndSave_Call) Run added in v0.17.2

func (*DependencyVulnRepository_ApplyAndSave_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_Begin_Call added in v0.17.2

type DependencyVulnRepository_Begin_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_Begin_Call) Run added in v0.17.2

func (*DependencyVulnRepository_Begin_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_CreateBatch_Call added in v0.17.2

type DependencyVulnRepository_CreateBatch_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_CreateBatch_Call) Run added in v0.17.2

func (*DependencyVulnRepository_CreateBatch_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_Create_Call added in v0.17.2

type DependencyVulnRepository_Create_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_Create_Call) Run added in v0.17.2

func (*DependencyVulnRepository_Create_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_DeleteBatch_Call added in v0.17.2

type DependencyVulnRepository_DeleteBatch_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_DeleteBatch_Call) Run added in v0.17.2

func (*DependencyVulnRepository_DeleteBatch_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_Delete_Call added in v0.17.2

type DependencyVulnRepository_Delete_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_Delete_Call) Run added in v0.17.2

func (*DependencyVulnRepository_Delete_Call) RunAndReturn added in v0.17.2

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

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

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

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

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

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

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

type DependencyVulnRepository_GetAllByAssetIDAndState_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_GetAllByAssetIDAndState_Call) Run added in v0.17.2

func (*DependencyVulnRepository_GetAllByAssetIDAndState_Call) RunAndReturn added in v0.17.2

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 (*DependencyVulnRepository_GetAllOpenVulnsByAssetVersionNameAndAssetID_Call) Run added in v0.17.2

func (*DependencyVulnRepository_GetAllOpenVulnsByAssetVersionNameAndAssetID_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_GetAllVulnsByAssetID_Call added in v0.17.2

type DependencyVulnRepository_GetAllVulnsByAssetID_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_GetAllVulnsByAssetID_Call) Run added in v0.17.2

func (*DependencyVulnRepository_GetAllVulnsByAssetID_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_GetByAssetVersionPaged_Call added in v0.17.2

type DependencyVulnRepository_GetByAssetVersionPaged_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_GetByAssetVersionPaged_Call) Run added in v0.17.2

func (*DependencyVulnRepository_GetByAssetVersionPaged_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_GetDB_Call added in v0.17.2

type DependencyVulnRepository_GetDB_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_GetDB_Call) Run added in v0.17.2

func (*DependencyVulnRepository_GetDB_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_GetDefaultDependencyVulnsByOrgIDPaged_Call added in v0.17.2

type DependencyVulnRepository_GetDefaultDependencyVulnsByOrgIDPaged_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_GetDefaultDependencyVulnsByOrgIDPaged_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_GetDefaultDependencyVulnsByProjectIDPaged_Call added in v0.17.2

type DependencyVulnRepository_GetDefaultDependencyVulnsByProjectIDPaged_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_GetDefaultDependencyVulnsByProjectIDPaged_Call) RunAndReturn added in v0.17.2

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 (*DependencyVulnRepository_GetDependencyVulnsByAssetVersionPagedAndFlat_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call added in v0.17.2

type DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call) Run added in v0.17.2

func (*DependencyVulnRepository_GetDependencyVulnsByAssetVersion_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call added in v0.17.2

type DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call) Run added in v0.17.2

func (*DependencyVulnRepository_GetDependencyVulnsByDefaultAssetVersion_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call added in v0.17.2

type DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call) Run added in v0.17.2

func (*DependencyVulnRepository_GetDependencyVulnsByOtherAssetVersions_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_GetDependencyVulnsByPurl_Call added in v0.17.2

type DependencyVulnRepository_GetDependencyVulnsByPurl_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_GetDependencyVulnsByPurl_Call) Run added in v0.17.2

func (*DependencyVulnRepository_GetDependencyVulnsByPurl_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_GetHintsInOrganizationForVuln_Call added in v0.17.2

type DependencyVulnRepository_GetHintsInOrganizationForVuln_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_GetHintsInOrganizationForVuln_Call) Run added in v0.17.2

func (*DependencyVulnRepository_GetHintsInOrganizationForVuln_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_ListByAssetAndAssetVersion_Call added in v0.17.2

type DependencyVulnRepository_ListByAssetAndAssetVersion_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_ListByAssetAndAssetVersion_Call) Run added in v0.17.2

func (*DependencyVulnRepository_ListByAssetAndAssetVersion_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call added in v0.17.2

type DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call) Run added in v0.17.2

func (*DependencyVulnRepository_ListUnfixedByAssetAndAssetVersion_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_List_Call added in v0.17.2

type DependencyVulnRepository_List_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_List_Call) Run added in v0.17.2

func (*DependencyVulnRepository_List_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_Read_Call added in v0.17.2

type DependencyVulnRepository_Read_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_Read_Call) Run added in v0.17.2

func (*DependencyVulnRepository_Read_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_SaveBatch_Call added in v0.17.2

type DependencyVulnRepository_SaveBatch_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_SaveBatch_Call) Run added in v0.17.2

func (*DependencyVulnRepository_SaveBatch_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_Save_Call added in v0.17.2

type DependencyVulnRepository_Save_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_Save_Call) Run added in v0.17.2

func (*DependencyVulnRepository_Save_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_Transaction_Call added in v0.17.2

type DependencyVulnRepository_Transaction_Call struct {
	*mock.Call
}

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 (*DependencyVulnRepository_Transaction_Call) Run added in v0.17.2

func (*DependencyVulnRepository_Transaction_Call) RunAndReturn added in v0.17.2

type DependencyVulnRepository_Upsert_Call added in v0.17.2

type DependencyVulnRepository_Upsert_Call struct {
	*mock.Call
}

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 (*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

type DependencyVulnService struct {
	mock.Mock
}

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 (*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

type DependencyVulnService_RecalculateRawRiskAssessment_Call struct {
	*mock.Call
}

DependencyVulnService_RecalculateRawRiskAssessment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RecalculateRawRiskAssessment'

func (*DependencyVulnService_RecalculateRawRiskAssessment_Call) Return added in v0.17.2

func (*DependencyVulnService_RecalculateRawRiskAssessment_Call) Run added in v0.17.2

func (*DependencyVulnService_RecalculateRawRiskAssessment_Call) RunAndReturn added in v0.17.2

type DependencyVulnService_SyncAllIssues_Call added in v0.17.2

type DependencyVulnService_SyncAllIssues_Call struct {
	*mock.Call
}

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 (*DependencyVulnService_SyncAllIssues_Call) Run added in v0.17.2

func (*DependencyVulnService_SyncAllIssues_Call) RunAndReturn added in v0.17.2

type DependencyVulnService_SyncIssues_Call added in v0.17.2

type DependencyVulnService_SyncIssues_Call struct {
	*mock.Call
}

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 (*DependencyVulnService_SyncIssues_Call) Run added in v0.17.2

func (*DependencyVulnService_SyncIssues_Call) RunAndReturn added in v0.17.2

type DependencyVulnService_UpdateDependencyVulnState_Call added in v0.17.2

type DependencyVulnService_UpdateDependencyVulnState_Call struct {
	*mock.Call
}

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 (*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

type DependencyVulnService_UserDetectedDependencyVulnInAnotherArtifact_Call struct {
	*mock.Call
}

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 (*DependencyVulnService_UserDetectedDependencyVulnInAnotherArtifact_Call) RunAndReturn added in v0.17.2

type DependencyVulnService_UserDetectedDependencyVulns_Call added in v0.17.2

type DependencyVulnService_UserDetectedDependencyVulns_Call struct {
	*mock.Call
}

DependencyVulnService_UserDetectedDependencyVulns_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserDetectedDependencyVulns'

func (*DependencyVulnService_UserDetectedDependencyVulns_Call) Return added in v0.17.2

func (*DependencyVulnService_UserDetectedDependencyVulns_Call) Run added in v0.17.2

func (*DependencyVulnService_UserDetectedDependencyVulns_Call) RunAndReturn added in v0.17.2

type DependencyVulnService_UserDetectedExistingVulnOnDifferentBranch_Call added in v0.17.2

type DependencyVulnService_UserDetectedExistingVulnOnDifferentBranch_Call struct {
	*mock.Call
}

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 (*DependencyVulnService_UserDetectedExistingVulnOnDifferentBranch_Call) RunAndReturn added in v0.17.2

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 (*DependencyVulnService_UserDidNotDetectDependencyVulnInArtifactAnymore_Call) RunAndReturn added in v0.17.2

type DependencyVulnService_UserFixedDependencyVulns_Call added in v0.17.2

type DependencyVulnService_UserFixedDependencyVulns_Call struct {
	*mock.Call
}

DependencyVulnService_UserFixedDependencyVulns_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserFixedDependencyVulns'

func (*DependencyVulnService_UserFixedDependencyVulns_Call) Return added in v0.17.2

func (*DependencyVulnService_UserFixedDependencyVulns_Call) Run added in v0.17.2

func (*DependencyVulnService_UserFixedDependencyVulns_Call) RunAndReturn added in v0.17.2

type Diffable added in v0.17.2

type Diffable struct {
	mock.Mock
}

Diffable is an autogenerated mock type for the Diffable type

func NewDiffable added in v0.17.2

func NewDiffable(t interface {
	mock.TestingT
	Cleanup(func())
}) *Diffable

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

func (_mock *Diffable) AssetVersionIndependentHash() string

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

func (_mock *Diffable) GetAssetVersionName() string

GetAssetVersionName provides a mock function for the type Diffable

func (*Diffable) GetEvents added in v0.17.2

func (_mock *Diffable) GetEvents() []models.VulnEvent

GetEvents provides a mock function for the type Diffable

type Diffable_AssetVersionIndependentHash_Call added in v0.17.2

type Diffable_AssetVersionIndependentHash_Call struct {
	*mock.Call
}

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 (*Diffable_AssetVersionIndependentHash_Call) Run added in v0.17.2

func (*Diffable_AssetVersionIndependentHash_Call) RunAndReturn added in v0.17.2

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

type Diffable_GetAssetVersionName_Call struct {
	*mock.Call
}

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 (*Diffable_GetAssetVersionName_Call) Run added in v0.17.2

func (*Diffable_GetAssetVersionName_Call) RunAndReturn added in v0.17.2

type Diffable_GetEvents_Call added in v0.17.2

type Diffable_GetEvents_Call struct {
	*mock.Call
}

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 (*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

type ExploitRepository struct {
	mock.Mock
}

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 (*ExploitRepository) GetAllExploitsID added in v0.17.2

func (_mock *ExploitRepository) GetAllExploitsID() ([]string, error)

GetAllExploitsID provides a mock function for the type ExploitRepository

func (*ExploitRepository) SaveBatch added in v0.17.2

func (_mock *ExploitRepository) SaveBatch(tx core.DB, exploits []models.Exploit) error

SaveBatch 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

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

type ExploitRepository_GetAllExploitsID_Call struct {
	*mock.Call
}

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 (*ExploitRepository_GetAllExploitsID_Call) Run added in v0.17.2

func (*ExploitRepository_GetAllExploitsID_Call) RunAndReturn added in v0.17.2

type ExploitRepository_SaveBatch_Call added in v0.17.2

type ExploitRepository_SaveBatch_Call struct {
	*mock.Call
}

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 (*ExploitRepository_SaveBatch_Call) Run added in v0.17.2

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

type ExternalEntityProviderService struct {
	mock.Mock
}

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 (*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

func (_mock *ExternalEntityProviderService) SyncOrgs(c core.Context) ([]*models.Org, error)

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

SyncOrgs is a helper method to define mock.On call

  • c core.Context

func (*ExternalEntityProviderService_Expecter) TriggerOrgSync added in v0.17.2

TriggerOrgSync is a helper method to define mock.On call

  • c core.Context

type ExternalEntityProviderService_RefreshExternalEntityProviderProjects_Call added in v0.17.2

type ExternalEntityProviderService_RefreshExternalEntityProviderProjects_Call struct {
	*mock.Call
}

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 (*ExternalEntityProviderService_RefreshExternalEntityProviderProjects_Call) RunAndReturn added in v0.17.2

type ExternalEntityProviderService_SyncOrgs_Call added in v0.17.2

type ExternalEntityProviderService_SyncOrgs_Call struct {
	*mock.Call
}

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 (*ExternalEntityProviderService_SyncOrgs_Call) Run added in v0.17.2

func (*ExternalEntityProviderService_SyncOrgs_Call) RunAndReturn added in v0.17.2

type ExternalEntityProviderService_TriggerOrgSync_Call added in v0.17.2

type ExternalEntityProviderService_TriggerOrgSync_Call struct {
	*mock.Call
}

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 (*ExternalEntityProviderService_TriggerOrgSync_Call) Run added in v0.17.2

func (*ExternalEntityProviderService_TriggerOrgSync_Call) RunAndReturn added in v0.17.2

type ExternalUserRepository added in v0.17.2

type ExternalUserRepository struct {
	mock.Mock
}

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 (*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

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

type ExternalUserRepository_FindByOrgID_Call struct {
	*mock.Call
}

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 (*ExternalUserRepository_FindByOrgID_Call) Run added in v0.17.2

func (*ExternalUserRepository_FindByOrgID_Call) RunAndReturn added in v0.17.2

type ExternalUserRepository_GetDB_Call added in v0.17.2

type ExternalUserRepository_GetDB_Call struct {
	*mock.Call
}

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 (*ExternalUserRepository_GetDB_Call) Run added in v0.17.2

func (*ExternalUserRepository_GetDB_Call) RunAndReturn added in v0.17.2

type ExternalUserRepository_Save_Call added in v0.17.2

type ExternalUserRepository_Save_Call struct {
	*mock.Call
}

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 (*ExternalUserRepository_Save_Call) Run added in v0.17.2

func (*ExternalUserRepository_Save_Call) RunAndReturn added in v0.17.2

type FireAndForgetSynchronizer added in v0.17.2

type FireAndForgetSynchronizer struct {
	mock.Mock
}

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 (*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

FireAndForget is a helper method to define mock.On call

  • fn func()

type FireAndForgetSynchronizer_FireAndForget_Call added in v0.17.2

type FireAndForgetSynchronizer_FireAndForget_Call struct {
	*mock.Call
}

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 (*FireAndForgetSynchronizer_FireAndForget_Call) Run added in v0.17.2

func (*FireAndForgetSynchronizer_FireAndForget_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnRepository added in v0.17.2

type FirstPartyVulnRepository struct {
	mock.Mock
}

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

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

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 (*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

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

type FirstPartyVulnRepository_Activate_Call struct {
	*mock.Call
}

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 (*FirstPartyVulnRepository_Activate_Call) Run added in v0.17.2

func (*FirstPartyVulnRepository_Activate_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnRepository_All_Call added in v0.17.2

type FirstPartyVulnRepository_All_Call struct {
	*mock.Call
}

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 (*FirstPartyVulnRepository_All_Call) Run added in v0.17.2

func (*FirstPartyVulnRepository_All_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnRepository_ApplyAndSave_Call added in v0.17.2

type FirstPartyVulnRepository_ApplyAndSave_Call struct {
	*mock.Call
}

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 (*FirstPartyVulnRepository_ApplyAndSave_Call) Run added in v0.17.2

func (*FirstPartyVulnRepository_ApplyAndSave_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnRepository_Begin_Call added in v0.17.2

type FirstPartyVulnRepository_Begin_Call struct {
	*mock.Call
}

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 (*FirstPartyVulnRepository_Begin_Call) Run added in v0.17.2

func (*FirstPartyVulnRepository_Begin_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnRepository_CreateBatch_Call added in v0.17.2

type FirstPartyVulnRepository_CreateBatch_Call struct {
	*mock.Call
}

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 (*FirstPartyVulnRepository_CreateBatch_Call) Run added in v0.17.2

func (*FirstPartyVulnRepository_CreateBatch_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnRepository_Create_Call added in v0.17.2

type FirstPartyVulnRepository_Create_Call struct {
	*mock.Call
}

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 (*FirstPartyVulnRepository_Create_Call) Run added in v0.17.2

func (*FirstPartyVulnRepository_Create_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnRepository_DeleteBatch_Call added in v0.17.2

type FirstPartyVulnRepository_DeleteBatch_Call struct {
	*mock.Call
}

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 (*FirstPartyVulnRepository_DeleteBatch_Call) Run added in v0.17.2

func (*FirstPartyVulnRepository_DeleteBatch_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnRepository_Delete_Call added in v0.17.2

type FirstPartyVulnRepository_Delete_Call struct {
	*mock.Call
}

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 (*FirstPartyVulnRepository_Delete_Call) Run added in v0.17.2

func (*FirstPartyVulnRepository_Delete_Call) RunAndReturn added in v0.17.2

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

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

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

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

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

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

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

type FirstPartyVulnRepository_GetByAssetID_Call struct {
	*mock.Call
}

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 (*FirstPartyVulnRepository_GetByAssetID_Call) Run added in v0.17.2

func (*FirstPartyVulnRepository_GetByAssetID_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnRepository_GetByAssetVersionPaged_Call added in v0.17.2

type FirstPartyVulnRepository_GetByAssetVersionPaged_Call struct {
	*mock.Call
}

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 (*FirstPartyVulnRepository_GetByAssetVersionPaged_Call) Run added in v0.17.2

func (*FirstPartyVulnRepository_GetByAssetVersionPaged_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnRepository_GetByAssetVersion_Call added in v0.17.2

type FirstPartyVulnRepository_GetByAssetVersion_Call struct {
	*mock.Call
}

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 (*FirstPartyVulnRepository_GetByAssetVersion_Call) Run added in v0.17.2

func (*FirstPartyVulnRepository_GetByAssetVersion_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnRepository_GetDB_Call added in v0.17.2

type FirstPartyVulnRepository_GetDB_Call struct {
	*mock.Call
}

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 (*FirstPartyVulnRepository_GetDB_Call) Run added in v0.17.2

func (*FirstPartyVulnRepository_GetDB_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByOrgIDPaged_Call added in v0.17.2

type FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByOrgIDPaged_Call struct {
	*mock.Call
}

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 (*FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByOrgIDPaged_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByProjectIDPaged_Call added in v0.17.2

type FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByProjectIDPaged_Call struct {
	*mock.Call
}

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 (*FirstPartyVulnRepository_GetDefaultFirstPartyVulnsByProjectIDPaged_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call added in v0.17.2

type FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call struct {
	*mock.Call
}

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 (*FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call) Run added in v0.17.2

func (*FirstPartyVulnRepository_GetFirstPartyVulnsByOtherAssetVersions_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnRepository_ListByScanner_Call added in v0.17.2

type FirstPartyVulnRepository_ListByScanner_Call struct {
	*mock.Call
}

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 (*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

type FirstPartyVulnRepository_List_Call struct {
	*mock.Call
}

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 (*FirstPartyVulnRepository_List_Call) Run added in v0.17.2

func (*FirstPartyVulnRepository_List_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnRepository_Read_Call added in v0.17.2

type FirstPartyVulnRepository_Read_Call struct {
	*mock.Call
}

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 (*FirstPartyVulnRepository_Read_Call) Run added in v0.17.2

func (*FirstPartyVulnRepository_Read_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnRepository_SaveBatch_Call added in v0.17.2

type FirstPartyVulnRepository_SaveBatch_Call struct {
	*mock.Call
}

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 (*FirstPartyVulnRepository_SaveBatch_Call) Run added in v0.17.2

func (*FirstPartyVulnRepository_SaveBatch_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnRepository_Save_Call added in v0.17.2

type FirstPartyVulnRepository_Save_Call struct {
	*mock.Call
}

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 (*FirstPartyVulnRepository_Save_Call) Run added in v0.17.2

func (*FirstPartyVulnRepository_Save_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnRepository_Transaction_Call added in v0.17.2

type FirstPartyVulnRepository_Transaction_Call struct {
	*mock.Call
}

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 (*FirstPartyVulnRepository_Transaction_Call) Run added in v0.17.2

func (*FirstPartyVulnRepository_Transaction_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnRepository_Upsert_Call added in v0.17.2

type FirstPartyVulnRepository_Upsert_Call struct {
	*mock.Call
}

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 (*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

type FirstPartyVulnService struct {
	mock.Mock
}

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 (*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

type FirstPartyVulnService_SyncAllIssues_Call struct {
	*mock.Call
}

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 (*FirstPartyVulnService_SyncAllIssues_Call) Run added in v0.17.2

func (*FirstPartyVulnService_SyncAllIssues_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnService_SyncIssues_Call added in v0.17.2

type FirstPartyVulnService_SyncIssues_Call struct {
	*mock.Call
}

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 (*FirstPartyVulnService_SyncIssues_Call) Run added in v0.17.2

func (*FirstPartyVulnService_SyncIssues_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnService_UpdateFirstPartyVulnState_Call added in v0.17.2

type FirstPartyVulnService_UpdateFirstPartyVulnState_Call struct {
	*mock.Call
}

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 (*FirstPartyVulnService_UpdateFirstPartyVulnState_Call) Run added in v0.17.2

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 (*FirstPartyVulnService_UserDetectedExistingFirstPartyVulnOnDifferentBranch_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnService_UserDetectedFirstPartyVulns_Call added in v0.17.2

type FirstPartyVulnService_UserDetectedFirstPartyVulns_Call struct {
	*mock.Call
}

FirstPartyVulnService_UserDetectedFirstPartyVulns_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserDetectedFirstPartyVulns'

func (*FirstPartyVulnService_UserDetectedFirstPartyVulns_Call) Return added in v0.17.2

func (*FirstPartyVulnService_UserDetectedFirstPartyVulns_Call) Run added in v0.17.2

func (*FirstPartyVulnService_UserDetectedFirstPartyVulns_Call) RunAndReturn added in v0.17.2

type FirstPartyVulnService_UserFixedFirstPartyVulns_Call added in v0.17.2

type FirstPartyVulnService_UserFixedFirstPartyVulns_Call struct {
	*mock.Call
}

FirstPartyVulnService_UserFixedFirstPartyVulns_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserFixedFirstPartyVulns'

func (*FirstPartyVulnService_UserFixedFirstPartyVulns_Call) Return added in v0.17.2

func (*FirstPartyVulnService_UserFixedFirstPartyVulns_Call) Run added in v0.17.2

func (*FirstPartyVulnService_UserFixedFirstPartyVulns_Call) RunAndReturn added in v0.17.2

type GitLabOauth2TokenRepository added in v0.17.2

type GitLabOauth2TokenRepository struct {
	mock.Mock
}

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 (*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

type GitLabOauth2TokenRepository_CreateIfNotExists_Call struct {
	*mock.Call
}

GitLabOauth2TokenRepository_CreateIfNotExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIfNotExists'

func (*GitLabOauth2TokenRepository_CreateIfNotExists_Call) Return added in v0.17.2

func (*GitLabOauth2TokenRepository_CreateIfNotExists_Call) Run added in v0.17.2

func (*GitLabOauth2TokenRepository_CreateIfNotExists_Call) RunAndReturn added in v0.17.2

type GitLabOauth2TokenRepository_DeleteByUserIDAndProviderID_Call added in v0.17.2

type GitLabOauth2TokenRepository_DeleteByUserIDAndProviderID_Call struct {
	*mock.Call
}

GitLabOauth2TokenRepository_DeleteByUserIDAndProviderID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByUserIDAndProviderID'

func (*GitLabOauth2TokenRepository_DeleteByUserIDAndProviderID_Call) Return added in v0.17.2

func (*GitLabOauth2TokenRepository_DeleteByUserIDAndProviderID_Call) Run added in v0.17.2

func (*GitLabOauth2TokenRepository_DeleteByUserIDAndProviderID_Call) RunAndReturn added in v0.17.2

type GitLabOauth2TokenRepository_Delete_Call added in v0.17.2

type GitLabOauth2TokenRepository_Delete_Call struct {
	*mock.Call
}

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 (*GitLabOauth2TokenRepository_Delete_Call) Run added in v0.17.2

func (*GitLabOauth2TokenRepository_Delete_Call) RunAndReturn added in v0.17.2

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

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

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

type GitLabOauth2TokenRepository_FindByUserIDAndProviderID_Call struct {
	*mock.Call
}

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 (*GitLabOauth2TokenRepository_FindByUserIDAndProviderID_Call) Run added in v0.17.2

func (*GitLabOauth2TokenRepository_FindByUserIDAndProviderID_Call) RunAndReturn added in v0.17.2

type GitLabOauth2TokenRepository_FindByUserID_Call added in v0.17.2

type GitLabOauth2TokenRepository_FindByUserID_Call struct {
	*mock.Call
}

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 (*GitLabOauth2TokenRepository_FindByUserID_Call) Run added in v0.17.2

func (*GitLabOauth2TokenRepository_FindByUserID_Call) RunAndReturn added in v0.17.2

type GitLabOauth2TokenRepository_Save_Call added in v0.17.2

type GitLabOauth2TokenRepository_Save_Call struct {
	*mock.Call
}

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 (*GitLabOauth2TokenRepository_Save_Call) Run added in v0.17.2

func (*GitLabOauth2TokenRepository_Save_Call) RunAndReturn added in v0.17.2

type GitLister added in v0.17.2

type GitLister struct {
	mock.Mock
}

GitLister is an autogenerated mock type for the gitLister type

func NewGitLister added in v0.17.2

func NewGitLister(t interface {
	mock.TestingT
	Cleanup(func())
}) *GitLister

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

func (_mock *GitLister) GetBranchName(path string) (string, error)

GetBranchName provides a mock function for the type GitLister

func (*GitLister) GetDefaultBranchName added in v0.17.2

func (_mock *GitLister) GetDefaultBranchName(path string) (string, error)

GetDefaultBranchName provides a mock function for the type GitLister

func (*GitLister) GetTags added in v0.17.2

func (_mock *GitLister) GetTags(path string) ([]string, error)

GetTags provides a mock function for the type GitLister

func (*GitLister) GitCommitCount added in v0.17.2

func (_mock *GitLister) GitCommitCount(path string, tag *string) (int, error)

GitCommitCount provides a mock function for the type GitLister

func (*GitLister) MarkAllPathsAsSafe added in v0.17.2

func (_mock *GitLister) MarkAllPathsAsSafe() error

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

type GitLister_GetBranchName_Call struct {
	*mock.Call
}

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 (*GitLister_GetBranchName_Call) Run added in v0.17.2

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

type GitLister_GetDefaultBranchName_Call struct {
	*mock.Call
}

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 (*GitLister_GetDefaultBranchName_Call) Run added in v0.17.2

func (*GitLister_GetDefaultBranchName_Call) RunAndReturn added in v0.17.2

type GitLister_GetTags_Call added in v0.17.2

type GitLister_GetTags_Call struct {
	*mock.Call
}

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

type GitLister_GitCommitCount_Call struct {
	*mock.Call
}

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 (*GitLister_GitCommitCount_Call) Run added in v0.17.2

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

type GitLister_MarkAllPathsAsSafe_Call struct {
	*mock.Call
}

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 (*GitLister_MarkAllPathsAsSafe_Call) Run added in v0.17.2

func (*GitLister_MarkAllPathsAsSafe_Call) RunAndReturn added in v0.17.2

type GithubAppInstallationRepository added in v0.17.2

type GithubAppInstallationRepository struct {
	mock.Mock
}

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 (*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

Save provides a mock function for the type GithubAppInstallationRepository

type GithubAppInstallationRepository_Delete_Call added in v0.17.2

type GithubAppInstallationRepository_Delete_Call struct {
	*mock.Call
}

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 (*GithubAppInstallationRepository_Delete_Call) Run added in v0.17.2

func (*GithubAppInstallationRepository_Delete_Call) RunAndReturn added in v0.17.2

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

FindByOrganizationID is a helper method to define mock.On call

  • orgID uuid.UUID

func (*GithubAppInstallationRepository_Expecter) Read added in v0.17.2

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

type GithubAppInstallationRepository_FindByOrganizationID_Call struct {
	*mock.Call
}

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 (*GithubAppInstallationRepository_FindByOrganizationID_Call) Run added in v0.17.2

func (*GithubAppInstallationRepository_FindByOrganizationID_Call) RunAndReturn added in v0.17.2

type GithubAppInstallationRepository_Read_Call added in v0.17.2

type GithubAppInstallationRepository_Read_Call struct {
	*mock.Call
}

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 (*GithubAppInstallationRepository_Read_Call) Run added in v0.17.2

func (*GithubAppInstallationRepository_Read_Call) RunAndReturn added in v0.17.2

type GithubAppInstallationRepository_Save_Call added in v0.17.2

type GithubAppInstallationRepository_Save_Call struct {
	*mock.Call
}

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 (*GithubAppInstallationRepository_Save_Call) Run added in v0.17.2

func (*GithubAppInstallationRepository_Save_Call) RunAndReturn added in v0.17.2

type GithubClientFacade added in v0.17.2

type GithubClientFacade struct {
	mock.Mock
}

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 (*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

type GithubClientFacade_CreateIssueComment_Call struct {
	*mock.Call
}

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 (*GithubClientFacade_CreateIssueComment_Call) Run added in v0.17.2

func (*GithubClientFacade_CreateIssueComment_Call) RunAndReturn added in v0.17.2

type GithubClientFacade_CreateIssue_Call added in v0.17.2

type GithubClientFacade_CreateIssue_Call struct {
	*mock.Call
}

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 (*GithubClientFacade_CreateIssue_Call) Run added in v0.17.2

func (*GithubClientFacade_CreateIssue_Call) RunAndReturn added in v0.17.2

type GithubClientFacade_EditIssueLabel_Call added in v0.17.2

type GithubClientFacade_EditIssueLabel_Call struct {
	*mock.Call
}

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 (*GithubClientFacade_EditIssueLabel_Call) Run added in v0.17.2

func (*GithubClientFacade_EditIssueLabel_Call) RunAndReturn added in v0.17.2

type GithubClientFacade_EditIssue_Call added in v0.17.2

type GithubClientFacade_EditIssue_Call struct {
	*mock.Call
}

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 (*GithubClientFacade_EditIssue_Call) Run added in v0.17.2

func (*GithubClientFacade_EditIssue_Call) RunAndReturn added in v0.17.2

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

type GithubClientFacade_IsCollaboratorInRepository_Call struct {
	*mock.Call
}

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 (*GithubClientFacade_IsCollaboratorInRepository_Call) Run added in v0.17.2

func (*GithubClientFacade_IsCollaboratorInRepository_Call) RunAndReturn added in v0.17.2

type GitlabClientFacade added in v0.17.2

type GitlabClientFacade struct {
	mock.Mock
}

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 (*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

func (*GitlabClientFacade) Whoami added in v0.17.2

func (_mock *GitlabClientFacade) Whoami(ctx context.Context) (*gitlab.User, *gitlab.Response, error)

Whoami provides a mock function for the type GitlabClientFacade

type GitlabClientFacade_AddProjectHook_Call added in v0.17.2

type GitlabClientFacade_AddProjectHook_Call struct {
	*mock.Call
}

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

type GitlabClientFacade_CreateIssueComment_Call struct {
	*mock.Call
}

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

type GitlabClientFacade_CreateIssue_Call struct {
	*mock.Call
}

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

type GitlabClientFacade_CreateMergeRequest_Call struct {
	*mock.Call
}

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

type GitlabClientFacade_CreateNewLabel_Call struct {
	*mock.Call
}

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

type GitlabClientFacade_CreateVariable_Call struct {
	*mock.Call
}

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

type GitlabClientFacade_DeleteProjectHook_Call struct {
	*mock.Call
}

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 (*GitlabClientFacade_DeleteProjectHook_Call) Run added in v0.17.2

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

type GitlabClientFacade_EditIssueLabel_Call struct {
	*mock.Call
}

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

type GitlabClientFacade_EditIssue_Call struct {
	*mock.Call
}

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

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

type GitlabClientFacade_FetchGroupAvatarBase64_Call struct {
	*mock.Call
}

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 (*GitlabClientFacade_FetchGroupAvatarBase64_Call) Run added in v0.17.2

func (*GitlabClientFacade_FetchGroupAvatarBase64_Call) RunAndReturn added in v0.17.2

type GitlabClientFacade_FetchProjectAvatarBase64_Call added in v0.17.2

type GitlabClientFacade_FetchProjectAvatarBase64_Call struct {
	*mock.Call
}

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 (*GitlabClientFacade_FetchProjectAvatarBase64_Call) Run added in v0.17.2

func (*GitlabClientFacade_FetchProjectAvatarBase64_Call) RunAndReturn added in v0.17.2

type GitlabClientFacade_GetClientID_Call added in v0.17.2

type GitlabClientFacade_GetClientID_Call struct {
	*mock.Call
}

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 (*GitlabClientFacade_GetClientID_Call) Run added in v0.17.2

func (*GitlabClientFacade_GetClientID_Call) RunAndReturn added in v0.17.2

type GitlabClientFacade_GetGroup_Call added in v0.17.2

type GitlabClientFacade_GetGroup_Call struct {
	*mock.Call
}

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 (*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

type GitlabClientFacade_GetMemberInGroup_Call struct {
	*mock.Call
}

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 (*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

type GitlabClientFacade_GetMemberInProject_Call struct {
	*mock.Call
}

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 (*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

type GitlabClientFacade_GetProjectIssues_Call struct {
	*mock.Call
}

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

type GitlabClientFacade_GetProject_Call struct {
	*mock.Call
}

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 (*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

type GitlabClientFacade_GetVersion_Call struct {
	*mock.Call
}

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 (*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

type GitlabClientFacade_InviteReporter_Call struct {
	*mock.Call
}

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 (*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

type GitlabClientFacade_IsProjectMember_Call struct {
	*mock.Call
}

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 (*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

type GitlabClientFacade_ListGroups_Call struct {
	*mock.Call
}

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

type GitlabClientFacade_ListLabels_Call struct {
	*mock.Call
}

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

type GitlabClientFacade_ListProjectHooks_Call struct {
	*mock.Call
}

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

type GitlabClientFacade_ListProjectsInGroup_Call struct {
	*mock.Call
}

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

type GitlabClientFacade_ListProjects_Call struct {
	*mock.Call
}

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

type GitlabClientFacade_ListVariables_Call struct {
	*mock.Call
}

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

type GitlabClientFacade_RemoveVariable_Call struct {
	*mock.Call
}

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 (*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

type GitlabClientFacade_UpdateLabel_Call struct {
	*mock.Call
}

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

type GitlabClientFacade_UpdateVariable_Call struct {
	*mock.Call
}

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

type GitlabClientFacade_Whoami_Call struct {
	*mock.Call
}

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 (*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

type GitlabClientFactory struct {
	mock.Mock
}

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 (*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

type GitlabClientFactory_FromAccessToken_Call struct {
	*mock.Call
}

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 (*GitlabClientFactory_FromAccessToken_Call) Run added in v0.17.2

func (*GitlabClientFactory_FromAccessToken_Call) RunAndReturn added in v0.17.2

type GitlabClientFactory_FromIntegrationUUID_Call added in v0.17.2

type GitlabClientFactory_FromIntegrationUUID_Call struct {
	*mock.Call
}

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 (*GitlabClientFactory_FromIntegrationUUID_Call) Run added in v0.17.2

func (*GitlabClientFactory_FromIntegrationUUID_Call) RunAndReturn added in v0.17.2

type GitlabClientFactory_FromIntegration_Call added in v0.17.2

type GitlabClientFactory_FromIntegration_Call struct {
	*mock.Call
}

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 (*GitlabClientFactory_FromIntegration_Call) Run added in v0.17.2

func (*GitlabClientFactory_FromIntegration_Call) RunAndReturn added in v0.17.2

type GitlabClientFactory_FromOauth2Token_Call added in v0.17.2

type GitlabClientFactory_FromOauth2Token_Call struct {
	*mock.Call
}

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 (*GitlabClientFactory_FromOauth2Token_Call) Run added in v0.17.2

func (*GitlabClientFactory_FromOauth2Token_Call) RunAndReturn added in v0.17.2

type GitlabIntegrationRepository added in v0.17.2

type GitlabIntegrationRepository struct {
	mock.Mock
}

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

func (_mock *GitlabIntegrationRepository) Delete(tx core.DB, id uuid.UUID) error

Delete provides a mock function for the type GitlabIntegrationRepository

func (*GitlabIntegrationRepository) EXPECT added in v0.17.2

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

Read provides a mock function for the type GitlabIntegrationRepository

func (*GitlabIntegrationRepository) Save added in v0.17.2

Save provides a mock function for the type GitlabIntegrationRepository

type GitlabIntegrationRepository_Delete_Call added in v0.17.2

type GitlabIntegrationRepository_Delete_Call struct {
	*mock.Call
}

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 (*GitlabIntegrationRepository_Delete_Call) Run added in v0.17.2

func (*GitlabIntegrationRepository_Delete_Call) RunAndReturn added in v0.17.2

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

FindByOrganizationID is a helper method to define mock.On call

  • orgID uuid.UUID

func (*GitlabIntegrationRepository_Expecter) Read added in v0.17.2

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

type GitlabIntegrationRepository_FindByOrganizationID_Call struct {
	*mock.Call
}

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 (*GitlabIntegrationRepository_FindByOrganizationID_Call) Run added in v0.17.2

func (*GitlabIntegrationRepository_FindByOrganizationID_Call) RunAndReturn added in v0.17.2

type GitlabIntegrationRepository_Read_Call added in v0.17.2

type GitlabIntegrationRepository_Read_Call struct {
	*mock.Call
}

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 (*GitlabIntegrationRepository_Read_Call) Run added in v0.17.2

func (*GitlabIntegrationRepository_Read_Call) RunAndReturn added in v0.17.2

type GitlabIntegrationRepository_Save_Call added in v0.17.2

type GitlabIntegrationRepository_Save_Call struct {
	*mock.Call
}

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 (*GitlabIntegrationRepository_Save_Call) Run added in v0.17.2

func (*GitlabIntegrationRepository_Save_Call) RunAndReturn added in v0.17.2

type InTotoLinkRepository added in v0.17.2

type InTotoLinkRepository struct {
	mock.Mock
}

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

func (_mock *InTotoLinkRepository) Activate(tx core.DB, id uuid.UUID) error

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

func (_mock *InTotoLinkRepository) Delete(tx core.DB, id uuid.UUID) error

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 (*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

type InTotoLinkRepository_Activate_Call struct {
	*mock.Call
}

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 (*InTotoLinkRepository_Activate_Call) Run added in v0.17.2

func (*InTotoLinkRepository_Activate_Call) RunAndReturn added in v0.17.2

type InTotoLinkRepository_All_Call added in v0.17.2

type InTotoLinkRepository_All_Call struct {
	*mock.Call
}

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 (*InTotoLinkRepository_All_Call) Run added in v0.17.2

func (*InTotoLinkRepository_All_Call) RunAndReturn added in v0.17.2

type InTotoLinkRepository_Begin_Call added in v0.17.2

type InTotoLinkRepository_Begin_Call struct {
	*mock.Call
}

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 (*InTotoLinkRepository_Begin_Call) Run added in v0.17.2

func (*InTotoLinkRepository_Begin_Call) RunAndReturn added in v0.17.2

type InTotoLinkRepository_CreateBatch_Call added in v0.17.2

type InTotoLinkRepository_CreateBatch_Call struct {
	*mock.Call
}

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 (*InTotoLinkRepository_CreateBatch_Call) Run added in v0.17.2

func (*InTotoLinkRepository_CreateBatch_Call) RunAndReturn added in v0.17.2

type InTotoLinkRepository_Create_Call added in v0.17.2

type InTotoLinkRepository_Create_Call struct {
	*mock.Call
}

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 (*InTotoLinkRepository_Create_Call) Run added in v0.17.2

func (*InTotoLinkRepository_Create_Call) RunAndReturn added in v0.17.2

type InTotoLinkRepository_DeleteBatch_Call added in v0.17.2

type InTotoLinkRepository_DeleteBatch_Call struct {
	*mock.Call
}

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 (*InTotoLinkRepository_DeleteBatch_Call) Run added in v0.17.2

func (*InTotoLinkRepository_DeleteBatch_Call) RunAndReturn added in v0.17.2

type InTotoLinkRepository_Delete_Call added in v0.17.2

type InTotoLinkRepository_Delete_Call struct {
	*mock.Call
}

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 (*InTotoLinkRepository_Delete_Call) Run added in v0.17.2

func (*InTotoLinkRepository_Delete_Call) RunAndReturn added in v0.17.2

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

All is a helper method to define mock.On call

func (*InTotoLinkRepository_Expecter) Begin added in v0.17.2

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

GetDB is a helper method to define mock.On call

  • tx core.DB

func (*InTotoLinkRepository_Expecter) List added in v0.17.2

List is a helper method to define mock.On call

  • ids []uuid.UUID

func (*InTotoLinkRepository_Expecter) Read added in v0.17.2

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

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

type InTotoLinkRepository_FindByAssetAndSupplyChainID_Call struct {
	*mock.Call
}

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 (*InTotoLinkRepository_FindByAssetAndSupplyChainID_Call) Run added in v0.17.2

func (*InTotoLinkRepository_FindByAssetAndSupplyChainID_Call) RunAndReturn added in v0.17.2

type InTotoLinkRepository_FindBySupplyChainID_Call added in v0.17.2

type InTotoLinkRepository_FindBySupplyChainID_Call struct {
	*mock.Call
}

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 (*InTotoLinkRepository_FindBySupplyChainID_Call) Run added in v0.17.2

func (*InTotoLinkRepository_FindBySupplyChainID_Call) RunAndReturn added in v0.17.2

type InTotoLinkRepository_GetDB_Call added in v0.17.2

type InTotoLinkRepository_GetDB_Call struct {
	*mock.Call
}

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 (*InTotoLinkRepository_GetDB_Call) Run added in v0.17.2

func (*InTotoLinkRepository_GetDB_Call) RunAndReturn added in v0.17.2

type InTotoLinkRepository_List_Call added in v0.17.2

type InTotoLinkRepository_List_Call struct {
	*mock.Call
}

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 (*InTotoLinkRepository_List_Call) Run added in v0.17.2

func (*InTotoLinkRepository_List_Call) RunAndReturn added in v0.17.2

type InTotoLinkRepository_Read_Call added in v0.17.2

type InTotoLinkRepository_Read_Call struct {
	*mock.Call
}

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 (*InTotoLinkRepository_Read_Call) Run added in v0.17.2

func (*InTotoLinkRepository_Read_Call) RunAndReturn added in v0.17.2

type InTotoLinkRepository_SaveBatch_Call added in v0.17.2

type InTotoLinkRepository_SaveBatch_Call struct {
	*mock.Call
}

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 (*InTotoLinkRepository_SaveBatch_Call) Run added in v0.17.2

func (*InTotoLinkRepository_SaveBatch_Call) RunAndReturn added in v0.17.2

type InTotoLinkRepository_Save_Call added in v0.17.2

type InTotoLinkRepository_Save_Call struct {
	*mock.Call
}

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 (*InTotoLinkRepository_Save_Call) Run added in v0.17.2

func (*InTotoLinkRepository_Save_Call) RunAndReturn added in v0.17.2

type InTotoLinkRepository_Transaction_Call added in v0.17.2

type InTotoLinkRepository_Transaction_Call struct {
	*mock.Call
}

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 (*InTotoLinkRepository_Transaction_Call) Run added in v0.17.2

func (*InTotoLinkRepository_Transaction_Call) RunAndReturn added in v0.17.2

type InTotoLinkRepository_Upsert_Call added in v0.17.2

type InTotoLinkRepository_Upsert_Call struct {
	*mock.Call
}

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 (*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

type InTotoVerifierService struct {
	mock.Mock
}

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 (*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

type InTotoVerifierService_VerifySupplyChainByDigestOnly_Call struct {
	*mock.Call
}

InTotoVerifierService_VerifySupplyChainByDigestOnly_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VerifySupplyChainByDigestOnly'

func (*InTotoVerifierService_VerifySupplyChainByDigestOnly_Call) Return added in v0.17.2

func (*InTotoVerifierService_VerifySupplyChainByDigestOnly_Call) Run added in v0.17.2

func (*InTotoVerifierService_VerifySupplyChainByDigestOnly_Call) RunAndReturn added in v0.17.2

type InTotoVerifierService_VerifySupplyChainWithOutputDigest_Call added in v0.17.2

type InTotoVerifierService_VerifySupplyChainWithOutputDigest_Call struct {
	*mock.Call
}

InTotoVerifierService_VerifySupplyChainWithOutputDigest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VerifySupplyChainWithOutputDigest'

func (*InTotoVerifierService_VerifySupplyChainWithOutputDigest_Call) Return added in v0.17.2

func (*InTotoVerifierService_VerifySupplyChainWithOutputDigest_Call) Run added in v0.17.2

func (*InTotoVerifierService_VerifySupplyChainWithOutputDigest_Call) RunAndReturn added in v0.17.2

type InTotoVerifierService_VerifySupplyChain_Call added in v0.17.2

type InTotoVerifierService_VerifySupplyChain_Call struct {
	*mock.Call
}

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 (*InTotoVerifierService_VerifySupplyChain_Call) Run added in v0.17.2

func (*InTotoVerifierService_VerifySupplyChain_Call) RunAndReturn added in v0.17.2

type IntegrationAggregate added in v0.17.2

type IntegrationAggregate struct {
	mock.Mock
}

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

func (_mock *IntegrationAggregate) CreateLabels(ctx context.Context, asset models.Asset) error

CreateLabels provides a mock function for the type IntegrationAggregate

func (*IntegrationAggregate) EXPECT added in v0.17.2

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

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

func (_mock *IntegrationAggregate) ListOrgs(ctx core.Context) ([]models.Org, error)

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

type IntegrationAggregate_CreateIssue_Call struct {
	*mock.Call
}

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 (*IntegrationAggregate_CreateIssue_Call) Run added in v0.17.2

func (_c *IntegrationAggregate_CreateIssue_Call) Run(run func(ctx context.Context, asset models.Asset, assetVersionName string, vuln models.Vuln, projectSlug string, orgSlug string, justification string, userID string)) *IntegrationAggregate_CreateIssue_Call

func (*IntegrationAggregate_CreateIssue_Call) RunAndReturn added in v0.17.2

func (_c *IntegrationAggregate_CreateIssue_Call) RunAndReturn(run func(ctx context.Context, asset models.Asset, assetVersionName string, vuln models.Vuln, projectSlug string, orgSlug string, justification string, userID string) error) *IntegrationAggregate_CreateIssue_Call

type IntegrationAggregate_CreateLabels_Call added in v0.17.3

type IntegrationAggregate_CreateLabels_Call struct {
	*mock.Call
}

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 (*IntegrationAggregate_CreateLabels_Call) Run added in v0.17.3

func (*IntegrationAggregate_CreateLabels_Call) RunAndReturn added in v0.17.3

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

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

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

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

type IntegrationAggregate_GetID_Call struct {
	*mock.Call
}

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 (*IntegrationAggregate_GetID_Call) Run added in v0.17.2

func (*IntegrationAggregate_GetID_Call) RunAndReturn added in v0.17.2

type IntegrationAggregate_GetIntegration_Call added in v0.17.2

type IntegrationAggregate_GetIntegration_Call struct {
	*mock.Call
}

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 (*IntegrationAggregate_GetIntegration_Call) Run added in v0.17.2

func (*IntegrationAggregate_GetIntegration_Call) RunAndReturn added in v0.17.2

type IntegrationAggregate_GetUsers_Call added in v0.17.2

type IntegrationAggregate_GetUsers_Call struct {
	*mock.Call
}

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 (*IntegrationAggregate_GetUsers_Call) Run added in v0.17.2

func (*IntegrationAggregate_GetUsers_Call) RunAndReturn added in v0.17.2

type IntegrationAggregate_HandleEvent_Call added in v0.17.2

type IntegrationAggregate_HandleEvent_Call struct {
	*mock.Call
}

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 (*IntegrationAggregate_HandleEvent_Call) Run added in v0.17.2

func (*IntegrationAggregate_HandleEvent_Call) RunAndReturn added in v0.17.2

type IntegrationAggregate_HandleWebhook_Call added in v0.17.2

type IntegrationAggregate_HandleWebhook_Call struct {
	*mock.Call
}

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 (*IntegrationAggregate_HandleWebhook_Call) Run added in v0.17.2

func (*IntegrationAggregate_HandleWebhook_Call) RunAndReturn added in v0.17.2

type IntegrationAggregate_HasAccessToExternalEntityProvider_Call added in v0.17.2

type IntegrationAggregate_HasAccessToExternalEntityProvider_Call struct {
	*mock.Call
}

IntegrationAggregate_HasAccessToExternalEntityProvider_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasAccessToExternalEntityProvider'

func (*IntegrationAggregate_HasAccessToExternalEntityProvider_Call) Return added in v0.17.2

func (*IntegrationAggregate_HasAccessToExternalEntityProvider_Call) Run added in v0.17.2

func (*IntegrationAggregate_HasAccessToExternalEntityProvider_Call) RunAndReturn added in v0.17.2

type IntegrationAggregate_ListGroups_Call added in v0.17.2

type IntegrationAggregate_ListGroups_Call struct {
	*mock.Call
}

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 (*IntegrationAggregate_ListGroups_Call) Run added in v0.17.2

func (*IntegrationAggregate_ListGroups_Call) RunAndReturn added in v0.17.2

type IntegrationAggregate_ListOrgs_Call added in v0.17.2

type IntegrationAggregate_ListOrgs_Call struct {
	*mock.Call
}

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 (*IntegrationAggregate_ListOrgs_Call) Run added in v0.17.2

func (*IntegrationAggregate_ListOrgs_Call) RunAndReturn added in v0.17.2

type IntegrationAggregate_ListProjects_Call added in v0.17.2

type IntegrationAggregate_ListProjects_Call struct {
	*mock.Call
}

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 (*IntegrationAggregate_ListProjects_Call) Run added in v0.17.2

func (*IntegrationAggregate_ListProjects_Call) RunAndReturn added in v0.17.2

func (_c *IntegrationAggregate_ListProjects_Call) RunAndReturn(run func(ctx context.Context, userID string, providerID string, groupID string) ([]models.Asset, []core.Role, error)) *IntegrationAggregate_ListProjects_Call

type IntegrationAggregate_ListRepositories_Call added in v0.17.2

type IntegrationAggregate_ListRepositories_Call struct {
	*mock.Call
}

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 (*IntegrationAggregate_ListRepositories_Call) Run added in v0.17.2

func (*IntegrationAggregate_ListRepositories_Call) RunAndReturn added in v0.17.2

type IntegrationAggregate_UpdateIssue_Call added in v0.17.2

type IntegrationAggregate_UpdateIssue_Call struct {
	*mock.Call
}

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 (*IntegrationAggregate_UpdateIssue_Call) Run added in v0.17.2

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

type IntegrationAggregate_WantsToHandleWebhook_Call struct {
	*mock.Call
}

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 (*IntegrationAggregate_WantsToHandleWebhook_Call) Run added in v0.17.2

func (*IntegrationAggregate_WantsToHandleWebhook_Call) RunAndReturn added in v0.17.2

type InvitationRepository added in v0.17.2

type InvitationRepository struct {
	mock.Mock
}

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

func (_mock *InvitationRepository) Delete(tx core.DB, id uuid.UUID) error

Delete provides a mock function for the type InvitationRepository

func (*InvitationRepository) EXPECT added in v0.17.2

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

type InvitationRepository_Delete_Call struct {
	*mock.Call
}

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 (*InvitationRepository_Delete_Call) Run added in v0.17.2

func (*InvitationRepository_Delete_Call) RunAndReturn added in v0.17.2

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

type InvitationRepository_FindByCode_Call struct {
	*mock.Call
}

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 (*InvitationRepository_FindByCode_Call) Run added in v0.17.2

func (*InvitationRepository_FindByCode_Call) RunAndReturn added in v0.17.2

type InvitationRepository_Save_Call added in v0.17.2

type InvitationRepository_Save_Call struct {
	*mock.Call
}

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 (*InvitationRepository_Save_Call) Run added in v0.17.2

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

type JiraIntegrationRepository struct {
	mock.Mock
}

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

func (_mock *JiraIntegrationRepository) Delete(tx core.DB, id uuid.UUID) error

Delete provides a mock function for the type JiraIntegrationRepository

func (*JiraIntegrationRepository) EXPECT added in v0.17.2

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

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

type JiraIntegrationRepository_Delete_Call struct {
	*mock.Call
}

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 (*JiraIntegrationRepository_Delete_Call) Run added in v0.17.2

func (*JiraIntegrationRepository_Delete_Call) RunAndReturn added in v0.17.2

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

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

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

type JiraIntegrationRepository_FindByOrganizationID_Call struct {
	*mock.Call
}

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 (*JiraIntegrationRepository_FindByOrganizationID_Call) Run added in v0.17.2

func (*JiraIntegrationRepository_FindByOrganizationID_Call) RunAndReturn added in v0.17.2

type JiraIntegrationRepository_GetClientByIntegrationID_Call added in v0.17.2

type JiraIntegrationRepository_GetClientByIntegrationID_Call struct {
	*mock.Call
}

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 (*JiraIntegrationRepository_GetClientByIntegrationID_Call) Run added in v0.17.2

func (*JiraIntegrationRepository_GetClientByIntegrationID_Call) RunAndReturn added in v0.17.2

type JiraIntegrationRepository_Read_Call added in v0.17.2

type JiraIntegrationRepository_Read_Call struct {
	*mock.Call
}

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 (*JiraIntegrationRepository_Read_Call) Run added in v0.17.2

func (*JiraIntegrationRepository_Read_Call) RunAndReturn added in v0.17.2

type JiraIntegrationRepository_Save_Call added in v0.17.2

type JiraIntegrationRepository_Save_Call struct {
	*mock.Call
}

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 (*JiraIntegrationRepository_Save_Call) Run added in v0.17.2

func (*JiraIntegrationRepository_Save_Call) RunAndReturn added in v0.17.2

type LicenseRiskRepository added in v0.17.2

type LicenseRiskRepository struct {
	mock.Mock
}

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 (*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

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

type LicenseRiskRepository_Activate_Call struct {
	*mock.Call
}

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 (*LicenseRiskRepository_Activate_Call) Run added in v0.17.2

func (*LicenseRiskRepository_Activate_Call) RunAndReturn added in v0.17.2

type LicenseRiskRepository_All_Call added in v0.17.2

type LicenseRiskRepository_All_Call struct {
	*mock.Call
}

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 (*LicenseRiskRepository_All_Call) Run added in v0.17.2

func (*LicenseRiskRepository_All_Call) RunAndReturn added in v0.17.2

type LicenseRiskRepository_ApplyAndSave_Call added in v0.17.2

type LicenseRiskRepository_ApplyAndSave_Call struct {
	*mock.Call
}

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 (*LicenseRiskRepository_ApplyAndSave_Call) Run added in v0.17.2

func (*LicenseRiskRepository_ApplyAndSave_Call) RunAndReturn added in v0.17.2

type LicenseRiskRepository_Begin_Call added in v0.17.2

type LicenseRiskRepository_Begin_Call struct {
	*mock.Call
}

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 (*LicenseRiskRepository_Begin_Call) Run added in v0.17.2

func (*LicenseRiskRepository_Begin_Call) RunAndReturn added in v0.17.2

type LicenseRiskRepository_CreateBatch_Call added in v0.17.2

type LicenseRiskRepository_CreateBatch_Call struct {
	*mock.Call
}

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 (*LicenseRiskRepository_CreateBatch_Call) Run added in v0.17.2

func (*LicenseRiskRepository_CreateBatch_Call) RunAndReturn added in v0.17.2

type LicenseRiskRepository_Create_Call added in v0.17.2

type LicenseRiskRepository_Create_Call struct {
	*mock.Call
}

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 (*LicenseRiskRepository_Create_Call) Run added in v0.17.2

func (*LicenseRiskRepository_Create_Call) RunAndReturn added in v0.17.2

type LicenseRiskRepository_DeleteBatch_Call added in v0.17.2

type LicenseRiskRepository_DeleteBatch_Call struct {
	*mock.Call
}

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 (*LicenseRiskRepository_DeleteBatch_Call) Run added in v0.17.2

func (*LicenseRiskRepository_DeleteBatch_Call) RunAndReturn added in v0.17.2

type LicenseRiskRepository_DeleteByComponentPurl_Call added in v0.17.2

type LicenseRiskRepository_DeleteByComponentPurl_Call struct {
	*mock.Call
}

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 (*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

type LicenseRiskRepository_Delete_Call struct {
	*mock.Call
}

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 (*LicenseRiskRepository_Delete_Call) Run added in v0.17.2

func (*LicenseRiskRepository_Delete_Call) RunAndReturn added in v0.17.2

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

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

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

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

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

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

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

type LicenseRiskRepository_GetAllLicenseRisksForAssetVersionPaged_Call struct {
	*mock.Call
}

LicenseRiskRepository_GetAllLicenseRisksForAssetVersionPaged_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllLicenseRisksForAssetVersionPaged'

func (*LicenseRiskRepository_GetAllLicenseRisksForAssetVersionPaged_Call) Return added in v0.17.2

func (*LicenseRiskRepository_GetAllLicenseRisksForAssetVersionPaged_Call) Run added in v0.17.2

func (*LicenseRiskRepository_GetAllLicenseRisksForAssetVersionPaged_Call) RunAndReturn added in v0.17.2

type LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call added in v0.17.2

type LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call struct {
	*mock.Call
}

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 (*LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call) Run added in v0.17.2

func (*LicenseRiskRepository_GetAllLicenseRisksForAssetVersion_Call) RunAndReturn added in v0.17.2

type LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call added in v0.17.2

type LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call struct {
	*mock.Call
}

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 (*LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call) Run added in v0.17.2

func (*LicenseRiskRepository_GetAllOverwrittenLicensesForAssetVersion_Call) RunAndReturn added in v0.17.2

type LicenseRiskRepository_GetDB_Call added in v0.17.2

type LicenseRiskRepository_GetDB_Call struct {
	*mock.Call
}

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 (*LicenseRiskRepository_GetDB_Call) Run added in v0.17.2

func (*LicenseRiskRepository_GetDB_Call) RunAndReturn added in v0.17.2

type LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call added in v0.17.2

type LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call struct {
	*mock.Call
}

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 (*LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call) Run added in v0.17.2

func (*LicenseRiskRepository_GetLicenseRisksByOtherAssetVersions_Call) RunAndReturn added in v0.17.2

type LicenseRiskRepository_ListByArtifactName_Call added in v0.17.2

type LicenseRiskRepository_ListByArtifactName_Call struct {
	*mock.Call
}

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 (*LicenseRiskRepository_ListByArtifactName_Call) Run added in v0.17.2

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

type LicenseRiskRepository_List_Call struct {
	*mock.Call
}

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 (*LicenseRiskRepository_List_Call) Run added in v0.17.2

func (*LicenseRiskRepository_List_Call) RunAndReturn added in v0.17.2

type LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call added in v0.17.2

type LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call struct {
	*mock.Call
}

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 (*LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call) Run added in v0.17.2

func (*LicenseRiskRepository_MaybeGetLicenseOverwriteForComponent_Call) RunAndReturn added in v0.17.2

type LicenseRiskRepository_Read_Call added in v0.17.2

type LicenseRiskRepository_Read_Call struct {
	*mock.Call
}

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 (*LicenseRiskRepository_Read_Call) Run added in v0.17.2

func (*LicenseRiskRepository_Read_Call) RunAndReturn added in v0.17.2

type LicenseRiskRepository_SaveBatch_Call added in v0.17.2

type LicenseRiskRepository_SaveBatch_Call struct {
	*mock.Call
}

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 (*LicenseRiskRepository_SaveBatch_Call) Run added in v0.17.2

func (*LicenseRiskRepository_SaveBatch_Call) RunAndReturn added in v0.17.2

type LicenseRiskRepository_Save_Call added in v0.17.2

type LicenseRiskRepository_Save_Call struct {
	*mock.Call
}

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 (*LicenseRiskRepository_Save_Call) Run added in v0.17.2

func (*LicenseRiskRepository_Save_Call) RunAndReturn added in v0.17.2

type LicenseRiskRepository_Transaction_Call added in v0.17.2

type LicenseRiskRepository_Transaction_Call struct {
	*mock.Call
}

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 (*LicenseRiskRepository_Transaction_Call) Run added in v0.17.2

func (*LicenseRiskRepository_Transaction_Call) RunAndReturn added in v0.17.2

type LicenseRiskRepository_Upsert_Call added in v0.17.2

type LicenseRiskRepository_Upsert_Call struct {
	*mock.Call
}

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 (*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

type LicenseRiskService struct {
	mock.Mock
}

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 (*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

type LicenseRiskService_FindLicenseRisksInComponents_Call struct {
	*mock.Call
}

LicenseRiskService_FindLicenseRisksInComponents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindLicenseRisksInComponents'

func (*LicenseRiskService_FindLicenseRisksInComponents_Call) Return added in v0.17.2

func (*LicenseRiskService_FindLicenseRisksInComponents_Call) Run added in v0.17.2

func (*LicenseRiskService_FindLicenseRisksInComponents_Call) RunAndReturn added in v0.17.2

type LicenseRiskService_MakeFinalLicenseDecision_Call added in v0.17.2

type LicenseRiskService_MakeFinalLicenseDecision_Call struct {
	*mock.Call
}

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 (*LicenseRiskService_MakeFinalLicenseDecision_Call) Run added in v0.17.2

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

type LicenseRiskService_UpdateLicenseRiskState_Call struct {
	*mock.Call
}

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 (*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

type OpenSourceInsightService struct {
	mock.Mock
}

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 (*OpenSourceInsightService) GetProject added in v0.17.2

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

type OpenSourceInsightService_GetProject_Call struct {
	*mock.Call
}

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 (*OpenSourceInsightService_GetProject_Call) Run added in v0.17.2

func (*OpenSourceInsightService_GetProject_Call) RunAndReturn added in v0.17.2

type OpenSourceInsightService_GetVersion_Call added in v0.17.2

type OpenSourceInsightService_GetVersion_Call struct {
	*mock.Call
}

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 (*OpenSourceInsightService_GetVersion_Call) Run added in v0.17.2

func (*OpenSourceInsightService_GetVersion_Call) RunAndReturn added in v0.17.2

type OrgService added in v0.17.2

type OrgService struct {
	mock.Mock
}

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

func (_mock *OrgService) CreateOrganization(ctx core.Context, organization *models.Org) error

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

type OrgService_CreateOrganization_Call struct {
	*mock.Call
}

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 (*OrgService_CreateOrganization_Call) Run added in v0.17.2

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

type OrgService_ReadBySlug_Call struct {
	*mock.Call
}

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 (*OrgService_ReadBySlug_Call) Run added in v0.17.2

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

type OrganizationRepository struct {
	mock.Mock
}

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

func (_mock *OrganizationRepository) Activate(tx core.DB, id uuid.UUID) error

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

func (_mock *OrganizationRepository) Create(tx core.DB, t *models.Org) error

Create provides a mock function for the type OrganizationRepository

func (*OrganizationRepository) CreateBatch added in v0.17.2

func (_mock *OrganizationRepository) CreateBatch(tx core.DB, ts []models.Org) error

CreateBatch provides a mock function for the type OrganizationRepository

func (*OrganizationRepository) Delete added in v0.17.2

func (_mock *OrganizationRepository) Delete(tx core.DB, id uuid.UUID) error

Delete provides a mock function for the type OrganizationRepository

func (*OrganizationRepository) DeleteBatch added in v0.17.2

func (_mock *OrganizationRepository) DeleteBatch(tx core.DB, ids []models.Org) error

DeleteBatch provides a mock function for the type OrganizationRepository

func (*OrganizationRepository) EXPECT added in v0.17.2

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

func (_mock *OrganizationRepository) GetOrgByID(id uuid.UUID) (models.Org, error)

GetOrgByID provides a mock function for the type OrganizationRepository

func (*OrganizationRepository) List added in v0.17.2

func (_mock *OrganizationRepository) List(ids []uuid.UUID) ([]models.Org, error)

List provides a mock function for the type OrganizationRepository

func (*OrganizationRepository) Read added in v0.17.2

func (_mock *OrganizationRepository) Read(id uuid.UUID) (models.Org, error)

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

func (_mock *OrganizationRepository) Save(tx core.DB, t *models.Org) error

Save provides a mock function for the type OrganizationRepository

func (*OrganizationRepository) SaveBatch added in v0.17.2

func (_mock *OrganizationRepository) SaveBatch(tx core.DB, ts []models.Org) error

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

func (*OrganizationRepository) Update added in v0.17.2

func (_mock *OrganizationRepository) Update(tx core.DB, organization *models.Org) error

Update provides a mock function for the type OrganizationRepository

func (*OrganizationRepository) Upsert added in v0.17.2

func (_mock *OrganizationRepository) Upsert(t *[]*models.Org, conflictingColumns []clause.Column, updateOnly []string) error

Upsert provides a mock function for the type OrganizationRepository

type OrganizationRepository_Activate_Call added in v0.17.2

type OrganizationRepository_Activate_Call struct {
	*mock.Call
}

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 (*OrganizationRepository_Activate_Call) Run added in v0.17.2

func (*OrganizationRepository_Activate_Call) RunAndReturn added in v0.17.2

type OrganizationRepository_All_Call added in v0.17.2

type OrganizationRepository_All_Call struct {
	*mock.Call
}

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 (*OrganizationRepository_All_Call) Run added in v0.17.2

func (*OrganizationRepository_All_Call) RunAndReturn added in v0.17.2

type OrganizationRepository_Begin_Call added in v0.17.2

type OrganizationRepository_Begin_Call struct {
	*mock.Call
}

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 (*OrganizationRepository_Begin_Call) Run added in v0.17.2

func (*OrganizationRepository_Begin_Call) RunAndReturn added in v0.17.2

type OrganizationRepository_ContentTree_Call added in v0.17.2

type OrganizationRepository_ContentTree_Call struct {
	*mock.Call
}

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 (*OrganizationRepository_ContentTree_Call) Run added in v0.17.2

func (*OrganizationRepository_ContentTree_Call) RunAndReturn added in v0.17.2

type OrganizationRepository_CreateBatch_Call added in v0.17.2

type OrganizationRepository_CreateBatch_Call struct {
	*mock.Call
}

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 (*OrganizationRepository_CreateBatch_Call) Run added in v0.17.2

func (*OrganizationRepository_CreateBatch_Call) RunAndReturn added in v0.17.2

type OrganizationRepository_Create_Call added in v0.17.2

type OrganizationRepository_Create_Call struct {
	*mock.Call
}

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 (*OrganizationRepository_Create_Call) Run added in v0.17.2

func (*OrganizationRepository_Create_Call) RunAndReturn added in v0.17.2

type OrganizationRepository_DeleteBatch_Call added in v0.17.2

type OrganizationRepository_DeleteBatch_Call struct {
	*mock.Call
}

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 (*OrganizationRepository_DeleteBatch_Call) Run added in v0.17.2

func (*OrganizationRepository_DeleteBatch_Call) RunAndReturn added in v0.17.2

type OrganizationRepository_Delete_Call added in v0.17.2

type OrganizationRepository_Delete_Call struct {
	*mock.Call
}

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 (*OrganizationRepository_Delete_Call) Run added in v0.17.2

func (*OrganizationRepository_Delete_Call) RunAndReturn added in v0.17.2

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

All is a helper method to define mock.On call

func (*OrganizationRepository_Expecter) Begin added in v0.17.2

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

GetDB is a helper method to define mock.On call

  • tx core.DB

func (*OrganizationRepository_Expecter) GetOrgByID added in v0.17.2

GetOrgByID is a helper method to define mock.On call

  • id uuid.UUID

func (*OrganizationRepository_Expecter) List added in v0.17.2

List is a helper method to define mock.On call

  • ids []uuid.UUID

func (*OrganizationRepository_Expecter) Read added in v0.17.2

Read is a helper method to define mock.On call

  • id uuid.UUID

func (*OrganizationRepository_Expecter) ReadBySlug added in v0.17.2

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

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

type OrganizationRepository_GetDB_Call struct {
	*mock.Call
}

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 (*OrganizationRepository_GetDB_Call) Run added in v0.17.2

func (*OrganizationRepository_GetDB_Call) RunAndReturn added in v0.17.2

type OrganizationRepository_GetOrgByID_Call added in v0.17.2

type OrganizationRepository_GetOrgByID_Call struct {
	*mock.Call
}

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 (*OrganizationRepository_GetOrgByID_Call) Run added in v0.17.2

func (*OrganizationRepository_GetOrgByID_Call) RunAndReturn added in v0.17.2

type OrganizationRepository_List_Call added in v0.17.2

type OrganizationRepository_List_Call struct {
	*mock.Call
}

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 (*OrganizationRepository_List_Call) Run added in v0.17.2

func (*OrganizationRepository_List_Call) RunAndReturn added in v0.17.2

type OrganizationRepository_ReadBySlug_Call added in v0.17.2

type OrganizationRepository_ReadBySlug_Call struct {
	*mock.Call
}

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 (*OrganizationRepository_ReadBySlug_Call) Run added in v0.17.2

func (*OrganizationRepository_ReadBySlug_Call) RunAndReturn added in v0.17.2

type OrganizationRepository_Read_Call added in v0.17.2

type OrganizationRepository_Read_Call struct {
	*mock.Call
}

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 (*OrganizationRepository_Read_Call) Run added in v0.17.2

func (*OrganizationRepository_Read_Call) RunAndReturn added in v0.17.2

type OrganizationRepository_SaveBatch_Call added in v0.17.2

type OrganizationRepository_SaveBatch_Call struct {
	*mock.Call
}

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 (*OrganizationRepository_SaveBatch_Call) Run added in v0.17.2

func (*OrganizationRepository_SaveBatch_Call) RunAndReturn added in v0.17.2

type OrganizationRepository_Save_Call added in v0.17.2

type OrganizationRepository_Save_Call struct {
	*mock.Call
}

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 (*OrganizationRepository_Save_Call) Run added in v0.17.2

func (*OrganizationRepository_Save_Call) RunAndReturn added in v0.17.2

type OrganizationRepository_Transaction_Call added in v0.17.2

type OrganizationRepository_Transaction_Call struct {
	*mock.Call
}

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 (*OrganizationRepository_Transaction_Call) Run added in v0.17.2

func (*OrganizationRepository_Transaction_Call) RunAndReturn added in v0.17.2

type OrganizationRepository_Update_Call added in v0.17.2

type OrganizationRepository_Update_Call struct {
	*mock.Call
}

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 (*OrganizationRepository_Update_Call) Run added in v0.17.2

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

type OrganizationRepository_Upsert_Call struct {
	*mock.Call
}

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 (*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

type PersonalAccessTokenRepository struct {
	mock.Mock
}

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

func (_mock *PersonalAccessTokenRepository) Activate(tx core.DB, id uuid.UUID) error

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

func (_mock *PersonalAccessTokenRepository) Create(tx core.DB, t *models.PAT) error

Create provides a mock function for the type PersonalAccessTokenRepository

func (*PersonalAccessTokenRepository) CreateBatch added in v0.17.2

func (_mock *PersonalAccessTokenRepository) CreateBatch(tx core.DB, ts []models.PAT) error

CreateBatch provides a mock function for the type PersonalAccessTokenRepository

func (*PersonalAccessTokenRepository) Delete added in v0.17.2

func (_mock *PersonalAccessTokenRepository) Delete(tx core.DB, id uuid.UUID) error

Delete provides a mock function for the type PersonalAccessTokenRepository

func (*PersonalAccessTokenRepository) DeleteBatch added in v0.17.2

func (_mock *PersonalAccessTokenRepository) DeleteBatch(tx core.DB, ids []models.PAT) error

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 (*PersonalAccessTokenRepository) FindByUserIDs added in v0.17.2

func (_mock *PersonalAccessTokenRepository) FindByUserIDs(userID []uuid.UUID) ([]models.PAT, error)

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

func (_mock *PersonalAccessTokenRepository) List(ids []uuid.UUID) ([]models.PAT, error)

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

func (_mock *PersonalAccessTokenRepository) Save(tx core.DB, t *models.PAT) error

Save provides a mock function for the type PersonalAccessTokenRepository

func (*PersonalAccessTokenRepository) SaveBatch added in v0.17.2

func (_mock *PersonalAccessTokenRepository) SaveBatch(tx core.DB, ts []models.PAT) error

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

func (*PersonalAccessTokenRepository) Upsert added in v0.17.2

func (_mock *PersonalAccessTokenRepository) Upsert(t *[]*models.PAT, conflictingColumns []clause.Column, updateOnly []string) error

Upsert provides a mock function for the type PersonalAccessTokenRepository

type PersonalAccessTokenRepository_Activate_Call added in v0.17.2

type PersonalAccessTokenRepository_Activate_Call struct {
	*mock.Call
}

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 (*PersonalAccessTokenRepository_Activate_Call) Run added in v0.17.2

func (*PersonalAccessTokenRepository_Activate_Call) RunAndReturn added in v0.17.2

type PersonalAccessTokenRepository_All_Call added in v0.17.2

type PersonalAccessTokenRepository_All_Call struct {
	*mock.Call
}

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 (*PersonalAccessTokenRepository_All_Call) Run added in v0.17.2

func (*PersonalAccessTokenRepository_All_Call) RunAndReturn added in v0.17.2

type PersonalAccessTokenRepository_Begin_Call added in v0.17.2

type PersonalAccessTokenRepository_Begin_Call struct {
	*mock.Call
}

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 (*PersonalAccessTokenRepository_Begin_Call) Run added in v0.17.2

func (*PersonalAccessTokenRepository_Begin_Call) RunAndReturn added in v0.17.2

type PersonalAccessTokenRepository_CreateBatch_Call added in v0.17.2

type PersonalAccessTokenRepository_CreateBatch_Call struct {
	*mock.Call
}

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 (*PersonalAccessTokenRepository_CreateBatch_Call) Run added in v0.17.2

func (*PersonalAccessTokenRepository_CreateBatch_Call) RunAndReturn added in v0.17.2

type PersonalAccessTokenRepository_Create_Call added in v0.17.2

type PersonalAccessTokenRepository_Create_Call struct {
	*mock.Call
}

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 (*PersonalAccessTokenRepository_Create_Call) Run added in v0.17.2

func (*PersonalAccessTokenRepository_Create_Call) RunAndReturn added in v0.17.2

type PersonalAccessTokenRepository_DeleteBatch_Call added in v0.17.2

type PersonalAccessTokenRepository_DeleteBatch_Call struct {
	*mock.Call
}

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 (*PersonalAccessTokenRepository_DeleteBatch_Call) Run added in v0.17.2

func (*PersonalAccessTokenRepository_DeleteBatch_Call) RunAndReturn added in v0.17.2

type PersonalAccessTokenRepository_DeleteByFingerprint_Call added in v0.17.2

type PersonalAccessTokenRepository_DeleteByFingerprint_Call struct {
	*mock.Call
}

PersonalAccessTokenRepository_DeleteByFingerprint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByFingerprint'

func (*PersonalAccessTokenRepository_DeleteByFingerprint_Call) Return added in v0.17.2

func (*PersonalAccessTokenRepository_DeleteByFingerprint_Call) Run added in v0.17.2

func (*PersonalAccessTokenRepository_DeleteByFingerprint_Call) RunAndReturn added in v0.17.2

type PersonalAccessTokenRepository_Delete_Call added in v0.17.2

type PersonalAccessTokenRepository_Delete_Call struct {
	*mock.Call
}

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 (*PersonalAccessTokenRepository_Delete_Call) Run added in v0.17.2

func (*PersonalAccessTokenRepository_Delete_Call) RunAndReturn added in v0.17.2

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

All is a helper method to define mock.On call

func (*PersonalAccessTokenRepository_Expecter) Begin added in v0.17.2

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

DeleteByFingerprint is a helper method to define mock.On call

  • fingerprint string

func (*PersonalAccessTokenRepository_Expecter) FindByUserIDs added in v0.17.2

FindByUserIDs is a helper method to define mock.On call

  • userID []uuid.UUID

func (*PersonalAccessTokenRepository_Expecter) GetByFingerprint added in v0.17.2

GetByFingerprint is a helper method to define mock.On call

  • fingerprint string

func (*PersonalAccessTokenRepository_Expecter) GetDB added in v0.17.2

GetDB is a helper method to define mock.On call

  • tx core.DB

func (*PersonalAccessTokenRepository_Expecter) List added in v0.17.2

List is a helper method to define mock.On call

  • ids []uuid.UUID

func (*PersonalAccessTokenRepository_Expecter) ListByUserID added in v0.17.2

ListByUserID is a helper method to define mock.On call

  • userID string

func (*PersonalAccessTokenRepository_Expecter) MarkAsLastUsedNow added in v0.17.2

MarkAsLastUsedNow is a helper method to define mock.On call

  • fingerprint string

func (*PersonalAccessTokenRepository_Expecter) Read added in v0.17.2

Read is a helper method to define mock.On call

  • id uuid.UUID

func (*PersonalAccessTokenRepository_Expecter) Save added in v0.17.2

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

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

type PersonalAccessTokenRepository_FindByUserIDs_Call struct {
	*mock.Call
}

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 (*PersonalAccessTokenRepository_FindByUserIDs_Call) Run added in v0.17.2

func (*PersonalAccessTokenRepository_FindByUserIDs_Call) RunAndReturn added in v0.17.2

type PersonalAccessTokenRepository_GetByFingerprint_Call added in v0.17.2

type PersonalAccessTokenRepository_GetByFingerprint_Call struct {
	*mock.Call
}

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 (*PersonalAccessTokenRepository_GetByFingerprint_Call) Run added in v0.17.2

func (*PersonalAccessTokenRepository_GetByFingerprint_Call) RunAndReturn added in v0.17.2

type PersonalAccessTokenRepository_GetDB_Call added in v0.17.2

type PersonalAccessTokenRepository_GetDB_Call struct {
	*mock.Call
}

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 (*PersonalAccessTokenRepository_GetDB_Call) Run added in v0.17.2

func (*PersonalAccessTokenRepository_GetDB_Call) RunAndReturn added in v0.17.2

type PersonalAccessTokenRepository_ListByUserID_Call added in v0.17.2

type PersonalAccessTokenRepository_ListByUserID_Call struct {
	*mock.Call
}

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 (*PersonalAccessTokenRepository_ListByUserID_Call) Run added in v0.17.2

func (*PersonalAccessTokenRepository_ListByUserID_Call) RunAndReturn added in v0.17.2

type PersonalAccessTokenRepository_List_Call added in v0.17.2

type PersonalAccessTokenRepository_List_Call struct {
	*mock.Call
}

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 (*PersonalAccessTokenRepository_List_Call) Run added in v0.17.2

func (*PersonalAccessTokenRepository_List_Call) RunAndReturn added in v0.17.2

type PersonalAccessTokenRepository_MarkAsLastUsedNow_Call added in v0.17.2

type PersonalAccessTokenRepository_MarkAsLastUsedNow_Call struct {
	*mock.Call
}

PersonalAccessTokenRepository_MarkAsLastUsedNow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarkAsLastUsedNow'

func (*PersonalAccessTokenRepository_MarkAsLastUsedNow_Call) Return added in v0.17.2

func (*PersonalAccessTokenRepository_MarkAsLastUsedNow_Call) Run added in v0.17.2

func (*PersonalAccessTokenRepository_MarkAsLastUsedNow_Call) RunAndReturn added in v0.17.2

type PersonalAccessTokenRepository_Read_Call added in v0.17.2

type PersonalAccessTokenRepository_Read_Call struct {
	*mock.Call
}

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 (*PersonalAccessTokenRepository_Read_Call) Run added in v0.17.2

func (*PersonalAccessTokenRepository_Read_Call) RunAndReturn added in v0.17.2

type PersonalAccessTokenRepository_SaveBatch_Call added in v0.17.2

type PersonalAccessTokenRepository_SaveBatch_Call struct {
	*mock.Call
}

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 (*PersonalAccessTokenRepository_SaveBatch_Call) Run added in v0.17.2

func (*PersonalAccessTokenRepository_SaveBatch_Call) RunAndReturn added in v0.17.2

type PersonalAccessTokenRepository_Save_Call added in v0.17.2

type PersonalAccessTokenRepository_Save_Call struct {
	*mock.Call
}

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 (*PersonalAccessTokenRepository_Save_Call) Run added in v0.17.2

func (*PersonalAccessTokenRepository_Save_Call) RunAndReturn added in v0.17.2

type PersonalAccessTokenRepository_Transaction_Call added in v0.17.2

type PersonalAccessTokenRepository_Transaction_Call struct {
	*mock.Call
}

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 (*PersonalAccessTokenRepository_Transaction_Call) Run added in v0.17.2

func (*PersonalAccessTokenRepository_Transaction_Call) RunAndReturn added in v0.17.2

type PersonalAccessTokenRepository_Upsert_Call added in v0.17.2

type PersonalAccessTokenRepository_Upsert_Call struct {
	*mock.Call
}

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 (*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

type PolicyRepository struct {
	mock.Mock
}

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

func (_mock *PolicyRepository) Activate(tx core.DB, id uuid.UUID) error

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

func (_mock *PolicyRepository) Create(tx core.DB, t *models.Policy) error

Create provides a mock function for the type PolicyRepository

func (*PolicyRepository) CreateBatch added in v0.17.2

func (_mock *PolicyRepository) CreateBatch(tx core.DB, ts []models.Policy) error

CreateBatch provides a mock function for the type PolicyRepository

func (*PolicyRepository) Delete added in v0.17.2

func (_mock *PolicyRepository) Delete(tx core.DB, id uuid.UUID) error

Delete provides a mock function for the type PolicyRepository

func (*PolicyRepository) DeleteBatch added in v0.17.2

func (_mock *PolicyRepository) DeleteBatch(tx core.DB, ids []models.Policy) error

DeleteBatch provides a mock function for the type PolicyRepository

func (*PolicyRepository) EXPECT added in v0.17.2

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

func (_mock *PolicyRepository) FindByProjectID(projectID uuid.UUID) ([]models.Policy, error)

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

func (_mock *PolicyRepository) List(ids []uuid.UUID) ([]models.Policy, error)

List provides a mock function for the type PolicyRepository

func (*PolicyRepository) Read added in v0.17.2

func (_mock *PolicyRepository) Read(id uuid.UUID) (models.Policy, error)

Read provides a mock function for the type PolicyRepository

func (*PolicyRepository) Save added in v0.17.2

func (_mock *PolicyRepository) Save(tx core.DB, t *models.Policy) error

Save provides a mock function for the type PolicyRepository

func (*PolicyRepository) SaveBatch added in v0.17.2

func (_mock *PolicyRepository) SaveBatch(tx core.DB, ts []models.Policy) error

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

func (*PolicyRepository) Upsert added in v0.17.2

func (_mock *PolicyRepository) Upsert(t *[]*models.Policy, conflictingColumns []clause.Column, updateOnly []string) error

Upsert provides a mock function for the type PolicyRepository

type PolicyRepository_Activate_Call added in v0.17.2

type PolicyRepository_Activate_Call struct {
	*mock.Call
}

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 (*PolicyRepository_Activate_Call) Run added in v0.17.2

func (*PolicyRepository_Activate_Call) RunAndReturn added in v0.17.2

type PolicyRepository_All_Call added in v0.17.2

type PolicyRepository_All_Call struct {
	*mock.Call
}

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 (*PolicyRepository_All_Call) Run added in v0.17.2

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

type PolicyRepository_Begin_Call struct {
	*mock.Call
}

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 (*PolicyRepository_Begin_Call) Run added in v0.17.2

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

type PolicyRepository_CreateBatch_Call struct {
	*mock.Call
}

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 (*PolicyRepository_CreateBatch_Call) Run added in v0.17.2

func (*PolicyRepository_CreateBatch_Call) RunAndReturn added in v0.17.2

type PolicyRepository_Create_Call added in v0.17.2

type PolicyRepository_Create_Call struct {
	*mock.Call
}

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 (*PolicyRepository_Create_Call) Run added in v0.17.2

func (*PolicyRepository_Create_Call) RunAndReturn added in v0.17.2

type PolicyRepository_DeleteBatch_Call added in v0.17.2

type PolicyRepository_DeleteBatch_Call struct {
	*mock.Call
}

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 (*PolicyRepository_DeleteBatch_Call) Run added in v0.17.2

func (*PolicyRepository_DeleteBatch_Call) RunAndReturn added in v0.17.2

type PolicyRepository_Delete_Call added in v0.17.2

type PolicyRepository_Delete_Call struct {
	*mock.Call
}

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 (*PolicyRepository_Delete_Call) Run added in v0.17.2

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

All is a helper method to define mock.On call

func (*PolicyRepository_Expecter) Begin added in v0.17.2

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

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

type PolicyRepository_FindByOrganizationID_Call struct {
	*mock.Call
}

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 (*PolicyRepository_FindByOrganizationID_Call) Run added in v0.17.2

func (*PolicyRepository_FindByOrganizationID_Call) RunAndReturn added in v0.17.2

type PolicyRepository_FindByProjectID_Call added in v0.17.2

type PolicyRepository_FindByProjectID_Call struct {
	*mock.Call
}

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 (*PolicyRepository_FindByProjectID_Call) Run added in v0.17.2

func (*PolicyRepository_FindByProjectID_Call) RunAndReturn added in v0.17.2

type PolicyRepository_FindCommunityManagedPolicies_Call added in v0.17.2

type PolicyRepository_FindCommunityManagedPolicies_Call struct {
	*mock.Call
}

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 (*PolicyRepository_FindCommunityManagedPolicies_Call) Run added in v0.17.2

func (*PolicyRepository_FindCommunityManagedPolicies_Call) RunAndReturn added in v0.17.2

type PolicyRepository_GetDB_Call added in v0.17.2

type PolicyRepository_GetDB_Call struct {
	*mock.Call
}

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 (*PolicyRepository_GetDB_Call) Run added in v0.17.2

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

type PolicyRepository_List_Call struct {
	*mock.Call
}

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 (*PolicyRepository_List_Call) Run added in v0.17.2

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

type PolicyRepository_Read_Call struct {
	*mock.Call
}

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 (*PolicyRepository_Read_Call) Run added in v0.17.2

func (*PolicyRepository_Read_Call) RunAndReturn added in v0.17.2

type PolicyRepository_SaveBatch_Call added in v0.17.2

type PolicyRepository_SaveBatch_Call struct {
	*mock.Call
}

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 (*PolicyRepository_SaveBatch_Call) Run added in v0.17.2

func (*PolicyRepository_SaveBatch_Call) RunAndReturn added in v0.17.2

type PolicyRepository_Save_Call added in v0.17.2

type PolicyRepository_Save_Call struct {
	*mock.Call
}

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 (*PolicyRepository_Save_Call) Run added in v0.17.2

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

type PolicyRepository_Transaction_Call struct {
	*mock.Call
}

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 (*PolicyRepository_Transaction_Call) Run added in v0.17.2

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

type PolicyRepository_Upsert_Call struct {
	*mock.Call
}

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 (*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

type ProjectRepository struct {
	mock.Mock
}

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

func (_mock *ProjectRepository) Activate(tx core.DB, projectID uuid.UUID) error

Activate provides a mock function for the type ProjectRepository

func (*ProjectRepository) Create added in v0.17.2

func (_mock *ProjectRepository) Create(tx core.DB, project *models.Project) error

Create provides a mock function for the type ProjectRepository

func (*ProjectRepository) Delete added in v0.17.2

func (_mock *ProjectRepository) Delete(tx core.DB, projectID uuid.UUID) error

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 (*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

func (_mock *ProjectRepository) GetByOrgID(organizationID uuid.UUID) ([]models.Project, error)

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

func (_mock *ProjectRepository) GetProjectByAssetID(assetID uuid.UUID) (models.Project, error)

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

func (_mock *ProjectRepository) Read(projectID uuid.UUID) (models.Project, error)

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

func (_mock *ProjectRepository) Update(tx core.DB, project *models.Project) error

Update provides a mock function for the type ProjectRepository

func (*ProjectRepository) Upsert added in v0.17.2

func (_mock *ProjectRepository) Upsert(projects *[]*models.Project, conflictingColumns []clause.Column, toUpdate []string) error

Upsert provides a mock function for the type ProjectRepository

func (*ProjectRepository) UpsertSplit added in v0.17.2

func (_mock *ProjectRepository) UpsertSplit(tx core.DB, externalProviderID string, projects []*models.Project) ([]*models.Project, []*models.Project, error)

UpsertSplit provides a mock function for the type ProjectRepository

type ProjectRepository_Activate_Call added in v0.17.2

type ProjectRepository_Activate_Call struct {
	*mock.Call
}

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 (*ProjectRepository_Activate_Call) Run added in v0.17.2

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

type ProjectRepository_Create_Call struct {
	*mock.Call
}

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 (*ProjectRepository_Create_Call) Run added in v0.17.2

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

type ProjectRepository_Delete_Call struct {
	*mock.Call
}

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 (*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

type ProjectRepository_DisablePolicyForProject_Call struct {
	*mock.Call
}

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 (*ProjectRepository_DisablePolicyForProject_Call) Run added in v0.17.2

func (*ProjectRepository_DisablePolicyForProject_Call) RunAndReturn added in v0.17.2

type ProjectRepository_EnableCommunityManagedPolicies_Call added in v0.17.2

type ProjectRepository_EnableCommunityManagedPolicies_Call struct {
	*mock.Call
}

ProjectRepository_EnableCommunityManagedPolicies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnableCommunityManagedPolicies'

func (*ProjectRepository_EnableCommunityManagedPolicies_Call) Return added in v0.17.2

func (*ProjectRepository_EnableCommunityManagedPolicies_Call) Run added in v0.17.2

func (*ProjectRepository_EnableCommunityManagedPolicies_Call) RunAndReturn added in v0.17.2

type ProjectRepository_EnablePolicyForProject_Call added in v0.17.2

type ProjectRepository_EnablePolicyForProject_Call struct {
	*mock.Call
}

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 (*ProjectRepository_EnablePolicyForProject_Call) Run added in v0.17.2

func (*ProjectRepository_EnablePolicyForProject_Call) RunAndReturn added in v0.17.2

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

type ProjectRepository_GetByOrgID_Call struct {
	*mock.Call
}

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 (*ProjectRepository_GetByOrgID_Call) Run added in v0.17.2

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

type ProjectRepository_GetDirectChildProjects_Call struct {
	*mock.Call
}

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 (*ProjectRepository_GetDirectChildProjects_Call) Run added in v0.17.2

func (*ProjectRepository_GetDirectChildProjects_Call) RunAndReturn added in v0.17.2

type ProjectRepository_GetProjectByAssetID_Call added in v0.17.2

type ProjectRepository_GetProjectByAssetID_Call struct {
	*mock.Call
}

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 (*ProjectRepository_GetProjectByAssetID_Call) Run added in v0.17.2

func (*ProjectRepository_GetProjectByAssetID_Call) RunAndReturn added in v0.17.2

type ProjectRepository_ListPaged_Call added in v0.17.2

type ProjectRepository_ListPaged_Call struct {
	*mock.Call
}

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 (*ProjectRepository_ListPaged_Call) Run added in v0.17.2

func (_c *ProjectRepository_ListPaged_Call) Run(run func(projectIDs []uuid.UUID, parentID *uuid.UUID, orgID uuid.UUID, pageInfo core.PageInfo, search string)) *ProjectRepository_ListPaged_Call

func (*ProjectRepository_ListPaged_Call) RunAndReturn added in v0.17.2

func (_c *ProjectRepository_ListPaged_Call) RunAndReturn(run func(projectIDs []uuid.UUID, parentID *uuid.UUID, orgID uuid.UUID, pageInfo core.PageInfo, search string) (core.Paged[models.Project], error)) *ProjectRepository_ListPaged_Call

type ProjectRepository_List_Call added in v0.17.2

type ProjectRepository_List_Call struct {
	*mock.Call
}

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 (*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

func (_c *ProjectRepository_List_Call) RunAndReturn(run func(idSlice []uuid.UUID, parentID *uuid.UUID, organizationID uuid.UUID) ([]models.Project, error)) *ProjectRepository_List_Call

type ProjectRepository_ReadBySlugUnscoped_Call added in v0.17.2

type ProjectRepository_ReadBySlugUnscoped_Call struct {
	*mock.Call
}

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 (*ProjectRepository_ReadBySlugUnscoped_Call) Run added in v0.17.2

func (*ProjectRepository_ReadBySlugUnscoped_Call) RunAndReturn added in v0.17.2

type ProjectRepository_ReadBySlug_Call added in v0.17.2

type ProjectRepository_ReadBySlug_Call struct {
	*mock.Call
}

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 (*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

type ProjectRepository_Read_Call struct {
	*mock.Call
}

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 (*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

type ProjectRepository_RecursivelyGetChildProjects_Call struct {
	*mock.Call
}

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 (*ProjectRepository_RecursivelyGetChildProjects_Call) Run added in v0.17.2

func (*ProjectRepository_RecursivelyGetChildProjects_Call) RunAndReturn added in v0.17.2

type ProjectRepository_Update_Call added in v0.17.2

type ProjectRepository_Update_Call struct {
	*mock.Call
}

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 (*ProjectRepository_Update_Call) Run added in v0.17.2

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

type ProjectRepository_UpsertSplit_Call struct {
	*mock.Call
}

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 (*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

func (_c *ProjectRepository_UpsertSplit_Call) RunAndReturn(run func(tx core.DB, externalProviderID string, projects []*models.Project) ([]*models.Project, []*models.Project, error)) *ProjectRepository_UpsertSplit_Call

type ProjectRepository_Upsert_Call added in v0.17.2

type ProjectRepository_Upsert_Call struct {
	*mock.Call
}

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 (*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

type ProjectRiskHistoryRepository struct {
	mock.Mock
}

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 (*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

type ProjectRiskHistoryRepository_GetRiskHistory_Call struct {
	*mock.Call
}

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 (*ProjectRiskHistoryRepository_GetRiskHistory_Call) Run added in v0.17.2

func (*ProjectRiskHistoryRepository_GetRiskHistory_Call) RunAndReturn added in v0.17.2

type ProjectRiskHistoryRepository_UpdateRiskAggregation_Call added in v0.17.2

type ProjectRiskHistoryRepository_UpdateRiskAggregation_Call struct {
	*mock.Call
}

ProjectRiskHistoryRepository_UpdateRiskAggregation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRiskAggregation'

func (*ProjectRiskHistoryRepository_UpdateRiskAggregation_Call) Return added in v0.17.2

func (*ProjectRiskHistoryRepository_UpdateRiskAggregation_Call) Run added in v0.17.2

func (*ProjectRiskHistoryRepository_UpdateRiskAggregation_Call) RunAndReturn added in v0.17.2

type ProjectService added in v0.17.2

type ProjectService struct {
	mock.Mock
}

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

func (_mock *ProjectService) CreateProject(ctx core.Context, project *models.Project) error

CreateProject provides a mock function for the type ProjectService

func (*ProjectService) EXPECT added in v0.17.2

func (*ProjectService) GetDirectChildProjects added in v0.17.2

func (_mock *ProjectService) GetDirectChildProjects(projectID uuid.UUID) ([]models.Project, error)

GetDirectChildProjects provides a mock function for the type ProjectService

func (*ProjectService) ListAllowedProjects added in v0.17.2

func (_mock *ProjectService) ListAllowedProjects(ctx core.Context) ([]models.Project, error)

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

type ProjectService_BootstrapProject_Call struct {
	*mock.Call
}

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 (*ProjectService_BootstrapProject_Call) Run added in v0.17.2

func (*ProjectService_BootstrapProject_Call) RunAndReturn added in v0.17.2

type ProjectService_CreateProject_Call added in v0.17.2

type ProjectService_CreateProject_Call struct {
	*mock.Call
}

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 (*ProjectService_CreateProject_Call) Run added in v0.17.2

func (*ProjectService_CreateProject_Call) RunAndReturn added in v0.17.2

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

type ProjectService_GetDirectChildProjects_Call struct {
	*mock.Call
}

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 (*ProjectService_GetDirectChildProjects_Call) Run added in v0.17.2

func (*ProjectService_GetDirectChildProjects_Call) RunAndReturn added in v0.17.2

type ProjectService_ListAllowedProjectsPaged_Call added in v0.17.2

type ProjectService_ListAllowedProjectsPaged_Call struct {
	*mock.Call
}

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 (*ProjectService_ListAllowedProjectsPaged_Call) Run added in v0.17.2

func (*ProjectService_ListAllowedProjectsPaged_Call) RunAndReturn added in v0.17.2

type ProjectService_ListAllowedProjects_Call added in v0.17.2

type ProjectService_ListAllowedProjects_Call struct {
	*mock.Call
}

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 (*ProjectService_ListAllowedProjects_Call) Run added in v0.17.2

func (*ProjectService_ListAllowedProjects_Call) RunAndReturn added in v0.17.2

type ProjectService_ListProjectsByOrganizationID_Call added in v0.17.2

type ProjectService_ListProjectsByOrganizationID_Call struct {
	*mock.Call
}

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 (*ProjectService_ListProjectsByOrganizationID_Call) Run added in v0.17.2

func (*ProjectService_ListProjectsByOrganizationID_Call) RunAndReturn added in v0.17.2

type ProjectService_ReadBySlug_Call added in v0.17.2

type ProjectService_ReadBySlug_Call struct {
	*mock.Call
}

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 (*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

type ProjectService_RecursivelyGetChildProjects_Call struct {
	*mock.Call
}

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 (*ProjectService_RecursivelyGetChildProjects_Call) Run added in v0.17.2

func (*ProjectService_RecursivelyGetChildProjects_Call) RunAndReturn added in v0.17.2

type RBACProvider added in v0.17.2

type RBACProvider struct {
	mock.Mock
}

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

type RBACProvider_DomainsOfUser_Call struct {
	*mock.Call
}

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 (*RBACProvider_DomainsOfUser_Call) Run added in v0.17.2

func (*RBACProvider_DomainsOfUser_Call) RunAndReturn added in v0.17.2

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

type RBACProvider_GetDomainRBAC_Call struct {
	*mock.Call
}

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 (*RBACProvider_GetDomainRBAC_Call) Run added in v0.17.2

func (*RBACProvider_GetDomainRBAC_Call) RunAndReturn added in v0.17.2

type ReleaseRepository added in v0.17.2

type ReleaseRepository struct {
	mock.Mock
}

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

func (_mock *ReleaseRepository) Activate(tx core.DB, id uuid.UUID) error

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

func (_mock *ReleaseRepository) Create(tx core.DB, t *models.Release) error

Create provides a mock function for the type ReleaseRepository

func (*ReleaseRepository) CreateBatch added in v0.17.2

func (_mock *ReleaseRepository) CreateBatch(tx core.DB, ts []models.Release) error

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

func (_mock *ReleaseRepository) Delete(tx core.DB, id uuid.UUID) error

Delete provides a mock function for the type ReleaseRepository

func (*ReleaseRepository) DeleteBatch added in v0.17.2

func (_mock *ReleaseRepository) DeleteBatch(tx core.DB, ids []models.Release) error

DeleteBatch provides a mock function for the type ReleaseRepository

func (*ReleaseRepository) DeleteReleaseItem added in v0.17.2

func (_mock *ReleaseRepository) DeleteReleaseItem(tx core.DB, id uuid.UUID) error

DeleteReleaseItem provides a mock function for the type ReleaseRepository

func (*ReleaseRepository) EXPECT added in v0.17.2

func (*ReleaseRepository) GetByProjectID added in v0.17.2

func (_mock *ReleaseRepository) GetByProjectID(projectID uuid.UUID) ([]models.Release, error)

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

func (_mock *ReleaseRepository) List(ids []uuid.UUID) ([]models.Release, error)

List provides a mock function for the type ReleaseRepository

func (*ReleaseRepository) Read added in v0.17.2

func (_mock *ReleaseRepository) Read(id uuid.UUID) (models.Release, error)

Read provides a mock function for the type ReleaseRepository

func (*ReleaseRepository) ReadRecursive added in v0.17.2

func (_mock *ReleaseRepository) ReadRecursive(id uuid.UUID) (models.Release, error)

ReadRecursive provides a mock function for the type ReleaseRepository

func (*ReleaseRepository) ReadWithItems added in v0.17.2

func (_mock *ReleaseRepository) ReadWithItems(id uuid.UUID) (models.Release, error)

ReadWithItems provides a mock function for the type ReleaseRepository

func (*ReleaseRepository) Save added in v0.17.2

func (_mock *ReleaseRepository) Save(tx core.DB, t *models.Release) error

Save provides a mock function for the type ReleaseRepository

func (*ReleaseRepository) SaveBatch added in v0.17.2

func (_mock *ReleaseRepository) SaveBatch(tx core.DB, ts []models.Release) error

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

func (*ReleaseRepository) Upsert added in v0.17.2

func (_mock *ReleaseRepository) Upsert(t *[]*models.Release, conflictingColumns []clause.Column, updateOnly []string) error

Upsert provides a mock function for the type ReleaseRepository

type ReleaseRepository_Activate_Call added in v0.17.2

type ReleaseRepository_Activate_Call struct {
	*mock.Call
}

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 (*ReleaseRepository_Activate_Call) Run added in v0.17.2

func (*ReleaseRepository_Activate_Call) RunAndReturn added in v0.17.2

type ReleaseRepository_All_Call added in v0.17.2

type ReleaseRepository_All_Call struct {
	*mock.Call
}

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 (*ReleaseRepository_All_Call) Run added in v0.17.2

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

type ReleaseRepository_Begin_Call struct {
	*mock.Call
}

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 (*ReleaseRepository_Begin_Call) Run added in v0.17.2

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

type ReleaseRepository_CreateBatch_Call struct {
	*mock.Call
}

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 (*ReleaseRepository_CreateBatch_Call) Run added in v0.17.2

func (*ReleaseRepository_CreateBatch_Call) RunAndReturn added in v0.17.2

type ReleaseRepository_CreateReleaseItem_Call added in v0.17.2

type ReleaseRepository_CreateReleaseItem_Call struct {
	*mock.Call
}

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 (*ReleaseRepository_CreateReleaseItem_Call) Run added in v0.17.2

func (*ReleaseRepository_CreateReleaseItem_Call) RunAndReturn added in v0.17.2

type ReleaseRepository_Create_Call added in v0.17.2

type ReleaseRepository_Create_Call struct {
	*mock.Call
}

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 (*ReleaseRepository_Create_Call) Run added in v0.17.2

func (*ReleaseRepository_Create_Call) RunAndReturn added in v0.17.2

type ReleaseRepository_DeleteBatch_Call added in v0.17.2

type ReleaseRepository_DeleteBatch_Call struct {
	*mock.Call
}

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 (*ReleaseRepository_DeleteBatch_Call) Run added in v0.17.2

func (*ReleaseRepository_DeleteBatch_Call) RunAndReturn added in v0.17.2

type ReleaseRepository_DeleteReleaseItem_Call added in v0.17.2

type ReleaseRepository_DeleteReleaseItem_Call struct {
	*mock.Call
}

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 (*ReleaseRepository_DeleteReleaseItem_Call) Run added in v0.17.2

func (*ReleaseRepository_DeleteReleaseItem_Call) RunAndReturn added in v0.17.2

type ReleaseRepository_Delete_Call added in v0.17.2

type ReleaseRepository_Delete_Call struct {
	*mock.Call
}

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 (*ReleaseRepository_Delete_Call) Run added in v0.17.2

func (*ReleaseRepository_Delete_Call) RunAndReturn added in v0.17.2

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

All is a helper method to define mock.On call

func (*ReleaseRepository_Expecter) Begin added in v0.17.2

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

type ReleaseRepository_GetByProjectIDPaged_Call struct {
	*mock.Call
}

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 (*ReleaseRepository_GetByProjectIDPaged_Call) Run added in v0.17.2

func (*ReleaseRepository_GetByProjectIDPaged_Call) RunAndReturn added in v0.17.2

type ReleaseRepository_GetByProjectID_Call added in v0.17.2

type ReleaseRepository_GetByProjectID_Call struct {
	*mock.Call
}

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 (*ReleaseRepository_GetByProjectID_Call) Run added in v0.17.2

func (*ReleaseRepository_GetByProjectID_Call) RunAndReturn added in v0.17.2

type ReleaseRepository_GetCandidateItemsForRelease_Call added in v0.17.2

type ReleaseRepository_GetCandidateItemsForRelease_Call struct {
	*mock.Call
}

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 (*ReleaseRepository_GetCandidateItemsForRelease_Call) Run added in v0.17.2

func (*ReleaseRepository_GetCandidateItemsForRelease_Call) RunAndReturn added in v0.17.2

type ReleaseRepository_GetDB_Call added in v0.17.2

type ReleaseRepository_GetDB_Call struct {
	*mock.Call
}

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 (*ReleaseRepository_GetDB_Call) Run added in v0.17.2

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

type ReleaseRepository_List_Call struct {
	*mock.Call
}

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 (*ReleaseRepository_List_Call) Run added in v0.17.2

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

type ReleaseRepository_ReadRecursive_Call struct {
	*mock.Call
}

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 (*ReleaseRepository_ReadRecursive_Call) Run added in v0.17.2

func (*ReleaseRepository_ReadRecursive_Call) RunAndReturn added in v0.17.2

type ReleaseRepository_ReadWithItems_Call added in v0.17.2

type ReleaseRepository_ReadWithItems_Call struct {
	*mock.Call
}

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 (*ReleaseRepository_ReadWithItems_Call) Run added in v0.17.2

func (*ReleaseRepository_ReadWithItems_Call) RunAndReturn added in v0.17.2

type ReleaseRepository_Read_Call added in v0.17.2

type ReleaseRepository_Read_Call struct {
	*mock.Call
}

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 (*ReleaseRepository_Read_Call) Run added in v0.17.2

func (*ReleaseRepository_Read_Call) RunAndReturn added in v0.17.2

type ReleaseRepository_SaveBatch_Call added in v0.17.2

type ReleaseRepository_SaveBatch_Call struct {
	*mock.Call
}

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 (*ReleaseRepository_SaveBatch_Call) Run added in v0.17.2

func (*ReleaseRepository_SaveBatch_Call) RunAndReturn added in v0.17.2

type ReleaseRepository_Save_Call added in v0.17.2

type ReleaseRepository_Save_Call struct {
	*mock.Call
}

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 (*ReleaseRepository_Save_Call) Run added in v0.17.2

func (*ReleaseRepository_Save_Call) RunAndReturn added in v0.17.2

type ReleaseRepository_Transaction_Call added in v0.17.2

type ReleaseRepository_Transaction_Call struct {
	*mock.Call
}

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 (*ReleaseRepository_Transaction_Call) Run added in v0.17.2

func (*ReleaseRepository_Transaction_Call) RunAndReturn added in v0.17.2

type ReleaseRepository_Upsert_Call added in v0.17.2

type ReleaseRepository_Upsert_Call struct {
	*mock.Call
}

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 (*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

type SBOM struct {
	mock.Mock
}

SBOM is an autogenerated mock type for the SBOM type

func NewSBOM added in v0.17.2

func NewSBOM(t interface {
	mock.TestingT
	Cleanup(func())
}) *SBOM

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

type SBOMScanner struct {
	mock.Mock
}

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

type SBOMScanner_Scan_Call struct {
	*mock.Call
}

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 (*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

type SBOM_GetCdxBom_Call struct {
	*mock.Call
}

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

type SBOM_GetComponents_Call struct {
	*mock.Call
}

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

type SBOM_GetDependencies_Call struct {
	*mock.Call
}

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 (*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

type SBOM_GetMetadata_Call struct {
	*mock.Call
}

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

type StatisticsRepository struct {
	mock.Mock
}

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 (*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

type StatisticsRepository_AverageFixingTimeByCvssForRelease_Call struct {
	*mock.Call
}

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 (*StatisticsRepository_AverageFixingTimeByCvssForRelease_Call) Run added in v0.17.2

func (*StatisticsRepository_AverageFixingTimeByCvssForRelease_Call) RunAndReturn added in v0.17.2

type StatisticsRepository_AverageFixingTimeByCvss_Call added in v0.17.2

type StatisticsRepository_AverageFixingTimeByCvss_Call struct {
	*mock.Call
}

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 (*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

func (_c *StatisticsRepository_AverageFixingTimeByCvss_Call) RunAndReturn(run func(artifactName *string, assetVersionName string, assetID uuid.UUID, cvssIntervalStart float64, cvssIntervalEnd float64) (time.Duration, error)) *StatisticsRepository_AverageFixingTimeByCvss_Call

type StatisticsRepository_AverageFixingTimeForRelease_Call added in v0.17.2

type StatisticsRepository_AverageFixingTimeForRelease_Call struct {
	*mock.Call
}

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 (*StatisticsRepository_AverageFixingTimeForRelease_Call) Run added in v0.17.2

func (*StatisticsRepository_AverageFixingTimeForRelease_Call) RunAndReturn added in v0.17.2

type StatisticsRepository_AverageFixingTime_Call added in v0.17.2

type StatisticsRepository_AverageFixingTime_Call struct {
	*mock.Call
}

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 (*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

func (_c *StatisticsRepository_AverageFixingTime_Call) RunAndReturn(run func(artifactNam *string, assetVersionName string, assetID uuid.UUID, riskIntervalStart float64, riskIntervalEnd float64) (time.Duration, error)) *StatisticsRepository_AverageFixingTime_Call

type StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call added in v0.17.2

type StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call struct {
	*mock.Call
}

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 (*StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call) Run added in v0.17.2

func (*StatisticsRepository_CVESWithKnownExploitsInAssetVersion_Call) RunAndReturn added in v0.17.2

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

type StatisticsRepository_TimeTravelDependencyVulnState_Call struct {
	*mock.Call
}

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 (*StatisticsRepository_TimeTravelDependencyVulnState_Call) Run added in v0.17.2

func (*StatisticsRepository_TimeTravelDependencyVulnState_Call) RunAndReturn added in v0.17.2

type StatisticsService added in v0.17.2

type StatisticsService struct {
	mock.Mock
}

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 (*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

type StatisticsService_GetArtifactRiskHistory_Call struct {
	*mock.Call
}

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 (*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

type StatisticsService_GetAverageFixingTimeByCvssForRelease_Call struct {
	*mock.Call
}

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 (*StatisticsService_GetAverageFixingTimeByCvssForRelease_Call) Run added in v0.17.2

func (*StatisticsService_GetAverageFixingTimeByCvssForRelease_Call) RunAndReturn added in v0.17.2

type StatisticsService_GetAverageFixingTimeByCvss_Call added in v0.17.2

type StatisticsService_GetAverageFixingTimeByCvss_Call struct {
	*mock.Call
}

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 (*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

type StatisticsService_GetAverageFixingTimeForRelease_Call struct {
	*mock.Call
}

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 (*StatisticsService_GetAverageFixingTimeForRelease_Call) Run added in v0.17.2

func (*StatisticsService_GetAverageFixingTimeForRelease_Call) RunAndReturn added in v0.17.2

type StatisticsService_GetAverageFixingTime_Call added in v0.17.2

type StatisticsService_GetAverageFixingTime_Call struct {
	*mock.Call
}

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 (*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

type StatisticsService_GetComponentRisk_Call struct {
	*mock.Call
}

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 (*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

type StatisticsService_GetReleaseRiskHistory_Call struct {
	*mock.Call
}

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 (*StatisticsService_GetReleaseRiskHistory_Call) Run added in v0.17.2

func (*StatisticsService_GetReleaseRiskHistory_Call) RunAndReturn added in v0.17.2

type StatisticsService_UpdateArtifactRiskAggregation_Call added in v0.17.2

type StatisticsService_UpdateArtifactRiskAggregation_Call struct {
	*mock.Call
}

StatisticsService_UpdateArtifactRiskAggregation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateArtifactRiskAggregation'

func (*StatisticsService_UpdateArtifactRiskAggregation_Call) Return added in v0.17.2

func (*StatisticsService_UpdateArtifactRiskAggregation_Call) Run added in v0.17.2

func (*StatisticsService_UpdateArtifactRiskAggregation_Call) RunAndReturn added in v0.17.2

type SupplyChainRepository added in v0.17.2

type SupplyChainRepository struct {
	mock.Mock
}

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

func (_mock *SupplyChainRepository) Activate(tx core.DB, id uuid.UUID) error

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

func (_mock *SupplyChainRepository) Delete(tx core.DB, id uuid.UUID) error

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 (*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

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

type SupplyChainRepository_Activate_Call struct {
	*mock.Call
}

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 (*SupplyChainRepository_Activate_Call) Run added in v0.17.2

func (*SupplyChainRepository_Activate_Call) RunAndReturn added in v0.17.2

type SupplyChainRepository_All_Call added in v0.17.2

type SupplyChainRepository_All_Call struct {
	*mock.Call
}

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 (*SupplyChainRepository_All_Call) Run added in v0.17.2

func (*SupplyChainRepository_All_Call) RunAndReturn added in v0.17.2

type SupplyChainRepository_Begin_Call added in v0.17.2

type SupplyChainRepository_Begin_Call struct {
	*mock.Call
}

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 (*SupplyChainRepository_Begin_Call) Run added in v0.17.2

func (*SupplyChainRepository_Begin_Call) RunAndReturn added in v0.17.2

type SupplyChainRepository_CreateBatch_Call added in v0.17.2

type SupplyChainRepository_CreateBatch_Call struct {
	*mock.Call
}

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 (*SupplyChainRepository_CreateBatch_Call) Run added in v0.17.2

func (*SupplyChainRepository_CreateBatch_Call) RunAndReturn added in v0.17.2

type SupplyChainRepository_Create_Call added in v0.17.2

type SupplyChainRepository_Create_Call struct {
	*mock.Call
}

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 (*SupplyChainRepository_Create_Call) Run added in v0.17.2

func (*SupplyChainRepository_Create_Call) RunAndReturn added in v0.17.2

type SupplyChainRepository_DeleteBatch_Call added in v0.17.2

type SupplyChainRepository_DeleteBatch_Call struct {
	*mock.Call
}

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 (*SupplyChainRepository_DeleteBatch_Call) Run added in v0.17.2

func (*SupplyChainRepository_DeleteBatch_Call) RunAndReturn added in v0.17.2

type SupplyChainRepository_Delete_Call added in v0.17.2

type SupplyChainRepository_Delete_Call struct {
	*mock.Call
}

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 (*SupplyChainRepository_Delete_Call) Run added in v0.17.2

func (*SupplyChainRepository_Delete_Call) RunAndReturn added in v0.17.2

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

All is a helper method to define mock.On call

func (*SupplyChainRepository_Expecter) Begin added in v0.17.2

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

GetDB is a helper method to define mock.On call

  • tx core.DB

func (*SupplyChainRepository_Expecter) List added in v0.17.2

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

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

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

type SupplyChainRepository_FindByDigest_Call struct {
	*mock.Call
}

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 (*SupplyChainRepository_FindByDigest_Call) Run added in v0.17.2

func (*SupplyChainRepository_FindByDigest_Call) RunAndReturn added in v0.17.2

type SupplyChainRepository_FindBySupplyChainID_Call added in v0.17.2

type SupplyChainRepository_FindBySupplyChainID_Call struct {
	*mock.Call
}

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 (*SupplyChainRepository_FindBySupplyChainID_Call) Run added in v0.17.2

func (*SupplyChainRepository_FindBySupplyChainID_Call) RunAndReturn added in v0.17.2

type SupplyChainRepository_GetDB_Call added in v0.17.2

type SupplyChainRepository_GetDB_Call struct {
	*mock.Call
}

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 (*SupplyChainRepository_GetDB_Call) Run added in v0.17.2

func (*SupplyChainRepository_GetDB_Call) RunAndReturn added in v0.17.2

type SupplyChainRepository_List_Call added in v0.17.2

type SupplyChainRepository_List_Call struct {
	*mock.Call
}

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 (*SupplyChainRepository_List_Call) Run added in v0.17.2

func (*SupplyChainRepository_List_Call) RunAndReturn added in v0.17.2

type SupplyChainRepository_PercentageOfVerifiedSupplyChains_Call added in v0.17.2

type SupplyChainRepository_PercentageOfVerifiedSupplyChains_Call struct {
	*mock.Call
}

SupplyChainRepository_PercentageOfVerifiedSupplyChains_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PercentageOfVerifiedSupplyChains'

func (*SupplyChainRepository_PercentageOfVerifiedSupplyChains_Call) Return added in v0.17.2

func (*SupplyChainRepository_PercentageOfVerifiedSupplyChains_Call) Run added in v0.17.2

func (*SupplyChainRepository_PercentageOfVerifiedSupplyChains_Call) RunAndReturn added in v0.17.2

type SupplyChainRepository_Read_Call added in v0.17.2

type SupplyChainRepository_Read_Call struct {
	*mock.Call
}

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 (*SupplyChainRepository_Read_Call) Run added in v0.17.2

func (*SupplyChainRepository_Read_Call) RunAndReturn added in v0.17.2

type SupplyChainRepository_SaveBatch_Call added in v0.17.2

type SupplyChainRepository_SaveBatch_Call struct {
	*mock.Call
}

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 (*SupplyChainRepository_SaveBatch_Call) Run added in v0.17.2

func (*SupplyChainRepository_SaveBatch_Call) RunAndReturn added in v0.17.2

type SupplyChainRepository_Save_Call added in v0.17.2

type SupplyChainRepository_Save_Call struct {
	*mock.Call
}

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 (*SupplyChainRepository_Save_Call) Run added in v0.17.2

func (*SupplyChainRepository_Save_Call) RunAndReturn added in v0.17.2

type SupplyChainRepository_Transaction_Call added in v0.17.2

type SupplyChainRepository_Transaction_Call struct {
	*mock.Call
}

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 (*SupplyChainRepository_Transaction_Call) Run added in v0.17.2

func (*SupplyChainRepository_Transaction_Call) RunAndReturn added in v0.17.2

type SupplyChainRepository_Upsert_Call added in v0.17.2

type SupplyChainRepository_Upsert_Call struct {
	*mock.Call
}

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 (*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

type ThirdPartyIntegration struct {
	mock.Mock
}

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

func (_mock *ThirdPartyIntegration) CreateLabels(ctx context.Context, asset models.Asset) error

CreateLabels provides a mock function for the type ThirdPartyIntegration

func (*ThirdPartyIntegration) EXPECT added in v0.17.2

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

func (_mock *ThirdPartyIntegration) ListOrgs(ctx core.Context) ([]models.Org, error)

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

type ThirdPartyIntegration_CreateIssue_Call struct {
	*mock.Call
}

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 (*ThirdPartyIntegration_CreateIssue_Call) Run added in v0.17.2

func (_c *ThirdPartyIntegration_CreateIssue_Call) Run(run func(ctx context.Context, asset models.Asset, assetVersionName string, vuln models.Vuln, projectSlug string, orgSlug string, justification string, userID string)) *ThirdPartyIntegration_CreateIssue_Call

func (*ThirdPartyIntegration_CreateIssue_Call) RunAndReturn added in v0.17.2

func (_c *ThirdPartyIntegration_CreateIssue_Call) RunAndReturn(run func(ctx context.Context, asset models.Asset, assetVersionName string, vuln models.Vuln, projectSlug string, orgSlug string, justification string, userID string) error) *ThirdPartyIntegration_CreateIssue_Call

type ThirdPartyIntegration_CreateLabels_Call added in v0.17.3

type ThirdPartyIntegration_CreateLabels_Call struct {
	*mock.Call
}

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 (*ThirdPartyIntegration_CreateLabels_Call) Run added in v0.17.3

func (*ThirdPartyIntegration_CreateLabels_Call) RunAndReturn added in v0.17.3

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

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

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

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

type ThirdPartyIntegration_GetID_Call struct {
	*mock.Call
}

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 (*ThirdPartyIntegration_GetID_Call) Run added in v0.17.2

func (*ThirdPartyIntegration_GetID_Call) RunAndReturn added in v0.17.2

type ThirdPartyIntegration_HandleEvent_Call added in v0.17.2

type ThirdPartyIntegration_HandleEvent_Call struct {
	*mock.Call
}

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 (*ThirdPartyIntegration_HandleEvent_Call) Run added in v0.17.2

func (*ThirdPartyIntegration_HandleEvent_Call) RunAndReturn added in v0.17.2

type ThirdPartyIntegration_HandleWebhook_Call added in v0.17.2

type ThirdPartyIntegration_HandleWebhook_Call struct {
	*mock.Call
}

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 (*ThirdPartyIntegration_HandleWebhook_Call) Run added in v0.17.2

func (*ThirdPartyIntegration_HandleWebhook_Call) RunAndReturn added in v0.17.2

type ThirdPartyIntegration_HasAccessToExternalEntityProvider_Call added in v0.17.2

type ThirdPartyIntegration_HasAccessToExternalEntityProvider_Call struct {
	*mock.Call
}

ThirdPartyIntegration_HasAccessToExternalEntityProvider_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasAccessToExternalEntityProvider'

func (*ThirdPartyIntegration_HasAccessToExternalEntityProvider_Call) Return added in v0.17.2

func (*ThirdPartyIntegration_HasAccessToExternalEntityProvider_Call) Run added in v0.17.2

func (*ThirdPartyIntegration_HasAccessToExternalEntityProvider_Call) RunAndReturn added in v0.17.2

type ThirdPartyIntegration_ListGroups_Call added in v0.17.2

type ThirdPartyIntegration_ListGroups_Call struct {
	*mock.Call
}

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 (*ThirdPartyIntegration_ListGroups_Call) Run added in v0.17.2

func (*ThirdPartyIntegration_ListGroups_Call) RunAndReturn added in v0.17.2

type ThirdPartyIntegration_ListOrgs_Call added in v0.17.2

type ThirdPartyIntegration_ListOrgs_Call struct {
	*mock.Call
}

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 (*ThirdPartyIntegration_ListOrgs_Call) Run added in v0.17.2

func (*ThirdPartyIntegration_ListOrgs_Call) RunAndReturn added in v0.17.2

type ThirdPartyIntegration_ListProjects_Call added in v0.17.2

type ThirdPartyIntegration_ListProjects_Call struct {
	*mock.Call
}

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 (*ThirdPartyIntegration_ListProjects_Call) Run added in v0.17.2

func (*ThirdPartyIntegration_ListProjects_Call) RunAndReturn added in v0.17.2

func (_c *ThirdPartyIntegration_ListProjects_Call) RunAndReturn(run func(ctx context.Context, userID string, providerID string, groupID string) ([]models.Asset, []core.Role, error)) *ThirdPartyIntegration_ListProjects_Call

type ThirdPartyIntegration_ListRepositories_Call added in v0.17.2

type ThirdPartyIntegration_ListRepositories_Call struct {
	*mock.Call
}

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 (*ThirdPartyIntegration_ListRepositories_Call) Run added in v0.17.2

func (*ThirdPartyIntegration_ListRepositories_Call) RunAndReturn added in v0.17.2

type ThirdPartyIntegration_UpdateIssue_Call added in v0.17.2

type ThirdPartyIntegration_UpdateIssue_Call struct {
	*mock.Call
}

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 (*ThirdPartyIntegration_UpdateIssue_Call) Run added in v0.17.2

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

type ThirdPartyIntegration_WantsToHandleWebhook_Call struct {
	*mock.Call
}

ThirdPartyIntegration_WantsToHandleWebhook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WantsToHandleWebhook'

func (*ThirdPartyIntegration_WantsToHandleWebhook_Call) Return added in v0.17.2

func (*ThirdPartyIntegration_WantsToHandleWebhook_Call) Run added in v0.17.2

func (*ThirdPartyIntegration_WantsToHandleWebhook_Call) RunAndReturn added in v0.17.2

type Verifier added in v0.17.2

type Verifier struct {
	mock.Mock
}

Verifier is an autogenerated mock type for the Verifier type

func NewVerifier added in v0.17.2

func NewVerifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *Verifier

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

func (*Verifier) VerifyRequestSignature added in v0.17.2

func (_mock *Verifier) VerifyRequestSignature(req *http.Request) (string, string, error)

VerifyRequestSignature provides a mock function for the type Verifier

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

type Verifier_VerifyRequestSignature_Call struct {
	*mock.Call
}

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 (*Verifier_VerifyRequestSignature_Call) Run added in v0.17.2

func (*Verifier_VerifyRequestSignature_Call) RunAndReturn added in v0.17.2

type VulnEventRepository added in v0.17.2

type VulnEventRepository struct {
	mock.Mock
}

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 (*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

func (*VulnEventRepository) Save added in v0.17.2

func (_mock *VulnEventRepository) Save(db core.DB, event *models.VulnEvent) error

Save provides a mock function for the type VulnEventRepository

func (*VulnEventRepository) SaveBatch added in v0.17.2

func (_mock *VulnEventRepository) SaveBatch(db core.DB, events []models.VulnEvent) error

SaveBatch 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

type VulnEventRepository_ReadAssetEventsByVulnID_Call struct {
	*mock.Call
}

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 (*VulnEventRepository_ReadAssetEventsByVulnID_Call) Run added in v0.17.2

func (*VulnEventRepository_ReadAssetEventsByVulnID_Call) RunAndReturn added in v0.17.2

type VulnEventRepository_ReadEventsByAssetIDAndAssetVersionName_Call added in v0.17.2

type VulnEventRepository_ReadEventsByAssetIDAndAssetVersionName_Call struct {
	*mock.Call
}

VulnEventRepository_ReadEventsByAssetIDAndAssetVersionName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadEventsByAssetIDAndAssetVersionName'

func (*VulnEventRepository_ReadEventsByAssetIDAndAssetVersionName_Call) Return added in v0.17.2

func (*VulnEventRepository_ReadEventsByAssetIDAndAssetVersionName_Call) Run added in v0.17.2

func (*VulnEventRepository_ReadEventsByAssetIDAndAssetVersionName_Call) RunAndReturn added in v0.17.2

type VulnEventRepository_SaveBatch_Call added in v0.17.2

type VulnEventRepository_SaveBatch_Call struct {
	*mock.Call
}

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 (*VulnEventRepository_SaveBatch_Call) Run added in v0.17.2

func (*VulnEventRepository_SaveBatch_Call) RunAndReturn added in v0.17.2

type VulnEventRepository_Save_Call added in v0.17.2

type VulnEventRepository_Save_Call struct {
	*mock.Call
}

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 (*VulnEventRepository_Save_Call) Run added in v0.17.2

func (*VulnEventRepository_Save_Call) RunAndReturn added in v0.17.2

type VulnRepository added in v0.17.2

type VulnRepository struct {
	mock.Mock
}

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 (*VulnRepository) FindByTicketID added in v0.17.2

func (_mock *VulnRepository) FindByTicketID(tx core.DB, ticketID string) (models.Vuln, error)

FindByTicketID provides a mock function for the type VulnRepository

func (*VulnRepository) GetOrgFromVuln added in v0.17.2

func (_mock *VulnRepository) GetOrgFromVuln(vuln models.Vuln) (models.Org, error)

GetOrgFromVuln provides a mock function for the type VulnRepository

func (*VulnRepository) Save added in v0.17.2

func (_mock *VulnRepository) Save(db core.DB, vuln *models.Vuln) error

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

type VulnRepository_ApplyAndSave_Call struct {
	*mock.Call
}

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 (*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

type VulnRepository_FindByTicketID_Call struct {
	*mock.Call
}

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 (*VulnRepository_FindByTicketID_Call) Run added in v0.17.2

func (*VulnRepository_FindByTicketID_Call) RunAndReturn added in v0.17.2

type VulnRepository_GetOrgFromVuln_Call added in v0.17.2

type VulnRepository_GetOrgFromVuln_Call struct {
	*mock.Call
}

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 (*VulnRepository_GetOrgFromVuln_Call) Run added in v0.17.2

func (*VulnRepository_GetOrgFromVuln_Call) RunAndReturn added in v0.17.2

type VulnRepository_Save_Call added in v0.17.2

type VulnRepository_Save_Call struct {
	*mock.Call
}

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 (*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

type VulnRepository_Transaction_Call struct {
	*mock.Call
}

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 (*VulnRepository_Transaction_Call) Run added in v0.17.2

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

type WebhookIntegrationRepository struct {
	mock.Mock
}

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

func (_mock *WebhookIntegrationRepository) Delete(tx core.DB, id uuid.UUID) error

Delete provides a mock function for the type WebhookIntegrationRepository

func (*WebhookIntegrationRepository) EXPECT added in v0.17.2

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

Read provides a mock function for the type WebhookIntegrationRepository

func (*WebhookIntegrationRepository) Save added in v0.17.2

Save provides a mock function for the type WebhookIntegrationRepository

type WebhookIntegrationRepository_Delete_Call added in v0.17.2

type WebhookIntegrationRepository_Delete_Call struct {
	*mock.Call
}

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 (*WebhookIntegrationRepository_Delete_Call) Run added in v0.17.2

func (*WebhookIntegrationRepository_Delete_Call) RunAndReturn added in v0.17.2

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

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

type WebhookIntegrationRepository_FindByOrgIDAndProjectID_Call struct {
	*mock.Call
}

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 (*WebhookIntegrationRepository_FindByOrgIDAndProjectID_Call) Run added in v0.17.2

func (*WebhookIntegrationRepository_FindByOrgIDAndProjectID_Call) RunAndReturn added in v0.17.2

type WebhookIntegrationRepository_GetClientByIntegrationID_Call added in v0.17.2

type WebhookIntegrationRepository_GetClientByIntegrationID_Call struct {
	*mock.Call
}

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 (*WebhookIntegrationRepository_GetClientByIntegrationID_Call) Run added in v0.17.2

func (*WebhookIntegrationRepository_GetClientByIntegrationID_Call) RunAndReturn added in v0.17.2

type WebhookIntegrationRepository_GetProjectWebhooks_Call added in v0.17.2

type WebhookIntegrationRepository_GetProjectWebhooks_Call struct {
	*mock.Call
}

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 (*WebhookIntegrationRepository_GetProjectWebhooks_Call) Run added in v0.17.2

func (*WebhookIntegrationRepository_GetProjectWebhooks_Call) RunAndReturn added in v0.17.2

type WebhookIntegrationRepository_Read_Call added in v0.17.2

type WebhookIntegrationRepository_Read_Call struct {
	*mock.Call
}

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 (*WebhookIntegrationRepository_Read_Call) Run added in v0.17.2

func (*WebhookIntegrationRepository_Read_Call) RunAndReturn added in v0.17.2

type WebhookIntegrationRepository_Save_Call added in v0.17.2

type WebhookIntegrationRepository_Save_Call struct {
	*mock.Call
}

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 (*WebhookIntegrationRepository_Save_Call) Run added in v0.17.2

func (*WebhookIntegrationRepository_Save_Call) RunAndReturn added in v0.17.2

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL