mirror of
https://github.com/project-zot/zot.git
synced 2024-12-23 22:27:35 -05:00
f89925fb27
sync: don't return error on sync signatures, just skip them, closes #375 sync: sync signatures on demand sync on demand: in case of parallel requests pull image just once, closes #344 Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
47 lines
1.5 KiB
Go
47 lines
1.5 KiB
Go
//go:build minimal
|
|
// +build minimal
|
|
|
|
package extensions
|
|
|
|
import (
|
|
goSync "sync"
|
|
"time"
|
|
|
|
"github.com/gorilla/mux"
|
|
"zotregistry.io/zot/pkg/api/config"
|
|
"zotregistry.io/zot/pkg/log"
|
|
"zotregistry.io/zot/pkg/storage"
|
|
)
|
|
|
|
// nolint: deadcode,unused
|
|
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")
|
|
}
|
|
|
|
// EnableSyncExtension ...
|
|
func EnableSyncExtension(config *config.Config, wg *goSync.WaitGroup,
|
|
storeController storage.StoreController, log log.Logger) {
|
|
log.Warn().Msg("skipping enabling sync extension 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, storeController storage.StoreController,
|
|
repoName, reference string, isArtifact bool, log log.Logger) 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 nil
|
|
}
|