1 | import { TextDocument, Range } from 'vscode-languageserver-types';
|
2 | import { Dockerfile } from '../dockerfile';
|
3 | import { Flag } from '../flag';
|
4 | import { ModifiableInstruction } from '../modifiableInstruction';
|
5 | export declare class From extends ModifiableInstruction {
|
6 | constructor(document: TextDocument, range: Range, dockerfile: Dockerfile, escapeChar: string, instruction: string, instructionRange: Range);
|
7 | protected stopSearchingForFlags(argument: string): boolean;
|
8 | getImage(): string | null;
|
9 | /**
|
10 | * Returns the name of the image that will be used as the base image.
|
11 | *
|
12 | * @return the base image's name, or null if unspecified
|
13 | */
|
14 | getImageName(): string | null;
|
15 | /**
|
16 | * Returns the range that covers the name of the image used by
|
17 | * this instruction.
|
18 | *
|
19 | * @return the range of the name of this instruction's argument,
|
20 | * or null if no image has been specified
|
21 | */
|
22 | getImageNameRange(): Range | null;
|
23 | /**
|
24 | * Returns the range that covers the image argument of this
|
25 | * instruction. This includes the tag or digest of the image if
|
26 | * it has been specified by the instruction.
|
27 | *
|
28 | * @return the range of the image argument, or null if no image
|
29 | * has been specified
|
30 | */
|
31 | getImageRange(): Range | null;
|
32 | getImageTag(): string | null;
|
33 | /**
|
34 | * Returns the range in the document that the tag of the base
|
35 | * image encompasses.
|
36 | *
|
37 | * @return the base image's tag's range in the document, or null
|
38 | * if no tag has been specified
|
39 | */
|
40 | getImageTagRange(): Range | null;
|
41 | getImageDigest(): string | null;
|
42 | /**
|
43 | * Returns the range in the document that the digest of the base
|
44 | * image encompasses.
|
45 | *
|
46 | * @return the base image's digest's range in the document, or null
|
47 | * if no digest has been specified
|
48 | */
|
49 | getImageDigestRange(): Range | null;
|
50 | private indexOf;
|
51 | private lastIndexOf;
|
52 | getRegistry(): string | null;
|
53 | getRegistryRange(): Range | null;
|
54 | getBuildStage(): string | null;
|
55 | getBuildStageRange(): Range | null;
|
56 | getPlatformFlag(): Flag | null;
|
57 | }
|