Documentation
¶
Index ¶
- type RemoteClient
- func (c *RemoteClient) Chtimes(path string, atime time.Time, mtime time.Time) error
- func (c *RemoteClient) Client() *sftp.Client
- func (c *RemoteClient) Close() error
- func (c *RemoteClient) CompareFile(remoteFilePath, localFilePath string) bool
- func (c *RemoteClient) DownloadFile(remoteFilePath string, localFilePath string) error
- func (c *RemoteClient) FileExistsOnRemote(remoteFilePath string) bool
- func (c *RemoteClient) MakeRemoteDir(remoteDirPath string) error
- func (c *RemoteClient) ReadDir(remotePath string) ([]os.FileInfo, error)
- func (c *RemoteClient) RemoveRemoteFile(remoteFilePath string) error
- func (c *RemoteClient) RenameRemoteFile(oldRemoteFilePath, newRemoteFilePath string) error
- func (c *RemoteClient) Stat(remotePath string) (os.FileInfo, error)
- func (c *RemoteClient) UploadFile(localFilePath, remoteFilePath string) error
- func (c *RemoteClient) WalkDir(path string, getDir bool) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RemoteClient ¶
type RemoteClient struct {
// contains filtered or unexported fields
}
func NewSftpConnect ¶
func (*RemoteClient) Client ¶ added in v0.2.5
func (c *RemoteClient) Client() *sftp.Client
func (*RemoteClient) Close ¶ added in v0.2.5
func (c *RemoteClient) Close() error
func (*RemoteClient) CompareFile ¶
func (c *RemoteClient) CompareFile(remoteFilePath, localFilePath string) bool
func (*RemoteClient) DownloadFile ¶
func (c *RemoteClient) DownloadFile(remoteFilePath string, localFilePath string) error
func (*RemoteClient) FileExistsOnRemote ¶ added in v0.2.5
func (c *RemoteClient) FileExistsOnRemote(remoteFilePath string) bool
func (*RemoteClient) MakeRemoteDir ¶ added in v0.2.5
func (c *RemoteClient) MakeRemoteDir(remoteDirPath string) error
func (*RemoteClient) ReadDir ¶
func (c *RemoteClient) ReadDir(remotePath string) ([]os.FileInfo, error)
func (*RemoteClient) RemoveRemoteFile ¶ added in v0.2.5
func (c *RemoteClient) RemoveRemoteFile(remoteFilePath string) error
func (*RemoteClient) RenameRemoteFile ¶ added in v0.2.5
func (c *RemoteClient) RenameRemoteFile(oldRemoteFilePath, newRemoteFilePath string) error
func (*RemoteClient) UploadFile ¶ added in v0.2.5
func (c *RemoteClient) UploadFile(localFilePath, remoteFilePath string) error
Click to show internal directories.
Click to hide internal directories.