Package io.kubernetes.client
Class Attach
java.lang.Object
io.kubernetes.client.Attach
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
AttachResult contains the result of an Attach call, it includes streams for stdout stderr and stdin.final class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattach
(io.kubernetes.client.openapi.models.V1Pod pod, boolean stdin) Attach to a running AttachResult in a container.attach
(io.kubernetes.client.openapi.models.V1Pod pod, boolean stdin, boolean tty) Attach to a running AttachResult in a container.Attach to a running AttachResult in a container.Attach to a running AttachResult in a container.Attach to a running AttachResult in a container.io.kubernetes.client.openapi.ApiClient
Get the API client for these Attach operations.newConnectionBuilder
(String namespace, String name) Setup a Builder for the given namespace and namevoid
setApiClient
(io.kubernetes.client.openapi.ApiClient apiClient) Set the API client for subsequent Attach operations.
-
Constructor Details
-
Attach
public Attach()Simple Attach API constructor, uses default configuration -
Attach
public Attach(io.kubernetes.client.openapi.ApiClient apiClient) Attach API Constructor- Parameters:
apiClient
- The api client to use.
-
-
Method Details
-
getApiClient
public io.kubernetes.client.openapi.ApiClient getApiClient()Get the API client for these Attach operations.- Returns:
- The API client that will be used.
-
setApiClient
public void setApiClient(io.kubernetes.client.openapi.ApiClient apiClient) Set the API client for subsequent Attach operations.- Parameters:
apiClient
- The new API client to use.
-
newConnectionBuilder
Setup a Builder for the given namespace and name- Parameters:
namespace
- The namespace of the Podname
- The name of the Pod
-
attach
public Attach.AttachResult attach(String namespace, String name, boolean stdin) throws io.kubernetes.client.openapi.ApiException, IOException Attach to a running AttachResult in a container. If there are multiple containers in the pod, uses the first container in the Pod.- Parameters:
namespace
- The namespace of the Podname
- The name of the Podstdin
- If true, pass a stdin stream into the container- Throws:
io.kubernetes.client.openapi.ApiException
IOException
-
attach
public Attach.AttachResult attach(io.kubernetes.client.openapi.models.V1Pod pod, boolean stdin) throws io.kubernetes.client.openapi.ApiException, IOException Attach to a running AttachResult in a container. If there are multiple containers in the pod, uses the first container in the Pod.- Parameters:
pod
- The pod where the command is run.stdin
- If true, pass a stdin stream into the container- Throws:
io.kubernetes.client.openapi.ApiException
IOException
-
attach
public Attach.AttachResult attach(io.kubernetes.client.openapi.models.V1Pod pod, boolean stdin, boolean tty) throws io.kubernetes.client.openapi.ApiException, IOException Attach to a running AttachResult in a container. If there are multiple containers in the pod, uses the first container in the Pod.- Parameters:
pod
- The pod where the command is run.stdin
- If true, pass a stdin stream into the containertty
- If true, stdin is a tty.- Throws:
io.kubernetes.client.openapi.ApiException
IOException
-
attach
public Attach.AttachResult attach(io.kubernetes.client.openapi.models.V1Pod pod, String container, boolean stdin, boolean tty) throws io.kubernetes.client.openapi.ApiException, IOException Attach to a running AttachResult in a container. If there are multiple containers in the pod, uses the first container in the Pod.- Parameters:
pod
- The pod where the command is run.container
- 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)- Throws:
io.kubernetes.client.openapi.ApiException
IOException
-
attach
public Attach.AttachResult attach(String namespace, String name, String container, boolean stdin, boolean tty) throws io.kubernetes.client.openapi.ApiException, IOException Attach to a running AttachResult in a container. If there are multiple containers in the pod, uses the first container in the Pod.- Parameters:
namespace
- The namespace of the Podname
- The name of the Podcontainer
- 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)- Throws:
io.kubernetes.client.openapi.ApiException
IOException
-