update vulns input / output api

This commit is contained in:
David Delarosa
2022-03-07 17:03:14 +02:00
parent 7956a849d9
commit 260f7b06c1
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -53,7 +53,7 @@ The interface needs to cover the following functionalities:
## Go API proposal
```
```go
/*type ContainerImageRegistryCredentials struct {
Password string
@@ -110,9 +110,9 @@ type IContainerImageVulnerabilityAdaptor interface {
The objects received from the interface will be converted to an IMetadata compatible objects as following
```
```json
{
"apiVersion": "image.vulnscan.com/v1",
"apiVersion": "armo.vuln.images/v1",
"kind": "ImageVulnerabilities",
"metadata": {
"name": "nginx:latest"
@@ -128,9 +128,9 @@ The objects received from the interface will be converted to an IMetadata compat
The rego results will be a combination of the k8s artifact and the list of relevant CVEs for the control
```
```json
{
"apiVersion": "result.vulnscan.com/v1",
"apiVersion": "armo.vuln/v1",
"kind": "Pod",
"metadata": {
"name": "nginx"
+1 -1
View File
@@ -13,7 +13,7 @@ import (
)
const (
ImagevulnerabilitiesObjectGroup = "image.vulnscan.com"
ImagevulnerabilitiesObjectGroup = "armo.vuln.images"
ImagevulnerabilitiesObjectVersion = "v1"
ImagevulnerabilitiesObjectKind = "ImageVulnerabilities"
)