client

package
v0.2.4-0...-bb5b233 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2017 License: MIT Imports: 11 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 {
	Username string
	Password string
	Host     string
	Port     int
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) Connect

func (bc *Client) Connect(host string, port int) error

func (*Client) Exec

func (bc *Client) Exec(cmd string, retry int) (string, error)

func (*Client) Login

func (bc *Client) Login(username, password string) error

func (Client) ReadBytes

func (bc Client) ReadBytes(db, remotefile, localfile string) error

func (Client) WriteBytes

func (bc Client) WriteBytes(db, remotefile, localfile string) error

type Response

type Response struct {
	Status  string
	Message string `json:"msg"`
	Data    json.RawMessage
}

Jump to

Keyboard shortcuts

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