Documentation ¶
Index ¶
- type Addition
- type FTP
- func (d *FTP) Config() driver.Config
- func (d *FTP) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *FTP) Drop(ctx context.Context) error
- func (d *FTP) GetAddition() driver.Additional
- func (d *FTP) Init(ctx context.Context) error
- func (d *FTP) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *FTP) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *FTP) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error
- func (d *FTP) Move(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *FTP) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) error
- func (d *FTP) Remove(ctx context.Context, obj model.Obj) error
- func (d *FTP) Rename(ctx context.Context, srcObj model.Obj, newName string) error
- type FileReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FTP ¶
func (*FTP) GetAddition ¶
func (d *FTP) GetAddition() driver.Additional
type FileReader ¶ added in v3.27.0
type FileReader struct {
// contains filtered or unexported fields
}
FileReader An FTP file reader that implements io.MFile for seeking.
func NewFileReader ¶ added in v3.27.0
func NewFileReader(conn *ftp.ServerConn, path string, size int64) *FileReader
func (*FileReader) Close ¶ added in v3.27.0
func (r *FileReader) Close() error
Click to show internal directories.
Click to hide internal directories.