oshinongit-espresso

Namespace

oshinongit-espresso

Description:
  • Unlock your creativity with Espresso, a highly performant paint app for the web. Enjoy smooth drawing with adjustable brushes and pixel-perfect precision, all powered by WebAssembly and Rust.

Author:

Methods

(async, static) createOshinongitEspressoInstance(context, body) → {OshinongitEspresso}

Description:
  • Create a new Espresso instance

Example
import { Context } from '@osaas/client-core';
import { createOshinongitEspressoInstance } from '@osaas/client-services';

const ctx = new Context();
const body: OshinongitEspressoConfig = { name: 'myinstance', ... };
const instance = await createOshinongitEspressoInstance(ctx, body);
console.log(instance.url);
Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

body OshinongitEspressoConfig

Service instance configuration

Returns:
  • Service instance
Type
OshinongitEspresso

(async, static) getOshinongitEspressoInstance(context, name) → {OshinongitEspresso}

Description:
  • Get a Espresso instance

Example
import { Context } from '@osaas/client-core';
import { getOshinongitEspressoInstance } from '@osaas/client-services';

const ctx = new Context();
const instance = await getOshinongitEspressoInstance(ctx, 'myinstance');
console.log(instance.url);
Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

name string

Name of the espresso to be retrieved

Returns:
  • Service instance
Type
OshinongitEspresso

(async, static) removeOshinongitEspressoInstance(context, name)

Description:
  • Remove a Espresso instance

Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

name string

Name of the espresso to be removed