Class ImagesApi.APIimagePruneLibpodRequest
java.lang.Object
io.github.alersrt.pod4j.openapi.api.ImagesApi.APIimagePruneLibpodRequest
- Enclosing class:
- ImagesApi
-
Method Summary
Modifier and TypeMethodDescriptionSet allbuildcache(Boolean buildcache) Set buildcacheokhttp3.CallbuildCall(ApiCallback _callback) Build call for imagePruneLibpodexecute()Execute imagePruneLibpod requestokhttp3.CallexecuteAsync(ApiCallback<List<PruneReport>> _callback) Execute imagePruneLibpod request (asynchronously)Execute imagePruneLibpod request with HTTP info returnedSet externalSet filters
-
Method Details
-
all
Set all- Parameters:
all- Remove all images not in use by containers, not just dangling ones (optional, default to false)- Returns:
- APIimagePruneLibpodRequest
-
external
Set external- Parameters:
external- Remove images even when they are used by external containers (e.g, by build containers) (optional, default to false)- Returns:
- APIimagePruneLibpodRequest
-
buildcache
Set buildcache- Parameters:
buildcache- Remove persistent build cache created by build instructions such as `--mount=type=cache`. (optional, default to false)- Returns:
- APIimagePruneLibpodRequest
-
filters
Set filters- Parameters:
filters- filters to apply to image pruning, encoded as JSON (map[string][]string). Available filters: - `dangling=<boolean>` When set to `true` (or `1`), prune only unused *and* untagged images. When set to `false` (or `0`), all unused images are pruned. - `until=<string>` Prune images created before this timestamp. The `<timestamp>` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time. - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) Prune images with (or without, in case `label!=...` is used) the specified labels. (optional)- Returns:
- APIimagePruneLibpodRequest
-
buildCall
Build call for imagePruneLibpod- Parameters:
_callback- ApiCallback API callback- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 200 Image Prune - 500 Internal server error -
-
execute
Execute imagePruneLibpod request- Returns:
- List<PruneReport>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 Image Prune - 500 Internal server error -
-
executeWithHttpInfo
Execute imagePruneLibpod request with HTTP info returned- Returns:
- ApiResponse<List<PruneReport>>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 Image Prune - 500 Internal server error -
-
executeAsync
Execute imagePruneLibpod request (asynchronously)- Parameters:
_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Status Code Description Response Headers 200 Image Prune - 500 Internal server error -
-