2020-06-24 14:38:42 -05:00
|
|
|
// Package cveinfo ...
|
|
|
|
package cveinfo
|
|
|
|
|
|
|
|
import (
|
2021-10-04 16:27:26 -05:00
|
|
|
"github.com/urfave/cli/v2"
|
2021-12-03 22:50:58 -05:00
|
|
|
"zotregistry.io/zot/pkg/extensions/search/common"
|
|
|
|
"zotregistry.io/zot/pkg/log"
|
|
|
|
"zotregistry.io/zot/pkg/storage"
|
2020-06-24 14:38:42 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
// CveInfo ...
|
|
|
|
type CveInfo struct {
|
2021-04-05 19:40:33 -05:00
|
|
|
Log log.Logger
|
|
|
|
CveTrivyController CveTrivyController
|
|
|
|
StoreController storage.StoreController
|
2021-05-26 12:22:31 -05:00
|
|
|
LayoutUtils *common.OciLayoutUtils
|
2021-04-05 19:40:33 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
type CveTrivyController struct {
|
2021-10-04 16:27:26 -05:00
|
|
|
DefaultCveConfig *TrivyCtx
|
|
|
|
SubCveConfig map[string]*TrivyCtx
|
|
|
|
}
|
2021-12-13 14:23:31 -05:00
|
|
|
|
2021-10-04 16:27:26 -05:00
|
|
|
type TrivyCtx struct {
|
|
|
|
Input string
|
|
|
|
Ctx *cli.Context
|
2020-06-24 14:38:42 -05:00
|
|
|
}
|