Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct { Host string `json:"host"` Key string `json:"key"` UserName string `json:"username"` Password string `json:"password"` KeyPassword string `json:"keyPassword"` Port int64 `json:"port"` }
Endpoint is an instance of the SFTP Connection Details
type FileTransferConfirmation ¶
type FileTransferConfirmation struct { LocalFileName string LocalPath string RemoteFileName string RemotePath string LocalSize int64 LocalHash string RemoteSize int64 TransferredHash string TransferredBytes int64 }
FileTransferConfirmation is a summmary of the transferred file
type Transport ¶
type Transport interface { SendFile(string, string) (*FileTransferConfirmation, error) SendDir(string, string) (*list.List, *list.List) ListRemoteDir(remoteDir string) error GetFile(remoteFile string, localFile string) (*FileTransferConfirmation, error) GetDir(remoteDir string, localDir string) (*list.List, *list.List) CleanDir(string) error RemoveDir(string) error RemoveFile(string) error Close() }
Transport is the accessible type for the sftp connection
Click to show internal directories.
Click to hide internal directories.