Class KubectlCopy

java.lang.Object
io.kubernetes.client.extended.kubectl.KubectlCopy
All Implemented Interfaces:
Kubectl.Executable<Boolean>

public class KubectlCopy extends Object implements Kubectl.Executable<Boolean>
  • Method Details

    • directory

      public KubectlCopy directory()
    • from

      public KubectlCopy from(String file)
    • fromPod

      public KubectlCopy fromPod(String fileInPod)
    • to

      public KubectlCopy to(String file)
    • toPod

      public KubectlCopy toPod(String fileInPod)
    • execute

      public Boolean execute() throws KubectlException
      Description copied from interface: Kubectl.Executable
      Run and retrieve the output from the kubectl helpers.
      Specified by:
      execute in interface Kubectl.Executable<Boolean>
      Returns:
      the output, can be Void
      Throws:
      KubectlException - the kubectl exception
    • container

      public KubectlCopy container(String container)
    • name

      public KubectlCopy name(String name)
    • getGenericApi

      protected io.kubernetes.client.util.generic.GenericKubernetesApi<io.kubernetes.client.openapi.models.V1Pod,io.kubernetes.client.common.KubernetesListObject> getGenericApi() throws KubectlException
      Throws:
      KubectlException
    • isNamespaced

      protected boolean isNamespaced(io.kubernetes.client.common.KubernetesObject obj)
    • getGenericApi

      protected io.kubernetes.client.util.generic.GenericKubernetesApi<? extends io.kubernetes.client.common.KubernetesObject,? extends io.kubernetes.client.common.KubernetesListObject> getGenericApi(io.kubernetes.client.common.KubernetesObject targetObj) throws KubectlException
      Throws:
      KubectlException
    • namespace

      public KubectlCopy namespace(String namespace)
    • refreshDiscovery

      protected void refreshDiscovery() throws KubectlException
      Throws:
      KubectlException
    • getGenericApi

      protected <ApiType extends io.kubernetes.client.common.KubernetesObject> io.kubernetes.client.util.generic.GenericKubernetesApi<ApiType,? extends io.kubernetes.client.common.KubernetesListObject> getGenericApi(Class<ApiType> apiTypeClass) throws KubectlException
      Throws:
      KubectlException
    • getGenericApi

      protected <ApiType extends io.kubernetes.client.common.KubernetesObject, ApiListType extends io.kubernetes.client.common.KubernetesListObject> io.kubernetes.client.util.generic.GenericKubernetesApi<ApiType,ApiListType> getGenericApi(Class<ApiType> apiTypeClass, Class<ApiListType> apiListTypeClass) throws KubectlException
      Throws:
      KubectlException
    • apiClient

      public KubectlCopy apiClient(io.kubernetes.client.openapi.ApiClient apiClient)
    • skipDiscovery

      public KubectlCopy skipDiscovery()