mirror of
https://github.com/project-zot/zot.git
synced 2026-06-15 20:07:55 +08:00
cli: add commands for CVE
Uses GraphQL API of zot to fetch CVE info - Get all images affected by a CVE (input: CVEID) - Get all CVEs of a layer (input: image:tag) - Get all layers of an image which have resolved a CVE (input: image, CVEID) - Get all layers of an image affected by a CVE (input: image, CVEID)
This commit is contained in:
+2
-1
@@ -27,7 +27,7 @@ var (
|
||||
ErrRequireCred = errors.New("ldap: bind credentials required")
|
||||
ErrInvalidCred = errors.New("ldap: invalid credentials")
|
||||
ErrInvalidArgs = errors.New("cli: Invalid Arguments")
|
||||
ErrInvalidFlagsCombination = errors.New("cli: Invalid combination of flags. Add --help flag")
|
||||
ErrInvalidFlagsCombination = errors.New("cli: Invalid combination of flags")
|
||||
ErrInvalidURL = errors.New("cli: invalid URL format")
|
||||
ErrUnauthorizedAccess = errors.New("cli: unauthorized access. check credentials")
|
||||
ErrCannotResetConfigKey = errors.New("cli: cannot reset given config key")
|
||||
@@ -36,4 +36,5 @@ var (
|
||||
ErrIllegalConfigKey = errors.New("cli: given config key is not allowed")
|
||||
ErrScanNotSupported = errors.New("search: scanning of image media type not supported")
|
||||
ErrFixedTagNotFound = errors.New("search: no fixed tag found")
|
||||
ErrCLITimeout = errors.New("cli: Query timed out while waiting for results")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user