Versions in this module Expand all Collapse all v1 v1.4.1 Sep 11, 2020 Changes in this version + func NewK8sAPIProxy(cfg *rest.Config, proxyPath string) (http.Handler, error) + type Endpoint interface + CA func() []byte + Close func() + HTTPClient func() *http.Client + URLForPath func(path string) string + func NewExternalEndpoint(baseURL string, ca []byte) Endpoint + func NewPortforwardEndpoint(pf *portforward.Portforward, ca []byte) Endpoint + func NewProxyEndpoint(localPort int, cfg *rest.Config, service K8sService) (Endpoint, error) + type K8sService struct + Name string + Namespace string + Port int + func (s K8sService) Path() string + type ReplaceTransport struct + PathPrepend string + func (t *ReplaceTransport) RoundTrip(req *http.Request) (*http.Response, error)