Documentation
¶
Index ¶
- type IFormatter
- type IService
- type Mock
- func (m *Mock) AddWorkDirInCmd(cmd string, projectSubPath string, tool tools.Tool) string
- func (m *Mock) ExecuteContainer(data *dockerEntities.AnalysisData) (output string, err error)
- func (m *Mock) GetAnalysis() *horusec.Analysis
- func (m *Mock) GetAnalysisID() string
- func (m *Mock) GetAnalysisIDErrorMessage(tool tools.Tool, output string) string
- func (m *Mock) GetCodeWithMaxCharacters(code string, column int) string
- func (m *Mock) GetCommitAuthor(line, filePath string) (commitAuthor horusec.CommitAuthor)
- func (m *Mock) GetConfigProjectPath() string
- func (m *Mock) LogAnalysisError(err error, tool tools.Tool, projectSubPath string)
- func (m *Mock) LogDebugWithReplace(msg string, tool tools.Tool)
- func (m *Mock) RemoveSrcFolderFromPath(filepath string) string
- func (m *Mock) SetAnalysisError(err error)
- func (m *Mock) SetLanguageIsFinished()
- func (m *Mock) SetMonitor(monitor *horusec.Monitor)
- type Service
- 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) GetConfigProjectPath() string
- func (s *Service) LogAnalysisError(err error, tool tools.Tool, projectSubPath string)
- func (s *Service) LogDebugWithReplace(msg string, tool tools.Tool)
- func (s *Service) RemoveSrcFolderFromPath(filepath string) string
- func (s *Service) SetAnalysisError(err error)
- func (s *Service) SetLanguageIsFinished()
- func (s *Service) SetMonitor(monitor *horusec.Monitor)
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 SetAnalysisError(err error) 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 GetAnalysis() *horusec.Analysis SetLanguageIsFinished() LogAnalysisError(err error, tool tools.Tool, projectSubPath string) SetMonitor(monitor *horusec.Monitor) RemoveSrcFolderFromPath(filepath string) string GetCodeWithMaxCharacters(code string, column int) string }
type Mock ¶
func (*Mock) AddWorkDirInCmd ¶
func (*Mock) ExecuteContainer ¶
func (m *Mock) ExecuteContainer(data *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(line, filePath string) (commitAuthor horusec.CommitAuthor)
func (*Mock) GetConfigProjectPath ¶
func (*Mock) LogAnalysisError ¶
func (*Mock) RemoveSrcFolderFromPath ¶ added in v1.0.1
func (*Mock) SetAnalysisError ¶
func (*Mock) SetLanguageIsFinished ¶
func (m *Mock) SetLanguageIsFinished()
func (*Mock) SetMonitor ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
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) GetConfigProjectPath ¶
func (*Service) LogAnalysisError ¶
func (*Service) LogDebugWithReplace ¶
func (*Service) RemoveSrcFolderFromPath ¶
func (*Service) SetAnalysisError ¶
func (*Service) SetLanguageIsFinished ¶
func (s *Service) SetLanguageIsFinished()
func (*Service) SetMonitor ¶
Click to show internal directories.
Click to hide internal directories.