Documentation ¶
Index ¶
- Constants
- type IFtp
- type TConnStruct
- type TEntry
- type TFtp
- func (o *TFtp) ChangeDir(dir string) error
- func (o *TFtp) ChangeDirToParent() error
- func (o *TFtp) CurrentDir() (string, error)
- 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) RetrFrom(path string, w io.Writer, offset uint64) error
- func (o *TFtp) StorFrom(path string, r io.Reader, offset uint64) error
- type TSftp
- func (o *TSftp) ChangeDir(dir string) error
- func (o *TSftp) ChangeDirToParent() error
- func (o *TSftp) CurrentDir() (string, error)
- 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) RetrFrom(path string, w io.Writer, offset uint64) 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 RetrFrom(path string, w io.Writer, offset uint64) error ChangeDir(dir string) error ChangeDirToParent() 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 -
type TFtp ¶
type TFtp struct {
// contains filtered or unexported fields
}
TFtp -
Click to show internal directories.
Click to hide internal directories.