governance.FORMATSconstno test imports itconst FORMATS: readonly ["openapi", "graphql", "android", "ios", "dns-zone", "certificate", "listening-ports"]The formats read.
What a reader gives: assets and links of the estate, as the importers of infrastructure as code give them (Imported, ImportedLink of estate-iac), with the format that was read and what could not be read. Every asset carries provenance as format:file#where, and is discovered: reading a description of an endpoint adopts nothing.
import { provenance } from "./model.ts";
provenance("openapi", "api.yaml", "servers[0]"); // "openapi:api.yaml#servers[0]"governance.FORMATSconstno test imports itconst FORMATS: readonly ["openapi", "graphql", "android", "ios", "dns-zone", "certificate", "listening-ports"]The formats read.
governance.Formattypeno test imports ittype Format = (typeof FORMATS)[number];A format read.
governance.Foundtypeno test imports ittype Found = { readonly format: Format; readonly source: string; readonly assets: readonly Imported[]; readonly links: readonly ImportedLink[]; readonly problems: readonly string[] };What a reader gives for one file or one text.
governance.provenancefunctionno test imports itfunction provenance(format: "android" | "certificate" | "dns-zone" | "graphql" | "ios" | "listening-ports" | "openapi", source: string, where: string): stringWhere an asset was read from, as format:file#where.
governance.partsfunctionno test imports itfunction parts(url: string): { readonly scheme: string; readonly host: string; readonly port?: number | undefined; readonly path?: string | undefined; } | undefinedThe host, port and path of a URL, with the scheme: nothing where it is not an absolute URL of a scheme the estate has.
FORMATSconstconst FORMATS: readonly ["openapi", "graphql", "android", "ios", "dns-zone", "certificate", "listening-ports"]The formats read.
Formattypeno test imports ittype Format = (typeof FORMATS)[number];A format read.
Foundtypetype Found = { readonly format: Format; readonly source: string; readonly assets: readonly Imported[]; readonly links: readonly ImportedLink[]; readonly problems: readonly string[] };What a reader gives for one file or one text.
provenancefunctionfunction provenance(format: "android" | "certificate" | "dns-zone" | "graphql" | "ios" | "listening-ports" | "openapi", source: string, where: string): stringWhere an asset was read from, as format:file#where.
partsfunctionfunction parts(url: string): { readonly scheme: string; readonly host: string; readonly port?: number | undefined; readonly path?: string | undefined; } | undefinedThe host, port and path of a URL, with the scheme: nothing where it is not an absolute URL of a scheme the estate has.