Constructor and Description |
---|
Exec()
Simple Exec API constructor, uses default configuration
|
Exec(io.kubernetes.client.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(io.kubernetes.client.models.V1Pod pod,
String[] command,
boolean stdin)
Execute a command in a container.
|
Process |
exec(io.kubernetes.client.models.V1Pod pod,
String[] command,
boolean stdin,
boolean tty)
Execute a command in a container.
|
Process |
exec(io.kubernetes.client.models.V1Pod pod,
String[] command,
String container,
boolean stdin,
boolean tty)
Execute a command in a container.
|
io.kubernetes.client.ApiClient |
getApiClient()
Get the API client for these exec operations.
|
void |
setApiClient(io.kubernetes.client.ApiClient apiClient)
Set the API client for subsequent exec operations.
|
public Exec()
public Exec(io.kubernetes.client.ApiClient apiClient)
apiClient
- The api client to use.public io.kubernetes.client.ApiClient getApiClient()
public void setApiClient(io.kubernetes.client.ApiClient apiClient)
apiClient
- The new API client to use.public Process exec(String namespace, String name, String[] command, boolean stdin) throws io.kubernetes.client.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 containerio.kubernetes.client.ApiException
IOException
public Process exec(io.kubernetes.client.models.V1Pod pod, String[] command, boolean stdin) throws io.kubernetes.client.ApiException, IOException
pod
- The pod where the command is run.command
- The command to runstdin
- If true, pass a stdin stream into the containerio.kubernetes.client.ApiException
IOException
public Process exec(String namespace, String name, String[] command, boolean stdin, boolean tty) throws io.kubernetes.client.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.io.kubernetes.client.ApiException
IOException
public Process exec(io.kubernetes.client.models.V1Pod pod, String[] command, boolean stdin, boolean tty) throws io.kubernetes.client.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.io.kubernetes.client.ApiException
IOException
public Process exec(io.kubernetes.client.models.V1Pod pod, String[] command, String container, boolean stdin, boolean tty) throws io.kubernetes.client.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)io.kubernetes.client.ApiException
IOException
public Process exec(String namespace, String name, String[] command, String container, boolean stdin, boolean tty) throws io.kubernetes.client.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)io.kubernetes.client.ApiException
IOException
Copyright © 2018. All rights reserved.