2020-10-14 14:47:20 -07:00
// +build minimal
package extensions
import (
"time"
2021-06-08 23:11:18 +03:00
"github.com/anuvu/zot/pkg/api/config"
2020-10-14 14:47:20 -07:00
"github.com/anuvu/zot/pkg/log"
"github.com/anuvu/zot/pkg/storage"
"github.com/gorilla/mux"
)
// DownloadTrivyDB ...
2020-10-22 17:31:16 -07:00
func downloadTrivyDB ( dbDir string , log log . Logger , updateInterval time . Duration ) error {
2020-10-14 14:47:20 -07:00
return nil
}
2020-10-22 17:31:16 -07:00
// EnableExtensions ...
2021-06-08 23:11:18 +03:00
func EnableExtensions ( config * config . Config , log log . Logger , rootDir string ) {
2020-10-22 17:31:16 -07: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 14:47:20 -07:00
}
2020-10-22 17:31:16 -07:00
// SetupRoutes ...
2021-06-08 23:11:18 +03:00
func SetupRoutes ( conf * config . Config , router * mux . Router , storeController storage . StoreController , log log . Logger ) {
2020-10-22 17:31:16 -07: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 14:47:20 -07:00
}
2021-06-08 23:11:18 +03:00
// SyncOneImage...
func SyncOneImage ( config * config . Config , log log . Logger , repoName , reference string ) ( bool , error ) {
log . Warn ( ) . Msg ( "skipping syncing on demand because given zot binary doesn't support any extensions, please build zot full binary for this feature" )
return false , nil
}