public class Exec
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Exec.ExecProcess |
| 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 |
|---|---|
java.lang.Process |
exec(java.lang.String namespace,
java.lang.String name,
java.lang.String[] command,
boolean stdin)
Execute a command in a container.
|
java.lang.Process |
exec(java.lang.String namespace,
java.lang.String name,
java.lang.String[] command,
boolean stdin,
boolean tty)
Execute a command in a container.
|
java.lang.Process |
exec(java.lang.String namespace,
java.lang.String name,
java.lang.String[] command,
java.lang.String container,
boolean stdin,
boolean tty)
Execute a command in a container.
|
java.lang.Process |
exec(io.kubernetes.client.models.V1Pod pod,
java.lang.String[] command,
boolean stdin)
Execute a command in a container.
|
java.lang.Process |
exec(io.kubernetes.client.models.V1Pod pod,
java.lang.String[] command,
boolean stdin,
boolean tty)
Execute a command in a container.
|
java.lang.Process |
exec(io.kubernetes.client.models.V1Pod pod,
java.lang.String[] command,
java.lang.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 java.lang.Process exec(java.lang.String namespace,
java.lang.String name,
java.lang.String[] command,
boolean stdin)
throws io.kubernetes.client.ApiException,
java.io.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.ApiExceptionjava.io.IOExceptionpublic java.lang.Process exec(io.kubernetes.client.models.V1Pod pod,
java.lang.String[] command,
boolean stdin)
throws io.kubernetes.client.ApiException,
java.io.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.ApiExceptionjava.io.IOExceptionpublic java.lang.Process exec(java.lang.String namespace,
java.lang.String name,
java.lang.String[] command,
boolean stdin,
boolean tty)
throws io.kubernetes.client.ApiException,
java.io.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.ApiExceptionjava.io.IOExceptionpublic java.lang.Process exec(io.kubernetes.client.models.V1Pod pod,
java.lang.String[] command,
boolean stdin,
boolean tty)
throws io.kubernetes.client.ApiException,
java.io.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.ApiExceptionjava.io.IOExceptionpublic java.lang.Process exec(io.kubernetes.client.models.V1Pod pod,
java.lang.String[] command,
java.lang.String container,
boolean stdin,
boolean tty)
throws io.kubernetes.client.ApiException,
java.io.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.ApiExceptionjava.io.IOExceptionpublic java.lang.Process exec(java.lang.String namespace,
java.lang.String name,
java.lang.String[] command,
java.lang.String container,
boolean stdin,
boolean tty)
throws io.kubernetes.client.ApiException,
java.io.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.ApiExceptionjava.io.IOExceptionCopyright © 2019. All rights reserved.