def Kube.src.go
import bend-kube-runtime@0.2.0.0/src/config.bend as Configimport Base
import bend-kube-runtime@0.2.0.0/src/json.bend as J
import bend-kube-runtime@0.2.0.0/src/base64.bend as B
146def Kube.src.go(data: J.Json, path: J.Json) -> Src:
147 match data path:
148 case J.JStr{d} _:
149 Kube.src.b64(B.B64.decode(d))
150 case _ J.JStr{p}:
151 FromFile{p}
152 case _ _:
153 NoSrc{}