download
Download update packages for a namespace.
Signature:
download(client: Client, namespace: string): Promise<void>Module:
@olenbetong/appframe-updater
Parameters
client: Appframe dataClientinstance.namespace: The namespace name to download updates for.
Behavior
Resolves the namespace to its canonical name and posts to
/api/ob-deploy/download/1/{Name}.Retries up to 3 times on transient HTTP errors before failing.
Errors
Throws on HTTP errors or when the response contains an
errorfield.
Example
import { Client } from "@olenbetong/appframe-data";
import { download } from "@olenbetong/appframe-updater";
const client = new Client("https://your.host");
await download(client, "MyNamespace");Last updated
Was this helpful?