mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
87fc941b3c
closes #536 Signed-off-by: Lisca Ana-Roberta <ana.kagome@yahoo.com>
43 lines
724 B
Go
43 lines
724 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 {
|
|
Interval time.Duration
|
|
}
|