JS API Reference

Module: market/demand/options

Table of contents

Type Aliases

Type Aliases

ResourceDemandOptions

Ƭ ResourceDemandOptions: Object

Specifies a set of options related to computation resources that will be used to form the demand

Type declaration

NameTypeDescription
minMemGibnumberMinimum required memory to execute application GB
minStorageGibnumberMinimum required disk storage to execute tasks in GB
minCpuThreadsnumberMinimum required CPU threads
minCpuCoresnumberMinimum required CPU cores

Defined in

src/market/demand/options.ts:6


RuntimeDemandOptions

Ƭ RuntimeDemandOptions: Object

Specifies a set of options related to runtime configuration that will be used to form the demand

Type declaration

NameTypeDescription
enginestringType of engine required: vm, wasm, vm-nvidia, etc...
capabilitiesstring[]Required providers capabilities to run application: example: ["vpn"]

Defined in

src/market/demand/options.ts:20


ManifestDemandOptions

Ƭ ManifestDemandOptions: Object

Specifies a set of options related to computation manifest that can be used to form the demand

Type declaration

NameTypeDescription
manifeststring-
manifestSigstringSignature of base64 encoded Computation Payload Manifest *
manifestSigAlgorithmstringAlgorithm of manifest signature, e.g. "sha256" *
manifestCertstringCertificate - base64 encoded public certificate (DER or PEM) matching key used to generate signature *

Defined in

src/market/demand/options.ts:31


ImageDemandOptions

Ƭ ImageDemandOptions: Object

Specifies a set of options related to the Golem VM Image (GVMI) that will be used to form the demand

Type declaration

NameTypeDescription
imageUrl?stringIf you want a provider to download the image from your local filesystem or a different registry than the default one, you can provide the image url here. Note that to use this option you need to also provide the image SHA3-224 hash.
imageHash?stringfinds package by its contents hash
imageTag?stringfinds package by registry tag
useHttps?booleanForce the image download url that will be passed to the provider to use HTTPS. This option is only relevant when you use imageHash or imageTag options. Default is false

Defined in

src/market/demand/options.ts:44


WorkloadDemandDirectorConfigOptions

Ƭ WorkloadDemandDirectorConfigOptions: RuntimeDemandOptions & ResourceDemandOptions & RequireAtLeastOne<ImageDemandOptions & ManifestDemandOptions, "imageHash" | "imageTag" | "imageUrl" | "manifest">

Defined in

src/market/demand/options.ts:66

Was this helpful?