def Kube.named.if

bend-kube-runtime@0.2.0.0 · src/config.bend:119

import bend-kube-runtime@0.2.0.0/src/config.bend as Config
import Base
import bend-kube-runtime@0.2.0.0/src/json.bend as J

119def Kube.named.if(+x: J.Json, +field: String, rest: J.Json, hit: Bool) -> J.Json:
120  match hit:
121    case True{}:
122      J.Json.get(x, field)
123    case False{}:
124      rest

Uses (4)

Used by (1)