def Ctl.snap

bend-kube-runtime@0.2.0.0 · src/runtime.bend:473

import bend-kube-runtime@0.2.0.0/src/runtime.bend as Runtime
import Base
import bend-kube-runtime@0.2.0.0/src/store.bend as S
import bend-kube-runtime@0.2.0.0/src/queue.bend as Q

473def Ctl.snap(st: CState, name: String) -> Snap:
474  match st:
475    case CState{+s, +q, Stats{r, e, v}}:
476      Snap{name, S.Store.ready(s), r, e, v, Q.Queue.nrun(q), U32.from_nat(S.Store.size(s))}

Uses (8)

Used by (1)