Documentation ¶
Index ¶
- type HConnection
- func (h *HConnection) Close()
- func (h HConnection) Filecmd(request *sftp.Request) error
- func (h HConnection) Filelist(request *sftp.Request) (sftp.ListerAt, error)
- func (h HConnection) Fileread(request *sftp.Request) (io.ReaderAt, error)
- func (h HConnection) Filewrite(request *sftp.Request) (io.WriterAt, error)
- func (h *HConnection) MkHdfsClient(conf_str string, user string, hosts string) error
- type HTransfer
- type MyConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HConnection ¶
type HConnection struct { User dataprovider.User ConnID string // contains filtered or unexported fields }
func NewHandler ¶
func NewHandler(conn MyConn, user dataprovider.User, connID string, protocol string) *HConnection
/////////////////////////////
func (*HConnection) Close ¶
func (h *HConnection) Close()
func (*HConnection) MkHdfsClient ¶
func (h *HConnection) MkHdfsClient(conf_str string, user string, hosts string) error
type HTransfer ¶
type HTransfer struct {
// contains filtered or unexported fields
}
func (*HTransfer) Close ¶
Close it is called when the transfer is completed. It closes the underlying file, log the transfer info, update the user quota, for uploads, and execute any defined actions.
Click to show internal directories.
Click to hide internal directories.