ssh

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2015 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Overview

Package ssh implements a driver based on OpenSSH.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	Host        string
	SSHClient   *openssh.Client
	RsyncClient *rsync.Client
}

Driver is a driver based on SSH.

func NewDriver

func NewDriver(host string, sshOptions, rsyncOptions []string) (*Driver, error)

NewDriver creates a new SSH driver that communicates with the given host.

func (Driver) RunCommand

func (drv Driver) RunCommand(args []string) error

RunCommand runs the specified command on the host.

func (Driver) String

func (drv Driver) String() string

String returns the driver's name.

func (Driver) Upload

func (drv Driver) Upload(dst string, src ...string) error

Upload copies files to the host.

Jump to

Keyboard shortcuts

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