eyevinn-wasm-runner
- Description:
Revolutionize your app deployment with wasm-runner! Seamlessly download and execute WASM files within Docker using the wasmtime runtime. Perfect for efficient, cross-platform applications.
- Copyright:
- 2025 Eyevinn Technology AB
- See:
-
- Online docs for further information
Methods
(async, static) createEyevinnWasmRunnerInstance(context, body) → {EyevinnWasmRunner}
- Description:
Create a new WASM Runner instance
Example
import { Context } from '@osaas/client-core';
import { createEyevinnWasmRunnerInstance } from '@osaas/client-services';
const ctx = new Context();
const body: EyevinnWasmRunnerConfig = { name: 'myinstance', ... };
const instance = await createEyevinnWasmRunnerInstance(ctx, body);
console.log(instance.url);
Parameters:
| Name | Type | Description |
|---|---|---|
context |
Context | Open Source Cloud configuration context |
body |
EyevinnWasmRunnerConfig | Service instance configuration |
Returns:
- Service instance
- Type
- EyevinnWasmRunner
(async, static) getEyevinnWasmRunnerInstance(context, name) → {EyevinnWasmRunner}
- Description:
Get a WASM Runner instance
Example
import { Context } from '@osaas/client-core';
import { getEyevinnWasmRunnerInstance } from '@osaas/client-services';
const ctx = new Context();
const instance = await getEyevinnWasmRunnerInstance(ctx, 'myinstance');
console.log(instance.url);
Parameters:
| Name | Type | Description |
|---|---|---|
context |
Context | Open Source Cloud configuration context |
name |
string | Name of the wasm-runner to be retrieved |
Returns:
- Service instance
- Type
- EyevinnWasmRunner
(async, static) removeEyevinnWasmRunnerInstance(context, name)
- Description:
Remove a WASM Runner instance
Parameters:
| Name | Type | Description |
|---|---|---|
context |
Context | Open Source Cloud configuration context |
name |
string | Name of the wasm-runner to be removed |