UNPKG

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

13 lines (12 loc) 611 B
export interface ContainerCache { getEntry(imageId: string, operationCacheKey: string): Promise<string | undefined>; setEntry(imageId: string, operationCacheKey: string, resultImageId: string): Promise<void>; } export declare class FSContainerCache implements ContainerCache { #private; cachePath: string; constructor(cachePath: string); getEntry(imageId: string, operationCacheKey: string): Promise<string | undefined>; setEntry(imageId: string, operationCacheKey: string, resultImageId: string): Promise<void>; } export declare const defaultContainerCache: () => FSContainerCache;