bzsftp

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 8 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
}

func New

func New(host string, port int, user, password string, opts ...Option) (*Client, error)

func (*Client) Download

func (c *Client) Download(srcPath, dstPath string) error

func (*Client) RunShell

func (c *Client) RunShell(shell string) (string, error)

func (*Client) Upload

func (c *Client) Upload(srcPath, dstPath string, bufSizes ...int) error

type Option

type Option func(c *Client) *Client

func WithSSHTimeout

func WithSSHTimeout(timeout time.Duration) Option

Jump to

Keyboard shortcuts

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