faas/gateway/handlers/update_handler.go
Alex Ellis 2229e922d7 Add update endpoint/route
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-09-23 20:42:13 +01:00

17 lines
497 B
Go

package handlers
import (
"net/http"
"github.com/alexellis/faas/gateway/metrics"
"github.com/docker/docker/client"
)
// MakeUpdateFunctionHandler request to update an existing function with new configuration such as image, parameters etc.
func MakeUpdateFunctionHandler(metricsOptions metrics.MetricOptions, c *client.Client, maxRestarts uint64) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
defer r.Body.Close()
w.WriteHeader(http.StatusNotImplemented)
}
}