MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / ListRuntimesHandler

Method ListRuntimesHandler

pkg/controller/handler.go:133–141  ·  view source on GitHub ↗
(c *routing.Context)

Source from the content-addressed store, hash-verified

131}
132
133func (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
143func (controller *Controller) GetResourceHandler(c *routing.Context) error {
144 resource := controller.runtimeDispatcher.ResourceStatistics()

Callers

nothing calls this directly

Calls 3

MarshalFunction · 0.92
RuntimeListMethod · 0.65
SetBodyMethod · 0.45

Tested by

no test coverage detected