2021-12-03 22:50:58 -05:00
|
|
|
//go:build minimal
|
2020-10-14 16:47:20 -05:00
|
|
|
// +build minimal
|
|
|
|
|
|
|
|
package extensions
|
|
|
|
|
|
|
|
import (
|
2021-12-02 12:45:26 -05:00
|
|
|
goSync "sync"
|
2020-10-14 16:47:20 -05:00
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/gorilla/mux"
|
2021-12-03 22:50:58 -05:00
|
|
|
"zotregistry.io/zot/pkg/api/config"
|
|
|
|
"zotregistry.io/zot/pkg/log"
|
|
|
|
"zotregistry.io/zot/pkg/storage"
|
2020-10-14 16:47:20 -05:00
|
|
|
)
|
|
|
|
|
2021-10-15 10:05:00 -05:00
|
|
|
// nolint: deadcode,unused
|
2020-10-22 19:31:16 -05:00
|
|
|
func downloadTrivyDB(dbDir string, log log.Logger, updateInterval time.Duration) error {
|
2020-10-14 16:47:20 -05:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-10-22 19:31:16 -05:00
|
|
|
// EnableExtensions ...
|
2021-06-08 15:11:18 -05:00
|
|
|
func EnableExtensions(config *config.Config, log log.Logger, rootDir string) {
|
2021-10-15 10:05:00 -05:00
|
|
|
log.Warn().Msg("skipping enabling extensions because given zot binary doesn't support " +
|
|
|
|
"any extensions, please build zot full binary for this feature")
|
2020-10-14 16:47:20 -05:00
|
|
|
}
|
|
|
|
|
2021-10-28 04:10:01 -05:00
|
|
|
// EnableSyncExtension ...
|
2021-12-02 12:45:26 -05:00
|
|
|
func EnableSyncExtension(config *config.Config, wg *goSync.WaitGroup,
|
|
|
|
storeController storage.StoreController, log log.Logger) {
|
2021-10-28 04:10:01 -05:00
|
|
|
log.Warn().Msg("skipping enabling sync extension because given zot binary doesn't support any extensions," +
|
|
|
|
"please build zot full binary for this feature")
|
|
|
|
}
|
|
|
|
|
2020-10-22 19:31:16 -05:00
|
|
|
// SetupRoutes ...
|
2021-06-08 15:11:18 -05:00
|
|
|
func SetupRoutes(conf *config.Config, router *mux.Router, storeController storage.StoreController, log log.Logger) {
|
2021-10-15 10:05:00 -05:00
|
|
|
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")
|
2020-10-14 16:47:20 -05:00
|
|
|
}
|
2021-06-08 15:11:18 -05:00
|
|
|
|
2021-10-28 04:10:01 -05:00
|
|
|
// SyncOneImage ...
|
2021-12-02 12:45:26 -05:00
|
|
|
func SyncOneImage(config *config.Config, storeController storage.StoreController,
|
2022-01-10 11:06:12 -05:00
|
|
|
repoName, reference string, isArtifact bool, log log.Logger) error {
|
2021-10-28 04:10:01 -05:00
|
|
|
log.Warn().Msg("skipping syncing on demand because given zot binary doesn't support any extensions," +
|
|
|
|
"please build zot full binary for this feature")
|
2021-12-13 14:23:31 -05:00
|
|
|
|
2021-10-28 04:10:01 -05:00
|
|
|
return nil
|
2021-06-08 15:11:18 -05:00
|
|
|
}
|