Source File
	request-errors.go
Belonging Package
	github.com/pkg/sftp
package sftptype fxerr uint32// Error types that match the SFTP's SSH_FXP_STATUS codes. Gives you more// direct control of the errors being sent vs. letting the library work them// out from the standard os/io errors.const (ErrSSHFxOk = fxerr(sshFxOk)ErrSSHFxEOF = fxerr(sshFxEOF)ErrSSHFxNoSuchFile = fxerr(sshFxNoSuchFile)ErrSSHFxPermissionDenied = fxerr(sshFxPermissionDenied)ErrSSHFxFailure = fxerr(sshFxFailure)ErrSSHFxBadMessage = fxerr(sshFxBadMessage)ErrSSHFxNoConnection = fxerr(sshFxNoConnection)ErrSSHFxConnectionLost = fxerr(sshFxConnectionLost)ErrSSHFxOpUnsupported = fxerr(sshFxOPUnsupported))// Deprecated error types, these are aliases for the new ones, please use the new ones directlyconst (ErrSshFxOk = ErrSSHFxOkErrSshFxEof = ErrSSHFxEOFErrSshFxNoSuchFile = ErrSSHFxNoSuchFileErrSshFxPermissionDenied = ErrSSHFxPermissionDeniedErrSshFxFailure = ErrSSHFxFailureErrSshFxBadMessage = ErrSSHFxBadMessageErrSshFxNoConnection = ErrSSHFxNoConnectionErrSshFxConnectionLost = ErrSSHFxConnectionLostErrSshFxOpUnsupported = ErrSSHFxOpUnsupported)func ( fxerr) () string {switch {case ErrSSHFxOk:return "OK"case ErrSSHFxEOF:return "EOF"case ErrSSHFxNoSuchFile:return "no such file"case ErrSSHFxPermissionDenied:return "permission denied"case ErrSSHFxBadMessage:return "bad message"case ErrSSHFxNoConnection:return "no connection"case ErrSSHFxConnectionLost:return "connection lost"case ErrSSHFxOpUnsupported:return "operation unsupported"default:return "failure"}}
|  | The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |