github.com/anchore/syft@v1.38.2/syft/source/alias.go (about)

     1  package source
     2  
     3  type Alias struct {
     4  	Name     string `json:"name" yaml:"name" mapstructure:"name"`
     5  	Version  string `json:"version" yaml:"version" mapstructure:"version"`
     6  	Supplier string `json:"supplier" yaml:"supplier" mapstructure:"supplier"`
     7  }
     8  
     9  func (a *Alias) IsEmpty() bool {
    10  	if a == nil {
    11  		return true
    12  	}
    13  	return a.Name == "" && a.Version == ""
    14  }