runner

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: 18 Imported by: 0

Documentation

Overview

Package runner implements the main SSH-over-WebSocket Relay logic, as defined in https://chromium.googlesource.com/apps/libapps/+/HEAD/nassh/doc/relay-protocol.md.

Notes about this implementation: * XHR support (/read, /write) is not implemented, clients MUST support secure WebSockets (WSS). * Clients MUST support at least TLS 1.2, older versions are not supported. * Client validation is not fully implemented; cookies are not signed/encrypted.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

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

Runner is the main SSH-over-WebSocket Relay connection handler.

func New

func New(cfg *pb.Config) (*Runner, error)

New instantiates a Runner with a *pb.Config.

func (*Runner) Run

func (r *Runner) Run() error

Run executes the runner, listens for incoming client connections.

Jump to

Keyboard shortcuts

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