scp

package
v0.0.0-...-7bcb550 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecureCopier

type SecureCopier struct {
	RemoteUser     string
	RemoteAddress  string
	RemotePort     string
	PrivateKeyPath string
	SSHAgent       *agent.Keyring
}

func NewSecureCopier

func NewSecureCopier(remoteUser, remoteAddress, remotePort, privateKeyPath string, sshAgent *agent.Keyring) *SecureCopier

func (*SecureCopier) ReadBytes

func (s *SecureCopier) ReadBytes(remotePath string) ([]byte, error)

func (*SecureCopier) Write

func (s *SecureCopier) Write(localPath, remotePath string) error

Jump to

Keyboard shortcuts

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