1 | import { Position, Range } from 'vscode-languageserver-types';
|
2 | export { Argument } from './argument';
|
3 | export { JSONArgument } from './jsonArgument';
|
4 | import { Comment } from './comment';
|
5 | export { Comment };
|
6 | export interface ImageTemplate {
|
7 | getComments(): Comment[];
|
8 | getInstructions(): Instruction[];
|
9 | getARGs(): Arg[];
|
10 | getCMDs(): Cmd[];
|
11 | getCOPYs(): Copy[];
|
12 | getENTRYPOINTs(): Entrypoint[];
|
13 | getENVs(): Env[];
|
14 | getFROMs(): From[];
|
15 | getHEALTHCHECKs(): Healthcheck[];
|
16 | getOnbuildTriggers(): Instruction[];
|
17 | contains(position: Position): boolean;
|
18 | |
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | getAvailableVariables(line: number): string[];
|
29 | getRange(): Range | null;
|
30 | }
|
31 | export interface Dockerfile extends ImageTemplate {
|
32 | getAvailableWorkingDirectories(line: number): string[];
|
33 | getEscapeCharacter(): string;
|
34 | getInitialARGs(): Arg[];
|
35 | getComments(): Comment[];
|
36 | |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 | getContainingImage(position: Position): ImageTemplate | null;
|
45 | |
46 |
|
47 |
|
48 |
|
49 |
|
50 | getDirective(): ParserDirective | null;
|
51 | |
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 | getDirectives(): ParserDirective[];
|
62 | |
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 | resolveVariable(variable: string, line: number): string | null | undefined;
|
78 | }
|
79 | export { Flag } from './flag';
|
80 | import { Instruction } from './instruction';
|
81 | export { Instruction };
|
82 | export { Line } from './line';
|
83 | import { ParserDirective } from './parserDirective';
|
84 | export { ParserDirective };
|
85 | export { Property } from './property';
|
86 | export { Variable } from './variable';
|
87 | export { Add } from './instructions/add';
|
88 | import { Arg } from './instructions/arg';
|
89 | export { Arg };
|
90 | import { Cmd } from './instructions/cmd';
|
91 | export { Cmd };
|
92 | import { Copy } from './instructions/copy';
|
93 | export { Copy };
|
94 | import { Entrypoint } from './instructions/entrypoint';
|
95 | export { Entrypoint };
|
96 | import { Env } from './instructions/env';
|
97 | export { Env };
|
98 | import { From } from './instructions/from';
|
99 | export { From };
|
100 | import { Healthcheck } from './instructions/healthcheck';
|
101 | export { Healthcheck };
|
102 | export { Heredoc } from './heredoc';
|
103 | export { JSONInstruction } from './jsonInstruction';
|
104 | export { Label } from './instructions/label';
|
105 | export { ModifiableInstruction } from './modifiableInstruction';
|
106 | export { Onbuild } from './instructions/onbuild';
|
107 | export { PropertyInstruction } from './propertyInstruction';
|
108 | export { Run } from './instructions/run';
|
109 | export { Shell } from './instructions/shell';
|
110 | export { Stopsignal } from './instructions/stopsignal';
|
111 | export { User } from './instructions/user';
|
112 | export { Volume } from './instructions/volume';
|
113 | import { Workdir } from './instructions/workdir';
|
114 | export { Workdir };
|
115 | export declare enum Keyword {
|
116 | ADD = "ADD",
|
117 | ARG = "ARG",
|
118 | CMD = "CMD",
|
119 | COPY = "COPY",
|
120 | ENTRYPOINT = "ENTRYPOINT",
|
121 | ENV = "ENV",
|
122 | EXPOSE = "EXPOSE",
|
123 | FROM = "FROM",
|
124 | HEALTHCHECK = "HEALTHCHECK",
|
125 | LABEL = "LABEL",
|
126 | MAINTAINER = "MAINTAINER",
|
127 | ONBUILD = "ONBUILD",
|
128 | RUN = "RUN",
|
129 | SHELL = "SHELL",
|
130 | STOPSIGNAL = "STOPSIGNAL",
|
131 | USER = "USER",
|
132 | VOLUME = "VOLUME",
|
133 | WORKDIR = "WORKDIR"
|
134 | }
|
135 | export declare enum Directive {
|
136 | escape = "escape",
|
137 | syntax = "syntax"
|
138 | }
|
139 | export declare const DefaultVariables: string[];
|
140 | export declare namespace DockerfileParser {
|
141 | function parse(content: string): Dockerfile;
|
142 | }
|