UNPKG

@apiclient.xyz/docker

Version:

Provides easy communication with Docker remote API from Node.js, with TypeScript support.

25 lines (24 loc) 892 B
import { DockerHost } from './classes.host.js'; import * as interfaces from './interfaces/index.js'; export declare class DockerSecret { static getSecrets(dockerHostArg: DockerHost): Promise<DockerSecret[]>; static getSecretByID(dockerHostArg: DockerHost, idArg: string): Promise<DockerSecret>; static getSecretByName(dockerHostArg: DockerHost, nameArg: string): Promise<DockerSecret>; static createSecret(dockerHostArg: DockerHost, secretDescriptor: interfaces.ISecretCreationDescriptor): Promise<DockerSecret>; ID: string; Spec: { Name: string; Labels: interfaces.TLabels; }; Version: { Index: string; }; dockerHost: DockerHost; constructor(dockerHostArg: DockerHost); /** * updates a secret */ update(contentArg: string): Promise<void>; remove(): Promise<void>; getVersion(): Promise<string>; }