Documentation ¶
Index ¶
- type Client
- func (client *Client) Chmod(path string, mode os.FileMode) error
- func (client *Client) Chown(path string, uid, gid int) error
- func (client *Client) Close() (errors []error)
- func (client *Client) DownFile(serverPath, destPath string) (int64, error)
- func (client *Client) DownFileWithProgress(serverPath, destPath string, transferred *int64, total *int64) (int64, error)
- func (client *Client) GetRecursively(remotePath, localPath string) error
- func (client *Client) Getwd() (string, error)
- func (client *Client) Mkdir(path string) error
- func (client *Client) MkdirAll(path string) error
- func (client *Client) PosixRename(oldname, newname string) error
- func (client *Client) PutRecursively(localPath string, remotePath string) error
- func (client *Client) Quit() (errors []error)
- func (client *Client) Remove(path string) error
- func (client *Client) RemoveDirectory(path string) error
- func (client *Client) Rename(oldname, newname string) error
- func (client *Client) UploadFile(localFilepath string, remoteFilepath string) (int64, error)
- func (client *Client) UploadFileWithProgress(localFilepath string, remoteFilepath string, transferred *int64, total *int64) (int64, error)
- type Config
- type IOReaderProgress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client Stored Client val
func (*Client) DownFileWithProgress ¶
func (client *Client) DownFileWithProgress(serverPath, destPath string, transferred *int64, total *int64) (int64, error)
DownFileWithProgress [Experimental] Get with Display Processing Bytes
func (*Client) GetRecursively ¶
GetRecursively is Recursively Download entire directories
func (*Client) Getwd ¶
Getwd returns the current working directory of the server. Operations involving relative paths will be based at this location.
func (*Client) Mkdir ¶
Mkdir creates the specified directory. An error will be returned if a file or directory with the specified path already exists, or if the directory's parent folder does not exist (the method cannot create complete paths).
func (*Client) MkdirAll ¶
MkdirAll creates a directory named path, along with any necessary parents, and returns nil, or else returns an error. If path is already a directory, MkdirAll does nothing and returns nil. If path contains a regular file, an error is returned
func (*Client) PosixRename ¶
PosixRename renames a file using the posix-rename@openssh.com extension which will replace newname if it already exists.
func (*Client) PutRecursively ¶
PutRecursively is Recursively Upload entire directories
func (*Client) Remove ¶
Remove removes the specified file or directory. An error will be returned if no file or directory with the specified path exists, or if the specified directory is not empty.
func (*Client) RemoveDirectory ¶
RemoveDirectory removes a directory path.
func (*Client) UploadFile ¶
UploadFile is Single File Upload