Documentation ¶
Index ¶
- func IsExist(err error) bool
- func IsNotEmpty(err error) bool
- func IsNotExist(err error) bool
- type Attr
- type File
- func (f *File) Chmod(ctx meta.Context, mode uint16) (err syscall.Errno)
- func (f *File) Chown(ctx meta.Context, uid uint32, gid uint32) (err syscall.Errno)
- func (f *File) Close(ctx meta.Context) (err syscall.Errno)
- func (f *File) FS() *FileSystem
- func (f *File) Flush(ctx meta.Context) (err syscall.Errno)
- func (f *File) Fsync(ctx meta.Context) (err syscall.Errno)
- func (f *File) Inode() Ino
- func (f *File) Name() string
- func (f *File) Pread(ctx meta.Context, b []byte, offset int64) (n int, err error)
- func (f *File) Pwrite(ctx meta.Context, b []byte, offset int64) (n int, err syscall.Errno)
- func (f *File) Read(ctx meta.Context, b []byte) (n int, err error)
- func (f *File) Readdir(ctx meta.Context, count int) (fi []os.FileInfo, err syscall.Errno)
- func (f *File) ReaddirPlus(ctx meta.Context, offset int) (entries []*meta.Entry, err syscall.Errno)
- func (f *File) Seek(ctx meta.Context, offset int64, whence int) (int64, error)
- func (f *File) Stat() (fi os.FileInfo, err error)
- func (f *File) Summary(ctx meta.Context, depth uint8, maxentries uint32) (s *meta.Summary, err syscall.Errno)
- func (f *File) Utime(ctx meta.Context, atime, mtime int64) (err syscall.Errno)
- func (f *File) Write(ctx meta.Context, b []byte) (n int, err syscall.Errno)
- type FileStat
- func (fs *FileStat) Atime() int64
- func (fs *FileStat) Gid() int
- func (fs *FileStat) Inode() Ino
- func (fs *FileStat) IsDir() bool
- func (fs *FileStat) IsSymlink() bool
- func (fs *FileStat) ModTime() time.Time
- func (fs *FileStat) Mode() os.FileMode
- func (fs *FileStat) Mtime() int64
- func (fs *FileStat) Name() string
- func (fs *FileStat) Size() int64
- func (fs *FileStat) Sys() interface{}
- func (fs *FileStat) Uid() int
- type FileSystem
- func (fs *FileSystem) Access(ctx meta.Context, path string, flags int) (err syscall.Errno)
- func (fs *FileSystem) Close() error
- func (fs *FileSystem) CopyFileRange(ctx meta.Context, src string, soff uint64, dst string, doff uint64, ...) (written uint64, err syscall.Errno)
- func (fs *FileSystem) Create(ctx meta.Context, p string, mode uint16) (f *File, err syscall.Errno)
- func (fs *FileSystem) Delete(ctx meta.Context, p string) (err syscall.Errno)
- func (fs *FileSystem) Flush() error
- func (fs *FileSystem) GetXattr(ctx meta.Context, p string, name string) (result []byte, err syscall.Errno)
- func (fs *FileSystem) ListXattr(ctx meta.Context, p string) (names []byte, err syscall.Errno)
- func (fs *FileSystem) Meta() meta.Meta
- func (fs *FileSystem) Mkdir(ctx meta.Context, p string, mode uint16) (err syscall.Errno)
- func (fs *FileSystem) Open(ctx meta.Context, path string, flags uint32) (f *File, err syscall.Errno)
- func (fs *FileSystem) Readlink(ctx meta.Context, link string) (path []byte, err syscall.Errno)
- func (fs *FileSystem) RemoveXattr(ctx meta.Context, p string, name string) (err syscall.Errno)
- func (fs *FileSystem) Rename(ctx meta.Context, oldpath string, newpath string, flags uint32) (err syscall.Errno)
- func (fs *FileSystem) Rmr(ctx meta.Context, p string) (err syscall.Errno)
- func (fs *FileSystem) SetXattr(ctx meta.Context, p string, name string, value []byte, flags uint32) (err syscall.Errno)
- func (fs *FileSystem) Stat(ctx meta.Context, path string) (fi *FileStat, err syscall.Errno)
- func (fs *FileSystem) StatFS(ctx meta.Context) (totalspace uint64, availspace uint64)
- func (fs *FileSystem) Symlink(ctx meta.Context, target string, link string) (err syscall.Errno)
- func (fs *FileSystem) Truncate(ctx meta.Context, path string, length uint64) (err syscall.Errno)
- type Ino
- type LogContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotEmpty ¶
func IsNotExist ¶
Types ¶
type File ¶
func (*File) FS ¶
func (f *File) FS() *FileSystem
func (*File) ReaddirPlus ¶
type FileStat ¶
type FileStat struct {
// contains filtered or unexported fields
}
func AttrToFileInfo ¶
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
func NewFileSystem ¶
func NewFileSystem(conf *vfs.Config, m meta.Meta, d chunk.ChunkStore) (*FileSystem, error)
func (*FileSystem) Close ¶
func (fs *FileSystem) Close() error
func (*FileSystem) CopyFileRange ¶
func (*FileSystem) Flush ¶
func (fs *FileSystem) Flush() error
func (*FileSystem) Meta ¶
func (fs *FileSystem) Meta() meta.Meta
func (*FileSystem) RemoveXattr ¶
func (*FileSystem) StatFS ¶
func (fs *FileSystem) StatFS(ctx meta.Context) (totalspace uint64, availspace uint64)
type LogContext ¶
type LogContext = vfs.LogContext
Click to show internal directories.
Click to hide internal directories.