2020-06-24 14:38:42 -05:00
|
|
|
// Package cveinfo ...
|
|
|
|
package cveinfo
|
|
|
|
|
|
|
|
import (
|
2020-08-19 01:53:04 -05:00
|
|
|
"time"
|
|
|
|
|
2020-06-24 14:38:42 -05:00
|
|
|
"github.com/anuvu/zot/pkg/log"
|
2021-04-05 19:40:33 -05:00
|
|
|
"github.com/anuvu/zot/pkg/storage"
|
2020-06-24 14:38:42 -05:00
|
|
|
config "github.com/aquasecurity/trivy/integration/config"
|
|
|
|
)
|
|
|
|
|
|
|
|
// CveInfo ...
|
|
|
|
type CveInfo struct {
|
2021-04-05 19:40:33 -05:00
|
|
|
Log log.Logger
|
|
|
|
CveTrivyController CveTrivyController
|
|
|
|
StoreController storage.StoreController
|
|
|
|
}
|
|
|
|
|
|
|
|
type CveTrivyController struct {
|
|
|
|
DefaultCveConfig *config.Config
|
|
|
|
SubCveConfig map[string]*config.Config
|
2020-06-24 14:38:42 -05:00
|
|
|
}
|
2020-08-19 01:53:04 -05:00
|
|
|
|
|
|
|
type TagInfo struct {
|
|
|
|
Name string
|
|
|
|
Timestamp time.Time
|
|
|
|
}
|