2022-10-10 15:05:55 +03:00
|
|
|
//go:build !search
|
|
|
|
// +build !search
|
2022-04-27 09:00:20 +03:00
|
|
|
|
|
|
|
package extensions
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gorilla/mux"
|
2022-10-20 19:39:20 +03:00
|
|
|
|
2024-02-01 06:34:07 +02:00
|
|
|
"zotregistry.dev/zot/pkg/api/config"
|
|
|
|
"zotregistry.dev/zot/pkg/log"
|
|
|
|
mTypes "zotregistry.dev/zot/pkg/meta/types"
|
|
|
|
"zotregistry.dev/zot/pkg/scheduler"
|
|
|
|
"zotregistry.dev/zot/pkg/storage"
|
2022-04-27 09:00:20 +03:00
|
|
|
)
|
|
|
|
|
2023-09-22 21:49:17 +03:00
|
|
|
type CveScanner interface{}
|
2023-02-10 07:04:52 +02:00
|
|
|
|
2023-09-22 21:49:17 +03:00
|
|
|
func GetCveScanner(config *config.Config, storeController storage.StoreController,
|
2023-07-18 20:27:26 +03:00
|
|
|
metaDB mTypes.MetaDB, log log.Logger,
|
2023-09-22 21:49:17 +03:00
|
|
|
) CveScanner {
|
2023-02-10 07:04:52 +02:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-05-25 14:46:52 +03:00
|
|
|
func IsBuiltWithSearchExtension() bool {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2022-04-27 09:00:20 +03:00
|
|
|
// EnableSearchExtension ...
|
2023-01-09 22:37:44 +02:00
|
|
|
func EnableSearchExtension(config *config.Config, storeController storage.StoreController,
|
2023-09-22 21:49:17 +03:00
|
|
|
metaDB mTypes.MetaDB, scheduler *scheduler.Scheduler, cveScanner CveScanner, log log.Logger,
|
2023-01-09 22:37:44 +02:00
|
|
|
) {
|
2022-04-27 09:00:20 +03:00
|
|
|
log.Warn().Msg("skipping enabling search extension because given zot binary doesn't include this feature," +
|
|
|
|
"please build a binary that does so")
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetupSearchRoutes ...
|
2023-01-09 22:37:44 +02:00
|
|
|
func SetupSearchRoutes(config *config.Config, router *mux.Router, storeController storage.StoreController,
|
2023-09-22 21:49:17 +03:00
|
|
|
metaDB mTypes.MetaDB, cveScanner CveScanner, log log.Logger,
|
2022-04-27 09:00:20 +03:00
|
|
|
) {
|
|
|
|
log.Warn().Msg("skipping setting up search routes because given zot binary doesn't include this feature," +
|
|
|
|
"please build a binary that does so")
|
|
|
|
}
|