1 | import { Range, Position } from 'vscode-languageserver-types';
|
2 | import * as ast from './main';
|
3 | import { Comment } from './comment';
|
4 | import { Instruction } from './instruction';
|
5 | import { Arg } from './instructions/arg';
|
6 | import { Cmd } from './instructions/cmd';
|
7 | import { Copy } from './instructions/copy';
|
8 | import { Env } from './instructions/env';
|
9 | import { Entrypoint } from './instructions/entrypoint';
|
10 | import { From } from './instructions/from';
|
11 | import { Healthcheck } from './instructions/healthcheck';
|
12 | import { Workdir } from './instructions/workdir';
|
13 | export declare class ImageTemplate implements ast.ImageTemplate {
|
14 | private readonly comments;
|
15 | private readonly instructions;
|
16 | addComment(comment: Comment): void;
|
17 | getComments(): Comment[];
|
18 | addInstruction(instruction: Instruction): void;
|
19 | getInstructions(): Instruction[];
|
20 | protected getInstructionAt(line: number): Instruction | null;
|
21 | |
22 |
|
23 |
|
24 | getARGs(): Arg[];
|
25 | |
26 |
|
27 |
|
28 | getCMDs(): Cmd[];
|
29 | |
30 |
|
31 |
|
32 | getCOPYs(): Copy[];
|
33 | |
34 |
|
35 |
|
36 | getENTRYPOINTs(): Entrypoint[];
|
37 | |
38 |
|
39 |
|
40 | getENVs(): Env[];
|
41 | getFROM(): From;
|
42 | |
43 |
|
44 |
|
45 | getFROMs(): From[];
|
46 | |
47 |
|
48 |
|
49 | getHEALTHCHECKs(): Healthcheck[];
|
50 | getWORKDIRs(): Workdir[];
|
51 | getOnbuildTriggers(): Instruction[];
|
52 | getAvailableVariables(currentLine: number): string[];
|
53 | |
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 | resolveVariable(variable: string, line: number): string | null | undefined;
|
68 | getRange(): Range | null;
|
69 | contains(position: Position): boolean;
|
70 | }
|