ftps

package
v3.59.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2026 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

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

type FTPS struct {
	model.Storage
	Addition
	// contains filtered or unexported fields
}

func (*FTPS) Config

func (d *FTPS) Config() driver.Config

func (*FTPS) Copy

func (d *FTPS) Copy(ctx context.Context, srcObj, dstDir model.Obj) error

func (*FTPS) Drop

func (d *FTPS) Drop(ctx context.Context) error

func (*FTPS) GetAddition

func (d *FTPS) GetAddition() driver.Additional

func (*FTPS) Init

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 (*FTPS) List

func (d *FTPS) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)

func (*FTPS) MakeDir

func (d *FTPS) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error

func (*FTPS) Move

func (d *FTPS) Move(ctx context.Context, srcObj, dstDir model.Obj) error

func (*FTPS) Put

func (*FTPS) Remove

func (d *FTPS) Remove(ctx context.Context, obj model.Obj) error

func (*FTPS) Rename

func (d *FTPS) Rename(ctx context.Context, srcObj model.Obj, newName string) error

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

func (*FileReader) Read

func (r *FileReader) Read(buf []byte) (n int, err error)

func (*FileReader) ReadAt

func (r *FileReader) ReadAt(buf []byte, off int64) (n int, err error)

func (*FileReader) Seek

func (r *FileReader) Seek(offset int64, whence int) (int64, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL