Arc.private_ok: def of near-architecture@0.9.1.0 Import: import near-architecture@0.9.1.0/arc.bend as Arc Lines 460-465 of near-architecture@0.9.1.0/arc.bend: https://jend.leeeet.dev/read.txt?path=near-architecture@0.9.1.0/arc.bend&start_line=460&end_line=465 import Base # ---- where it runs ---- # On a server, everything is reachable only from the server itself or over the overlay. def private_ok(c: Container, +ns: List<&2, Node>) -> Bool: match c: case Container{_, _, _, _, on, +exposure, _, _, _, _, _, _}: Bool.not(is_server(node_role(on, ns))) || is_tailnet(exposure) || is_local(exposure) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=near-architecture@0.9.1.0/arc.bend&name=Container https://jend.leeeet.dev/definition.txt?path=near-architecture@0.9.1.0/arc.bend&name=Node https://jend.leeeet.dev/definition.txt?path=near-architecture@0.9.1.0/arc.bend&name=is_local https://jend.leeeet.dev/definition.txt?path=near-architecture@0.9.1.0/arc.bend&name=is_server https://jend.leeeet.dev/definition.txt?path=near-architecture@0.9.1.0/arc.bend&name=is_tailnet https://jend.leeeet.dev/definition.txt?path=near-architecture@0.9.1.0/arc.bend&name=node_role