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

     1  package pkg
     2  
     3  // OpamPackage represents an OCaml package managed by the OPAM package manager with metadata from .opam files.
     4  type OpamPackage struct {
     5  	// Name is the package name as found in the .opam file
     6  	Name string `toml:"name" json:"name"`
     7  
     8  	// Version is the package version as found in the .opam file
     9  	Version string `toml:"version" json:"version"`
    10  
    11  	// Licenses are the list of applicable licenses
    12  	Licenses []string `mapstructure:"licenses" json:"licenses"`
    13  
    14  	// URL is download URL for the package source
    15  	URL string `mapstructure:"url" json:"url"`
    16  
    17  	// Checksums are the list of checksums for verification
    18  	Checksums []string `mapstructure:"checksums" json:"checksum"`
    19  
    20  	// Homepage is project homepage URL
    21  	Homepage string `json:"homepage"`
    22  
    23  	// Dependencies are the list of required dependencies
    24  	Dependencies []string `toml:"dependencies" json:"dependencies"`
    25  }