def Api.path

bend-kube-runtime@0.2.0.0 · src/core.bend:101

import bend-kube-runtime@0.2.0.0/src/core.bend as Core
import Base

101# The collection's path, as kube-core's url_path: /api/v1/namespaces/x/pods.
102def Api.path(a: Api) -> String:
103  match a:
104    case Api{Res{+g, v, k, p, n}, s}:
105      Api.prefix(g, v, String.is_empty(g)) ++ Api.ns_part(s, n) ++ "/" ++ p

Uses (7)

Used by (6)