getEntry
function getEntry( manifest: { entries: { [key: string]: { contracts: readonly string[] implementation: string operations: readonly { artifact: { algorithm: "sha256" digest: string version: 1 } identity: string package: { name: string version: string } }[] probes: readonly string[] requirements: { filesystem: boolean nativeModules: boolean placements: readonly ("Host" | "Worker" | "Local")[] } services: { implements: readonly { key: string operations: readonly string[] }[] optional: readonly { key: string operations: readonly string[] }[] required: readonly { key: string operations: readonly string[] }[] } } } version: 1 }, name: string,): | { contracts: readonly string[] implementation: string operations: readonly { artifact: { algorithm: "sha256" digest: string version: 1 } identity: string package: { name: string version: string } }[] probes: readonly string[] requirements: { filesystem: boolean nativeModules: boolean placements: readonly ("Host" | "Worker" | "Local")[] } services: { implements: readonly { key: string operations: readonly string[] }[] optional: readonly { key: string operations: readonly string[] }[] required: readonly { key: string operations: readonly string[] }[] } } | undefinedDefined in: Manifest.ts:134
Own-property lookup also handles arbitrary entry names supplied by embedded callers.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
manifest |
{ entries: { [key: string]: { contracts: readonly string[]; implementation: string; operations: readonly { artifact: { algorithm: "sha256"; digest: string; version: 1; }; identity: string; package: { name: string; version: string; }; }[]; probes: readonly string[]; requirements: { filesystem: boolean; nativeModules: boolean; placements: readonly ("Host" | "Worker" | "Local")[]; }; services: { implements: readonly { key: string; operations: readonly string[]; }[]; optional: readonly { key: string; operations: readonly string[]; }[]; required: readonly { key: string; operations: readonly string[]; }[]; }; }; }; version: 1; } |
manifest.entries? |
{ [key: string]: { contracts: readonly string[]; implementation: string; operations: readonly { artifact: { algorithm: "sha256"; digest: string; version: 1; }; identity: string; package: { name: string; version: string; }; }[]; probes: readonly string[]; requirements: { filesystem: boolean; nativeModules: boolean; placements: readonly ("Host" | "Worker" | "Local")[]; }; services: { implements: readonly { key: string; operations: readonly string[]; }[]; optional: readonly { key: string; operations: readonly string[]; }[]; required: readonly { key: string; operations: readonly string[]; }[]; }; }; } |
manifest.version? |
1 |
name |
string |
Returns
Section titled “Returns”| { contracts: readonly string[]; implementation: string;
operations: readonly { artifact: { algorithm: "sha256"; digest:
string; version: 1; }; identity: string; package: { name:
string; version: string; }; }[]; probes: readonly string[];
requirements: { filesystem: boolean; nativeModules: boolean;
placements: readonly ("Host" | "Worker" | "Local")[]; }; services:
{ implements: readonly { key: string; operations: readonly string[];
}[]; optional: readonly { key: string; operations: readonly
string[]; }[]; required: readonly { key: string; operations:
readonly string[]; }[]; }; } | undefined