Class ExecApi
java.lang.Object
io.github.alersrt.pod4j.openapi.api.ExecApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontainerExecLibpod(String name, ContainerExecRequest control) Create an exec instance Create an exec session to run a command inside a running container.okhttp3.CallcontainerExecLibpodAsync(String name, ContainerExecRequest control, ApiCallback<Void> _callback) Create an exec instance (asynchronously) Create an exec session to run a command inside a running container.okhttp3.CallcontainerExecLibpodCall(String name, ContainerExecRequest control, ApiCallback _callback) Build call for containerExecLibpodcontainerExecLibpodWithHttpInfo(@NotNull String name, ContainerExecRequest control) Create an exec instance Create an exec session to run a command inside a running container.voidInspect an exec instance Return low-level information about an exec instance.okhttp3.CallexecInspectLibpodAsync(String id, ApiCallback<Void> _callback) Inspect an exec instance (asynchronously) Return low-level information about an exec instance.okhttp3.CallexecInspectLibpodCall(String id, ApiCallback _callback) Build call for execInspectLibpodexecInspectLibpodWithHttpInfo(@NotNull String id) Inspect an exec instance Return low-level information about an exec instance.voidexecResizeLibpod(String id, Integer h, Integer w) Resize an exec instance Resize the TTY session used by an exec instance.okhttp3.CallexecResizeLibpodAsync(String id, Integer h, Integer w, ApiCallback<Void> _callback) Resize an exec instance (asynchronously) Resize the TTY session used by an exec instance.okhttp3.CallexecResizeLibpodCall(String id, Integer h, Integer w, ApiCallback _callback) Build call for execResizeLibpodexecResizeLibpodWithHttpInfo(@NotNull String id, Integer h, Integer w) Resize an exec instance Resize the TTY session used by an exec instance.voidexecStartLibpod(String id, ExecStartLibpodRequest control) Start an exec instance Starts a previously set up exec instance.okhttp3.CallexecStartLibpodAsync(String id, ExecStartLibpodRequest control, ApiCallback<Void> _callback) Start an exec instance (asynchronously) Starts a previously set up exec instance.okhttp3.CallexecStartLibpodCall(String id, ExecStartLibpodRequest control, ApiCallback _callback) Build call for execStartLibpodexecStartLibpodWithHttpInfo(@NotNull String id, ExecStartLibpodRequest control) Start an exec instance Starts a previously set up exec instance.intvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
ExecApi
public ExecApi() -
ExecApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
containerExecLibpodCall
public okhttp3.Call containerExecLibpodCall(String name, ContainerExecRequest control, ApiCallback _callback) throws ApiException Build call for containerExecLibpod- Parameters:
name- name of container (required)control- Attributes for create (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 201 no error - 404 No such container - 409 container is paused - 500 Internal server error -
-
containerExecLibpod
Create an exec instance Create an exec session to run a command inside a running container. Exec sessions will be automatically removed 5 minutes after they exit.- Parameters:
name- name of container (required)control- Attributes for create (optional)- 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 201 no error - 404 No such container - 409 container is paused - 500 Internal server error -
-
containerExecLibpodWithHttpInfo
public ApiResponse<Void> containerExecLibpodWithHttpInfo(@NotNull @NotNull String name, ContainerExecRequest control) throws ApiException Create an exec instance Create an exec session to run a command inside a running container. Exec sessions will be automatically removed 5 minutes after they exit.- Parameters:
name- name of container (required)control- Attributes for create (optional)- Returns:
- ApiResponse<Void>
- 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 201 no error - 404 No such container - 409 container is paused - 500 Internal server error -
-
containerExecLibpodAsync
public okhttp3.Call containerExecLibpodAsync(String name, ContainerExecRequest control, ApiCallback<Void> _callback) throws ApiException Create an exec instance (asynchronously) Create an exec session to run a command inside a running container. Exec sessions will be automatically removed 5 minutes after they exit.- Parameters:
name- name of container (required)control- Attributes for create (optional)_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 201 no error - 404 No such container - 409 container is paused - 500 Internal server error -
-
execInspectLibpodCall
Build call for execInspectLibpod- Parameters:
id- Exec instance ID (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 200 no error - 404 No such exec instance - 500 Internal server error -
-
execInspectLibpod
Inspect an exec instance Return low-level information about an exec instance.- Parameters:
id- Exec instance ID (required)- 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 no error - 404 No such exec instance - 500 Internal server error -
-
execInspectLibpodWithHttpInfo
public ApiResponse<Void> execInspectLibpodWithHttpInfo(@NotNull @NotNull String id) throws ApiException Inspect an exec instance Return low-level information about an exec instance.- Parameters:
id- Exec instance ID (required)- Returns:
- ApiResponse<Void>
- 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 no error - 404 No such exec instance - 500 Internal server error -
-
execInspectLibpodAsync
public okhttp3.Call execInspectLibpodAsync(String id, ApiCallback<Void> _callback) throws ApiException Inspect an exec instance (asynchronously) Return low-level information about an exec instance.- Parameters:
id- Exec instance ID (required)_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 no error - 404 No such exec instance - 500 Internal server error -
-
execResizeLibpodCall
public okhttp3.Call execResizeLibpodCall(String id, Integer h, Integer w, ApiCallback _callback) throws ApiException Build call for execResizeLibpod- Parameters:
id- Exec instance ID (required)h- Height of the TTY session in characters (optional)w- Width of the TTY session in characters (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 201 no error - 404 No such exec instance - 500 Internal server error -
-
execResizeLibpod
Resize an exec instance Resize the TTY session used by an exec instance. This endpoint only works if tty was specified as part of creating and starting the exec instance.- Parameters:
id- Exec instance ID (required)h- Height of the TTY session in characters (optional)w- Width of the TTY session in characters (optional)- 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 201 no error - 404 No such exec instance - 500 Internal server error -
-
execResizeLibpodWithHttpInfo
public ApiResponse<Void> execResizeLibpodWithHttpInfo(@NotNull @NotNull String id, Integer h, Integer w) throws ApiException Resize an exec instance Resize the TTY session used by an exec instance. This endpoint only works if tty was specified as part of creating and starting the exec instance.- Parameters:
id- Exec instance ID (required)h- Height of the TTY session in characters (optional)w- Width of the TTY session in characters (optional)- Returns:
- ApiResponse<Void>
- 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 201 no error - 404 No such exec instance - 500 Internal server error -
-
execResizeLibpodAsync
public okhttp3.Call execResizeLibpodAsync(String id, Integer h, Integer w, ApiCallback<Void> _callback) throws ApiException Resize an exec instance (asynchronously) Resize the TTY session used by an exec instance. This endpoint only works if tty was specified as part of creating and starting the exec instance.- Parameters:
id- Exec instance ID (required)h- Height of the TTY session in characters (optional)w- Width of the TTY session in characters (optional)_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 201 no error - 404 No such exec instance - 500 Internal server error -
-
execStartLibpodCall
public okhttp3.Call execStartLibpodCall(String id, ExecStartLibpodRequest control, ApiCallback _callback) throws ApiException Build call for execStartLibpod- Parameters:
id- Exec instance ID (required)control- Attributes for start (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 200 no error - 404 No such exec instance - 409 container is not running. - 500 Internal server error -
-
execStartLibpod
Start an exec instance Starts a previously set up exec instance. If detach is true, this endpoint returns immediately after starting the command. Otherwise, it sets up an interactive session with the command. The stream format is the same as the attach endpoint.- Parameters:
id- Exec instance ID (required)control- Attributes for start (optional)- 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 no error - 404 No such exec instance - 409 container is not running. - 500 Internal server error -
-
execStartLibpodWithHttpInfo
public ApiResponse<Void> execStartLibpodWithHttpInfo(@NotNull @NotNull String id, ExecStartLibpodRequest control) throws ApiException Start an exec instance Starts a previously set up exec instance. If detach is true, this endpoint returns immediately after starting the command. Otherwise, it sets up an interactive session with the command. The stream format is the same as the attach endpoint.- Parameters:
id- Exec instance ID (required)control- Attributes for start (optional)- Returns:
- ApiResponse<Void>
- 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 no error - 404 No such exec instance - 409 container is not running. - 500 Internal server error -
-
execStartLibpodAsync
public okhttp3.Call execStartLibpodAsync(String id, ExecStartLibpodRequest control, ApiCallback<Void> _callback) throws ApiException Start an exec instance (asynchronously) Starts a previously set up exec instance. If detach is true, this endpoint returns immediately after starting the command. Otherwise, it sets up an interactive session with the command. The stream format is the same as the attach endpoint.- Parameters:
id- Exec instance ID (required)control- Attributes for start (optional)_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 no error - 404 No such exec instance - 409 container is not running. - 500 Internal server error -
-