Skip to main content

Class: Attach

Quick start: const attach = new Attach(kc); attach.attach(ns, pod, container, stdout, stderr, stdin, tty);See examples

Defined in: src/attach.ts:9

Constructors

Constructor

new Attach(config, websocketInterface?): Attach

Defined in: src/attach.ts:14

Parameters

config

KubeConfig

websocketInterface?

WebSocketInterface

Returns

Attach

Properties

handler

handler: WebSocketInterface

Defined in: src/attach.ts:10

Methods

attach()

attach(namespace, podName, containerName, stdout, stderr, stdin, tty): Promise<WebSocket>

Defined in: src/attach.ts:18

Parameters

namespace

string

podName

string

containerName

string

stdout

any

stderr

any

stdin

any

tty

boolean

Returns

Promise<WebSocket>