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