PackageData class
Constructors
-
PackageData({String? architecture, List<
BinarySourceInfo> ? binarySourceInfo, PackageVersion? binaryVersion, String? cpeUri, List<LanguagePackageDependency> ? dependencyChain, List<FileLocation> ? fileLocation, String? hashDigest, List<String> ? licenses, Maintainer? maintainer, String? os, String? osVersion, String? package, String? packageType, List<String> ? patchedCve, PackageVersion? sourceVersion, String? unused, String? version}) - PackageData.fromJson(Map json_)
Properties
- architecture ↔ String?
-
The architecture of the package.
getter/setter pair
-
binarySourceInfo
↔ List<
BinarySourceInfo> ? -
A bundle containing the binary and source information.
getter/setter pair
- binaryVersion ↔ PackageVersion?
-
DEPRECATED
getter/setter pair
- cpeUri ↔ String?
-
The cpe_uri in cpe format in which
the vulnerability may manifest.
getter/setter pair
-
dependencyChain
↔ List<
LanguagePackageDependency> ? -
The dependency chain between this package and the user's artifact.
getter/setter pair
-
fileLocation
↔ List<
FileLocation> ? -
The path to the jar file / go binary file.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hashDigest ↔ String?
-
HashDigest stores the SHA512 hash digest of the jar file if the package is
of type Maven.
getter/setter pair
-
licenses
↔ List<
String> ? -
The list of licenses found that are related to a given package.
getter/setter pair
- maintainer ↔ Maintainer?
-
The maintainer of the package.
getter/setter pair
- os ↔ String?
-
The OS affected by a vulnerability Used to generate the cpe_uri for OS
packages
getter/setter pair
- osVersion ↔ String?
-
The version of the OS Used to generate the cpe_uri for OS packages
getter/setter pair
- package ↔ String?
-
The package being analysed for vulnerabilities
getter/setter pair
- packageType ↔ String?
-
The type of package: os, maven, go, etc.
Possible string values are:
getter/setter pair
-
patchedCve
↔ List<
String> ? -
CVEs that this package is no longer vulnerable to
go/drydock-dd-custom-binary-scanning
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceVersion ↔ PackageVersion?
-
DEPRECATED
getter/setter pair
- unused ↔ String?
-
getter/setter pair
- version ↔ String?
-
The version of the package being analysed
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited