public class Exec extends Object
Constructor and Description |
---|
Exec()
Simple Exec API constructor, uses default configuration
|
Exec(ApiClient apiClient)
Exec API Constructor
|
Modifier and Type | Method and Description |
---|---|
Process |
exec(String namespace,
String name,
String[] command,
boolean stdin)
Execute a command in a container.
|
Process |
exec(String namespace,
String name,
String[] command,
boolean stdin,
boolean tty)
Execute a command in a container.
|
Process |
exec(String namespace,
String name,
String[] command,
String container,
boolean stdin,
boolean tty)
Execute a command in a container.
|
Process |
exec(V1Pod pod,
String[] command,
boolean stdin)
Execute a command in a container.
|
Process |
exec(V1Pod pod,
String[] command,
boolean stdin,
boolean tty)
Execute a command in a container.
|
Process |
exec(V1Pod pod,
String[] command,
String container,
boolean stdin,
boolean tty)
Execute a command in a container.
|
ApiClient |
getApiClient()
Get the API client for these exec operations.
|
void |
setApiClient(ApiClient apiClient)
Set the API client for subsequent exec operations.
|
public Exec()
public Exec(ApiClient apiClient)
apiClient
- The api client to use.public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient
- The new API client to use.public Process exec(String namespace, String name, String[] command, boolean stdin) throws ApiException, IOException
namespace
- The namespace of the Podname
- The name of the Podcommand
- The command to runstdin
- If true, pass a stdin stream into the containerApiException
IOException
public Process exec(V1Pod pod, String[] command, boolean stdin) throws ApiException, IOException
pod
- The pod where the command is run.command
- The command to runstdin
- If true, pass a stdin stream into the containerApiException
IOException
public Process exec(String namespace, String name, String[] command, boolean stdin, boolean tty) throws ApiException, IOException
namespace
- The namespace of the Podname
- The name of the Podcommand
- The command to runstdin
- If true, pass a stdin stream into the containertty
- If true, stdin is a tty.ApiException
IOException
public Process exec(V1Pod pod, String[] command, boolean stdin, boolean tty) throws ApiException, IOException
pod
- The pod where the command is run.command
- The command to runstdin
- If true, pass a stdin stream into the containertty
- If true, stdin is a tty.ApiException
IOException
public Process exec(V1Pod pod, String[] command, String container, boolean stdin, boolean tty) throws ApiException, IOException
pod
- The pod where the command is run.command
- The command to runcontainer
- The container in the Pod where the command is run.stdin
- If true, pass a stdin stream into the container.tty
- If true, stdin is a TTY (only applies if stdin is true)ApiException
IOException
public Process exec(String namespace, String name, String[] command, String container, boolean stdin, boolean tty) throws ApiException, IOException
namespace
- The namespace of the Podname
- The name of the Podcommand
- The command to runcontainer
- The container in the Pod where the command is run.stdin
- If true, pass a stdin stream into the container.tty
- If true, stdin is a TTY (only applies if stdin is true)ApiException
IOException
Copyright © 2017. All rights reserved.