minssh

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2017 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTerminal

func IsTerminal() (bool, error)

Types

type Config

type Config struct {
	User            string
	Host            string
	Port            int
	Logger          *log.Logger
	KnownHostsFiles []string
	IdentityFiles   []string
	Command         string
	IsSubsystem     bool
	NoTTY           bool
}

func NewConfig

func NewConfig() *Config

type MinSSH

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

func Open

func Open(conf *Config) (ms *MinSSH, err error)

func (*MinSSH) Close

func (ms *MinSSH) Close()

func (*MinSSH) Hostport

func (ms *MinSSH) Hostport() string

func (*MinSSH) Run added in v0.2.0

func (ms *MinSSH) Run() (err error)

func (*MinSSH) RunCommand added in v0.2.0

func (ms *MinSSH) RunCommand() error

func (*MinSSH) RunInteractive

func (ms *MinSSH) RunInteractive() error

func (*MinSSH) RunSubsystem added in v0.2.0

func (ms *MinSSH) RunSubsystem() error

Jump to

Keyboard shortcuts

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