Versions in this module Expand all Collapse all v0 v0.4.7 Apr 9, 2024 v0.4.6 Apr 8, 2024 v0.4.5 Apr 8, 2024 v0.4.4 Apr 8, 2024 v0.4.3 Apr 8, 2024 v0.4.2 Apr 8, 2024 v0.4.1 Apr 8, 2024 v0.4.0 Apr 8, 2024 v0.3.1 Apr 8, 2024 v0.3.0 Apr 8, 2024 Changes in this version + type Affected struct + DatabaseSpecific struct{ ... } + Package pkg + Ranges []rng + Versions []string + type AffectedComponent struct + CVE []CVE + Ecosystem string + ID string + Name string + Namespace *string + PURL string + Qualifiers *string + Scheme string + SemverFixed *string + SemverIntroduced *string + Subpath *string + Type string + Version *string + func (affectedComponent *AffectedComponent) SetIdHash() + func (affectedComponent AffectedComponent) TableName() string + type Asset struct + AvailabilityRequirement RequirementLevel + Components []Component + ConfidentialityRequirement RequirementLevel + Description string + Flaws []Flaw + Importance int + IntegrityRequirement RequirementLevel + LastComponentUpdate time.Time + Name string + ProjectID uuid.UUID + ReachableFromInternet bool + Slug string + Type AssetType + Version string + func (m Asset) TableName() string + type AssetType string + const AssetTypeApplication + const AssetTypeInfrastructure + type CPEMatch struct + CVEs []*CVE + Criteria string + Edition string + Language string + MatchCriteriaID string + Other string + Part string + Product string + SwEdition string + TargetHw string + TargetSw string + Update string + Vendor string + Version string + VersionEndExcluding string + VersionStartIncluding string + Vulnerable bool + type CVE struct + AttackComplexity string + AttackVector string + AvailabilityImpact string + CISAActionDue *datatypes.Date + CISAExploitAdd *datatypes.Date + CISARequiredAction string + CISAVulnerabilityName string + CVE string + CVSS float32 + ConfidentialityImpact string + Configurations []*CPEMatch + CreatedAt time.Time + DateLastModified time.Time + DatePublished time.Time + Description string + EPSS *float32 + ExploitabilityScore float32 + ImpactScore float32 + IntegrityImpact string + Percentile *float32 + PrivilegesRequired string + References string + Scope string + Severity Severity + UpdatedAt time.Time + UserInteraction string + Weaknesses []*Weakness + func (m CVE) GetReferences() ([]cveReference, error) + func (m CVE) TableName() string + type CWE struct + CWE string + CreatedAt time.Time + DeletedAt sql.NullTime + Description string + UpdatedAt time.Time + func (m CWE) TableName() string + type Comment struct + Comment string + FlawID uuid.UUID + UserID uuid.UUID + func (m Comment) TableName() string + type Component struct + DependsOn []Component + PurlOrCpe string + func (c Component) TableName() string + type Config struct + Key string + Val string + func (Config) TableName() string + type Flaw struct + ArbitraryJsonData string + AssetID uuid.UUID + CVE *CVE + CVEID string + Comments []Comment + Component *Component + ComponentPurlOrCpe string + CreatedAt time.Time + DeletedAt sql.NullTime + Effort *int + Events []FlawEvent + ID string + LastDetected time.Time + Message *string + Priority *int + RawRiskAssessment *int + RiskAssessment *int + ScannerID string + State FlawState + UpdatedAt time.Time + func (f *Flaw) BeforeCreate(tx *gorm.DB) (err error) + func (m *Flaw) CalculateHash() string + func (m *Flaw) GetArbitraryJsonData() map[string]any + func (m *Flaw) SetArbitraryJsonData(data map[string]any) + func (m *Flaw) SetIdHash() + func (m Flaw) TableName() string + type FlawEvent struct + FlawID string + Payload *datatypes.JSON + Type FlawEventType + UserID string + func NewDetectedEvent(flawID string, userID string) FlawEvent + func NewFixedEvent(flawID string, userID string) FlawEvent + func (e FlawEvent) Apply(flaw Flaw) Flaw + func (m FlawEvent) TableName() string + type FlawEventType string + const EventTypeDetected + const EventTypeFixed + const EventTypeRiskAssessmentUpdated + type FlawState string + const FlawStateAccepted + const FlawStateFalsePositive + const FlawStateFixed + const FlawStateMarkedForMitigation + const FlawStateOpen + type Mitigation struct + DueDate *time.Time + InitiatingUserID string + Justification string + MitigationPending bool + Properties datatypes.JSON + ResultID uuid.UUID + Type Type + type Model struct + CreatedAt time.Time + DeletedAt sql.NullTime + ID uuid.UUID + UpdatedAt time.Time + func (a Model) GetID() uuid.UUID + func (m Model) TableName() string + type OSV struct + Affected []Affected + Aliases []string + ID string + Modified time.Time + Published time.Time + Related []string + SchemaVersion string + Summary string + func (osv OSV) GetAffectedPackages() []AffectedComponent + func (osv OSV) GetCVE() []string + func (osv OSV) IsCVE() bool + type Org struct + ContactPhoneNumber *string + Country *string + CriticalInfrastructure bool + Description string + Grundschutz bool + ISO27001 bool + Industry *string + NIST bool + Name string + NumberOfEmployees *int + Projects []Project + Slug string + type PAT struct + CreatedAt time.Time + Description string + ID uuid.UUID + Token string + UserID uuid.UUID + func (p PAT) GetUserID() string + func (p PAT) HashToken(token string) string + func (p PAT) TableName() string + type Project struct + Assets []Asset + Description string + Name string + OrganizationID uuid.UUID + Slug string + func (m Project) TableName() string + type RequirementLevel string + const RequirementLevelHigh + const RequirementLevelLow + const RequirementLevelMedium + type Severity string + const SeverityCritical + const SeverityHigh + const SeverityInfo + const SeverityLow + const SeverityMedium + type Type string + const TypeAccept + const TypeAvoid + const TypeFix + const TypeTransfer + type VulnInPackage struct + CVE CVE + CVEID string + FixedVersion *string + IntroducedVersion *string + PackageName string + PurlWithVersion string + func (v VulnInPackage) GetFixedVersion() string + func (v VulnInPackage) GetIntroducedVersion() string + type Weakness struct + CVE CVE + CVEID string + CWEID string + Source string + Type string + func (m Weakness) TableName() string