public class Attach extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Attach.AttachResult
AttachResult contains the result of an Attach call, it includes streams for stdout stderr and
stdin.
|
Constructor and Description |
---|
Attach()
Simple Attach API constructor, uses default configuration
|
Attach(io.kubernetes.client.ApiClient apiClient)
Attach API Constructor
|
Modifier and Type | Method and Description |
---|---|
Attach.AttachResult |
attach(String namespace,
String name,
boolean stdin)
Attach to a running AttachResult in a container.
|
Attach.AttachResult |
attach(String namespace,
String name,
String container,
boolean stdin,
boolean tty)
Attach to a running AttachResult in a container.
|
Attach.AttachResult |
attach(io.kubernetes.client.models.V1Pod pod,
boolean stdin)
Attach to a running AttachResult in a container.
|
Attach.AttachResult |
attach(io.kubernetes.client.models.V1Pod pod,
boolean stdin,
boolean tty)
Attach to a running AttachResult in a container.
|
Attach.AttachResult |
attach(io.kubernetes.client.models.V1Pod pod,
String container,
boolean stdin,
boolean tty)
Attach to a running AttachResult in a container.
|
io.kubernetes.client.ApiClient |
getApiClient()
Get the API client for these Attach operations.
|
void |
setApiClient(io.kubernetes.client.ApiClient apiClient)
Set the API client for subsequent Attach operations.
|
public Attach()
public Attach(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 Attach.AttachResult attach(String namespace, String name, boolean stdin) throws io.kubernetes.client.ApiException, IOException
namespace
- The namespace of the Podname
- The name of the Podstdin
- If true, pass a stdin stream into the containerio.kubernetes.client.ApiException
IOException
public Attach.AttachResult attach(io.kubernetes.client.models.V1Pod pod, boolean stdin) throws io.kubernetes.client.ApiException, IOException
pod
- The pod where the command is run.stdin
- If true, pass a stdin stream into the containerio.kubernetes.client.ApiException
IOException
public Attach.AttachResult attach(io.kubernetes.client.models.V1Pod pod, boolean stdin, boolean tty) throws io.kubernetes.client.ApiException, IOException
pod
- The pod where the command is run.stdin
- If true, pass a stdin stream into the containertty
- If true, stdin is a tty.io.kubernetes.client.ApiException
IOException
public Attach.AttachResult attach(io.kubernetes.client.models.V1Pod pod, String container, boolean stdin, boolean tty) throws io.kubernetes.client.ApiException, IOException
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)io.kubernetes.client.ApiException
IOException
public Attach.AttachResult attach(String namespace, String name, String container, boolean stdin, boolean tty) throws io.kubernetes.client.ApiException, IOException
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)io.kubernetes.client.ApiException
IOException
Copyright © 2018. All rights reserved.