corprelay

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package corprelay implements a corp-relay@google.com SSH-over-WebSocket Relay client session.

Sessions are established in two parts: * /proxy: Tells the Relay to set up the SSH connection, returns a Session ID * /connect: SSH-over-WebSocket Relay session

NOTE: Reconnections are not implemented.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	// contains filtered or unexported fields
}

A Session is a corp-relay@google.com SSH-over-WebSocket Relay client session.

func New

func New(opts hsession.Options) *Session

New creates a *Session. Communication to ssh(1) is done via stdin/stdout.

func (*Session) Done

func (s *Session) Done() <-chan struct{}

Done notifies when the Session has terminated.

func (*Session) Run

func (s *Session) Run() error

Run copies I/O to an SSH host through a WebSocket Relay via /connect.

Jump to

Keyboard shortcuts

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