scp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents SCP client.

func NewSCPClient

func NewSCPClient(sshClient *ssh.Client) *Client

func (*Client) ReadBytes

func (cl *Client) ReadBytes(remotePath string) ([]byte, error)

ReadBytes reads from remote location.

func (*Client) WriteBytes

func (cl *Client) WriteBytes(remotePath string, content []byte) error

WriteBytes writes to remote location.

Jump to

Keyboard shortcuts

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