rclonefs

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: MIT Imports: 15 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(client fs.Fs) afero.Fs

func NewBindPathFile

func NewBindPathFile(f afero.File, path string) afero.File

NewBindPathFile return a file with a modified file path if necessary

func NewBindPathFs

func NewBindPathFs(binds map[string]afero.Fs) afero.Fs

NewBindPathFs serve the same functionality like Linux `/etc/fstab` by bind-mounting different afero filesystem into single one Like `afero.BasePathFs` in reverse way, it remove a mount point prefix to access the underlining file

func NewRCloneFs

func NewRCloneFs(section string) afero.Fs

func SetConfigPath

func SetConfigPath(path string) error

Types

type BindPathFile

type BindPathFile struct {
	afero.File
	// contains filtered or unexported fields
}

func (*BindPathFile) Name

func (f *BindPathFile) Name() string

type BindPathFs

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

BindPathFs works very much like Linux mount bind bindPointLayer is read only filesystem which only contain bind directory hierarchical

func (*BindPathFs) Chmod

func (b *BindPathFs) Chmod(name string, mode os.FileMode) (err error)

func (*BindPathFs) Chown

func (b *BindPathFs) Chown(name string, uid, gid int) (err error)

func (*BindPathFs) Chtimes

func (b *BindPathFs) Chtimes(name string, atime, mtime time.Time) (err error)

func (*BindPathFs) Create

func (b *BindPathFs) Create(name string) (f afero.File, err error)

func (*BindPathFs) Mkdir

func (b *BindPathFs) Mkdir(name string, mode os.FileMode) (err error)

func (*BindPathFs) MkdirAll

func (b *BindPathFs) MkdirAll(name string, mode os.FileMode) (err error)

func (*BindPathFs) Name

func (b *BindPathFs) Name() string

func (*BindPathFs) Open

func (b *BindPathFs) Open(name string) (f afero.File, err error)

func (*BindPathFs) OpenFile

func (b *BindPathFs) OpenFile(name string, flag int, mode os.FileMode) (f afero.File, err error)

func (*BindPathFs) Remove

func (b *BindPathFs) Remove(name string) (err error)

func (*BindPathFs) RemoveAll

func (b *BindPathFs) RemoveAll(name string) (err error)

func (*BindPathFs) Rename

func (b *BindPathFs) Rename(oldName, newName string) (err error)

func (*BindPathFs) Stat

func (b *BindPathFs) Stat(name string) (fi os.FileInfo, err error)

type Fs

type Fs struct {
	*vfs.VFS
}

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) 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