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 is the sftp client
func NewClient ¶
func NewClient(config ClientConfig) (c *Client, err error)
func (*Client) DownloadFile ¶
Download file from sftp server
func (*Client) UploadFile ¶
UploadFile Upload file to sftp server
type ClientConfig ¶
type ClientConfig struct { User string // User name Password string // Password Host string // Hostname or IP address Port int // Default SFTP port, 22 if not provided IgnoreHostKeyValidation bool // If false, host key validation is enabled. It should be false for production use. }
ClientConfig is the configuration for the sftp client
Click to show internal directories.
Click to hide internal directories.