mirror of
https://github.com/project-zot/zot.git
synced 2024-12-23 22:27:35 -05:00
c0f93caacb
Thanks @jdolitsky et al for kicking off these changes at: https://github.com/oci-playground/zot/commits/main Thanks @sudo-bmitch for reviewing the patch Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
32 lines
878 B
Go
32 lines
878 B
Go
//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 ...
|
|
func SyncOneImage(ctx context.Context, 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 include this feature," +
|
|
"please build a binary that does so")
|
|
|
|
return nil
|
|
}
|