Documentation
¶
Overview ¶
Package types provides types and interfaces for FTP operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Delete(path string) error
GetEntry(p string) (*_ftp.Entry, error)
List(p string) ([]*_ftp.Entry, error) // NLST for just names
Login(user string, password string) error
MakeDir(path string) error
Quit() error
Rename(from, to string) error
RetrFrom(path string, offset uint64) (*_ftp.Response, error)
StorFrom(path string, r io.Reader, offset uint64) error
IsSetTimeSupported() bool
SetTime(path string, t time.Time) error
IsTimePreciseInList() bool
}
Client is an interface to make it easier to test
type DataConn ¶
type DataConn interface {
Mode() OpenType
Delete(path string) error
GetEntry(p string) (*_ftp.Entry, error)
List(p string) ([]*_ftp.Entry, error) // NLST for just names
MakeDir(path string) error
Rename(from, to string) error
IsSetTimeSupported() bool
SetTime(path string, t time.Time) error
IsTimePreciseInList() bool
io.ReadWriteCloser
}
DataConn represents a data connection
Click to show internal directories.
Click to hide internal directories.