跳转到内容

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[]
}[]
}
}
| undefined

Defined in: Manifest.ts:134

Own-property lookup also handles arbitrary entry names supplied by embedded callers.

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

| { 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