Documentation
¶
Index ¶
Constants ¶
View Source
const ( StatusOpen = "open" StatusInProgress = "in_progress" StatusResolved = "resolved" StatusAccepted = "accepted" // risk accepted, will not fix )
Finding status constants.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditSet ¶
type AuditSet struct {
Files []LoadedFile
FindingsByID map[string]*FindingRef
FindingsByControl map[string][]*FindingRef
}
type Finding ¶
type Finding struct {
ID string `yaml:"id"`
Title string `yaml:"title"`
Severity string `yaml:"severity"`
Status string `yaml:"status"`
Owner string `yaml:"owner"`
Controls []string `yaml:"controls"`
Description string `yaml:"description"`
EUDIReqs []string `yaml:"eudi_reqs,omitempty"`
AnnexA []string `yaml:"annex_a,omitempty"`
GDPRItems []string `yaml:"gdpr_items,omitempty"`
ASVSSections []string `yaml:"asvs_sections,omitempty"`
FrameworkRefs map[string][]string `yaml:"framework_refs,omitempty"` // framework ID -> requirement IDs (generic)
TrackingIssue *IssueRef `yaml:"tracking_issue,omitempty"`
Issues []IssueRef `yaml:"issues,omitempty"`
PullRequests []IssueRef `yaml:"pull_requests,omitempty"`
Evidence []Evidence `yaml:"evidence,omitempty"`
ResolvedDate string `yaml:"resolved_date,omitempty"`
}
func (*Finding) AddEvidence ¶
func (*Finding) HasEvidence ¶
func (*Finding) IsActive ¶ added in v0.3.1
IsActive reports whether the finding is actively being worked on.
func (*Finding) IsResolved ¶
func (*Finding) IsTerminal ¶ added in v0.3.1
IsTerminal reports whether the finding status represents a final state.
func (*Finding) MatchesReq ¶ added in v0.4.0
MatchesReq reports whether the finding references the given requirement in the specified framework. Checks both the generic FrameworkRefs map and the legacy per-framework fields for backward compatibility.
type FindingRef ¶
type FindingRef struct {
File *LoadedFile
Index int
Finding *Finding
}
type LoadedFile ¶
func (*LoadedFile) Save ¶
func (lf *LoadedFile) Save() error
Click to show internal directories.
Click to hide internal directories.