0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-23 22:27:35 -05:00
zot/pkg/extensions/config/config.go
Andreea Lupu 5ef023dbc1
add enable/disable option for scrub extension (#827)
Signed-off-by: Andreea-Lupu <andreealupu1470@yahoo.com>
2022-09-27 18:06:50 -07:00

44 lines
740 B
Go

package config
import (
"time"
"zotregistry.io/zot/pkg/extensions/sync"
)
type ExtensionConfig struct {
Search *SearchConfig
Sync *sync.Config
Metrics *MetricsConfig
Scrub *ScrubConfig
Lint *LintConfig
}
type LintConfig struct {
Enabled *bool
MandatoryAnnotations []string
}
type SearchConfig struct {
// CVE search
CVE *CVEConfig
Enable *bool
}
type CVEConfig struct {
UpdateInterval time.Duration // should be 2 hours or more, if not specified default be kept as 24 hours
}
type MetricsConfig struct {
Enable *bool
Prometheus *PrometheusConfig
}
type PrometheusConfig struct {
Path string // default is "/metrics"
}
type ScrubConfig struct {
Enable *bool
Interval time.Duration
}