def cloud_ok

near-v-framework@0.4.0.0 · domain/architecture/environment/inventory/ops.bend:17

import near-v-framework@0.4.0.0/domain/architecture/environment/inventory/ops.bend as Ops
import Base
import near-v-framework@0.4.0.0/domain/architecture/environment/inventory/type.bend as I

17# Whether this provider is the owner's vendor's cloud.
18def cloud_ok(inv: I.Inventory, +provider: String) -> Bool:
19  match inv:
20    case I.Inventory{I.Vendor{_, cloud}, _}:
21      String.eq(provider, cloud)

Uses (5)

Used by (1)