Documentation ¶
Index ¶
- Constants
- type IFtp
- type TConnStruct
- type TEntry
- type TFtp
- func (o *TFtp) Delete(path string) error
- func (o *TFtp) Exists(path string) error
- func (o *TFtp) FileSize(path string) (int64, error)
- func (o *TFtp) List(path string) ([]TEntry, error)
- func (o *TFtp) Quit() error
- func (o *TFtp) Rename(from, to string) error
- func (o *TFtp) StorFrom(path string, r io.Reader, offset uint64) error
- type TSftp
- func (o *TSftp) Delete(path string) error
- func (o *TSftp) Exists(path string) error
- func (o *TSftp) FileSize(path string) (int64, error)
- func (o *TSftp) List(path string) ([]TEntry, error)
- func (o *TSftp) Quit() error
- func (o *TSftp) Rename(from, to string) error
- func (o *TSftp) StorFrom(path string, r io.Reader, offset uint64) error
Constants ¶
View Source
const ( File = iota Folder Unknown )
-
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IFtp ¶
type IFtp interface { //Close() FileSize(path string) (int64, error) Exists(path string) error Delete(path string) error Rename(from, to string) error StorFrom(path string, r io.Reader, offset uint64) error // ChangeDir(dir string) error // CurrentDir() (string, error) List(path string) ([]TEntry, error) Quit() error }
IFtp -
type TConnStruct ¶
type TConnStruct struct {
Proto, Username, Password, Host, Path, Port string
}
TConnStruct -
func ParseConnString ¶
func ParseConnString(conn string) (*TConnStruct, error)
ParseConnString - conn: user:pswd@proto://host/path:port proto - currently ftp or sftp only all fields are necessary
Click to show internal directories.
Click to hide internal directories.