mirror of
https://github.com/openfaas/faas.git
synced 2025-06-15 03:36:47 +00:00
17 lines
497 B
Go
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)
|
|
}
|
|
}
|