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 TypeMethodDescriptionvoidcopyDirectoryFromPod(io.kubernetes.client.openapi.models.V1Pod pod, String container, String srcPath, Path destination) voidcopyDirectoryFromPod(io.kubernetes.client.openapi.models.V1Pod pod, String srcPath, Path destination) voidcopyDirectoryFromPod(String namespace, String pod, String container, String srcPath, Path destination) voidcopyDirectoryFromPod(String namespace, String pod, String container, String srcPath, Path destination, boolean enableTarCompressing) Copy directory from a pod to local.voidcopyDirectoryFromPod(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) voidstatic voidcopyFileFromPod(String namespace, String pod, String srcPath, Path dest) voidcopyFileToPod(String namespace, String pod, String container, byte[] src, Path destPath) voidcopyFileToPodAsync(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.ApiExceptionIOException
-
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.ApiExceptionIOException
-
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.ApiExceptionIOException
-
copyFileFromPod
public InputStream copyFileFromPod(String namespace, String pod, String container, String srcPath) throws io.kubernetes.client.openapi.ApiException, IOException - Throws:
io.kubernetes.client.openapi.ApiExceptionIOException
-
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.ApiExceptionIOException
-
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.ApiExceptionIOExceptionCopyNotSupportedException
-
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.ApiExceptionIOExceptionCopyNotSupportedException
-
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.ApiExceptionIOExceptionCopyNotSupportedException
-
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.ApiExceptionIOExceptionCopyNotSupportedException
-
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:
IOExceptionio.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:
IOExceptionio.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.ApiExceptionIOException
-
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.ApiExceptionIOException
-
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.ApiExceptionIOException
-
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.ApiExceptionIOException
-
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.ApiExceptionIOException
-