ftpfs

package
v3.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(addr, user, passwd string, poolSize int32) afero.Fs

Types

type File

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

func FileOpen

func FileOpen(res *puddle.Resource, name string) (*File, error)

func (*File) Close

func (f *File) Close() error

func (*File) Name

func (f *File) Name() string

func (*File) Read

func (f *File) Read(b []byte) (n int, err error)

func (*File) ReadAt

func (f *File) ReadAt(b []byte, off int64) (n int, err error)

func (*File) Readdir

func (f *File) Readdir(count int) (res []os.FileInfo, err error)

func (*File) Readdirnames

func (f *File) Readdirnames(n int) (names []string, err error)

func (*File) Seek

func (f *File) Seek(offset int64, whence int) (int64, error)

func (*File) Stat

func (f *File) Stat() (os.FileInfo, error)

func (*File) Sync

func (f *File) Sync() error

func (*File) Truncate

func (f *File) Truncate(size int64) error

func (*File) Write

func (f *File) Write(b []byte) (n int, err error)

func (*File) WriteAt

func (f *File) WriteAt(b []byte, off int64) (n int, err error)

func (*File) WriteString

func (f *File) WriteString(s string) (ret int, err error)

type FileInfo

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

func (FileInfo) IsDir

func (f FileInfo) IsDir() bool

func (FileInfo) ModTime

func (f FileInfo) ModTime() time.Time

func (FileInfo) Mode

func (f FileInfo) Mode() fs.FileMode

func (FileInfo) Name

func (f FileInfo) Name() string

func (FileInfo) Size

func (f FileInfo) Size() int64

func (FileInfo) Sys

func (f FileInfo) Sys() any

type Fs

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

Fs is an implementation of afero.Fs that utilizes functions from the ftp package.

For detailed information on any method, please refer to the documentation of the ftp package available at github.com/jlaffaye/ftp.

func (Fs) Chmod

func (s Fs) Chmod(name string, mode os.FileMode) error

func (Fs) Chown

func (s Fs) Chown(name string, uid, gid int) error

func (Fs) Chtimes

func (s Fs) Chtimes(name string, atime time.Time, mtime time.Time) error

func (Fs) Create

func (s Fs) Create(name string) (afero.File, error)

func (Fs) Mkdir

func (s Fs) Mkdir(name string, perm os.FileMode) error

func (Fs) MkdirAll

func (s Fs) MkdirAll(path string, perm os.FileMode) error

func (Fs) Name

func (s Fs) Name() string

func (Fs) Open

func (s Fs) Open(name string) (afero.File, error)

func (Fs) OpenFile

func (s Fs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)

func (Fs) Remove

func (s Fs) Remove(name string) error

func (Fs) RemoveAll

func (s Fs) RemoveAll(path string) error

func (Fs) Rename

func (s Fs) Rename(oldname, newname string) error

func (Fs) Stat

func (s Fs) Stat(name string) (os.FileInfo, error)

Jump to

Keyboard shortcuts

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