mocks

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

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

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

type AssetAssetComponentsLoader_Expecter

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

func (*AssetAssetComponentsLoader_Expecter) GetVersions

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

GetVersions is a helper method to define mock.On call

  • tx *gorm.DB
  • _a1 models.Asset

func (*AssetAssetComponentsLoader_Expecter) LoadAssetComponents

func (_e *AssetAssetComponentsLoader_Expecter) LoadAssetComponents(tx interface{}, _a1 interface{}, version interface{}) *AssetAssetComponentsLoader_LoadAssetComponents_Call

LoadAssetComponents is a helper method to define mock.On call

  • tx *gorm.DB
  • _a1 models.Asset
  • 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_LoadAssetComponents_Call

type AssetAssetComponentsLoader_LoadAssetComponents_Call struct {
	*mock.Call
}

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

func (*AssetAssetComponentsLoader_LoadAssetComponents_Call) Return

func (*AssetAssetComponentsLoader_LoadAssetComponents_Call) Run

func (*AssetAssetComponentsLoader_LoadAssetComponents_Call) RunAndReturn

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

type AssetAssetRepository_Expecter

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

func (*AssetAssetRepository_Expecter) Save

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

Save is a helper method to define mock.On call

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

type AssetAssetRepository_Save_Call

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

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

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

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

LoadAssetComponents provides a mock function with given fields: tx, _a1, 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) LoadAssetComponents

func (_e *AssetComponentRepository_Expecter) LoadAssetComponents(tx interface{}, _a1 interface{}, version interface{}) *AssetComponentRepository_LoadAssetComponents_Call

LoadAssetComponents is a helper method to define mock.On call

  • tx *gorm.DB
  • _a1 models.Asset
  • 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_LoadAssetComponents_Call

type AssetComponentRepository_LoadAssetComponents_Call struct {
	*mock.Call
}

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

func (*AssetComponentRepository_LoadAssetComponents_Call) Return

func (*AssetComponentRepository_LoadAssetComponents_Call) Run

func (*AssetComponentRepository_LoadAssetComponents_Call) RunAndReturn

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) 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) 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_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) error

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

func (*AssetFlawService) UserDetectedFlaws

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

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

func (*AssetFlawService) UserFixedFlaws

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

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

type AssetFlawService_Expecter

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

func (*AssetFlawService_Expecter) RecalculateRawRiskAssessment

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

RecalculateRawRiskAssessment is a helper method to define mock.On call

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

func (*AssetFlawService_Expecter) UpdateFlawState

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

UpdateFlawState is a helper method to define mock.On call

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

func (*AssetFlawService_Expecter) UserDetectedFlaws

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

UserDetectedFlaws is a helper method to define mock.On call

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

func (*AssetFlawService_Expecter) UserFixedFlaws

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

UserFixedFlaws is a helper method to define mock.On call

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

type AssetFlawService_RecalculateRawRiskAssessment_Call

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

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

Begin provides a mock function with given 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) 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_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) 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) 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_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 AssetVulnService

type AssetVulnService struct {
	mock.Mock
}

AssetVulnService is an autogenerated mock type for the vulnService type

func NewAssetVulnService

func NewAssetVulnService(t interface {
	mock.TestingT
	Cleanup(func())
}) *AssetVulnService

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

func (*AssetVulnService) EXPECT

func (*AssetVulnService) GetVulnsForAll

func (_m *AssetVulnService) GetVulnsForAll(purls []string) ([]models.VulnInPackage, error)

GetVulnsForAll provides a mock function with given fields: purls

type AssetVulnService_Expecter

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

func (*AssetVulnService_Expecter) GetVulnsForAll

func (_e *AssetVulnService_Expecter) GetVulnsForAll(purls interface{}) *AssetVulnService_GetVulnsForAll_Call

GetVulnsForAll is a helper method to define mock.On call

  • purls []string

type AssetVulnService_GetVulnsForAll_Call

