sftpc

package
v0.0.0-...-35dc932 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: Apache-2.0 Imports: 3 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 {
	User     string
	Password string
	Host     string
	Port     int
	// contains filtered or unexported fields
}

func NewClient

func NewClient(user string, password string, host string, port int) (*Client, error)

func (*Client) Close

func (s *Client) Close() error

func (*Client) Connect

func (s *Client) Connect() error

func (*Client) ExecCommand

func (s *Client) ExecCommand(session *ssh.Session, cmd string) (string, error)

Jump to

Keyboard shortcuts

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