Versions in this module Expand all Collapse all v1 v1.0.0 Feb 24, 2022 Changes in this version + type Fd struct + func (fd *Fd) Fallocate(mode int, offset int64, len int64) error + func (fd *Fd) Fchmod(mode uint32) error + func (fd *Fd) Fgetxattr(attr string, dest []byte) (int64, error) + func (fd *Fd) Fremovexattr(attr string) error + func (fd *Fd) Fsetxattr(attr string, data []byte, flags int) error + func (fd *Fd) Fstat(stat *syscall.Stat_t) error + func (fd *Fd) Fsync() error + func (fd *Fd) Ftruncate(size int64) error + func (fd *Fd) Pread(b []byte, off int64) (int, error) + func (fd *Fd) Pwrite(b []byte, off int64) (int, error) + func (fd *Fd) Read(b []byte) (n int, err error) + func (fd *Fd) Readdir(n int) ([]os.FileInfo, error) + func (fd *Fd) Readdirnames(n int) ([]string, error) + func (fd *Fd) Write(b []byte) (n int, err error) + type File struct + func (f *File) Chdir() error + func (f *File) Chmod(mode os.FileMode) error + func (f *File) Chown(uid, gid int) error + func (f *File) Close() error + func (f *File) Fallocate(mode int, offset int64, len int64) error + func (f *File) Getxattr(attr string, dest []byte) (int64, error) + func (f *File) Name() string + func (f *File) Read(b []byte) (n int, err error) + func (f *File) ReadAt(b []byte, off int64) (int, error) + func (f *File) Readdir(n int) ([]os.FileInfo, error) + func (f *File) Readdirnames(n int) ([]string, error) + func (f *File) Removexattr(attr string) error + func (f *File) Seek(offset int64, whence int) (int64, error) + func (f *File) Setxattr(attr string, data []byte, flags int) error + func (f *File) Stat() (os.FileInfo, error) + func (f *File) Sync() error + func (f *File) Truncate(size int64) error + func (f *File) Write(b []byte) (n int, err error) + func (f *File) WriteAt(b []byte, off int64) (int, error) + func (f *File) WriteString(s string) (int, error) + type LogLevel int + const LogAlert + const LogCritical + const LogDebug + const LogEmerg + const LogError + const LogInfo + const LogNone + const LogNotice + const LogTrace + const LogWarning + type Statvfs_t struct — linux/amd64 + Bavail uint64 + Bfree uint64 + Blocks uint64 + Bsize uint64 + Favail uint64 + Ffree uint64 + Files uint64 + Flag uint64 + Frsize uint64 + Fsid uint64 + Namemax uint64 + X__f_spare [6]int32 + type Volume struct + func (v *Volume) Chmod(name string, mode os.FileMode) error + func (v *Volume) Create(name string) (*File, error) + func (v *Volume) Getxattr(path string, attr string, dest []byte) (int64, error) + func (v *Volume) Init(volname string, hosts ...string) error + func (v *Volume) InitWithVolfile(volname, volfile string) int + func (v *Volume) Lstat(name string) (os.FileInfo, error) + func (v *Volume) Mkdir(name string, perm os.FileMode) error + func (v *Volume) MkdirAll(path string, perm os.FileMode) error + func (v *Volume) Mount() error + func (v *Volume) Open(name string) (*File, error) + func (v *Volume) OpenFile(name string, flags int, perm os.FileMode) (*File, error) + func (v *Volume) Removexattr(path string, attr string) error + func (v *Volume) Rename(oldpath string, newpath string) error + func (v *Volume) Rmdir(path string) error + func (v *Volume) SetLogging(name string, logLevel LogLevel) error + func (v *Volume) Setxattr(path string, attr string, data []byte, flags int) error + func (v *Volume) Stat(name string) (os.FileInfo, error) + func (v *Volume) Statvfs(path string, buf *Statvfs_t) error + func (v *Volume) Truncate(name string, size int64) error + func (v *Volume) Unlink(path string) error + func (v *Volume) Unmount() error