import { type KubernetesTunnel } from "https://deno.land/x/kubernetes_apis@v0.5.1/deps.ts";
Properties
Indicates which network protocol is in use. This changes semantics, largely due to Kubernetes tunnel API quirks.
Indicates which network protocol is in use. This changes semantics, largely due to Kubernetes tunnel API quirks.
Methods
getChannel<Treadable extends boolean, Twritable extends boolean>(opts: { spdyHeaders?: Record<string, string | number>; streamIndex?: number; readable: Treadable; writable: Twritable; }): Promise<{ readable: Treadable extends true ? ReadableStream<Uint8Array> : null; writable: Twritable extends true ? WritableStream<Uint8Array> : null; }>
Set up a channel, using either SPDY or Websocket semantics.
getChannel<Treadable extends boolean, Twritable extends boolean>(opts: { spdyHeaders?: Record<string, string | number>; streamIndex?: number; readable: Treadable; writable: Twritable; }): Promise<{ readable: Treadable extends true ? ReadableStream<Uint8Array> : null; writable: Twritable extends true ? WritableStream<Uint8Array> : null; }>
Set up a channel, using either SPDY or Websocket semantics.