type AssetVulnService_GetVulnsForAll_Call struct {
	*mock.Call
}

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

func (*AssetVulnService_GetVulnsForAll_Call) Return

func (*AssetVulnService_GetVulnsForAll_Call) Run

func (*AssetVulnService_GetVulnsForAll_Call) RunAndReturn

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 given 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 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 given 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) (interface{}, 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 (_c *FlawCveRepository_FindCVE_Call) Return(_a0 interface{}, _a1 error) *FlawCveRepository_FindCVE_Call

func (*FlawCveRepository_FindCVE_Call) Run

func (*FlawCveRepository_FindCVE_Call) RunAndReturn

func (_c *FlawCveRepository_FindCVE_Call) RunAndReturn(run func(*gorm.DB, string) (interface{}, error)) *FlawCveRepository_FindCVE_Call

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 given 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) 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 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) Begin

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

Begin provides a mock function with given 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, filter []core.FilterQuery, sort []core.SortQuery, assetId uuid.UUID) (core.Paged[models.Flaw], error)

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

func (*FlawRepository) GetDB

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

GetDB provides a mock function with given fields: tx

func (*FlawRepository) List

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

List provides a mock function with given fields: ids

func (*FlawRepository) Read

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

Read provides a mock function with given fields: id

func (*FlawRepository) 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_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) 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{}, 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
  • filter []core.FilterQuery
  • sort []core.SortQuery
  • assetId uuid.UUID

func (*FlawRepository_Expecter) GetDB

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

GetDB is a helper method to define mock.On call

  • tx *gorm.DB

func (*FlawRepository_Expecter) List

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

List is a helper method to define mock.On call

  • ids []string

func (*FlawRepository_Expecter) Read

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

Read is a helper method to define mock.On call

  • id string

func (*FlawRepository_Expecter) Save

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

Save is a helper method to define mock.On call

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

func (*FlawRepository_Expecter) SaveBatch

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

SaveBatch is a helper method to define mock.On call

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

func (*FlawRepository_Expecter) Transaction

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

Transaction is a helper method to define mock.On call

  • _a0 func(*gorm.DB) error

type FlawRepository_GetByAssetIdPaged_Call

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

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

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

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

Begin provides a mock function with given fields:

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

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_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) Begin

Begin is a helper method to define mock.On call

func (*OrgRepository_Expecter) Create

func (_e *OrgRepository_Expecter) Create(tx interface{}, t interface{}) *OrgRepository_Create_Call

Create is a helper method to define mock.On call

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

func (*OrgRepository_Expecter) CreateBatch

func (_e *OrgRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *OrgRepository_CreateBatch_Call

CreateBatch is a helper method to define mock.On call

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

func (*OrgRepository_Expecter) Delete

func (_e *OrgRepository_Expecter) Delete(tx interface{}, id interface{}) *OrgRepository_Delete_Call

Delete is a helper method to define mock.On call

  • tx *gorm.DB
  • id uuid.UUID

func (*OrgRepository_Expecter) GetDB

func (_e *OrgRepository_Expecter) GetDB(tx interface{}) *OrgRepository_GetDB_Call

GetDB is a helper method to define mock.On call

  • tx *gorm.DB

func (*OrgRepository_Expecter) List

func (_e *OrgRepository_Expecter) List(ids interface{}) *OrgRepository_List_Call

List is a helper method to define mock.On call

  • ids []uuid.UUID

func (*OrgRepository_Expecter) Read

func (_e *OrgRepository_Expecter) Read(id interface{}) *OrgRepository_Read_Call

Read is a helper method to define mock.On call

  • id uuid.UUID

func (*OrgRepository_Expecter) ReadBySlug

func (_e *OrgRepository_Expecter) ReadBySlug(slug interface{}) *OrgRepository_ReadBySlug_Call

ReadBySlug is a helper method to define mock.On call

  • slug string

func (*OrgRepository_Expecter) Save

func (_e *OrgRepository_Expecter) Save(tx interface{}, t interface{}) *OrgRepository_Save_Call

Save is a helper method to define mock.On call

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

func (*OrgRepository_Expecter) SaveBatch

func (_e *OrgRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *OrgRepository_SaveBatch_Call

SaveBatch is a helper method to define mock.On call

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

func (*OrgRepository_Expecter) Transaction

func (_e *OrgRepository_Expecter) Transaction(_a0 interface{}) *OrgRepository_Transaction_Call

Transaction is a helper method to define mock.On call

  • _a0 func(*gorm.DB) error

type OrgRepository_GetDB_Call

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

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

Begin provides a mock function with given 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_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) 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) Begin

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

Begin provides a mock function with given fields:

func (*ProjectProjectRepository) Create

func (_m *ProjectProjectRepository) Create(tx *gorm.DB, t *models.Project) error

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

func (*ProjectProjectRepository) CreateBatch

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

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

func (*ProjectProjectRepository) Delete

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

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

func (*ProjectProjectRepository) EXPECT

func (*ProjectProjectRepository) GetDB

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

GetDB provides a mock function with given fields: tx

func (*ProjectProjectRepository) List

func (_m *ProjectProjectRepository) List(ids []uuid.UUID) ([]models.Project, error)

List provides a mock function with given fields: ids

func (*ProjectProjectRepository) Read

Read provides a mock function with given fields: id

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

func (_m *ProjectProjectRepository) Save(tx *gorm.DB, t *models.Project) error

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

func (*ProjectProjectRepository) SaveBatch

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

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

func (*ProjectProjectRepository) Transaction

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

Transaction provides a mock function with given fields: _a0

type ProjectProjectRepository_Begin_Call

type ProjectProjectRepository_Begin_Call struct {
	*mock.Call
}

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

func (*ProjectProjectRepository_Begin_Call) Return

func (*ProjectProjectRepository_Begin_Call) Run

func (*ProjectProjectRepository_Begin_Call) RunAndReturn

type ProjectProjectRepository_CreateBatch_Call

type ProjectProjectRepository_CreateBatch_Call struct {
	*mock.Call
}

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

func (*ProjectProjectRepository_CreateBatch_Call) Return

func (*ProjectProjectRepository_CreateBatch_Call) Run

func (*ProjectProjectRepository_CreateBatch_Call) RunAndReturn

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

Begin is a helper method to define mock.On call

func (*ProjectProjectRepository_Expecter) Create

func (_e *ProjectProjectRepository_Expecter) Create(tx interface{}, t interface{}) *ProjectProjectRepository_Create_Call

Create is a helper method to define mock.On call

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

func (*ProjectProjectRepository_Expecter) CreateBatch

func (_e *ProjectProjectRepository_Expecter) CreateBatch(tx interface{}, ts interface{}) *ProjectProjectRepository_CreateBatch_Call

CreateBatch is a helper method to define mock.On call

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

func (*ProjectProjectRepository_Expecter) Delete

func (_e *ProjectProjectRepository_Expecter) Delete(tx interface{}, id interface{}) *ProjectProjectRepository_Delete_Call

Delete is a helper method to define mock.On call

  • tx *gorm.DB
  • id uuid.UUID

func (*ProjectProjectRepository_Expecter) GetDB

GetDB is a helper method to define mock.On call

  • tx *gorm.DB

func (*ProjectProjectRepository_Expecter) List

List is a helper method to define mock.On call

  • ids []uuid.UUID

func (*ProjectProjectRepository_Expecter) Read

Read is a helper method to define mock.On call

  • id uuid.UUID

func (*ProjectProjectRepository_Expecter) ReadBySlug

func (_e *ProjectProjectRepository_Expecter) ReadBySlug(organizationID interface{}, slug interface{}) *ProjectProjectRepository_ReadBySlug_Call

ReadBySlug is a helper method to define mock.On call

  • organizationID uuid.UUID
  • slug string

