sshd

package
v0.0.0-...-27d6564 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2015 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidContainerName = errors.New("login name must has the format of USERNAME.CONTAINER_NAME, where CONTAINER_NAME is the container that you want to login")
	ErrInvalidPassword      = errors.New("username or password is incorrect")
	ErrAccessDenied         = errors.New("you don't have the privileges to access the container")
)

Functions

func GenHostKey

func GenHostKey() ([]byte, error)

Types

type SSHD

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

func New

func New(addr string, db *sql.DB, ch chan<- error) (*SSHD, error)

func (*SSHD) Start

func (sshd *SSHD) Start()

type Winsize

type Winsize struct {
	Height uint16
	Width  uint16
	// contains filtered or unexported fields
}

Winsize stores the Height and Width of a terminal.

Jump to

Keyboard shortcuts

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