Documentation ¶
Index ¶
- type IFormatter
- type IService
- type Mock
- func (m *Mock) AddNewVulnerabilityIntoAnalysis(_ *horusec.Vulnerability)
- func (m *Mock) AddWorkDirInCmd(_ string, _ string, _ tools.Tool) string
- func (m *Mock) ExecuteContainer(_ *dockerEntities.AnalysisData) (output string, err error)
- func (m *Mock) GetAnalysis() *horusec.Analysis
- func (m *Mock) GetAnalysisID() string
- func (m *Mock) GetAnalysisIDErrorMessage(_ tools.Tool, _ string) string
- func (m *Mock) GetCodeWithMaxCharacters(_ string, _ int) string
- func (m *Mock) GetCommitAuthor(_, _ string) (commitAuthor horusec.CommitAuthor)
- func (m *Mock) GetConfigCMDYarnOrNpmAudit(_, _ string, _ tools.Tool) string
- func (m *Mock) GetConfigProjectPath() string
- func (m *Mock) GetCustomRulesByTool(_ tools.Tool) []engine.Rule
- func (m *Mock) GetFilepathFromFilename(_ string) string
- func (m *Mock) GetProjectPathWithWorkdir(_ string) string
- func (m *Mock) GetToolsConfig() toolsconfig.MapToolConfig
- func (m *Mock) IsDockerDisabled() bool
- func (m *Mock) LogDebugWithReplace(_ string, _ tools.Tool)
- func (m *Mock) ParseFindingsToVulnerabilities(_ []engine.Finding, _ tools.Tool, _ languages.Language) error
- func (m *Mock) RemoveSrcFolderFromPath(_ string) string
- func (m *Mock) SetAnalysisError(_ error, _ tools.Tool, _ string)
- func (m *Mock) SetCommitAuthor(_ *horusec.Vulnerability) *horusec.Vulnerability
- func (m *Mock) SetMonitor(_ *horusec.Monitor)
- func (m *Mock) SetToolFinishedAnalysis()
- func (m *Mock) ToolIsToIgnore(_ tools.Tool) bool
- type Service
- func (s *Service) AddNewVulnerabilityIntoAnalysis(vulnerability *horusec.Vulnerability)
- func (s *Service) AddWorkDirInCmd(cmd, projectSubPath string, tool tools.Tool) string
- func (s *Service) ExecuteContainer(data *dockerEntities.AnalysisData) (output string, err error)
- func (s *Service) GetAnalysis() *horusec.Analysis
- func (s *Service) GetAnalysisID() string
- func (s *Service) GetAnalysisIDErrorMessage(tool tools.Tool, output string) string
- func (s *Service) GetCodeWithMaxCharacters(code string, column int) string
- func (s *Service) GetCommitAuthor(line, filePath string) (commitAuthor horusec.CommitAuthor)
- func (s *Service) GetConfigCMDYarnOrNpmAudit(projectSubPath, imageCmd string, tool tools.Tool) string
- func (s *Service) GetConfigProjectPath() string
- func (s *Service) GetCustomRulesByTool(tool tools.Tool) []engine.Rule
- func (s *Service) GetFilepathFromFilename(filename string) string
- func (s *Service) GetProjectPathWithWorkdir(projectSubPath string) string
- func (s *Service) GetToolsConfig() toolsconfig.MapToolConfig
- func (s *Service) IsDockerDisabled() bool
- func (s *Service) LogDebugWithReplace(msg string, tool tools.Tool)
- func (s *Service) ParseFindingsToVulnerabilities(findings []engine.Finding, tool tools.Tool, language languages.Language) error
- func (s *Service) RemoveSrcFolderFromPath(filepath string) string
- func (s *Service) SetAnalysisError(err error, tool tools.Tool, projectSubPath string)
- func (s *Service) SetCommitAuthor(vulnerability *horusec.Vulnerability) *horusec.Vulnerability
- func (s *Service) SetMonitor(monitor *horusec.Monitor)
- func (s *Service) SetToolFinishedAnalysis()
- func (s *Service) ToolIsToIgnore(tool tools.Tool) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IFormatter ¶
type IFormatter interface {
StartAnalysis(projectSubPath string)
}
type IService ¶
type IService interface { LogDebugWithReplace(msg string, tool tools.Tool) GetAnalysisID() string ExecuteContainer(data *dockerEntities.AnalysisData) (output string, err error) GetAnalysisIDErrorMessage(tool tools.Tool, output string) string GetCommitAuthor(line, filePath string) (commitAuthor horusec.CommitAuthor) AddWorkDirInCmd(cmd string, projectSubPath string, tool tools.Tool) string GetConfigProjectPath() string GetToolsConfig() toolsconfig.MapToolConfig GetAnalysis() *horusec.Analysis SetToolFinishedAnalysis() SetAnalysisError(err error, tool tools.Tool, projectSubPath string) SetMonitor(monitor *horusec.Monitor) RemoveSrcFolderFromPath(filepath string) string GetCodeWithMaxCharacters(code string, column int) string ToolIsToIgnore(tool tools.Tool) bool GetFilepathFromFilename(filename string) string GetProjectPathWithWorkdir(projectSubPath string) string SetCommitAuthor(vulnerability *horusec.Vulnerability) *horusec.Vulnerability ParseFindingsToVulnerabilities(findings []engine.Finding, tool tools.Tool, language languages.Language) error AddNewVulnerabilityIntoAnalysis(vulnerability *horusec.Vulnerability) IsDockerDisabled() bool GetCustomRulesByTool(tool tools.Tool) []engine.Rule GetConfigCMDYarnOrNpmAudit(projectSubPath, imageCmd string, tool tools.Tool) string }
type Mock ¶
func (*Mock) AddNewVulnerabilityIntoAnalysis ¶ added in v1.5.0
func (m *Mock) AddNewVulnerabilityIntoAnalysis(_ *horusec.Vulnerability)
func (*Mock) AddWorkDirInCmd ¶
func (*Mock) ExecuteContainer ¶
func (m *Mock) ExecuteContainer(_ *dockerEntities.AnalysisData) (output string, err error)
func (*Mock) GetAnalysis ¶
func (*Mock) GetAnalysisID ¶
func (*Mock) GetAnalysisIDErrorMessage ¶
func (*Mock) GetCodeWithMaxCharacters ¶ added in v1.0.1
func (*Mock) GetCommitAuthor ¶
func (m *Mock) GetCommitAuthor(_, _ string) (commitAuthor horusec.CommitAuthor)
func (*Mock) GetConfigCMDYarnOrNpmAudit ¶ added in v1.7.0
func (*Mock) GetConfigProjectPath ¶
func (*Mock) GetCustomRulesByTool ¶ added in v1.5.0
func (*Mock) GetFilepathFromFilename ¶ added in v1.5.0
func (*Mock) GetProjectPathWithWorkdir ¶ added in v1.5.0
func (*Mock) GetToolsConfig ¶ added in v1.5.0
func (m *Mock) GetToolsConfig() toolsconfig.MapToolConfig
func (*Mock) IsDockerDisabled ¶ added in v1.5.0
func (*Mock) ParseFindingsToVulnerabilities ¶ added in v1.5.0
func (*Mock) RemoveSrcFolderFromPath ¶ added in v1.0.1
func (*Mock) SetCommitAuthor ¶ added in v1.5.0
func (m *Mock) SetCommitAuthor(_ *horusec.Vulnerability) *horusec.Vulnerability
func (*Mock) SetMonitor ¶
func (*Mock) SetToolFinishedAnalysis ¶ added in v1.5.0
func (m *Mock) SetToolFinishedAnalysis()
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) AddNewVulnerabilityIntoAnalysis ¶ added in v1.5.0
func (s *Service) AddNewVulnerabilityIntoAnalysis(vulnerability *horusec.Vulnerability)
func (*Service) AddWorkDirInCmd ¶
func (*Service) ExecuteContainer ¶
func (s *Service) ExecuteContainer(data *dockerEntities.AnalysisData) (output string, err error)
func (*Service) GetAnalysis ¶
func (*Service) GetAnalysisID ¶
func (*Service) GetAnalysisIDErrorMessage ¶
func (*Service) GetCodeWithMaxCharacters ¶ added in v1.0.1
func (*Service) GetCommitAuthor ¶
func (s *Service) GetCommitAuthor(line, filePath string) (commitAuthor horusec.CommitAuthor)
func (*Service) GetConfigCMDYarnOrNpmAudit ¶ added in v1.7.0
func (*Service) GetConfigProjectPath ¶
func (*Service) GetCustomRulesByTool ¶ added in v1.5.0
func (*Service) GetFilepathFromFilename ¶ added in v1.4.1
func (*Service) GetProjectPathWithWorkdir ¶ added in v1.5.0
func (*Service) GetToolsConfig ¶ added in v1.4.2
func (s *Service) GetToolsConfig() toolsconfig.MapToolConfig
func (*Service) IsDockerDisabled ¶ added in v1.5.0
func (*Service) LogDebugWithReplace ¶
func (*Service) ParseFindingsToVulnerabilities ¶ added in v1.5.0
func (*Service) RemoveSrcFolderFromPath ¶
func (*Service) SetAnalysisError ¶
func (*Service) SetCommitAuthor ¶ added in v1.5.0
func (s *Service) SetCommitAuthor(vulnerability *horusec.Vulnerability) *horusec.Vulnerability
func (*Service) SetMonitor ¶
func (*Service) SetToolFinishedAnalysis ¶ added in v1.5.0
func (s *Service) SetToolFinishedAnalysis()
Click to show internal directories.
Click to hide internal directories.