opssh

package
v0.0.0-...-6d89281 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublicKey

func PublicKey(keyAsString string) ssh.AuthMethod

func PublicKeyFile

func PublicKeyFile(file string) ssh.AuthMethod

Types

type Ssh

type Ssh struct {
	Conn *ssh.Client
}

func NewSession

func NewSession(host, publicKey string) (*Ssh, error)

func (*Ssh) Close

func (s *Ssh) Close() error

func (*Ssh) Run

func (s *Ssh) Run(cmd string, w io.Writer) error

Jump to

Keyboard shortcuts

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