core

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2016 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SSHAgent

func SSHAgent() ssh.AuthMethod

Types

type Addr

type Addr struct {
	net.Addr
}

func MustResolveAddr

func MustResolveAddr(network, address string) *Addr

func (*Addr) Address

func (a *Addr) Address() string

func (*Addr) Port

func (a *Addr) Port() string

type Listener

type Listener struct {
	Handler     ListenerHandler
	Connections int32
	// contains filtered or unexported fields
}

func NewListener

func NewListener(a net.Addr) *Listener

func (*Listener) Close

func (l *Listener) Close() error

func (*Listener) Start

func (l *Listener) Start() error

func (*Listener) String

func (l *Listener) String() string

type ListenerHandler

type ListenerHandler func(net.Conn) error

type Passage

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

func NewPassage

func NewPassage(c SSHConnection, r Remote) *Passage

func (*Passage) Addr

func (p *Passage) Addr() string

func (*Passage) Close

func (p *Passage) Close() error

func (*Passage) Start

func (p *Passage) Start(a net.Addr) error

func (*Passage) String

func (p *Passage) String() string

type Remote

type Remote interface {
	Addr(SSHConnection) (net.Addr, error)
	fmt.Stringer
}

func NewContainerRemote

func NewContainerRemote(network, container, port string) Remote

func NewRemote

func NewRemote(network, address string) Remote

type SSHConnection

type SSHConnection interface {
	Tunnel(c net.Conn, a net.Addr) error
	Conn(a net.Addr) (net.Conn, error)
	fmt.Stringer
}

func NewSSHConnection

func NewSSHConnection(a net.Addr, c *ssh.ClientConfig) SSHConnection

Jump to

Keyboard shortcuts

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