Helpers.Event.body: def of bend-kube-runtime@0.2.0.0 Import: import bend-kube-runtime@0.2.0.0/src/helpers.bend as Helpers Lines 95-105 of bend-kube-runtime@0.2.0.0/src/helpers.bend: https://jend.leeeet.dev/read.txt?path=bend-kube-runtime@0.2.0.0/src/helpers.bend&start_line=95&end_line=105 import Base import bend-kube-runtime@0.2.0.0/src/json.bend as J import bend-kube-runtime@0.2.0.0/src/core.bend as C # The Event is named ".", as client-go names # them ".". def Event.body(+o: J.Json, +r: C.Res, warn: Bool, reason: String, action: String, note: String, +controller: String, +now: String, id: String) -> J.Json: J.Json.obj([J.KV{"apiVersion", J.JStr{"events.k8s.io/v1"}}, J.KV{"kind", J.JStr{"Event"}}, J.KV{"metadata", J.Json.obj([J.KV{"name", J.JStr{C.Obj.name(o) ++ "." ++ id}}, J.KV{"namespace", J.JStr{Event.ns(C.Obj.namespace(o))}}])}, J.KV{"eventTime", J.JStr{now}}, J.KV{"reportingController", J.JStr{controller}}, J.KV{"reportingInstance", J.JStr{controller}}, J.KV{"action", J.JStr{action}}, J.KV{"reason", J.JStr{reason}}, J.KV{"type", J.JStr{Event.kind(warn)}}, J.KV{"note", J.JStr{note}}, J.KV{"regarding", Event.regarding(o, r)}]) Uses (13): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/core.bend&name=Obj.name https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/core.bend&name=Obj.namespace https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/core.bend&name=Res https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/helpers.bend&name=Event.kind https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/helpers.bend&name=Event.ns https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/helpers.bend&name=Event.regarding https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/json.bend&name=Json https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/json.bend&name=Json.obj https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/json.bend&name=KV