buildahcker
Version:
Buildahcker is a node.js library to create and run commands in OCI (Open Container Initiative) container images (or docker images), based on Buildah and a hash-based cache. It also contains utilities to easily create a partitioned bootable disk image of a
8 lines (7 loc) • 740 B
TypeScript
export declare const removeIfEmpty: (directory: string) => Promise<void>;
export declare const readOrCreateFile: (filePath: string, defaultContent: () => Buffer | Promise<Buffer>) => Promise<Buffer>;
export declare const readOrCreateStringFile: (filePath: string, defaultContent: () => string | Promise<string>, encoding?: BufferEncoding) => Promise<string>;
export declare const prepareOutputFile: (outputFile: string) => Promise<string>;
export declare const openFile: (pathOrFd: string | number, flags: string) => Promise<number>;
export declare const closeFile: (fd: number, pathOrFd: string | number) => Promise<unknown>;
export declare const readFromFile: (fd: number, offset: number, length: number) => Promise<Buffer<ArrayBuffer>>;