forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPruneCmd.java
More file actions
53 lines (41 loc) · 1.45 KB
/
Copy pathPruneCmd.java
File metadata and controls
53 lines (41 loc) · 1.45 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
53
package com.github.dockerjava.api.command;
import com.github.dockerjava.api.model.PruneResponse;
import com.github.dockerjava.api.model.PruneType;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import java.util.List;
import java.util.Map;
/**
* Delete unused content (containers, images, volumes, networks, build relicts)
*
* @since {@link RemoteApiVersion#VERSION_1_25}
*/
public interface PruneCmd extends SyncDockerCmd<PruneResponse> {
@Nonnull
PruneType getPruneType();
@Nonnull
String getApiPath();
@CheckForNull
Map<String, List<String>> getFilters();
PruneCmd withPruneType(final PruneType pruneType);
/**
* Prune containers created before this timestamp
* Meaningful only for CONTAINERS and IMAGES prune type
* @param until Can be Unix timestamps, date formatted timestamps,
* or Go duration strings (e.g. 10m, 1h30m) computed relative to the daemon machine’s time.
*/
PruneCmd withUntilFilter(String until);
/**
* When set to true, prune only unused and untagged images. When set to false, all unused images are pruned.
* Meaningful only for IMAGES prune type
*/
PruneCmd withDangling(Boolean dangling);
/**
* Prune containers with the specified labels
*/
PruneCmd withLabelFilter(String... label);
@Override
PruneResponse exec();
interface Exec extends DockerCmdSyncExec<PruneCmd, PruneResponse> {
}
}