syft/syft/source/alias.go
Christopher Angelo Phillips 6b48bd4b5e
feat: add package supplier flag (#4131)
---------

Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
2025-08-12 14:49:41 -04:00

15 lines
356 B
Go

package source
type Alias struct {
Name string `json:"name" yaml:"name" mapstructure:"name"`
Version string `json:"version" yaml:"version" mapstructure:"version"`
Supplier string `json:"supplier" yaml:"supplier" mapstructure:"supplier"`
}
func (a *Alias) IsEmpty() bool {
if a == nil {
return true
}
return a.Name == "" && a.Version == ""
}