MCPcopy Index your code
hub / github.com/1Panel-dev/KubePi / ensureProxyPathValid

Function ensureProxyPathValid

internal/api/v1/proxy/proxy.go:463–468  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

461}
462
463func ensureProxyPathValid(path string) string {
464 if !strings.HasPrefix(path, "/") {
465 path = "/" + path
466 }
467 return path
468}
469
470func parseResourceName(path string) (string, error) {
471 ss := strings.Split(path, "/")

Callers 1

KubernetesAPIProxyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected