mirror of
https://github.com/project-zot/zot.git
synced 2024-12-23 22:27:35 -05:00
47c9b6244e
Signed-off-by: Alexei Dodon <adodon@cisco.com>
32 lines
541 B
Go
32 lines
541 B
Go
package config
|
|
|
|
import (
|
|
"time"
|
|
|
|
"zotregistry.io/zot/pkg/extensions/sync"
|
|
)
|
|
|
|
type ExtensionConfig struct {
|
|
Search *SearchConfig
|
|
Sync *sync.Config
|
|
Metrics *MetricsConfig
|
|
}
|
|
|
|
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"
|
|
}
|