def nodes_private
near-v-framework@0.4.0.0 · domain/architecture/ops.bend:317
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
import near-v-framework@0.4.0.0/domain/architecture/system/deployment/type.bend as D
317def nodes_private(ns: List<&2, D.Node>, +cs: List<&2, Ct.Container>) -> Bool:
318 match ns:
319 case []:
320 True{}
321 case n <> rest:
322 match n:
323 case D.Node{_, _, _, r, _, _, kids, ins}:
324 (Bool.not(is_server(r)) || all_private(ins, cs)) && nodes_private(kids, cs) && nodes_private(rest, cs)