def shared_ok

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

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/category/type.bend as K2

551# A data API may also host the app only while it is private.
552def shared_ok(c: Ct.Container) -> Bool:
553  match c:
554    case Ct.Container{_, _, _, cat, _, +e, +caps, _, _, _, _, _, _, _, _}:
555      Bool.not(is_data_api(cat) && has_cap(K2.Hosting{}, caps)) || is_tailnet(e) || is_local(e)

Uses (10)

Used by (1)