Documentation ¶
Index ¶
- func New(client fs.Fs) afero.Fs
- func NewBindPathFile(f afero.File, path string) afero.File
- func NewBindPathFs(binds map[string]afero.Fs) afero.Fs
- func NewRCloneFs(section string) afero.Fs
- func SetConfigPath(path string) error
- type BindPathFile
- type BindPathFs
- func (b *BindPathFs) Chmod(name string, mode os.FileMode) (err error)
- func (b *BindPathFs) Chown(name string, uid, gid int) (err error)
- func (b *BindPathFs) Chtimes(name string, atime, mtime time.Time) (err error)
- func (b *BindPathFs) Create(name string) (f afero.File, err error)
- func (b *BindPathFs) Mkdir(name string, mode os.FileMode) (err error)
- func (b *BindPathFs) MkdirAll(name string, mode os.FileMode) (err error)
- func (b *BindPathFs) Name() string
- func (b *BindPathFs) Open(name string) (f afero.File, err error)
- func (b *BindPathFs) OpenFile(name string, flag int, mode os.FileMode) (f afero.File, err error)
- func (b *BindPathFs) Remove(name string) (err error)
- func (b *BindPathFs) RemoveAll(name string) (err error)
- func (b *BindPathFs) Rename(oldName, newName string) (err error)
- func (b *BindPathFs) Stat(name string) (fi os.FileInfo, err error)
- type Fs
- func (s Fs) Chmod(name string, mode os.FileMode) error
- func (s Fs) Chown(name string, uid, gid int) error
- func (s Fs) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (s Fs) Create(name string) (afero.File, error)
- func (s Fs) MkdirAll(path string, perm os.FileMode) error
- func (s Fs) Name() string
- func (s Fs) Open(name string) (afero.File, error)
- func (s Fs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)
- func (s Fs) Remove(name string) error
- func (s Fs) RemoveAll(path string) error
- func (s Fs) Rename(oldname, newname string) error
- func (s Fs) Stat(name string) (os.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBindPathFile ¶
NewBindPathFile return a file with a modified file path if necessary
func NewBindPathFs ¶
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 SetConfigPath ¶
Types ¶
type BindPathFile ¶
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) Chtimes ¶
func (b *BindPathFs) Chtimes(name string, atime, mtime time.Time) (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) 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)
Click to show internal directories.
Click to hide internal directories.