Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cycle ¶
type Document ¶
type Document struct { Matches []Match `json:"matches"` Source *source `json:"source"` Distro distribution `json:"distro"` Descriptor descriptor `json:"descriptor"` }
Document represents the JSON document to be presented
type Match ¶
type Match struct { Cycle Cycle Package pkg.Package // The package used to search for a match. Artifact Package `json:"artifact"` }
Match is a single item for the JSON array reported
type MatchDetails ¶
type MatchDetails struct { Type string `json:"type"` Matcher string `json:"matcher"` SearchedBy interface{} `json:"searchedBy"` Found interface{} `json:"found"` }
MatchDetails contains all data that indicates how the result match was found
type MatchSort ¶ added in v0.9.0
type MatchSort []Match
type Package ¶
type Package struct { Name string `json:"name"` Version string `json:"version"` Type syftPkg.Type `json:"type"` Locations []file.Coordinates `json:"locations"` Language syftPkg.Language `json:"language"` Licenses []string `json:"licenses"` CPEs []string `json:"cpes"` PURL string `json:"purl"` Upstreams []UpstreamPackage `json:"upstreams"` MetadataType pkg.MetadataType `json:"metadataType,omitempty"` Metadata interface{} `json:"metadata,omitempty"` }
Package is meant to be only the fields that are needed when displaying a single pkg.Package object for the JSON presenter.
type PresenterConfig ¶
type UpstreamPackage ¶
Click to show internal directories.
Click to hide internal directories.