Documentation ¶
Index ¶
- Constants
- func NewFtpParameters(host string, port int, user string, pass string, keepalive bool) *ftpParameters
- func NewSftpParameters(host string, port int, user string, pass string, keepAlive bool) *sftpParameters
- type Entity
- type Ftp
- type FtpResponse
- type Permission
- type Permissions
- type SecureFtp
- type Sftps
- func (this *Sftps) Connect() (res []*FtpResponse, err error)
- func (this *Sftps) Download(local string, remote string) (res []*FtpResponse, len int64, err error)
- func (this *Sftps) List(baseDir string) (res []*FtpResponse, list string, err error)
- func (this *Sftps) Mkdir(p string) (res []*FtpResponse, err error)
- func (this *Sftps) Quit() (res *FtpResponse, err error)
- func (this *Sftps) Rename(old string, new string) (res []*FtpResponse, err error)
- func (this *Sftps) Rmdir(p string) (res []*FtpResponse, err error)
- func (this *Sftps) StringToEntities(raw string) (ents []*Entity, err error)
- func (this *Sftps) Upload(local string, remote string) (res []*FtpResponse, len int64, err error)
Constants ¶
View Source
const ( ONLINE int = 1 OFFLINE int = 2 )
View Source
const ( FTP int = 1 FTPS int = 2 SFTP int = 3 )
View Source
const ( DOWNLOAD int = 1 UPLOAD int = 2 )
View Source
const ( IMPLICIT int = 1 EXPLICIT int = 2 )
View Source
const ( // When handshake to the server TIMEOUT string = "10s" // The Keep Alive Period for an active network connection. KEEPALIVE string = "30s" )
View Source
const (
NONE int = 0
)
Variables ¶
This section is empty.
Functions ¶
func NewFtpParameters ¶
Types ¶
type FtpResponse ¶
type FtpResponse struct {
// contains filtered or unexported fields
}
type Permission ¶
type Permissions ¶
type Permissions struct { Type string Sticky bool SUID bool SGID bool Owner *Permission Group *Permission Users *Permission }
type Sftps ¶
type Sftps struct {
// contains filtered or unexported fields
}
func (*Sftps) Connect ¶
func (this *Sftps) Connect() (res []*FtpResponse, err error)
func (*Sftps) List ¶
func (this *Sftps) List(baseDir string) (res []*FtpResponse, list string, err error)
func (*Sftps) Quit ¶
func (this *Sftps) Quit() (res *FtpResponse, err error)
func (*Sftps) Rename ¶
func (this *Sftps) Rename(old string, new string) (res []*FtpResponse, err error)
func (*Sftps) StringToEntities ¶
Click to show internal directories.
Click to hide internal directories.