Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connection ¶
type Connection interface { // CreateStream creates a new Stream with the supplied headers. CreateStream(headers http.Header) (net.Conn, error) // Accept accepts a new stream Accept() net.Conn // Close resets all streams and closes the connection. Close() error }
Connection represents an upgraded HTTP connection with SDPY
func Client ¶
func Client(conn net.Conn) (Connection, error)
Client starts a new SPDY client connection on the net.Conn
func Server ¶
func Server(conn net.Conn) (Connection, error)
Server starts a new SPDY server connection on the net.Conn
func UpgradeResponse ¶
func UpgradeResponse(w http.ResponseWriter, req *http.Request) (Connection, error)
UpgradeResponse upgrades an HTTP response to a SPDY multi-stream connection
type RemoteCommand ¶
RemoteCommand executes a remote command on Kubernetes
type RoundTripper ¶
type RoundTripper struct { //tlsConfig holds the TLS configuration for the connection. TLSConfig *tls.Config BearerToken string // contains filtered or unexported fields }
RoundTripper upgrades an HTTP connection to enable streams with the SDPY protocol
func (*RoundTripper) NewConnection ¶
func (r *RoundTripper) NewConnection(resp *http.Response) (Connection, error)
NewConnection validates the upgrade response.
Click to show internal directories.
Click to hide internal directories.