Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type FakeCSVUtilsInterface
- func (fake *FakeCSVUtilsInterface) GetDependenciesList() ([]utils.DepList, error)
- func (fake *FakeCSVUtilsInterface) GetDependenciesListCallCount() int
- func (fake *FakeCSVUtilsInterface) GetDependenciesListCalls(stub func() ([]utils.DepList, error))
- func (fake *FakeCSVUtilsInterface) GetDependenciesListReturns(result1 []utils.DepList, result2 error)
- func (fake *FakeCSVUtilsInterface) GetDependenciesListReturnsOnCall(i int, result1 []utils.DepList, result2 error)
- func (fake *FakeCSVUtilsInterface) Invocations() map[string][][]interface{}
- type FakeMongoUtilsInterface
- func (fake *FakeMongoUtilsInterface) CVEExists(arg1 string, arg2 context.Context, arg3 *mongo.Collection) (bool, error)
- func (fake *FakeMongoUtilsInterface) CVEExistsArgsForCall(i int) (string, context.Context, *mongo.Collection)
- func (fake *FakeMongoUtilsInterface) CVEExistsCallCount() int
- func (fake *FakeMongoUtilsInterface) CVEExistsCalls(stub func(string, context.Context, *mongo.Collection) (bool, error))
- func (fake *FakeMongoUtilsInterface) CVEExistsReturns(result1 bool, result2 error)
- func (fake *FakeMongoUtilsInterface) CVEExistsReturnsOnCall(i int, result1 bool, result2 error)
- func (fake *FakeMongoUtilsInterface) CreateCVE(arg1 *utils.CVE, arg2 context.Context, arg3 *mongo.Collection) error
- func (fake *FakeMongoUtilsInterface) CreateCVEArgsForCall(i int) (*utils.CVE, context.Context, *mongo.Collection)
- func (fake *FakeMongoUtilsInterface) CreateCVECallCount() int
- func (fake *FakeMongoUtilsInterface) CreateCVECalls(stub func(*utils.CVE, context.Context, *mongo.Collection) error)
- func (fake *FakeMongoUtilsInterface) CreateCVEReturns(result1 error)
- func (fake *FakeMongoUtilsInterface) CreateCVEReturnsOnCall(i int, result1 error)
- func (fake *FakeMongoUtilsInterface) DisconnectMongoClient(arg1 *mongo.Client, arg2 context.Context) error
- func (fake *FakeMongoUtilsInterface) DisconnectMongoClientArgsForCall(i int) (*mongo.Client, context.Context)
- func (fake *FakeMongoUtilsInterface) DisconnectMongoClientCallCount() int
- func (fake *FakeMongoUtilsInterface) DisconnectMongoClientCalls(stub func(*mongo.Client, context.Context) error)
- func (fake *FakeMongoUtilsInterface) DisconnectMongoClientReturns(result1 error)
- func (fake *FakeMongoUtilsInterface) DisconnectMongoClientReturnsOnCall(i int, result1 error)
- func (fake *FakeMongoUtilsInterface) FindCVE(arg1 string, arg2 context.Context, arg3 *mongo.Collection) (utils.CVE, error)
- func (fake *FakeMongoUtilsInterface) FindCVEArgsForCall(i int) (string, context.Context, *mongo.Collection)
- func (fake *FakeMongoUtilsInterface) FindCVECallCount() int
- func (fake *FakeMongoUtilsInterface) FindCVECalls(stub func(string, context.Context, *mongo.Collection) (utils.CVE, error))
- func (fake *FakeMongoUtilsInterface) FindCVEReturns(result1 utils.CVE, result2 error)
- func (fake *FakeMongoUtilsInterface) FindCVEReturnsOnCall(i int, result1 utils.CVE, result2 error)
- func (fake *FakeMongoUtilsInterface) GetAllCVEs(arg1 context.Context, arg2 *mongo.Collection) ([]utils.CVE, error)
- func (fake *FakeMongoUtilsInterface) GetAllCVEsArgsForCall(i int) (context.Context, *mongo.Collection)
- func (fake *FakeMongoUtilsInterface) GetAllCVEsCallCount() int
- func (fake *FakeMongoUtilsInterface) GetAllCVEsCalls(stub func(context.Context, *mongo.Collection) ([]utils.CVE, error))
- func (fake *FakeMongoUtilsInterface) GetAllCVEsReturns(result1 []utils.CVE, result2 error)
- func (fake *FakeMongoUtilsInterface) GetAllCVEsReturnsOnCall(i int, result1 []utils.CVE, result2 error)
- func (fake *FakeMongoUtilsInterface) GetMongoClient() (*mongo.Client, context.Context, error)
- func (fake *FakeMongoUtilsInterface) GetMongoClientCallCount() int
- func (fake *FakeMongoUtilsInterface) GetMongoClientCalls(stub func() (*mongo.Client, context.Context, error))
- func (fake *FakeMongoUtilsInterface) GetMongoClientReturns(result1 *mongo.Client, result2 context.Context, result3 error)
- func (fake *FakeMongoUtilsInterface) GetMongoClientReturnsOnCall(i int, result1 *mongo.Client, result2 context.Context, result3 error)
- func (fake *FakeMongoUtilsInterface) GetMongoCollection(arg1 mongo.Client, arg2 string, arg3 string) *mongo.Collection
- func (fake *FakeMongoUtilsInterface) GetMongoCollectionArgsForCall(i int) (mongo.Client, string, string)
- func (fake *FakeMongoUtilsInterface) GetMongoCollectionCallCount() int
- func (fake *FakeMongoUtilsInterface) GetMongoCollectionCalls(stub func(mongo.Client, string, string) *mongo.Collection)
- func (fake *FakeMongoUtilsInterface) GetMongoCollectionReturns(result1 *mongo.Collection)
- func (fake *FakeMongoUtilsInterface) GetMongoCollectionReturnsOnCall(i int, result1 *mongo.Collection)
- func (fake *FakeMongoUtilsInterface) GetUniqueDependencies(arg1 context.Context, arg2 *mongo.Collection) ([]utils.CVE, error)
- func (fake *FakeMongoUtilsInterface) GetUniqueDependenciesArgsForCall(i int) (context.Context, *mongo.Collection)
- func (fake *FakeMongoUtilsInterface) GetUniqueDependenciesCallCount() int
- func (fake *FakeMongoUtilsInterface) GetUniqueDependenciesCalls(stub func(context.Context, *mongo.Collection) ([]utils.CVE, error))
- func (fake *FakeMongoUtilsInterface) GetUniqueDependenciesReturns(result1 []utils.CVE, result2 error)
- func (fake *FakeMongoUtilsInterface) GetUniqueDependenciesReturnsOnCall(i int, result1 []utils.CVE, result2 error)
- func (fake *FakeMongoUtilsInterface) Invocations() map[string][][]interface{}
- func (fake *FakeMongoUtilsInterface) RemoveAllCVEs(arg1 string, arg2 context.Context, arg3 *mongo.Collection) error
- func (fake *FakeMongoUtilsInterface) RemoveAllCVEsArgsForCall(i int) (string, context.Context, *mongo.Collection)
- func (fake *FakeMongoUtilsInterface) RemoveAllCVEsCallCount() int
- func (fake *FakeMongoUtilsInterface) RemoveAllCVEsCalls(stub func(string, context.Context, *mongo.Collection) error)
- func (fake *FakeMongoUtilsInterface) RemoveAllCVEsReturns(result1 error)
- func (fake *FakeMongoUtilsInterface) RemoveAllCVEsReturnsOnCall(i int, result1 error)
- type FakeNVDNistUtilsInterface
- func (fake *FakeNVDNistUtilsInterface) GetCVEs(arg1 string, arg2 string, arg3 zerolog.Logger) ([]utils.NVDNistResponseCVEItem, error)
- func (fake *FakeNVDNistUtilsInterface) GetCVEsArgsForCall(i int) (string, string, zerolog.Logger)
- func (fake *FakeNVDNistUtilsInterface) GetCVEsCallCount() int
- func (fake *FakeNVDNistUtilsInterface) GetCVEsCalls(...)
- func (fake *FakeNVDNistUtilsInterface) GetCVEsReturns(result1 []utils.NVDNistResponseCVEItem, result2 error)
- func (fake *FakeNVDNistUtilsInterface) GetCVEsReturnsOnCall(i int, result1 []utils.NVDNistResponseCVEItem, result2 error)
- func (fake *FakeNVDNistUtilsInterface) Invocations() map[string][][]interface{}
- type FakeSlackUtilsInterface
- func (fake *FakeSlackUtilsInterface) Invocations() map[string][][]interface{}
- func (fake *FakeSlackUtilsInterface) SendNewCVENotification(arg1 string, arg2 string, arg3 string, arg4 string, arg5 float64) error
- func (fake *FakeSlackUtilsInterface) SendNewCVENotificationArgsForCall(i int) (string, string, string, string, float64)
- func (fake *FakeSlackUtilsInterface) SendNewCVENotificationCallCount() int
- func (fake *FakeSlackUtilsInterface) SendNewCVENotificationCalls(stub func(string, string, string, string, float64) error)
- func (fake *FakeSlackUtilsInterface) SendNewCVENotificationReturns(result1 error)
- func (fake *FakeSlackUtilsInterface) SendNewCVENotificationReturnsOnCall(i int, result1 error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCSVUtilsInterface ¶
type FakeCSVUtilsInterface struct { GetDependenciesListStub func() ([]utils.DepList, error) // contains filtered or unexported fields }
func (*FakeCSVUtilsInterface) GetDependenciesList ¶
func (fake *FakeCSVUtilsInterface) GetDependenciesList() ([]utils.DepList, error)
func (*FakeCSVUtilsInterface) GetDependenciesListCallCount ¶
func (fake *FakeCSVUtilsInterface) GetDependenciesListCallCount() int
func (*FakeCSVUtilsInterface) GetDependenciesListCalls ¶
func (fake *FakeCSVUtilsInterface) GetDependenciesListCalls(stub func() ([]utils.DepList, error))
func (*FakeCSVUtilsInterface) GetDependenciesListReturns ¶
func (fake *FakeCSVUtilsInterface) GetDependenciesListReturns(result1 []utils.DepList, result2 error)
func (*FakeCSVUtilsInterface) GetDependenciesListReturnsOnCall ¶
func (fake *FakeCSVUtilsInterface) GetDependenciesListReturnsOnCall(i int, result1 []utils.DepList, result2 error)
func (*FakeCSVUtilsInterface) Invocations ¶
func (fake *FakeCSVUtilsInterface) Invocations() map[string][][]interface{}
type FakeMongoUtilsInterface ¶
type FakeMongoUtilsInterface struct { CVEExistsStub func(string, context.Context, *mongo.Collection) (bool, error) CreateCVEStub func(*utils.CVE, context.Context, *mongo.Collection) error DisconnectMongoClientStub func(*mongo.Client, context.Context) error FindCVEStub func(string, context.Context, *mongo.Collection) (utils.CVE, error) GetAllCVEsStub func(context.Context, *mongo.Collection) ([]utils.CVE, error) GetMongoClientStub func() (*mongo.Client, context.Context, error) GetMongoCollectionStub func(mongo.Client, string, string) *mongo.Collection GetUniqueDependenciesStub func(context.Context, *mongo.Collection) ([]utils.CVE, error) RemoveAllCVEsStub func(string, context.Context, *mongo.Collection) error // contains filtered or unexported fields }
func (*FakeMongoUtilsInterface) CVEExists ¶
func (fake *FakeMongoUtilsInterface) CVEExists(arg1 string, arg2 context.Context, arg3 *mongo.Collection) (bool, error)
func (*FakeMongoUtilsInterface) CVEExistsArgsForCall ¶
func (fake *FakeMongoUtilsInterface) CVEExistsArgsForCall(i int) (string, context.Context, *mongo.Collection)
func (*FakeMongoUtilsInterface) CVEExistsCallCount ¶
func (fake *FakeMongoUtilsInterface) CVEExistsCallCount() int
func (*FakeMongoUtilsInterface) CVEExistsCalls ¶
func (fake *FakeMongoUtilsInterface) CVEExistsCalls(stub func(string, context.Context, *mongo.Collection) (bool, error))
func (*FakeMongoUtilsInterface) CVEExistsReturns ¶
func (fake *FakeMongoUtilsInterface) CVEExistsReturns(result1 bool, result2 error)
func (*FakeMongoUtilsInterface) CVEExistsReturnsOnCall ¶
func (fake *FakeMongoUtilsInterface) CVEExistsReturnsOnCall(i int, result1 bool, result2 error)
func (*FakeMongoUtilsInterface) CreateCVE ¶
func (fake *FakeMongoUtilsInterface) CreateCVE(arg1 *utils.CVE, arg2 context.Context, arg3 *mongo.Collection) error
func (*FakeMongoUtilsInterface) CreateCVEArgsForCall ¶
func (fake *FakeMongoUtilsInterface) CreateCVEArgsForCall(i int) (*utils.CVE, context.Context, *mongo.Collection)
func (*FakeMongoUtilsInterface) CreateCVECallCount ¶
func (fake *FakeMongoUtilsInterface) CreateCVECallCount() int
func (*FakeMongoUtilsInterface) CreateCVECalls ¶
func (fake *FakeMongoUtilsInterface) CreateCVECalls(stub func(*utils.CVE, context.Context, *mongo.Collection) error)
func (*FakeMongoUtilsInterface) CreateCVEReturns ¶
func (fake *FakeMongoUtilsInterface) CreateCVEReturns(result1 error)
func (*FakeMongoUtilsInterface) CreateCVEReturnsOnCall ¶
func (fake *FakeMongoUtilsInterface) CreateCVEReturnsOnCall(i int, result1 error)
func (*FakeMongoUtilsInterface) DisconnectMongoClient ¶
func (*FakeMongoUtilsInterface) DisconnectMongoClientArgsForCall ¶
func (*FakeMongoUtilsInterface) DisconnectMongoClientCallCount ¶
func (fake *FakeMongoUtilsInterface) DisconnectMongoClientCallCount() int
func (*FakeMongoUtilsInterface) DisconnectMongoClientCalls ¶
func (*FakeMongoUtilsInterface) DisconnectMongoClientReturns ¶
func (fake *FakeMongoUtilsInterface) DisconnectMongoClientReturns(result1 error)
func (*FakeMongoUtilsInterface) DisconnectMongoClientReturnsOnCall ¶
func (fake *FakeMongoUtilsInterface) DisconnectMongoClientReturnsOnCall(i int, result1 error)
func (*FakeMongoUtilsInterface) FindCVE ¶
func (fake *FakeMongoUtilsInterface) FindCVE(arg1 string, arg2 context.Context, arg3 *mongo.Collection) (utils.CVE, error)
func (*FakeMongoUtilsInterface) FindCVEArgsForCall ¶
func (fake *FakeMongoUtilsInterface) FindCVEArgsForCall(i int) (string, context.Context, *mongo.Collection)
func (*FakeMongoUtilsInterface) FindCVECallCount ¶
func (fake *FakeMongoUtilsInterface) FindCVECallCount() int
func (*FakeMongoUtilsInterface) FindCVECalls ¶
func (fake *FakeMongoUtilsInterface) FindCVECalls(stub func(string, context.Context, *mongo.Collection) (utils.CVE, error))
func (*FakeMongoUtilsInterface) FindCVEReturns ¶
func (fake *FakeMongoUtilsInterface) FindCVEReturns(result1 utils.CVE, result2 error)
func (*FakeMongoUtilsInterface) FindCVEReturnsOnCall ¶
func (fake *FakeMongoUtilsInterface) FindCVEReturnsOnCall(i int, result1 utils.CVE, result2 error)
func (*FakeMongoUtilsInterface) GetAllCVEs ¶
func (fake *FakeMongoUtilsInterface) GetAllCVEs(arg1 context.Context, arg2 *mongo.Collection) ([]utils.CVE, error)
func (*FakeMongoUtilsInterface) GetAllCVEsArgsForCall ¶
func (fake *FakeMongoUtilsInterface) GetAllCVEsArgsForCall(i int) (context.Context, *mongo.Collection)
func (*FakeMongoUtilsInterface) GetAllCVEsCallCount ¶
func (fake *FakeMongoUtilsInterface) GetAllCVEsCallCount() int
func (*FakeMongoUtilsInterface) GetAllCVEsCalls ¶
func (fake *FakeMongoUtilsInterface) GetAllCVEsCalls(stub func(context.Context, *mongo.Collection) ([]utils.CVE, error))
func (*FakeMongoUtilsInterface) GetAllCVEsReturns ¶
func (fake *FakeMongoUtilsInterface) GetAllCVEsReturns(result1 []utils.CVE, result2 error)
func (*FakeMongoUtilsInterface) GetAllCVEsReturnsOnCall ¶
func (fake *FakeMongoUtilsInterface) GetAllCVEsReturnsOnCall(i int, result1 []utils.CVE, result2 error)
func (*FakeMongoUtilsInterface) GetMongoClient ¶
func (*FakeMongoUtilsInterface) GetMongoClientCallCount ¶
func (fake *FakeMongoUtilsInterface) GetMongoClientCallCount() int
func (*FakeMongoUtilsInterface) GetMongoClientCalls ¶
func (*FakeMongoUtilsInterface) GetMongoClientReturns ¶
func (*FakeMongoUtilsInterface) GetMongoClientReturnsOnCall ¶
func (*FakeMongoUtilsInterface) GetMongoCollection ¶
func (fake *FakeMongoUtilsInterface) GetMongoCollection(arg1 mongo.Client, arg2 string, arg3 string) *mongo.Collection
func (*FakeMongoUtilsInterface) GetMongoCollectionArgsForCall ¶
func (*FakeMongoUtilsInterface) GetMongoCollectionCallCount ¶
func (fake *FakeMongoUtilsInterface) GetMongoCollectionCallCount() int
func (*FakeMongoUtilsInterface) GetMongoCollectionCalls ¶
func (fake *FakeMongoUtilsInterface) GetMongoCollectionCalls(stub func(mongo.Client, string, string) *mongo.Collection)
func (*FakeMongoUtilsInterface) GetMongoCollectionReturns ¶
func (fake *FakeMongoUtilsInterface) GetMongoCollectionReturns(result1 *mongo.Collection)
func (*FakeMongoUtilsInterface) GetMongoCollectionReturnsOnCall ¶
func (fake *FakeMongoUtilsInterface) GetMongoCollectionReturnsOnCall(i int, result1 *mongo.Collection)
func (*FakeMongoUtilsInterface) GetUniqueDependencies ¶
func (fake *FakeMongoUtilsInterface) GetUniqueDependencies(arg1 context.Context, arg2 *mongo.Collection) ([]utils.CVE, error)
func (*FakeMongoUtilsInterface) GetUniqueDependenciesArgsForCall ¶
func (fake *FakeMongoUtilsInterface) GetUniqueDependenciesArgsForCall(i int) (context.Context, *mongo.Collection)
func (*FakeMongoUtilsInterface) GetUniqueDependenciesCallCount ¶
func (fake *FakeMongoUtilsInterface) GetUniqueDependenciesCallCount() int
func (*FakeMongoUtilsInterface) GetUniqueDependenciesCalls ¶
func (fake *FakeMongoUtilsInterface) GetUniqueDependenciesCalls(stub func(context.Context, *mongo.Collection) ([]utils.CVE, error))
func (*FakeMongoUtilsInterface) GetUniqueDependenciesReturns ¶
func (fake *FakeMongoUtilsInterface) GetUniqueDependenciesReturns(result1 []utils.CVE, result2 error)
func (*FakeMongoUtilsInterface) GetUniqueDependenciesReturnsOnCall ¶
func (fake *FakeMongoUtilsInterface) GetUniqueDependenciesReturnsOnCall(i int, result1 []utils.CVE, result2 error)
func (*FakeMongoUtilsInterface) Invocations ¶
func (fake *FakeMongoUtilsInterface) Invocations() map[string][][]interface{}
func (*FakeMongoUtilsInterface) RemoveAllCVEs ¶
func (fake *FakeMongoUtilsInterface) RemoveAllCVEs(arg1 string, arg2 context.Context, arg3 *mongo.Collection) error
func (*FakeMongoUtilsInterface) RemoveAllCVEsArgsForCall ¶
func (fake *FakeMongoUtilsInterface) RemoveAllCVEsArgsForCall(i int) (string, context.Context, *mongo.Collection)
func (*FakeMongoUtilsInterface) RemoveAllCVEsCallCount ¶
func (fake *FakeMongoUtilsInterface) RemoveAllCVEsCallCount() int
func (*FakeMongoUtilsInterface) RemoveAllCVEsCalls ¶
func (fake *FakeMongoUtilsInterface) RemoveAllCVEsCalls(stub func(string, context.Context, *mongo.Collection) error)
func (*FakeMongoUtilsInterface) RemoveAllCVEsReturns ¶
func (fake *FakeMongoUtilsInterface) RemoveAllCVEsReturns(result1 error)
func (*FakeMongoUtilsInterface) RemoveAllCVEsReturnsOnCall ¶
func (fake *FakeMongoUtilsInterface) RemoveAllCVEsReturnsOnCall(i int, result1 error)
type FakeNVDNistUtilsInterface ¶
type FakeNVDNistUtilsInterface struct { GetCVEsStub func(string, string, zerolog.Logger) ([]utils.NVDNistResponseCVEItem, error) // contains filtered or unexported fields }
func (*FakeNVDNistUtilsInterface) GetCVEs ¶
func (fake *FakeNVDNistUtilsInterface) GetCVEs(arg1 string, arg2 string, arg3 zerolog.Logger) ([]utils.NVDNistResponseCVEItem, error)
func (*FakeNVDNistUtilsInterface) GetCVEsArgsForCall ¶
func (*FakeNVDNistUtilsInterface) GetCVEsCallCount ¶
func (fake *FakeNVDNistUtilsInterface) GetCVEsCallCount() int
func (*FakeNVDNistUtilsInterface) GetCVEsCalls ¶
func (fake *FakeNVDNistUtilsInterface) GetCVEsCalls(stub func(string, string, zerolog.Logger) ([]utils.NVDNistResponseCVEItem, error))
func (*FakeNVDNistUtilsInterface) GetCVEsReturns ¶
func (fake *FakeNVDNistUtilsInterface) GetCVEsReturns(result1 []utils.NVDNistResponseCVEItem, result2 error)
func (*FakeNVDNistUtilsInterface) GetCVEsReturnsOnCall ¶
func (fake *FakeNVDNistUtilsInterface) GetCVEsReturnsOnCall(i int, result1 []utils.NVDNistResponseCVEItem, result2 error)
func (*FakeNVDNistUtilsInterface) Invocations ¶
func (fake *FakeNVDNistUtilsInterface) Invocations() map[string][][]interface{}
type FakeSlackUtilsInterface ¶
type FakeSlackUtilsInterface struct { SendNewCVENotificationStub func(string, string, string, string, float64) error // contains filtered or unexported fields }
func (*FakeSlackUtilsInterface) Invocations ¶
func (fake *FakeSlackUtilsInterface) Invocations() map[string][][]interface{}
func (*FakeSlackUtilsInterface) SendNewCVENotification ¶
func (*FakeSlackUtilsInterface) SendNewCVENotificationArgsForCall ¶
func (*FakeSlackUtilsInterface) SendNewCVENotificationCallCount ¶
func (fake *FakeSlackUtilsInterface) SendNewCVENotificationCallCount() int
func (*FakeSlackUtilsInterface) SendNewCVENotificationCalls ¶
func (*FakeSlackUtilsInterface) SendNewCVENotificationReturns ¶
func (fake *FakeSlackUtilsInterface) SendNewCVENotificationReturns(result1 error)
func (*FakeSlackUtilsInterface) SendNewCVENotificationReturnsOnCall ¶
func (fake *FakeSlackUtilsInterface) SendNewCVENotificationReturnsOnCall(i int, result1 error)
Click to show internal directories.
Click to hide internal directories.