forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPullImageCmd.java
More file actions
52 lines (37 loc) · 1.18 KB
/
Copy pathPullImageCmd.java
File metadata and controls
52 lines (37 loc) · 1.18 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
51
52
package com.github.dockerjava.api.command;
import com.github.dockerjava.api.async.ResultCallback;
import com.github.dockerjava.api.model.AuthConfig;
import com.github.dockerjava.api.model.PullResponseItem;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
/**
*
* Pull image from repository.
*
*/
public interface PullImageCmd extends AsyncDockerCmd<PullImageCmd, PullResponseItem> {
@CheckForNull
String getRepository();
@CheckForNull
String getTag();
@CheckForNull
String getPlatform();
@CheckForNull
String getRegistry();
@CheckForNull
AuthConfig getAuthConfig();
PullImageCmd withRepository(@Nonnull String repository);
PullImageCmd withTag(String tag);
/**
* @since {@link com.github.dockerjava.core.RemoteApiVersion#VERSION_1_32}
*/
PullImageCmd withPlatform(String tag);
PullImageCmd withRegistry(String registry);
PullImageCmd withAuthConfig(AuthConfig authConfig);
@Override
default ResultCallback.Adapter<PullResponseItem> start() {
return exec(new PullImageResultCallback());
}
interface Exec extends DockerCmdAsyncExec<PullImageCmd, PullResponseItem> {
}
}