Documentation
¶
Index ¶
- Variables
- func ChangeFTPDirectory(conn *ftp.ServerConn, directory string) error
- func ConnectFTP(addr, username, password string) (*ftp.ServerConn, error)
- func CreateDir(name string, dir string)
- func DownloadFTPFile(conn *ftp.ServerConn, fileName string, fileSize int64) error
- func IsDirectory(entry *ftp.Entry) bool
- func IsFile(entry *ftp.Entry) bool
- func IsInfoFileEmpty() (bool, error)
- func ListFTPEntries(conn *ftp.ServerConn) ([]*ftp.Entry, error)
- func PrintFTPEntries(entries []*ftp.Entry)
- func ReadCredentials() (host, uname, pass string)
- func SaveCredentials(host, uname, pass string)
Constants ¶
This section is empty.
Variables ¶
View Source
var PassWord = &survey.Password{Message: "Enter pass?"}
Functions ¶
func ChangeFTPDirectory ¶
func ChangeFTPDirectory(conn *ftp.ServerConn, directory string) error
func ConnectFTP ¶
func ConnectFTP(addr, username, password string) (*ftp.ServerConn, error)
func DownloadFTPFile ¶
func DownloadFTPFile(conn *ftp.ServerConn, fileName string, fileSize int64) error
func IsDirectory ¶
func IsInfoFileEmpty ¶
func ListFTPEntries ¶
func ListFTPEntries(conn *ftp.ServerConn) ([]*ftp.Entry, error)
func PrintFTPEntries ¶
func ReadCredentials ¶
func ReadCredentials() (host, uname, pass string)
func SaveCredentials ¶
func SaveCredentials(host, uname, pass string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.