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

Method localWebkubectlSessionURL

internal/server/tty.go:9–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7)
8
9func (e *KubePiServer) localWebkubectlSessionURL() string {
10 host := strings.TrimSpace(e.config.Spec.Server.Bind.Host)
11 switch host {
12 case "", "0.0.0.0", "::", "[::]":
13 host = "127.0.0.1"
14 }
15 return "http://" + net.JoinHostPort(host, strconv.Itoa(e.config.Spec.Server.Bind.Port)) + "/kubepi/api/v1/webkubectl/session"
16}

Callers 2

startTtyMethod · 0.95
startTtyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected