Documentation ¶
Index ¶
- type Analysis
- func (a *Analysis) GetAnalysisWithoutAnalysisVulnerabilities() *Analysis
- func (a *Analysis) GetID() uuid.UUID
- func (a *Analysis) GetIDString() string
- func (a *Analysis) GetTable() string
- func (a *Analysis) GetTotalVulnerabilities() int
- func (a *Analysis) GetTotalVulnerabilitiesBySeverity() (total map[horusec.VulnerabilityType]map[severity.Severity]int)
- func (a *Analysis) HasErrors() bool
- func (a *Analysis) Map() map[string]interface{}
- func (a *Analysis) ParseResponseBytesToAnalysis(body []byte) (analysis *Analysis, err error)
- func (a *Analysis) RemoveInfoVulnerabilities() *Analysis
- func (a *Analysis) SetAnalysisError(err error)
- func (a *Analysis) SetAnalysisFinishedData() *Analysis
- func (a *Analysis) SetCompanyName(companyName string) *Analysis
- func (a *Analysis) SetDefaultVulnerabilityType() *Analysis
- func (a *Analysis) SetFalsePositivesAndRiskAcceptInVulnerabilities(listFalsePositive, listRiskAccept []string) *Analysis
- func (a *Analysis) SetFindOneFilter() map[string]interface{}
- func (a *Analysis) SetRepositoryID(repositoryID uuid.UUID) *Analysis
- func (a *Analysis) SetRepositoryName(repositoryName string) *Analysis
- func (a *Analysis) SetupIDInAnalysisContents() *Analysis
- func (a *Analysis) SortVulnerabilitiesByCriticality() *Analysis
- func (a *Analysis) SortVulnerabilitiesByType() *Analysis
- func (a *Analysis) ToBytes() []byte
- func (a *Analysis) ToString() string
- type AnalysisVulnerabilities
- func (a *AnalysisVulnerabilities) GetAnalysisVulnerabilitiesWithoutVulnerability() *AnalysisVulnerabilities
- func (a *AnalysisVulnerabilities) GetTable() string
- func (a *AnalysisVulnerabilities) SetAnalysisID(id uuid.UUID)
- func (a *AnalysisVulnerabilities) SetCreatedAt()
- func (a *AnalysisVulnerabilities) SetVulnerabilityID(id uuid.UUID)
- type CommitAuthor
- type ConfigFile
- type Monitor
- type Vulnerability
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analysis ¶
type Analysis struct { ID uuid.UUID `json:"id" gorm:"Column:analysis_id"` RepositoryID uuid.UUID `json:"repositoryID" gorm:"Column:repository_id"` RepositoryName string `json:"repositoryName" gorm:"Column:repository_name"` CompanyID uuid.UUID `json:"companyID" gorm:"Column:company_id"` CompanyName string `json:"companyName" gorm:"Column:company_name"` Status horusec.Status `json:"status" gorm:"Column:status"` Errors string `json:"errors" gorm:"Column:errors"` CreatedAt time.Time `json:"createdAt" gorm:"Column:created_at"` FinishedAt time.Time `json:"finishedAt" gorm:"Column:finished_at"` AnalysisVulnerabilities []AnalysisVulnerabilities `json:"analysisVulnerabilities" gorm:"foreignKey:AnalysisID;references:ID"` //nolint:lll gorm usage }
func (*Analysis) GetAnalysisWithoutAnalysisVulnerabilities ¶ added in v1.1.0
func (*Analysis) GetIDString ¶
func (*Analysis) GetTotalVulnerabilities ¶
func (*Analysis) GetTotalVulnerabilitiesBySeverity ¶
func (*Analysis) ParseResponseBytesToAnalysis ¶ added in v1.1.0
func (*Analysis) RemoveInfoVulnerabilities ¶ added in v1.5.0
func (*Analysis) SetAnalysisError ¶
func (*Analysis) SetAnalysisFinishedData ¶
func (*Analysis) SetCompanyName ¶
func (*Analysis) SetDefaultVulnerabilityType ¶ added in v1.1.0
func (*Analysis) SetFalsePositivesAndRiskAcceptInVulnerabilities ¶ added in v1.1.0
func (*Analysis) SetFindOneFilter ¶
func (*Analysis) SetRepositoryID ¶ added in v1.0.1
func (*Analysis) SetRepositoryName ¶
func (*Analysis) SetupIDInAnalysisContents ¶ added in v1.1.0
func (*Analysis) SortVulnerabilitiesByCriticality ¶
func (*Analysis) SortVulnerabilitiesByType ¶ added in v1.1.0
type AnalysisVulnerabilities ¶ added in v1.1.0
type AnalysisVulnerabilities struct { VulnerabilityID uuid.UUID `json:"vulnerabilityID" gorm:"Column:vulnerability_id"` AnalysisID uuid.UUID `json:"analysisID" gorm:"Column:analysis_id"` CreatedAt time.Time `json:"createdAt" gorm:"Column:created_at"` Vulnerability Vulnerability `json:"vulnerabilities" gorm:"foreignKey:VulnerabilityID;references:VulnerabilityID"` }
func (*AnalysisVulnerabilities) GetAnalysisVulnerabilitiesWithoutVulnerability ¶ added in v1.1.0
func (a *AnalysisVulnerabilities) GetAnalysisVulnerabilitiesWithoutVulnerability() *AnalysisVulnerabilities
func (*AnalysisVulnerabilities) GetTable ¶ added in v1.1.0
func (a *AnalysisVulnerabilities) GetTable() string
func (*AnalysisVulnerabilities) SetAnalysisID ¶ added in v1.1.0
func (a *AnalysisVulnerabilities) SetAnalysisID(id uuid.UUID)
func (*AnalysisVulnerabilities) SetCreatedAt ¶ added in v1.1.0
func (a *AnalysisVulnerabilities) SetCreatedAt()
func (*AnalysisVulnerabilities) SetVulnerabilityID ¶ added in v1.1.0
func (a *AnalysisVulnerabilities) SetVulnerabilityID(id uuid.UUID)
type CommitAuthor ¶
type ConfigFile ¶
type ConfigFile struct {
WorkDir string `json:"work_dir"`
}
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
func NewMonitor ¶
func NewMonitor() *Monitor
func (*Monitor) AddProcess ¶
func (*Monitor) GetProcess ¶
func (*Monitor) IsFinished ¶
func (*Monitor) RemoveProcess ¶
type Vulnerability ¶
type Vulnerability struct { VulnerabilityID uuid.UUID `json:"vulnerabilityID" gorm:"Column:vulnerability_id"` Line string `json:"line" gorm:"Column:line"` Column string `json:"column" gorm:"Column:column"` Confidence string `json:"confidence" gorm:"Column:confidence"` File string `json:"file" gorm:"Column:file"` Code string `json:"code" gorm:"Column:code"` Details string `json:"details" gorm:"Column:details"` SecurityTool tools.Tool `json:"securityTool" gorm:"Column:security_tool"` Language languages.Language `json:"language" gorm:"Column:language"` Severity severityEnum.Severity `json:"severity" gorm:"Column:severity"` VulnHash string `json:"vulnHash" gorm:"Column:vuln_hash"` Type horusec.VulnerabilityType `json:"type" gorm:"Column:type"` CommitAuthor string `json:"commitAuthor" gorm:"Column:commit_author"` CommitEmail string `json:"commitEmail" gorm:"Column:commit_email"` CommitHash string `json:"commitHash" gorm:"Column:commit_hash"` CommitMessage string `json:"commitMessage" gorm:"Column:commit_message"` CommitDate string `json:"commitDate" gorm:"Column:commit_date"` }
func (*Vulnerability) GenerateID ¶ added in v1.1.0
func (v *Vulnerability) GenerateID()
func (*Vulnerability) GetTable ¶
func (v *Vulnerability) GetTable() string
func (*Vulnerability) SetSeverity ¶ added in v1.8.0
func (v *Vulnerability) SetSeverity(severity severityEnum.Severity)
func (*Vulnerability) SetType ¶ added in v1.1.0
func (v *Vulnerability) SetType(vulnType horusec.VulnerabilityType)
Click to show internal directories.
Click to hide internal directories.