1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-01 15:37:31 +00:00

Add k8s proxy

This commit is contained in:
Darren Shepherd
2019-08-07 22:41:31 -07:00
parent 24e6192504
commit 71faff9d2a
4 changed files with 134 additions and 6 deletions

15
pkg/proxy/error.go Normal file
View File

@@ -0,0 +1,15 @@
package proxy
import "net/http"
var (
er = &errorResponder{}
)
type errorResponder struct {
}
func (e *errorResponder) Error(w http.ResponseWriter, req *http.Request, err error) {
w.WriteHeader(http.StatusInternalServerError)
w.Write([]byte(err.Error()))
}