Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/kubernetes_apis/tunnels.ts>PortforwardTunnel

REST focused Typescript classes for Kubernetes APIs, and tools for generating API interfaces
Latest
class PortforwardTunnel
import { PortforwardTunnel } from "https://deno.land/x/kubernetes_apis@v0.5.3/tunnels.ts";

Constructors

new
PortforwardTunnel(tunnel: KubernetesTunnel, originalParams: URLSearchParams)

Properties

private
nextRequestId: number
private
remainingPorts
readonly
ready: Promise<void>

Methods

connectToPort(port: number): Promise<{ result: Promise<null>; readable: ReadableStream<Uint8Array>; writable: WritableStream<Uint8Array>; }>
disconnect(): void
servePortforward(opts: Deno.ListenOptions & { targetPort: number; }): Deno.Listener

Static Properties

readonly
supportedProtocols: string[]