2022-04-27 01:00:20 -05:00
|
|
|
//go:build !sync
|
|
|
|
// +build !sync
|
|
|
|
|
|
|
|
package extensions
|
|
|
|
|
|
|
|
import (
|
|
|
|
"zotregistry.io/zot/pkg/api/config"
|
2023-05-31 12:26:23 -05:00
|
|
|
"zotregistry.io/zot/pkg/extensions/sync"
|
2022-04-27 01:00:20 -05:00
|
|
|
"zotregistry.io/zot/pkg/log"
|
2023-07-18 12:27:26 -05:00
|
|
|
mTypes "zotregistry.io/zot/pkg/meta/types"
|
2023-05-31 12:26:23 -05:00
|
|
|
"zotregistry.io/zot/pkg/scheduler"
|
2022-04-27 01:00:20 -05:00
|
|
|
"zotregistry.io/zot/pkg/storage"
|
|
|
|
)
|
|
|
|
|
|
|
|
// EnableSyncExtension ...
|
2023-07-18 12:27:26 -05:00
|
|
|
func EnableSyncExtension(config *config.Config, metaDB mTypes.MetaDB,
|
2023-05-31 12:26:23 -05:00
|
|
|
storeController storage.StoreController, sch *scheduler.Scheduler, log log.Logger,
|
|
|
|
) (*sync.BaseOnDemand, error) {
|
2022-04-27 01:00:20 -05:00
|
|
|
log.Warn().Msg("skipping enabling sync extension because given zot binary doesn't include this feature," +
|
|
|
|
"please build a binary that does so")
|
|
|
|
|
2023-05-31 12:26:23 -05:00
|
|
|
return nil, nil //nolint: nilnil
|
2022-04-27 01:00:20 -05:00
|
|
|
}
|