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, newExecutionBuilder, runAsync, setApiClientpublic 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.ApiExceptionIOExceptionpublic InputStream copyFileFromPod(io.kubernetes.client.openapi.models.V1Pod pod, String srcPath) throws io.kubernetes.client.openapi.ApiException, IOException
io.kubernetes.client.openapi.ApiExceptionIOExceptionpublic InputStream copyFileFromPod(io.kubernetes.client.openapi.models.V1Pod pod, String container, String srcPath) throws io.kubernetes.client.openapi.ApiException, IOException
io.kubernetes.client.openapi.ApiExceptionIOExceptionpublic InputStream copyFileFromPod(String namespace, String pod, String container, String srcPath) throws io.kubernetes.client.openapi.ApiException, IOException
io.kubernetes.client.openapi.ApiExceptionIOExceptionpublic void copyFileFromPod(String namespace, String name, String container, String srcPath, Path destination) throws io.kubernetes.client.openapi.ApiException, IOException
io.kubernetes.client.openapi.ApiExceptionIOExceptionpublic 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.ApiExceptionIOExceptionCopyNotSupportedExceptionpublic 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.ApiExceptionIOExceptionCopyNotSupportedExceptionpublic void copyDirectoryFromPod(String namespace, String pod, String srcPath, Path destination) throws io.kubernetes.client.openapi.ApiException, IOException, CopyNotSupportedException
io.kubernetes.client.openapi.ApiExceptionIOExceptionCopyNotSupportedExceptionpublic void copyDirectoryFromPod(String namespace, String pod, String container, String srcPath, Path destination) throws io.kubernetes.client.openapi.ApiException, IOException, CopyNotSupportedException
io.kubernetes.client.openapi.ApiExceptionIOExceptionCopyNotSupportedExceptionpublic 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 containerIOExceptionio.kubernetes.client.openapi.ApiExceptionpublic Future<Integer> copyDirectoryFromPodAsync(String namespace, String pod, String container, String srcPath, Path destination) throws IOException, io.kubernetes.client.openapi.ApiException
IOExceptionio.kubernetes.client.openapi.ApiExceptionpublic static void copyFileFromPod(String namespace, String pod, String srcPath, Path dest) throws io.kubernetes.client.openapi.ApiException, IOException
io.kubernetes.client.openapi.ApiExceptionIOExceptionpublic void copyFileToPod(String namespace, String pod, String container, Path srcPath, Path destPath) throws io.kubernetes.client.openapi.ApiException, IOException
io.kubernetes.client.openapi.ApiExceptionIOExceptionpublic Future<Integer> copyFileToPodAsync(String namespace, String pod, String container, Path srcPath, Path destPath) throws io.kubernetes.client.openapi.ApiException, IOException
io.kubernetes.client.openapi.ApiExceptionIOExceptionpublic void copyFileToPod(String namespace, String pod, String container, byte[] src, Path destPath) throws io.kubernetes.client.openapi.ApiException, IOException
io.kubernetes.client.openapi.ApiExceptionIOExceptionpublic Future<Integer> copyFileToPodAsync(String namespace, String pod, String container, byte[] src, Path destPath) throws io.kubernetes.client.openapi.ApiException, IOException
io.kubernetes.client.openapi.ApiExceptionIOExceptionCopyright © 2021. All rights reserved.