sftpc

package
v8.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: GPL-3.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