Documentation
¶
Index ¶
- Variables
- type Client
- type FS
- func (f *FS) Billy() billy.Filesystem
- func (f *FS) Chroot(path string) (billy.Filesystem, error)
- func (*FS) Create(filename string) (billy.File, error)
- func (*FS) Join(elem ...string) string
- func (f *FS) MkdirAll(filename string, perm fs.FileMode) error
- func (*FS) Open(filename string) (billy.File, error)
- func (*FS) OpenFile(filename string, flag int, perm fs.FileMode) (billy.File, error)
- func (f *FS) ReadDir(path string) ([]fs.FileInfo, error)
- func (*FS) Remove(filename string) error
- func (*FS) Rename(oldpath string, newpath string) error
- func (*FS) Root() string
- func (*FS) Stat(filename string) (fs.FileInfo, error)
- type File
- func (f *File) Close() error
- func (*File) Lock() error
- func (f *File) Read(p []byte) (n int, err error)
- func (*File) ReadAt(p []byte, off int64) (n int, err error)
- func (f *File) Seek(offset int64, whence int) (int64, error)
- func (*File) Truncate(size int64) error
- func (*File) Unlock() error
- func (*File) Write(p []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrConcurrentReadWrite = errors.New("concurrent read/write not supported") ErrSeekOpenFile = errors.New("cannot seek on open file") )
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
func (*FS) Billy ¶
func (f *FS) Billy() billy.Filesystem
Billy returns a billy.Filesystem for the given bucket. This automatically polyfills any missing interfaces.
func (*FS) Chroot ¶
func (f *FS) Chroot(path string) (billy.Filesystem, error)
Chroot returns a new filesystem rooted at the given path.
Click to show internal directories.
Click to hide internal directories.