Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.5.15 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccesscontrolAccessControl added in v0.5.14

type AccesscontrolAccessControl struct {
	mock.Mock
}

AccesscontrolAccessControl is an autogenerated mock type for the AccessControl type

func NewAccesscontrolAccessControl added in v0.5.14

func NewAccesscontrolAccessControl(t interface {
	mock.TestingT
	Cleanup(func())
}) *AccesscontrolAccessControl

NewAccesscontrolAccessControl creates a new instance of AccesscontrolAccessControl. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AccesscontrolAccessControl) AllowRole added in v0.5.14

func (_m *AccesscontrolAccessControl) AllowRole(role string, object string, action []accesscontrol.Action) error

AllowRole provides a mock function with given fields: role, object, action

func (*AccesscontrolAccessControl) AllowRoleInProject added in v0.5.14

func (_m *AccesscontrolAccessControl) AllowRoleInProject(project string, role string, object string, action []accesscontrol.Action) error

AllowRoleInProject provides a mock function with given fields: project, role, object, action

func (*AccesscontrolAccessControl) EXPECT added in v0.5.14

func (*AccesscontrolAccessControl) GetAllMembersOfOrganization added in v0.5.14

func (_m *AccesscontrolAccessControl) GetAllMembersOfOrganization() ([]string, error)

GetAllMembersOfOrganization provides a mock function with no fields

func (*AccesscontrolAccessControl) GetAllMembersOfProject added in v0.5.14

func (_m *AccesscontrolAccessControl) GetAllMembersOfProject(projectID string) ([]string, error)

GetAllMembersOfProject provides a mock function with given fields: projectID

func (*AccesscontrolAccessControl) GetAllProjectsForUser added in v0.5.14

func (_m *AccesscontrolAccessControl) GetAllProjectsForUser(user string) []string

GetAllProjectsForUser provides a mock function with given fields: user

func (*AccesscontrolAccessControl) GetAllRoles added in v0.5.14

func (_m *AccesscontrolAccessControl) GetAllRoles(user string) []string

GetAllRoles provides a mock function with given fields: user

func (*AccesscontrolAccessControl) GetDomainRole added in v0.5.14

func (_m *AccesscontrolAccessControl) GetDomainRole(user string) (string, error)

GetDomainRole provides a mock function with given fields: user

func (*AccesscontrolAccessControl) GetOwnerOfOrganization added in v0.5.14

func (_m *AccesscontrolAccessControl) GetOwnerOfOrganization() (string, error)

GetOwnerOfOrganization provides a mock function with no fields

func (*AccesscontrolAccessControl) GetProjectRole added in v0.5.14

func (_m *AccesscontrolAccessControl) GetProjectRole(user string, project string) (string, error)

GetProjectRole provides a mock function with given fields: user, project

func (*AccesscontrolAccessControl) GrantRole added in v0.5.14

func (_m *AccesscontrolAccessControl) GrantRole(subject string, role string) error

GrantRole provides a mock function with given fields: subject, role

func (*AccesscontrolAccessControl) GrantRoleInProject added in v0.5.14

func (_m *AccesscontrolAccessControl) GrantRoleInProject(subject string, role string, project string) error

GrantRoleInProject provides a mock function with given fields: subject, role, project

func (*AccesscontrolAccessControl) HasAccess added in v0.5.14

func (_m *AccesscontrolAccessControl) HasAccess(subject string) bool

HasAccess provides a mock function with given fields: subject

func (*AccesscontrolAccessControl) InheritProjectRole added in v0.5.14

func (_m *AccesscontrolAccessControl) InheritProjectRole(roleWhichGetsPermissions string, roleWhichProvidesPermissions string, project string) error

InheritProjectRole provides a mock function with given fields: roleWhichGetsPermissions, roleWhichProvidesPermissions, project

func (*AccesscontrolAccessControl) InheritProjectRolesAcrossProjects added in v0.5.15

func (_m *AccesscontrolAccessControl) InheritProjectRolesAcrossProjects(roleWhichGetsPermissions accesscontrol.ProjectRole, roleWhichProvidesPermissions accesscontrol.ProjectRole) error

InheritProjectRolesAcrossProjects provides a mock function with given fields: roleWhichGetsPermissions, roleWhichProvidesPermissions

func (*AccesscontrolAccessControl) InheritRole added in v0.5.14

func (_m *AccesscontrolAccessControl) InheritRole(roleWhichGetsPermissions string, roleWhichProvidesPermissions string) error

InheritRole provides a mock function with given fields: roleWhichGetsPermissions, roleWhichProvidesPermissions

func (*AccesscontrolAccessControl) IsAllowed added in v0.5.14

func (_m *AccesscontrolAccessControl) IsAllowed(subject string, object string, action accesscontrol.Action) (bool, error)

IsAllowed provides a mock function with given fields: subject, object, action

func (*AccesscontrolAccessControl) IsAllowedInProject added in v0.5.14

func (_m *AccesscontrolAccessControl) IsAllowedInProject(project string, user string, object string, action accesscontrol.Action) (bool, error)

IsAllowedInProject provides a mock function with given fields: project, user, object, action

func (*AccesscontrolAccessControl) LinkDomainAndProjectRole added in v0.5.14

func (_m *AccesscontrolAccessControl) LinkDomainAndProjectRole(domainRoleWhichGetsPermission string, projectRoleWhichProvidesPermissions string, project string) error

LinkDomainAndProjectRole provides a mock function with given fields: domainRoleWhichGetsPermission, projectRoleWhichProvidesPermissions, project

func (*AccesscontrolAccessControl) RevokeRole added in v0.5.14

func (_m *AccesscontrolAccessControl) RevokeRole(subject string, role string) error

RevokeRole provides a mock function with given fields: subject, role

func (*AccesscontrolAccessControl) RevokeRoleInProject added in v0.5.14

func (_m *AccesscontrolAccessControl) RevokeRoleInProject(subject string, role string, project string) error

RevokeRoleInProject provides a mock function with given fields: subject, role, project

type AccesscontrolAccessControl_AllowRoleInProject_Call added in v0.5.14

type AccesscontrolAccessControl_AllowRoleInProject_Call struct {
	*mock.Call
}

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

func (*AccesscontrolAccessControl_AllowRoleInProject_Call) Return added in v0.5.14

func (*AccesscontrolAccessControl_AllowRoleInProject_Call) Run added in v0.5.14

func (*AccesscontrolAccessControl_AllowRoleInProject_Call) RunAndReturn added in v0.5.14

type AccesscontrolAccessControl_AllowRole_Call added in v0.5.14

type AccesscontrolAccessControl_AllowRole_Call struct {
	*mock.Call
}

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

func (*AccesscontrolAccessControl_AllowRole_Call) Return added in v0.5.14

func (*AccesscontrolAccessControl_AllowRole_Call) Run added in v0.5.14

func (*AccesscontrolAccessControl_AllowRole_Call) RunAndReturn added in v0.5.14

type AccesscontrolAccessControl_Expecter added in v0.5.14

type AccesscontrolAccessControl_Expecter struct {
	// contains filtered or unexported fields
}

func (*AccesscontrolAccessControl_Expecter) AllowRole added in v0.5.14

func (_e *AccesscontrolAccessControl_Expecter) AllowRole(role interface{}, object interface{}, action interface{}) *AccesscontrolAccessControl_AllowRole_Call

AllowRole is a helper method to define mock.On call

  • role string
  • object string
  • action []accesscontrol.Action

func (*AccesscontrolAccessControl_Expecter) AllowRoleInProject added in v0.5.14

func (_e *AccesscontrolAccessControl_Expecter) AllowRoleInProject(project interface{}, role interface{}, object interface{}, action interface{}) *AccesscontrolAccessControl_AllowRoleInProject_Call

AllowRoleInProject is a helper method to define mock.On call

  • project string
  • role string
  • object string
  • action []accesscontrol.Action

func (*AccesscontrolAccessControl_Expecter) GetAllMembersOfOrganization added in v0.5.14

GetAllMembersOfOrganization is a helper method to define mock.On call

func (*AccesscontrolAccessControl_Expecter) GetAllMembersOfProject added in v0.5.14

func (_e *AccesscontrolAccessControl_Expecter) GetAllMembersOfProject(projectID interface{}) *AccesscontrolAccessControl_GetAllMembersOfProject_Call

GetAllMembersOfProject is a helper method to define mock.On call

  • projectID string

func (*AccesscontrolAccessControl_Expecter) GetAllProjectsForUser added in v0.5.14

GetAllProjectsForUser is a helper method to define mock.On call

  • user string

func (*AccesscontrolAccessControl_Expecter) GetAllRoles added in v0.5.14

GetAllRoles is a helper method to define mock.On call

  • user string

func (*AccesscontrolAccessControl_Expecter) GetDomainRole added in v0.5.14

GetDomainRole is a helper method to define mock.On call

  • user string

func (*AccesscontrolAccessControl_Expecter) GetOwnerOfOrganization added in v0.5.14

GetOwnerOfOrganization is a helper method to define mock.On call

func (*AccesscontrolAccessControl_Expecter) GetProjectRole added in v0.5.14

func (_e *AccesscontrolAccessControl_Expecter) GetProjectRole(user interface{}, project interface{}) *AccesscontrolAccessControl_GetProjectRole_Call

GetProjectRole is a helper method to define mock.On call

  • user string
  • project string

func (*AccesscontrolAccessControl_Expecter) GrantRole added in v0.5.14

func (_e *AccesscontrolAccessControl_Expecter) GrantRole(subject interface{}, role interface{}) *AccesscontrolAccessControl_GrantRole_Call

GrantRole is a helper method to define mock.On call

  • subject string
  • role string

func (*AccesscontrolAccessControl_Expecter) GrantRoleInProject added in v0.5.14

func (_e *AccesscontrolAccessControl_Expecter) GrantRoleInProject(subject interface{}, role interface{}, project interface{}) *AccesscontrolAccessControl_GrantRoleInProject_Call

GrantRoleInProject is a helper method to define mock.On call

  • subject string
  • role string
  • project string

func (*AccesscontrolAccessControl_Expecter) HasAccess added in v0.5.14

HasAccess is a helper method to define mock.On call

  • subject string

func (*AccesscontrolAccessControl_Expecter) InheritProjectRole added in v0.5.14

func (_e *AccesscontrolAccessControl_Expecter) InheritProjectRole(roleWhichGetsPermissions interface{}, roleWhichProvidesPermissions interface{}, project interface{}) *AccesscontrolAccessControl_InheritProjectRole_Call

InheritProjectRole is a helper method to define mock.On call

  • roleWhichGetsPermissions string
  • roleWhichProvidesPermissions string
  • project string

func (*AccesscontrolAccessControl_Expecter) InheritProjectRolesAcrossProjects added in v0.5.15

func (_e *AccesscontrolAccessControl_Expecter) InheritProjectRolesAcrossProjects(roleWhichGetsPermissions interface{}, roleWhichProvidesPermissions interface{}) *AccesscontrolAccessControl_InheritProjectRolesAcrossProjects_Call

InheritProjectRolesAcrossProjects is a helper method to define mock.On call

  • roleWhichGetsPermissions accesscontrol.ProjectRole
  • roleWhichProvidesPermissions accesscontrol.ProjectRole

func (*AccesscontrolAccessControl_Expecter) InheritRole added in v0.5.14

func (_e *AccesscontrolAccessControl_Expecter) InheritRole(roleWhichGetsPermissions interface{}, roleWhichProvidesPermissions interface{}) *AccesscontrolAccessControl_InheritRole_Call

InheritRole is a helper method to define mock.On call

  • roleWhichGetsPermissions string
  • roleWhichProvidesPermissions string

func (*AccesscontrolAccessControl_Expecter) IsAllowed added in v0.5.14

func (_e *AccesscontrolAccessControl_Expecter) IsAllowed(subject interface{}, object interface{}, action interface{}) *AccesscontrolAccessControl_IsAllowed_Call

IsAllowed is a helper method to define mock.On call

  • subject string
  • object string
  • action accesscontrol.Action

func (*AccesscontrolAccessControl_Expecter) IsAllowedInProject added in v0.5.14

func (_e *AccesscontrolAccessControl_Expecter) IsAllowedInProject(project interface{}, user interface{}, object interface{}, action interface{}) *AccesscontrolAccessControl_IsAllowedInProject_Call

IsAllowedInProject is a helper method to define mock.On call

  • project string
  • user string
  • object string
  • action accesscontrol.Action

func (*AccesscontrolAccessControl_Expecter) LinkDomainAndProjectRole added in v0.5.14

func (_e *AccesscontrolAccessControl_Expecter) LinkDomainAndProjectRole(domainRoleWhichGetsPermission interface{}, projectRoleWhichProvidesPermissions interface{}, project interface{}) *AccesscontrolAccessControl_LinkDomainAndProjectRole_Call

LinkDomainAndProjectRole is a helper method to define mock.On call

  • domainRoleWhichGetsPermission string
  • projectRoleWhichProvidesPermissions string
  • project string

func (*AccesscontrolAccessControl_Expecter) RevokeRole added in v0.5.14

func (_e *AccesscontrolAccessControl_Expecter) RevokeRole(subject interface{}, role interface{}) *AccesscontrolAccessControl_RevokeRole_Call

RevokeRole is a helper method to define mock.On call

  • subject string
  • role string

func (*AccesscontrolAccessControl_Expecter) RevokeRoleInProject added in v0.5.14

func (_e *AccesscontrolAccessControl_Expecter) RevokeRoleInProject(subject interface{}, role interface{}, project interface{}) *AccesscontrolAccessControl_RevokeRoleInProject_Call

RevokeRoleInProject is a helper method to define mock.On call

  • subject string
  • role string
  • project string

type AccesscontrolAccessControl_GetAllMembersOfOrganization_Call added in v0.5.14

type AccesscontrolAccessControl_GetAllMembersOfOrganization_Call struct {
	*mock.Call
}

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

func (*AccesscontrolAccessControl_GetAllMembersOfOrganization_Call) Return added in v0.5.14

func (*AccesscontrolAccessControl_GetAllMembersOfOrganization_Call) Run added in v0.5.14

func (*AccesscontrolAccessControl_GetAllMembersOfOrganization_Call) RunAndReturn added in v0.5.14

type AccesscontrolAccessControl_GetAllMembersOfProject_Call added in v0.5.14

type AccesscontrolAccessControl_GetAllMembersOfProject_Call struct {
	*mock.Call
}

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

func (*AccesscontrolAccessControl_GetAllMembersOfProject_Call) Return added in v0.5.14

func (*AccesscontrolAccessControl_GetAllMembersOfProject_Call) Run added in v0.5.14

func (*AccesscontrolAccessControl_GetAllMembersOfProject_Call) RunAndReturn added in v0.5.14

type AccesscontrolAccessControl_GetAllProjectsForUser_Call added in v0.5.14

type AccesscontrolAccessControl_GetAllProjectsForUser_Call struct {
	*mock.Call
}

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

func (*AccesscontrolAccessControl_GetAllProjectsForUser_Call) Return added in v0.5.14

func (*AccesscontrolAccessControl_GetAllProjectsForUser_Call) Run added in v0.5.14

func (*AccesscontrolAccessControl_GetAllProjectsForUser_Call) RunAndReturn added in v0.5.14

type AccesscontrolAccessControl_GetAllRoles_Call added in v0.5.14

type AccesscontrolAccessControl_GetAllRoles_Call struct {
	*mock.Call
}

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

func (*AccesscontrolAccessControl_GetAllRoles_Call) Return added in v0.5.14

func (*AccesscontrolAccessControl_GetAllRoles_Call) Run added in v0.5.14

func (*AccesscontrolAccessControl_GetAllRoles_Call) RunAndReturn added in v0.5.14

type AccesscontrolAccessControl_GetDomainRole_Call added in v0.5.14

type AccesscontrolAccessControl_GetDomainRole_Call struct {
	*mock.Call
}

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

func (*AccesscontrolAccessControl_GetDomainRole_Call) Return added in v0.5.14

func (*AccesscontrolAccessControl_GetDomainRole_Call) Run added in v0.5.14

func (*AccesscontrolAccessControl_GetDomainRole_Call) RunAndReturn added in v0.5.14

type AccesscontrolAccessControl_GetOwnerOfOrganization_Call added in v0.5.14

type AccesscontrolAccessControl_GetOwnerOfOrganization_Call struct {
	*mock.Call
}

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

func (*AccesscontrolAccessControl_GetOwnerOfOrganization_Call) Return added in v0.5.14

func (*AccesscontrolAccessControl_GetOwnerOfOrganization_Call) Run added in v0.5.14

func (*AccesscontrolAccessControl_GetOwnerOfOrganization_Call) RunAndReturn added in v0.5.14

type AccesscontrolAccessControl_GetProjectRole_Call added in v0.5.14

type AccesscontrolAccessControl_GetProjectRole_Call struct {
	*mock.Call
}

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

func (*AccesscontrolAccessControl_GetProjectRole_Call) Return added in v0.5.14

func (*AccesscontrolAccessControl_GetProjectRole_Call) Run added in v0.5.14

func (*AccesscontrolAccessControl_GetProjectRole_Call) RunAndReturn added in v0.5.14

type AccesscontrolAccessControl_GrantRoleInProject_Call added in v0.5.14

type AccesscontrolAccessControl_GrantRoleInProject_Call struct {
	*mock.Call
}

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

func (*AccesscontrolAccessControl_GrantRoleInProject_Call) Return added in v0.5.14

func (*AccesscontrolAccessControl_GrantRoleInProject_Call) Run added in v0.5.14

func (*AccesscontrolAccessControl_GrantRoleInProject_Call) RunAndReturn added in v0.5.14

type AccesscontrolAccessControl_GrantRole_Call added in v0.5.14

type AccesscontrolAccessControl_GrantRole_Call struct {
	*mock.Call
}

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

func (*AccesscontrolAccessControl_GrantRole_Call) Return added in v0.5.14

func (*AccesscontrolAccessControl_GrantRole_Call) Run added in v0.5.14

func (*AccesscontrolAccessControl_GrantRole_Call) RunAndReturn added in v0.5.14

type AccesscontrolAccessControl_HasAccess_Call added in v0.5.14

type AccesscontrolAccessControl_HasAccess_Call struct {
	*mock.Call
}

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

func (*AccesscontrolAccessControl_HasAccess_Call) Return added in v0.5.14

func (*AccesscontrolAccessControl_HasAccess_Call) Run added in v0.5.14

func (*AccesscontrolAccessControl_HasAccess_Call) RunAndReturn added in v0.5.14

type AccesscontrolAccessControl_InheritProjectRole_Call added in v0.5.14

type AccesscontrolAccessControl_InheritProjectRole_Call struct {
	*mock.Call
}

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

func (*AccesscontrolAccessControl_InheritProjectRole_Call) Return added in v0.5.14

func (*AccesscontrolAccessControl_InheritProjectRole_Call) Run added in v0.5.14

func (_c *AccesscontrolAccessControl_InheritProjectRole_Call) Run(run func(roleWhichGetsPermissions string, roleWhichProvidesPermissions string, project string)) *AccesscontrolAccessControl_InheritProjectRole_Call

func (*AccesscontrolAccessControl_InheritProjectRole_Call) RunAndReturn added in v0.5.14

type AccesscontrolAccessControl_InheritProjectRolesAcrossProjects_Call added in v0.5.15

type AccesscontrolAccessControl_InheritProjectRolesAcrossProjects_Call struct {
	*mock.Call
}

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

func (*AccesscontrolAccessControl_InheritProjectRolesAcrossProjects_Call) Return added in v0.5.15

func (*AccesscontrolAccessControl_InheritProjectRolesAcrossProjects_Call) Run added in v0.5.15

func (*AccesscontrolAccessControl_InheritProjectRolesAcrossProjects_Call) RunAndReturn added in v0.5.15

type AccesscontrolAccessControl_InheritRole_Call added in v0.5.14

type AccesscontrolAccessControl_InheritRole_Call struct {
	*mock.Call
}

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

func (*AccesscontrolAccessControl_InheritRole_Call) Return added in v0.5.14

func (*AccesscontrolAccessControl_InheritRole_Call) Run added in v0.5.14

func (_c *AccesscontrolAccessControl_InheritRole_Call) Run(run func(roleWhichGetsPermissions string, roleWhichProvidesPermissions string)) *AccesscontrolAccessControl_InheritRole_Call

func (*AccesscontrolAccessControl_InheritRole_Call) RunAndReturn added in v0.5.14

type AccesscontrolAccessControl_IsAllowedInProject_Call added in v0.5.14

type AccesscontrolAccessControl_IsAllowedInProject_Call struct {
	*mock.Call
}

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

func (*AccesscontrolAccessControl_IsAllowedInProject_Call) Return added in v0.5.14

func (*AccesscontrolAccessControl_IsAllowedInProject_Call) Run added in v0.5.14

func (*AccesscontrolAccessControl_IsAllowedInProject_Call) RunAndReturn added in v0.5.14

type AccesscontrolAccessControl_IsAllowed_Call added in v0.5.14

type AccesscontrolAccessControl_IsAllowed_Call struct {
	*mock.Call
}

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

func (*AccesscontrolAccessControl_IsAllowed_Call) Return added in v0.5.14

func (*AccesscontrolAccessControl_IsAllowed_Call) Run added in v0.5.14

func (*AccesscontrolAccessControl_IsAllowed_Call) RunAndReturn added in v0.5.14

type AccesscontrolAccessControl_LinkDomainAndProjectRole_Call added in v0.5.14

type AccesscontrolAccessControl_LinkDomainAndProjectRole_Call struct {
	*mock.Call
}

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

func (*AccesscontrolAccessControl_LinkDomainAndProjectRole_Call) Return added in v0.5.14

func (*AccesscontrolAccessControl_LinkDomainAndProjectRole_Call) Run added in v0.5.14

func (_c *AccesscontrolAccessControl_LinkDomainAndProjectRole_Call) Run(run func(domainRoleWhichGetsPermission string, projectRoleWhichProvidesPermissions string, project string)) *AccesscontrolAccessControl_LinkDomainAndProjectRole_Call

func (*AccesscontrolAccessControl_LinkDomainAndProjectRole_Call) RunAndReturn added in v0.5.14

type AccesscontrolAccessControl_RevokeRoleInProject_Call added in v0.5.14

type AccesscontrolAccessControl_RevokeRoleInProject_Call struct {
	*mock.Call
}

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

func (*AccesscontrolAccessControl_RevokeRoleInProject_Call) Return added in v0.5.14

func (*AccesscontrolAccessControl_RevokeRoleInProject_Call) Run added in v0.5.14

func (*AccesscontrolAccessControl_RevokeRoleInProject_Call) RunAndReturn added in v0.5.14

type AccesscontrolAccessControl_RevokeRole_Call added in v0.5.14

type AccesscontrolAccessControl_RevokeRole_Call struct {
	*mock.Call
}

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

func (*AccesscontrolAccessControl_RevokeRole_Call) Return added in v0.5.14

func (*AccesscontrolAccessControl_RevokeRole_Call) Run added in v0.5.14

func (*AccesscontrolAccessControl_RevokeRole_Call) RunAndReturn added in v0.5.14

type AccesscontrolRBACProvider added in v0.5.14

type AccesscontrolRBACProvider struct {
	mock.Mock
}

AccesscontrolRBACProvider is an autogenerated mock type for the RBACProvider type

func NewAccesscontrolRBACProvider added in v0.5.14

func NewAccesscontrolRBACProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *AccesscontrolRBACProvider

NewAccesscontrolRBACProvider creates a new instance of AccesscontrolRBACProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AccesscontrolRBACProvider) DomainsOfUser added in v0.5.14

func (_m *AccesscontrolRBACProvider) DomainsOfUser(user string) ([]string, error)

DomainsOfUser provides a mock function with given fields: user

func (*AccesscontrolRBACProvider) EXPECT added in v0.5.14

func (*AccesscontrolRBACProvider) GetDomainRBAC added in v0.5.14

func (_m *AccesscontrolRBACProvider) GetDomainRBAC(domain string) accesscontrol.AccessControl

GetDomainRBAC provides a mock function with given fields: domain

type AccesscontrolRBACProvider_DomainsOfUser_Call added in v0.5.14

type AccesscontrolRBACProvider_DomainsOfUser_Call struct {
	*mock.Call
}

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

func (*AccesscontrolRBACProvider_DomainsOfUser_Call) Return added in v0.5.14

func (*AccesscontrolRBACProvider_DomainsOfUser_Call) Run added in v0.5.14

func (*AccesscontrolRBACProvider_DomainsOfUser_Call) RunAndReturn added in v0.5.14

type AccesscontrolRBACProvider_Expecter added in v0.5.14

type AccesscontrolRBACProvider_Expecter struct {
	// contains filtered or unexported fields
}

func (*AccesscontrolRBACProvider_Expecter) DomainsOfUser added in v0.5.14

DomainsOfUser is a helper method to define mock.On call

  • user string

func (*AccesscontrolRBACProvider_Expecter) GetDomainRBAC added in v0.5.14

GetDomainRBAC is a helper method to define mock.On call

  • domain string

type AccesscontrolRBACProvider_GetDomainRBAC_Call added in v0.5.14

type AccesscontrolRBACProvider_GetDomainRBAC_Call struct {
	*mock.Call
}

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

func (*AccesscontrolRBACProvider_GetDomainRBAC_Call) Return added in v0.5.14

func (*AccesscontrolRBACProvider_GetDomainRBAC_Call) Run added in v0.5.14

func (*AccesscontrolRBACProvider_GetDomainRBAC_Call) RunAndReturn added in v0.5.14

type ApiAssetRepository added in v0.5.14

type ApiAssetRepository struct {
	mock.Mock
}

ApiAssetRepository is an autogenerated mock type for the assetRepository type

func NewApiAssetRepository added in v0.5.14

func NewApiAssetRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApiAssetRepository

NewApiAssetRepository creates a new instance of ApiAssetRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ApiAssetRepository) EXPECT added in v0.5.14

func (*ApiAssetRepository) ReadBySlug added in v0.5.14

func (_m *ApiAssetRepository) ReadBySlug(projectID uuid.UUID, slug string) (models.Asset, error)

ReadBySlug provides a mock function with given fields: projectID, slug

type ApiAssetRepository_Expecter added in v0.5.14

type ApiAssetRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*ApiAssetRepository_Expecter) ReadBySlug added in v0.5.14

func (_e *ApiAssetRepository_Expecter) ReadBySlug(projectID interface{}, slug interface{}) *ApiAssetRepository_ReadBySlug_Call

ReadBySlug is a helper method to define mock.On call

  • projectID uuid.UUID
  • slug string

type ApiAssetRepository_ReadBySlug_Call added in v0.5.14

type ApiAssetRepository_ReadBySlug_Call struct {
	*mock.Call
}

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

func (*ApiAssetRepository_ReadBySlug_Call) Return added in v0.5.14

func (*ApiAssetRepository_ReadBySlug_Call) Run added in v0.5.14

func (*ApiAssetRepository_ReadBySlug_Call) RunAndReturn added in v0.5.14

type ApiOrgRepository added in v0.5.14

type ApiOrgRepository struct {
	mock.Mock
}

ApiOrgRepository is an autogenerated mock type for the orgRepository type

func NewApiOrgRepository added in v0.5.14

func NewApiOrgRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApiOrgRepository

NewApiOrgRepository creates a new instance of ApiOrgRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ApiOrgRepository) EXPECT added in v0.5.14

func (*ApiOrgRepository) ReadBySlug added in v0.5.14

func (_m *ApiOrgRepository) ReadBySlug(slugOrId string) (models.Org, error)

ReadBySlug provides a mock function with given fields: slugOrId

type ApiOrgRepository_Expecter added in v0.5.14

type ApiOrgRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*ApiOrgRepository_Expecter) ReadBySlug added in v0.5.14

func (_e *ApiOrgRepository_Expecter) ReadBySlug(slugOrId interface{}) *ApiOrgRepository_ReadBySlug_Call

ReadBySlug is a helper method to define mock.On call

  • slugOrId string

type ApiOrgRepository_ReadBySlug_Call added in v0.5.14

type ApiOrgRepository_ReadBySlug_Call struct {
	*mock.Call
}

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

func (*ApiOrgRepository_ReadBySlug_Call) Return added in v0.5.14

func (*ApiOrgRepository_ReadBySlug_Call) Run added in v0.5.14

func (*ApiOrgRepository_ReadBySlug_Call) RunAndReturn added in v0.5.14

type ApiProjectRepository added in v0.5.14

type ApiProjectRepository struct {
	mock.Mock
}

ApiProjectRepository is an autogenerated mock type for the projectRepository type

func NewApiProjectRepository added in v0.5.14

func NewApiProjectRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApiProjectRepository

NewApiProjectRepository creates a new instance of ApiProjectRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ApiProjectRepository) EXPECT added in v0.5.14

func (*ApiProjectRepository) ReadBySlug added in v0.5.14

func (_m *ApiProjectRepository) ReadBySlug(organizationID uuid.UUID, slug string) (models.Project, error)

ReadBySlug provides a mock function with given fields: organizationID, slug

type ApiProjectRepository_Expecter added in v0.5.14

type ApiProjectRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*ApiProjectRepository_Expecter) ReadBySlug added in v0.5.14

func (_e *ApiProjectRepository_Expecter) ReadBySlug(organizationID interface{}, slug interface{}) *ApiProjectRepository_ReadBySlug_Call

ReadBySlug is a helper method to define mock.On call

  • organizationID uuid.UUID
  • slug string

type ApiProjectRepository_ReadBySlug_Call added in v0.5.14

type ApiProjectRepository_ReadBySlug_Call struct {
	*mock.Call
}

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

func (*ApiProjectRepository_ReadBySlug_Call) Return added in v0.5.14

func (*ApiProjectRepository_ReadBySlug_Call) Run added in v0.5.14

func (*ApiProjectRepository_ReadBySlug_Call) RunAndReturn added in v0.5.14

type AssetAssetComponentsLoader

type AssetAssetComponentsLoader struct {
	mock.Mock
}

AssetAssetComponentsLoader is an autogenerated mock type for the assetComponentsLoader type

func NewAssetAssetComponentsLoader

func NewAssetAssetComponentsLoader(t interface {
	mock.TestingT
	Cleanup(func())
}) *AssetAssetComponentsLoader

NewAssetAssetComponentsLoader creates a new instance of AssetAssetComponentsLoader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AssetAssetComponentsLoader) EXPECT

func (*AssetAssetComponentsLoader) GetVersions

func (_m *AssetAssetComponentsLoader) GetVersions(tx *gorm.DB, _a1 models.Asset) ([]string, error)

GetVersions provides a mock function with given fields: tx, _a1

func (*AssetAssetComponentsLoader) LoadComponents added in v0.5.14

func (_m *AssetAssetComponentsLoader) LoadComponents(tx *gorm.DB, _a1 models.Asset, scanType string, version string) ([]models.ComponentDependency, error)

LoadComponents provides a mock function with given fields: tx, _a1, scanType, version

type AssetAssetComponentsLoader_Expecter

type AssetAssetComponentsLoader_Expecter struct {
	// contains filtered or unexported fields
}

func (*AssetAssetComponentsLoader_Expecter) GetVersions

func (_e *AssetAssetComponentsLoader_Expecter) GetVersions(tx interface{}, _a1 interface{}) *AssetAssetComponentsLoader_GetVersions_Call

GetVersions is a helper method to define mock.On call

  • tx *gorm.DB
  • _a1 models.Asset

func (*AssetAssetComponentsLoader_Expecter) LoadComponents added in v0.5.14

func (_e *AssetAssetComponentsLoader_Expecter) LoadComponents(tx interface{}, _a1 interface{}, scanType interface{}, version interface{}) *AssetAssetComponentsLoader_LoadComponents_Call

LoadComponents is a helper method to define mock.On call

  • tx *gorm.DB
  • _a1 models.Asset
  • scanType string
  • version string

type AssetAssetComponentsLoader_GetVersions_Call

type AssetAssetComponentsLoader_GetVersions_Call struct {
	*mock.Call
}

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

func (*AssetAssetComponentsLoader_GetVersions_Call) Return

func (*AssetAssetComponentsLoader_GetVersions_Call) Run

func (*AssetAssetComponentsLoader_GetVersions_Call) RunAndReturn

type AssetAssetComponentsLoader_LoadComponents_Call added in v0.5.14

type AssetAssetComponentsLoader_LoadComponents_Call struct {
	*mock.Call
}

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

func (*AssetAssetComponentsLoader_LoadComponents_Call) Return added in v0.5.14

func (*AssetAssetComponentsLoader_LoadComponents_Call) Run added in v0.5.14

func (*AssetAssetComponentsLoader_LoadComponents_Call) RunAndReturn added in v0.5.14

type AssetAssetRepository

type AssetAssetRepository struct {
	mock.Mock
}

AssetAssetRepository is an autogenerated mock type for the assetRepository type

func NewAssetAssetRepository

func NewAssetAssetRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *AssetAssetRepository

NewAssetAssetRepository creates a new instance of AssetAssetRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AssetAssetRepository) EXPECT

func (*AssetAssetRepository) Save

func (_m *AssetAssetRepository) Save(tx *gorm.DB, _a1 *models.Asset) error

Save provides a mock function with given fields: tx, _a1

func (*AssetAssetRepository) Transaction added in v0.5.14

func (_m *AssetAssetRepository) Transaction(txFunc func(*gorm.DB) error) error

Transaction provides a mock function with given fields: txFunc

type AssetAssetRepository_Expecter

type AssetAssetRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*AssetAssetRepository_Expecter) Save

func (_e *AssetAssetRepository_Expecter) Save(tx interface{}, _a1 interface{}) *AssetAssetRepository_Save_Call

Save is a helper method to define mock.On call

  • tx *gorm.DB
  • _a1 *models.Asset

func (*AssetAssetRepository_Expecter) Transaction added in v0.5.14

func (_e *AssetAssetRepository_Expecter) Transaction(txFunc interface{}) *AssetAssetRepository_Transaction_Call

Transaction is a helper method to define mock.On call

  • txFunc func(*gorm.DB) error

type AssetAssetRepository_Save_Call

type AssetAssetRepository_Save_Call struct {
	*mock.Call
}

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

func (*AssetAssetRepository_Save_Call) Return

func (*AssetAssetRepository_Save_Call) Run

func (*AssetAssetRepository_Save_Call) RunAndReturn

type AssetAssetRepository_Transaction_Call added in v0.5.14

type AssetAssetRepository_Transaction_Call struct {
	*mock.Call
}

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

func (*AssetAssetRepository_Transaction_Call) Return added in v0.5.14

func (*AssetAssetRepository_Transaction_Call) Run added in v0.5.14

func (*AssetAssetRepository_Transaction_Call) RunAndReturn added in v0.5.14

type AssetAssetService

type AssetAssetService struct {
	mock.Mock
}

AssetAssetService is an autogenerated mock type for the assetService type

func NewAssetAssetService

func NewAssetAssetService(t interface {
	mock.TestingT
	Cleanup(func())
}) *AssetAssetService

NewAssetAssetService creates a new instance of AssetAssetService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AssetAssetService) BuildSBOM added in v0.5.1

func (_m *AssetAssetService) BuildSBOM(_a0 models.Asset, version string, orgName string, components []models.ComponentDependency) *cyclonedx.BOM

BuildSBOM provides a mock function with given fields: _a0, version, orgName, components

func (*AssetAssetService) BuildVeX added in v0.5.14

func (_m *AssetAssetService) BuildVeX(_a0 models.Asset, version string, orgName string, components []models.ComponentDependency, flaws []models.Flaw) *cyclonedx.BOM

BuildVeX provides a mock function with given fields: _a0, version, orgName, components, flaws

func (*AssetAssetService) EXPECT

func (*AssetAssetService) UpdateAssetRequirements

func (_m *AssetAssetService) UpdateAssetRequirements(_a0 models.Asset, responsible string, justification string) error

UpdateAssetRequirements provides a mock function with given fields: _a0, responsible, justification

type AssetAssetService_BuildSBOM_Call added in v0.5.1

type AssetAssetService_BuildSBOM_Call struct {
	*mock.Call
}

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

func (*AssetAssetService_BuildSBOM_Call) Return added in v0.5.1

func (*AssetAssetService_BuildSBOM_Call) Run added in v0.5.1

func (*AssetAssetService_BuildSBOM_Call) RunAndReturn added in v0.5.1

type AssetAssetService_BuildVeX_Call added in v0.5.14

type AssetAssetService_BuildVeX_Call struct {
	*mock.Call
}

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

func (*AssetAssetService_BuildVeX_Call) Return added in v0.5.14

func (*AssetAssetService_BuildVeX_Call) Run added in v0.5.14

func (_c *AssetAssetService_BuildVeX_Call) Run(run func(_a0 models.Asset, version string, orgName string, components []models.ComponentDependency, flaws []models.Flaw)) *AssetAssetService_BuildVeX_Call

func (*AssetAssetService_BuildVeX_Call) RunAndReturn added in v0.5.14

type AssetAssetService_Expecter

type AssetAssetService_Expecter struct {
	// contains filtered or unexported fields
}

func (*AssetAssetService_Expecter) BuildSBOM added in v0.5.1

func (_e *AssetAssetService_Expecter) BuildSBOM(_a0 interface{}, version interface{}, orgName interface{}, components interface{}) *AssetAssetService_BuildSBOM_Call

BuildSBOM is a helper method to define mock.On call

  • _a0 models.Asset
  • version string
  • orgName string
  • components []models.ComponentDependency

func (*AssetAssetService_Expecter) BuildVeX added in v0.5.14

func (_e *AssetAssetService_Expecter) BuildVeX(_a0 interface{}, version interface{}, orgName interface{}, components interface{}, flaws interface{}) *AssetAssetService_BuildVeX_Call

BuildVeX is a helper method to define mock.On call

  • _a0 models.Asset
  • version string
  • orgName string
  • components []models.ComponentDependency
  • flaws []models.Flaw

func (*AssetAssetService_Expecter) UpdateAssetRequirements

func (_e *AssetAssetService_Expecter) UpdateAssetRequirements(_a0 interface{}, responsible interface{}, justification interface{}) *AssetAssetService_UpdateAssetRequirements_Call

UpdateAssetRequirements is a helper method to define mock.On call

  • _a0 models.Asset
  • responsible string
  • justification string

type AssetAssetService_UpdateAssetRequirements_Call

type AssetAssetService_UpdateAssetRequirements_Call struct {
	*mock.Call
}

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

func (*AssetAssetService_UpdateAssetRequirements_Call) Return

func (*AssetAssetService_UpdateAssetRequirements_Call) Run

func (*AssetAssetService_UpdateAssetRequirements_Call) RunAndReturn

type AssetComponentRepository

type AssetComponentRepository struct {
	mock.Mock
}

AssetComponentRepository is an autogenerated mock type for the componentRepository type

func NewAssetComponentRepository

func NewAssetComponentRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *AssetComponentRepository

NewAssetComponentRepository creates a new instance of AssetComponentRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AssetComponentRepository) EXPECT

func (*AssetComponentRepository) FindByPurl

func (_m *AssetComponentRepository) FindByPurl(tx *gorm.DB, purl string) (models.Component, error)

FindByPurl provides a mock function with given fields: tx, purl

func (*AssetComponentRepository) HandleStateDiff

func (_m *AssetComponentRepository) HandleStateDiff(tx *gorm.DB, assetID uuid.UUID, version string, oldState []models.ComponentDependency, newState []models.ComponentDependency) error

HandleStateDiff provides a mock function with given fields: tx, assetID, version, oldState, newState

func (*AssetComponentRepository) LoadComponents added in v0.5.14

func (_m *AssetComponentRepository) LoadComponents(tx *gorm.DB, _a1 models.Asset, scanType string, version string) ([]models.ComponentDependency, error)

LoadComponents provides a mock function with given fields: tx, _a1, scanType, version

func (*AssetComponentRepository) SaveBatch

func (_m *AssetComponentRepository) SaveBatch(tx *gorm.DB, components []models.Component) error

SaveBatch provides a mock function with given fields: tx, components

type AssetComponentRepository_Expecter

type AssetComponentRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*AssetComponentRepository_Expecter) FindByPurl

func (_e *AssetComponentRepository_Expecter) FindByPurl(tx interface{}, purl interface{}) *AssetComponentRepository_FindByPurl_Call

FindByPurl is a helper method to define mock.On call

  • tx *gorm.DB
  • purl string

func (*AssetComponentRepository_Expecter) HandleStateDiff

func (_e *AssetComponentRepository_Expecter) HandleStateDiff(tx interface{}, assetID interface{}, version interface{}, oldState interface{}, newState interface{}) *AssetComponentRepository_HandleStateDiff_Call

HandleStateDiff is a helper method to define mock.On call

  • tx *gorm.DB
  • assetID uuid.UUID
  • version string
  • oldState []models.ComponentDependency
  • newState []models.ComponentDependency

func (*AssetComponentRepository_Expecter) LoadComponents added in v0.5.14

func (_e *AssetComponentRepository_Expecter) LoadComponents(tx interface{}, _a1 interface{}, scanType interface{}, version interface{}) *AssetComponentRepository_LoadComponents_Call

LoadComponents is a helper method to define mock.On call

  • tx *gorm.DB
  • _a1 models.Asset
  • scanType string
  • version string

func (*AssetComponentRepository_Expecter) SaveBatch

func (_e *AssetComponentRepository_Expecter) SaveBatch(tx interface{}, components interface{}) *AssetComponentRepository_SaveBatch_Call

SaveBatch is a helper method to define mock.On call

  • tx *gorm.DB
  • components []models.Component

type AssetComponentRepository_FindByPurl_Call

type AssetComponentRepository_FindByPurl_Call struct {
	*mock.Call
}

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

func (*AssetComponentRepository_FindByPurl_Call) Return

func (*AssetComponentRepository_FindByPurl_Call) Run

func (*AssetComponentRepository_FindByPurl_Call) RunAndReturn

type AssetComponentRepository_HandleStateDiff_Call

type AssetComponentRepository_HandleStateDiff_Call struct {
	*mock.Call
}

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

func (*AssetComponentRepository_HandleStateDiff_Call) Return

func (*AssetComponentRepository_HandleStateDiff_Call) Run

type AssetComponentRepository_LoadComponents_Call added in v0.5.14

type AssetComponentRepository_LoadComponents_Call struct {
	*mock.Call
}

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

func (*AssetComponentRepository_LoadComponents_Call) Return added in v0.5.14

func (*AssetComponentRepository_LoadComponents_Call) Run added in v0.5.14

func (*AssetComponentRepository_LoadComponents_Call) RunAndReturn added in v0.5.14

type AssetComponentRepository_SaveBatch_Call

type AssetComponentRepository_SaveBatch_Call struct {
	*mock.Call
}

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

func (*AssetComponentRepository_SaveBatch_Call) Return

func (*AssetComponentRepository_SaveBatch_Call) Run

func (*AssetComponentRepository_SaveBatch_Call) RunAndReturn

type AssetFlawRepository

type AssetFlawRepository struct {
	mock.Mock
}

AssetFlawRepository is an autogenerated mock type for the flawRepository type

func NewAssetFlawRepository

func NewAssetFlawRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *AssetFlawRepository

NewAssetFlawRepository creates a new instance of AssetFlawRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AssetFlawRepository) EXPECT

func (*AssetFlawRepository) GetAllFlawsByAssetID

func (_m *AssetFlawRepository) GetAllFlawsByAssetID(tx *gorm.DB, assetID uuid.UUID) ([]models.Flaw, error)

GetAllFlawsByAssetID provides a mock function with given fields: tx, assetID

func (*AssetFlawRepository) GetFlawsByPurl added in v0.5.1

func (_m *AssetFlawRepository) GetFlawsByPurl(tx *gorm.DB, purl []string) ([]models.Flaw, error)

GetFlawsByPurl provides a mock function with given fields: tx, purl

func (*AssetFlawRepository) ListByScanner

func (_m *AssetFlawRepository) ListByScanner(assetID uuid.UUID, scannerID string) ([]models.Flaw, error)

ListByScanner provides a mock function with given fields: assetID, scannerID

func (*AssetFlawRepository) SaveBatch

func (_m *AssetFlawRepository) SaveBatch(db *gorm.DB, flaws []models.Flaw) error

SaveBatch provides a mock function with given fields: db, flaws

func (*AssetFlawRepository) Transaction

func (_m *AssetFlawRepository) Transaction(txFunc func(*gorm.DB) error) error

Transaction provides a mock function with given fields: txFunc

type AssetFlawRepository_Expecter

type AssetFlawRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*AssetFlawRepository_Expecter) GetAllFlawsByAssetID

func (_e *AssetFlawRepository_Expecter) GetAllFlawsByAssetID(tx interface{}, assetID interface{}) *AssetFlawRepository_GetAllFlawsByAssetID_Call

GetAllFlawsByAssetID is a helper method to define mock.On call

  • tx *gorm.DB
  • assetID uuid.UUID

func (*AssetFlawRepository_Expecter) GetFlawsByPurl added in v0.5.1

func (_e *AssetFlawRepository_Expecter) GetFlawsByPurl(tx interface{}, purl interface{}) *AssetFlawRepository_GetFlawsByPurl_Call

GetFlawsByPurl is a helper method to define mock.On call

  • tx *gorm.DB
  • purl []string

func (*AssetFlawRepository_Expecter) ListByScanner

func (_e *AssetFlawRepository_Expecter) ListByScanner(assetID interface{}, scannerID interface{}) *AssetFlawRepository_ListByScanner_Call

ListByScanner is a helper method to define mock.On call

  • assetID uuid.UUID
  • scannerID string

func (*AssetFlawRepository_Expecter) SaveBatch

func (_e *AssetFlawRepository_Expecter) SaveBatch(db interface{}, flaws interface{}) *AssetFlawRepository_SaveBatch_Call

SaveBatch is a helper method to define mock.On call

  • db *gorm.DB
  • flaws []models.Flaw

func (*AssetFlawRepository_Expecter) Transaction

func (_e *AssetFlawRepository_Expecter) Transaction(txFunc interface{}) *AssetFlawRepository_Transaction_Call

Transaction is a helper method to define mock.On call

  • txFunc func(*gorm.DB) error

type AssetFlawRepository_GetAllFlawsByAssetID_Call

type AssetFlawRepository_GetAllFlawsByAssetID_Call struct {
	*mock.Call
}

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

func (*AssetFlawRepository_GetAllFlawsByAssetID_Call) Return

func (*AssetFlawRepository_GetAllFlawsByAssetID_Call) Run

func (*AssetFlawRepository_GetAllFlawsByAssetID_Call) RunAndReturn

type AssetFlawRepository_GetFlawsByPurl_Call added in v0.5.1

type AssetFlawRepository_GetFlawsByPurl_Call struct {
	*mock.Call
}

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

func (*AssetFlawRepository_GetFlawsByPurl_Call) Return added in v0.5.1

func (*AssetFlawRepository_GetFlawsByPurl_Call) Run added in v0.5.1

func (*AssetFlawRepository_GetFlawsByPurl_Call) RunAndReturn added in v0.5.1

type AssetFlawRepository_ListByScanner_Call

type AssetFlawRepository_ListByScanner_Call struct {
	*mock.Call
}

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

func (*AssetFlawRepository_ListByScanner_Call) Return

func (*AssetFlawRepository_ListByScanner_Call) Run

func (*AssetFlawRepository_ListByScanner_Call) RunAndReturn

type AssetFlawRepository_SaveBatch_Call

type AssetFlawRepository_SaveBatch_Call struct {
	*mock.Call
}

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

func (*AssetFlawRepository_SaveBatch_Call) Return

func (*AssetFlawRepository_SaveBatch_Call) Run

func (*AssetFlawRepository_SaveBatch_Call) RunAndReturn

type AssetFlawRepository_Transaction_Call

type AssetFlawRepository_Transaction_Call struct {
	*mock.Call
}

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

func (*AssetFlawRepository_Transaction_Call) Return

func (*AssetFlawRepository_Transaction_Call) Run

func (*AssetFlawRepository_Transaction_Call) RunAndReturn

type AssetFlawService

type AssetFlawService struct {
	mock.Mock
}

AssetFlawService is an autogenerated mock type for the flawService type

func NewAssetFlawService

func NewAssetFlawService(t interface {
	mock.TestingT
	Cleanup(func())
}) *AssetFlawService

NewAssetFlawService creates a new instance of AssetFlawService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AssetFlawService) EXPECT

func (*AssetFlawService) RecalculateRawRiskAssessment

func (_m *AssetFlawService) RecalculateRawRiskAssessment(tx *gorm.DB, userID string, flaws []models.Flaw, justification string, _a4 models.Asset) error

RecalculateRawRiskAssessment provides a mock function with given fields: tx, userID, flaws, justification, _a4

func (*AssetFlawService) UpdateFlawState

func (_m *AssetFlawService) UpdateFlawState(tx *gorm.DB, userID string, flaw *models.Flaw, statusType string, justification string) (models.FlawEvent, error)

UpdateFlawState provides a mock function with given fields: tx, userID, flaw, statusType, justification

func (*AssetFlawService) UserDetectedFlaws

func (_m *AssetFlawService) UserDetectedFlaws(tx *gorm.DB, userID string, flaws []models.Flaw, _a3 models.Asset, doRiskManagement bool) error

UserDetectedFlaws provides a mock function with given fields: tx, userID, flaws, _a3, doRiskManagement

func (*AssetFlawService) UserFixedFlaws

func (_m *AssetFlawService) UserFixedFlaws(tx *gorm.DB, userID string, flaws []models.Flaw, doRiskManagement bool) error

UserFixedFlaws provides a mock function with given fields: tx, userID, flaws, doRiskManagement

type AssetFlawService_Expecter

type AssetFlawService_Expecter struct {
	// contains filtered or unexported fields
}

func (*AssetFlawService_Expecter) RecalculateRawRiskAssessment

func (_e *AssetFlawService_Expecter) RecalculateRawRiskAssessment(tx interface{}, userID interface{}, flaws interface{}, justification interface{}, _a4 interface{}) *AssetFlawService_RecalculateRawRiskAssessment_Call

RecalculateRawRiskAssessment is a helper method to define mock.On call

  • tx *gorm.DB
  • userID string
  • flaws []models.Flaw
  • justification string
  • _a4 models.Asset

func (*AssetFlawService_Expecter) UpdateFlawState

func (_e *AssetFlawService_Expecter) UpdateFlawState(tx interface{}, userID interface{}, flaw interface{}, statusType interface{}, justification interface{}) *AssetFlawService_UpdateFlawState_Call

UpdateFlawState is a helper method to define mock.On call

  • tx *gorm.DB
  • userID string
  • flaw *models.Flaw
  • statusType string
  • justification string

func (*AssetFlawService_Expecter) UserDetectedFlaws

func (_e *AssetFlawService_Expecter) UserDetectedFlaws(tx interface{}, userID interface{}, flaws interface{}, _a3 interface{}, doRiskManagement interface{}) *AssetFlawService_UserDetectedFlaws_Call

UserDetectedFlaws is a helper method to define mock.On call

  • tx *gorm.DB
  • userID string
  • flaws []models.Flaw
  • _a3 models.Asset
  • doRiskManagement bool

func (*AssetFlawService_Expecter) UserFixedFlaws

func (_e *AssetFlawService_Expecter) UserFixedFlaws(tx interface{}, userID interface{}, flaws interface{}, doRiskManagement interface{}) *AssetFlawService_UserFixedFlaws_Call

UserFixedFlaws is a helper method to define mock.On call

  • tx *gorm.DB
  • userID string
  • flaws []models.Flaw
  • doRiskManagement bool

type AssetFlawService_RecalculateRawRiskAssessment_Call

type AssetFlawService_RecalculateRawRiskAssessment_Call struct {
	*mock.Call
}

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

func (*AssetFlawService_RecalculateRawRiskAssessment_Call) Return

func (*AssetFlawService_RecalculateRawRiskAssessment_Call) Run

func (*AssetFlawService_RecalculateRawRiskAssessment_Call) RunAndReturn

type AssetFlawService_UpdateFlawState_Call

type AssetFlawService_UpdateFlawState_Call struct {
	*mock.Call
}

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

func (*AssetFlawService_UpdateFlawState_Call) Return

func (*AssetFlawService_UpdateFlawState_Call) Run

func (_c *AssetFlawService_UpdateFlawState_Call) Run(run func(tx *gorm.DB, userID string, flaw *models.Flaw, statusType string, justification string)) *AssetFlawService_UpdateFlawState_Call

func (*AssetFlawService_UpdateFlawState_Call) RunAndReturn

type AssetFlawService_UserDetectedFlaws_Call

type AssetFlawService_UserDetectedFlaws_Call struct {
	*mock.Call
}

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

func (*AssetFlawService_UserDetectedFlaws_Call) Return

func (*AssetFlawService_UserDetectedFlaws_Call) Run

func (_c *AssetFlawService_UserDetectedFlaws_Call) Run(run func(tx *gorm.DB, userID string, flaws []models.Flaw, _a3 models.Asset, doRiskManagement bool)) *AssetFlawService_UserDetectedFlaws_Call

func (*AssetFlawService_UserDetectedFlaws_Call) RunAndReturn

type AssetFlawService_UserFixedFlaws_Call

type AssetFlawService_UserFixedFlaws_Call struct {
	*mock.Call
}

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

func (*AssetFlawService_UserFixedFlaws_Call) Return

func (*AssetFlawService_UserFixedFlaws_Call) Run

func (_c *AssetFlawService_UserFixedFlaws_Call) Run(run func(tx *gorm.DB, userID string, flaws []models.Flaw, doRiskManagement bool)) *AssetFlawService_UserFixedFlaws_Call

func (*AssetFlawService_UserFixedFlaws_Call) RunAndReturn

type AssetRepository

type AssetRepository struct {
	mock.Mock
}

AssetRepository is an autogenerated mock type for the repository type

func NewAssetRepository

func NewAssetRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *AssetRepository

NewAssetRepository creates a new instance of AssetRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AssetRepository) Activate added in v0.5.15

func (_m *AssetRepository) Activate(tx *gorm.DB, id uuid.UUID) error

Activate provides a mock function with given fields: tx, id

func (*AssetRepository) Begin

func (_m *AssetRepository) Begin() *gorm.DB

Begin provides a mock function with no fields

func (*AssetRepository) Create

func (_m *AssetRepository) Create(tx *gorm.DB, t *models.Asset) error

Create provides a mock function with given fields: tx, t

func (*AssetRepository) CreateBatch

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

CreateBatch provides a mock function with given fields: tx, ts

func (*AssetRepository) Delete

func (_m *AssetRepository) Delete(tx *gorm.DB, id uuid.UUID) error

Delete provides a mock function with given fields: tx, id

func (*AssetRepository) EXPECT

func (*AssetRepository) FindByName

func (_m *AssetRepository) FindByName(name string) (models.Asset, error)

FindByName provides a mock function with given fields: name

func (*AssetRepository) FindOrCreate

func (_m *AssetRepository) FindOrCreate(tx *gorm.DB, name string) (models.Asset, error)

FindOrCreate provides a mock function with given fields: tx, name

func (*AssetRepository) GetAssetIDBySlug

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

GetAssetIDBySlug provides a mock function with given fields: projectID, slug

func (*AssetRepository) GetByProjectID

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

GetByProjectID provides a mock function with given fields: projectID

func (*AssetRepository) GetDB

func (_m *AssetRepository) GetDB(tx *gorm.DB) *gorm.DB

GetDB provides a mock function with given fields: tx

func (*AssetRepository) List

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

List provides a mock function with given fields: ids

func (*AssetRepository) Read

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

Read provides a mock function with given fields: id

func (*AssetRepository) ReadBySlug

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

ReadBySlug provides a mock function with given fields: projectID, slug

func (*AssetRepository) ReadBySlugUnscoped added in v0.5.15

func (_m *AssetRepository) ReadBySlugUnscoped(projectID uuid.UUID, slug string) (models.Asset, error)

ReadBySlugUnscoped provides a mock function with given fields: projectID, slug

func (*AssetRepository) Save

func (_m *AssetRepository) Save(tx *gorm.DB, t *models.Asset) error

Save provides a mock function with given fields: tx, t

func (*AssetRepository) SaveBatch

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

SaveBatch provides a mock function with given fields: tx, ts

func (*AssetRepository) Transaction

func (_m *AssetRepository) Transaction(_a0 func(*gorm.DB) error) error

Transaction provides a mock function with given fields: _a0

func (*AssetRepository) Update

func (_m *AssetRepository) Update(tx *gorm.DB, _a1 *models.Asset) error

Update provides a mock function with given fields: tx, _a1

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_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() *gorm.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

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

type AssetRepository_Expecter

type AssetRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*AssetRepository_Expecter) Activate added in v0.5.15

func (_e *AssetRepository_Expecter) Activate(tx interface{}, id interface{}) *AssetRepository_Activate_Call

Activate is a helper method to define mock.On call

  • tx *gorm.DB
  • id uuid.UUID

func (*AssetRepository_Expecter) Begin

Begin is a helper method to define mock.On call

func (*AssetRepository_Expecter) Create

func (_e *AssetRepository_Expecter) Create(tx interface{}, t interface{}) *AssetRepository_Create_Call

Create is a helper method to define mock.On call

  • tx *gorm.DB
  • t *models.Asset

func (*AssetRepository_Expecter) CreateBatch

func (_e *AssetRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *AssetRepository_CreateBatch_Call

CreateBatch is a helper method to define mock.On call

  • tx *gorm.DB
  • ts []models.Asset

func (*AssetRepository_Expecter) Delete

func (_e *AssetRepository_Expecter) Delete(tx interface{}, id interface{}) *AssetRepository_Delete_Call

Delete is a helper method to define mock.On call

  • tx *gorm.DB
  • id uuid.UUID

func (*AssetRepository_Expecter) FindByName

func (_e *AssetRepository_Expecter) FindByName(name interface{}) *AssetRepository_FindByName_Call

FindByName is a helper method to define mock.On call

  • name string

func (*AssetRepository_Expecter) FindOrCreate

func (_e *AssetRepository_Expecter) FindOrCreate(tx interface{}, name interface{}) *AssetRepository_FindOrCreate_Call

FindOrCreate is a helper method to define mock.On call

  • tx *gorm.DB
  • name string

func (*AssetRepository_Expecter) GetAssetIDBySlug

func (_e *AssetRepository_Expecter) GetAssetIDBySlug(projectID interface{}, slug interface{}) *AssetRepository_GetAssetIDBySlug_Call

GetAssetIDBySlug is a helper method to define mock.On call

  • projectID uuid.UUID
  • slug string

func (*AssetRepository_Expecter) GetByProjectID

func (_e *AssetRepository_Expecter) GetByProjectID(projectID interface{}) *AssetRepository_GetByProjectID_Call

GetByProjectID is a helper method to define mock.On call

  • projectID uuid.UUID

func (*AssetRepository_Expecter) GetDB

func (_e *AssetRepository_Expecter) GetDB(tx interface{}) *AssetRepository_GetDB_Call

GetDB is a helper method to define mock.On call

  • tx *gorm.DB

func (*AssetRepository_Expecter) List

func (_e *AssetRepository_Expecter) List(ids interface{}) *AssetRepository_List_Call

List is a helper method to define mock.On call

  • ids []uuid.UUID

func (*AssetRepository_Expecter) Read

func (_e *AssetRepository_Expecter) Read(id interface{}) *AssetRepository_Read_Call

Read is a helper method to define mock.On call

  • id uuid.UUID

func (*AssetRepository_Expecter) ReadBySlug

func (_e *AssetRepository_Expecter) ReadBySlug(projectID interface{}, slug interface{}) *AssetRepository_ReadBySlug_Call

ReadBySlug is a helper method to define mock.On call

  • projectID uuid.UUID
  • slug string

func (*AssetRepository_Expecter) ReadBySlugUnscoped added in v0.5.15

func (_e *AssetRepository_Expecter) ReadBySlugUnscoped(projectID interface{}, slug interface{}) *AssetRepository_ReadBySlugUnscoped_Call

ReadBySlugUnscoped is a helper method to define mock.On call

  • projectID uuid.UUID
  • slug string

func (*AssetRepository_Expecter) Save

func (_e *AssetRepository_Expecter) Save(tx interface{}, t interface{}) *AssetRepository_Save_Call

Save is a helper method to define mock.On call

  • tx *gorm.DB
  • t *models.Asset

func (*AssetRepository_Expecter) SaveBatch

func (_e *AssetRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *AssetRepository_SaveBatch_Call

SaveBatch is a helper method to define mock.On call

  • tx *gorm.DB
  • ts []models.Asset

func (*AssetRepository_Expecter) Transaction

func (_e *AssetRepository_Expecter) Transaction(_a0 interface{}) *AssetRepository_Transaction_Call

Transaction is a helper method to define mock.On call

  • _a0 func(*gorm.DB) error

func (*AssetRepository_Expecter) Update

func (_e *AssetRepository_Expecter) Update(tx interface{}, _a1 interface{}) *AssetRepository_Update_Call

Update is a helper method to define mock.On call

  • tx *gorm.DB
  • _a1 *models.Asset

type AssetRepository_FindByName_Call

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_FindOrCreate_Call

type AssetRepository_FindOrCreate_Call struct {
	*mock.Call
}

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

func (*AssetRepository_FindOrCreate_Call) Return

func (*AssetRepository_FindOrCreate_Call) Run

func (*AssetRepository_FindOrCreate_Call) RunAndReturn

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_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(*gorm.DB) *gorm.DB) *AssetRepository_GetDB_Call

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([]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

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

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

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

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

type AssetSupplyChainRepository added in v0.5.15

type AssetSupplyChainRepository struct {
	mock.Mock
}

AssetSupplyChainRepository is an autogenerated mock type for the supplyChainRepository type

func NewAssetSupplyChainRepository added in v0.5.15

func NewAssetSupplyChainRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *AssetSupplyChainRepository

NewAssetSupplyChainRepository creates a new instance of AssetSupplyChainRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AssetSupplyChainRepository) EXPECT added in v0.5.15

func (*AssetSupplyChainRepository) PercentageOfVerifiedSupplyChains added in v0.5.15

func (_m *AssetSupplyChainRepository) PercentageOfVerifiedSupplyChains(assetID uuid.UUID) (float64, error)

PercentageOfVerifiedSupplyChains provides a mock function with given fields: assetID

type AssetSupplyChainRepository_Expecter added in v0.5.15

type AssetSupplyChainRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*AssetSupplyChainRepository_Expecter) PercentageOfVerifiedSupplyChains added in v0.5.15

func (_e *AssetSupplyChainRepository_Expecter) PercentageOfVerifiedSupplyChains(assetID interface{}) *AssetSupplyChainRepository_PercentageOfVerifiedSupplyChains_Call

PercentageOfVerifiedSupplyChains is a helper method to define mock.On call

  • assetID uuid.UUID

type AssetSupplyChainRepository_PercentageOfVerifiedSupplyChains_Call added in v0.5.15

type AssetSupplyChainRepository_PercentageOfVerifiedSupplyChains_Call struct {
	*mock.Call
}

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

func (*AssetSupplyChainRepository_PercentageOfVerifiedSupplyChains_Call) Return added in v0.5.15

func (*AssetSupplyChainRepository_PercentageOfVerifiedSupplyChains_Call) Run added in v0.5.15

func (*AssetSupplyChainRepository_PercentageOfVerifiedSupplyChains_Call) RunAndReturn added in v0.5.15

type ConfigConfigRepository

type ConfigConfigRepository struct {
	mock.Mock
}

ConfigConfigRepository is an autogenerated mock type for the configRepository type

func NewConfigConfigRepository

func NewConfigConfigRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConfigConfigRepository

NewConfigConfigRepository creates a new instance of ConfigConfigRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ConfigConfigRepository) EXPECT

func (*ConfigConfigRepository) GetDB

func (_m *ConfigConfigRepository) GetDB(tx *gorm.DB) *gorm.DB

GetDB provides a mock function with given fields: tx

func (*ConfigConfigRepository) Save

func (_m *ConfigConfigRepository) Save(tx *gorm.DB, _a1 *models.Config) error

Save provides a mock function with given fields: tx, _a1

type ConfigConfigRepository_Expecter

type ConfigConfigRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*ConfigConfigRepository_Expecter) GetDB

GetDB is a helper method to define mock.On call

  • tx *gorm.DB

func (*ConfigConfigRepository_Expecter) Save

func (_e *ConfigConfigRepository_Expecter) Save(tx interface{}, _a1 interface{}) *ConfigConfigRepository_Save_Call

Save is a helper method to define mock.On call

  • tx *gorm.DB
  • _a1 *models.Config

type ConfigConfigRepository_GetDB_Call

type ConfigConfigRepository_GetDB_Call struct {
	*mock.Call
}

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

func (*ConfigConfigRepository_GetDB_Call) Return

func (*ConfigConfigRepository_GetDB_Call) Run

func (*ConfigConfigRepository_GetDB_Call) RunAndReturn

type ConfigConfigRepository_Save_Call

type ConfigConfigRepository_Save_Call struct {
	*mock.Call
}

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

func (*ConfigConfigRepository_Save_Call) Return

func (*ConfigConfigRepository_Save_Call) Run

func (*ConfigConfigRepository_Save_Call) RunAndReturn

type CoreAuthSession

type CoreAuthSession struct {
	mock.Mock
}

CoreAuthSession is an autogenerated mock type for the AuthSession type

func NewCoreAuthSession

func NewCoreAuthSession(t interface {
	mock.TestingT
	Cleanup(func())
}) *CoreAuthSession

NewCoreAuthSession creates a new instance of CoreAuthSession. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CoreAuthSession) EXPECT

func (*CoreAuthSession) GetUserID

func (_m *CoreAuthSession) GetUserID() string

GetUserID provides a mock function with no fields

type CoreAuthSession_Expecter

type CoreAuthSession_Expecter struct {
	// contains filtered or unexported fields
}

func (*CoreAuthSession_Expecter) GetUserID

GetUserID is a helper method to define mock.On call

type CoreAuthSession_GetUserID_Call

type CoreAuthSession_GetUserID_Call struct {
	*mock.Call
}

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

func (*CoreAuthSession_GetUserID_Call) Return

func (*CoreAuthSession_GetUserID_Call) Run

func (*CoreAuthSession_GetUserID_Call) RunAndReturn

type CoreIntegrationAggregate added in v0.5.14

type CoreIntegrationAggregate struct {
	mock.Mock
}

CoreIntegrationAggregate is an autogenerated mock type for the IntegrationAggregate type

func NewCoreIntegrationAggregate added in v0.5.14

func NewCoreIntegrationAggregate(t interface {
	mock.TestingT
	Cleanup(func())
}) *CoreIntegrationAggregate

NewCoreIntegrationAggregate creates a new instance of CoreIntegrationAggregate. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CoreIntegrationAggregate) EXPECT added in v0.5.14

func (*CoreIntegrationAggregate) GetID added in v0.5.14

GetID provides a mock function with no fields

func (*CoreIntegrationAggregate) GetIntegration added in v0.5.14

GetIntegration provides a mock function with given fields: id

func (*CoreIntegrationAggregate) GetUsers added in v0.5.14

func (_m *CoreIntegrationAggregate) GetUsers(org models.Org) []core.User

GetUsers provides a mock function with given fields: org

func (*CoreIntegrationAggregate) HandleEvent added in v0.5.14

func (_m *CoreIntegrationAggregate) HandleEvent(event interface{}) error

HandleEvent provides a mock function with given fields: event

func (*CoreIntegrationAggregate) HandleWebhook added in v0.5.14

func (_m *CoreIntegrationAggregate) HandleWebhook(ctx echo.Context) error

HandleWebhook provides a mock function with given fields: ctx

func (*CoreIntegrationAggregate) IntegrationEnabled added in v0.5.14

func (_m *CoreIntegrationAggregate) IntegrationEnabled(ctx echo.Context) bool

IntegrationEnabled provides a mock function with given fields: ctx

func (*CoreIntegrationAggregate) ListRepositories added in v0.5.14

func (_m *CoreIntegrationAggregate) ListRepositories(ctx echo.Context) ([]core.Repository, error)

ListRepositories provides a mock function with given fields: ctx

func (*CoreIntegrationAggregate) WantsToHandleWebhook added in v0.5.14

func (_m *CoreIntegrationAggregate) WantsToHandleWebhook(ctx echo.Context) bool

WantsToHandleWebhook provides a mock function with given fields: ctx

type CoreIntegrationAggregate_Expecter added in v0.5.14

type CoreIntegrationAggregate_Expecter struct {
	// contains filtered or unexported fields
}

func (*CoreIntegrationAggregate_Expecter) GetID added in v0.5.14

GetID is a helper method to define mock.On call

func (*CoreIntegrationAggregate_Expecter) GetIntegration added in v0.5.14

GetIntegration is a helper method to define mock.On call

  • id core.IntegrationID

func (*CoreIntegrationAggregate_Expecter) GetUsers added in v0.5.14

GetUsers is a helper method to define mock.On call

  • org models.Org

func (*CoreIntegrationAggregate_Expecter) HandleEvent added in v0.5.14

HandleEvent is a helper method to define mock.On call

  • event interface{}

func (*CoreIntegrationAggregate_Expecter) HandleWebhook added in v0.5.14

HandleWebhook is a helper method to define mock.On call

  • ctx echo.Context

func (*CoreIntegrationAggregate_Expecter) IntegrationEnabled added in v0.5.14

IntegrationEnabled is a helper method to define mock.On call

  • ctx echo.Context

func (*CoreIntegrationAggregate_Expecter) ListRepositories added in v0.5.14

ListRepositories is a helper method to define mock.On call

  • ctx echo.Context

func (*CoreIntegrationAggregate_Expecter) WantsToHandleWebhook added in v0.5.14

WantsToHandleWebhook is a helper method to define mock.On call

  • ctx echo.Context

type CoreIntegrationAggregate_GetID_Call added in v0.5.14

type CoreIntegrationAggregate_GetID_Call struct {
	*mock.Call
}

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

func (*CoreIntegrationAggregate_GetID_Call) Return added in v0.5.14

func (*CoreIntegrationAggregate_GetID_Call) Run added in v0.5.14

func (*CoreIntegrationAggregate_GetID_Call) RunAndReturn added in v0.5.14

type CoreIntegrationAggregate_GetIntegration_Call added in v0.5.14

type CoreIntegrationAggregate_GetIntegration_Call struct {
	*mock.Call
}

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

func (*CoreIntegrationAggregate_GetIntegration_Call) Return added in v0.5.14

func (*CoreIntegrationAggregate_GetIntegration_Call) Run added in v0.5.14

func (*CoreIntegrationAggregate_GetIntegration_Call) RunAndReturn added in v0.5.14

type CoreIntegrationAggregate_GetUsers_Call added in v0.5.14

type CoreIntegrationAggregate_GetUsers_Call struct {
	*mock.Call
}

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

func (*CoreIntegrationAggregate_GetUsers_Call) Return added in v0.5.14

func (*CoreIntegrationAggregate_GetUsers_Call) Run added in v0.5.14

func (*CoreIntegrationAggregate_GetUsers_Call) RunAndReturn added in v0.5.14

type CoreIntegrationAggregate_HandleEvent_Call added in v0.5.14

type CoreIntegrationAggregate_HandleEvent_Call struct {
	*mock.Call
}

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

func (*CoreIntegrationAggregate_HandleEvent_Call) Return added in v0.5.14

func (*CoreIntegrationAggregate_HandleEvent_Call) Run added in v0.5.14

func (*CoreIntegrationAggregate_HandleEvent_Call) RunAndReturn added in v0.5.14

type CoreIntegrationAggregate_HandleWebhook_Call added in v0.5.14

type CoreIntegrationAggregate_HandleWebhook_Call struct {
	*mock.Call
}

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

func (*CoreIntegrationAggregate_HandleWebhook_Call) Return added in v0.5.14

func (*CoreIntegrationAggregate_HandleWebhook_Call) Run added in v0.5.14

func (*CoreIntegrationAggregate_HandleWebhook_Call) RunAndReturn added in v0.5.14

type CoreIntegrationAggregate_IntegrationEnabled_Call added in v0.5.14

type CoreIntegrationAggregate_IntegrationEnabled_Call struct {
	*mock.Call
}

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

func (*CoreIntegrationAggregate_IntegrationEnabled_Call) Return added in v0.5.14

func (*CoreIntegrationAggregate_IntegrationEnabled_Call) Run added in v0.5.14

func (*CoreIntegrationAggregate_IntegrationEnabled_Call) RunAndReturn added in v0.5.14

type CoreIntegrationAggregate_ListRepositories_Call added in v0.5.14

type CoreIntegrationAggregate_ListRepositories_Call struct {
	*mock.Call
}

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

func (*CoreIntegrationAggregate_ListRepositories_Call) Return added in v0.5.14

func (*CoreIntegrationAggregate_ListRepositories_Call) Run added in v0.5.14

func (*CoreIntegrationAggregate_ListRepositories_Call) RunAndReturn added in v0.5.14

type CoreIntegrationAggregate_WantsToHandleWebhook_Call added in v0.5.14

type CoreIntegrationAggregate_WantsToHandleWebhook_Call struct {
	*mock.Call
}

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

func (*CoreIntegrationAggregate_WantsToHandleWebhook_Call) Return added in v0.5.14

func (*CoreIntegrationAggregate_WantsToHandleWebhook_Call) Run added in v0.5.14

func (*CoreIntegrationAggregate_WantsToHandleWebhook_Call) RunAndReturn added in v0.5.14

type CoreThirdPartyIntegration added in v0.5.1

type CoreThirdPartyIntegration struct {
	mock.Mock
}

CoreThirdPartyIntegration is an autogenerated mock type for the ThirdPartyIntegration type

func NewCoreThirdPartyIntegration added in v0.5.1

func NewCoreThirdPartyIntegration(t interface {
	mock.TestingT
	Cleanup(func())
}) *CoreThirdPartyIntegration

NewCoreThirdPartyIntegration creates a new instance of CoreThirdPartyIntegration. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CoreThirdPartyIntegration) EXPECT added in v0.5.1

func (*CoreThirdPartyIntegration) GetID added in v0.5.14

GetID provides a mock function with no fields

func (*CoreThirdPartyIntegration) GetUsers added in v0.5.14

func (_m *CoreThirdPartyIntegration) GetUsers(org models.Org) []core.User

GetUsers provides a mock function with given fields: org

func (*CoreThirdPartyIntegration) HandleEvent added in v0.5.1

func (_m *CoreThirdPartyIntegration) HandleEvent(event interface{}) error

HandleEvent provides a mock function with given fields: event

func (*CoreThirdPartyIntegration) HandleWebhook added in v0.5.1

func (_m *CoreThirdPartyIntegration) HandleWebhook(ctx echo.Context) error

HandleWebhook provides a mock function with given fields: ctx

func (*CoreThirdPartyIntegration) IntegrationEnabled added in v0.5.1

func (_m *CoreThirdPartyIntegration) IntegrationEnabled(ctx echo.Context) bool

IntegrationEnabled provides a mock function with given fields: ctx

func (*CoreThirdPartyIntegration) ListRepositories added in v0.5.1

func (_m *CoreThirdPartyIntegration) ListRepositories(ctx echo.Context) ([]core.Repository, error)

ListRepositories provides a mock function with given fields: ctx

func (*CoreThirdPartyIntegration) WantsToHandleWebhook added in v0.5.1

func (_m *CoreThirdPartyIntegration) WantsToHandleWebhook(ctx echo.Context) bool

WantsToHandleWebhook provides a mock function with given fields: ctx

type CoreThirdPartyIntegration_Expecter added in v0.5.1

type CoreThirdPartyIntegration_Expecter struct {
	// contains filtered or unexported fields
}

func (*CoreThirdPartyIntegration_Expecter) GetID added in v0.5.14

GetID is a helper method to define mock.On call

func (*CoreThirdPartyIntegration_Expecter) GetUsers added in v0.5.14

GetUsers is a helper method to define mock.On call

  • org models.Org

func (*CoreThirdPartyIntegration_Expecter) HandleEvent added in v0.5.1

HandleEvent is a helper method to define mock.On call

  • event interface{}

func (*CoreThirdPartyIntegration_Expecter) HandleWebhook added in v0.5.1

HandleWebhook is a helper method to define mock.On call

  • ctx echo.Context

func (*CoreThirdPartyIntegration_Expecter) IntegrationEnabled added in v0.5.1

IntegrationEnabled is a helper method to define mock.On call

  • ctx echo.Context

func (*CoreThirdPartyIntegration_Expecter) ListRepositories added in v0.5.1

ListRepositories is a helper method to define mock.On call

  • ctx echo.Context

func (*CoreThirdPartyIntegration_Expecter) WantsToHandleWebhook added in v0.5.1

WantsToHandleWebhook is a helper method to define mock.On call

  • ctx echo.Context

type CoreThirdPartyIntegration_GetID_Call added in v0.5.14

type CoreThirdPartyIntegration_GetID_Call struct {
	*mock.Call
}

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

func (*CoreThirdPartyIntegration_GetID_Call) Return added in v0.5.14

func (*CoreThirdPartyIntegration_GetID_Call) Run added in v0.5.14

func (*CoreThirdPartyIntegration_GetID_Call) RunAndReturn added in v0.5.14

type CoreThirdPartyIntegration_GetUsers_Call added in v0.5.14

type CoreThirdPartyIntegration_GetUsers_Call struct {
	*mock.Call
}

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

func (*CoreThirdPartyIntegration_GetUsers_Call) Return added in v0.5.14

func (*CoreThirdPartyIntegration_GetUsers_Call) Run added in v0.5.14

func (*CoreThirdPartyIntegration_GetUsers_Call) RunAndReturn added in v0.5.14

type CoreThirdPartyIntegration_HandleEvent_Call added in v0.5.1

type CoreThirdPartyIntegration_HandleEvent_Call struct {
	*mock.Call
}

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

func (*CoreThirdPartyIntegration_HandleEvent_Call) Return added in v0.5.1

func (*CoreThirdPartyIntegration_HandleEvent_Call) Run added in v0.5.1

func (*CoreThirdPartyIntegration_HandleEvent_Call) RunAndReturn added in v0.5.1

type CoreThirdPartyIntegration_HandleWebhook_Call added in v0.5.1

type CoreThirdPartyIntegration_HandleWebhook_Call struct {
	*mock.Call
}

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

func (*CoreThirdPartyIntegration_HandleWebhook_Call) Return added in v0.5.1

func (*CoreThirdPartyIntegration_HandleWebhook_Call) Run added in v0.5.1

func (*CoreThirdPartyIntegration_HandleWebhook_Call) RunAndReturn added in v0.5.1

type CoreThirdPartyIntegration_IntegrationEnabled_Call added in v0.5.1

type CoreThirdPartyIntegration_IntegrationEnabled_Call struct {
	*mock.Call
}

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

func (*CoreThirdPartyIntegration_IntegrationEnabled_Call) Return added in v0.5.1

func (*CoreThirdPartyIntegration_IntegrationEnabled_Call) Run added in v0.5.1

func (*CoreThirdPartyIntegration_IntegrationEnabled_Call) RunAndReturn added in v0.5.1

type CoreThirdPartyIntegration_ListRepositories_Call added in v0.5.1

type CoreThirdPartyIntegration_ListRepositories_Call struct {
	*mock.Call
}

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

func (*CoreThirdPartyIntegration_ListRepositories_Call) Return added in v0.5.1

func (*CoreThirdPartyIntegration_ListRepositories_Call) Run added in v0.5.1

func (*CoreThirdPartyIntegration_ListRepositories_Call) RunAndReturn added in v0.5.1

type CoreThirdPartyIntegration_WantsToHandleWebhook_Call added in v0.5.1

type CoreThirdPartyIntegration_WantsToHandleWebhook_Call struct {
	*mock.Call
}

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

func (*CoreThirdPartyIntegration_WantsToHandleWebhook_Call) Return added in v0.5.1

func (*CoreThirdPartyIntegration_WantsToHandleWebhook_Call) Run added in v0.5.1

func (*CoreThirdPartyIntegration_WantsToHandleWebhook_Call) RunAndReturn added in v0.5.1

type FlawAssetRepository

type FlawAssetRepository struct {
	mock.Mock
}

FlawAssetRepository is an autogenerated mock type for the assetRepository type

func NewFlawAssetRepository

func NewFlawAssetRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *FlawAssetRepository

NewFlawAssetRepository creates a new instance of FlawAssetRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FlawAssetRepository) EXPECT

func (*FlawAssetRepository) GetAllAssetsFromDB

func (_m *FlawAssetRepository) GetAllAssetsFromDB() ([]models.Asset, error)

GetAllAssetsFromDB provides a mock function with no fields

func (*FlawAssetRepository) Update

func (_m *FlawAssetRepository) Update(tx *gorm.DB, asset *models.Asset) error

Update provides a mock function with given fields: tx, asset

type FlawAssetRepository_Expecter

type FlawAssetRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*FlawAssetRepository_Expecter) GetAllAssetsFromDB

GetAllAssetsFromDB is a helper method to define mock.On call

func (*FlawAssetRepository_Expecter) Update

func (_e *FlawAssetRepository_Expecter) Update(tx interface{}, asset interface{}) *FlawAssetRepository_Update_Call

Update is a helper method to define mock.On call

  • tx *gorm.DB
  • asset *models.Asset

type FlawAssetRepository_GetAllAssetsFromDB_Call

type FlawAssetRepository_GetAllAssetsFromDB_Call struct {
	*mock.Call
}

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

func (*FlawAssetRepository_GetAllAssetsFromDB_Call) Return

func (*FlawAssetRepository_GetAllAssetsFromDB_Call) Run

func (*FlawAssetRepository_GetAllAssetsFromDB_Call) RunAndReturn

type FlawAssetRepository_Update_Call

type FlawAssetRepository_Update_Call struct {
	*mock.Call
}

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

func (*FlawAssetRepository_Update_Call) Return

func (*FlawAssetRepository_Update_Call) Run

func (*FlawAssetRepository_Update_Call) RunAndReturn

type FlawCtrFlawEventRepository

type FlawCtrFlawEventRepository struct {
	mock.Mock
}

FlawCtrFlawEventRepository is an autogenerated mock type for the ctrFlawEventRepository type

func NewFlawCtrFlawEventRepository

func NewFlawCtrFlawEventRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *FlawCtrFlawEventRepository

NewFlawCtrFlawEventRepository creates a new instance of FlawCtrFlawEventRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FlawCtrFlawEventRepository) Create

func (_m *FlawCtrFlawEventRepository) Create(tx *gorm.DB, flawEvent *models.FlawEvent) error

Create provides a mock function with given fields: tx, flawEvent

func (*FlawCtrFlawEventRepository) EXPECT

type FlawCtrFlawEventRepository_Create_Call

type FlawCtrFlawEventRepository_Create_Call struct {
	*mock.Call
}

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

func (*FlawCtrFlawEventRepository_Create_Call) Return

func (*FlawCtrFlawEventRepository_Create_Call) Run

func (*FlawCtrFlawEventRepository_Create_Call) RunAndReturn

type FlawCtrFlawEventRepository_Expecter

type FlawCtrFlawEventRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*FlawCtrFlawEventRepository_Expecter) Create

func (_e *FlawCtrFlawEventRepository_Expecter) Create(tx interface{}, flawEvent interface{}) *FlawCtrFlawEventRepository_Create_Call

Create is a helper method to define mock.On call

  • tx *gorm.DB
  • flawEvent *models.FlawEvent

type FlawCveRepository

type FlawCveRepository struct {
	mock.Mock
}

FlawCveRepository is an autogenerated mock type for the cveRepository type

func NewFlawCveRepository

func NewFlawCveRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *FlawCveRepository

NewFlawCveRepository creates a new instance of FlawCveRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FlawCveRepository) EXPECT

func (*FlawCveRepository) FindCVE

func (_m *FlawCveRepository) FindCVE(tx *gorm.DB, cveId string) (models.CVE, error)

FindCVE provides a mock function with given fields: tx, cveId

type FlawCveRepository_Expecter

type FlawCveRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*FlawCveRepository_Expecter) FindCVE

func (_e *FlawCveRepository_Expecter) FindCVE(tx interface{}, cveId interface{}) *FlawCveRepository_FindCVE_Call

FindCVE is a helper method to define mock.On call

  • tx *gorm.DB
  • cveId string

type FlawCveRepository_FindCVE_Call

type FlawCveRepository_FindCVE_Call struct {
	*mock.Call
}

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

func (*FlawCveRepository_FindCVE_Call) Return

func (*FlawCveRepository_FindCVE_Call) Run

func (*FlawCveRepository_FindCVE_Call) RunAndReturn

type FlawFlawEventRepository

type FlawFlawEventRepository struct {
	mock.Mock
}

FlawFlawEventRepository is an autogenerated mock type for the flawEventRepository type

func NewFlawFlawEventRepository

func NewFlawFlawEventRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *FlawFlawEventRepository

NewFlawFlawEventRepository creates a new instance of FlawFlawEventRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FlawFlawEventRepository) EXPECT

func (*FlawFlawEventRepository) Save

func (_m *FlawFlawEventRepository) Save(db *gorm.DB, event *models.FlawEvent) error

Save provides a mock function with given fields: db, event

func (*FlawFlawEventRepository) SaveBatch

func (_m *FlawFlawEventRepository) SaveBatch(db *gorm.DB, events []models.FlawEvent) error

SaveBatch provides a mock function with given fields: db, events

type FlawFlawEventRepository_Expecter

type FlawFlawEventRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*FlawFlawEventRepository_Expecter) Save

func (_e *FlawFlawEventRepository_Expecter) Save(db interface{}, event interface{}) *FlawFlawEventRepository_Save_Call

Save is a helper method to define mock.On call

  • db *gorm.DB
  • event *models.FlawEvent

func (*FlawFlawEventRepository_Expecter) SaveBatch

func (_e *FlawFlawEventRepository_Expecter) SaveBatch(db interface{}, events interface{}) *FlawFlawEventRepository_SaveBatch_Call

SaveBatch is a helper method to define mock.On call

  • db *gorm.DB
  • events []models.FlawEvent

type FlawFlawEventRepository_SaveBatch_Call

type FlawFlawEventRepository_SaveBatch_Call struct {
	*mock.Call
}

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

func (*FlawFlawEventRepository_SaveBatch_Call) Return

func (*FlawFlawEventRepository_SaveBatch_Call) Run

func (*FlawFlawEventRepository_SaveBatch_Call) RunAndReturn

type FlawFlawEventRepository_Save_Call

type FlawFlawEventRepository_Save_Call struct {
	*mock.Call
}

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

func (*FlawFlawEventRepository_Save_Call) Return

func (*FlawFlawEventRepository_Save_Call) Run

func (*FlawFlawEventRepository_Save_Call) RunAndReturn

type FlawFlawRepository

type FlawFlawRepository struct {
	mock.Mock
}

FlawFlawRepository is an autogenerated mock type for the flawRepository type

func NewFlawFlawRepository

func NewFlawFlawRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *FlawFlawRepository

NewFlawFlawRepository creates a new instance of FlawFlawRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FlawFlawRepository) Begin

func (_m *FlawFlawRepository) Begin() *gorm.DB

Begin provides a mock function with no fields

func (*FlawFlawRepository) EXPECT

func (*FlawFlawRepository) GetAllFlawsByAssetID

func (_m *FlawFlawRepository) GetAllFlawsByAssetID(tx *gorm.DB, assetID uuid.UUID) ([]models.Flaw, error)

GetAllFlawsByAssetID provides a mock function with given fields: tx, assetID

func (*FlawFlawRepository) Save

func (_m *FlawFlawRepository) Save(db *gorm.DB, flaws *models.Flaw) error

Save provides a mock function with given fields: db, flaws

func (*FlawFlawRepository) SaveBatch

func (_m *FlawFlawRepository) SaveBatch(db *gorm.DB, flaws []models.Flaw) error

SaveBatch provides a mock function with given fields: db, flaws

func (*FlawFlawRepository) Transaction

func (_m *FlawFlawRepository) Transaction(txFunc func(*gorm.DB) error) error

Transaction provides a mock function with given fields: txFunc

type FlawFlawRepository_Begin_Call

type FlawFlawRepository_Begin_Call struct {
	*mock.Call
}

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

func (*FlawFlawRepository_Begin_Call) Return

func (*FlawFlawRepository_Begin_Call) Run

func (*FlawFlawRepository_Begin_Call) RunAndReturn

func (_c *FlawFlawRepository_Begin_Call) RunAndReturn(run func() *gorm.DB) *FlawFlawRepository_Begin_Call

type FlawFlawRepository_Expecter

type FlawFlawRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*FlawFlawRepository_Expecter) Begin

Begin is a helper method to define mock.On call

func (*FlawFlawRepository_Expecter) GetAllFlawsByAssetID

func (_e *FlawFlawRepository_Expecter) GetAllFlawsByAssetID(tx interface{}, assetID interface{}) *FlawFlawRepository_GetAllFlawsByAssetID_Call

GetAllFlawsByAssetID is a helper method to define mock.On call

  • tx *gorm.DB
  • assetID uuid.UUID

func (*FlawFlawRepository_Expecter) Save

func (_e *FlawFlawRepository_Expecter) Save(db interface{}, flaws interface{}) *FlawFlawRepository_Save_Call

Save is a helper method to define mock.On call

  • db *gorm.DB
  • flaws *models.Flaw

func (*FlawFlawRepository_Expecter) SaveBatch

func (_e *FlawFlawRepository_Expecter) SaveBatch(db interface{}, flaws interface{}) *FlawFlawRepository_SaveBatch_Call

SaveBatch is a helper method to define mock.On call

  • db *gorm.DB
  • flaws []models.Flaw

func (*FlawFlawRepository_Expecter) Transaction

func (_e *FlawFlawRepository_Expecter) Transaction(txFunc interface{}) *FlawFlawRepository_Transaction_Call

Transaction is a helper method to define mock.On call

  • txFunc func(*gorm.DB) error

type FlawFlawRepository_GetAllFlawsByAssetID_Call

type FlawFlawRepository_GetAllFlawsByAssetID_Call struct {
	*mock.Call
}

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

func (*FlawFlawRepository_GetAllFlawsByAssetID_Call) Return

func (*FlawFlawRepository_GetAllFlawsByAssetID_Call) Run

func (*FlawFlawRepository_GetAllFlawsByAssetID_Call) RunAndReturn

type FlawFlawRepository_SaveBatch_Call

type FlawFlawRepository_SaveBatch_Call struct {
	*mock.Call
}

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

func (*FlawFlawRepository_SaveBatch_Call) Return

func (*FlawFlawRepository_SaveBatch_Call) Run

func (*FlawFlawRepository_SaveBatch_Call) RunAndReturn

type FlawFlawRepository_Save_Call

type FlawFlawRepository_Save_Call struct {
	*mock.Call
}

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

func (*FlawFlawRepository_Save_Call) Return

func (*FlawFlawRepository_Save_Call) Run

func (*FlawFlawRepository_Save_Call) RunAndReturn

type FlawFlawRepository_Transaction_Call

type FlawFlawRepository_Transaction_Call struct {
	*mock.Call
}

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

func (*FlawFlawRepository_Transaction_Call) Return

func (*FlawFlawRepository_Transaction_Call) Run

func (*FlawFlawRepository_Transaction_Call) RunAndReturn

type FlawFlawService

type FlawFlawService struct {
	mock.Mock
}

FlawFlawService is an autogenerated mock type for the flawService type

func NewFlawFlawService

func NewFlawFlawService(t interface {
	mock.TestingT
	Cleanup(func())
}) *FlawFlawService

NewFlawFlawService creates a new instance of FlawFlawService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FlawFlawService) EXPECT

func (*FlawFlawService) UpdateFlawState

func (_m *FlawFlawService) UpdateFlawState(tx *gorm.DB, userID string, _a2 *models.Flaw, statusType string, justification string) (models.FlawEvent, error)

UpdateFlawState provides a mock function with given fields: tx, userID, _a2, statusType, justification

type FlawFlawService_Expecter

type FlawFlawService_Expecter struct {
	// contains filtered or unexported fields
}

func (*FlawFlawService_Expecter) UpdateFlawState

func (_e *FlawFlawService_Expecter) UpdateFlawState(tx interface{}, userID interface{}, _a2 interface{}, statusType interface{}, justification interface{}) *FlawFlawService_UpdateFlawState_Call

UpdateFlawState is a helper method to define mock.On call

  • tx *gorm.DB
  • userID string
  • _a2 *models.Flaw
  • statusType string
  • justification string

type FlawFlawService_UpdateFlawState_Call

type FlawFlawService_UpdateFlawState_Call struct {
	*mock.Call
}

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

func (*FlawFlawService_UpdateFlawState_Call) Return

func (*FlawFlawService_UpdateFlawState_Call) Run

func (_c *FlawFlawService_UpdateFlawState_Call) Run(run func(tx *gorm.DB, userID string, _a2 *models.Flaw, statusType string, justification string)) *FlawFlawService_UpdateFlawState_Call

func (*FlawFlawService_UpdateFlawState_Call) RunAndReturn

type FlawLeaderElector added in v0.5.14

type FlawLeaderElector struct {
	mock.Mock
}

FlawLeaderElector is an autogenerated mock type for the leaderElector type

func NewFlawLeaderElector added in v0.5.14

func NewFlawLeaderElector(t interface {
	mock.TestingT
	Cleanup(func())
}) *FlawLeaderElector

NewFlawLeaderElector creates a new instance of FlawLeaderElector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FlawLeaderElector) EXPECT added in v0.5.14

func (*FlawLeaderElector) IfLeader added in v0.5.14

func (_m *FlawLeaderElector) IfLeader(ctx context.Context, fn func() error)

IfLeader provides a mock function with given fields: ctx, fn

type FlawLeaderElector_Expecter added in v0.5.14

type FlawLeaderElector_Expecter struct {
	// contains filtered or unexported fields
}

func (*FlawLeaderElector_Expecter) IfLeader added in v0.5.14

func (_e *FlawLeaderElector_Expecter) IfLeader(ctx interface{}, fn interface{}) *FlawLeaderElector_IfLeader_Call

IfLeader is a helper method to define mock.On call

  • ctx context.Context
  • fn func() error

type FlawLeaderElector_IfLeader_Call added in v0.5.14

type FlawLeaderElector_IfLeader_Call struct {
	*mock.Call
}

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

func (*FlawLeaderElector_IfLeader_Call) Return added in v0.5.14

func (*FlawLeaderElector_IfLeader_Call) Run added in v0.5.14

func (*FlawLeaderElector_IfLeader_Call) RunAndReturn added in v0.5.14

type FlawProjectService added in v0.5.14

type FlawProjectService struct {
	mock.Mock
}

FlawProjectService is an autogenerated mock type for the projectService type

func NewFlawProjectService added in v0.5.14

func NewFlawProjectService(t interface {
	mock.TestingT
	Cleanup(func())
}) *FlawProjectService

NewFlawProjectService creates a new instance of FlawProjectService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FlawProjectService) EXPECT added in v0.5.14

func (*FlawProjectService) ListAllowedProjects added in v0.5.14

func (_m *FlawProjectService) ListAllowedProjects(c echo.Context) ([]models.Project, error)

ListAllowedProjects provides a mock function with given fields: c

type FlawProjectService_Expecter added in v0.5.14

type FlawProjectService_Expecter struct {
	// contains filtered or unexported fields
}

func (*FlawProjectService_Expecter) ListAllowedProjects added in v0.5.14

func (_e *FlawProjectService_Expecter) ListAllowedProjects(c interface{}) *FlawProjectService_ListAllowedProjects_Call

ListAllowedProjects is a helper method to define mock.On call

  • c echo.Context

type FlawProjectService_ListAllowedProjects_Call added in v0.5.14

type FlawProjectService_ListAllowedProjects_Call struct {
	*mock.Call
}

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

func (*FlawProjectService_ListAllowedProjects_Call) Return added in v0.5.14

func (*FlawProjectService_ListAllowedProjects_Call) Run added in v0.5.14

func (*FlawProjectService_ListAllowedProjects_Call) RunAndReturn added in v0.5.14

type FlawRepository

type FlawRepository struct {
	mock.Mock
}

FlawRepository is an autogenerated mock type for the repository type

func NewFlawRepository

func NewFlawRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *FlawRepository

NewFlawRepository creates a new instance of FlawRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FlawRepository) Activate added in v0.5.15

func (_m *FlawRepository) Activate(tx *gorm.DB, id string) error

Activate provides a mock function with given fields: tx, id

func (*FlawRepository) Begin

func (_m *FlawRepository) Begin() *gorm.DB

Begin provides a mock function with no fields

func (*FlawRepository) Create

func (_m *FlawRepository) Create(tx *gorm.DB, t *models.Flaw) error

Create provides a mock function with given fields: tx, t

func (*FlawRepository) CreateBatch

func (_m *FlawRepository) CreateBatch(tx *gorm.DB, ts []models.Flaw) error

CreateBatch provides a mock function with given fields: tx, ts

func (*FlawRepository) Delete

func (_m *FlawRepository) Delete(tx *gorm.DB, id string) error

Delete provides a mock function with given fields: tx, id

func (*FlawRepository) EXPECT

func (*FlawRepository) GetByAssetId

func (_m *FlawRepository) GetByAssetId(tx *gorm.DB, assetId uuid.UUID) ([]models.Flaw, error)

GetByAssetId provides a mock function with given fields: tx, assetId

func (*FlawRepository) GetByAssetIdPaged

func (_m *FlawRepository) GetByAssetIdPaged(tx *gorm.DB, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery, assetId uuid.UUID) (core.Paged[models.Flaw], map[string]int, error)

GetByAssetIdPaged provides a mock function with given fields: tx, pageInfo, search, filter, sort, assetId

func (*FlawRepository) GetDB

func (_m *FlawRepository) GetDB(tx *gorm.DB) *gorm.DB

GetDB provides a mock function with given fields: tx

func (*FlawRepository) GetFlawsByAssetIdPagedAndFlat added in v0.5.14

func (_m *FlawRepository) GetFlawsByAssetIdPagedAndFlat(tx *gorm.DB, assetId uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.Flaw], error)

GetFlawsByAssetIdPagedAndFlat provides a mock function with given fields: tx, assetId, pageInfo, search, filter, sort

func (*FlawRepository) GetFlawsByOrgIdPaged added in v0.5.14

func (_m *FlawRepository) GetFlawsByOrgIdPaged(tx *gorm.DB, userAllowedProjectIds []string, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.Flaw], error)

GetFlawsByOrgIdPaged provides a mock function with given fields: tx, userAllowedProjectIds, pageInfo, search, filter, sort

func (*FlawRepository) GetFlawsByProjectIdPaged added in v0.5.14

func (_m *FlawRepository) GetFlawsByProjectIdPaged(tx *gorm.DB, projectID uuid.UUID, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.Flaw], error)

GetFlawsByProjectIdPaged provides a mock function with given fields: tx, projectID, pageInfo, search, filter, sort

func (*FlawRepository) List

func (_m *FlawRepository) List(ids []string) ([]models.Flaw, error)

List provides a mock function with given fields: ids

func (*FlawRepository) Read

func (_m *FlawRepository) Read(id string) (models.Flaw, error)

Read provides a mock function with given fields: id

func (*FlawRepository) Save

func (_m *FlawRepository) Save(tx *gorm.DB, t *models.Flaw) error

Save provides a mock function with given fields: tx, t

func (*FlawRepository) SaveBatch

func (_m *FlawRepository) SaveBatch(tx *gorm.DB, ts []models.Flaw) error

SaveBatch provides a mock function with given fields: tx, ts

func (*FlawRepository) Transaction

func (_m *FlawRepository) Transaction(_a0 func(*gorm.DB) error) error

Transaction provides a mock function with given fields: _a0

type FlawRepository_Activate_Call added in v0.5.15

type FlawRepository_Activate_Call struct {
	*mock.Call
}

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

func (*FlawRepository_Activate_Call) Return added in v0.5.15

func (*FlawRepository_Activate_Call) Run added in v0.5.15

func (*FlawRepository_Activate_Call) RunAndReturn added in v0.5.15

type FlawRepository_Begin_Call

type FlawRepository_Begin_Call struct {
	*mock.Call
}

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

func (*FlawRepository_Begin_Call) Return

func (*FlawRepository_Begin_Call) Run

func (*FlawRepository_Begin_Call) RunAndReturn

func (_c *FlawRepository_Begin_Call) RunAndReturn(run func() *gorm.DB) *FlawRepository_Begin_Call

type FlawRepository_CreateBatch_Call

type FlawRepository_CreateBatch_Call struct {
	*mock.Call
}

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

func (*FlawRepository_CreateBatch_Call) Return

func (*FlawRepository_CreateBatch_Call) Run

func (*FlawRepository_CreateBatch_Call) RunAndReturn

type FlawRepository_Create_Call

type FlawRepository_Create_Call struct {
	*mock.Call
}

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

func (*FlawRepository_Create_Call) Return

func (*FlawRepository_Create_Call) Run

func (*FlawRepository_Create_Call) RunAndReturn

type FlawRepository_Delete_Call

type FlawRepository_Delete_Call struct {
	*mock.Call
}

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

func (*FlawRepository_Delete_Call) Return

func (*FlawRepository_Delete_Call) Run

func (*FlawRepository_Delete_Call) RunAndReturn

type FlawRepository_Expecter

type FlawRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*FlawRepository_Expecter) Activate added in v0.5.15

func (_e *FlawRepository_Expecter) Activate(tx interface{}, id interface{}) *FlawRepository_Activate_Call

Activate is a helper method to define mock.On call

  • tx *gorm.DB
  • id string

func (*FlawRepository_Expecter) Begin

Begin is a helper method to define mock.On call

func (*FlawRepository_Expecter) Create

func (_e *FlawRepository_Expecter) Create(tx interface{}, t interface{}) *FlawRepository_Create_Call

Create is a helper method to define mock.On call

  • tx *gorm.DB
  • t *models.Flaw

func (*FlawRepository_Expecter) CreateBatch

func (_e *FlawRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *FlawRepository_CreateBatch_Call

CreateBatch is a helper method to define mock.On call

  • tx *gorm.DB
  • ts []models.Flaw

func (*FlawRepository_Expecter) Delete

func (_e *FlawRepository_Expecter) Delete(tx interface{}, id interface{}) *FlawRepository_Delete_Call

Delete is a helper method to define mock.On call

  • tx *gorm.DB
  • id string

func (*FlawRepository_Expecter) GetByAssetId

func (_e *FlawRepository_Expecter) GetByAssetId(tx interface{}, assetId interface{}) *FlawRepository_GetByAssetId_Call

GetByAssetId is a helper method to define mock.On call

  • tx *gorm.DB
  • assetId uuid.UUID

func (*FlawRepository_Expecter) GetByAssetIdPaged

func (_e *FlawRepository_Expecter) GetByAssetIdPaged(tx interface{}, pageInfo interface{}, search interface{}, filter interface{}, sort interface{}, assetId interface{}) *FlawRepository_GetByAssetIdPaged_Call

GetByAssetIdPaged is a helper method to define mock.On call

  • tx *gorm.DB
  • pageInfo core.PageInfo
  • search string
  • filter []core.FilterQuery
  • sort []core.SortQuery
  • assetId uuid.UUID

func (*FlawRepository_Expecter) GetDB

func (_e *FlawRepository_Expecter) GetDB(tx interface{}) *FlawRepository_GetDB_Call

GetDB is a helper method to define mock.On call

  • tx *gorm.DB

func (*FlawRepository_Expecter) GetFlawsByAssetIdPagedAndFlat added in v0.5.14

func (_e *FlawRepository_Expecter) GetFlawsByAssetIdPagedAndFlat(tx interface{}, assetId interface{}, pageInfo interface{}, search interface{}, filter interface{}, sort interface{}) *FlawRepository_GetFlawsByAssetIdPagedAndFlat_Call

GetFlawsByAssetIdPagedAndFlat is a helper method to define mock.On call

  • tx *gorm.DB
  • assetId uuid.UUID
  • pageInfo core.PageInfo
  • search string
  • filter []core.FilterQuery
  • sort []core.SortQuery

func (*FlawRepository_Expecter) GetFlawsByOrgIdPaged added in v0.5.14

func (_e *FlawRepository_Expecter) GetFlawsByOrgIdPaged(tx interface{}, userAllowedProjectIds interface{}, pageInfo interface{}, search interface{}, filter interface{}, sort interface{}) *FlawRepository_GetFlawsByOrgIdPaged_Call

GetFlawsByOrgIdPaged is a helper method to define mock.On call

  • tx *gorm.DB
  • userAllowedProjectIds []string
  • pageInfo core.PageInfo
  • search string
  • filter []core.FilterQuery
  • sort []core.SortQuery

func (*FlawRepository_Expecter) GetFlawsByProjectIdPaged added in v0.5.14

func (_e *FlawRepository_Expecter) GetFlawsByProjectIdPaged(tx interface{}, projectID interface{}, pageInfo interface{}, search interface{}, filter interface{}, sort interface{}) *FlawRepository_GetFlawsByProjectIdPaged_Call

GetFlawsByProjectIdPaged is a helper method to define mock.On call

  • tx *gorm.DB
  • projectID uuid.UUID
  • pageInfo core.PageInfo
  • search string
  • filter []core.FilterQuery
  • sort []core.SortQuery

func (*FlawRepository_Expecter) List

func (_e *FlawRepository_Expecter) List(ids interface{}) *FlawRepository_List_Call

List is a helper method to define mock.On call

  • ids []string

func (*FlawRepository_Expecter) Read

func (_e *FlawRepository_Expecter) Read(id interface{}) *FlawRepository_Read_Call

Read is a helper method to define mock.On call

  • id string

func (*FlawRepository_Expecter) Save

func (_e *FlawRepository_Expecter) Save(tx interface{}, t interface{}) *FlawRepository_Save_Call

Save is a helper method to define mock.On call

  • tx *gorm.DB
  • t *models.Flaw

func (*FlawRepository_Expecter) SaveBatch

func (_e *FlawRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *FlawRepository_SaveBatch_Call

SaveBatch is a helper method to define mock.On call

  • tx *gorm.DB
  • ts []models.Flaw

func (*FlawRepository_Expecter) Transaction

func (_e *FlawRepository_Expecter) Transaction(_a0 interface{}) *FlawRepository_Transaction_Call

Transaction is a helper method to define mock.On call

  • _a0 func(*gorm.DB) error

type FlawRepository_GetByAssetIdPaged_Call

type FlawRepository_GetByAssetIdPaged_Call struct {
	*mock.Call
}

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

func (*FlawRepository_GetByAssetIdPaged_Call) Return

func (*FlawRepository_GetByAssetIdPaged_Call) Run

func (_c *FlawRepository_GetByAssetIdPaged_Call) Run(run func(tx *gorm.DB, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery, assetId uuid.UUID)) *FlawRepository_GetByAssetIdPaged_Call

func (*FlawRepository_GetByAssetIdPaged_Call) RunAndReturn

type FlawRepository_GetByAssetId_Call

type FlawRepository_GetByAssetId_Call struct {
	*mock.Call
}

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

func (*FlawRepository_GetByAssetId_Call) Return

func (*FlawRepository_GetByAssetId_Call) Run

func (*FlawRepository_GetByAssetId_Call) RunAndReturn

type FlawRepository_GetDB_Call

type FlawRepository_GetDB_Call struct {
	*mock.Call
}

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

func (*FlawRepository_GetDB_Call) Return

func (*FlawRepository_GetDB_Call) Run

func (*FlawRepository_GetDB_Call) RunAndReturn

func (_c *FlawRepository_GetDB_Call) RunAndReturn(run func(*gorm.DB) *gorm.DB) *FlawRepository_GetDB_Call

type FlawRepository_GetFlawsByAssetIdPagedAndFlat_Call added in v0.5.14

type FlawRepository_GetFlawsByAssetIdPagedAndFlat_Call struct {
	*mock.Call
}

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

func (*FlawRepository_GetFlawsByAssetIdPagedAndFlat_Call) Return added in v0.5.14

func (*FlawRepository_GetFlawsByAssetIdPagedAndFlat_Call) Run added in v0.5.14

func (*FlawRepository_GetFlawsByAssetIdPagedAndFlat_Call) RunAndReturn added in v0.5.14

type FlawRepository_GetFlawsByOrgIdPaged_Call added in v0.5.14

type FlawRepository_GetFlawsByOrgIdPaged_Call struct {
	*mock.Call
}

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

func (*FlawRepository_GetFlawsByOrgIdPaged_Call) Return added in v0.5.14

func (*FlawRepository_GetFlawsByOrgIdPaged_Call) Run added in v0.5.14

func (_c *FlawRepository_GetFlawsByOrgIdPaged_Call) Run(run func(tx *gorm.DB, userAllowedProjectIds []string, pageInfo core.PageInfo, search string, filter []core.FilterQuery, sort []core.SortQuery)) *FlawRepository_GetFlawsByOrgIdPaged_Call

func (*FlawRepository_GetFlawsByOrgIdPaged_Call) RunAndReturn added in v0.5.14

type FlawRepository_GetFlawsByProjectIdPaged_Call added in v0.5.14

type FlawRepository_GetFlawsByProjectIdPaged_Call struct {
	*mock.Call
}

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

func (*FlawRepository_GetFlawsByProjectIdPaged_Call) Return added in v0.5.14

func (*FlawRepository_GetFlawsByProjectIdPaged_Call) Run added in v0.5.14

func (*FlawRepository_GetFlawsByProjectIdPaged_Call) RunAndReturn added in v0.5.14

type FlawRepository_List_Call

type FlawRepository_List_Call struct {
	*mock.Call
}

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

func (*FlawRepository_List_Call) Return

func (*FlawRepository_List_Call) Run

func (_c *FlawRepository_List_Call) Run(run func(ids []string)) *FlawRepository_List_Call

func (*FlawRepository_List_Call) RunAndReturn

func (_c *FlawRepository_List_Call) RunAndReturn(run func([]string) ([]models.Flaw, error)) *FlawRepository_List_Call

type FlawRepository_Read_Call

type FlawRepository_Read_Call struct {
	*mock.Call
}

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

func (*FlawRepository_Read_Call) Return

func (*FlawRepository_Read_Call) Run

func (*FlawRepository_Read_Call) RunAndReturn

func (_c *FlawRepository_Read_Call) RunAndReturn(run func(string) (models.Flaw, error)) *FlawRepository_Read_Call

type FlawRepository_SaveBatch_Call

type FlawRepository_SaveBatch_Call struct {
	*mock.Call
}

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

func (*FlawRepository_SaveBatch_Call) Return

func (*FlawRepository_SaveBatch_Call) Run

func (*FlawRepository_SaveBatch_Call) RunAndReturn

type FlawRepository_Save_Call

type FlawRepository_Save_Call struct {
	*mock.Call
}

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

func (*FlawRepository_Save_Call) Return

func (*FlawRepository_Save_Call) Run

func (*FlawRepository_Save_Call) RunAndReturn

func (_c *FlawRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.Flaw) error) *FlawRepository_Save_Call

type FlawRepository_Transaction_Call

type FlawRepository_Transaction_Call struct {
	*mock.Call
}

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

func (*FlawRepository_Transaction_Call) Return

func (*FlawRepository_Transaction_Call) Run

func (*FlawRepository_Transaction_Call) RunAndReturn

type IntegrationsAssetRepository added in v0.5.14

type IntegrationsAssetRepository struct {
	mock.Mock
}

IntegrationsAssetRepository is an autogenerated mock type for the assetRepository type

func NewIntegrationsAssetRepository added in v0.5.14

func NewIntegrationsAssetRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntegrationsAssetRepository

NewIntegrationsAssetRepository creates a new instance of IntegrationsAssetRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IntegrationsAssetRepository) EXPECT added in v0.5.14

func (*IntegrationsAssetRepository) Read added in v0.5.14

Read provides a mock function with given fields: id

type IntegrationsAssetRepository_Expecter added in v0.5.14

type IntegrationsAssetRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*IntegrationsAssetRepository_Expecter) Read added in v0.5.14

Read is a helper method to define mock.On call

  • id uuid.UUID

type IntegrationsAssetRepository_Read_Call added in v0.5.14

type IntegrationsAssetRepository_Read_Call struct {
	*mock.Call
}

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

func (*IntegrationsAssetRepository_Read_Call) Return added in v0.5.14

func (*IntegrationsAssetRepository_Read_Call) Run added in v0.5.14

func (*IntegrationsAssetRepository_Read_Call) RunAndReturn added in v0.5.14

type IntegrationsExternalUserRepository added in v0.5.14

type IntegrationsExternalUserRepository struct {
	mock.Mock
}

IntegrationsExternalUserRepository is an autogenerated mock type for the externalUserRepository type

func NewIntegrationsExternalUserRepository added in v0.5.14

func NewIntegrationsExternalUserRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntegrationsExternalUserRepository

NewIntegrationsExternalUserRepository creates a new instance of IntegrationsExternalUserRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IntegrationsExternalUserRepository) EXPECT added in v0.5.14

func (*IntegrationsExternalUserRepository) FindByOrgID added in v0.5.14

func (_m *IntegrationsExternalUserRepository) FindByOrgID(tx *gorm.DB, orgID uuid.UUID) ([]models.ExternalUser, error)

FindByOrgID provides a mock function with given fields: tx, orgID

func (*IntegrationsExternalUserRepository) GetDB added in v0.5.14

GetDB provides a mock function with given fields: tx

func (*IntegrationsExternalUserRepository) Save added in v0.5.14

Save provides a mock function with given fields: db, user

type IntegrationsExternalUserRepository_Expecter added in v0.5.14

type IntegrationsExternalUserRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*IntegrationsExternalUserRepository_Expecter) FindByOrgID added in v0.5.14

FindByOrgID is a helper method to define mock.On call

  • tx *gorm.DB
  • orgID uuid.UUID

func (*IntegrationsExternalUserRepository_Expecter) GetDB added in v0.5.14

GetDB is a helper method to define mock.On call

  • tx *gorm.DB

func (*IntegrationsExternalUserRepository_Expecter) Save added in v0.5.14

Save is a helper method to define mock.On call

  • db *gorm.DB
  • user *models.ExternalUser

type IntegrationsExternalUserRepository_FindByOrgID_Call added in v0.5.14

type IntegrationsExternalUserRepository_FindByOrgID_Call struct {
	*mock.Call
}

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

func (*IntegrationsExternalUserRepository_FindByOrgID_Call) Return added in v0.5.14

func (*IntegrationsExternalUserRepository_FindByOrgID_Call) Run added in v0.5.14

func (*IntegrationsExternalUserRepository_FindByOrgID_Call) RunAndReturn added in v0.5.14

type IntegrationsExternalUserRepository_GetDB_Call added in v0.5.14

type IntegrationsExternalUserRepository_GetDB_Call struct {
	*mock.Call
}

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

func (*IntegrationsExternalUserRepository_GetDB_Call) Return added in v0.5.14

func (*IntegrationsExternalUserRepository_GetDB_Call) Run added in v0.5.14

func (*IntegrationsExternalUserRepository_GetDB_Call) RunAndReturn added in v0.5.14

type IntegrationsExternalUserRepository_Save_Call added in v0.5.14

type IntegrationsExternalUserRepository_Save_Call struct {
	*mock.Call
}

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

func (*IntegrationsExternalUserRepository_Save_Call) Return added in v0.5.14

func (*IntegrationsExternalUserRepository_Save_Call) Run added in v0.5.14

func (*IntegrationsExternalUserRepository_Save_Call) RunAndReturn added in v0.5.14

type IntegrationsFlawEventRepository added in v0.5.14

type IntegrationsFlawEventRepository struct {
	mock.Mock
}

IntegrationsFlawEventRepository is an autogenerated mock type for the flawEventRepository type

func NewIntegrationsFlawEventRepository added in v0.5.14

func NewIntegrationsFlawEventRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntegrationsFlawEventRepository

NewIntegrationsFlawEventRepository creates a new instance of IntegrationsFlawEventRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IntegrationsFlawEventRepository) EXPECT added in v0.5.14

func (*IntegrationsFlawEventRepository) Save added in v0.5.14

Save provides a mock function with given fields: db, event

type IntegrationsFlawEventRepository_Expecter added in v0.5.14

type IntegrationsFlawEventRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*IntegrationsFlawEventRepository_Expecter) Save added in v0.5.14

func (_e *IntegrationsFlawEventRepository_Expecter) Save(db interface{}, event interface{}) *IntegrationsFlawEventRepository_Save_Call

Save is a helper method to define mock.On call

  • db *gorm.DB
  • event *models.FlawEvent

type IntegrationsFlawEventRepository_Save_Call added in v0.5.14

type IntegrationsFlawEventRepository_Save_Call struct {
	*mock.Call
}

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

func (*IntegrationsFlawEventRepository_Save_Call) Return added in v0.5.14

func (*IntegrationsFlawEventRepository_Save_Call) Run added in v0.5.14

func (*IntegrationsFlawEventRepository_Save_Call) RunAndReturn added in v0.5.14

type IntegrationsFlawRepository added in v0.5.14

type IntegrationsFlawRepository struct {
	mock.Mock
}

IntegrationsFlawRepository is an autogenerated mock type for the flawRepository type

func NewIntegrationsFlawRepository added in v0.5.14

func NewIntegrationsFlawRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntegrationsFlawRepository

NewIntegrationsFlawRepository creates a new instance of IntegrationsFlawRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IntegrationsFlawRepository) EXPECT added in v0.5.14

func (*IntegrationsFlawRepository) FindByTicketID added in v0.5.14

func (_m *IntegrationsFlawRepository) FindByTicketID(tx *gorm.DB, ticketID string) (models.Flaw, error)

FindByTicketID provides a mock function with given fields: tx, ticketID

func (*IntegrationsFlawRepository) GetOrgFromFlawID added in v0.5.14

func (_m *IntegrationsFlawRepository) GetOrgFromFlawID(tx *gorm.DB, flawID string) (models.Org, error)

GetOrgFromFlawID provides a mock function with given fields: tx, flawID

func (*IntegrationsFlawRepository) Read added in v0.5.14

Read provides a mock function with given fields: id

func (*IntegrationsFlawRepository) Save added in v0.5.14

func (_m *IntegrationsFlawRepository) Save(db *gorm.DB, flaw *models.Flaw) error

Save provides a mock function with given fields: db, flaw

func (*IntegrationsFlawRepository) Transaction added in v0.5.14

func (_m *IntegrationsFlawRepository) Transaction(fn func(*gorm.DB) error) error

Transaction provides a mock function with given fields: fn

type IntegrationsFlawRepository_Expecter added in v0.5.14

type IntegrationsFlawRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*IntegrationsFlawRepository_Expecter) FindByTicketID added in v0.5.14

func (_e *IntegrationsFlawRepository_Expecter) FindByTicketID(tx interface{}, ticketID interface{}) *IntegrationsFlawRepository_FindByTicketID_Call

FindByTicketID is a helper method to define mock.On call

  • tx *gorm.DB
  • ticketID string

func (*IntegrationsFlawRepository_Expecter) GetOrgFromFlawID added in v0.5.14

func (_e *IntegrationsFlawRepository_Expecter) GetOrgFromFlawID(tx interface{}, flawID interface{}) *IntegrationsFlawRepository_GetOrgFromFlawID_Call

GetOrgFromFlawID is a helper method to define mock.On call

  • tx *gorm.DB
  • flawID string

func (*IntegrationsFlawRepository_Expecter) Read added in v0.5.14

Read is a helper method to define mock.On call

  • id string

func (*IntegrationsFlawRepository_Expecter) Save added in v0.5.14

func (_e *IntegrationsFlawRepository_Expecter) Save(db interface{}, flaw interface{}) *IntegrationsFlawRepository_Save_Call

Save is a helper method to define mock.On call

  • db *gorm.DB
  • flaw *models.Flaw

func (*IntegrationsFlawRepository_Expecter) Transaction added in v0.5.14

Transaction is a helper method to define mock.On call

  • fn func(*gorm.DB) error

type IntegrationsFlawRepository_FindByTicketID_Call added in v0.5.14

type IntegrationsFlawRepository_FindByTicketID_Call struct {
	*mock.Call
}

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

func (*IntegrationsFlawRepository_FindByTicketID_Call) Return added in v0.5.14

func (*IntegrationsFlawRepository_FindByTicketID_Call) Run added in v0.5.14

func (*IntegrationsFlawRepository_FindByTicketID_Call) RunAndReturn added in v0.5.14

type IntegrationsFlawRepository_GetOrgFromFlawID_Call added in v0.5.14

type IntegrationsFlawRepository_GetOrgFromFlawID_Call struct {
	*mock.Call
}

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

func (*IntegrationsFlawRepository_GetOrgFromFlawID_Call) Return added in v0.5.14

func (*IntegrationsFlawRepository_GetOrgFromFlawID_Call) Run added in v0.5.14

func (*IntegrationsFlawRepository_GetOrgFromFlawID_Call) RunAndReturn added in v0.5.14

type IntegrationsFlawRepository_Read_Call added in v0.5.14

type IntegrationsFlawRepository_Read_Call struct {
	*mock.Call
}

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

func (*IntegrationsFlawRepository_Read_Call) Return added in v0.5.14

func (*IntegrationsFlawRepository_Read_Call) Run added in v0.5.14

func (*IntegrationsFlawRepository_Read_Call) RunAndReturn added in v0.5.14

type IntegrationsFlawRepository_Save_Call added in v0.5.14

type IntegrationsFlawRepository_Save_Call struct {
	*mock.Call
}

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

func (*IntegrationsFlawRepository_Save_Call) Return added in v0.5.14

func (*IntegrationsFlawRepository_Save_Call) Run added in v0.5.14

func (*IntegrationsFlawRepository_Save_Call) RunAndReturn added in v0.5.14

type IntegrationsFlawRepository_Transaction_Call added in v0.5.14

type IntegrationsFlawRepository_Transaction_Call struct {
	*mock.Call
}

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

func (*IntegrationsFlawRepository_Transaction_Call) Return added in v0.5.14

func (*IntegrationsFlawRepository_Transaction_Call) Run added in v0.5.14

func (*IntegrationsFlawRepository_Transaction_Call) RunAndReturn added in v0.5.14

type IntegrationsFlawService added in v0.5.14

type IntegrationsFlawService struct {
	mock.Mock
}

IntegrationsFlawService is an autogenerated mock type for the flawService type

func NewIntegrationsFlawService added in v0.5.14

func NewIntegrationsFlawService(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntegrationsFlawService

NewIntegrationsFlawService creates a new instance of IntegrationsFlawService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IntegrationsFlawService) ApplyAndSave added in v0.5.14

func (_m *IntegrationsFlawService) ApplyAndSave(tx *gorm.DB, flaw *models.Flaw, flawEvent *models.FlawEvent) error

ApplyAndSave provides a mock function with given fields: tx, flaw, flawEvent

func (*IntegrationsFlawService) EXPECT added in v0.5.14

type IntegrationsFlawService_ApplyAndSave_Call added in v0.5.14

type IntegrationsFlawService_ApplyAndSave_Call struct {
	*mock.Call
}

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

func (*IntegrationsFlawService_ApplyAndSave_Call) Return added in v0.5.14

func (*IntegrationsFlawService_ApplyAndSave_Call) Run added in v0.5.14

func (*IntegrationsFlawService_ApplyAndSave_Call) RunAndReturn added in v0.5.14

type IntegrationsFlawService_Expecter added in v0.5.14

type IntegrationsFlawService_Expecter struct {
	// contains filtered or unexported fields
}

func (*IntegrationsFlawService_Expecter) ApplyAndSave added in v0.5.14

func (_e *IntegrationsFlawService_Expecter) ApplyAndSave(tx interface{}, flaw interface{}, flawEvent interface{}) *IntegrationsFlawService_ApplyAndSave_Call

ApplyAndSave is a helper method to define mock.On call

  • tx *gorm.DB
  • flaw *models.Flaw
  • flawEvent *models.FlawEvent

type IntegrationsGithubAppInstallationRepository

type IntegrationsGithubAppInstallationRepository struct {
	mock.Mock
}

IntegrationsGithubAppInstallationRepository is an autogenerated mock type for the githubAppInstallationRepository type

func NewIntegrationsGithubAppInstallationRepository

func NewIntegrationsGithubAppInstallationRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntegrationsGithubAppInstallationRepository

NewIntegrationsGithubAppInstallationRepository creates a new instance of IntegrationsGithubAppInstallationRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IntegrationsGithubAppInstallationRepository) Delete added in v0.5.1

func (_m *IntegrationsGithubAppInstallationRepository) Delete(tx *gorm.DB, installationID int) error

Delete provides a mock function with given fields: tx, installationID

func (*IntegrationsGithubAppInstallationRepository) EXPECT

func (*IntegrationsGithubAppInstallationRepository) FindByOrganizationId

FindByOrganizationId provides a mock function with given fields: orgID

func (*IntegrationsGithubAppInstallationRepository) Read

Read provides a mock function with given fields: installationID

func (*IntegrationsGithubAppInstallationRepository) Save

Save provides a mock function with given fields: tx, model

type IntegrationsGithubAppInstallationRepository_Delete_Call added in v0.5.1

type IntegrationsGithubAppInstallationRepository_Delete_Call struct {
	*mock.Call
}

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

func (*IntegrationsGithubAppInstallationRepository_Delete_Call) Return added in v0.5.1

func (*IntegrationsGithubAppInstallationRepository_Delete_Call) Run added in v0.5.1

func (*IntegrationsGithubAppInstallationRepository_Delete_Call) RunAndReturn added in v0.5.1

type IntegrationsGithubAppInstallationRepository_Expecter

type IntegrationsGithubAppInstallationRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*IntegrationsGithubAppInstallationRepository_Expecter) Delete added in v0.5.1

Delete is a helper method to define mock.On call

  • tx *gorm.DB
  • installationID int

func (*IntegrationsGithubAppInstallationRepository_Expecter) FindByOrganizationId

FindByOrganizationId is a helper method to define mock.On call

  • orgID uuid.UUID

func (*IntegrationsGithubAppInstallationRepository_Expecter) Read

Read is a helper method to define mock.On call

  • installationID int

func (*IntegrationsGithubAppInstallationRepository_Expecter) Save

Save is a helper method to define mock.On call

  • tx *gorm.DB
  • model *models.GithubAppInstallation

type IntegrationsGithubAppInstallationRepository_FindByOrganizationId_Call

type IntegrationsGithubAppInstallationRepository_FindByOrganizationId_Call struct {
	*mock.Call
}

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

func (*IntegrationsGithubAppInstallationRepository_FindByOrganizationId_Call) Run

func (*IntegrationsGithubAppInstallationRepository_FindByOrganizationId_Call) RunAndReturn

type IntegrationsGithubAppInstallationRepository_Read_Call

type IntegrationsGithubAppInstallationRepository_Read_Call struct {
	*mock.Call
}

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

func (*IntegrationsGithubAppInstallationRepository_Read_Call) Return

func (*IntegrationsGithubAppInstallationRepository_Read_Call) Run

func (*IntegrationsGithubAppInstallationRepository_Read_Call) RunAndReturn

type IntegrationsGithubAppInstallationRepository_Save_Call

type IntegrationsGithubAppInstallationRepository_Save_Call struct {
	*mock.Call
}

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

func (*IntegrationsGithubAppInstallationRepository_Save_Call) Return

func (*IntegrationsGithubAppInstallationRepository_Save_Call) Run

func (*IntegrationsGithubAppInstallationRepository_Save_Call) RunAndReturn

type IntegrationsGithubClientFacade added in v0.5.14

type IntegrationsGithubClientFacade struct {
	mock.Mock
}

IntegrationsGithubClientFacade is an autogenerated mock type for the githubClientFacade type

func NewIntegrationsGithubClientFacade added in v0.5.14

func NewIntegrationsGithubClientFacade(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntegrationsGithubClientFacade

NewIntegrationsGithubClientFacade creates a new instance of IntegrationsGithubClientFacade. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IntegrationsGithubClientFacade) CreateIssue added in v0.5.14

CreateIssue provides a mock function with given fields: ctx, owner, repo, issue

func (*IntegrationsGithubClientFacade) CreateIssueComment added in v0.5.14

func (_m *IntegrationsGithubClientFacade) CreateIssueComment(ctx context.Context, owner string, repo string, number int, comment *github.IssueComment) (*github.IssueComment, *github.Response, error)

CreateIssueComment provides a mock function with given fields: ctx, owner, repo, number, comment

func (*IntegrationsGithubClientFacade) EXPECT added in v0.5.14

func (*IntegrationsGithubClientFacade) EditIssue added in v0.5.14

func (_m *IntegrationsGithubClientFacade) EditIssue(ctx context.Context, owner string, repo string, number int, issue *github.IssueRequest) (*github.Issue, *github.Response, error)

EditIssue provides a mock function with given fields: ctx, owner, repo, number, issue

func (*IntegrationsGithubClientFacade) EditIssueLabel added in v0.5.14

func (_m *IntegrationsGithubClientFacade) EditIssueLabel(ctx context.Context, owner string, repo string, name string, label *github.Label) (*github.Label, *github.Response, error)

EditIssueLabel provides a mock function with given fields: ctx, owner, repo, name, label

type IntegrationsGithubClientFacade_CreateIssueComment_Call added in v0.5.14

type IntegrationsGithubClientFacade_CreateIssueComment_Call struct {
	*mock.Call
}

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

func (*IntegrationsGithubClientFacade_CreateIssueComment_Call) Return added in v0.5.14

func (*IntegrationsGithubClientFacade_CreateIssueComment_Call) Run added in v0.5.14

func (*IntegrationsGithubClientFacade_CreateIssueComment_Call) RunAndReturn added in v0.5.14

type IntegrationsGithubClientFacade_CreateIssue_Call added in v0.5.14

type IntegrationsGithubClientFacade_CreateIssue_Call struct {
	*mock.Call
}

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

func (*IntegrationsGithubClientFacade_CreateIssue_Call) Return added in v0.5.14

func (*IntegrationsGithubClientFacade_CreateIssue_Call) Run added in v0.5.14

func (*IntegrationsGithubClientFacade_CreateIssue_Call) RunAndReturn added in v0.5.14

type IntegrationsGithubClientFacade_EditIssueLabel_Call added in v0.5.14

type IntegrationsGithubClientFacade_EditIssueLabel_Call struct {
	*mock.Call
}

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

func (*IntegrationsGithubClientFacade_EditIssueLabel_Call) Return added in v0.5.14

func (*IntegrationsGithubClientFacade_EditIssueLabel_Call) Run added in v0.5.14

func (*IntegrationsGithubClientFacade_EditIssueLabel_Call) RunAndReturn added in v0.5.14

type IntegrationsGithubClientFacade_EditIssue_Call added in v0.5.14

type IntegrationsGithubClientFacade_EditIssue_Call struct {
	*mock.Call
}

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

func (*IntegrationsGithubClientFacade_EditIssue_Call) Return added in v0.5.14

func (*IntegrationsGithubClientFacade_EditIssue_Call) Run added in v0.5.14

func (*IntegrationsGithubClientFacade_EditIssue_Call) RunAndReturn added in v0.5.14

type IntegrationsGithubClientFacade_Expecter added in v0.5.14

type IntegrationsGithubClientFacade_Expecter struct {
	// contains filtered or unexported fields
}

func (*IntegrationsGithubClientFacade_Expecter) CreateIssue added in v0.5.14

func (_e *IntegrationsGithubClientFacade_Expecter) CreateIssue(ctx interface{}, owner interface{}, repo interface{}, issue interface{}) *IntegrationsGithubClientFacade_CreateIssue_Call

CreateIssue is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • issue *github.IssueRequest

func (*IntegrationsGithubClientFacade_Expecter) CreateIssueComment added in v0.5.14

func (_e *IntegrationsGithubClientFacade_Expecter) CreateIssueComment(ctx interface{}, owner interface{}, repo interface{}, number interface{}, comment interface{}) *IntegrationsGithubClientFacade_CreateIssueComment_Call

CreateIssueComment is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • number int
  • comment *github.IssueComment

func (*IntegrationsGithubClientFacade_Expecter) EditIssue added in v0.5.14

func (_e *IntegrationsGithubClientFacade_Expecter) EditIssue(ctx interface{}, owner interface{}, repo interface{}, number interface{}, issue interface{}) *IntegrationsGithubClientFacade_EditIssue_Call

EditIssue is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • number int
  • issue *github.IssueRequest

func (*IntegrationsGithubClientFacade_Expecter) EditIssueLabel added in v0.5.14

func (_e *IntegrationsGithubClientFacade_Expecter) EditIssueLabel(ctx interface{}, owner interface{}, repo interface{}, name interface{}, label interface{}) *IntegrationsGithubClientFacade_EditIssueLabel_Call

EditIssueLabel is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • name string
  • label *github.Label

type IntegrationsGithubUserRepository added in v0.5.14

type IntegrationsGithubUserRepository struct {
	mock.Mock
}

IntegrationsGithubUserRepository is an autogenerated mock type for the externalUserRepository type

func NewIntegrationsGithubUserRepository added in v0.5.14

func NewIntegrationsGithubUserRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntegrationsGithubUserRepository

NewIntegrationsGithubUserRepository creates a new instance of IntegrationsGithubUserRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IntegrationsGithubUserRepository) EXPECT added in v0.5.14

func (*IntegrationsGithubUserRepository) FindByOrgID added in v0.5.14

func (_m *IntegrationsGithubUserRepository) FindByOrgID(tx *gorm.DB, orgID uuid.UUID) ([]models.ExternalUser, error)

FindByOrgID provides a mock function with given fields: tx, orgID

func (*IntegrationsGithubUserRepository) GetDB added in v0.5.14

GetDB provides a mock function with given fields: tx

func (*IntegrationsGithubUserRepository) Save added in v0.5.14

Save provides a mock function with given fields: db, user

type IntegrationsGithubUserRepository_Expecter added in v0.5.14

type IntegrationsGithubUserRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*IntegrationsGithubUserRepository_Expecter) FindByOrgID added in v0.5.14

func (_e *IntegrationsGithubUserRepository_Expecter) FindByOrgID(tx interface{}, orgID interface{}) *IntegrationsGithubUserRepository_FindByOrgID_Call

FindByOrgID is a helper method to define mock.On call

  • tx *gorm.DB
  • orgID uuid.UUID

func (*IntegrationsGithubUserRepository_Expecter) GetDB added in v0.5.14

GetDB is a helper method to define mock.On call

  • tx *gorm.DB

func (*IntegrationsGithubUserRepository_Expecter) Save added in v0.5.14

Save is a helper method to define mock.On call

  • db *gorm.DB
  • user *models.GithubUser

type IntegrationsGithubUserRepository_FindByOrgID_Call added in v0.5.14

type IntegrationsGithubUserRepository_FindByOrgID_Call struct {
	*mock.Call
}

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

func (*IntegrationsGithubUserRepository_FindByOrgID_Call) Return added in v0.5.14

func (*IntegrationsGithubUserRepository_FindByOrgID_Call) Run added in v0.5.14

func (*IntegrationsGithubUserRepository_FindByOrgID_Call) RunAndReturn added in v0.5.14

type IntegrationsGithubUserRepository_GetDB_Call added in v0.5.14

type IntegrationsGithubUserRepository_GetDB_Call struct {
	*mock.Call
}

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

func (*IntegrationsGithubUserRepository_GetDB_Call) Return added in v0.5.14

func (*IntegrationsGithubUserRepository_GetDB_Call) Run added in v0.5.14

func (*IntegrationsGithubUserRepository_GetDB_Call) RunAndReturn added in v0.5.14

type IntegrationsGithubUserRepository_Save_Call added in v0.5.14

type IntegrationsGithubUserRepository_Save_Call struct {
	*mock.Call
}

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

func (*IntegrationsGithubUserRepository_Save_Call) Return added in v0.5.14

func (*IntegrationsGithubUserRepository_Save_Call) Run added in v0.5.14

func (*IntegrationsGithubUserRepository_Save_Call) RunAndReturn added in v0.5.14

type IntegrationsGitlabClientFacade added in v0.5.14

type IntegrationsGitlabClientFacade struct {
	mock.Mock
}

IntegrationsGitlabClientFacade is an autogenerated mock type for the gitlabClientFacade type

func NewIntegrationsGitlabClientFacade added in v0.5.14

func NewIntegrationsGitlabClientFacade(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntegrationsGitlabClientFacade

NewIntegrationsGitlabClientFacade creates a new instance of IntegrationsGitlabClientFacade. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IntegrationsGitlabClientFacade) AddProjectHook added in v0.5.14

AddProjectHook provides a mock function with given fields: ctx, projectId, opt

func (*IntegrationsGitlabClientFacade) CreateIssue added in v0.5.14

CreateIssue provides a mock function with given fields: ctx, pid, opt

func (*IntegrationsGitlabClientFacade) CreateIssueComment added in v0.5.14

func (_m *IntegrationsGitlabClientFacade) CreateIssueComment(ctx context.Context, pid int, issue int, opt *gitlab.CreateIssueNoteOptions) (*gitlab.Note, *gitlab.Response, error)

CreateIssueComment provides a mock function with given fields: ctx, pid, issue, opt

func (*IntegrationsGitlabClientFacade) CreateMergeRequest added in v0.5.14

CreateMergeRequest provides a mock function with given fields: ctx, project, opt

func (*IntegrationsGitlabClientFacade) CreateVariable added in v0.5.14

CreateVariable provides a mock function with given fields: ctx, projectId, opt

func (*IntegrationsGitlabClientFacade) DeleteProjectHook added in v0.5.14

func (_m *IntegrationsGitlabClientFacade) DeleteProjectHook(ctx context.Context, projectId int, hookId int) (*gitlab.Response, error)

DeleteProjectHook provides a mock function with given fields: ctx, projectId, hookId

func (*IntegrationsGitlabClientFacade) EXPECT added in v0.5.14

func (*IntegrationsGitlabClientFacade) EditIssue added in v0.5.14

EditIssue provides a mock function with given fields: ctx, pid, issue, opt

func (*IntegrationsGitlabClientFacade) EditIssueLabel added in v0.5.14

func (_m *IntegrationsGitlabClientFacade) EditIssueLabel(ctx context.Context, pid int, issue int, labels []*gitlab.CreateLabelOptions) (*gitlab.Response, error)

EditIssueLabel provides a mock function with given fields: ctx, pid, issue, labels

func (*IntegrationsGitlabClientFacade) GetProject added in v0.5.14

func (_m *IntegrationsGitlabClientFacade) GetProject(ctx context.Context, projectId int) (*gitlab.Project, *gitlab.Response, error)

GetProject provides a mock function with given fields: ctx, projectId

func (*IntegrationsGitlabClientFacade) ListProjectHooks added in v0.5.14

ListProjectHooks provides a mock function with given fields: ctx, projectId, options

func (*IntegrationsGitlabClientFacade) ListVariables added in v0.5.14

ListVariables provides a mock function with given fields: ctx, projectId, options

func (*IntegrationsGitlabClientFacade) RemoveVariable added in v0.5.14

func (_m *IntegrationsGitlabClientFacade) RemoveVariable(ctx context.Context, projectId int, key string) (*gitlab.Response, error)

RemoveVariable provides a mock function with given fields: ctx, projectId, key

func (*IntegrationsGitlabClientFacade) UpdateVariable added in v0.5.14

UpdateVariable provides a mock function with given fields: ctx, projectId, key, opt

type IntegrationsGitlabClientFacade_AddProjectHook_Call added in v0.5.14

type IntegrationsGitlabClientFacade_AddProjectHook_Call struct {
	*mock.Call
}

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

func (*IntegrationsGitlabClientFacade_AddProjectHook_Call) Return added in v0.5.14

func (*IntegrationsGitlabClientFacade_AddProjectHook_Call) Run added in v0.5.14

func (*IntegrationsGitlabClientFacade_AddProjectHook_Call) RunAndReturn added in v0.5.14

type IntegrationsGitlabClientFacade_CreateIssueComment_Call added in v0.5.14

type IntegrationsGitlabClientFacade_CreateIssueComment_Call struct {
	*mock.Call
}

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

func (*IntegrationsGitlabClientFacade_CreateIssueComment_Call) Return added in v0.5.14

func (*IntegrationsGitlabClientFacade_CreateIssueComment_Call) Run added in v0.5.14

func (*IntegrationsGitlabClientFacade_CreateIssueComment_Call) RunAndReturn added in v0.5.14

type IntegrationsGitlabClientFacade_CreateIssue_Call added in v0.5.14

type IntegrationsGitlabClientFacade_CreateIssue_Call struct {
	*mock.Call
}

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

func (*IntegrationsGitlabClientFacade_CreateIssue_Call) Return added in v0.5.14

func (*IntegrationsGitlabClientFacade_CreateIssue_Call) Run added in v0.5.14

func (*IntegrationsGitlabClientFacade_CreateIssue_Call) RunAndReturn added in v0.5.14

type IntegrationsGitlabClientFacade_CreateMergeRequest_Call added in v0.5.14

type IntegrationsGitlabClientFacade_CreateMergeRequest_Call struct {
	*mock.Call
}

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

func (*IntegrationsGitlabClientFacade_CreateMergeRequest_Call) Return added in v0.5.14

func (*IntegrationsGitlabClientFacade_CreateMergeRequest_Call) Run added in v0.5.14

func (*IntegrationsGitlabClientFacade_CreateMergeRequest_Call) RunAndReturn added in v0.5.14

type IntegrationsGitlabClientFacade_CreateVariable_Call added in v0.5.14

type IntegrationsGitlabClientFacade_CreateVariable_Call struct {
	*mock.Call
}

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

func (*IntegrationsGitlabClientFacade_CreateVariable_Call) Return added in v0.5.14

func (*IntegrationsGitlabClientFacade_CreateVariable_Call) Run added in v0.5.14

type IntegrationsGitlabClientFacade_DeleteProjectHook_Call added in v0.5.14

type IntegrationsGitlabClientFacade_DeleteProjectHook_Call struct {
	*mock.Call
}

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

func (*IntegrationsGitlabClientFacade_DeleteProjectHook_Call) Return added in v0.5.14

func (*IntegrationsGitlabClientFacade_DeleteProjectHook_Call) Run added in v0.5.14

func (*IntegrationsGitlabClientFacade_DeleteProjectHook_Call) RunAndReturn added in v0.5.14

type IntegrationsGitlabClientFacade_EditIssueLabel_Call added in v0.5.14

type IntegrationsGitlabClientFacade_EditIssueLabel_Call struct {
	*mock.Call
}

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

func (*IntegrationsGitlabClientFacade_EditIssueLabel_Call) Return added in v0.5.14

func (*IntegrationsGitlabClientFacade_EditIssueLabel_Call) Run added in v0.5.14

func (*IntegrationsGitlabClientFacade_EditIssueLabel_Call) RunAndReturn added in v0.5.14

type IntegrationsGitlabClientFacade_EditIssue_Call added in v0.5.14

type IntegrationsGitlabClientFacade_EditIssue_Call struct {
	*mock.Call
}

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

func (*IntegrationsGitlabClientFacade_EditIssue_Call) Return added in v0.5.14

func (*IntegrationsGitlabClientFacade_EditIssue_Call) Run added in v0.5.14

func (*IntegrationsGitlabClientFacade_EditIssue_Call) RunAndReturn added in v0.5.14

type IntegrationsGitlabClientFacade_Expecter added in v0.5.14

type IntegrationsGitlabClientFacade_Expecter struct {
	// contains filtered or unexported fields
}

func (*IntegrationsGitlabClientFacade_Expecter) AddProjectHook added in v0.5.14

func (_e *IntegrationsGitlabClientFacade_Expecter) AddProjectHook(ctx interface{}, projectId interface{}, opt interface{}) *IntegrationsGitlabClientFacade_AddProjectHook_Call

AddProjectHook is a helper method to define mock.On call

  • ctx context.Context
  • projectId int
  • opt *gitlab.AddProjectHookOptions

func (*IntegrationsGitlabClientFacade_Expecter) CreateIssue added in v0.5.14

func (_e *IntegrationsGitlabClientFacade_Expecter) CreateIssue(ctx interface{}, pid interface{}, opt interface{}) *IntegrationsGitlabClientFacade_CreateIssue_Call

CreateIssue is a helper method to define mock.On call

  • ctx context.Context
  • pid int
  • opt *gitlab.CreateIssueOptions

func (*IntegrationsGitlabClientFacade_Expecter) CreateIssueComment added in v0.5.14

func (_e *IntegrationsGitlabClientFacade_Expecter) CreateIssueComment(ctx interface{}, pid interface{}, issue interface{}, opt interface{}) *IntegrationsGitlabClientFacade_CreateIssueComment_Call

CreateIssueComment is a helper method to define mock.On call

  • ctx context.Context
  • pid int
  • issue int
  • opt *gitlab.CreateIssueNoteOptions

func (*IntegrationsGitlabClientFacade_Expecter) CreateMergeRequest added in v0.5.14

func (_e *IntegrationsGitlabClientFacade_Expecter) CreateMergeRequest(ctx interface{}, project interface{}, opt interface{}) *IntegrationsGitlabClientFacade_CreateMergeRequest_Call

CreateMergeRequest is a helper method to define mock.On call

  • ctx context.Context
  • project string
  • opt *gitlab.CreateMergeRequestOptions

func (*IntegrationsGitlabClientFacade_Expecter) CreateVariable added in v0.5.14

func (_e *IntegrationsGitlabClientFacade_Expecter) CreateVariable(ctx interface{}, projectId interface{}, opt interface{}) *IntegrationsGitlabClientFacade_CreateVariable_Call

CreateVariable is a helper method to define mock.On call

  • ctx context.Context
  • projectId int
  • opt *gitlab.CreateProjectVariableOptions

func (*IntegrationsGitlabClientFacade_Expecter) DeleteProjectHook added in v0.5.14

func (_e *IntegrationsGitlabClientFacade_Expecter) DeleteProjectHook(ctx interface{}, projectId interface{}, hookId interface{}) *IntegrationsGitlabClientFacade_DeleteProjectHook_Call

DeleteProjectHook is a helper method to define mock.On call

  • ctx context.Context
  • projectId int
  • hookId int

func (*IntegrationsGitlabClientFacade_Expecter) EditIssue added in v0.5.14

func (_e *IntegrationsGitlabClientFacade_Expecter) EditIssue(ctx interface{}, pid interface{}, issue interface{}, opt interface{}) *IntegrationsGitlabClientFacade_EditIssue_Call

EditIssue is a helper method to define mock.On call

  • ctx context.Context
  • pid int
  • issue int
  • opt *gitlab.UpdateIssueOptions

func (*IntegrationsGitlabClientFacade_Expecter) EditIssueLabel added in v0.5.14

func (_e *IntegrationsGitlabClientFacade_Expecter) EditIssueLabel(ctx interface{}, pid interface{}, issue interface{}, labels interface{}) *IntegrationsGitlabClientFacade_EditIssueLabel_Call

EditIssueLabel is a helper method to define mock.On call

  • ctx context.Context
  • pid int
  • issue int
  • labels []*gitlab.CreateLabelOptions

func (*IntegrationsGitlabClientFacade_Expecter) GetProject added in v0.5.14

func (_e *IntegrationsGitlabClientFacade_Expecter) GetProject(ctx interface{}, projectId interface{}) *IntegrationsGitlabClientFacade_GetProject_Call

GetProject is a helper method to define mock.On call

  • ctx context.Context
  • projectId int

func (*IntegrationsGitlabClientFacade_Expecter) ListProjectHooks added in v0.5.14

func (_e *IntegrationsGitlabClientFacade_Expecter) ListProjectHooks(ctx interface{}, projectId interface{}, options interface{}) *IntegrationsGitlabClientFacade_ListProjectHooks_Call

ListProjectHooks is a helper method to define mock.On call

  • ctx context.Context
  • projectId int
  • options *gitlab.ListProjectHooksOptions

func (*IntegrationsGitlabClientFacade_Expecter) ListVariables added in v0.5.14

func (_e *IntegrationsGitlabClientFacade_Expecter) ListVariables(ctx interface{}, projectId interface{}, options interface{}) *IntegrationsGitlabClientFacade_ListVariables_Call

ListVariables is a helper method to define mock.On call

  • ctx context.Context
  • projectId int
  • options *gitlab.ListProjectVariablesOptions

func (*IntegrationsGitlabClientFacade_Expecter) RemoveVariable added in v0.5.14

func (_e *IntegrationsGitlabClientFacade_Expecter) RemoveVariable(ctx interface{}, projectId interface{}, key interface{}) *IntegrationsGitlabClientFacade_RemoveVariable_Call

RemoveVariable is a helper method to define mock.On call

  • ctx context.Context
  • projectId int
  • key string

func (*IntegrationsGitlabClientFacade_Expecter) UpdateVariable added in v0.5.14

func (_e *IntegrationsGitlabClientFacade_Expecter) UpdateVariable(ctx interface{}, projectId interface{}, key interface{}, opt interface{}) *IntegrationsGitlabClientFacade_UpdateVariable_Call

UpdateVariable is a helper method to define mock.On call

  • ctx context.Context
  • projectId int
  • key string
  • opt *gitlab.UpdateProjectVariableOptions

type IntegrationsGitlabClientFacade_GetProject_Call added in v0.5.14

type IntegrationsGitlabClientFacade_GetProject_Call struct {
	*mock.Call
}

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

func (*IntegrationsGitlabClientFacade_GetProject_Call) Return added in v0.5.14

func (*IntegrationsGitlabClientFacade_GetProject_Call) Run added in v0.5.14

func (*IntegrationsGitlabClientFacade_GetProject_Call) RunAndReturn added in v0.5.14

type IntegrationsGitlabClientFacade_ListProjectHooks_Call added in v0.5.14

type IntegrationsGitlabClientFacade_ListProjectHooks_Call struct {
	*mock.Call
}

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

func (*IntegrationsGitlabClientFacade_ListProjectHooks_Call) Return added in v0.5.14

func (*IntegrationsGitlabClientFacade_ListProjectHooks_Call) Run added in v0.5.14

func (*IntegrationsGitlabClientFacade_ListProjectHooks_Call) RunAndReturn added in v0.5.14

type IntegrationsGitlabClientFacade_ListVariables_Call added in v0.5.14

type IntegrationsGitlabClientFacade_ListVariables_Call struct {
	*mock.Call
}

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

func (*IntegrationsGitlabClientFacade_ListVariables_Call) Return added in v0.5.14

func (*IntegrationsGitlabClientFacade_ListVariables_Call) Run added in v0.5.14

func (*IntegrationsGitlabClientFacade_ListVariables_Call) RunAndReturn added in v0.5.14

type IntegrationsGitlabClientFacade_RemoveVariable_Call added in v0.5.14

type IntegrationsGitlabClientFacade_RemoveVariable_Call struct {
	*mock.Call
}

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

func (*IntegrationsGitlabClientFacade_RemoveVariable_Call) Return added in v0.5.14

func (*IntegrationsGitlabClientFacade_RemoveVariable_Call) Run added in v0.5.14

func (*IntegrationsGitlabClientFacade_RemoveVariable_Call) RunAndReturn added in v0.5.14

type IntegrationsGitlabClientFacade_UpdateVariable_Call added in v0.5.14

type IntegrationsGitlabClientFacade_UpdateVariable_Call struct {
	*mock.Call
}

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

func (*IntegrationsGitlabClientFacade_UpdateVariable_Call) Return added in v0.5.14

func (*IntegrationsGitlabClientFacade_UpdateVariable_Call) Run added in v0.5.14

type IntegrationsGitlabIntegrationRepository added in v0.5.14

type IntegrationsGitlabIntegrationRepository struct {
	mock.Mock
}

IntegrationsGitlabIntegrationRepository is an autogenerated mock type for the gitlabIntegrationRepository type

func NewIntegrationsGitlabIntegrationRepository added in v0.5.14

func NewIntegrationsGitlabIntegrationRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntegrationsGitlabIntegrationRepository

NewIntegrationsGitlabIntegrationRepository creates a new instance of IntegrationsGitlabIntegrationRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IntegrationsGitlabIntegrationRepository) Delete added in v0.5.14

Delete provides a mock function with given fields: tx, id

func (*IntegrationsGitlabIntegrationRepository) EXPECT added in v0.5.14

func (*IntegrationsGitlabIntegrationRepository) FindByOrganizationId added in v0.5.14

func (_m *IntegrationsGitlabIntegrationRepository) FindByOrganizationId(orgID uuid.UUID) ([]models.GitLabIntegration, error)

FindByOrganizationId provides a mock function with given fields: orgID

func (*IntegrationsGitlabIntegrationRepository) Read added in v0.5.14

Read provides a mock function with given fields: id

func (*IntegrationsGitlabIntegrationRepository) Save added in v0.5.14

Save provides a mock function with given fields: tx, model

type IntegrationsGitlabIntegrationRepository_Delete_Call added in v0.5.14

type IntegrationsGitlabIntegrationRepository_Delete_Call struct {
	*mock.Call
}

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

func (*IntegrationsGitlabIntegrationRepository_Delete_Call) Return added in v0.5.14

func (*IntegrationsGitlabIntegrationRepository_Delete_Call) Run added in v0.5.14

func (*IntegrationsGitlabIntegrationRepository_Delete_Call) RunAndReturn added in v0.5.14

type IntegrationsGitlabIntegrationRepository_Expecter added in v0.5.14

type IntegrationsGitlabIntegrationRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*IntegrationsGitlabIntegrationRepository_Expecter) Delete added in v0.5.14

Delete is a helper method to define mock.On call

  • tx *gorm.DB
  • id uuid.UUID

func (*IntegrationsGitlabIntegrationRepository_Expecter) FindByOrganizationId added in v0.5.14

FindByOrganizationId is a helper method to define mock.On call

  • orgID uuid.UUID

func (*IntegrationsGitlabIntegrationRepository_Expecter) Read added in v0.5.14

Read is a helper method to define mock.On call

  • id uuid.UUID

func (*IntegrationsGitlabIntegrationRepository_Expecter) Save added in v0.5.14

Save is a helper method to define mock.On call

  • tx *gorm.DB
  • model *models.GitLabIntegration

type IntegrationsGitlabIntegrationRepository_FindByOrganizationId_Call added in v0.5.14

type IntegrationsGitlabIntegrationRepository_FindByOrganizationId_Call struct {
	*mock.Call
}

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

func (*IntegrationsGitlabIntegrationRepository_FindByOrganizationId_Call) Return added in v0.5.14

func (*IntegrationsGitlabIntegrationRepository_FindByOrganizationId_Call) Run added in v0.5.14

func (*IntegrationsGitlabIntegrationRepository_FindByOrganizationId_Call) RunAndReturn added in v0.5.14

type IntegrationsGitlabIntegrationRepository_Read_Call added in v0.5.14

type IntegrationsGitlabIntegrationRepository_Read_Call struct {
	*mock.Call
}

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

func (*IntegrationsGitlabIntegrationRepository_Read_Call) Return added in v0.5.14

func (*IntegrationsGitlabIntegrationRepository_Read_Call) Run added in v0.5.14

func (*IntegrationsGitlabIntegrationRepository_Read_Call) RunAndReturn added in v0.5.14

type IntegrationsGitlabIntegrationRepository_Save_Call added in v0.5.14

type IntegrationsGitlabIntegrationRepository_Save_Call struct {
	*mock.Call
}

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

func (*IntegrationsGitlabIntegrationRepository_Save_Call) Return added in v0.5.14

func (*IntegrationsGitlabIntegrationRepository_Save_Call) Run added in v0.5.14

func (*IntegrationsGitlabIntegrationRepository_Save_Call) RunAndReturn added in v0.5.14

type IntotoAccessControl added in v0.5.14

type IntotoAccessControl struct {
	mock.Mock
}

IntotoAccessControl is an autogenerated mock type for the accessControl type

func NewIntotoAccessControl added in v0.5.14

func NewIntotoAccessControl(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntotoAccessControl

NewIntotoAccessControl creates a new instance of IntotoAccessControl. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IntotoAccessControl) EXPECT added in v0.5.14

func (*IntotoAccessControl) GetAllMembersOfProject added in v0.5.14

func (_m *IntotoAccessControl) GetAllMembersOfProject(organizationID string, projectID string) ([]string, error)

GetAllMembersOfProject provides a mock function with given fields: organizationID, projectID

type IntotoAccessControl_Expecter added in v0.5.14

type IntotoAccessControl_Expecter struct {
	// contains filtered or unexported fields
}

func (*IntotoAccessControl_Expecter) GetAllMembersOfProject added in v0.5.14

func (_e *IntotoAccessControl_Expecter) GetAllMembersOfProject(organizationID interface{}, projectID interface{}) *IntotoAccessControl_GetAllMembersOfProject_Call

GetAllMembersOfProject is a helper method to define mock.On call

  • organizationID string
  • projectID string

type IntotoAccessControl_GetAllMembersOfProject_Call added in v0.5.14

type IntotoAccessControl_GetAllMembersOfProject_Call struct {
	*mock.Call
}

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

func (*IntotoAccessControl_GetAllMembersOfProject_Call) Return added in v0.5.14

func (*IntotoAccessControl_GetAllMembersOfProject_Call) Run added in v0.5.14

func (*IntotoAccessControl_GetAllMembersOfProject_Call) RunAndReturn added in v0.5.14

type IntotoInTotoLinkRepository added in v0.5.14

type IntotoInTotoLinkRepository struct {
	mock.Mock
}

IntotoInTotoLinkRepository is an autogenerated mock type for the inTotoLinkRepository type

func NewIntotoInTotoLinkRepository added in v0.5.14

func NewIntotoInTotoLinkRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntotoInTotoLinkRepository

NewIntotoInTotoLinkRepository creates a new instance of IntotoInTotoLinkRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IntotoInTotoLinkRepository) EXPECT added in v0.5.14

func (*IntotoInTotoLinkRepository) FindBySupplyChainID added in v0.5.14

func (_m *IntotoInTotoLinkRepository) FindBySupplyChainID(supplyChainID string) ([]models.InTotoLink, error)

FindBySupplyChainID provides a mock function with given fields: supplyChainID

type IntotoInTotoLinkRepository_Expecter added in v0.5.14

type IntotoInTotoLinkRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*IntotoInTotoLinkRepository_Expecter) FindBySupplyChainID added in v0.5.14

func (_e *IntotoInTotoLinkRepository_Expecter) FindBySupplyChainID(supplyChainID interface{}) *IntotoInTotoLinkRepository_FindBySupplyChainID_Call

FindBySupplyChainID is a helper method to define mock.On call

  • supplyChainID string

type IntotoInTotoLinkRepository_FindBySupplyChainID_Call added in v0.5.14

type IntotoInTotoLinkRepository_FindBySupplyChainID_Call struct {
	*mock.Call
}

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

func (*IntotoInTotoLinkRepository_FindBySupplyChainID_Call) Return added in v0.5.14

func (*IntotoInTotoLinkRepository_FindBySupplyChainID_Call) Run added in v0.5.14

func (*IntotoInTotoLinkRepository_FindBySupplyChainID_Call) RunAndReturn added in v0.5.14

type IntotoInTotoVerifierService added in v0.5.14

type IntotoInTotoVerifierService struct {
	mock.Mock
}

IntotoInTotoVerifierService is an autogenerated mock type for the inTotoVerifierService type

func NewIntotoInTotoVerifierService added in v0.5.14

func NewIntotoInTotoVerifierService(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntotoInTotoVerifierService

NewIntotoInTotoVerifierService creates a new instance of IntotoInTotoVerifierService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IntotoInTotoVerifierService) EXPECT added in v0.5.14

func (*IntotoInTotoVerifierService) VerifySupplyChain added in v0.5.15

func (_m *IntotoInTotoVerifierService) VerifySupplyChain(supplyChainID string) (bool, error)

VerifySupplyChain provides a mock function with given fields: supplyChainID

func (*IntotoInTotoVerifierService) VerifySupplyChainWithOutputDigest added in v0.5.15

func (_m *IntotoInTotoVerifierService) VerifySupplyChainWithOutputDigest(supplyChainID string, digest string) (bool, error)

VerifySupplyChainWithOutputDigest provides a mock function with given fields: supplyChainID, digest

type IntotoInTotoVerifierService_Expecter added in v0.5.14

type IntotoInTotoVerifierService_Expecter struct {
	// contains filtered or unexported fields
}

func (*IntotoInTotoVerifierService_Expecter) VerifySupplyChain added in v0.5.15

func (_e *IntotoInTotoVerifierService_Expecter) VerifySupplyChain(supplyChainID interface{}) *IntotoInTotoVerifierService_VerifySupplyChain_Call

VerifySupplyChain is a helper method to define mock.On call

  • supplyChainID string

func (*IntotoInTotoVerifierService_Expecter) VerifySupplyChainWithOutputDigest added in v0.5.15

func (_e *IntotoInTotoVerifierService_Expecter) VerifySupplyChainWithOutputDigest(supplyChainID interface{}, digest interface{}) *IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call

VerifySupplyChainWithOutputDigest is a helper method to define mock.On call

  • supplyChainID string
  • digest string

type IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call added in v0.5.15

type IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call struct {
	*mock.Call
}

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

func (*IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call) Return added in v0.5.15

func (*IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call) Run added in v0.5.15

func (*IntotoInTotoVerifierService_VerifySupplyChainWithOutputDigest_Call) RunAndReturn added in v0.5.15

type IntotoInTotoVerifierService_VerifySupplyChain_Call added in v0.5.15

type IntotoInTotoVerifierService_VerifySupplyChain_Call struct {
	*mock.Call
}

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

func (*IntotoInTotoVerifierService_VerifySupplyChain_Call) Return added in v0.5.15

func (*IntotoInTotoVerifierService_VerifySupplyChain_Call) Run added in v0.5.15

func (*IntotoInTotoVerifierService_VerifySupplyChain_Call) RunAndReturn added in v0.5.15

type IntotoPatRepository added in v0.5.14

type IntotoPatRepository struct {
	mock.Mock
}

IntotoPatRepository is an autogenerated mock type for the patRepository type

func NewIntotoPatRepository added in v0.5.14

func NewIntotoPatRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntotoPatRepository

NewIntotoPatRepository creates a new instance of IntotoPatRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IntotoPatRepository) EXPECT added in v0.5.14

func (*IntotoPatRepository) FindByUserIDs added in v0.5.14

func (_m *IntotoPatRepository) FindByUserIDs(userID []uuid.UUID) ([]models.PAT, error)

FindByUserIDs provides a mock function with given fields: userID

func (*IntotoPatRepository) GetByFingerprint added in v0.5.14

func (_m *IntotoPatRepository) GetByFingerprint(fingerprint string) (models.PAT, error)

GetByFingerprint provides a mock function with given fields: fingerprint

type IntotoPatRepository_Expecter added in v0.5.14

type IntotoPatRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*IntotoPatRepository_Expecter) FindByUserIDs added in v0.5.14

func (_e *IntotoPatRepository_Expecter) FindByUserIDs(userID interface{}) *IntotoPatRepository_FindByUserIDs_Call

FindByUserIDs is a helper method to define mock.On call

  • userID []uuid.UUID

func (*IntotoPatRepository_Expecter) GetByFingerprint added in v0.5.14

func (_e *IntotoPatRepository_Expecter) GetByFingerprint(fingerprint interface{}) *IntotoPatRepository_GetByFingerprint_Call

GetByFingerprint is a helper method to define mock.On call

  • fingerprint string

type IntotoPatRepository_FindByUserIDs_Call added in v0.5.14

type IntotoPatRepository_FindByUserIDs_Call struct {
	*mock.Call
}

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

func (*IntotoPatRepository_FindByUserIDs_Call) Return added in v0.5.14

func (*IntotoPatRepository_FindByUserIDs_Call) Run added in v0.5.14

func (*IntotoPatRepository_FindByUserIDs_Call) RunAndReturn added in v0.5.14

type IntotoPatRepository_GetByFingerprint_Call added in v0.5.14

type IntotoPatRepository_GetByFingerprint_Call struct {
	*mock.Call
}

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

func (*IntotoPatRepository_GetByFingerprint_Call) Return added in v0.5.14

func (*IntotoPatRepository_GetByFingerprint_Call) Run added in v0.5.14

func (*IntotoPatRepository_GetByFingerprint_Call) RunAndReturn added in v0.5.14

type IntotoProjectRepository added in v0.5.14

type IntotoProjectRepository struct {
	mock.Mock
}

IntotoProjectRepository is an autogenerated mock type for the projectRepository type

func NewIntotoProjectRepository added in v0.5.14

func NewIntotoProjectRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntotoProjectRepository

NewIntotoProjectRepository creates a new instance of IntotoProjectRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IntotoProjectRepository) EXPECT added in v0.5.14

func (*IntotoProjectRepository) GetProjectByAssetID added in v0.5.14

func (_m *IntotoProjectRepository) GetProjectByAssetID(assetID uuid.UUID) (models.Project, error)

GetProjectByAssetID provides a mock function with given fields: assetID

type IntotoProjectRepository_Expecter added in v0.5.14

type IntotoProjectRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*IntotoProjectRepository_Expecter) GetProjectByAssetID added in v0.5.14

func (_e *IntotoProjectRepository_Expecter) GetProjectByAssetID(assetID interface{}) *IntotoProjectRepository_GetProjectByAssetID_Call

GetProjectByAssetID is a helper method to define mock.On call

  • assetID uuid.UUID

type IntotoProjectRepository_GetProjectByAssetID_Call added in v0.5.14

type IntotoProjectRepository_GetProjectByAssetID_Call struct {
	*mock.Call
}

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

func (*IntotoProjectRepository_GetProjectByAssetID_Call) Return added in v0.5.14

func (*IntotoProjectRepository_GetProjectByAssetID_Call) Run added in v0.5.14

func (*IntotoProjectRepository_GetProjectByAssetID_Call) RunAndReturn added in v0.5.14

type IntotoRepository added in v0.5.14

type IntotoRepository struct {
	mock.Mock
}

IntotoRepository is an autogenerated mock type for the repository type

func NewIntotoRepository added in v0.5.14

func NewIntotoRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntotoRepository

NewIntotoRepository creates a new instance of IntotoRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IntotoRepository) Activate added in v0.5.15

func (_m *IntotoRepository) Activate(tx *gorm.DB, id uuid.UUID) error

Activate provides a mock function with given fields: tx, id

func (*IntotoRepository) Begin added in v0.5.14

func (_m *IntotoRepository) Begin() *gorm.DB

Begin provides a mock function with no fields

func (*IntotoRepository) Create added in v0.5.14

func (_m *IntotoRepository) Create(tx *gorm.DB, t *models.InTotoLink) error

Create provides a mock function with given fields: tx, t

func (*IntotoRepository) CreateBatch added in v0.5.14

func (_m *IntotoRepository) CreateBatch(tx *gorm.DB, ts []models.InTotoLink) error

CreateBatch provides a mock function with given fields: tx, ts

func (*IntotoRepository) Delete added in v0.5.14

func (_m *IntotoRepository) Delete(tx *gorm.DB, id uuid.UUID) error

Delete provides a mock function with given fields: tx, id

func (*IntotoRepository) EXPECT added in v0.5.14

func (*IntotoRepository) FindByAssetAndSupplyChainId added in v0.5.14

func (_m *IntotoRepository) FindByAssetAndSupplyChainId(assetID uuid.UUID, supplyChainId string) ([]models.InTotoLink, error)

FindByAssetAndSupplyChainId provides a mock function with given fields: assetID, supplyChainId

func (*IntotoRepository) GetDB added in v0.5.14

func (_m *IntotoRepository) GetDB(tx *gorm.DB) *gorm.DB

GetDB provides a mock function with given fields: tx

func (*IntotoRepository) List added in v0.5.14

func (_m *IntotoRepository) List(ids []uuid.UUID) ([]models.InTotoLink, error)

List provides a mock function with given fields: ids

func (*IntotoRepository) Read added in v0.5.14

func (_m *IntotoRepository) Read(id uuid.UUID) (models.InTotoLink, error)

Read provides a mock function with given fields: id

func (*IntotoRepository) Save added in v0.5.14

func (_m *IntotoRepository) Save(tx *gorm.DB, model *models.InTotoLink) error

Save provides a mock function with given fields: tx, model

func (*IntotoRepository) SaveBatch added in v0.5.14

func (_m *IntotoRepository) SaveBatch(tx *gorm.DB, ts []models.InTotoLink) error

SaveBatch provides a mock function with given fields: tx, ts

func (*IntotoRepository) Transaction added in v0.5.14

func (_m *IntotoRepository) Transaction(_a0 func(*gorm.DB) error) error

Transaction provides a mock function with given fields: _a0

type IntotoRepository_Activate_Call added in v0.5.15

type IntotoRepository_Activate_Call struct {
	*mock.Call
}

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

func (*IntotoRepository_Activate_Call) Return added in v0.5.15

func (*IntotoRepository_Activate_Call) Run added in v0.5.15

func (*IntotoRepository_Activate_Call) RunAndReturn added in v0.5.15

type IntotoRepository_Begin_Call added in v0.5.14

type IntotoRepository_Begin_Call struct {
	*mock.Call
}

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

func (*IntotoRepository_Begin_Call) Return added in v0.5.14

func (*IntotoRepository_Begin_Call) Run added in v0.5.14

func (*IntotoRepository_Begin_Call) RunAndReturn added in v0.5.14

func (_c *IntotoRepository_Begin_Call) RunAndReturn(run func() *gorm.DB) *IntotoRepository_Begin_Call

type IntotoRepository_CreateBatch_Call added in v0.5.14

type IntotoRepository_CreateBatch_Call struct {
	*mock.Call
}

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

func (*IntotoRepository_CreateBatch_Call) Return added in v0.5.14

func (*IntotoRepository_CreateBatch_Call) Run added in v0.5.14

func (*IntotoRepository_CreateBatch_Call) RunAndReturn added in v0.5.14

type IntotoRepository_Create_Call added in v0.5.14

type IntotoRepository_Create_Call struct {
	*mock.Call
}

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

func (*IntotoRepository_Create_Call) Return added in v0.5.14

func (*IntotoRepository_Create_Call) Run added in v0.5.14

func (*IntotoRepository_Create_Call) RunAndReturn added in v0.5.14

type IntotoRepository_Delete_Call added in v0.5.14

type IntotoRepository_Delete_Call struct {
	*mock.Call
}

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

func (*IntotoRepository_Delete_Call) Return added in v0.5.14

func (*IntotoRepository_Delete_Call) Run added in v0.5.14

func (*IntotoRepository_Delete_Call) RunAndReturn added in v0.5.14

type IntotoRepository_Expecter added in v0.5.14

type IntotoRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*IntotoRepository_Expecter) Activate added in v0.5.15

func (_e *IntotoRepository_Expecter) Activate(tx interface{}, id interface{}) *IntotoRepository_Activate_Call

Activate is a helper method to define mock.On call

  • tx *gorm.DB
  • id uuid.UUID

func (*IntotoRepository_Expecter) Begin added in v0.5.14

Begin is a helper method to define mock.On call

func (*IntotoRepository_Expecter) Create added in v0.5.14

func (_e *IntotoRepository_Expecter) Create(tx interface{}, t interface{}) *IntotoRepository_Create_Call

Create is a helper method to define mock.On call

  • tx *gorm.DB
  • t *models.InTotoLink

func (*IntotoRepository_Expecter) CreateBatch added in v0.5.14

func (_e *IntotoRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *IntotoRepository_CreateBatch_Call

CreateBatch is a helper method to define mock.On call

  • tx *gorm.DB
  • ts []models.InTotoLink

func (*IntotoRepository_Expecter) Delete added in v0.5.14

func (_e *IntotoRepository_Expecter) Delete(tx interface{}, id interface{}) *IntotoRepository_Delete_Call

Delete is a helper method to define mock.On call

  • tx *gorm.DB
  • id uuid.UUID

func (*IntotoRepository_Expecter) FindByAssetAndSupplyChainId added in v0.5.14

func (_e *IntotoRepository_Expecter) FindByAssetAndSupplyChainId(assetID interface{}, supplyChainId interface{}) *IntotoRepository_FindByAssetAndSupplyChainId_Call

FindByAssetAndSupplyChainId is a helper method to define mock.On call

  • assetID uuid.UUID
  • supplyChainId string

func (*IntotoRepository_Expecter) GetDB added in v0.5.14

func (_e *IntotoRepository_Expecter) GetDB(tx interface{}) *IntotoRepository_GetDB_Call

GetDB is a helper method to define mock.On call

  • tx *gorm.DB

func (*IntotoRepository_Expecter) List added in v0.5.14

func (_e *IntotoRepository_Expecter) List(ids interface{}) *IntotoRepository_List_Call

List is a helper method to define mock.On call

  • ids []uuid.UUID

func (*IntotoRepository_Expecter) Read added in v0.5.14

func (_e *IntotoRepository_Expecter) Read(id interface{}) *IntotoRepository_Read_Call

Read is a helper method to define mock.On call

  • id uuid.UUID

func (*IntotoRepository_Expecter) Save added in v0.5.14

func (_e *IntotoRepository_Expecter) Save(tx interface{}, model interface{}) *IntotoRepository_Save_Call

Save is a helper method to define mock.On call

  • tx *gorm.DB
  • model *models.InTotoLink

func (*IntotoRepository_Expecter) SaveBatch added in v0.5.14

func (_e *IntotoRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *IntotoRepository_SaveBatch_Call

SaveBatch is a helper method to define mock.On call

  • tx *gorm.DB
  • ts []models.InTotoLink

func (*IntotoRepository_Expecter) Transaction added in v0.5.14

func (_e *IntotoRepository_Expecter) Transaction(_a0 interface{}) *IntotoRepository_Transaction_Call

Transaction is a helper method to define mock.On call

  • _a0 func(*gorm.DB) error

type IntotoRepository_FindByAssetAndSupplyChainId_Call added in v0.5.14

type IntotoRepository_FindByAssetAndSupplyChainId_Call struct {
	*mock.Call
}

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

func (*IntotoRepository_FindByAssetAndSupplyChainId_Call) Return added in v0.5.14

func (*IntotoRepository_FindByAssetAndSupplyChainId_Call) Run added in v0.5.14

func (*IntotoRepository_FindByAssetAndSupplyChainId_Call) RunAndReturn added in v0.5.14

type IntotoRepository_GetDB_Call added in v0.5.14

type IntotoRepository_GetDB_Call struct {
	*mock.Call
}

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

func (*IntotoRepository_GetDB_Call) Return added in v0.5.14

func (*IntotoRepository_GetDB_Call) Run added in v0.5.14

func (*IntotoRepository_GetDB_Call) RunAndReturn added in v0.5.14

func (_c *IntotoRepository_GetDB_Call) RunAndReturn(run func(*gorm.DB) *gorm.DB) *IntotoRepository_GetDB_Call

type IntotoRepository_List_Call added in v0.5.14

type IntotoRepository_List_Call struct {
	*mock.Call
}

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

func (*IntotoRepository_List_Call) Return added in v0.5.14

func (*IntotoRepository_List_Call) Run added in v0.5.14

func (*IntotoRepository_List_Call) RunAndReturn added in v0.5.14

type IntotoRepository_Read_Call added in v0.5.14

type IntotoRepository_Read_Call struct {
	*mock.Call
}

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

func (*IntotoRepository_Read_Call) Return added in v0.5.14

func (*IntotoRepository_Read_Call) Run added in v0.5.14

func (*IntotoRepository_Read_Call) RunAndReturn added in v0.5.14

type IntotoRepository_SaveBatch_Call added in v0.5.14

type IntotoRepository_SaveBatch_Call struct {
	*mock.Call
}

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

func (*IntotoRepository_SaveBatch_Call) Return added in v0.5.14

func (*IntotoRepository_SaveBatch_Call) Run added in v0.5.14

func (*IntotoRepository_SaveBatch_Call) RunAndReturn added in v0.5.14

type IntotoRepository_Save_Call added in v0.5.14

type IntotoRepository_Save_Call struct {
	*mock.Call
}

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

func (*IntotoRepository_Save_Call) Return added in v0.5.14

func (*IntotoRepository_Save_Call) Run added in v0.5.14

func (*IntotoRepository_Save_Call) RunAndReturn added in v0.5.14

type IntotoRepository_Transaction_Call added in v0.5.14

type IntotoRepository_Transaction_Call struct {
	*mock.Call
}

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

func (*IntotoRepository_Transaction_Call) Return added in v0.5.14

func (*IntotoRepository_Transaction_Call) Run added in v0.5.14

func (*IntotoRepository_Transaction_Call) RunAndReturn added in v0.5.14

type IntotoSupplyChainRepository added in v0.5.14

type IntotoSupplyChainRepository struct {
	mock.Mock
}

IntotoSupplyChainRepository is an autogenerated mock type for the supplyChainRepository type

func NewIntotoSupplyChainRepository added in v0.5.14

func NewIntotoSupplyChainRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntotoSupplyChainRepository

NewIntotoSupplyChainRepository creates a new instance of IntotoSupplyChainRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IntotoSupplyChainRepository) EXPECT added in v0.5.14

func (*IntotoSupplyChainRepository) Save added in v0.5.14

Save provides a mock function with given fields: tx, model

type IntotoSupplyChainRepositoryS added in v0.5.14

type IntotoSupplyChainRepositoryS struct {
	mock.Mock
}

IntotoSupplyChainRepositoryS is an autogenerated mock type for the supplyChainRepositoryS type

func NewIntotoSupplyChainRepositoryS added in v0.5.14

func NewIntotoSupplyChainRepositoryS(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntotoSupplyChainRepositoryS

NewIntotoSupplyChainRepositoryS creates a new instance of IntotoSupplyChainRepositoryS. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IntotoSupplyChainRepositoryS) EXPECT added in v0.5.14

func (*IntotoSupplyChainRepositoryS) FindBySupplyChainID added in v0.5.14

func (_m *IntotoSupplyChainRepositoryS) FindBySupplyChainID(supplyChainID string) ([]models.SupplyChain, error)

FindBySupplyChainID provides a mock function with given fields: supplyChainID

type IntotoSupplyChainRepositoryS_Expecter added in v0.5.14

type IntotoSupplyChainRepositoryS_Expecter struct {
	// contains filtered or unexported fields
}

func (*IntotoSupplyChainRepositoryS_Expecter) FindBySupplyChainID added in v0.5.14

func (_e *IntotoSupplyChainRepositoryS_Expecter) FindBySupplyChainID(supplyChainID interface{}) *IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call

FindBySupplyChainID is a helper method to define mock.On call

  • supplyChainID string

type IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call added in v0.5.14

type IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call struct {
	*mock.Call
}

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

func (*IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call) Return added in v0.5.14

func (*IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call) Run added in v0.5.14

func (*IntotoSupplyChainRepositoryS_FindBySupplyChainID_Call) RunAndReturn added in v0.5.14

type IntotoSupplyChainRepository_Expecter added in v0.5.14

type IntotoSupplyChainRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*IntotoSupplyChainRepository_Expecter) Save added in v0.5.14

func (_e *IntotoSupplyChainRepository_Expecter) Save(tx interface{}, model interface{}) *IntotoSupplyChainRepository_Save_Call

Save is a helper method to define mock.On call

  • tx *gorm.DB
  • model *models.SupplyChain

type IntotoSupplyChainRepository_Save_Call added in v0.5.14

type IntotoSupplyChainRepository_Save_Call struct {
	*mock.Call
}

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

func (*IntotoSupplyChainRepository_Save_Call) Return added in v0.5.14

func (*IntotoSupplyChainRepository_Save_Call) Run added in v0.5.14

func (*IntotoSupplyChainRepository_Save_Call) RunAndReturn added in v0.5.14

type LeaderelectionConfigService

type LeaderelectionConfigService struct {
	mock.Mock
}

LeaderelectionConfigService is an autogenerated mock type for the configService type

func NewLeaderelectionConfigService

func NewLeaderelectionConfigService(t interface {
	mock.TestingT
	Cleanup(func())
}) *LeaderelectionConfigService

NewLeaderelectionConfigService creates a new instance of LeaderelectionConfigService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*LeaderelectionConfigService) EXPECT

func (*LeaderelectionConfigService) GetJSONConfig

func (_m *LeaderelectionConfigService) GetJSONConfig(key string, v interface{}) error

GetJSONConfig provides a mock function with given fields: key, v

func (*LeaderelectionConfigService) SetJSONConfig

func (_m *LeaderelectionConfigService) SetJSONConfig(key string, v interface{}) error

SetJSONConfig provides a mock function with given fields: key, v

type LeaderelectionConfigService_Expecter

type LeaderelectionConfigService_Expecter struct {
	// contains filtered or unexported fields
}

func (*LeaderelectionConfigService_Expecter) GetJSONConfig

func (_e *LeaderelectionConfigService_Expecter) GetJSONConfig(key interface{}, v interface{}) *LeaderelectionConfigService_GetJSONConfig_Call

GetJSONConfig is a helper method to define mock.On call

  • key string
  • v interface{}

func (*LeaderelectionConfigService_Expecter) SetJSONConfig

func (_e *LeaderelectionConfigService_Expecter) SetJSONConfig(key interface{}, v interface{}) *LeaderelectionConfigService_SetJSONConfig_Call

SetJSONConfig is a helper method to define mock.On call

  • key string
  • v interface{}

type LeaderelectionConfigService_GetJSONConfig_Call

type LeaderelectionConfigService_GetJSONConfig_Call struct {
	*mock.Call
}

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

func (*LeaderelectionConfigService_GetJSONConfig_Call) Return

func (*LeaderelectionConfigService_GetJSONConfig_Call) Run

func (*LeaderelectionConfigService_GetJSONConfig_Call) RunAndReturn

type LeaderelectionConfigService_SetJSONConfig_Call

type LeaderelectionConfigService_SetJSONConfig_Call struct {
	*mock.Call
}

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

func (*LeaderelectionConfigService_SetJSONConfig_Call) Return

func (*LeaderelectionConfigService_SetJSONConfig_Call) Run

func (*LeaderelectionConfigService_SetJSONConfig_Call) RunAndReturn

type NormalizeSBOM added in v0.5.1

type NormalizeSBOM struct {
	mock.Mock
}

NormalizeSBOM is an autogenerated mock type for the SBOM type

func NewNormalizeSBOM added in v0.5.1

func NewNormalizeSBOM(t interface {
	mock.TestingT
	Cleanup(func())
}) *NormalizeSBOM

NewNormalizeSBOM creates a new instance of NormalizeSBOM. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*NormalizeSBOM) EXPECT added in v0.5.1

func (_m *NormalizeSBOM) EXPECT() *NormalizeSBOM_Expecter

func (*NormalizeSBOM) GetComponents added in v0.5.1

func (_m *NormalizeSBOM) GetComponents() *[]cyclonedx.Component

GetComponents provides a mock function with no fields

func (*NormalizeSBOM) GetDependencies added in v0.5.1

func (_m *NormalizeSBOM) GetDependencies() *[]cyclonedx.Dependency

GetDependencies provides a mock function with no fields

func (*NormalizeSBOM) GetMetadata added in v0.5.1

func (_m *NormalizeSBOM) GetMetadata() *cyclonedx.Metadata

GetMetadata provides a mock function with no fields

type NormalizeSBOM_Expecter added in v0.5.1

type NormalizeSBOM_Expecter struct {
	// contains filtered or unexported fields
}

func (*NormalizeSBOM_Expecter) GetComponents added in v0.5.1

GetComponents is a helper method to define mock.On call

func (*NormalizeSBOM_Expecter) GetDependencies added in v0.5.1

GetDependencies is a helper method to define mock.On call

func (*NormalizeSBOM_Expecter) GetMetadata added in v0.5.1

GetMetadata is a helper method to define mock.On call

type NormalizeSBOM_GetComponents_Call added in v0.5.1

type NormalizeSBOM_GetComponents_Call struct {
	*mock.Call
}

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

func (*NormalizeSBOM_GetComponents_Call) Return added in v0.5.1

func (*NormalizeSBOM_GetComponents_Call) Run added in v0.5.1

func (*NormalizeSBOM_GetComponents_Call) RunAndReturn added in v0.5.1

type NormalizeSBOM_GetDependencies_Call added in v0.5.1

type NormalizeSBOM_GetDependencies_Call struct {
	*mock.Call
}

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

func (*NormalizeSBOM_GetDependencies_Call) Return added in v0.5.1

func (*NormalizeSBOM_GetDependencies_Call) Run added in v0.5.1

func (*NormalizeSBOM_GetDependencies_Call) RunAndReturn added in v0.5.1

type NormalizeSBOM_GetMetadata_Call added in v0.5.1

type NormalizeSBOM_GetMetadata_Call struct {
	*mock.Call
}

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

func (*NormalizeSBOM_GetMetadata_Call) Return added in v0.5.1

func (*NormalizeSBOM_GetMetadata_Call) Run added in v0.5.1

func (*NormalizeSBOM_GetMetadata_Call) RunAndReturn added in v0.5.1

type OrgInvitationRepository added in v0.5.14

type OrgInvitationRepository struct {
	mock.Mock
}

OrgInvitationRepository is an autogenerated mock type for the invitationRepository type

func NewOrgInvitationRepository added in v0.5.14

func NewOrgInvitationRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *OrgInvitationRepository

NewOrgInvitationRepository creates a new instance of OrgInvitationRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*OrgInvitationRepository) Delete added in v0.5.14

func (_m *OrgInvitationRepository) Delete(tx *gorm.DB, id uuid.UUID) error

Delete provides a mock function with given fields: tx, id

func (*OrgInvitationRepository) EXPECT added in v0.5.14

func (*OrgInvitationRepository) FindByCode added in v0.5.14

func (_m *OrgInvitationRepository) FindByCode(code string) (models.Invitation, error)

FindByCode provides a mock function with given fields: code

func (*OrgInvitationRepository) Save added in v0.5.14

func (_m *OrgInvitationRepository) Save(tx *gorm.DB, invitation *models.Invitation) error

Save provides a mock function with given fields: tx, invitation

type OrgInvitationRepository_Delete_Call added in v0.5.14

type OrgInvitationRepository_Delete_Call struct {
	*mock.Call
}

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

func (*OrgInvitationRepository_Delete_Call) Return added in v0.5.14

func (*OrgInvitationRepository_Delete_Call) Run added in v0.5.14

func (*OrgInvitationRepository_Delete_Call) RunAndReturn added in v0.5.14

type OrgInvitationRepository_Expecter added in v0.5.14

type OrgInvitationRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*OrgInvitationRepository_Expecter) Delete added in v0.5.14

func (_e *OrgInvitationRepository_Expecter) Delete(tx interface{}, id interface{}) *OrgInvitationRepository_Delete_Call

Delete is a helper method to define mock.On call

  • tx *gorm.DB
  • id uuid.UUID

func (*OrgInvitationRepository_Expecter) FindByCode added in v0.5.14

FindByCode is a helper method to define mock.On call

  • code string

func (*OrgInvitationRepository_Expecter) Save added in v0.5.14

func (_e *OrgInvitationRepository_Expecter) Save(tx interface{}, invitation interface{}) *OrgInvitationRepository_Save_Call

Save is a helper method to define mock.On call

  • tx *gorm.DB
  • invitation *models.Invitation

type OrgInvitationRepository_FindByCode_Call added in v0.5.14

type OrgInvitationRepository_FindByCode_Call struct {
	*mock.Call
}

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

func (*OrgInvitationRepository_FindByCode_Call) Return added in v0.5.14

func (*OrgInvitationRepository_FindByCode_Call) Run added in v0.5.14

func (*OrgInvitationRepository_FindByCode_Call) RunAndReturn added in v0.5.14

type OrgInvitationRepository_Save_Call added in v0.5.14

type OrgInvitationRepository_Save_Call struct {
	*mock.Call
}

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

func (*OrgInvitationRepository_Save_Call) Return added in v0.5.14

func (*OrgInvitationRepository_Save_Call) Run added in v0.5.14

func (*OrgInvitationRepository_Save_Call) RunAndReturn added in v0.5.14

type OrgProjectService added in v0.5.14

type OrgProjectService struct {
	mock.Mock
}

OrgProjectService is an autogenerated mock type for the projectService type

func NewOrgProjectService added in v0.5.14

func NewOrgProjectService(t interface {
	mock.TestingT
	Cleanup(func())
}) *OrgProjectService

NewOrgProjectService creates a new instance of OrgProjectService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*OrgProjectService) EXPECT added in v0.5.14

func (*OrgProjectService) ListAllowedProjects added in v0.5.14

func (_m *OrgProjectService) ListAllowedProjects(c echo.Context) ([]models.Project, error)

ListAllowedProjects provides a mock function with given fields: c

type OrgProjectService_Expecter added in v0.5.14

type OrgProjectService_Expecter struct {
	// contains filtered or unexported fields
}

func (*OrgProjectService_Expecter) ListAllowedProjects added in v0.5.14

func (_e *OrgProjectService_Expecter) ListAllowedProjects(c interface{}) *OrgProjectService_ListAllowedProjects_Call

ListAllowedProjects is a helper method to define mock.On call

  • c echo.Context

type OrgProjectService_ListAllowedProjects_Call added in v0.5.14

type OrgProjectService_ListAllowedProjects_Call struct {
	*mock.Call
}

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

func (*OrgProjectService_ListAllowedProjects_Call) Return added in v0.5.14

func (*OrgProjectService_ListAllowedProjects_Call) Run added in v0.5.14

func (*OrgProjectService_ListAllowedProjects_Call) RunAndReturn added in v0.5.14

type OrgRepository

type OrgRepository struct {
	mock.Mock
}

OrgRepository is an autogenerated mock type for the repository type

func NewOrgRepository

func NewOrgRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *OrgRepository

NewOrgRepository creates a new instance of OrgRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*OrgRepository) Activate added in v0.5.15

func (_m *OrgRepository) Activate(tx *gorm.DB, id uuid.UUID) error

Activate provides a mock function with given fields: tx, id

func (*OrgRepository) Begin

func (_m *OrgRepository) Begin() *gorm.DB

Begin provides a mock function with no fields

func (*OrgRepository) ContentTree added in v0.5.14

func (_m *OrgRepository) ContentTree(orgID uuid.UUID, projects []string) []obj.ContentTreeElement

ContentTree provides a mock function with given fields: orgID, projects

func (*OrgRepository) Create

func (_m *OrgRepository) Create(tx *gorm.DB, t *models.Org) error

Create provides a mock function with given fields: tx, t

func (*OrgRepository) CreateBatch

func (_m *OrgRepository) CreateBatch(tx *gorm.DB, ts []models.Org) error

CreateBatch provides a mock function with given fields: tx, ts

func (*OrgRepository) Delete

func (_m *OrgRepository) Delete(tx *gorm.DB, id uuid.UUID) error

Delete provides a mock function with given fields: tx, id

func (*OrgRepository) EXPECT

func (_m *OrgRepository) EXPECT() *OrgRepository_Expecter

func (*OrgRepository) GetDB

func (_m *OrgRepository) GetDB(tx *gorm.DB) *gorm.DB

GetDB provides a mock function with given fields: tx

func (*OrgRepository) List

func (_m *OrgRepository) List(ids []uuid.UUID) ([]models.Org, error)

List provides a mock function with given fields: ids

func (*OrgRepository) Read

func (_m *OrgRepository) Read(id uuid.UUID) (models.Org, error)

Read provides a mock function with given fields: id

func (*OrgRepository) ReadBySlug

func (_m *OrgRepository) ReadBySlug(slug string) (models.Org, error)

ReadBySlug provides a mock function with given fields: slug

func (*OrgRepository) Save

func (_m *OrgRepository) Save(tx *gorm.DB, t *models.Org) error

Save provides a mock function with given fields: tx, t

func (*OrgRepository) SaveBatch

func (_m *OrgRepository) SaveBatch(tx *gorm.DB, ts []models.Org) error

SaveBatch provides a mock function with given fields: tx, ts

func (*OrgRepository) Transaction

func (_m *OrgRepository) Transaction(_a0 func(*gorm.DB) error) error

Transaction provides a mock function with given fields: _a0

func (*OrgRepository) Update added in v0.5.14

func (_m *OrgRepository) Update(tx *gorm.DB, organization *models.Org) error

Update provides a mock function with given fields: tx, organization

type OrgRepository_Activate_Call added in v0.5.15

type OrgRepository_Activate_Call struct {
	*mock.Call
}

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

func (*OrgRepository_Activate_Call) Return added in v0.5.15

func (*OrgRepository_Activate_Call) Run added in v0.5.15

func (*OrgRepository_Activate_Call) RunAndReturn added in v0.5.15

type OrgRepository_Begin_Call

type OrgRepository_Begin_Call struct {
	*mock.Call
}

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

func (*OrgRepository_Begin_Call) Return

func (*OrgRepository_Begin_Call) Run

func (*OrgRepository_Begin_Call) RunAndReturn

func (_c *OrgRepository_Begin_Call) RunAndReturn(run func() *gorm.DB) *OrgRepository_Begin_Call

type OrgRepository_ContentTree_Call added in v0.5.14

type OrgRepository_ContentTree_Call struct {
	*mock.Call
}

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

func (*OrgRepository_ContentTree_Call) Return added in v0.5.14

func (*OrgRepository_ContentTree_Call) Run added in v0.5.14

func (_c *OrgRepository_ContentTree_Call) Run(run func(orgID uuid.UUID, projects []string)) *OrgRepository_ContentTree_Call

func (*OrgRepository_ContentTree_Call) RunAndReturn added in v0.5.14

type OrgRepository_CreateBatch_Call

type OrgRepository_CreateBatch_Call struct {
	*mock.Call
}

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

func (*OrgRepository_CreateBatch_Call) Return

func (*OrgRepository_CreateBatch_Call) Run

func (*OrgRepository_CreateBatch_Call) RunAndReturn

type OrgRepository_Create_Call

type OrgRepository_Create_Call struct {
	*mock.Call
}

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

func (*OrgRepository_Create_Call) Return

func (*OrgRepository_Create_Call) Run

func (*OrgRepository_Create_Call) RunAndReturn

func (_c *OrgRepository_Create_Call) RunAndReturn(run func(*gorm.DB, *models.Org) error) *OrgRepository_Create_Call

type OrgRepository_Delete_Call

type OrgRepository_Delete_Call struct {
	*mock.Call
}

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

func (*OrgRepository_Delete_Call) Return

func (*OrgRepository_Delete_Call) Run

func (*OrgRepository_Delete_Call) RunAndReturn

func (_c *OrgRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *OrgRepository_Delete_Call

type OrgRepository_Expecter

type OrgRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*OrgRepository_Expecter) Activate added in v0.5.15

func (_e *OrgRepository_Expecter) Activate(tx interface{}, id interface{}) *OrgRepository_Activate_Call

Activate is a helper method to define mock.On call

  • tx *gorm.DB
  • id uuid.UUID

func (*OrgRepository_Expecter) Begin

Begin is a helper method to define mock.On call

func (*OrgRepository_Expecter) ContentTree added in v0.5.14

func (_e *OrgRepository_Expecter) ContentTree(orgID interface{}, projects interface{}) *OrgRepository_ContentTree_Call

ContentTree is a helper method to define mock.On call

  • orgID uuid.UUID
  • projects []string

func (*OrgRepository_Expecter) Create

func (_e *OrgRepository_Expecter) Create(tx interface{}, t interface{}) *OrgRepository_Create_Call

Create is a helper method to define mock.On call

  • tx *gorm.DB
  • t *models.Org

func (*OrgRepository_Expecter) CreateBatch

func (_e *OrgRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *OrgRepository_CreateBatch_Call

CreateBatch is a helper method to define mock.On call

  • tx *gorm.DB
  • ts []models.Org

func (*OrgRepository_Expecter) Delete

func (_e *OrgRepository_Expecter) Delete(tx interface{}, id interface{}) *OrgRepository_Delete_Call

Delete is a helper method to define mock.On call

  • tx *gorm.DB
  • id uuid.UUID

func (*OrgRepository_Expecter) GetDB

func (_e *OrgRepository_Expecter) GetDB(tx interface{}) *OrgRepository_GetDB_Call

GetDB is a helper method to define mock.On call

  • tx *gorm.DB

func (*OrgRepository_Expecter) List

func (_e *OrgRepository_Expecter) List(ids interface{}) *OrgRepository_List_Call

List is a helper method to define mock.On call

  • ids []uuid.UUID

func (*OrgRepository_Expecter) Read

func (_e *OrgRepository_Expecter) Read(id interface{}) *OrgRepository_Read_Call

Read is a helper method to define mock.On call

  • id uuid.UUID

func (*OrgRepository_Expecter) ReadBySlug

func (_e *OrgRepository_Expecter) ReadBySlug(slug interface{}) *OrgRepository_ReadBySlug_Call

ReadBySlug is a helper method to define mock.On call

  • slug string

func (*OrgRepository_Expecter) Save

func (_e *OrgRepository_Expecter) Save(tx interface{}, t interface{}) *OrgRepository_Save_Call

Save is a helper method to define mock.On call

  • tx *gorm.DB
  • t *models.Org

func (*OrgRepository_Expecter) SaveBatch

func (_e *OrgRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *OrgRepository_SaveBatch_Call

SaveBatch is a helper method to define mock.On call

  • tx *gorm.DB
  • ts []models.Org

func (*OrgRepository_Expecter) Transaction

func (_e *OrgRepository_Expecter) Transaction(_a0 interface{}) *OrgRepository_Transaction_Call

Transaction is a helper method to define mock.On call

  • _a0 func(*gorm.DB) error

func (*OrgRepository_Expecter) Update added in v0.5.14

func (_e *OrgRepository_Expecter) Update(tx interface{}, organization interface{}) *OrgRepository_Update_Call

Update is a helper method to define mock.On call

  • tx *gorm.DB
  • organization *models.Org

type OrgRepository_GetDB_Call

type OrgRepository_GetDB_Call struct {
	*mock.Call
}

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

func (*OrgRepository_GetDB_Call) Return

func (*OrgRepository_GetDB_Call) Run

func (_c *OrgRepository_GetDB_Call) Run(run func(tx *gorm.DB)) *OrgRepository_GetDB_Call

func (*OrgRepository_GetDB_Call) RunAndReturn

func (_c *OrgRepository_GetDB_Call) RunAndReturn(run func(*gorm.DB) *gorm.DB) *OrgRepository_GetDB_Call

type OrgRepository_List_Call

type OrgRepository_List_Call struct {
	*mock.Call
}

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

func (*OrgRepository_List_Call) Return

func (*OrgRepository_List_Call) Run

func (_c *OrgRepository_List_Call) Run(run func(ids []uuid.UUID)) *OrgRepository_List_Call

func (*OrgRepository_List_Call) RunAndReturn

func (_c *OrgRepository_List_Call) RunAndReturn(run func([]uuid.UUID) ([]models.Org, error)) *OrgRepository_List_Call

type OrgRepository_ReadBySlug_Call

type OrgRepository_ReadBySlug_Call struct {
	*mock.Call
}

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

func (*OrgRepository_ReadBySlug_Call) Return

func (*OrgRepository_ReadBySlug_Call) Run

func (*OrgRepository_ReadBySlug_Call) RunAndReturn

type OrgRepository_Read_Call

type OrgRepository_Read_Call struct {
	*mock.Call
}

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

func (*OrgRepository_Read_Call) Return

func (*OrgRepository_Read_Call) Run

func (*OrgRepository_Read_Call) RunAndReturn

func (_c *OrgRepository_Read_Call) RunAndReturn(run func(uuid.UUID) (models.Org, error)) *OrgRepository_Read_Call

type OrgRepository_SaveBatch_Call

type OrgRepository_SaveBatch_Call struct {
	*mock.Call
}

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

func (*OrgRepository_SaveBatch_Call) Return

func (*OrgRepository_SaveBatch_Call) Run

func (*OrgRepository_SaveBatch_Call) RunAndReturn

type OrgRepository_Save_Call

type OrgRepository_Save_Call struct {
	*mock.Call
}

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

func (*OrgRepository_Save_Call) Return

func (*OrgRepository_Save_Call) Run

func (_c *OrgRepository_Save_Call) Run(run func(tx *gorm.DB, t *models.Org)) *OrgRepository_Save_Call

func (*OrgRepository_Save_Call) RunAndReturn

func (_c *OrgRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.Org) error) *OrgRepository_Save_Call

type OrgRepository_Transaction_Call

type OrgRepository_Transaction_Call struct {
	*mock.Call
}

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

func (*OrgRepository_Transaction_Call) Return

func (*OrgRepository_Transaction_Call) Run

func (*OrgRepository_Transaction_Call) RunAndReturn

type OrgRepository_Update_Call added in v0.5.14

type OrgRepository_Update_Call struct {
	*mock.Call
}

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

func (*OrgRepository_Update_Call) Return added in v0.5.14

func (*OrgRepository_Update_Call) Run added in v0.5.14

func (_c *OrgRepository_Update_Call) Run(run func(tx *gorm.DB, organization *models.Org)) *OrgRepository_Update_Call

func (*OrgRepository_Update_Call) RunAndReturn added in v0.5.14

func (_c *OrgRepository_Update_Call) RunAndReturn(run func(*gorm.DB, *models.Org) error) *OrgRepository_Update_Call

type PatRepository

type PatRepository struct {
	mock.Mock
}

PatRepository is an autogenerated mock type for the repository type

func NewPatRepository

func NewPatRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *PatRepository

NewPatRepository creates a new instance of PatRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*PatRepository) Activate added in v0.5.15

func (_m *PatRepository) Activate(tx *gorm.DB, id uuid.UUID) error

Activate provides a mock function with given fields: tx, id

func (*PatRepository) Begin

func (_m *PatRepository) Begin() *gorm.DB

Begin provides a mock function with no fields

func (*PatRepository) Create

func (_m *PatRepository) Create(tx *gorm.DB, t *models.PAT) error

Create provides a mock function with given fields: tx, t

func (*PatRepository) CreateBatch

func (_m *PatRepository) CreateBatch(tx *gorm.DB, ts []models.PAT) error

CreateBatch provides a mock function with given fields: tx, ts

func (*PatRepository) Delete

func (_m *PatRepository) Delete(tx *gorm.DB, id uuid.UUID) error

Delete provides a mock function with given fields: tx, id

func (*PatRepository) EXPECT

func (_m *PatRepository) EXPECT() *PatRepository_Expecter

func (*PatRepository) GetByFingerprint

func (_m *PatRepository) GetByFingerprint(fingerprint string) (models.PAT, error)

GetByFingerprint provides a mock function with given fields: fingerprint

func (*PatRepository) GetDB

func (_m *PatRepository) GetDB(tx *gorm.DB) *gorm.DB

GetDB provides a mock function with given fields: tx

func (*PatRepository) GetUserIDByToken

func (_m *PatRepository) GetUserIDByToken(token string) (string, error)

GetUserIDByToken provides a mock function with given fields: token

func (*PatRepository) List

func (_m *PatRepository) List(ids []uuid.UUID) ([]models.PAT, error)

List provides a mock function with given fields: ids

func (*PatRepository) ListByUserID

func (_m *PatRepository) ListByUserID(userId string) ([]models.PAT, error)

ListByUserID provides a mock function with given fields: userId

func (*PatRepository) Read

func (_m *PatRepository) Read(id uuid.UUID) (models.PAT, error)

Read provides a mock function with given fields: id

func (*PatRepository) ReadByToken

func (_m *PatRepository) ReadByToken(token string) (models.PAT, error)

ReadByToken provides a mock function with given fields: token

func (*PatRepository) Save

func (_m *PatRepository) Save(tx *gorm.DB, t *models.PAT) error

Save provides a mock function with given fields: tx, t

func (*PatRepository) SaveBatch

func (_m *PatRepository) SaveBatch(tx *gorm.DB, ts []models.PAT) error

SaveBatch provides a mock function with given fields: tx, ts

func (*PatRepository) Transaction

func (_m *PatRepository) Transaction(_a0 func(*gorm.DB) error) error

Transaction provides a mock function with given fields: _a0

type PatRepository_Activate_Call added in v0.5.15

type PatRepository_Activate_Call struct {
	*mock.Call
}

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

func (*PatRepository_Activate_Call) Return added in v0.5.15

func (*PatRepository_Activate_Call) Run added in v0.5.15

func (*PatRepository_Activate_Call) RunAndReturn added in v0.5.15

type PatRepository_Begin_Call

type PatRepository_Begin_Call struct {
	*mock.Call
}

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

func (*PatRepository_Begin_Call) Return

func (*PatRepository_Begin_Call) Run

func (*PatRepository_Begin_Call) RunAndReturn

func (_c *PatRepository_Begin_Call) RunAndReturn(run func() *gorm.DB) *PatRepository_Begin_Call

type PatRepository_CreateBatch_Call

type PatRepository_CreateBatch_Call struct {
	*mock.Call
}

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

func (*PatRepository_CreateBatch_Call) Return

func (*PatRepository_CreateBatch_Call) Run

func (*PatRepository_CreateBatch_Call) RunAndReturn

type PatRepository_Create_Call

type PatRepository_Create_Call struct {
	*mock.Call
}

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

func (*PatRepository_Create_Call) Return

func (*PatRepository_Create_Call) Run

func (*PatRepository_Create_Call) RunAndReturn

func (_c *PatRepository_Create_Call) RunAndReturn(run func(*gorm.DB, *models.PAT) error) *PatRepository_Create_Call

type PatRepository_Delete_Call

type PatRepository_Delete_Call struct {
	*mock.Call
}

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

func (*PatRepository_Delete_Call) Return

func (*PatRepository_Delete_Call) Run

func (*PatRepository_Delete_Call) RunAndReturn

func (_c *PatRepository_Delete_Call) RunAndReturn(run func(*gorm.DB, uuid.UUID) error) *PatRepository_Delete_Call

type PatRepository_Expecter

type PatRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*PatRepository_Expecter) Activate added in v0.5.15

func (_e *PatRepository_Expecter) Activate(tx interface{}, id interface{}) *PatRepository_Activate_Call

Activate is a helper method to define mock.On call

  • tx *gorm.DB
  • id uuid.UUID

func (*PatRepository_Expecter) Begin

Begin is a helper method to define mock.On call

func (*PatRepository_Expecter) Create

func (_e *PatRepository_Expecter) Create(tx interface{}, t interface{}) *PatRepository_Create_Call

Create is a helper method to define mock.On call

  • tx *gorm.DB
  • t *models.PAT

func (*PatRepository_Expecter) CreateBatch

func (_e *PatRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *PatRepository_CreateBatch_Call

CreateBatch is a helper method to define mock.On call

  • tx *gorm.DB
  • ts []models.PAT

func (*PatRepository_Expecter) Delete

func (_e *PatRepository_Expecter) Delete(tx interface{}, id interface{}) *PatRepository_Delete_Call

Delete is a helper method to define mock.On call

  • tx *gorm.DB
  • id uuid.UUID

func (*PatRepository_Expecter) GetByFingerprint

func (_e *PatRepository_Expecter) GetByFingerprint(fingerprint interface{}) *PatRepository_GetByFingerprint_Call

GetByFingerprint is a helper method to define mock.On call

  • fingerprint string

func (*PatRepository_Expecter) GetDB

func (_e *PatRepository_Expecter) GetDB(tx interface{}) *PatRepository_GetDB_Call

GetDB is a helper method to define mock.On call

  • tx *gorm.DB

func (*PatRepository_Expecter) GetUserIDByToken

func (_e *PatRepository_Expecter) GetUserIDByToken(token interface{}) *PatRepository_GetUserIDByToken_Call

GetUserIDByToken is a helper method to define mock.On call

  • token string

func (*PatRepository_Expecter) List

func (_e *PatRepository_Expecter) List(ids interface{}) *PatRepository_List_Call

List is a helper method to define mock.On call

  • ids []uuid.UUID

func (*PatRepository_Expecter) ListByUserID

func (_e *PatRepository_Expecter) ListByUserID(userId interface{}) *PatRepository_ListByUserID_Call

ListByUserID is a helper method to define mock.On call

  • userId string

func (*PatRepository_Expecter) Read

func (_e *PatRepository_Expecter) Read(id interface{}) *PatRepository_Read_Call

Read is a helper method to define mock.On call

  • id uuid.UUID

func (*PatRepository_Expecter) ReadByToken

func (_e *PatRepository_Expecter) ReadByToken(token interface{}) *PatRepository_ReadByToken_Call

ReadByToken is a helper method to define mock.On call

  • token string

func (*PatRepository_Expecter) Save

func (_e *PatRepository_Expecter) Save(tx interface{}, t interface{}) *PatRepository_Save_Call

Save is a helper method to define mock.On call

  • tx *gorm.DB
  • t *models.PAT

func (*PatRepository_Expecter) SaveBatch

func (_e *PatRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *PatRepository_SaveBatch_Call

SaveBatch is a helper method to define mock.On call

  • tx *gorm.DB
  • ts []models.PAT

func (*PatRepository_Expecter) Transaction

func (_e *PatRepository_Expecter) Transaction(_a0 interface{}) *PatRepository_Transaction_Call

Transaction is a helper method to define mock.On call

  • _a0 func(*gorm.DB) error

type PatRepository_GetByFingerprint_Call

type PatRepository_GetByFingerprint_Call struct {
	*mock.Call
}

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

func (*PatRepository_GetByFingerprint_Call) Return

func (*PatRepository_GetByFingerprint_Call) Run

func (*PatRepository_GetByFingerprint_Call) RunAndReturn

type PatRepository_GetDB_Call

type PatRepository_GetDB_Call struct {
	*mock.Call
}

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

func (*PatRepository_GetDB_Call) Return

func (*PatRepository_GetDB_Call) Run

func (_c *PatRepository_GetDB_Call) Run(run func(tx *gorm.DB)) *PatRepository_GetDB_Call

func (*PatRepository_GetDB_Call) RunAndReturn

func (_c *PatRepository_GetDB_Call) RunAndReturn(run func(*gorm.DB) *gorm.DB) *PatRepository_GetDB_Call

type PatRepository_GetUserIDByToken_Call

type PatRepository_GetUserIDByToken_Call struct {
	*mock.Call
}

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

func (*PatRepository_GetUserIDByToken_Call) Return

func (*PatRepository_GetUserIDByToken_Call) Run

func (*PatRepository_GetUserIDByToken_Call) RunAndReturn

type PatRepository_ListByUserID_Call

type PatRepository_ListByUserID_Call struct {
	*mock.Call
}

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

func (*PatRepository_ListByUserID_Call) Return

func (*PatRepository_ListByUserID_Call) Run

func (*PatRepository_ListByUserID_Call) RunAndReturn

type PatRepository_List_Call

type PatRepository_List_Call struct {
	*mock.Call
}

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

func (*PatRepository_List_Call) Return

func (*PatRepository_List_Call) Run

func (_c *PatRepository_List_Call) Run(run func(ids []uuid.UUID)) *PatRepository_List_Call

func (*PatRepository_List_Call) RunAndReturn

func (_c *PatRepository_List_Call) RunAndReturn(run func([]uuid.UUID) ([]models.PAT, error)) *PatRepository_List_Call

type PatRepository_ReadByToken_Call

type PatRepository_ReadByToken_Call struct {
	*mock.Call
}

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

func (*PatRepository_ReadByToken_Call) Return

func (*PatRepository_ReadByToken_Call) Run

func (*PatRepository_ReadByToken_Call) RunAndReturn

type PatRepository_Read_Call

type PatRepository_Read_Call struct {
	*mock.Call
}

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

func (*PatRepository_Read_Call) Return

func (*PatRepository_Read_Call) Run

func (*PatRepository_Read_Call) RunAndReturn

func (_c *PatRepository_Read_Call) RunAndReturn(run func(uuid.UUID) (models.PAT, error)) *PatRepository_Read_Call

type PatRepository_SaveBatch_Call

type PatRepository_SaveBatch_Call struct {
	*mock.Call
}

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

func (*PatRepository_SaveBatch_Call) Return

func (*PatRepository_SaveBatch_Call) Run

func (*PatRepository_SaveBatch_Call) RunAndReturn

type PatRepository_Save_Call

type PatRepository_Save_Call struct {
	*mock.Call
}

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

func (*PatRepository_Save_Call) Return

func (*PatRepository_Save_Call) Run

func (_c *PatRepository_Save_Call) Run(run func(tx *gorm.DB, t *models.PAT)) *PatRepository_Save_Call

func (*PatRepository_Save_Call) RunAndReturn

func (_c *PatRepository_Save_Call) RunAndReturn(run func(*gorm.DB, *models.PAT) error) *PatRepository_Save_Call

type PatRepository_Transaction_Call

type PatRepository_Transaction_Call struct {
	*mock.Call
}

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

func (*PatRepository_Transaction_Call) Return

func (*PatRepository_Transaction_Call) Run

func (*PatRepository_Transaction_Call) RunAndReturn

type ProjectAssetRepository

type ProjectAssetRepository struct {
	mock.Mock
}

ProjectAssetRepository is an autogenerated mock type for the assetRepository type

func NewProjectAssetRepository

func NewProjectAssetRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProjectAssetRepository

NewProjectAssetRepository creates a new instance of ProjectAssetRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ProjectAssetRepository) EXPECT

func (*ProjectAssetRepository) GetByProjectID

func (_m *ProjectAssetRepository) GetByProjectID(projectID uuid.UUID) ([]models.Asset, error)

GetByProjectID provides a mock function with given fields: projectID

type ProjectAssetRepository_Expecter

type ProjectAssetRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*ProjectAssetRepository_Expecter) GetByProjectID

func (_e *ProjectAssetRepository_Expecter) GetByProjectID(projectID interface{}) *ProjectAssetRepository_GetByProjectID_Call

GetByProjectID is a helper method to define mock.On call

  • projectID uuid.UUID

type ProjectAssetRepository_GetByProjectID_Call

type ProjectAssetRepository_GetByProjectID_Call struct {
	*mock.Call
}

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

func (*ProjectAssetRepository_GetByProjectID_Call) Return

func (*ProjectAssetRepository_GetByProjectID_Call) Run

func (*ProjectAssetRepository_GetByProjectID_Call) RunAndReturn

type ProjectProjectRepository

type ProjectProjectRepository struct {
	mock.Mock
}

ProjectProjectRepository is an autogenerated mock type for the projectRepository type

func NewProjectProjectRepository

func NewProjectProjectRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProjectProjectRepository

NewProjectProjectRepository creates a new instance of ProjectProjectRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ProjectProjectRepository) Activate added in v0.5.15

func (_m *ProjectProjectRepository) Activate(tx *gorm.DB, projectID uuid.UUID) error

Activate provides a mock function with given fields: tx, projectID

func (*ProjectProjectRepository) Create

func (_m *ProjectProjectRepository) Create(tx *gorm.DB, _a1 *models.Project) error

Create provides a mock function with given fields: tx, _a1

func (*ProjectProjectRepository) Delete

func (_m *ProjectProjectRepository) Delete(tx *gorm.DB, projectID uuid.UUID) error

Delete provides a mock function with given fields: tx, projectID

func (*ProjectProjectRepository) EXPECT

func (*ProjectProjectRepository) List

func (_m *ProjectProjectRepository) List(projectIds []uuid.UUID, parentId *uuid.UUID, orgId uuid.UUID) ([]models.Project, error)

List provides a mock function with given fields: projectIds, parentId, orgId

func (*ProjectProjectRepository) ReadBySlug

func (_m *ProjectProjectRepository) ReadBySlug(organizationID uuid.UUID, slug string) (models.Project, error)

ReadBySlug provides a mock function with given fields: organizationID, slug

func (*ProjectProjectRepository) ReadBySlugUnscoped added in v0.5.15

func (_m *ProjectProjectRepository) ReadBySlugUnscoped(organizationId uuid.UUID, slug string) (models.Project, error)

ReadBySlugUnscoped provides a mock function with given fields: organizationId, slug

func (*ProjectProjectRepository) Update added in v0.5.1

func (_m *ProjectProjectRepository) Update(tx *gorm.DB, _a1 *models.Project) error

Update provides a mock function with given fields: tx, _a1

type ProjectProjectRepository_Activate_Call added in v0.5.15

type ProjectProjectRepository_Activate_Call struct {
	*mock.Call
}

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

func (*ProjectProjectRepository_Activate_Call) Return added in v0.5.15

func (*ProjectProjectRepository_Activate_Call) Run added in v0.5.15

func (*ProjectProjectRepository_Activate_Call) RunAndReturn added in v0.5.15

type ProjectProjectRepository_Create_Call

type ProjectProjectRepository_Create_Call struct {
	*mock.Call
}

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

func (*ProjectProjectRepository_Create_Call) Return

func (*ProjectProjectRepository_Create_Call) Run

func (*ProjectProjectRepository_Create_Call) RunAndReturn

type ProjectProjectRepository_Delete_Call

type ProjectProjectRepository_Delete_Call struct {
	*mock.Call
}

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

func (*ProjectProjectRepository_Delete_Call) Return

func (*ProjectProjectRepository_Delete_Call) Run

func (*ProjectProjectRepository_Delete_Call) RunAndReturn

type ProjectProjectRepository_Expecter

type ProjectProjectRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*ProjectProjectRepository_Expecter) Activate added in v0.5.15

func (_e *ProjectProjectRepository_Expecter) Activate(tx interface{}, projectID interface{}) *ProjectProjectRepository_Activate_Call

Activate is a helper method to define mock.On call

  • tx *gorm.DB
  • projectID uuid.UUID

func (*ProjectProjectRepository_Expecter) Create

func (_e *ProjectProjectRepository_Expecter) Create(tx interface{}, _a1 interface{}) *ProjectProjectRepository_Create_Call

Create is a helper method to define mock.On call

  • tx *gorm.DB
  • _a1 *models.Project

func (*ProjectProjectRepository_Expecter) Delete

func (_e *ProjectProjectRepository_Expecter) Delete(tx interface{}, projectID interface{}) *ProjectProjectRepository_Delete_Call

Delete is a helper method to define mock.On call

  • tx *gorm.DB
  • projectID uuid.UUID

func (*ProjectProjectRepository_Expecter) List

func (_e *ProjectProjectRepository_Expecter) List(projectIds interface{}, parentId interface{}, orgId interface{}) *ProjectProjectRepository_List_Call

List is a helper method to define mock.On call

  • projectIds []uuid.UUID
  • parentId *uuid.UUID
  • orgId uuid.UUID

func (*ProjectProjectRepository_Expecter) ReadBySlug

func (_e *ProjectProjectRepository_Expecter) ReadBySlug(organizationID interface{}, slug interface{}) *ProjectProjectRepository_ReadBySlug_Call

ReadBySlug is a helper method to define mock.On call

  • organizationID uuid.UUID
  • slug string

func (*ProjectProjectRepository_Expecter) ReadBySlugUnscoped added in v0.5.15

func (_e *ProjectProjectRepository_Expecter) ReadBySlugUnscoped(organizationId interface{}, slug interface{}) *ProjectProjectRepository_ReadBySlugUnscoped_Call

ReadBySlugUnscoped is a helper method to define mock.On call

  • organizationId uuid.UUID
  • slug string

func (*ProjectProjectRepository_Expecter) Update added in v0.5.1

func (_e *ProjectProjectRepository_Expecter) Update(tx interface{}, _a1 interface{}) *ProjectProjectRepository_Update_Call

Update is a helper method to define mock.On call

  • tx *gorm.DB
  • _a1 *models.Project

type ProjectProjectRepository_List_Call

type ProjectProjectRepository_List_Call struct {
	*mock.Call
}

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

func (*ProjectProjectRepository_List_Call) Return

func (*ProjectProjectRepository_List_Call) Run

func (_c *ProjectProjectRepository_List_Call) Run(run func(projectIds []uuid.UUID, parentId *uuid.UUID, orgId uuid.UUID)) *ProjectProjectRepository_List_Call

func (*ProjectProjectRepository_List_Call) RunAndReturn

type ProjectProjectRepository_ReadBySlugUnscoped_Call added in v0.5.15

type ProjectProjectRepository_ReadBySlugUnscoped_Call struct {
	*mock.Call
}

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

func (*ProjectProjectRepository_ReadBySlugUnscoped_Call) Return added in v0.5.15

func (*ProjectProjectRepository_ReadBySlugUnscoped_Call) Run added in v0.5.15

func (*ProjectProjectRepository_ReadBySlugUnscoped_Call) RunAndReturn added in v0.5.15

type ProjectProjectRepository_ReadBySlug_Call

type ProjectProjectRepository_ReadBySlug_Call struct {
	*mock.Call
}

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

func (*ProjectProjectRepository_ReadBySlug_Call) Return

func (*ProjectProjectRepository_ReadBySlug_Call) Run

func (*ProjectProjectRepository_ReadBySlug_Call) RunAndReturn

type ProjectProjectRepository_Update_Call added in v0.5.1

type ProjectProjectRepository_Update_Call struct {
	*mock.Call
}

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

func (*ProjectProjectRepository_Update_Call) Return added in v0.5.1

func (*ProjectProjectRepository_Update_Call) Run added in v0.5.1

func (*ProjectProjectRepository_Update_Call) RunAndReturn added in v0.5.1

type ProjectProjectService added in v0.5.14

type ProjectProjectService struct {
	mock.Mock
}

ProjectProjectService is an autogenerated mock type for the projectService type

func NewProjectProjectService added in v0.5.14

func NewProjectProjectService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProjectProjectService

NewProjectProjectService creates a new instance of ProjectProjectService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ProjectProjectService) EXPECT added in v0.5.14

func (*ProjectProjectService) ListAllowedProjects added in v0.5.14

func (_m *ProjectProjectService) ListAllowedProjects(c echo.Context) ([]models.Project, error)

ListAllowedProjects provides a mock function with given fields: c

type ProjectProjectService_Expecter added in v0.5.14

type ProjectProjectService_Expecter struct {
	// contains filtered or unexported fields
}

func (*ProjectProjectService_Expecter) ListAllowedProjects added in v0.5.14

ListAllowedProjects is a helper method to define mock.On call

  • c echo.Context

type ProjectProjectService_ListAllowedProjects_Call added in v0.5.14

type ProjectProjectService_ListAllowedProjects_Call struct {
	*mock.Call
}

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

func (*ProjectProjectService_ListAllowedProjects_Call) Return added in v0.5.14

func (*ProjectProjectService_ListAllowedProjects_Call) Run added in v0.5.14

func (*ProjectProjectService_ListAllowedProjects_Call) RunAndReturn added in v0.5.14

type RiskCvssInterface

type RiskCvssInterface struct {
	mock.Mock
}

RiskCvssInterface is an autogenerated mock type for the cvssInterface type

func NewRiskCvssInterface

func NewRiskCvssInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *RiskCvssInterface

NewRiskCvssInterface creates a new instance of RiskCvssInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RiskCvssInterface) EXPECT

func (*RiskCvssInterface) EnvironmentalScore

func (_m *RiskCvssInterface) EnvironmentalScore() float64

EnvironmentalScore provides a mock function with no fields

func (*RiskCvssInterface) Get

func (_m *RiskCvssInterface) Get(key string) (string, error)

Get provides a mock function with given fields: key

func (*RiskCvssInterface) Set

func (_m *RiskCvssInterface) Set(key string, value string) error

Set provides a mock function with given fields: key, value

func (*RiskCvssInterface) TemporalScore

func (_m *RiskCvssInterface) TemporalScore() float64

TemporalScore provides a mock function with no fields

func (*RiskCvssInterface) Vector

func (_m *RiskCvssInterface) Vector() string

Vector provides a mock function with no fields

type RiskCvssInterface_EnvironmentalScore_Call

type RiskCvssInterface_EnvironmentalScore_Call struct {
	*mock.Call
}

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

func (*RiskCvssInterface_EnvironmentalScore_Call) Return

func (*RiskCvssInterface_EnvironmentalScore_Call) Run

func (*RiskCvssInterface_EnvironmentalScore_Call) RunAndReturn

type RiskCvssInterface_Expecter

type RiskCvssInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*RiskCvssInterface_Expecter) EnvironmentalScore

EnvironmentalScore is a helper method to define mock.On call

func (*RiskCvssInterface_Expecter) Get

func (_e *RiskCvssInterface_Expecter) Get(key interface{}) *RiskCvssInterface_Get_Call

Get is a helper method to define mock.On call

  • key string

func (*RiskCvssInterface_Expecter) Set

func (_e *RiskCvssInterface_Expecter) Set(key interface{}, value interface{}) *RiskCvssInterface_Set_Call

Set is a helper method to define mock.On call

  • key string
  • value string

func (*RiskCvssInterface_Expecter) TemporalScore

TemporalScore is a helper method to define mock.On call

func (*RiskCvssInterface_Expecter) Vector

Vector is a helper method to define mock.On call

type RiskCvssInterface_Get_Call

type RiskCvssInterface_Get_Call struct {
	*mock.Call
}

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

func (*RiskCvssInterface_Get_Call) Return

func (*RiskCvssInterface_Get_Call) Run

func (*RiskCvssInterface_Get_Call) RunAndReturn

type RiskCvssInterface_Set_Call

type RiskCvssInterface_Set_Call struct {
	*mock.Call
}

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

func (*RiskCvssInterface_Set_Call) Return

func (*RiskCvssInterface_Set_Call) Run

func (_c *RiskCvssInterface_Set_Call) Run(run func(key string, value string)) *RiskCvssInterface_Set_Call

func (*RiskCvssInterface_Set_Call) RunAndReturn

type RiskCvssInterface_TemporalScore_Call

type RiskCvssInterface_TemporalScore_Call struct {
	*mock.Call
}

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

func (*RiskCvssInterface_TemporalScore_Call) Return

func (*RiskCvssInterface_TemporalScore_Call) Run

func (*RiskCvssInterface_TemporalScore_Call) RunAndReturn

type RiskCvssInterface_Vector_Call

type RiskCvssInterface_Vector_Call struct {
	*mock.Call
}

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

func (*RiskCvssInterface_Vector_Call) Return

func (*RiskCvssInterface_Vector_Call) Run

func (*RiskCvssInterface_Vector_Call) RunAndReturn

type ScanAssetRepository added in v0.5.14

type ScanAssetRepository struct {
	mock.Mock
}

ScanAssetRepository is an autogenerated mock type for the assetRepository type

func NewScanAssetRepository added in v0.5.14

func NewScanAssetRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *ScanAssetRepository

NewScanAssetRepository creates a new instance of ScanAssetRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ScanAssetRepository) EXPECT added in v0.5.14

func (*ScanAssetRepository) GetAllAssetsFromDB added in v0.5.14

func (_m *ScanAssetRepository) GetAllAssetsFromDB() ([]models.Asset, error)

GetAllAssetsFromDB provides a mock function with no fields

func (*ScanAssetRepository) Save added in v0.5.14

func (_m *ScanAssetRepository) Save(tx *gorm.DB, asset *models.Asset) error

Save provides a mock function with given fields: tx, asset

type ScanAssetRepository_Expecter added in v0.5.14

type ScanAssetRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*ScanAssetRepository_Expecter) GetAllAssetsFromDB added in v0.5.14

GetAllAssetsFromDB is a helper method to define mock.On call

func (*ScanAssetRepository_Expecter) Save added in v0.5.14

func (_e *ScanAssetRepository_Expecter) Save(tx interface{}, asset interface{}) *ScanAssetRepository_Save_Call

Save is a helper method to define mock.On call

  • tx *gorm.DB
  • asset *models.Asset

type ScanAssetRepository_GetAllAssetsFromDB_Call added in v0.5.14

type ScanAssetRepository_GetAllAssetsFromDB_Call struct {
	*mock.Call
}

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

func (*ScanAssetRepository_GetAllAssetsFromDB_Call) Return added in v0.5.14

func (*ScanAssetRepository_GetAllAssetsFromDB_Call) Run added in v0.5.14

func (*ScanAssetRepository_GetAllAssetsFromDB_Call) RunAndReturn added in v0.5.14

type ScanAssetRepository_Save_Call added in v0.5.14

type ScanAssetRepository_Save_Call struct {
	*mock.Call
}

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

func (*ScanAssetRepository_Save_Call) Return added in v0.5.14

func (*ScanAssetRepository_Save_Call) Run added in v0.5.14

func (*ScanAssetRepository_Save_Call) RunAndReturn added in v0.5.14

type ScanAssetService

type ScanAssetService struct {
	mock.Mock
}

ScanAssetService is an autogenerated mock type for the assetService type

func NewScanAssetService

func NewScanAssetService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ScanAssetService

NewScanAssetService creates a new instance of ScanAssetService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ScanAssetService) EXPECT

func (*ScanAssetService) HandleScanResult

func (_m *ScanAssetService) HandleScanResult(asset models.Asset, vulns []models.VulnInPackage, scanType string, version string, scannerID string, userID string, doRiskManagement bool) (int, int, []models.Flaw, error)

HandleScanResult provides a mock function with given fields: asset, vulns, scanType, version, scannerID, userID, doRiskManagement

func (*ScanAssetService) UpdateSBOM

func (_m *ScanAssetService) UpdateSBOM(asset models.Asset, scanType string, version string, sbom normalize.SBOM) error

UpdateSBOM provides a mock function with given fields: asset, scanType, version, sbom

type ScanAssetService_Expecter

type ScanAssetService_Expecter struct {
	// contains filtered or unexported fields
}

func (*ScanAssetService_Expecter) HandleScanResult

func (_e *ScanAssetService_Expecter) HandleScanResult(asset interface{}, vulns interface{}, scanType interface{}, version interface{}, scannerID interface{}, userID interface{}, doRiskManagement interface{}) *ScanAssetService_HandleScanResult_Call

HandleScanResult is a helper method to define mock.On call

  • asset models.Asset
  • vulns []models.VulnInPackage
  • scanType string
  • version string
  • scannerID string
  • userID string
  • doRiskManagement bool

func (*ScanAssetService_Expecter) UpdateSBOM

func (_e *ScanAssetService_Expecter) UpdateSBOM(asset interface{}, scanType interface{}, version interface{}, sbom interface{}) *ScanAssetService_UpdateSBOM_Call

UpdateSBOM is a helper method to define mock.On call

  • asset models.Asset
  • scanType string
  • version string
  • sbom normalize.SBOM

type ScanAssetService_HandleScanResult_Call

type ScanAssetService_HandleScanResult_Call struct {
	*mock.Call
}

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

func (*ScanAssetService_HandleScanResult_Call) Return

func (_c *ScanAssetService_HandleScanResult_Call) Return(amountOpened int, amountClose int, newState []models.Flaw, err error) *ScanAssetService_HandleScanResult_Call

func (*ScanAssetService_HandleScanResult_Call) Run

func (_c *ScanAssetService_HandleScanResult_Call) Run(run func(asset models.Asset, vulns []models.VulnInPackage, scanType string, version string, scannerID string, userID string, doRiskManagement bool)) *ScanAssetService_HandleScanResult_Call

func (*ScanAssetService_HandleScanResult_Call) RunAndReturn

type ScanAssetService_UpdateSBOM_Call

type ScanAssetService_UpdateSBOM_Call struct {
	*mock.Call
}

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

func (*ScanAssetService_UpdateSBOM_Call) Return

func (*ScanAssetService_UpdateSBOM_Call) Run

func (_c *ScanAssetService_UpdateSBOM_Call) Run(run func(asset models.Asset, scanType string, version string, sbom normalize.SBOM)) *ScanAssetService_UpdateSBOM_Call

func (*ScanAssetService_UpdateSBOM_Call) RunAndReturn

type ScanComparer

type ScanComparer struct {
	mock.Mock
}

ScanComparer is an autogenerated mock type for the comparer type

func NewScanComparer

func NewScanComparer(t interface {
	mock.TestingT
	Cleanup(func())
}) *ScanComparer

NewScanComparer creates a new instance of ScanComparer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ScanComparer) EXPECT

func (_m *ScanComparer) EXPECT() *ScanComparer_Expecter

func (*ScanComparer) GetVulns

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

GetVulns provides a mock function with given fields: purl, notASemverVersion, componentType

type ScanComparer_Expecter

type ScanComparer_Expecter struct {
	// contains filtered or unexported fields
}

func (*ScanComparer_Expecter) GetVulns

func (_e *ScanComparer_Expecter) GetVulns(purl interface{}, notASemverVersion interface{}, componentType interface{}) *ScanComparer_GetVulns_Call

GetVulns is a helper method to define mock.On call

  • purl string
  • notASemverVersion string
  • componentType string

type ScanComparer_GetVulns_Call

type ScanComparer_GetVulns_Call struct {
	*mock.Call
}

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

func (*ScanComparer_GetVulns_Call) Return

func (*ScanComparer_GetVulns_Call) Run

func (_c *ScanComparer_GetVulns_Call) Run(run func(purl string, notASemverVersion string, componentType string)) *ScanComparer_GetVulns_Call

func (*ScanComparer_GetVulns_Call) RunAndReturn

type ScanComponentRepository

type ScanComponentRepository struct {
	mock.Mock
}

ScanComponentRepository is an autogenerated mock type for the componentRepository type

func NewScanComponentRepository

func NewScanComponentRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *ScanComponentRepository

NewScanComponentRepository creates a new instance of ScanComponentRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ScanComponentRepository) EXPECT

func (*ScanComponentRepository) LoadComponents added in v0.5.14

func (_m *ScanComponentRepository) LoadComponents(tx *gorm.DB, asset models.Asset, scanType string, version string) ([]models.ComponentDependency, error)

LoadComponents provides a mock function with given fields: tx, asset, scanType, version

func (*ScanComponentRepository) SaveBatch

func (_m *ScanComponentRepository) SaveBatch(tx *gorm.DB, components []models.Component) error

SaveBatch provides a mock function with given fields: tx, components

type ScanComponentRepository_Expecter

type ScanComponentRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*ScanComponentRepository_Expecter) LoadComponents added in v0.5.14

func (_e *ScanComponentRepository_Expecter) LoadComponents(tx interface{}, asset interface{}, scanType interface{}, version interface{}) *ScanComponentRepository_LoadComponents_Call

LoadComponents is a helper method to define mock.On call

  • tx *gorm.DB
  • asset models.Asset
  • scanType string
  • version string

func (*ScanComponentRepository_Expecter) SaveBatch

func (_e *ScanComponentRepository_Expecter) SaveBatch(tx interface{}, components interface{}) *ScanComponentRepository_SaveBatch_Call

SaveBatch is a helper method to define mock.On call

  • tx *gorm.DB
  • components []models.Component

type ScanComponentRepository_LoadComponents_Call added in v0.5.14

type ScanComponentRepository_LoadComponents_Call struct {
	*mock.Call
}

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

func (*ScanComponentRepository_LoadComponents_Call) Return added in v0.5.14

func (*ScanComponentRepository_LoadComponents_Call) Run added in v0.5.14

func (*ScanComponentRepository_LoadComponents_Call) RunAndReturn added in v0.5.14

type ScanComponentRepository_SaveBatch_Call

type ScanComponentRepository_SaveBatch_Call struct {
	*mock.Call
}

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

func (*ScanComponentRepository_SaveBatch_Call) Return

func (*ScanComponentRepository_SaveBatch_Call) Run

func (*ScanComponentRepository_SaveBatch_Call) RunAndReturn

type ScanCveRepository

type ScanCveRepository struct {
	mock.Mock
}

ScanCveRepository is an autogenerated mock type for the cveRepository type

func NewScanCveRepository

func NewScanCveRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *ScanCveRepository

NewScanCveRepository creates a new instance of ScanCveRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ScanCveRepository) EXPECT

func (*ScanCveRepository) FindAll

func (_m *ScanCveRepository) FindAll(cveIDs []string) ([]models.CVE, error)

FindAll provides a mock function with given fields: cveIDs

type ScanCveRepository_Expecter

type ScanCveRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*ScanCveRepository_Expecter) FindAll

func (_e *ScanCveRepository_Expecter) FindAll(cveIDs interface{}) *ScanCveRepository_FindAll_Call

FindAll is a helper method to define mock.On call

  • cveIDs []string

type ScanCveRepository_FindAll_Call

type ScanCveRepository_FindAll_Call struct {
	*mock.Call
}

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

func (*ScanCveRepository_FindAll_Call) Return

func (*ScanCveRepository_FindAll_Call) Run

func (*ScanCveRepository_FindAll_Call) RunAndReturn

type ScanStatisticsService added in v0.5.14

type ScanStatisticsService struct {
	mock.Mock
}

ScanStatisticsService is an autogenerated mock type for the statisticsService type

func NewScanStatisticsService added in v0.5.14

func NewScanStatisticsService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ScanStatisticsService

NewScanStatisticsService creates a new instance of ScanStatisticsService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ScanStatisticsService) EXPECT added in v0.5.14

func (*ScanStatisticsService) UpdateAssetRiskAggregation added in v0.5.14

func (_m *ScanStatisticsService) UpdateAssetRiskAggregation(assetID uuid.UUID, begin time.Time, end time.Time, updateProject bool) error

UpdateAssetRiskAggregation provides a mock function with given fields: assetID, begin, end, updateProject

type ScanStatisticsService_Expecter added in v0.5.14

type ScanStatisticsService_Expecter struct {
	// contains filtered or unexported fields
}

func (*ScanStatisticsService_Expecter) UpdateAssetRiskAggregation added in v0.5.14

func (_e *ScanStatisticsService_Expecter) UpdateAssetRiskAggregation(assetID interface{}, begin interface{}, end interface{}, updateProject interface{}) *ScanStatisticsService_UpdateAssetRiskAggregation_Call

UpdateAssetRiskAggregation is a helper method to define mock.On call

  • assetID uuid.UUID
  • begin time.Time
  • end time.Time
  • updateProject bool

type ScanStatisticsService_UpdateAssetRiskAggregation_Call added in v0.5.14

type ScanStatisticsService_UpdateAssetRiskAggregation_Call struct {
	*mock.Call
}

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

func (*ScanStatisticsService_UpdateAssetRiskAggregation_Call) Return added in v0.5.14

func (*ScanStatisticsService_UpdateAssetRiskAggregation_Call) Run added in v0.5.14

func (*ScanStatisticsService_UpdateAssetRiskAggregation_Call) RunAndReturn added in v0.5.14

type StatisticsAssetRepository added in v0.5.14

type StatisticsAssetRepository struct {
	mock.Mock
}

StatisticsAssetRepository is an autogenerated mock type for the assetRepository type

func NewStatisticsAssetRepository added in v0.5.14

func NewStatisticsAssetRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *StatisticsAssetRepository

NewStatisticsAssetRepository creates a new instance of StatisticsAssetRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*StatisticsAssetRepository) EXPECT added in v0.5.14

func (*StatisticsAssetRepository) GetAllAssetsFromDB added in v0.5.14

func (_m *StatisticsAssetRepository) GetAllAssetsFromDB() ([]models.Asset, error)

GetAllAssetsFromDB provides a mock function with no fields

func (*StatisticsAssetRepository) GetByProjectID added in v0.5.14

func (_m *StatisticsAssetRepository) GetByProjectID(projectID uuid.UUID) ([]models.Asset, error)

GetByProjectID provides a mock function with given fields: projectID

func (*StatisticsAssetRepository) Save added in v0.5.14

func (_m *StatisticsAssetRepository) Save(tx *gorm.DB, asset *models.Asset) error

Save provides a mock function with given fields: tx, asset

type StatisticsAssetRepository_Expecter added in v0.5.14

type StatisticsAssetRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*StatisticsAssetRepository_Expecter) GetAllAssetsFromDB added in v0.5.14

GetAllAssetsFromDB is a helper method to define mock.On call

func (*StatisticsAssetRepository_Expecter) GetByProjectID added in v0.5.14

func (_e *StatisticsAssetRepository_Expecter) GetByProjectID(projectID interface{}) *StatisticsAssetRepository_GetByProjectID_Call

GetByProjectID is a helper method to define mock.On call

  • projectID uuid.UUID

func (*StatisticsAssetRepository_Expecter) Save added in v0.5.14

func (_e *StatisticsAssetRepository_Expecter) Save(tx interface{}, asset interface{}) *StatisticsAssetRepository_Save_Call

Save is a helper method to define mock.On call

  • tx *gorm.DB
  • asset *models.Asset

type StatisticsAssetRepository_GetAllAssetsFromDB_Call added in v0.5.14

type StatisticsAssetRepository_GetAllAssetsFromDB_Call struct {
	*mock.Call
}

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

func (*StatisticsAssetRepository_GetAllAssetsFromDB_Call) Return added in v0.5.14

func (*StatisticsAssetRepository_GetAllAssetsFromDB_Call) Run added in v0.5.14

func (*StatisticsAssetRepository_GetAllAssetsFromDB_Call) RunAndReturn added in v0.5.14

type StatisticsAssetRepository_GetByProjectID_Call added in v0.5.14

type StatisticsAssetRepository_GetByProjectID_Call struct {
	*mock.Call
}

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

func (*StatisticsAssetRepository_GetByProjectID_Call) Return added in v0.5.14

func (*StatisticsAssetRepository_GetByProjectID_Call) Run added in v0.5.14

func (*StatisticsAssetRepository_GetByProjectID_Call) RunAndReturn added in v0.5.14

type StatisticsAssetRepository_Save_Call added in v0.5.14

type StatisticsAssetRepository_Save_Call struct {
	*mock.Call
}

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

func (*StatisticsAssetRepository_Save_Call) Return added in v0.5.14

func (*StatisticsAssetRepository_Save_Call) Run added in v0.5.14

func (*StatisticsAssetRepository_Save_Call) RunAndReturn added in v0.5.14

type StatisticsAssetRiskHistoryRepository added in v0.5.14

type StatisticsAssetRiskHistoryRepository struct {
	mock.Mock
}

StatisticsAssetRiskHistoryRepository is an autogenerated mock type for the assetRiskHistoryRepository type

func NewStatisticsAssetRiskHistoryRepository added in v0.5.14

func NewStatisticsAssetRiskHistoryRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *StatisticsAssetRiskHistoryRepository

NewStatisticsAssetRiskHistoryRepository creates a new instance of StatisticsAssetRiskHistoryRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*StatisticsAssetRiskHistoryRepository) EXPECT added in v0.5.14

func (*StatisticsAssetRiskHistoryRepository) GetRiskHistory added in v0.5.14

func (_m *StatisticsAssetRiskHistoryRepository) GetRiskHistory(assetId uuid.UUID, start time.Time, end time.Time) ([]models.AssetRiskHistory, error)

GetRiskHistory provides a mock function with given fields: assetId, start, end

func (*StatisticsAssetRiskHistoryRepository) GetRiskHistoryByProject added in v0.5.14

func (_m *StatisticsAssetRiskHistoryRepository) GetRiskHistoryByProject(projectId uuid.UUID, day time.Time) ([]models.AssetRiskHistory, error)

GetRiskHistoryByProject provides a mock function with given fields: projectId, day

func (*StatisticsAssetRiskHistoryRepository) UpdateRiskAggregation added in v0.5.14

func (_m *StatisticsAssetRiskHistoryRepository) UpdateRiskAggregation(assetRisk *models.AssetRiskHistory) error

UpdateRiskAggregation provides a mock function with given fields: assetRisk

type StatisticsAssetRiskHistoryRepository_Expecter added in v0.5.14

type StatisticsAssetRiskHistoryRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*StatisticsAssetRiskHistoryRepository_Expecter) GetRiskHistory added in v0.5.14

func (_e *StatisticsAssetRiskHistoryRepository_Expecter) GetRiskHistory(assetId interface{}, start interface{}, end interface{}) *StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call

GetRiskHistory is a helper method to define mock.On call

  • assetId uuid.UUID
  • start time.Time
  • end time.Time

func (*StatisticsAssetRiskHistoryRepository_Expecter) GetRiskHistoryByProject added in v0.5.14

func (_e *StatisticsAssetRiskHistoryRepository_Expecter) GetRiskHistoryByProject(projectId interface{}, day interface{}) *StatisticsAssetRiskHistoryRepository_GetRiskHistoryByProject_Call

GetRiskHistoryByProject is a helper method to define mock.On call

  • projectId uuid.UUID
  • day time.Time

func (*StatisticsAssetRiskHistoryRepository_Expecter) UpdateRiskAggregation added in v0.5.14

UpdateRiskAggregation is a helper method to define mock.On call

  • assetRisk *models.AssetRiskHistory

type StatisticsAssetRiskHistoryRepository_GetRiskHistoryByProject_Call added in v0.5.14

type StatisticsAssetRiskHistoryRepository_GetRiskHistoryByProject_Call struct {
	*mock.Call
}

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

func (*StatisticsAssetRiskHistoryRepository_GetRiskHistoryByProject_Call) Return added in v0.5.14

func (*StatisticsAssetRiskHistoryRepository_GetRiskHistoryByProject_Call) Run added in v0.5.14

func (*StatisticsAssetRiskHistoryRepository_GetRiskHistoryByProject_Call) RunAndReturn added in v0.5.14

type StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call added in v0.5.14

type StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call struct {
	*mock.Call
}

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

func (*StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call) Return added in v0.5.14

func (*StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call) Run added in v0.5.14

func (*StatisticsAssetRiskHistoryRepository_GetRiskHistory_Call) RunAndReturn added in v0.5.14

type StatisticsAssetRiskHistoryRepository_UpdateRiskAggregation_Call added in v0.5.14

type StatisticsAssetRiskHistoryRepository_UpdateRiskAggregation_Call struct {
	*mock.Call
}

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

func (*StatisticsAssetRiskHistoryRepository_UpdateRiskAggregation_Call) Return added in v0.5.14

func (*StatisticsAssetRiskHistoryRepository_UpdateRiskAggregation_Call) Run added in v0.5.14

func (*StatisticsAssetRiskHistoryRepository_UpdateRiskAggregation_Call) RunAndReturn added in v0.5.14

type StatisticsAssetToProjectIdConverter added in v0.5.14

type StatisticsAssetToProjectIdConverter struct {
	mock.Mock
}

StatisticsAssetToProjectIdConverter is an autogenerated mock type for the assetToProjectIdConverter type

func NewStatisticsAssetToProjectIdConverter added in v0.5.14

func NewStatisticsAssetToProjectIdConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *StatisticsAssetToProjectIdConverter

NewStatisticsAssetToProjectIdConverter creates a new instance of StatisticsAssetToProjectIdConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*StatisticsAssetToProjectIdConverter) EXPECT added in v0.5.14

func (*StatisticsAssetToProjectIdConverter) GetProjectIdByAssetID added in v0.5.14

func (_m *StatisticsAssetToProjectIdConverter) GetProjectIdByAssetID(assetID uuid.UUID) (uuid.UUID, error)

GetProjectIdByAssetID provides a mock function with given fields: assetID

type StatisticsAssetToProjectIdConverter_Expecter added in v0.5.14

type StatisticsAssetToProjectIdConverter_Expecter struct {
	// contains filtered or unexported fields
}

func (*StatisticsAssetToProjectIdConverter_Expecter) GetProjectIdByAssetID added in v0.5.14

GetProjectIdByAssetID is a helper method to define mock.On call

  • assetID uuid.UUID

type StatisticsAssetToProjectIdConverter_GetProjectIdByAssetID_Call added in v0.5.14

type StatisticsAssetToProjectIdConverter_GetProjectIdByAssetID_Call struct {
	*mock.Call
}

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

func (*StatisticsAssetToProjectIdConverter_GetProjectIdByAssetID_Call) Return added in v0.5.14

func (*StatisticsAssetToProjectIdConverter_GetProjectIdByAssetID_Call) Run added in v0.5.14

func (*StatisticsAssetToProjectIdConverter_GetProjectIdByAssetID_Call) RunAndReturn added in v0.5.14

type StatisticsComponentRepository added in v0.5.14

type StatisticsComponentRepository struct {
	mock.Mock
}

StatisticsComponentRepository is an autogenerated mock type for the componentRepository type

func NewStatisticsComponentRepository added in v0.5.14

func NewStatisticsComponentRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *StatisticsComponentRepository

NewStatisticsComponentRepository creates a new instance of StatisticsComponentRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*StatisticsComponentRepository) EXPECT added in v0.5.14

func (*StatisticsComponentRepository) GetDependencyCountPerScanType added in v0.5.14

func (_m *StatisticsComponentRepository) GetDependencyCountPerScanType(assetID uuid.UUID) (map[string]int, error)

GetDependencyCountPerScanType provides a mock function with given fields: assetID

type StatisticsComponentRepository_Expecter added in v0.5.14

type StatisticsComponentRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*StatisticsComponentRepository_Expecter) GetDependencyCountPerScanType added in v0.5.14

GetDependencyCountPerScanType is a helper method to define mock.On call

  • assetID uuid.UUID

type StatisticsComponentRepository_GetDependencyCountPerScanType_Call added in v0.5.14

type StatisticsComponentRepository_GetDependencyCountPerScanType_Call struct {
	*mock.Call
}

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

func (*StatisticsComponentRepository_GetDependencyCountPerScanType_Call) Return added in v0.5.14

func (*StatisticsComponentRepository_GetDependencyCountPerScanType_Call) Run added in v0.5.14

func (*StatisticsComponentRepository_GetDependencyCountPerScanType_Call) RunAndReturn added in v0.5.14

type StatisticsFlawRepository added in v0.5.14

type StatisticsFlawRepository struct {
	mock.Mock
}

StatisticsFlawRepository is an autogenerated mock type for the flawRepository type

func NewStatisticsFlawRepository added in v0.5.14

func NewStatisticsFlawRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *StatisticsFlawRepository

NewStatisticsFlawRepository creates a new instance of StatisticsFlawRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*StatisticsFlawRepository) EXPECT added in v0.5.14

func (*StatisticsFlawRepository) GetAllFlawsByAssetID added in v0.5.14

func (_m *StatisticsFlawRepository) GetAllFlawsByAssetID(tx *gorm.DB, assetID uuid.UUID) ([]models.Flaw, error)

GetAllFlawsByAssetID provides a mock function with given fields: tx, assetID

func (*StatisticsFlawRepository) GetAllOpenFlawsByAssetID added in v0.5.14

func (_m *StatisticsFlawRepository) GetAllOpenFlawsByAssetID(tx *gorm.DB, assetID uuid.UUID) ([]models.Flaw, error)

GetAllOpenFlawsByAssetID provides a mock function with given fields: tx, assetID

type StatisticsFlawRepository_Expecter added in v0.5.14

type StatisticsFlawRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*StatisticsFlawRepository_Expecter) GetAllFlawsByAssetID added in v0.5.14

func (_e *StatisticsFlawRepository_Expecter) GetAllFlawsByAssetID(tx interface{}, assetID interface{}) *StatisticsFlawRepository_GetAllFlawsByAssetID_Call

GetAllFlawsByAssetID is a helper method to define mock.On call

  • tx *gorm.DB
  • assetID uuid.UUID

func (*StatisticsFlawRepository_Expecter) GetAllOpenFlawsByAssetID added in v0.5.14

func (_e *StatisticsFlawRepository_Expecter) GetAllOpenFlawsByAssetID(tx interface{}, assetID interface{}) *StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call

GetAllOpenFlawsByAssetID is a helper method to define mock.On call

  • tx *gorm.DB
  • assetID uuid.UUID

type StatisticsFlawRepository_GetAllFlawsByAssetID_Call added in v0.5.14

type StatisticsFlawRepository_GetAllFlawsByAssetID_Call struct {
	*mock.Call
}

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

func (*StatisticsFlawRepository_GetAllFlawsByAssetID_Call) Return added in v0.5.14

func (*StatisticsFlawRepository_GetAllFlawsByAssetID_Call) Run added in v0.5.14

func (*StatisticsFlawRepository_GetAllFlawsByAssetID_Call) RunAndReturn added in v0.5.14

type StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call added in v0.5.14

type StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call struct {
	*mock.Call
}

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

func (*StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call) Return added in v0.5.14

func (*StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call) Run added in v0.5.14

func (*StatisticsFlawRepository_GetAllOpenFlawsByAssetID_Call) RunAndReturn added in v0.5.14

type StatisticsProjectRepository added in v0.5.14

type StatisticsProjectRepository struct {
	mock.Mock
}

StatisticsProjectRepository is an autogenerated mock type for the projectRepository type

func NewStatisticsProjectRepository added in v0.5.14

func NewStatisticsProjectRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *StatisticsProjectRepository

NewStatisticsProjectRepository creates a new instance of StatisticsProjectRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*StatisticsProjectRepository) EXPECT added in v0.5.14

func (*StatisticsProjectRepository) GetByOrgID added in v0.5.14

func (_m *StatisticsProjectRepository) GetByOrgID(organizationID uuid.UUID) ([]models.Project, error)

GetByOrgID provides a mock function with given fields: organizationID

type StatisticsProjectRepository_Expecter added in v0.5.14

type StatisticsProjectRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*StatisticsProjectRepository_Expecter) GetByOrgID added in v0.5.14

func (_e *StatisticsProjectRepository_Expecter) GetByOrgID(organizationID interface{}) *StatisticsProjectRepository_GetByOrgID_Call

GetByOrgID is a helper method to define mock.On call

  • organizationID uuid.UUID

type StatisticsProjectRepository_GetByOrgID_Call added in v0.5.14

type StatisticsProjectRepository_GetByOrgID_Call struct {
	*mock.Call
}

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

func (*StatisticsProjectRepository_GetByOrgID_Call) Return added in v0.5.14

func (*StatisticsProjectRepository_GetByOrgID_Call) Run added in v0.5.14

func (*StatisticsProjectRepository_GetByOrgID_Call) RunAndReturn added in v0.5.14

type StatisticsProjectRiskHistoryRepository added in v0.5.14

type StatisticsProjectRiskHistoryRepository struct {
	mock.Mock
}

StatisticsProjectRiskHistoryRepository is an autogenerated mock type for the projectRiskHistoryRepository type

func NewStatisticsProjectRiskHistoryRepository added in v0.5.14

func NewStatisticsProjectRiskHistoryRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *StatisticsProjectRiskHistoryRepository

NewStatisticsProjectRiskHistoryRepository creates a new instance of StatisticsProjectRiskHistoryRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*StatisticsProjectRiskHistoryRepository) EXPECT added in v0.5.14

func (*StatisticsProjectRiskHistoryRepository) GetRiskHistory added in v0.5.14

func (_m *StatisticsProjectRiskHistoryRepository) GetRiskHistory(projectId uuid.UUID, start time.Time, end time.Time) ([]models.ProjectRiskHistory, error)

GetRiskHistory provides a mock function with given fields: projectId, start, end

func (*StatisticsProjectRiskHistoryRepository) UpdateRiskAggregation added in v0.5.14

func (_m *StatisticsProjectRiskHistoryRepository) UpdateRiskAggregation(projectRisk *models.ProjectRiskHistory) error

UpdateRiskAggregation provides a mock function with given fields: projectRisk

type StatisticsProjectRiskHistoryRepository_Expecter added in v0.5.14

type StatisticsProjectRiskHistoryRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*StatisticsProjectRiskHistoryRepository_Expecter) GetRiskHistory added in v0.5.14

func (_e *StatisticsProjectRiskHistoryRepository_Expecter) GetRiskHistory(projectId interface{}, start interface{}, end interface{}) *StatisticsProjectRiskHistoryRepository_GetRiskHistory_Call

GetRiskHistory is a helper method to define mock.On call

  • projectId uuid.UUID
  • start time.Time
  • end time.Time

func (*StatisticsProjectRiskHistoryRepository_Expecter) UpdateRiskAggregation added in v0.5.14

UpdateRiskAggregation is a helper method to define mock.On call

  • projectRisk *models.ProjectRiskHistory

type StatisticsProjectRiskHistoryRepository_GetRiskHistory_Call added in v0.5.14

type StatisticsProjectRiskHistoryRepository_GetRiskHistory_Call struct {
	*mock.Call
}

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

func (*StatisticsProjectRiskHistoryRepository_GetRiskHistory_Call) Return added in v0.5.14

func (*StatisticsProjectRiskHistoryRepository_GetRiskHistory_Call) Run added in v0.5.14

func (*StatisticsProjectRiskHistoryRepository_GetRiskHistory_Call) RunAndReturn added in v0.5.14

type StatisticsProjectRiskHistoryRepository_UpdateRiskAggregation_Call added in v0.5.14

type StatisticsProjectRiskHistoryRepository_UpdateRiskAggregation_Call struct {
	*mock.Call
}

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

func (*StatisticsProjectRiskHistoryRepository_UpdateRiskAggregation_Call) Return added in v0.5.14

func (*StatisticsProjectRiskHistoryRepository_UpdateRiskAggregation_Call) Run added in v0.5.14

func (*StatisticsProjectRiskHistoryRepository_UpdateRiskAggregation_Call) RunAndReturn added in v0.5.14

type StatisticsProjectService added in v0.5.14

type StatisticsProjectService struct {
	mock.Mock
}

StatisticsProjectService is an autogenerated mock type for the projectService type

func NewStatisticsProjectService added in v0.5.14

func NewStatisticsProjectService(t interface {
	mock.TestingT
	Cleanup(func())
}) *StatisticsProjectService

NewStatisticsProjectService creates a new instance of StatisticsProjectService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*StatisticsProjectService) EXPECT added in v0.5.14

func (*StatisticsProjectService) ListAllowedProjects added in v0.5.14

func (_m *StatisticsProjectService) ListAllowedProjects(c echo.Context) ([]models.Project, error)

ListAllowedProjects provides a mock function with given fields: c

type StatisticsProjectService_Expecter added in v0.5.14

type StatisticsProjectService_Expecter struct {
	// contains filtered or unexported fields
}

func (*StatisticsProjectService_Expecter) ListAllowedProjects added in v0.5.14

ListAllowedProjects is a helper method to define mock.On call

  • c echo.Context

type StatisticsProjectService_ListAllowedProjects_Call added in v0.5.14

type StatisticsProjectService_ListAllowedProjects_Call struct {
	*mock.Call
}

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

func (*StatisticsProjectService_ListAllowedProjects_Call) Return added in v0.5.14

func (*StatisticsProjectService_ListAllowedProjects_Call) Run added in v0.5.14

func (*StatisticsProjectService_ListAllowedProjects_Call) RunAndReturn added in v0.5.14

type StatisticsStatisticsRepository added in v0.5.14

type StatisticsStatisticsRepository struct {
	mock.Mock
}

StatisticsStatisticsRepository is an autogenerated mock type for the statisticsRepository type

func NewStatisticsStatisticsRepository added in v0.5.14

func NewStatisticsStatisticsRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *StatisticsStatisticsRepository

NewStatisticsStatisticsRepository creates a new instance of StatisticsStatisticsRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*StatisticsStatisticsRepository) AverageFixingTime added in v0.5.14

func (_m *StatisticsStatisticsRepository) AverageFixingTime(assetID uuid.UUID, riskIntervalStart float64, riskIntervalEnd float64) (time.Duration, error)

AverageFixingTime provides a mock function with given fields: assetID, riskIntervalStart, riskIntervalEnd

func (*StatisticsStatisticsRepository) EXPECT added in v0.5.14

func (*StatisticsStatisticsRepository) GetAssetRiskDistribution added in v0.5.14

func (_m *StatisticsStatisticsRepository) GetAssetRiskDistribution(assetID uuid.UUID, assetName string) (models.AssetRiskDistribution, error)

GetAssetRiskDistribution provides a mock function with given fields: assetID, assetName

func (*StatisticsStatisticsRepository) GetFlawCountByScannerId added in v0.5.14

func (_m *StatisticsStatisticsRepository) GetFlawCountByScannerId(assetID uuid.UUID) (map[string]int, error)

GetFlawCountByScannerId provides a mock function with given fields: assetID

func (*StatisticsStatisticsRepository) TimeTravelFlawState added in v0.5.14

func (_m *StatisticsStatisticsRepository) TimeTravelFlawState(assetID uuid.UUID, _a1 time.Time) ([]models.Flaw, error)

TimeTravelFlawState provides a mock function with given fields: assetID, _a1

type StatisticsStatisticsRepository_AverageFixingTime_Call added in v0.5.14

type StatisticsStatisticsRepository_AverageFixingTime_Call struct {
	*mock.Call
}

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

func (*StatisticsStatisticsRepository_AverageFixingTime_Call) Return added in v0.5.14

func (*StatisticsStatisticsRepository_AverageFixingTime_Call) Run added in v0.5.14

func (*StatisticsStatisticsRepository_AverageFixingTime_Call) RunAndReturn added in v0.5.14

type StatisticsStatisticsRepository_Expecter added in v0.5.14

type StatisticsStatisticsRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*StatisticsStatisticsRepository_Expecter) AverageFixingTime added in v0.5.14

func (_e *StatisticsStatisticsRepository_Expecter) AverageFixingTime(assetID interface{}, riskIntervalStart interface{}, riskIntervalEnd interface{}) *StatisticsStatisticsRepository_AverageFixingTime_Call

AverageFixingTime is a helper method to define mock.On call

  • assetID uuid.UUID
  • riskIntervalStart float64
  • riskIntervalEnd float64

func (*StatisticsStatisticsRepository_Expecter) GetAssetRiskDistribution added in v0.5.14

func (_e *StatisticsStatisticsRepository_Expecter) GetAssetRiskDistribution(assetID interface{}, assetName interface{}) *StatisticsStatisticsRepository_GetAssetRiskDistribution_Call

GetAssetRiskDistribution is a helper method to define mock.On call

  • assetID uuid.UUID
  • assetName string

func (*StatisticsStatisticsRepository_Expecter) GetFlawCountByScannerId added in v0.5.14

GetFlawCountByScannerId is a helper method to define mock.On call

  • assetID uuid.UUID

func (*StatisticsStatisticsRepository_Expecter) TimeTravelFlawState added in v0.5.14

func (_e *StatisticsStatisticsRepository_Expecter) TimeTravelFlawState(assetID interface{}, _a1 interface{}) *StatisticsStatisticsRepository_TimeTravelFlawState_Call

TimeTravelFlawState is a helper method to define mock.On call

  • assetID uuid.UUID
  • _a1 time.Time

type StatisticsStatisticsRepository_GetAssetRiskDistribution_Call added in v0.5.14

type StatisticsStatisticsRepository_GetAssetRiskDistribution_Call struct {
	*mock.Call
}

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

func (*StatisticsStatisticsRepository_GetAssetRiskDistribution_Call) Return added in v0.5.14

func (*StatisticsStatisticsRepository_GetAssetRiskDistribution_Call) Run added in v0.5.14

func (*StatisticsStatisticsRepository_GetAssetRiskDistribution_Call) RunAndReturn added in v0.5.14

type StatisticsStatisticsRepository_GetFlawCountByScannerId_Call added in v0.5.14

type StatisticsStatisticsRepository_GetFlawCountByScannerId_Call struct {
	*mock.Call
}

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

func (*StatisticsStatisticsRepository_GetFlawCountByScannerId_Call) Return added in v0.5.14

func (*StatisticsStatisticsRepository_GetFlawCountByScannerId_Call) Run added in v0.5.14

func (*StatisticsStatisticsRepository_GetFlawCountByScannerId_Call) RunAndReturn added in v0.5.14

type StatisticsStatisticsRepository_TimeTravelFlawState_Call added in v0.5.14

type StatisticsStatisticsRepository_TimeTravelFlawState_Call struct {
	*mock.Call
}

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

func (*StatisticsStatisticsRepository_TimeTravelFlawState_Call) Return added in v0.5.14

func (*StatisticsStatisticsRepository_TimeTravelFlawState_Call) Run added in v0.5.14

func (*StatisticsStatisticsRepository_TimeTravelFlawState_Call) RunAndReturn added in v0.5.14

type StatisticsStatisticsService added in v0.5.14

type StatisticsStatisticsService struct {
	mock.Mock
}

StatisticsStatisticsService is an autogenerated mock type for the statisticsService type

func NewStatisticsStatisticsService added in v0.5.14

func NewStatisticsStatisticsService(t interface {
	mock.TestingT
	Cleanup(func())
}) *StatisticsStatisticsService

NewStatisticsStatisticsService creates a new instance of StatisticsStatisticsService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*StatisticsStatisticsService) EXPECT added in v0.5.14

func (*StatisticsStatisticsService) GetAssetRiskDistribution added in v0.5.14

func (_m *StatisticsStatisticsService) GetAssetRiskDistribution(assetID uuid.UUID, assetName string) (models.AssetRiskDistribution, error)

GetAssetRiskDistribution provides a mock function with given fields: assetID, assetName

func (*StatisticsStatisticsService) GetAssetRiskHistory added in v0.5.14

func (_m *StatisticsStatisticsService) GetAssetRiskHistory(assetID uuid.UUID, start time.Time, end time.Time) ([]models.AssetRiskHistory, error)

GetAssetRiskHistory provides a mock function with given fields: assetID, start, end

func (*StatisticsStatisticsService) GetAverageFixingTime added in v0.5.14

func (_m *StatisticsStatisticsService) GetAverageFixingTime(assetID uuid.UUID, severity string) (time.Duration, error)

GetAverageFixingTime provides a mock function with given fields: assetID, severity

func (*StatisticsStatisticsService) GetComponentRisk added in v0.5.14

func (_m *StatisticsStatisticsService) GetComponentRisk(assetID uuid.UUID) (map[string]float64, error)

GetComponentRisk provides a mock function with given fields: assetID

func (*StatisticsStatisticsService) GetDependencyCountPerScanType added in v0.5.14

func (_m *StatisticsStatisticsService) GetDependencyCountPerScanType(assetID uuid.UUID) (map[string]int, error)

GetDependencyCountPerScanType provides a mock function with given fields: assetID

func (*StatisticsStatisticsService) GetFlawAggregationStateAndChangeSince added in v0.5.14

func (_m *StatisticsStatisticsService) GetFlawAggregationStateAndChangeSince(assetID uuid.UUID, calculateChangeTo time.Time) (statistics.FlawAggregationStateAndChange, error)

GetFlawAggregationStateAndChangeSince provides a mock function with given fields: assetID, calculateChangeTo

func (*StatisticsStatisticsService) GetFlawCountByScannerId added in v0.5.14

func (_m *StatisticsStatisticsService) GetFlawCountByScannerId(assetID uuid.UUID) (map[string]int, error)

GetFlawCountByScannerId provides a mock function with given fields: assetID

func (*StatisticsStatisticsService) GetProjectRiskHistory added in v0.5.14

func (_m *StatisticsStatisticsService) GetProjectRiskHistory(projectID uuid.UUID, start time.Time, end time.Time) ([]models.ProjectRiskHistory, error)

GetProjectRiskHistory provides a mock function with given fields: projectID, start, end

func (*StatisticsStatisticsService) UpdateAssetRiskAggregation added in v0.5.14

func (_m *StatisticsStatisticsService) UpdateAssetRiskAggregation(assetID uuid.UUID, start time.Time, end time.Time, updateProject bool) error

UpdateAssetRiskAggregation provides a mock function with given fields: assetID, start, end, updateProject

type StatisticsStatisticsService_Expecter added in v0.5.14

type StatisticsStatisticsService_Expecter struct {
	// contains filtered or unexported fields
}

func (*StatisticsStatisticsService_Expecter) GetAssetRiskDistribution added in v0.5.14

func (_e *StatisticsStatisticsService_Expecter) GetAssetRiskDistribution(assetID interface{}, assetName interface{}) *StatisticsStatisticsService_GetAssetRiskDistribution_Call

GetAssetRiskDistribution is a helper method to define mock.On call

  • assetID uuid.UUID
  • assetName string

func (*StatisticsStatisticsService_Expecter) GetAssetRiskHistory added in v0.5.14

func (_e *StatisticsStatisticsService_Expecter) GetAssetRiskHistory(assetID interface{}, start interface{}, end interface{}) *StatisticsStatisticsService_GetAssetRiskHistory_Call

GetAssetRiskHistory is a helper method to define mock.On call

  • assetID uuid.UUID
  • start time.Time
  • end time.Time

func (*StatisticsStatisticsService_Expecter) GetAverageFixingTime added in v0.5.14

func (_e *StatisticsStatisticsService_Expecter) GetAverageFixingTime(assetID interface{}, severity interface{}) *StatisticsStatisticsService_GetAverageFixingTime_Call

GetAverageFixingTime is a helper method to define mock.On call

  • assetID uuid.UUID
  • severity string

func (*StatisticsStatisticsService_Expecter) GetComponentRisk added in v0.5.14

GetComponentRisk is a helper method to define mock.On call

  • assetID uuid.UUID

func (*StatisticsStatisticsService_Expecter) GetDependencyCountPerScanType added in v0.5.14

func (_e *StatisticsStatisticsService_Expecter) GetDependencyCountPerScanType(assetID interface{}) *StatisticsStatisticsService_GetDependencyCountPerScanType_Call

GetDependencyCountPerScanType is a helper method to define mock.On call

  • assetID uuid.UUID

func (*StatisticsStatisticsService_Expecter) GetFlawAggregationStateAndChangeSince added in v0.5.14

func (_e *StatisticsStatisticsService_Expecter) GetFlawAggregationStateAndChangeSince(assetID interface{}, calculateChangeTo interface{}) *StatisticsStatisticsService_GetFlawAggregationStateAndChangeSince_Call

GetFlawAggregationStateAndChangeSince is a helper method to define mock.On call

  • assetID uuid.UUID
  • calculateChangeTo time.Time

func (*StatisticsStatisticsService_Expecter) GetFlawCountByScannerId added in v0.5.14

GetFlawCountByScannerId is a helper method to define mock.On call

  • assetID uuid.UUID

func (*StatisticsStatisticsService_Expecter) GetProjectRiskHistory added in v0.5.14

func (_e *StatisticsStatisticsService_Expecter) GetProjectRiskHistory(projectID interface{}, start interface{}, end interface{}) *StatisticsStatisticsService_GetProjectRiskHistory_Call

GetProjectRiskHistory is a helper method to define mock.On call

  • projectID uuid.UUID
  • start time.Time
  • end time.Time

func (*StatisticsStatisticsService_Expecter) UpdateAssetRiskAggregation added in v0.5.14

func (_e *StatisticsStatisticsService_Expecter) UpdateAssetRiskAggregation(assetID interface{}, start interface{}, end interface{}, updateProject interface{}) *StatisticsStatisticsService_UpdateAssetRiskAggregation_Call

UpdateAssetRiskAggregation is a helper method to define mock.On call

  • assetID uuid.UUID
  • start time.Time
  • end time.Time
  • updateProject bool

type StatisticsStatisticsService_GetAssetRiskDistribution_Call added in v0.5.14

type StatisticsStatisticsService_GetAssetRiskDistribution_Call struct {
	*mock.Call
}

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

func (*StatisticsStatisticsService_GetAssetRiskDistribution_Call) Return added in v0.5.14

func (*StatisticsStatisticsService_GetAssetRiskDistribution_Call) Run added in v0.5.14

func (*StatisticsStatisticsService_GetAssetRiskDistribution_Call) RunAndReturn added in v0.5.14

type StatisticsStatisticsService_GetAssetRiskHistory_Call added in v0.5.14

type StatisticsStatisticsService_GetAssetRiskHistory_Call struct {
	*mock.Call
}

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

func (*StatisticsStatisticsService_GetAssetRiskHistory_Call) Return added in v0.5.14

func (*StatisticsStatisticsService_GetAssetRiskHistory_Call) Run added in v0.5.14

func (*StatisticsStatisticsService_GetAssetRiskHistory_Call) RunAndReturn added in v0.5.14

type StatisticsStatisticsService_GetAverageFixingTime_Call added in v0.5.14

type StatisticsStatisticsService_GetAverageFixingTime_Call struct {
	*mock.Call
}

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

func (*StatisticsStatisticsService_GetAverageFixingTime_Call) Return added in v0.5.14

func (*StatisticsStatisticsService_GetAverageFixingTime_Call) Run added in v0.5.14

func (*StatisticsStatisticsService_GetAverageFixingTime_Call) RunAndReturn added in v0.5.14

type StatisticsStatisticsService_GetComponentRisk_Call added in v0.5.14

type StatisticsStatisticsService_GetComponentRisk_Call struct {
	*mock.Call
}

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

func (*StatisticsStatisticsService_GetComponentRisk_Call) Return added in v0.5.14

func (*StatisticsStatisticsService_GetComponentRisk_Call) Run added in v0.5.14

func (*StatisticsStatisticsService_GetComponentRisk_Call) RunAndReturn added in v0.5.14

type StatisticsStatisticsService_GetDependencyCountPerScanType_Call added in v0.5.14

type StatisticsStatisticsService_GetDependencyCountPerScanType_Call struct {
	*mock.Call
}

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

func (*StatisticsStatisticsService_GetDependencyCountPerScanType_Call) Return added in v0.5.14

func (*StatisticsStatisticsService_GetDependencyCountPerScanType_Call) Run added in v0.5.14

func (*StatisticsStatisticsService_GetDependencyCountPerScanType_Call) RunAndReturn added in v0.5.14

type StatisticsStatisticsService_GetFlawAggregationStateAndChangeSince_Call added in v0.5.14

type StatisticsStatisticsService_GetFlawAggregationStateAndChangeSince_Call struct {
	*mock.Call
}

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

func (*StatisticsStatisticsService_GetFlawAggregationStateAndChangeSince_Call) Return added in v0.5.14

func (*StatisticsStatisticsService_GetFlawAggregationStateAndChangeSince_Call) Run added in v0.5.14

func (*StatisticsStatisticsService_GetFlawAggregationStateAndChangeSince_Call) RunAndReturn added in v0.5.14

type StatisticsStatisticsService_GetFlawCountByScannerId_Call added in v0.5.14

type StatisticsStatisticsService_GetFlawCountByScannerId_Call struct {
	*mock.Call
}

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

func (*StatisticsStatisticsService_GetFlawCountByScannerId_Call) Return added in v0.5.14

func (*StatisticsStatisticsService_GetFlawCountByScannerId_Call) Run added in v0.5.14

func (*StatisticsStatisticsService_GetFlawCountByScannerId_Call) RunAndReturn added in v0.5.14

type StatisticsStatisticsService_GetProjectRiskHistory_Call added in v0.5.14

type StatisticsStatisticsService_GetProjectRiskHistory_Call struct {
	*mock.Call
}

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

func (*StatisticsStatisticsService_GetProjectRiskHistory_Call) Return added in v0.5.14

func (*StatisticsStatisticsService_GetProjectRiskHistory_Call) Run added in v0.5.14

func (*StatisticsStatisticsService_GetProjectRiskHistory_Call) RunAndReturn added in v0.5.14

type StatisticsStatisticsService_UpdateAssetRiskAggregation_Call added in v0.5.14

type StatisticsStatisticsService_UpdateAssetRiskAggregation_Call struct {
	*mock.Call
}

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

func (*StatisticsStatisticsService_UpdateAssetRiskAggregation_Call) Return added in v0.5.14

func (*StatisticsStatisticsService_UpdateAssetRiskAggregation_Call) Run added in v0.5.14

func (*StatisticsStatisticsService_UpdateAssetRiskAggregation_Call) RunAndReturn added in v0.5.14

type VulndbAffectedCmpRepository

type VulndbAffectedCmpRepository struct {
	mock.Mock
}

VulndbAffectedCmpRepository is an autogenerated mock type for the affectedCmpRepository type

func NewVulndbAffectedCmpRepository

func NewVulndbAffectedCmpRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *VulndbAffectedCmpRepository

NewVulndbAffectedCmpRepository creates a new instance of VulndbAffectedCmpRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*VulndbAffectedCmpRepository) EXPECT

func (*VulndbAffectedCmpRepository) SaveBatch

func (_m *VulndbAffectedCmpRepository) SaveBatch(tx *gorm.DB, affectedComponents []models.AffectedComponent) error

SaveBatch provides a mock function with given fields: tx, affectedComponents

type VulndbAffectedCmpRepository_Expecter

type VulndbAffectedCmpRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*VulndbAffectedCmpRepository_Expecter) SaveBatch

func (_e *VulndbAffectedCmpRepository_Expecter) SaveBatch(tx interface{}, affectedComponents interface{}) *VulndbAffectedCmpRepository_SaveBatch_Call

SaveBatch is a helper method to define mock.On call

  • tx *gorm.DB
  • affectedComponents []models.AffectedComponent

type VulndbAffectedCmpRepository_SaveBatch_Call

type VulndbAffectedCmpRepository_SaveBatch_Call struct {
	*mock.Call
}

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

func (*VulndbAffectedCmpRepository_SaveBatch_Call) Return

func (*VulndbAffectedCmpRepository_SaveBatch_Call) Run

func (*VulndbAffectedCmpRepository_SaveBatch_Call) RunAndReturn

type VulndbAffectedComponentsRepository added in v0.5.14

type VulndbAffectedComponentsRepository struct {
	mock.Mock
}

VulndbAffectedComponentsRepository is an autogenerated mock type for the affectedComponentsRepository type

func NewVulndbAffectedComponentsRepository added in v0.5.14

func NewVulndbAffectedComponentsRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *VulndbAffectedComponentsRepository

NewVulndbAffectedComponentsRepository creates a new instance of VulndbAffectedComponentsRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*VulndbAffectedComponentsRepository) EXPECT added in v0.5.14

func (*VulndbAffectedComponentsRepository) GetAllAffectedComponentsID added in v0.5.14

func (_m *VulndbAffectedComponentsRepository) GetAllAffectedComponentsID() ([]string, error)

GetAllAffectedComponentsID provides a mock function with no fields

func (*VulndbAffectedComponentsRepository) Save added in v0.5.14

func (_m *VulndbAffectedComponentsRepository) Save(tx *gorm.DB, affectedComponent *models.AffectedComponent) error

Save provides a mock function with given fields: tx, affectedComponent

func (*VulndbAffectedComponentsRepository) SaveBatch added in v0.5.14

func (_m *VulndbAffectedComponentsRepository) SaveBatch(tx *gorm.DB, affectedPkgs []models.AffectedComponent) error

SaveBatch provides a mock function with given fields: tx, affectedPkgs

type VulndbAffectedComponentsRepository_Expecter added in v0.5.14

type VulndbAffectedComponentsRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*VulndbAffectedComponentsRepository_Expecter) GetAllAffectedComponentsID added in v0.5.14

GetAllAffectedComponentsID is a helper method to define mock.On call

func (*VulndbAffectedComponentsRepository_Expecter) Save added in v0.5.14

func (_e *VulndbAffectedComponentsRepository_Expecter) Save(tx interface{}, affectedComponent interface{}) *VulndbAffectedComponentsRepository_Save_Call

Save is a helper method to define mock.On call

  • tx *gorm.DB
  • affectedComponent *models.AffectedComponent

func (*VulndbAffectedComponentsRepository_Expecter) SaveBatch added in v0.5.14

func (_e *VulndbAffectedComponentsRepository_Expecter) SaveBatch(tx interface{}, affectedPkgs interface{}) *VulndbAffectedComponentsRepository_SaveBatch_Call

SaveBatch is a helper method to define mock.On call

  • tx *gorm.DB
  • affectedPkgs []models.AffectedComponent

type VulndbAffectedComponentsRepository_GetAllAffectedComponentsID_Call added in v0.5.14

type VulndbAffectedComponentsRepository_GetAllAffectedComponentsID_Call struct {
	*mock.Call
}

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

func (*VulndbAffectedComponentsRepository_GetAllAffectedComponentsID_Call) Return added in v0.5.14

func (*VulndbAffectedComponentsRepository_GetAllAffectedComponentsID_Call) Run added in v0.5.14

func (*VulndbAffectedComponentsRepository_GetAllAffectedComponentsID_Call) RunAndReturn added in v0.5.14

type VulndbAffectedComponentsRepository_SaveBatch_Call added in v0.5.14

type VulndbAffectedComponentsRepository_SaveBatch_Call struct {
	*mock.Call
}

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

func (*VulndbAffectedComponentsRepository_SaveBatch_Call) Return added in v0.5.14

func (*VulndbAffectedComponentsRepository_SaveBatch_Call) Run added in v0.5.14

func (*VulndbAffectedComponentsRepository_SaveBatch_Call) RunAndReturn added in v0.5.14

type VulndbAffectedComponentsRepository_Save_Call added in v0.5.14

type VulndbAffectedComponentsRepository_Save_Call struct {
	*mock.Call
}

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

func (*VulndbAffectedComponentsRepository_Save_Call) Return added in v0.5.14

func (*VulndbAffectedComponentsRepository_Save_Call) Run added in v0.5.14

func (*VulndbAffectedComponentsRepository_Save_Call) RunAndReturn added in v0.5.14

type VulndbConfigService

type VulndbConfigService struct {
	mock.Mock
}

VulndbConfigService is an autogenerated mock type for the configService type

func NewVulndbConfigService

func NewVulndbConfigService(t interface {
	mock.TestingT
	Cleanup(func())
}) *VulndbConfigService

NewVulndbConfigService creates a new instance of VulndbConfigService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*VulndbConfigService) EXPECT

func (*VulndbConfigService) GetJSONConfig

func (_m *VulndbConfigService) GetJSONConfig(key string, v interface{}) error

GetJSONConfig provides a mock function with given fields: key, v

func (*VulndbConfigService) SetJSONConfig

func (_m *VulndbConfigService) SetJSONConfig(key string, v interface{}) error

SetJSONConfig provides a mock function with given fields: key, v

type VulndbConfigService_Expecter

type VulndbConfigService_Expecter struct {
	// contains filtered or unexported fields
}

func (*VulndbConfigService_Expecter) GetJSONConfig

func (_e *VulndbConfigService_Expecter) GetJSONConfig(key interface{}, v interface{}) *VulndbConfigService_GetJSONConfig_Call

GetJSONConfig is a helper method to define mock.On call

  • key string
  • v interface{}

func (*VulndbConfigService_Expecter) SetJSONConfig

func (_e *VulndbConfigService_Expecter) SetJSONConfig(key interface{}, v interface{}) *VulndbConfigService_SetJSONConfig_Call

SetJSONConfig is a helper method to define mock.On call

  • key string
  • v interface{}

type VulndbConfigService_GetJSONConfig_Call

type VulndbConfigService_GetJSONConfig_Call struct {
	*mock.Call
}

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

func (*VulndbConfigService_GetJSONConfig_Call) Return

func (*VulndbConfigService_GetJSONConfig_Call) Run

func (*VulndbConfigService_GetJSONConfig_Call) RunAndReturn

type VulndbConfigService_SetJSONConfig_Call

type VulndbConfigService_SetJSONConfig_Call struct {
	*mock.Call
}

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

func (*VulndbConfigService_SetJSONConfig_Call) Return

func (*VulndbConfigService_SetJSONConfig_Call) Run

func (*VulndbConfigService_SetJSONConfig_Call) RunAndReturn

type VulndbCveRepository

type VulndbCveRepository struct {
	mock.Mock
}

VulndbCveRepository is an autogenerated mock type for the cveRepository type

func NewVulndbCveRepository

func NewVulndbCveRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *VulndbCveRepository

NewVulndbCveRepository creates a new instance of VulndbCveRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*VulndbCveRepository) Activate added in v0.5.15

func (_m *VulndbCveRepository) Activate(tx *gorm.DB, id string) error

Activate provides a mock function with given fields: tx, id

func (*VulndbCveRepository) Begin

func (_m *VulndbCveRepository) Begin() *gorm.DB

Begin provides a mock function with no fields

func (*VulndbCveRepository) Create

func (_m *VulndbCveRepository) Create(tx *gorm.DB, t *models.CVE) error

Create provides a mock function with given fields: tx, t

func (*VulndbCveRepository) CreateBatch

func (_m *VulndbCveRepository) CreateBatch(tx *gorm.DB, ts []models.CVE) error

CreateBatch provides a mock function with given fields: tx, ts

func (*VulndbCveRepository) Delete

func (_m *VulndbCveRepository) Delete(tx *gorm.DB, id string) error

Delete provides a mock function with given fields: tx, id

func (*VulndbCveRepository) EXPECT

func (*VulndbCveRepository) FindByID

func (_m *VulndbCveRepository) FindByID(id string) (models.CVE, error)

FindByID provides a mock function with given fields: id

func (*VulndbCveRepository) GetDB

func (_m *VulndbCveRepository) GetDB(tx *gorm.DB) *gorm.DB

GetDB provides a mock function with given fields: tx

func (*VulndbCveRepository) GetLastModDate

func (_m *VulndbCveRepository) GetLastModDate() (time.Time, error)

GetLastModDate provides a mock function with no fields

func (*VulndbCveRepository) List

func (_m *VulndbCveRepository) List(ids []string) ([]models.CVE, error)

List provides a mock function with given fields: ids

func (*VulndbCveRepository) Read

func (_m *VulndbCveRepository) Read(id string) (models.CVE, error)

Read provides a mock function with given fields: id

func (*VulndbCveRepository) Save

func (_m *VulndbCveRepository) Save(tx *gorm.DB, t *models.CVE) error

Save provides a mock function with given fields: tx, t

func (*VulndbCveRepository) SaveBatch

func (_m *VulndbCveRepository) SaveBatch(tx *gorm.DB, ts []models.CVE) error

SaveBatch provides a mock function with given fields: tx, ts

func (*VulndbCveRepository) SaveBatchCPEMatch added in v0.5.1

func (_m *VulndbCveRepository) SaveBatchCPEMatch(tx *gorm.DB, matches []models.CPEMatch) error

SaveBatchCPEMatch provides a mock function with given fields: tx, matches

func (*VulndbCveRepository) Transaction

func (_m *VulndbCveRepository) Transaction(_a0 func(*gorm.DB) error) error

Transaction provides a mock function with given fields: _a0

type VulndbCveRepository_Activate_Call added in v0.5.15

type VulndbCveRepository_Activate_Call struct {
	*mock.Call
}

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

func (*VulndbCveRepository_Activate_Call) Return added in v0.5.15

func (*VulndbCveRepository_Activate_Call) Run added in v0.5.15

func (*VulndbCveRepository_Activate_Call) RunAndReturn added in v0.5.15

type VulndbCveRepository_Begin_Call

type VulndbCveRepository_Begin_Call struct {
	*mock.Call
}

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

func (*VulndbCveRepository_Begin_Call) Return

func (*VulndbCveRepository_Begin_Call) Run

func (*VulndbCveRepository_Begin_Call) RunAndReturn

type VulndbCveRepository_CreateBatch_Call

type VulndbCveRepository_CreateBatch_Call struct {
	*mock.Call
}

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

func (*VulndbCveRepository_CreateBatch_Call) Return

func (*VulndbCveRepository_CreateBatch_Call) Run

func (*VulndbCveRepository_CreateBatch_Call) RunAndReturn

type VulndbCveRepository_Create_Call

type VulndbCveRepository_Create_Call struct {
	*mock.Call
}

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

func (*VulndbCveRepository_Create_Call) Return

func (*VulndbCveRepository_Create_Call) Run

func (*VulndbCveRepository_Create_Call) RunAndReturn

type VulndbCveRepository_Delete_Call

type VulndbCveRepository_Delete_Call struct {
	*mock.Call
}

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

func (*VulndbCveRepository_Delete_Call) Return

func (*VulndbCveRepository_Delete_Call) Run

func (*VulndbCveRepository_Delete_Call) RunAndReturn

type VulndbCveRepository_Expecter

type VulndbCveRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*VulndbCveRepository_Expecter) Activate added in v0.5.15

func (_e *VulndbCveRepository_Expecter) Activate(tx interface{}, id interface{}) *VulndbCveRepository_Activate_Call

Activate is a helper method to define mock.On call

  • tx *gorm.DB
  • id string

func (*VulndbCveRepository_Expecter) Begin

Begin is a helper method to define mock.On call

func (*VulndbCveRepository_Expecter) Create

func (_e *VulndbCveRepository_Expecter) Create(tx interface{}, t interface{}) *VulndbCveRepository_Create_Call

Create is a helper method to define mock.On call

  • tx *gorm.DB
  • t *models.CVE

func (*VulndbCveRepository_Expecter) CreateBatch

func (_e *VulndbCveRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *VulndbCveRepository_CreateBatch_Call

CreateBatch is a helper method to define mock.On call

  • tx *gorm.DB
  • ts []models.CVE

func (*VulndbCveRepository_Expecter) Delete

func (_e *VulndbCveRepository_Expecter) Delete(tx interface{}, id interface{}) *VulndbCveRepository_Delete_Call

Delete is a helper method to define mock.On call

  • tx *gorm.DB
  • id string

func (*VulndbCveRepository_Expecter) FindByID

FindByID is a helper method to define mock.On call

  • id string

func (*VulndbCveRepository_Expecter) GetDB

GetDB is a helper method to define mock.On call

  • tx *gorm.DB

func (*VulndbCveRepository_Expecter) GetLastModDate

GetLastModDate is a helper method to define mock.On call

func (*VulndbCveRepository_Expecter) List

List is a helper method to define mock.On call

  • ids []string

func (*VulndbCveRepository_Expecter) Read

Read is a helper method to define mock.On call

  • id string

func (*VulndbCveRepository_Expecter) Save

func (_e *VulndbCveRepository_Expecter) Save(tx interface{}, t interface{}) *VulndbCveRepository_Save_Call

Save is a helper method to define mock.On call

  • tx *gorm.DB
  • t *models.CVE

func (*VulndbCveRepository_Expecter) SaveBatch

func (_e *VulndbCveRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *VulndbCveRepository_SaveBatch_Call

SaveBatch is a helper method to define mock.On call

  • tx *gorm.DB
  • ts []models.CVE

func (*VulndbCveRepository_Expecter) SaveBatchCPEMatch added in v0.5.1

func (_e *VulndbCveRepository_Expecter) SaveBatchCPEMatch(tx interface{}, matches interface{}) *VulndbCveRepository_SaveBatchCPEMatch_Call

SaveBatchCPEMatch is a helper method to define mock.On call

  • tx *gorm.DB
  • matches []models.CPEMatch

func (*VulndbCveRepository_Expecter) Transaction

func (_e *VulndbCveRepository_Expecter) Transaction(_a0 interface{}) *VulndbCveRepository_Transaction_Call

Transaction is a helper method to define mock.On call

  • _a0 func(*gorm.DB) error

type VulndbCveRepository_FindByID_Call

type VulndbCveRepository_FindByID_Call struct {
	*mock.Call
}

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

func (*VulndbCveRepository_FindByID_Call) Return

func (*VulndbCveRepository_FindByID_Call) Run

func (*VulndbCveRepository_FindByID_Call) RunAndReturn

type VulndbCveRepository_GetDB_Call

type VulndbCveRepository_GetDB_Call struct {
	*mock.Call
}

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

func (*VulndbCveRepository_GetDB_Call) Return

func (*VulndbCveRepository_GetDB_Call) Run

func (*VulndbCveRepository_GetDB_Call) RunAndReturn

type VulndbCveRepository_GetLastModDate_Call

type VulndbCveRepository_GetLastModDate_Call struct {
	*mock.Call
}

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

func (*VulndbCveRepository_GetLastModDate_Call) Return

func (*VulndbCveRepository_GetLastModDate_Call) Run

func (*VulndbCveRepository_GetLastModDate_Call) RunAndReturn

type VulndbCveRepository_List_Call

type VulndbCveRepository_List_Call struct {
	*mock.Call
}

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

func (*VulndbCveRepository_List_Call) Return

func (*VulndbCveRepository_List_Call) Run

func (*VulndbCveRepository_List_Call) RunAndReturn

type VulndbCveRepository_Read_Call

type VulndbCveRepository_Read_Call struct {
	*mock.Call
}

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

func (*VulndbCveRepository_Read_Call) Return

func (*VulndbCveRepository_Read_Call) Run

func (*VulndbCveRepository_Read_Call) RunAndReturn

type VulndbCveRepository_SaveBatchCPEMatch_Call added in v0.5.1

type VulndbCveRepository_SaveBatchCPEMatch_Call struct {
	*mock.Call
}

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

func (*VulndbCveRepository_SaveBatchCPEMatch_Call) Return added in v0.5.1

func (*VulndbCveRepository_SaveBatchCPEMatch_Call) Run added in v0.5.1

func (*VulndbCveRepository_SaveBatchCPEMatch_Call) RunAndReturn added in v0.5.1

type VulndbCveRepository_SaveBatch_Call

type VulndbCveRepository_SaveBatch_Call struct {
	*mock.Call
}

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

func (*VulndbCveRepository_SaveBatch_Call) Return

func (*VulndbCveRepository_SaveBatch_Call) Run

func (*VulndbCveRepository_SaveBatch_Call) RunAndReturn

type VulndbCveRepository_Save_Call

type VulndbCveRepository_Save_Call struct {
	*mock.Call
}

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

func (*VulndbCveRepository_Save_Call) Return

func (*VulndbCveRepository_Save_Call) Run

func (*VulndbCveRepository_Save_Call) RunAndReturn

type VulndbCveRepository_Transaction_Call

type VulndbCveRepository_Transaction_Call struct {
	*mock.Call
}

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

func (*VulndbCveRepository_Transaction_Call) Return

func (*VulndbCveRepository_Transaction_Call) Run

func (*VulndbCveRepository_Transaction_Call) RunAndReturn

type VulndbCvesRepository added in v0.5.14

type VulndbCvesRepository struct {
	mock.Mock
}

VulndbCvesRepository is an autogenerated mock type for the cvesRepository type

func NewVulndbCvesRepository added in v0.5.14

func NewVulndbCvesRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *VulndbCvesRepository

NewVulndbCvesRepository creates a new instance of VulndbCvesRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*VulndbCvesRepository) Activate added in v0.5.15

func (_m *VulndbCvesRepository) Activate(tx *gorm.DB, id string) error

Activate provides a mock function with given fields: tx, id

func (*VulndbCvesRepository) Begin added in v0.5.14

func (_m *VulndbCvesRepository) Begin() *gorm.DB

Begin provides a mock function with no fields

func (*VulndbCvesRepository) Create added in v0.5.14

func (_m *VulndbCvesRepository) Create(tx *gorm.DB, t *models.CVE) error

Create provides a mock function with given fields: tx, t

func (*VulndbCvesRepository) CreateBatch added in v0.5.14

func (_m *VulndbCvesRepository) CreateBatch(tx *gorm.DB, ts []models.CVE) error

CreateBatch provides a mock function with given fields: tx, ts

func (*VulndbCvesRepository) Delete added in v0.5.14

func (_m *VulndbCvesRepository) Delete(tx *gorm.DB, id string) error

Delete provides a mock function with given fields: tx, id

func (*VulndbCvesRepository) EXPECT added in v0.5.14

func (*VulndbCvesRepository) GetAllCPEMatchesID added in v0.5.14

func (_m *VulndbCvesRepository) GetAllCPEMatchesID() ([]string, error)

GetAllCPEMatchesID provides a mock function with no fields

func (*VulndbCvesRepository) GetAllCVEsID added in v0.5.14

func (_m *VulndbCvesRepository) GetAllCVEsID() ([]string, error)

GetAllCVEsID provides a mock function with no fields

func (*VulndbCvesRepository) GetDB added in v0.5.14

func (_m *VulndbCvesRepository) GetDB(tx *gorm.DB) *gorm.DB

GetDB provides a mock function with given fields: tx

func (*VulndbCvesRepository) List added in v0.5.14

func (_m *VulndbCvesRepository) List(ids []string) ([]models.CVE, error)

List provides a mock function with given fields: ids

func (*VulndbCvesRepository) Read added in v0.5.14

func (_m *VulndbCvesRepository) Read(id string) (models.CVE, error)

Read provides a mock function with given fields: id

func (*VulndbCvesRepository) Save added in v0.5.14

func (_m *VulndbCvesRepository) Save(tx *gorm.DB, cve *models.CVE) error

Save provides a mock function with given fields: tx, cve

func (*VulndbCvesRepository) SaveBatch added in v0.5.14

func (_m *VulndbCvesRepository) SaveBatch(tx *gorm.DB, ts []models.CVE) error

SaveBatch provides a mock function with given fields: tx, ts

func (*VulndbCvesRepository) SaveBatchCPEMatch added in v0.5.14

func (_m *VulndbCvesRepository) SaveBatchCPEMatch(tx *gorm.DB, matches []models.CPEMatch) error

SaveBatchCPEMatch provides a mock function with given fields: tx, matches

func (*VulndbCvesRepository) SaveCveAffectedComponents added in v0.5.14

func (_m *VulndbCvesRepository) SaveCveAffectedComponents(tx *gorm.DB, cveId string, affectedComponentHashes []string) error

SaveCveAffectedComponents provides a mock function with given fields: tx, cveId, affectedComponentHashes

func (*VulndbCvesRepository) Transaction added in v0.5.14

func (_m *VulndbCvesRepository) Transaction(_a0 func(*gorm.DB) error) error

Transaction provides a mock function with given fields: _a0

type VulndbCvesRepository_Activate_Call added in v0.5.15

type VulndbCvesRepository_Activate_Call struct {
	*mock.Call
}

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

func (*VulndbCvesRepository_Activate_Call) Return added in v0.5.15

func (*VulndbCvesRepository_Activate_Call) Run added in v0.5.15

func (*VulndbCvesRepository_Activate_Call) RunAndReturn added in v0.5.15

type VulndbCvesRepository_Begin_Call added in v0.5.14

type VulndbCvesRepository_Begin_Call struct {
	*mock.Call
}

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

func (*VulndbCvesRepository_Begin_Call) Return added in v0.5.14

func (*VulndbCvesRepository_Begin_Call) Run added in v0.5.14

func (*VulndbCvesRepository_Begin_Call) RunAndReturn added in v0.5.14

type VulndbCvesRepository_CreateBatch_Call added in v0.5.14

type VulndbCvesRepository_CreateBatch_Call struct {
	*mock.Call
}

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

func (*VulndbCvesRepository_CreateBatch_Call) Return added in v0.5.14

func (*VulndbCvesRepository_CreateBatch_Call) Run added in v0.5.14

func (*VulndbCvesRepository_CreateBatch_Call) RunAndReturn added in v0.5.14

type VulndbCvesRepository_Create_Call added in v0.5.14

type VulndbCvesRepository_Create_Call struct {
	*mock.Call
}

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

func (*VulndbCvesRepository_Create_Call) Return added in v0.5.14

func (*VulndbCvesRepository_Create_Call) Run added in v0.5.14

func (*VulndbCvesRepository_Create_Call) RunAndReturn added in v0.5.14

type VulndbCvesRepository_Delete_Call added in v0.5.14

type VulndbCvesRepository_Delete_Call struct {
	*mock.Call
}

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

func (*VulndbCvesRepository_Delete_Call) Return added in v0.5.14

func (*VulndbCvesRepository_Delete_Call) Run added in v0.5.14

func (*VulndbCvesRepository_Delete_Call) RunAndReturn added in v0.5.14

type VulndbCvesRepository_Expecter added in v0.5.14

type VulndbCvesRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*VulndbCvesRepository_Expecter) Activate added in v0.5.15

func (_e *VulndbCvesRepository_Expecter) Activate(tx interface{}, id interface{}) *VulndbCvesRepository_Activate_Call

Activate is a helper method to define mock.On call

  • tx *gorm.DB
  • id string

func (*VulndbCvesRepository_Expecter) Begin added in v0.5.14

Begin is a helper method to define mock.On call

func (*VulndbCvesRepository_Expecter) Create added in v0.5.14

func (_e *VulndbCvesRepository_Expecter) Create(tx interface{}, t interface{}) *VulndbCvesRepository_Create_Call

Create is a helper method to define mock.On call

  • tx *gorm.DB
  • t *models.CVE

func (*VulndbCvesRepository_Expecter) CreateBatch added in v0.5.14

func (_e *VulndbCvesRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *VulndbCvesRepository_CreateBatch_Call

CreateBatch is a helper method to define mock.On call

  • tx *gorm.DB
  • ts []models.CVE

func (*VulndbCvesRepository_Expecter) Delete added in v0.5.14

func (_e *VulndbCvesRepository_Expecter) Delete(tx interface{}, id interface{}) *VulndbCvesRepository_Delete_Call

Delete is a helper method to define mock.On call

  • tx *gorm.DB
  • id string

func (*VulndbCvesRepository_Expecter) GetAllCPEMatchesID added in v0.5.14

GetAllCPEMatchesID is a helper method to define mock.On call

func (*VulndbCvesRepository_Expecter) GetAllCVEsID added in v0.5.14

GetAllCVEsID is a helper method to define mock.On call

func (*VulndbCvesRepository_Expecter) GetDB added in v0.5.14

GetDB is a helper method to define mock.On call

  • tx *gorm.DB

func (*VulndbCvesRepository_Expecter) List added in v0.5.14

List is a helper method to define mock.On call

  • ids []string

func (*VulndbCvesRepository_Expecter) Read added in v0.5.14

Read is a helper method to define mock.On call

  • id string

func (*VulndbCvesRepository_Expecter) Save added in v0.5.14

func (_e *VulndbCvesRepository_Expecter) Save(tx interface{}, cve interface{}) *VulndbCvesRepository_Save_Call

Save is a helper method to define mock.On call

  • tx *gorm.DB
  • cve *models.CVE

func (*VulndbCvesRepository_Expecter) SaveBatch added in v0.5.14

func (_e *VulndbCvesRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *VulndbCvesRepository_SaveBatch_Call

SaveBatch is a helper method to define mock.On call

  • tx *gorm.DB
  • ts []models.CVE

func (*VulndbCvesRepository_Expecter) SaveBatchCPEMatch added in v0.5.14

func (_e *VulndbCvesRepository_Expecter) SaveBatchCPEMatch(tx interface{}, matches interface{}) *VulndbCvesRepository_SaveBatchCPEMatch_Call

SaveBatchCPEMatch is a helper method to define mock.On call

  • tx *gorm.DB
  • matches []models.CPEMatch

func (*VulndbCvesRepository_Expecter) SaveCveAffectedComponents added in v0.5.14

func (_e *VulndbCvesRepository_Expecter) SaveCveAffectedComponents(tx interface{}, cveId interface{}, affectedComponentHashes interface{}) *VulndbCvesRepository_SaveCveAffectedComponents_Call

SaveCveAffectedComponents is a helper method to define mock.On call

  • tx *gorm.DB
  • cveId string
  • affectedComponentHashes []string

func (*VulndbCvesRepository_Expecter) Transaction added in v0.5.14

func (_e *VulndbCvesRepository_Expecter) Transaction(_a0 interface{}) *VulndbCvesRepository_Transaction_Call

Transaction is a helper method to define mock.On call

  • _a0 func(*gorm.DB) error

type VulndbCvesRepository_GetAllCPEMatchesID_Call added in v0.5.14

type VulndbCvesRepository_GetAllCPEMatchesID_Call struct {
	*mock.Call
}

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

func (*VulndbCvesRepository_GetAllCPEMatchesID_Call) Return added in v0.5.14

func (*VulndbCvesRepository_GetAllCPEMatchesID_Call) Run added in v0.5.14

func (*VulndbCvesRepository_GetAllCPEMatchesID_Call) RunAndReturn added in v0.5.14

type VulndbCvesRepository_GetAllCVEsID_Call added in v0.5.14

type VulndbCvesRepository_GetAllCVEsID_Call struct {
	*mock.Call
}

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

func (*VulndbCvesRepository_GetAllCVEsID_Call) Return added in v0.5.14

func (*VulndbCvesRepository_GetAllCVEsID_Call) Run added in v0.5.14

func (*VulndbCvesRepository_GetAllCVEsID_Call) RunAndReturn added in v0.5.14

type VulndbCvesRepository_GetDB_Call added in v0.5.14

type VulndbCvesRepository_GetDB_Call struct {
	*mock.Call
}

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

func (*VulndbCvesRepository_GetDB_Call) Return added in v0.5.14

func (*VulndbCvesRepository_GetDB_Call) Run added in v0.5.14

func (*VulndbCvesRepository_GetDB_Call) RunAndReturn added in v0.5.14

type VulndbCvesRepository_List_Call added in v0.5.14

type VulndbCvesRepository_List_Call struct {
	*mock.Call
}

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

func (*VulndbCvesRepository_List_Call) Return added in v0.5.14

func (*VulndbCvesRepository_List_Call) Run added in v0.5.14

func (*VulndbCvesRepository_List_Call) RunAndReturn added in v0.5.14

type VulndbCvesRepository_Read_Call added in v0.5.14

type VulndbCvesRepository_Read_Call struct {
	*mock.Call
}

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

func (*VulndbCvesRepository_Read_Call) Return added in v0.5.14

func (*VulndbCvesRepository_Read_Call) Run added in v0.5.14

func (*VulndbCvesRepository_Read_Call) RunAndReturn added in v0.5.14

type VulndbCvesRepository_SaveBatchCPEMatch_Call added in v0.5.14

type VulndbCvesRepository_SaveBatchCPEMatch_Call struct {
	*mock.Call
}

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

func (*VulndbCvesRepository_SaveBatchCPEMatch_Call) Return added in v0.5.14

func (*VulndbCvesRepository_SaveBatchCPEMatch_Call) Run added in v0.5.14

func (*VulndbCvesRepository_SaveBatchCPEMatch_Call) RunAndReturn added in v0.5.14

type VulndbCvesRepository_SaveBatch_Call added in v0.5.14

type VulndbCvesRepository_SaveBatch_Call struct {
	*mock.Call
}

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

func (*VulndbCvesRepository_SaveBatch_Call) Return added in v0.5.14

func (*VulndbCvesRepository_SaveBatch_Call) Run added in v0.5.14

func (*VulndbCvesRepository_SaveBatch_Call) RunAndReturn added in v0.5.14

type VulndbCvesRepository_SaveCveAffectedComponents_Call added in v0.5.14

type VulndbCvesRepository_SaveCveAffectedComponents_Call struct {
	*mock.Call
}

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

func (*VulndbCvesRepository_SaveCveAffectedComponents_Call) Return added in v0.5.14

func (*VulndbCvesRepository_SaveCveAffectedComponents_Call) Run added in v0.5.14

func (*VulndbCvesRepository_SaveCveAffectedComponents_Call) RunAndReturn added in v0.5.14

type VulndbCvesRepository_Save_Call added in v0.5.14

type VulndbCvesRepository_Save_Call struct {
	*mock.Call
}

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

func (*VulndbCvesRepository_Save_Call) Return added in v0.5.14

func (*VulndbCvesRepository_Save_Call) Run added in v0.5.14

func (*VulndbCvesRepository_Save_Call) RunAndReturn added in v0.5.14

type VulndbCvesRepository_Transaction_Call added in v0.5.14

type VulndbCvesRepository_Transaction_Call struct {
	*mock.Call
}

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

func (*VulndbCvesRepository_Transaction_Call) Return added in v0.5.14

func (*VulndbCvesRepository_Transaction_Call) Run added in v0.5.14

func (*VulndbCvesRepository_Transaction_Call) RunAndReturn added in v0.5.14

type VulndbCweRepository

type VulndbCweRepository struct {
	mock.Mock
}

VulndbCweRepository is an autogenerated mock type for the cweRepository type

func NewVulndbCweRepository

func NewVulndbCweRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *VulndbCweRepository

NewVulndbCweRepository creates a new instance of VulndbCweRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*VulndbCweRepository) EXPECT

func (*VulndbCweRepository) SaveBatch

func (_m *VulndbCweRepository) SaveBatch(tx *gorm.DB, cwes []models.CWE) error

SaveBatch provides a mock function with given fields: tx, cwes

type VulndbCweRepository_Expecter

type VulndbCweRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*VulndbCweRepository_Expecter) SaveBatch

func (_e *VulndbCweRepository_Expecter) SaveBatch(tx interface{}, cwes interface{}) *VulndbCweRepository_SaveBatch_Call

SaveBatch is a helper method to define mock.On call

  • tx *gorm.DB
  • cwes []models.CWE

type VulndbCweRepository_SaveBatch_Call

type VulndbCweRepository_SaveBatch_Call struct {
	*mock.Call
}

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

func (*VulndbCweRepository_SaveBatch_Call) Return

func (*VulndbCweRepository_SaveBatch_Call) Run

func (*VulndbCweRepository_SaveBatch_Call) RunAndReturn

type VulndbCwesRepository added in v0.5.14

type VulndbCwesRepository struct {
	mock.Mock
}

VulndbCwesRepository is an autogenerated mock type for the cwesRepository type

func NewVulndbCwesRepository added in v0.5.14

func NewVulndbCwesRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *VulndbCwesRepository

NewVulndbCwesRepository creates a new instance of VulndbCwesRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*VulndbCwesRepository) EXPECT added in v0.5.14

func (*VulndbCwesRepository) GetAllCWEsID added in v0.5.14

func (_m *VulndbCwesRepository) GetAllCWEsID() ([]string, error)

GetAllCWEsID provides a mock function with no fields

func (*VulndbCwesRepository) SaveBatch added in v0.5.14

func (_m *VulndbCwesRepository) SaveBatch(tx *gorm.DB, cwes []models.CWE) error

SaveBatch provides a mock function with given fields: tx, cwes

type VulndbCwesRepository_Expecter added in v0.5.14

type VulndbCwesRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*VulndbCwesRepository_Expecter) GetAllCWEsID added in v0.5.14

GetAllCWEsID is a helper method to define mock.On call

func (*VulndbCwesRepository_Expecter) SaveBatch added in v0.5.14

func (_e *VulndbCwesRepository_Expecter) SaveBatch(tx interface{}, cwes interface{}) *VulndbCwesRepository_SaveBatch_Call

SaveBatch is a helper method to define mock.On call

  • tx *gorm.DB
  • cwes []models.CWE

type VulndbCwesRepository_GetAllCWEsID_Call added in v0.5.14

type VulndbCwesRepository_GetAllCWEsID_Call struct {
	*mock.Call
}

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

func (*VulndbCwesRepository_GetAllCWEsID_Call) Return added in v0.5.14

func (*VulndbCwesRepository_GetAllCWEsID_Call) Run added in v0.5.14

func (*VulndbCwesRepository_GetAllCWEsID_Call) RunAndReturn added in v0.5.14

type VulndbCwesRepository_SaveBatch_Call added in v0.5.14

type VulndbCwesRepository_SaveBatch_Call struct {
	*mock.Call
}

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

func (*VulndbCwesRepository_SaveBatch_Call) Return added in v0.5.14

func (*VulndbCwesRepository_SaveBatch_Call) Run added in v0.5.14

func (*VulndbCwesRepository_SaveBatch_Call) RunAndReturn added in v0.5.14

type VulndbExploitRepository

type VulndbExploitRepository struct {
	mock.Mock
}

VulndbExploitRepository is an autogenerated mock type for the exploitRepository type

func NewVulndbExploitRepository

func NewVulndbExploitRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *VulndbExploitRepository

NewVulndbExploitRepository creates a new instance of VulndbExploitRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*VulndbExploitRepository) EXPECT

func (*VulndbExploitRepository) SaveBatch

func (_m *VulndbExploitRepository) SaveBatch(tx *gorm.DB, exploits []models.Exploit) error

SaveBatch provides a mock function with given fields: tx, exploits

type VulndbExploitRepository_Expecter

type VulndbExploitRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*VulndbExploitRepository_Expecter) SaveBatch

func (_e *VulndbExploitRepository_Expecter) SaveBatch(tx interface{}, exploits interface{}) *VulndbExploitRepository_SaveBatch_Call

SaveBatch is a helper method to define mock.On call

  • tx *gorm.DB
  • exploits []models.Exploit

type VulndbExploitRepository_SaveBatch_Call

type VulndbExploitRepository_SaveBatch_Call struct {
	*mock.Call
}

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

func (*VulndbExploitRepository_SaveBatch_Call) Return

func (*VulndbExploitRepository_SaveBatch_Call) Run

func (*VulndbExploitRepository_SaveBatch_Call) RunAndReturn

type VulndbExploitsRepository added in v0.5.14

type VulndbExploitsRepository struct {
	mock.Mock
}

VulndbExploitsRepository is an autogenerated mock type for the exploitsRepository type

func NewVulndbExploitsRepository added in v0.5.14

func NewVulndbExploitsRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *VulndbExploitsRepository

NewVulndbExploitsRepository creates a new instance of VulndbExploitsRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*VulndbExploitsRepository) EXPECT added in v0.5.14

func (*VulndbExploitsRepository) GetAllExploitsID added in v0.5.14

func (_m *VulndbExploitsRepository) GetAllExploitsID() ([]string, error)

GetAllExploitsID provides a mock function with no fields

func (*VulndbExploitsRepository) SaveBatch added in v0.5.14

func (_m *VulndbExploitsRepository) SaveBatch(tx *gorm.DB, exploits []models.Exploit) error

SaveBatch provides a mock function with given fields: tx, exploits

type VulndbExploitsRepository_Expecter added in v0.5.14

type VulndbExploitsRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*VulndbExploitsRepository_Expecter) GetAllExploitsID added in v0.5.14

GetAllExploitsID is a helper method to define mock.On call

func (*VulndbExploitsRepository_Expecter) SaveBatch added in v0.5.14

func (_e *VulndbExploitsRepository_Expecter) SaveBatch(tx interface{}, exploits interface{}) *VulndbExploitsRepository_SaveBatch_Call

SaveBatch is a helper method to define mock.On call

  • tx *gorm.DB
  • exploits []models.Exploit

type VulndbExploitsRepository_GetAllExploitsID_Call added in v0.5.14

type VulndbExploitsRepository_GetAllExploitsID_Call struct {
	*mock.Call
}

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

func (*VulndbExploitsRepository_GetAllExploitsID_Call) Return added in v0.5.14

func (*VulndbExploitsRepository_GetAllExploitsID_Call) Run added in v0.5.14

func (*VulndbExploitsRepository_GetAllExploitsID_Call) RunAndReturn added in v0.5.14

type VulndbExploitsRepository_SaveBatch_Call added in v0.5.14

type VulndbExploitsRepository_SaveBatch_Call struct {
	*mock.Call
}

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

func (*VulndbExploitsRepository_SaveBatch_Call) Return added in v0.5.14

func (*VulndbExploitsRepository_SaveBatch_Call) Run added in v0.5.14

func (*VulndbExploitsRepository_SaveBatch_Call) RunAndReturn added in v0.5.14

type VulndbGithubExploitRepository

type VulndbGithubExploitRepository struct {
	mock.Mock
}

VulndbGithubExploitRepository is an autogenerated mock type for the githubExploitRepository type

func NewVulndbGithubExploitRepository

func NewVulndbGithubExploitRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *VulndbGithubExploitRepository

NewVulndbGithubExploitRepository creates a new instance of VulndbGithubExploitRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*VulndbGithubExploitRepository) EXPECT

func (*VulndbGithubExploitRepository) SaveBatch

func (_m *VulndbGithubExploitRepository) SaveBatch(tx *gorm.DB, exploits []models.Exploit) error

SaveBatch provides a mock function with given fields: tx, exploits

type VulndbGithubExploitRepository_Expecter

type VulndbGithubExploitRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*VulndbGithubExploitRepository_Expecter) SaveBatch

func (_e *VulndbGithubExploitRepository_Expecter) SaveBatch(tx interface{}, exploits interface{}) *VulndbGithubExploitRepository_SaveBatch_Call

SaveBatch is a helper method to define mock.On call

  • tx *gorm.DB
  • exploits []models.Exploit

type VulndbGithubExploitRepository_SaveBatch_Call

type VulndbGithubExploitRepository_SaveBatch_Call struct {
	*mock.Call
}

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

func (*VulndbGithubExploitRepository_SaveBatch_Call) Return

func (*VulndbGithubExploitRepository_SaveBatch_Call) Run

func (*VulndbGithubExploitRepository_SaveBatch_Call) RunAndReturn

type VulndbLeaderElector

type VulndbLeaderElector struct {
	mock.Mock
}

VulndbLeaderElector is an autogenerated mock type for the leaderElector type

func NewVulndbLeaderElector

func NewVulndbLeaderElector(t interface {
	mock.TestingT
	Cleanup(func())
}) *VulndbLeaderElector

NewVulndbLeaderElector creates a new instance of VulndbLeaderElector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*VulndbLeaderElector) EXPECT

func (*VulndbLeaderElector) IfLeader added in v0.5.14

func (_m *VulndbLeaderElector) IfLeader(ctx context.Context, fn func() error)

IfLeader provides a mock function with given fields: ctx, fn

type VulndbLeaderElector_Expecter

type VulndbLeaderElector_Expecter struct {
	// contains filtered or unexported fields
}

func (*VulndbLeaderElector_Expecter) IfLeader added in v0.5.14

func (_e *VulndbLeaderElector_Expecter) IfLeader(ctx interface{}, fn interface{}) *VulndbLeaderElector_IfLeader_Call

IfLeader is a helper method to define mock.On call

  • ctx context.Context
  • fn func() error

type VulndbLeaderElector_IfLeader_Call added in v0.5.14

type VulndbLeaderElector_IfLeader_Call struct {
	*mock.Call
}

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

func (*VulndbLeaderElector_IfLeader_Call) Return added in v0.5.14

func (*VulndbLeaderElector_IfLeader_Call) Run added in v0.5.14

func (*VulndbLeaderElector_IfLeader_Call) RunAndReturn added in v0.5.14

type VulndbRepository

type VulndbRepository struct {
	mock.Mock
}

VulndbRepository is an autogenerated mock type for the repository type

func NewVulndbRepository

func NewVulndbRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *VulndbRepository

NewVulndbRepository creates a new instance of VulndbRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*VulndbRepository) EXPECT

func (*VulndbRepository) FindAllListPaged

func (_m *VulndbRepository) FindAllListPaged(tx *gorm.DB, pageInfo core.PageInfo, filter []core.FilterQuery, sort []core.SortQuery) (core.Paged[models.CVE], error)

FindAllListPaged provides a mock function with given fields: tx, pageInfo, filter, sort

func (*VulndbRepository) FindCVE

func (_m *VulndbRepository) FindCVE(tx *gorm.DB, cveId string) (models.CVE, error)

FindCVE provides a mock function with given fields: tx, cveId

type VulndbRepository_Expecter

type VulndbRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*VulndbRepository_Expecter) FindAllListPaged

func (_e *VulndbRepository_Expecter) FindAllListPaged(tx interface{}, pageInfo interface{}, filter interface{}, sort interface{}) *VulndbRepository_FindAllListPaged_Call

FindAllListPaged is a helper method to define mock.On call

  • tx *gorm.DB
  • pageInfo core.PageInfo
  • filter []core.FilterQuery
  • sort []core.SortQuery

func (*VulndbRepository_Expecter) FindCVE

func (_e *VulndbRepository_Expecter) FindCVE(tx interface{}, cveId interface{}) *VulndbRepository_FindCVE_Call

FindCVE is a helper method to define mock.On call

  • tx *gorm.DB
  • cveId string

type VulndbRepository_FindAllListPaged_Call

type VulndbRepository_FindAllListPaged_Call struct {
	*mock.Call
}

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

func (*VulndbRepository_FindAllListPaged_Call) Return

func (*VulndbRepository_FindAllListPaged_Call) Run

func (*VulndbRepository_FindAllListPaged_Call) RunAndReturn

type VulndbRepository_FindCVE_Call

type VulndbRepository_FindCVE_Call struct {
	*mock.Call
}

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

func (*VulndbRepository_FindCVE_Call) Return

func (*VulndbRepository_FindCVE_Call) Run

func (*VulndbRepository_FindCVE_Call) RunAndReturn

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL