Documentation ¶
Index ¶
- Constants
- func StatusText(code int) string
- type Cfg
- type Client
- func (c *Client) ChangeDir(path string) error
- func (c *Client) Close() error
- func (c *Client) CurrentDir() (string, error)
- func (c *Client) Delete(path string) error
- func (c *Client) DirExists(path string) (bool, error)
- func (c *Client) Init() error
- func (c *Client) List(path string) ([]*Entry, error)
- func (c *Client) Mkdir(name string) error
- func (c *Client) MkdirRecur(path string) error
- func (c *Client) NameList(path string) ([]string, error)
- func (c *Client) Quit() error
- func (c *Client) RawCmd(format string, args ...interface{}) (int, string, error)
- func (c *Client) TransType(typ string) error
- type Entry
- type EntryType
- type Reader
- type Response
- type Writer
Constants ¶
View Source
const ( StatusInitiating = 100 StatusRestartMarker = 110 StatusReadyMinute = 120 StatusAlreadyOpen = 125 StatusAboutToSend = 150 StatusCommandOK = 200 StatusCommandNotImplemented = 202 StatusSystem = 211 StatusDirectory = 212 StatusFile = 213 StatusHelp = 214 StatusName = 215 StatusReady = 220 StatusClosing = 221 StatusDataConnectionOpen = 225 StatusClosingDataConnection = 226 StatusPassiveMode = 227 StatusLongPassiveMode = 228 StatusExtendedPassiveMode = 229 StatusLoggedIn = 230 StatusLoggedOut = 231 StatusLogoutAck = 232 StatusAuthOK = 234 StatusRequestedFileActionOK = 250 StatusPathCreated = 257 StatusUserOK = 331 StatusLoginNeedAccount = 332 StatusRequestFilePending = 350 StatusNotAvailable = 421 StatusCanNotOpenDataConnection = 425 StatusTransfertAborted = 426 StatusInvalidCredentials = 430 StatusFileActionIgnored = 450 StatusActionAborted = 451 Status452 = 452 StatusBadCommand = 500 StatusBadArguments = 501 StatusNotImplemented = 502 StatusBadSequence = 503 StatusNotImplementedParameter = 504 StatusNotLoggedIn = 530 StatusStorNeedAccount = 532 StatusPageTypeUnknown = 551 StatusExceededStorage = 552 StatusBadFileName = 553 )
Variables ¶
This section is empty.
Functions ¶
func StatusText ¶
StatusText returns a text for the FTP status code. It returns the empty string if the code is unknown.
Types ¶
type Cfg ¶
type Client ¶
type Client struct { *Cfg // contains filtered or unexported fields }
func (*Client) CurrentDir ¶
func (*Client) MkdirRecur ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.