forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCreateImageCmd.java
More file actions
41 lines (30 loc) · 931 Bytes
/
Copy pathCreateImageCmd.java
File metadata and controls
41 lines (30 loc) · 931 Bytes
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
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
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);
interface Exec extends DockerCmdSyncExec<CreateImageCmd, CreateImageResponse> {
}
}