github.com/anchore/syft@v1.38.2/syft/pkg/swipl.go (about)

     1  package pkg
     2  
     3  // SwiplPackEntry represents a SWI-Prolog package from the pack system with metadata about the package and its dependencies.
     4  type SwiplPackEntry struct {
     5  	// Name is the package name as found in the .toml file
     6  	Name string `toml:"name" json:"name"`
     7  
     8  	// Version is the package version as found in the .toml file
     9  	Version string `toml:"version" json:"version"`
    10  
    11  	// Author is author name
    12  	Author string `json:"author" mapstructure:"Author"`
    13  
    14  	// AuthorEmail is author email address
    15  	AuthorEmail string `json:"authorEmail" mapstructure:"AuthorEmail"`
    16  
    17  	// Packager is packager name (if different from author)
    18  	Packager string `json:"packager" mapstructure:"Packager"`
    19  
    20  	// PackagerEmail is packager email address
    21  	PackagerEmail string `json:"packagerEmail" mapstructure:"PackagerEmail"`
    22  
    23  	// Homepage is project homepage URL
    24  	Homepage string `json:"homepage"`
    25  
    26  	// Dependencies are the list of required dependencies
    27  	Dependencies []string `toml:"dependencies" json:"dependencies"`
    28  }