2023-03-09 13:43:26 -05:00
|
|
|
//go:build !mgmt
|
|
|
|
// +build !mgmt
|
|
|
|
|
|
|
|
package extensions
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gorilla/mux"
|
|
|
|
|
|
|
|
"zotregistry.io/zot/pkg/api/config"
|
|
|
|
"zotregistry.io/zot/pkg/log"
|
2023-07-06 06:57:59 -05:00
|
|
|
"zotregistry.io/zot/pkg/meta/repodb"
|
|
|
|
"zotregistry.io/zot/pkg/scheduler"
|
2023-03-09 13:43:26 -05:00
|
|
|
)
|
|
|
|
|
2023-05-25 06:46:52 -05:00
|
|
|
func IsBuiltWithMGMTExtension() bool {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2023-03-09 13:43:26 -05:00
|
|
|
func SetupMgmtRoutes(config *config.Config, router *mux.Router, log log.Logger) {
|
|
|
|
log.Warn().Msg("skipping setting up mgmt routes because given zot binary doesn't include this feature," +
|
|
|
|
"please build a binary that does so")
|
|
|
|
}
|
2023-07-06 06:57:59 -05:00
|
|
|
|
|
|
|
func EnablePeriodicSignaturesVerification(config *config.Config, taskScheduler *scheduler.Scheduler,
|
|
|
|
repoDB repodb.RepoDB, log log.Logger,
|
|
|
|
) {
|
|
|
|
log.Warn().Msg("skipping adding to the scheduler a generator for updating signatures validity because " +
|
|
|
|
"given binary doesn't include this feature, please build a binary that does so")
|
|
|
|
}
|