Merge pull request #517 from KeyboardNerd/master
api,database: updated version_format documentation.
This commit is contained in:
commit
12b47b0854
@ -161,6 +161,8 @@ type Feature struct {
|
|||||||
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||||
NamespaceName string `protobuf:"bytes,2,opt,name=namespace_name,json=namespaceName" json:"namespace_name,omitempty"`
|
NamespaceName string `protobuf:"bytes,2,opt,name=namespace_name,json=namespaceName" json:"namespace_name,omitempty"`
|
||||||
Version string `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"`
|
Version string `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"`
|
||||||
|
// version_format is the format used by installer package manager to store
|
||||||
|
// package versions.
|
||||||
VersionFormat string `protobuf:"bytes,4,opt,name=version_format,json=versionFormat" json:"version_format,omitempty"`
|
VersionFormat string `protobuf:"bytes,4,opt,name=version_format,json=versionFormat" json:"version_format,omitempty"`
|
||||||
Vulnerabilities []*Vulnerability `protobuf:"bytes,5,rep,name=vulnerabilities" json:"vulnerabilities,omitempty"`
|
Vulnerabilities []*Vulnerability `protobuf:"bytes,5,rep,name=vulnerabilities" json:"vulnerabilities,omitempty"`
|
||||||
}
|
}
|
||||||
|
@ -45,6 +45,9 @@ message Feature{
|
|||||||
string name = 1;
|
string name = 1;
|
||||||
string namespace_name = 2;
|
string namespace_name = 2;
|
||||||
string version = 3;
|
string version = 3;
|
||||||
|
|
||||||
|
// version_format is the format used by installer package manager to store
|
||||||
|
// package versions.
|
||||||
string version_format = 4;
|
string version_format = 4;
|
||||||
repeated Vulnerability vulnerabilities = 5;
|
repeated Vulnerability vulnerabilities = 5;
|
||||||
}
|
}
|
||||||
|
@ -232,7 +232,8 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"version_format": {
|
"version_format": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"description": "version_format is the format used by installer package manager to store\npackage versions."
|
||||||
},
|
},
|
||||||
"vulnerabilities": {
|
"vulnerabilities": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
@ -71,8 +71,8 @@ type Namespace struct {
|
|||||||
// determined.
|
// determined.
|
||||||
//
|
//
|
||||||
// e.g. Name: OpenSSL, Version: 1.0, VersionFormat: dpkg.
|
// e.g. Name: OpenSSL, Version: 1.0, VersionFormat: dpkg.
|
||||||
// dpkg implies the installer package manager but the namespace (might be
|
// dpkg is the version format of the installer package manager, which in this
|
||||||
// debian:7, debian:8, ...) could not be determined.
|
// case could be dpkg or apk.
|
||||||
type Feature struct {
|
type Feature struct {
|
||||||
Name string
|
Name string
|
||||||
Version string
|
Version string
|
||||||
|
Loading…
Reference in New Issue
Block a user