mirror of
https://github.com/project-zot/zot.git
synced 2025-01-27 23:01:43 -05:00
19003e8a71
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>
33 lines
1.1 KiB
Go
33 lines
1.1 KiB
Go
// +build minimal
|
|
|
|
package extensions
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/anuvu/zot/pkg/api/config"
|
|
"github.com/anuvu/zot/pkg/log"
|
|
"github.com/anuvu/zot/pkg/storage"
|
|
"github.com/gorilla/mux"
|
|
)
|
|
|
|
// DownloadTrivyDB ...
|
|
func downloadTrivyDB(dbDir string, log log.Logger, updateInterval time.Duration) error {
|
|
return nil
|
|
}
|
|
|
|
// EnableExtensions ...
|
|
func EnableExtensions(config *config.Config, log log.Logger, rootDir string) {
|
|
log.Warn().Msg("skipping enabling extensions because given zot binary doesn't support any extensions, please build zot full binary for this feature")
|
|
}
|
|
|
|
// SetupRoutes ...
|
|
func SetupRoutes(conf *config.Config, router *mux.Router, storeController storage.StoreController, log log.Logger) {
|
|
log.Warn().Msg("skipping setting up extensions routes because given zot binary doesn't support any extensions, please build zot full binary for this feature")
|
|
}
|
|
|
|
// SyncOneImage...
|
|
func SyncOneImage(config *config.Config, log log.Logger, repoName, reference string) (bool, error) {
|
|
log.Warn().Msg("skipping syncing on demand because given zot binary doesn't support any extensions, please build zot full binary for this feature")
|
|
return false, nil
|
|
}
|