def private

near-v-framework@0.4.0.0 · domain/architecture/ops.bend:284

import near-v-framework@0.4.0.0/domain/architecture/ops.bend as Ops
import Base
import near-v-framework@0.4.0.0/domain/architecture/system/container/type.bend as Ct

284# ---- on a server, everything is reachable only from the machine itself or over the tailnet ----
285def private(e: Ct.Exposure) -> Bool:
286  match e:
287    case Ct.Local{}:
288      True{}
289    case Ct.Tailnet{}:
290      True{}
291    case _:
292      False{}

Uses (2)

Used by (1)