Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Remediation ¶
type Remediation struct { // Patch for machines. Patch *string `json:"patch,omitempty"` // Text for humans. Text string `json:"text"` // Text in markdown format for humans. Markdown string `json:"markdown"` // Effort to remediate. Effort RemediationEffort `json:"effort"` }
Remediation represents the remediation for a finding.
type RemediationEffort ¶
type RemediationEffort int
RemediationEffort indicates the estimated effort necessary to remediate a finding.
const ( // RemediationEffortNone indicates a no remediation effort. RemediationEffortNone RemediationEffort = iota // RemediationEffortLow indicates a low remediation effort. RemediationEffortLow // RemediationEffortMedium indicates a medium remediation effort. RemediationEffortMedium // RemediationEffortHigh indicates a high remediation effort. RemediationEffortHigh )
func (*RemediationEffort) String ¶
func (r *RemediationEffort) String() string
String stringifies the enum.
func (*RemediationEffort) UnmarshalYAML ¶
func (r *RemediationEffort) UnmarshalYAML(n *yaml.Node) error
UnmarshalYAML is a custom unmarshalling function to transform the string into an enum.
type Risk ¶
type Risk int
Risk indicates a risk.
func (*Risk) UnmarshalYAML ¶
UnmarshalYAML is a custom unmarshalling function to transform the string into an enum.
Click to show internal directories.
Click to hide internal directories.