Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct { Upgrader *WebSocketUpgrader // contains filtered or unexported fields }
func NewWebSocketExecutor ¶
func (*Executor) Close ¶
Close send the 'exit\r\n' command to k8s if recevied the kill or exit signal, cleanup the tty process in container.
func (*Executor) Stream ¶
func (e *Executor) Stream(options StreamOptions) error
type StreamOptions ¶
StreamOptions holds information pertaining to the current streaming session: input/output streams
type WebSocketUpgrader ¶
type WebSocketUpgrader struct { // Dialer is the dialer used to connect. Used if non-nil. Dialer *websocket.Dialer Conn *websocket.Conn Header http.Header // contains filtered or unexported fields }
WebSocketUpgrade knows how to upgrade an HTTP request to one that supports multiplexed streams. After RoundTrip() is invoked, Conn will be set and usable.
func RoundTripperFor ¶
func RoundTripperFor(config *rest.Config) (*WebSocketUpgrader, http.RoundTripper, error)
RoundTripperFor returns a http header with the rest config.
Click to show internal directories.
Click to hide internal directories.