github.com/wolfi-dev/wolfictl@v0.16.11/pkg/configs/advisory/v2/analysis_not_planned.go (about) 1 package v2 2 3 import "errors" 4 5 // AnalysisNotPlanned is an event type that indicates that the vulnerability's 6 // match to the package that this advisory refers to is not expected to be 7 // analyzed further by the distro maintainers. 8 type AnalysisNotPlanned struct { 9 // Note should explain why there is no plan to analyze the vulnerability match. 10 Note string `yaml:"note"` 11 } 12 13 // Validate returns an error if the AnalysisNotPlanned data is invalid. 14 func (a AnalysisNotPlanned) Validate() error { 15 if a.Note == "" { 16 return errors.New("note must not be empty") 17 } 18 return nil 19 }