mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
update vulns input / output api
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
ImagevulnerabilitiesObjectGroup = "image.vulnscan.com"
|
||||
ImagevulnerabilitiesObjectGroup = "armo.vuln.images"
|
||||
ImagevulnerabilitiesObjectVersion = "v1"
|
||||
ImagevulnerabilitiesObjectKind = "ImageVulnerabilities"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user