(c *routing.Context)
| 131 | } |
| 132 | |
| 133 | func (controller *Controller) ListRuntimesHandler(c *routing.Context) error { |
| 134 | runtimes := controller.runtimeDispatcher.RuntimeList() |
| 135 | body, err := json.Marshal(runtimes) |
| 136 | if err != nil { |
| 137 | return err |
| 138 | } |
| 139 | c.Response.SetBody(body) |
| 140 | return nil |
| 141 | } |
| 142 | |
| 143 | func (controller *Controller) GetResourceHandler(c *routing.Context) error { |
| 144 | resource := controller.runtimeDispatcher.ResourceStatistics() |
nothing calls this directly
no test coverage detected