def shared_hosting_ok

near-architecture@0.9.1.0 · arc.bend:638

import near-architecture@0.9.1.0/arc.bend as Arc
import Base

638# A data API may also host the app only while it is private.
639def shared_hosting_ok(c: Container) -> Bool:
640  match c:
641    case Container{_, _, kind, _, _, +exposure, +cs, _, _, _, _, _}:
642      Bool.not(Nat.is_gt(count_in(Hosting{}, cs), 0n) && is_data_api(kind)) || is_tailnet(exposure) || is_local(exposure)

Uses (11)

Used by (1)