Package io.kubernetes.client
Class Copy
java.lang.Object
io.kubernetes.client.Exec
io.kubernetes.client.Copy
-
Nested Class Summary
Nested classes/interfaces inherited from class io.kubernetes.client.Exec
Exec.ExecProcess, Exec.ExecutionBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
copyDirectoryFromPod
(io.kubernetes.client.openapi.models.V1Pod pod, String container, String srcPath, Path destination) void
copyDirectoryFromPod
(io.kubernetes.client.openapi.models.V1Pod 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
(String namespace, String pod, String srcPath, Path destination) copyDirectoryFromPodAsync
(String namespace, String pod, String container, String srcPath, Path destination) copyFileFromPod
(io.kubernetes.client.openapi.models.V1Pod pod, String srcPath) copyFileFromPod
(io.kubernetes.client.openapi.models.V1Pod pod, String container, String srcPath) copyFileFromPod
(String namespace, String pod, String srcPath) copyFileFromPod
(String namespace, String pod, String container, String srcPath) void
static void
copyFileFromPod
(String namespace, String pod, String srcPath, Path dest) void
copyFileToPod
(String namespace, String pod, String container, byte[] src, Path destPath) void
copyFileToPodAsync
(String namespace, String pod, String container, byte[] src, Path destPath) Methods inherited from class io.kubernetes.client.Exec
exec, exec, exec, exec, exec, exec, exec, getApiClient, getOnUnhandledError, newExecutionBuilder, runAsync, setApiClient, setOnUnhandledError
-
Constructor Details
-
Copy
public Copy()Simple Copy constructor, uses default configuration -
Copy
public Copy(io.kubernetes.client.openapi.ApiClient apiClient) Copy Constructor- Parameters:
apiClient
- The api client to use.
-
-
Method Details
-
copyFileFromPod
public InputStream copyFileFromPod(String namespace, String pod, String srcPath) throws io.kubernetes.client.openapi.ApiException, IOException - Throws:
io.kubernetes.client.openapi.ApiException
IOException
-
copyFileFromPod
public InputStream copyFileFromPod(io.kubernetes.client.openapi.models.V1Pod pod, String srcPath) throws io.kubernetes.client.openapi.ApiException, IOException - Throws:
io.kubernetes.client.openapi.ApiException
IOException
-
copyFileFromPod
public InputStream copyFileFromPod(io.kubernetes.client.openapi.models.V1Pod pod, String container, String srcPath) throws io.kubernetes.client.openapi.ApiException, IOException - Throws:
io.kubernetes.client.openapi.ApiException
IOException
-
copyFileFromPod
public InputStream copyFileFromPod(String namespace, String pod, String container, String srcPath) throws io.kubernetes.client.openapi.ApiException, IOException - Throws:
io.kubernetes.client.openapi.ApiException
IOException
-
copyFileFromPod
public void copyFileFromPod(String namespace, String name, String container, String srcPath, Path destination) throws io.kubernetes.client.openapi.ApiException, IOException - Throws:
io.kubernetes.client.openapi.ApiException
IOException
-
copyDirectoryFromPod
public void copyDirectoryFromPod(io.kubernetes.client.openapi.models.V1Pod pod, String srcPath, Path destination) throws io.kubernetes.client.openapi.ApiException, IOException, CopyNotSupportedException - Throws:
io.kubernetes.client.openapi.ApiException
IOException
CopyNotSupportedException
-
copyDirectoryFromPod
public void copyDirectoryFromPod(io.kubernetes.client.openapi.models.V1Pod pod, String container, String srcPath, Path destination) throws io.kubernetes.client.openapi.ApiException, IOException, CopyNotSupportedException - Throws:
io.kubernetes.client.openapi.ApiException
IOException
CopyNotSupportedException
-
copyDirectoryFromPod
public void copyDirectoryFromPod(String namespace, String pod, String srcPath, Path destination) throws io.kubernetes.client.openapi.ApiException, IOException, CopyNotSupportedException - Throws:
io.kubernetes.client.openapi.ApiException
IOException
CopyNotSupportedException
-
copyDirectoryFromPod
public void copyDirectoryFromPod(String namespace, String pod, String container, String srcPath, Path destination) throws io.kubernetes.client.openapi.ApiException, IOException, CopyNotSupportedException - Throws:
io.kubernetes.client.openapi.ApiException
IOException
CopyNotSupportedException
-
copyDirectoryFromPod
public void copyDirectoryFromPod(String namespace, String pod, String container, String srcPath, Path destination, boolean enableTarCompressing) throws IOException, io.kubernetes.client.openapi.ApiException Copy directory from a pod to local.- Parameters:
namespace
-pod
-container
-srcPath
-destination
-enableTarCompressing
- : false if tar is not present in target container- Throws:
IOException
io.kubernetes.client.openapi.ApiException
-
copyDirectoryFromPodAsync
public Future<Integer> copyDirectoryFromPodAsync(String namespace, String pod, String container, String srcPath, Path destination) throws IOException, io.kubernetes.client.openapi.ApiException - Throws:
IOException
io.kubernetes.client.openapi.ApiException
-
copyFileFromPod
public static void copyFileFromPod(String namespace, String pod, String srcPath, Path dest) throws io.kubernetes.client.openapi.ApiException, IOException - Throws:
io.kubernetes.client.openapi.ApiException
IOException
-
copyFileToPod
public void copyFileToPod(String namespace, String pod, String container, Path srcPath, Path destPath) throws io.kubernetes.client.openapi.ApiException, IOException - Throws:
io.kubernetes.client.openapi.ApiException
IOException
-
copyFileToPodAsync
public Future<Integer> copyFileToPodAsync(String namespace, String pod, String container, Path srcPath, Path destPath) throws io.kubernetes.client.openapi.ApiException, IOException - Throws:
io.kubernetes.client.openapi.ApiException
IOException
-
copyFileToPod
public void copyFileToPod(String namespace, String pod, String container, byte[] src, Path destPath) throws io.kubernetes.client.openapi.ApiException, IOException - Throws:
io.kubernetes.client.openapi.ApiException
IOException
-
copyFileToPodAsync
public Future<Integer> copyFileToPodAsync(String namespace, String pod, String container, byte[] src, Path destPath) throws io.kubernetes.client.openapi.ApiException, IOException - Throws:
io.kubernetes.client.openapi.ApiException
IOException
-