def Exec.path

bend-kube-runtime@0.2.0.0 · src/exec.bend:68

import bend-kube-runtime@0.2.0.0/src/exec.bend as Exec
import Base
import bend-kube-runtime@0.2.0.0/src/http.bend as H

68def Exec.path(ns: String, pod: String, container: String, cmd: List<&2, String>, stdin: Bool) ->
69  String:
70  "/api/v1/namespaces/" ++ H.Http.encode(ns) ++ "/pods/" ++ H.Http.encode(pod) ++
71    "/exec?container=" ++ H.Http.encode(container) ++ "&stdout=true&stderr=true" ++
72    Exec.flag(stdin) ++ Exec.args(cmd)

Uses (7)

Used by (1)