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, s 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addition ¶
type Addition struct {
Address string `json:"address" required:"true"`
Encoding string `json:"encoding" required:"true"`
Username string `json:"username" required:"true"`
Password string `json:"password" required:"true"`
CwdList bool `json:"cwd_list" type:"bool" default:"false" help:"enter directory before listing"`
driver.RootPath
}
Click to show internal directories.
Click to hide internal directories.