2020-10-14 16:47:20 -05:00
|
|
|
// +build minimal
|
|
|
|
|
|
|
|
package extensions
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
2021-06-08 15:11:18 -05:00
|
|
|
"github.com/anuvu/zot/pkg/api/config"
|
2020-10-14 16:47:20 -05:00
|
|
|
"github.com/anuvu/zot/pkg/log"
|
|
|
|
"github.com/anuvu/zot/pkg/storage"
|
|
|
|
"github.com/gorilla/mux"
|
|
|
|
)
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
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
|
|
|
|
|
|
|
// SyncOneImage...
|
|
|
|
func SyncOneImage(config *config.Config, log log.Logger, repoName, reference string) (bool, error) {
|
2021-10-15 10:05:00 -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-06-08 15:11:18 -05:00
|
|
|
return false, nil
|
|
|
|
}
|