Documentation
¶
Index ¶
- type Addition
- type FTPS
- func (d *FTPS) Config() driver.Config
- func (d *FTPS) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *FTPS) Drop(ctx context.Context) error
- func (d *FTPS) GetAddition() driver.Additional
- func (d *FTPS) Init(ctx context.Context) error
- func (d *FTPS) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *FTPS) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *FTPS) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error
- func (d *FTPS) Move(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *FTPS) Put(ctx context.Context, dstDir model.Obj, s model.FileStreamer, ...) error
- func (d *FTPS) Remove(ctx context.Context, obj model.Obj) error
- func (d *FTPS) 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 Addition ¶
type Addition struct {
Address string `json:"address" required:"true"`
Encoding string `json:"encoding" required:"false"`
Username string `json:"username" required:"true"`
Password string `json:"password" required:"true"`
TLSMode string `` /* 163-byte string literal not displayed */
TLSInsecureSkipVerify bool `json:"tls_insecure_skip_verify" default:"false" help:"Allow insecure TLS connections (e.g. self-signed certificates)"`
driver.RootPath
}
type FTPS ¶
func (*FTPS) GetAddition ¶
func (d *FTPS) GetAddition() driver.Additional
type FileReader ¶
type FileReader struct {
// contains filtered or unexported fields
}
func NewFileReader ¶
func NewFileReader(conn *ftp.ServerConn, path string, size int64) *FileReader
func (*FileReader) Close ¶
func (r *FileReader) Close() error
Click to show internal directories.
Click to hide internal directories.