2022-10-10 07:05:55 -05:00
|
|
|
//go:build !search
|
|
|
|
// +build !search
|
2022-04-27 01:00:20 -05:00
|
|
|
|
|
|
|
package extensions
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gorilla/mux"
|
2022-10-20 11:39:20 -05:00
|
|
|
|
2022-04-27 01:00:20 -05:00
|
|
|
"zotregistry.io/zot/pkg/api/config"
|
|
|
|
"zotregistry.io/zot/pkg/log"
|
2023-07-18 12:27:26 -05:00
|
|
|
mTypes "zotregistry.io/zot/pkg/meta/types"
|
2023-03-02 12:43:54 -05:00
|
|
|
"zotregistry.io/zot/pkg/scheduler"
|
2022-04-27 01:00:20 -05:00
|
|
|
"zotregistry.io/zot/pkg/storage"
|
|
|
|
)
|
|
|
|
|
2023-09-22 13:49:17 -05:00
|
|
|
type CveScanner interface{}
|
2023-02-10 00:04:52 -05:00
|
|
|
|
2023-09-22 13:49:17 -05:00
|
|
|
func GetCveScanner(config *config.Config, storeController storage.StoreController,
|
2023-07-18 12:27:26 -05:00
|
|
|
metaDB mTypes.MetaDB, log log.Logger,
|
2023-09-22 13:49:17 -05:00
|
|
|
) CveScanner {
|
2023-02-10 00:04:52 -05:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2023-05-25 06:46:52 -05:00
|
|
|
func IsBuiltWithSearchExtension() bool {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2022-04-27 01:00:20 -05:00
|
|
|
// EnableSearchExtension ...
|
2023-01-09 15:37:44 -05:00
|
|
|
func EnableSearchExtension(config *config.Config, storeController storage.StoreController,
|
2023-09-22 13:49:17 -05:00
|
|
|
metaDB mTypes.MetaDB, scheduler *scheduler.Scheduler, cveScanner CveScanner, log log.Logger,
|
2023-01-09 15:37:44 -05:00
|
|
|
) {
|
2022-04-27 01:00:20 -05: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 15:37:44 -05:00
|
|
|
func SetupSearchRoutes(config *config.Config, router *mux.Router, storeController storage.StoreController,
|
2023-09-22 13:49:17 -05:00
|
|
|
metaDB mTypes.MetaDB, cveScanner CveScanner, log log.Logger,
|
2022-04-27 01:00:20 -05: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")
|
|
|
|
}
|