gotftp

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func NewDriver

func NewDriver(ctx context.Context, b branches.Branch) *Driver

func (*Driver) DeleteDir

func (d *Driver) DeleteDir(ctx *ftpserver.Context, p string) error

func (*Driver) DeleteFile

func (d *Driver) DeleteFile(ctx *ftpserver.Context, p string) error

func (*Driver) GetFile

func (d *Driver) GetFile(ctx *ftpserver.Context, p string, off int64) (int64, io.ReadCloser, error)

func (*Driver) ListDir

func (d *Driver) ListDir(ctx *ftpserver.Context, p string, fn func(iofs.FileInfo) error) error

func (*Driver) MakeDir

func (d *Driver) MakeDir(ctx *ftpserver.Context, p string) error

func (*Driver) PutFile

func (d *Driver) PutFile(ctx *ftpserver.Context, p string, r io.Reader, _ int64) (int64, error)

func (*Driver) Rename

func (d *Driver) Rename(ctx *ftpserver.Context, oldpath, newpath string) error

func (*Driver) Stat

func (d *Driver) Stat(ctx *ftpserver.Context, p string) (iofs.FileInfo, error)

Jump to

Keyboard shortcuts

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