func (*ProjectProjectRepository_Expecter) Save

func (_e *ProjectProjectRepository_Expecter) Save(tx interface{}, t interface{}) *ProjectProjectRepository_Save_Call

Save is a helper method to define mock.On call

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

func (*ProjectProjectRepository_Expecter) SaveBatch

func (_e *ProjectProjectRepository_Expecter) SaveBatch(tx interface{}, ts interface{}) *ProjectProjectRepository_SaveBatch_Call

SaveBatch is a helper method to define mock.On call

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

func (*ProjectProjectRepository_Expecter) Transaction

Transaction is a helper method to define mock.On call

  • _a0 func(*gorm.DB) error

type ProjectProjectRepository_GetDB_Call

type ProjectProjectRepository_GetDB_Call struct {
	*mock.Call
}

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

func (*ProjectProjectRepository_GetDB_Call) Return

func (*ProjectProjectRepository_GetDB_Call) Run

func (*ProjectProjectRepository_GetDB_Call) RunAndReturn

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 (*ProjectProjectRepository_List_Call) RunAndReturn

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_Read_Call

type ProjectProjectRepository_Read_Call struct {
	*mock.Call
}

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

func (*ProjectProjectRepository_Read_Call) Return

func (*ProjectProjectRepository_Read_Call) Run

func (*ProjectProjectRepository_Read_Call) RunAndReturn

type ProjectProjectRepository_SaveBatch_Call

type ProjectProjectRepository_SaveBatch_Call struct {
	*mock.Call
}

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

func (*ProjectProjectRepository_SaveBatch_Call) Return

func (*ProjectProjectRepository_SaveBatch_Call) Run

func (*ProjectProjectRepository_SaveBatch_Call) RunAndReturn

type ProjectProjectRepository_Save_Call

type ProjectProjectRepository_Save_Call struct {
	*mock.Call
}

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

func (*ProjectProjectRepository_Save_Call) Return

func (*ProjectProjectRepository_Save_Call) Run

func (*ProjectProjectRepository_Save_Call) RunAndReturn

type ProjectProjectRepository_Transaction_Call

type ProjectProjectRepository_Transaction_Call struct {
	*mock.Call
}

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

func (*ProjectProjectRepository_Transaction_Call) Return

func (*ProjectProjectRepository_Transaction_Call) Run

func (*ProjectProjectRepository_Transaction_Call) RunAndReturn

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 given fields:

func (*RiskCvssInterface) Get

func (_m *RiskCvssInterface) Get(key string) (string, error)

Get provides a mock function with given fields: key

func (*RiskCvssInterface) Set

func (_m *RiskCvssInterface) Set(key string, value string) error

Set provides a mock function with given fields: key, value

func (*RiskCvssInterface) TemporalScore

func (_m *RiskCvssInterface) TemporalScore() float64

TemporalScore provides a mock function with given fields:

func (*RiskCvssInterface) Vector

func (_m *RiskCvssInterface) Vector() string

Vector provides a mock function with given fields:

type RiskCvssInterface_EnvironmentalScore_Call

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 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(user string, scannerID string, asset models.Asset, flaws []models.Flaw) (int, int, error)

HandleScanResult provides a mock function with given fields: user, scannerID, asset, flaws

func (*ScanAssetService) UpdateSBOM

func (_m *ScanAssetService) UpdateSBOM(asset models.Asset, version string, sbom *cyclonedx.BOM) error

UpdateSBOM provides a mock function with given fields: asset, version, sbom

type ScanAssetService_Expecter

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

func (*ScanAssetService_Expecter) HandleScanResult

func (_e *ScanAssetService_Expecter) HandleScanResult(user interface{}, scannerID interface{}, asset interface{}, flaws interface{}) *ScanAssetService_HandleScanResult_Call

HandleScanResult is a helper method to define mock.On call

  • user string
  • scannerID string
  • asset models.Asset
  • flaws []models.Flaw

