public class Copy extends Exec
Exec.ExecProcess, Exec.ExecutionBuilder
Constructor and Description |
---|
Copy()
Simple Copy constructor, uses default configuration
|
Copy(io.kubernetes.client.openapi.ApiClient apiClient)
Copy Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
copyDirectoryFromPod(String namespace,
String pod,
String srcPath,
Path destination) |
void |
copyDirectoryFromPod(String namespace,
String pod,
String container,
String srcPath,
Path destination) |
void |
copyDirectoryFromPod(String namespace,
String pod,
String container,
String srcPath,
Path destination,
boolean enableTarCompressing)
Copy directory from a pod to local.
|
void |
copyDirectoryFromPod(io.kubernetes.client.openapi.models.V1Pod pod,
String srcPath,
Path destination) |
void |
copyDirectoryFromPod(io.kubernetes.client.openapi.models.V1Pod pod,
String container,
String srcPath,
Path destination) |
Future<Integer> |
copyDirectoryFromPodAsync(String namespace,
String pod,
String container,
String srcPath,
Path destination) |
InputStream |
copyFileFromPod(String namespace,
String pod,
String srcPath) |
static void |
copyFileFromPod(String namespace,
String pod,
String srcPath,
Path dest) |
InputStream |
copyFileFromPod(String namespace,
String pod,
String container,
String srcPath) |
void |
copyFileFromPod(String namespace,
String name,
String container,
String srcPath,
Path destination) |
InputStream |
copyFileFromPod(io.kubernetes.client.openapi.models.V1Pod pod,
String srcPath) |
InputStream |
copyFileFromPod(io.kubernetes.client.openapi.models.V1Pod pod,
String container,
String srcPath) |
void |
copyFileToPod(String namespace,
String pod,
String container,
byte[] src,
Path destPath) |
void |
copyFileToPod(String namespace,
String pod,
String container,
Path srcPath,
Path destPath) |
Future<Integer> |
copyFileToPodAsync(String namespace,
String pod,
String container,
byte[] src,
Path destPath) |
Future<Integer> |
copyFileToPodAsync(String namespace,
String pod,
String container,
Path srcPath,
Path destPath) |
exec, exec, exec, exec, exec, exec, exec, getApiClient, getOnUnhandledError, newExecutionBuilder, runAsync, setApiClient, setOnUnhandledError
public Copy()
public Copy(io.kubernetes.client.openapi.ApiClient apiClient)
apiClient
- The api client to use.public InputStream copyFileFromPod(String namespace, String pod, String srcPath) throws io.kubernetes.client.openapi.ApiException, IOException
io.kubernetes.client.openapi.ApiException
IOException
public InputStream copyFileFromPod(io.kubernetes.client.openapi.models.V1Pod pod, String srcPath) throws io.kubernetes.client.openapi.ApiException, IOException
io.kubernetes.client.openapi.ApiException
IOException
public InputStream copyFileFromPod(io.kubernetes.client.openapi.models.V1Pod pod, String container, String srcPath) throws io.kubernetes.client.openapi.ApiException, IOException
io.kubernetes.client.openapi.ApiException
IOException
public InputStream copyFileFromPod(String namespace, String pod, String container, String srcPath) throws io.kubernetes.client.openapi.ApiException, IOException
io.kubernetes.client.openapi.ApiException
IOException
public void copyFileFromPod(String namespace, String name, String container, String srcPath, Path destination) throws io.kubernetes.client.openapi.ApiException, IOException
io.kubernetes.client.openapi.ApiException
IOException
public void copyDirectoryFromPod(io.kubernetes.client.openapi.models.V1Pod pod, String srcPath, Path destination) throws io.kubernetes.client.openapi.ApiException, IOException, CopyNotSupportedException
io.kubernetes.client.openapi.ApiException
IOException
CopyNotSupportedException
public void copyDirectoryFromPod(io.kubernetes.client.openapi.models.V1Pod pod, String container, String srcPath, Path destination) throws io.kubernetes.client.openapi.ApiException, IOException, CopyNotSupportedException
io.kubernetes.client.openapi.ApiException
IOException
CopyNotSupportedException
public void copyDirectoryFromPod(String namespace, String pod, String srcPath, Path destination) throws io.kubernetes.client.openapi.ApiException, IOException, CopyNotSupportedException
io.kubernetes.client.openapi.ApiException
IOException
CopyNotSupportedException
public void copyDirectoryFromPod(String namespace, String pod, String container, String srcPath, Path destination) throws io.kubernetes.client.openapi.ApiException, IOException, CopyNotSupportedException
io.kubernetes.client.openapi.ApiException
IOException
CopyNotSupportedException
public void copyDirectoryFromPod(String namespace, String pod, String container, String srcPath, Path destination, boolean enableTarCompressing) throws IOException, io.kubernetes.client.openapi.ApiException
namespace
- pod
- container
- srcPath
- destination
- enableTarCompressing:
- false if tar is not present in target containerIOException
io.kubernetes.client.openapi.ApiException
public Future<Integer> copyDirectoryFromPodAsync(String namespace, String pod, String container, String srcPath, Path destination) throws IOException, io.kubernetes.client.openapi.ApiException
IOException
io.kubernetes.client.openapi.ApiException
public static void copyFileFromPod(String namespace, String pod, String srcPath, Path dest) throws io.kubernetes.client.openapi.ApiException, IOException
io.kubernetes.client.openapi.ApiException
IOException
public void copyFileToPod(String namespace, String pod, String container, Path srcPath, Path destPath) throws io.kubernetes.client.openapi.ApiException, IOException
io.kubernetes.client.openapi.ApiException
IOException
public Future<Integer> copyFileToPodAsync(String namespace, String pod, String container, Path srcPath, Path destPath) throws io.kubernetes.client.openapi.ApiException, IOException
io.kubernetes.client.openapi.ApiException
IOException
public void copyFileToPod(String namespace, String pod, String container, byte[] src, Path destPath) throws io.kubernetes.client.openapi.ApiException, IOException
io.kubernetes.client.openapi.ApiException
IOException
public Future<Integer> copyFileToPodAsync(String namespace, String pod, String container, byte[] src, Path destPath) throws io.kubernetes.client.openapi.ApiException, IOException
io.kubernetes.client.openapi.ApiException
IOException
Copyright © 2023. All rights reserved.