public class Exec
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Exec.ExecProcess |
class |
Exec.ExecutionBuilder |
Constructor and Description |
---|
Exec()
Simple Exec API constructor, uses default configuration
|
Exec(io.kubernetes.client.openapi.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.openapi.models.V1Pod pod,
java.lang.String[] command,
boolean stdin)
Execute a command in a container.
|
java.lang.Process |
exec(io.kubernetes.client.openapi.models.V1Pod pod,
java.lang.String[] command,
boolean stdin,
boolean tty)
Execute a command in a container.
|
java.lang.Process |
exec(io.kubernetes.client.openapi.models.V1Pod pod,
java.lang.String[] command,
java.lang.String container,
boolean stdin,
boolean tty)
Execute a command in a container.
|
io.kubernetes.client.openapi.ApiClient |
getApiClient()
Get the API client for these exec operations.
|
Exec.ExecutionBuilder |
newExecutionBuilder(java.lang.String namespace,
java.lang.String name,
java.lang.String[] command)
Setup a Builder for the given namespace, name and command
|
void |
setApiClient(io.kubernetes.client.openapi.ApiClient apiClient)
Set the API client for subsequent exec operations.
|
public Exec()
public Exec(io.kubernetes.client.openapi.ApiClient apiClient)
apiClient
- The api client to use.public io.kubernetes.client.openapi.ApiClient getApiClient()
public void setApiClient(io.kubernetes.client.openapi.ApiClient apiClient)
apiClient
- The new API client to use.public Exec.ExecutionBuilder newExecutionBuilder(java.lang.String namespace, java.lang.String name, java.lang.String[] command)
namespace
- The namespace of the Podname
- The name of the Podcommand
- The command to runpublic java.lang.Process exec(java.lang.String namespace, java.lang.String name, java.lang.String[] command, boolean stdin) throws io.kubernetes.client.openapi.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.openapi.ApiException
java.io.IOException
public java.lang.Process exec(io.kubernetes.client.openapi.models.V1Pod pod, java.lang.String[] command, boolean stdin) throws io.kubernetes.client.openapi.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.openapi.ApiException
java.io.IOException
public java.lang.Process exec(java.lang.String namespace, java.lang.String name, java.lang.String[] command, boolean stdin, boolean tty) throws io.kubernetes.client.openapi.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.openapi.ApiException
java.io.IOException
public java.lang.Process exec(io.kubernetes.client.openapi.models.V1Pod pod, java.lang.String[] command, boolean stdin, boolean tty) throws io.kubernetes.client.openapi.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.openapi.ApiException
java.io.IOException
public java.lang.Process exec(io.kubernetes.client.openapi.models.V1Pod pod, java.lang.String[] command, java.lang.String container, boolean stdin, boolean tty) throws io.kubernetes.client.openapi.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.openapi.ApiException
java.io.IOException
public 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.openapi.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.openapi.ApiException
java.io.IOException
Copyright © 2020. All rights reserved.