UNPKG

@xec-sh/core

Version:

Universal shell execution engine

31 lines (30 loc) 1.39 kB
import type { ProcessPromise, ExecutionEngine } from '../core/execution-engine.js'; export declare class DockerFluentAPI { private engine; private options; constructor(engine: ExecutionEngine); ephemeral(image: string): DockerFluentAPI; container(name: string): DockerFluentAPI; volumes(volumes: string[]): DockerFluentAPI; workdir(path: string): DockerFluentAPI; user(user: string): DockerFluentAPI; env(env: Record<string, string>): DockerFluentAPI; network(network: string): DockerFluentAPI; ports(ports: string[]): DockerFluentAPI; labels(labels: Record<string, string>): DockerFluentAPI; privileged(privileged?: boolean): DockerFluentAPI; exec(strings: TemplateStringsArray, ...values: any[]): ProcessPromise; run(strings: TemplateStringsArray, ...values: any[]): ProcessPromise; build(context: string, tag?: string): DockerFluentBuildAPI; } export declare class DockerFluentBuildAPI { private engine; private buildOptions; constructor(engine: ExecutionEngine, context: string, tag?: string); dockerfile(path: string): DockerFluentBuildAPI; buildArgs(args: Record<string, string>): DockerFluentBuildAPI; target(target: string): DockerFluentBuildAPI; noCache(noCache?: boolean): DockerFluentBuildAPI; execute(): Promise<void>; ephemeral(imageTag?: string): Promise<DockerFluentAPI>; }