candidate
此内容尚不支持你的语言。
function candidate(options: { artifact: { directory: string identity: { algorithm: "sha256" digest: string entry: string version: 1 } } contractModule: string input: Json target: | { _tag: "Worker" execArgv?: readonly string[] } | { _tag: "Local" command?: readonly [string, string] }}): CandidateDefined in: internal/candidate.ts:33
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
{ artifact: { directory: string; identity: { algorithm: "sha256"; digest: string; entry: string; version: 1; }; }; contractModule: string; input: Json; target: | { _tag: "Worker"; execArgv?: readonly string[]; } | { _tag: "Local"; command?: readonly [string, string]; }; } |
options.artifact? |
{ directory: string; identity: { algorithm: "sha256"; digest: string; entry: string; version: 1; }; } |
options.artifact.directory? |
string |
options.artifact.identity? |
{ algorithm: "sha256"; digest: string; entry: string; version: 1; } |
options.artifact.identity.algorithm? |
"sha256" |
options.artifact.identity.digest? |
string |
options.artifact.identity.entry? |
string |
options.artifact.identity.version? |
1 |
options.contractModule? |
string |
options.input? |
Json |
options.target? |
| { _tag: "Worker"; execArgv?: readonly string[]; } | { _tag: "Local"; command?: readonly [string, string]; } |
Returns
Section titled “Returns”Candidate