Files
zot/pkg/extensions/config/config.go
T
Petu Eusebiu 19003e8a71 Added new extension "sync"
Periodically poll registries and pull images according to sync's config
Added sync on demand, syncing when clients asks for an image which
zot doesn't have.

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
2021-10-21 10:32:46 -07:00

23 lines
365 B
Go

package config
import (
"time"
"github.com/anuvu/zot/pkg/extensions/sync"
)
type ExtensionConfig struct {
Search *SearchConfig
Sync *sync.Config
}
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
}