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