forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreateImageCmd.java
More file actions
50 lines (37 loc) · 1.09 KB
/
Copy pathCreateImageCmd.java
File metadata and controls
50 lines (37 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package com.github.dockerjava.api.command;
import java.io.InputStream;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
public interface CreateImageCmd extends SyncDockerCmd<CreateImageResponse> {
@CheckForNull
String getRepository();
@CheckForNull
String getTag();
@CheckForNull
String getPlatform();
@CheckForNull
InputStream getImageStream();
/**
* @param repository
* the repository to import to
*/
CreateImageCmd withRepository(@Nonnull String repository);
/**
* @param imageStream
* the InputStream of the tar file
*/
CreateImageCmd withImageStream(InputStream imageStream);
/**
* @param tag
* any tag for this image
* @deprecated use repo:tag format for repository
*/
CreateImageCmd withTag(String tag);
/**
* @param platform
* the platform for this image
*/
CreateImageCmd withPlatform(String platform);
interface Exec extends DockerCmdSyncExec<CreateImageCmd, CreateImageResponse> {
}
}