Interface ExtendedCoreV1Api

  • All Superinterfaces:
    com.marcnuri.yakc.api.Api, CoreV1Api

    public interface ExtendedCoreV1Api
    extends CoreV1Api
    Created by Marc Nuri on 2020-04-27.
    • Method Detail

      • execInNamespacedPod

        @HTTP(method="GET",
              path="/api/v1/namespaces/{namespace}/pods/{name}/exec")
        @Headers("Accept: */*")
        com.marcnuri.yakc.api.KubernetesExecCall<java.lang.String> execInNamespacedPod​(@Path("name")
                                                                                       java.lang.String name,
                                                                                       @Path("namespace")
                                                                                       java.lang.String namespace,
                                                                                       @Query("command")
                                                                                       java.util.List<java.lang.String> commands)
        Execute a command in the only container of the Pod with the provided name in the provided namespace.
        Parameters:
        name - name of the Pod.
        namespace - namespace where the Pod resides.
        commands - the command and args to execute in the Pod container.
      • execInNamespacedPod

        @HTTP(method="GET",
              path="/api/v1/namespaces/{namespace}/pods/{name}/exec")
        @Headers("Accept: */*")
        com.marcnuri.yakc.api.KubernetesExecCall<java.lang.String> execInNamespacedPod​(@Path("name")
                                                                                       java.lang.String name,
                                                                                       @Path("namespace")
                                                                                       java.lang.String namespace,
                                                                                       @Query("container")
                                                                                       java.lang.String container,
                                                                                       @Query("command")
                                                                                       java.util.List<java.lang.String> commands,
                                                                                       @Query("stdin")
                                                                                       boolean stdin,
                                                                                       @Query("stdout")
                                                                                       boolean stdout,
                                                                                       @Query("stderr")
                                                                                       boolean stderr,
                                                                                       @Query("tty")
                                                                                       boolean tty)
        Execute a command in the provided container of the Pod with the provided name in the provided namespace.
        Parameters:
        name - name of the Pod.
        namespace - namespace where the Pod resides.
        container - the name of the container.
        commands - the command and args to execute in the Pod container.
        stdin - redirect the standard input stream of the pod for this call.
        stdout - redirect the standard output stream of the pod for this call.
        stderr - redirect the standard error stream of the pod for this call.
        tty - allocate a terminal for this exec call.
      • execInNamespacedPod

        default com.marcnuri.yakc.api.KubernetesExecCall<java.lang.String> execInNamespacedPod​(java.lang.String name,
                                                                                               java.lang.String namespace,
                                                                                               java.lang.String container,
                                                                                               java.util.List<java.lang.String> commands)
        Execute a command in the provided container of the Pod with the provided name in the provided namespace.
        Parameters:
        name - name of the Pod.
        namespace - namespace where the Pod resides.
        container - the name of the container.
        commands - the command and args to execute in the Pod container.