def sentinel_of
cswap-bend-cli@0.1.0.0 · daemon/view.bend:104
import cswap-bend-cli@0.1.0.0/daemon/view.bend as View
import Base
import cswap-bend-cli@0.1.0.0/store/base.bend as SBase
import cswap-bend-cli@0.1.0.0/policy/types.bend as T
import cswap-bend-cli@0.1.0.0/daemon/gather.bend as G
104
105
106def sentinel_of(+is_active: Bool, +e: G.Ent, +now: U32) -> T.Sentinel:
107 match e:
108 case G.Ent{slot, email, org, +creds, acct}:
109 sent2(is_active, SBase.nonempty(creds), SBase.looks_like_api_key(creds), creds, now)