@apiclient.xyz/docker
Version:
Provides easy communication with Docker remote API from Node.js, with TypeScript support.
20 lines (19 loc) • 699 B
TypeScript
import * as plugins from './plugins.js';
export interface IDockerImageStoreConstructorOptions {
/**
* used for preparing images for longer term storage
*/
localDirPath: string;
/**
* a smartbucket dir for longer term storage.
*/
bucketDir: plugins.smartbucket.Directory;
}
export declare class DockerImageStore {
options: IDockerImageStoreConstructorOptions;
constructor(optionsArg: IDockerImageStoreConstructorOptions);
storeImage(imageName: string, tarStream: plugins.smartstream.stream.Readable): Promise<void>;
start(): Promise<void>;
stop(): Promise<void>;
getImage(imageName: string): Promise<plugins.smartstream.stream.Readable>;
}