def Event.publish

bend-kube-runtime@0.2.0.0 · src/helpers.bend:129

import bend-kube-runtime@0.2.0.0/src/helpers.bend as Helpers
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
import bend-kube-runtime@0.2.0.0/src/config.bend as K
import bend-kube-runtime@0.2.0.0/src/sys.bend as Y
import bend-kube-runtime@0.2.0.0/src/time.bend as T

129# Records an Event about o (of resource r). A failure is logged, never
130# raised: events are best effort, as client-go's are.
131def Event.publish(+cfg: K.Config, +o: J.Json, +r: C.Res, warn: Bool, reason: String, action: String,
132  note: String, controller: String) -> IO(Unit):
133  IO.bind(U32 & (U32 & U32), Unit, Y.Sys.wall(),
134    w => Event.post(cfg, o, r, warn, reason, action, note, controller, Event.stamp(T.Wall.of(w))))

Uses (14)

Used by (0)

No other definition uses this definition.