Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analyzer ¶
type Analyzer struct {
// contains filtered or unexported fields
}
Analyzer is responsible to orchestrate the pipeline of an analysis.
Basically, an analysis has the following steps:
1 - Detect all languages on project path. 2 - Execute all tools to all languages founded. 3 - Send analysis to Horusuec Manager if access token is set. 4 - Print analysis results.
func (*Analyzer) Analyze ¶
Analyze start an analysis and return the total of vulnerabilities founded and an error if exists.
nolint: funlen
func (*Analyzer) SetFalsePositivesAndRiskAcceptInVulnerabilities ¶
func (a *Analyzer) SetFalsePositivesAndRiskAcceptInVulnerabilities(falsePositive, riskAccept []string) *analysis.Analysis
SetFalsePositivesAndRiskAcceptInVulnerabilities set analysis vulnerabilities to false positive or risk accept if the hash exists on falsePositive and riskAccept params.
nolint:lll
type HorusecService ¶
type HorusecService interface {
SendAnalysis(*analysis.Analysis) error
GetAnalysis(uuid.UUID) (*analysis.Analysis, error)
}
HorusecService is the interface that interacts with Horusec API
type LanguageDetect ¶
LanguageDetect is the interface that detect all languages in some directory.
Click to show internal directories.
Click to hide internal directories.