spdy

package
v1.78.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

Package spdy contains functionality for parsing SPDY streaming sessions. This is used for 'kubectl exec' session recording.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New wraps the provided network connection and returns a connection whose reads and writes will get triggered as data is received on the hijacked connection. The connection must be a hijacked connection for a 'kubectl exec' session using SPDY. The hijacked connection is used to transmit SPDY streams between Kubernetes client ('kubectl') and the destination container. Data read from the underlying network connection is data sent via one of the SPDY streams from the client to the container. Data written to the underlying connection is data sent from the container to the client. We parse the data and send everything for the stdout/stderr streams to the configured tsrecorder as an asciinema recording with the provided header. https://github.com/kubernetes/enhancements/tree/master/keps/sig-api-machinery/4006-transition-spdy-to-websockets#background-remotecommand-subprotocol

Types

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL