"log"
"os"
+ ch "gerrit.o-ran-sc.org/r/ric-plt/ricdms/pkg/charts"
ph "gerrit.o-ran-sc.org/r/ric-plt/ricdms/pkg/health"
po "gerrit.o-ran-sc.org/r/ric-plt/ricdms/pkg/onboard"
"gerrit.o-ran-sc.org/r/ric-plt/ricdms/pkg/restapi"
"gerrit.o-ran-sc.org/r/ric-plt/ricdms/pkg/restapi/operations"
+ "gerrit.o-ran-sc.org/r/ric-plt/ricdms/pkg/restapi/operations/charts"
"gerrit.o-ran-sc.org/r/ric-plt/ricdms/pkg/restapi/operations/health"
"gerrit.o-ran-sc.org/r/ric-plt/ricdms/pkg/restapi/operations/onboard"
"gerrit.o-ran-sc.org/r/ric-plt/ricdms/pkg/resthooks"
rh: resthooks.NewResthook(
ph.NewHealthChecker(),
po.NewOnboarder(),
+ ch.NewChartmgr(),
),
}
r.setupHandler()
return resp
})
+ api.ChartsGetChartsListHandler = charts.GetChartsListHandlerFunc(func(param charts.GetChartsListParams) middleware.Responder {
+ ricdms.Logger.Debug("==> GetChartList")
+ resp := r.rh.GetCharts()
+ return resp
+ })
+
r.api = api
}