• Clayton Coleman's avatar
    Refactor exec to make attach useful without a client.Config · 3f1b18fb
    Clayton Coleman authored
    The current executor structure is too dependent on client.Request
    and client.Config. In order to do an attach from the server, it needs
    to be possible to create an Executor from crypto/tls#TLSConfig and to
    bypassing having a client.Request.
    
    Changes:
    
    * remotecommand.spdyExecutor - handles upgrading a request to SPDY and getting a connection
    * remotecommand.NewAttach / New - moved to exec / portforward / attach since they handle requests
    * Remove request.Upgrade() - it's too coupled to SPDY, and can live with the spdyExecutor
    * Add request.VersionedParams(runtime.Object, runtime.ObjectConvertor) to handle object -> query transform
    3f1b18fb
portforward.go 3.73 KB