1 |
|
2 | import Docker from 'dockerode';
|
3 | import { ErrorService } from './Error';
|
4 | import { Op } from '../types';
|
5 | export declare class ImageService {
|
6 | protected error: ErrorService;
|
7 | constructor(error?: ErrorService);
|
8 | log: {
|
9 | (message?: any, ...optionalParams: any[]): void;
|
10 | (message?: any, ...optionalParams: any[]): void;
|
11 | };
|
12 | checkLocalImage: (opImageUrl: string) => Promise<string | undefined>;
|
13 | imageFilterPredicate: (repo: string) => ({ RepoTags }: Docker.ImageInfo) => string | undefined;
|
14 | pull: (op: Op, authconfig: Docker.AuthConfig) => Promise<void>;
|
15 | setParser: (op: Op, getFn: (status: string, op: Op) => {
|
16 | speed: string;
|
17 | }) => {
|
18 | parser: import("stream").Transform;
|
19 | bar: import("cli-progress").Bar;
|
20 | };
|
21 | getProgressBarText: (status: string, { name }: Op) => {
|
22 | speed: string;
|
23 | };
|
24 | updateStatusBar: (stream: NodeJS.ReadWriteStream, { parser, bar }: {
|
25 | parser: any;
|
26 | bar: any;
|
27 | }) => (resolve: (data: any) => void, reject: (err: Error) => void) => Promise<void>;
|
28 | checkIfDockerfileExists: (opPath: string) => boolean;
|
29 | build: (tag: string, opPath: string, op: Op) => Promise<void>;
|
30 | }
|