2022-04-27 09:00:20 +03:00
|
|
|
//go:build !sync
|
|
|
|
// +build !sync
|
|
|
|
|
|
|
|
package extensions
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"zotregistry.io/zot/pkg/api/config"
|
|
|
|
"zotregistry.io/zot/pkg/log"
|
2023-03-09 20:41:48 +02:00
|
|
|
"zotregistry.io/zot/pkg/meta/repodb"
|
2022-04-27 09:00:20 +03:00
|
|
|
"zotregistry.io/zot/pkg/storage"
|
|
|
|
)
|
|
|
|
|
|
|
|
// EnableSyncExtension ...
|
2023-03-29 21:37:58 +03:00
|
|
|
func EnableSyncExtension(ctx context.Context, config *config.Config, repoDB repodb.RepoDB,
|
2022-04-27 09:00:20 +03:00
|
|
|
storeController storage.StoreController, log log.Logger,
|
|
|
|
) {
|
|
|
|
log.Warn().Msg("skipping enabling sync extension because given zot binary doesn't include this feature," +
|
|
|
|
"please build a binary that does so")
|
|
|
|
}
|
|
|
|
|
|
|
|
// SyncOneImage ...
|
2023-03-09 20:41:48 +02:00
|
|
|
func SyncOneImage(ctx context.Context, config *config.Config, repoDB repodb.RepoDB,
|
|
|
|
storeController storage.StoreController, repoName, reference string, artifactType string, log log.Logger,
|
2022-04-27 09:00:20 +03:00
|
|
|
) error {
|
|
|
|
log.Warn().Msg("skipping syncing on demand because given zot binary doesn't include this feature," +
|
|
|
|
"please build a binary that does so")
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|