Documentation ¶
Overview ¶
Package corprelayv4 implements the corp-relay-v4@google.com protocol, see https://chromium.googlesource.com/apps/libapps/+/HEAD/nassh/doc/relay-protocol.md#corp-relay-v4.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidSession is returned when a session is in an invalid state. ErrInvalidSession = errors.New("invalid session") )
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
A Session is a V4 SSH-over-Websocket Relay session. TODO: Implement reconnect logic.
func New ¶
func New(ssh io.ReadWriteCloser, role session.Role) *Session
New creates a *Session from a given SSH connection.
func (*Session) Done ¶
func (s *Session) Done() <-chan struct{}
Done notifies when a session has terminated.
func (*Session) Version ¶
func (s *Session) Version() session.ProtocolVersion
Version returns the protocol version in use for the session.
Click to show internal directories.
Click to hide internal directories.