func (*ScanAssetService_Expecter) UpdateSBOM

func (_e *ScanAssetService_Expecter) UpdateSBOM(asset interface{}, version interface{}, sbom interface{}) *ScanAssetService_UpdateSBOM_Call

UpdateSBOM is a helper method to define mock.On call

  • asset models.Asset
  • version string
  • sbom *cyclonedx.BOM

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, amountClosed int, err error) *ScanAssetService_HandleScanResult_Call

func (*ScanAssetService_HandleScanResult_Call) Run

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 (*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(packageIdentifier string) ([]models.VulnInPackage, error)

GetVulns provides a mock function with given fields: packageIdentifier

type ScanComparer_Expecter

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

func (*ScanComparer_Expecter) GetVulns

func (_e *ScanComparer_Expecter) GetVulns(packageIdentifier interface{}) *ScanComparer_GetVulns_Call

GetVulns is a helper method to define mock.On call

  • packageIdentifier 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(packageIdentifier 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) 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) 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_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 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 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) Begin

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

Begin provides a mock function with given 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 given fields:

func (*VulndbCveRepository) List

func (_m *VulndbCveRepository) List(ids []string) ([]models.CVE, error)

List provides a mock function with given fields: ids

func (*VulndbCveRepository) Read

func (_m *VulndbCveRepository) Read(id string) (models.CVE, error)

Read provides a mock function with given fields: id

func (*VulndbCveRepository) 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) Transaction

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

Transaction provides a mock function with given fields: _a0

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) 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) 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_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 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 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 VulndbFlawService

type VulndbFlawService struct {
	mock.Mock
}

VulndbFlawService is an autogenerated mock type for the flawService type

func NewVulndbFlawService

func NewVulndbFlawService(t interface {
	mock.TestingT
	Cleanup(func())
}) *VulndbFlawService

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

func (*VulndbFlawService) EXPECT

func (*VulndbFlawService) RecalculateAllRawRiskAssessments

func (_m *VulndbFlawService) RecalculateAllRawRiskAssessments() error

RecalculateAllRawRiskAssessments provides a mock function with given fields:

type VulndbFlawService_Expecter

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

func (*VulndbFlawService_Expecter) RecalculateAllRawRiskAssessments

RecalculateAllRawRiskAssessments is a helper method to define mock.On call

type VulndbFlawService_RecalculateAllRawRiskAssessments_Call

type VulndbFlawService_RecalculateAllRawRiskAssessments_Call struct {
	*mock.Call
}

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

func (*VulndbFlawService_RecalculateAllRawRiskAssessments_Call) Return

func (*VulndbFlawService_RecalculateAllRawRiskAssessments_Call) Run

func (*VulndbFlawService_RecalculateAllRawRiskAssessments_Call) RunAndReturn

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

func (_m *VulndbLeaderElector) IsLeader() bool

IsLeader provides a mock function with given fields:

type VulndbLeaderElector_Expecter

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

func (*VulndbLeaderElector_Expecter) IsLeader

IsLeader is a helper method to define mock.On call

type VulndbLeaderElector_IsLeader_Call

type VulndbLeaderElector_IsLeader_Call struct {
	*mock.Call
}

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

func (*VulndbLeaderElector_IsLeader_Call) Return

func (*VulndbLeaderElector_IsLeader_Call) Run

func (*VulndbLeaderElector_IsLeader_Call) RunAndReturn

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) (interface{}, 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 (_c *VulndbRepository_FindCVE_Call) Return(_a0 interface{}, _a1 error) *VulndbRepository_FindCVE_Call

func (*VulndbRepository_FindCVE_Call) Run

func (*VulndbRepository_FindCVE_Call) RunAndReturn

func (_c *VulndbRepository_FindCVE_Call) RunAndReturn(run func(*gorm.DB, string) (interface{}, error)) *VulndbRepository_FindCVE_Call

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL