mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 23:46:35 +01:00
* moved the relevant fields to the Metadata field Signed-off-by: Asaf Greenholts <asaf@cidersecurity.io> * added metadata types Signed-off-by: Asaf Greenholts <asaf@cidersecurity.io> * Added hashes to metadata of packge-lock.json and Pipfile.lock Signed-off-by: Asaf Greenholts <asaf@cidersecurity.io> * move package metadata types to "pkg" package Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * re-generate json schema to include new npm, python, and binary metadatas Signed-off-by: Alex Goodman <alex.goodman@anchore.com> Signed-off-by: Asaf Greenholts <asaf@cidersecurity.io> Signed-off-by: Alex Goodman <alex.goodman@anchore.com> Co-authored-by: Alex Goodman <alex.goodman@anchore.com>
15 lines
699 B
Go
15 lines
699 B
Go
package pkg
|
|
|
|
// NpmPackageJSONMetadata holds parsing information for a javascript package.json file
|
|
type NpmPackageJSONMetadata struct {
|
|
Name string `mapstructure:"name" json:"name"`
|
|
Version string `mapstructure:"version" json:"version"`
|
|
Files []string `mapstructure:"files" json:"files,omitempty"`
|
|
Author string `mapstructure:"author" json:"author"`
|
|
Licenses []string `mapstructure:"licenses" json:"licenses"`
|
|
Homepage string `mapstructure:"homepage" json:"homepage"`
|
|
Description string `mapstructure:"description" json:"description"`
|
|
URL string `mapstructure:"url" json:"url"`
|
|
Private bool `mapstructure:"private" json:"private"`
|
|
}
|