Skip to content

Commit

Permalink
Rename ChannelTunnel to KubernetesTunnel
Browse files Browse the repository at this point in the history
  • Loading branch information
danopia committed Aug 5, 2023
1 parent c1d980c commit 35f04d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export interface RequestOptions {
expectJson?: boolean;
}

export interface ChannelTunnel {
export interface KubernetesTunnel {
/** Indicates which network protocol is in use.
* This changes semantics, largely due to Kubernetes tunnel API quirks. */
readonly transportProtocol: 'SPDY' | 'WebSocket' | 'Opaque';
Expand All @@ -43,7 +43,7 @@ export interface ChannelTunnel {
readable: Treadable;
writable: Twritable;
}): Promise<{
close(): Promise<void>;
// close(): Promise<void>;
readable: Treadable extends true ? ReadableStream<Uint8Array> : null;
writable: Twritable extends true ? WritableStream<Uint8Array> : null;
}>;
Expand All @@ -54,7 +54,7 @@ export interface ChannelTunnel {
}

export interface RestClient {
performRequest(opts: RequestOptions & {expectTunnel: string[]}): Promise<ChannelTunnel>;
performRequest(opts: RequestOptions & {expectTunnel: string[]}): Promise<KubernetesTunnel>;
performRequest(opts: RequestOptions & {expectStream: true; expectJson: true}): Promise<ReadableStream<JSONValue>>;
performRequest(opts: RequestOptions & {expectStream: true}): Promise<ReadableStream<Uint8Array>>;
performRequest(opts: RequestOptions & {expectJson: true}): Promise<JSONValue>;
Expand Down

0 comments on commit 35f04d5

Please sign in to comment.