@appsemble/node-utils
Version:
NodeJS utilities used by Appsemble internally.
16 lines (15 loc) • 833 B
TypeScript
import { type CompanionContainerDefinition } from '@appsemble/types';
/**
* Creates or updates secret.
* Secret resource is named after the app name + id, where whitespace
* is replaced by '-'.
*
* @param secretName Key of the secret to be created
* @param value The secret value
* @param appName Name of the app
* @param appId Id of the app.
*/
export declare function updateNamespacedSecret(secretName: string, value: string, appName: string, appId: string): Promise<void>;
export declare function deleteSecret(appName: string, appId: string, key?: string): Promise<void>;
export declare function deleteCompanionContainers(serviceName: string): Promise<void>;
export declare function updateCompanionContainers(definitions: CompanionContainerDefinition[], appName: string, appId: string, registry?: string): Promise<void>;