mirror of
https://github.com/anchore/syft.git
synced 2026-08-22 01:53:35 +02:00
--------- Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
15 lines
356 B
Go
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 == ""
|
|
}
|