2022-04-27 01:00:20 -05:00
|
|
|
//go:build !sync
|
|
|
|
// +build !sync
|
|
|
|
|
|
|
|
package extensions
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
goSync "sync"
|
|
|
|
|
|
|
|
"zotregistry.io/zot/pkg/api/config"
|
|
|
|
"zotregistry.io/zot/pkg/log"
|
|
|
|
"zotregistry.io/zot/pkg/storage"
|
|
|
|
)
|
|
|
|
|
|
|
|
// EnableSyncExtension ...
|
|
|
|
func EnableSyncExtension(ctx context.Context,
|
|
|
|
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 include this feature," +
|
|
|
|
"please build a binary that does so")
|
|
|
|
}
|
|
|
|
|
|
|
|
// SyncOneImage ...
|
2022-11-08 03:38:16 -05:00
|
|
|
func SyncOneImage(ctx context.Context, config *config.Config, storeController storage.StoreController,
|
2022-11-15 01:21:49 -05:00
|
|
|
repoName, reference string, artifactType string, log log.Logger,
|
2022-04-27 01:00:20 -05: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
|
|
|
|
}
|