mirror of
https://github.com/anchore/syft.git
synced 2026-02-15 12:06:41 +01:00
* Add support for PHP Pear and unify PECL with it Signed-off-by: Laurent Goderre <laurent.goderre@docker.com> Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix tests Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * remove log statements Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix struct comment Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Laurent Goderre <laurent.goderre@docker.com> Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> Co-authored-by: Alex Goodman <wagoodman@users.noreply.github.com>
51 lines
2.3 KiB
Go
51 lines
2.3 KiB
Go
package pkg
|
|
|
|
// PhpComposerInstalledEntry represents a single package entry from a composer v1/v2 "installed.json" files (very similar to composer.lock files).
|
|
type PhpComposerInstalledEntry PhpComposerLockEntry
|
|
|
|
// PhpComposerLockEntry represents a single package entry found from a composer.lock file.
|
|
type PhpComposerLockEntry struct {
|
|
Name string `json:"name"`
|
|
Version string `json:"version"`
|
|
Source PhpComposerExternalReference `json:"source"`
|
|
Dist PhpComposerExternalReference `json:"dist"`
|
|
Require map[string]string `json:"require,omitempty"`
|
|
Provide map[string]string `json:"provide,omitempty"`
|
|
RequireDev map[string]string `json:"require-dev,omitempty"`
|
|
Suggest map[string]string `json:"suggest,omitempty"`
|
|
License []string `json:"license,omitempty"`
|
|
Type string `json:"type,omitempty"`
|
|
NotificationURL string `json:"notification-url,omitempty"`
|
|
Bin []string `json:"bin,omitempty"`
|
|
Authors []PhpComposerAuthors `json:"authors,omitempty"`
|
|
Description string `json:"description,omitempty"`
|
|
Homepage string `json:"homepage,omitempty"`
|
|
Keywords []string `json:"keywords,omitempty"`
|
|
Time string `json:"time,omitempty"`
|
|
}
|
|
|
|
type PhpComposerExternalReference struct {
|
|
Type string `json:"type"`
|
|
URL string `json:"url"`
|
|
Reference string `json:"reference"`
|
|
Shasum string `json:"shasum,omitempty"`
|
|
}
|
|
|
|
type PhpComposerAuthors struct {
|
|
Name string `json:"name"`
|
|
Email string `json:"email,omitempty"`
|
|
Homepage string `json:"homepage,omitempty"`
|
|
}
|
|
|
|
// PhpPeclEntry represents a single package entry found within php pecl metadata files.
|
|
// Deprecated: please use PhpPearEntry instead with the pear cataloger.
|
|
type PhpPeclEntry PhpPearEntry
|
|
|
|
// PhpPearEntry represents a single package entry found within php pear metadata files.
|
|
type PhpPearEntry struct {
|
|
Name string `json:"name"`
|
|
Channel string `json:"channel,omitempty"`
|
|
Version string `json:"version"`
|
|
License []string `json:"license,omitempty"`
|
|
}
|