mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
chore: replace all shorthand tags of mapstruct -> mapstructure (#3633)
Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
This commit is contained in:
parent
4dc86a06c7
commit
5e2ba43328
@ -36,9 +36,9 @@ type packageJSON struct {
|
||||
}
|
||||
|
||||
type author struct {
|
||||
Name string `json:"name" mapstruct:"name"`
|
||||
Email string `json:"email" mapstruct:"email"`
|
||||
URL string `json:"url" mapstruct:"url"`
|
||||
Name string `json:"name" mapstructure:"name"`
|
||||
Email string `json:"email" mapstructure:"email"`
|
||||
URL string `json:"url" mapstructure:"url"`
|
||||
}
|
||||
|
||||
type repository struct {
|
||||
|
||||
@ -13,18 +13,18 @@ var _ FileOwner = (*PythonPackage)(nil)
|
||||
// Historically these were defined in PEPs 345, 314, and 241, but have been superseded by PEP 566. This means that this
|
||||
// struct can (partially) express at least versions 1.0, 1.1, 1.2, 2.1, 2.2, and 2.3 of the metadata format.
|
||||
type PythonPackage struct {
|
||||
Name string `json:"name" mapstruct:"Name"`
|
||||
Version string `json:"version" mapstruct:"Version"`
|
||||
Author string `json:"author" mapstruct:"Author"`
|
||||
AuthorEmail string `json:"authorEmail" mapstruct:"Authoremail"`
|
||||
Platform string `json:"platform" mapstruct:"Platform"`
|
||||
Name string `json:"name" mapstructure:"Name"`
|
||||
Version string `json:"version" mapstructure:"Version"`
|
||||
Author string `json:"author" mapstructure:"Author"`
|
||||
AuthorEmail string `json:"authorEmail" mapstructure:"AuthorEmail"`
|
||||
Platform string `json:"platform" mapstructure:"Platform"`
|
||||
Files []PythonFileRecord `json:"files,omitempty"`
|
||||
SitePackagesRootPath string `json:"sitePackagesRootPath"`
|
||||
TopLevelPackages []string `json:"topLevelPackages,omitempty"`
|
||||
DirectURLOrigin *PythonDirectURLOriginInfo `json:"directUrlOrigin,omitempty"`
|
||||
RequiresPython string `json:"requiresPython,omitempty" mapstruct:"RequiresPython"`
|
||||
RequiresDist []string `json:"requiresDist,omitempty" mapstruct:"RequiresDist"`
|
||||
ProvidesExtra []string `json:"providesExtra,omitempty" mapstruct:"ProvidesExtra"`
|
||||
RequiresPython string `json:"requiresPython,omitempty" mapstructure:"RequiresPython"`
|
||||
RequiresDist []string `json:"requiresDist,omitempty" mapstructure:"RequiresDist"`
|
||||
ProvidesExtra []string `json:"providesExtra,omitempty" mapstructure:"ProvidesExtra"`
|
||||
}
|
||||
|
||||
// PythonFileDigest represents the file metadata for a single file attributed to a python package.
|
||||
@ -86,9 +86,9 @@ type PythonPoetryLockExtraEntry struct {
|
||||
|
||||
// PythonRequirementsEntry represents a single entry within a [*-]requirements.txt file.
|
||||
type PythonRequirementsEntry struct {
|
||||
Name string `json:"name" mapstruct:"Name"`
|
||||
Extras []string `json:"extras,omitempty" mapstruct:"Extras"`
|
||||
VersionConstraint string `json:"versionConstraint" mapstruct:"VersionConstraint"`
|
||||
URL string `json:"url,omitempty" mapstruct:"URL"`
|
||||
Markers string `json:"markers,omitempty" mapstruct:"Markers"`
|
||||
Name string `json:"name" mapstructure:"Name"`
|
||||
Extras []string `json:"extras,omitempty" mapstructure:"Extras"`
|
||||
VersionConstraint string `json:"versionConstraint" mapstructure:"VersionConstraint"`
|
||||
URL string `json:"url,omitempty" mapstructure:"URL"`
|
||||
Markers string `json:"markers,omitempty" mapstructure:"Markers"`
|
||||
}
|
||||
|
||||
@ -3,10 +3,10 @@ package pkg
|
||||
type SwiplPackEntry struct {
|
||||
Name string `toml:"name" json:"name"`
|
||||
Version string `toml:"version" json:"version"`
|
||||
Author string `json:"author" mapstruct:"Author"`
|
||||
AuthorEmail string `json:"authorEmail" mapstruct:"Authoremail"`
|
||||
Author string `json:"author" mapstructure:"Author"`
|
||||
AuthorEmail string `json:"authorEmail" mapstructure:"AuthorEmail"`
|
||||
Packager string `json:"packager" mapstructure:"Packager"`
|
||||
PackagerEmail string `json:"packagerEmail" mapstruct:"Packageremail"`
|
||||
PackagerEmail string `json:"packagerEmail" mapstructure:"PackagerEmail"`
|
||||
Homepage string `json:"homepage"`
|
||||
Dependencies []string `toml:"dependencies" json:"dependencies"`
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user