Versions in this module Expand all Collapse all v0 v0.14.2 Feb 24, 2022 v0.14.1 Feb 24, 2022 Changes in this version + const AtNoAttrSync + const AtSymlinkNofollow + const DTypeBlk + const DTypeChr + const DTypeDir + const DTypeFIFO + const DTypeLnk + const DTypeReg + const DTypeSock + const DTypeUnknown + const ErrNotConnected + const FallocFlKeepSize + const FallocFlPunchHole + const FallocNoFlag + const LockEX + const LockNB + const LockSH + const LockUN + const SeekCur + const SeekEnd + const SeekSet + const StatxAllStats + const StatxAtime + const StatxBasicStats + const StatxBlocks + const StatxBtime + const StatxIno + const StatxMode + const StatxMtime + const StatxNlink + const StatxRdev + const StatxSize + const StatxUid + const StatxVersion + const SyncAll + const SyncDataOnly + const XattrCreate + const XattrDefault + const XattrReplace + var ErrEmptyArgument = errors.New("Argument must contain at least one item") + func Version() (int, int, int) + type AtFlags uint + type CephStatVFS struct + Bavail uint64 + Bfree uint64 + Blocks uint64 + Bsize int64 + Favail uint64 + Ffree uint64 + Files uint64 + Flag int64 + Frsize int64 + Fsid int64 + Namemax int64 + type CephStatx struct + Atime Timespec + Blksize uint32 + Blocks uint64 + Btime Timespec + Ctime Timespec + Dev uint64 + Gid uint32 + Inode Inode + Mask StatxMask + Mode uint16 + Mtime Timespec + Nlink uint32 + Rdev uint64 + Size uint64 + Uid uint32 + Version uint64 + type DType uint8 + type DirEntry struct + func (d *DirEntry) DType() DType + func (d *DirEntry) Inode() Inode + func (d *DirEntry) Name() string + type DirEntryPlus struct + func (d *DirEntryPlus) Statx() *CephStatx + type Directory struct + func (dir *Directory) Close() error + func (dir *Directory) ReadDir() (*DirEntry, error) + func (dir *Directory) ReadDirPlus(want StatxMask, flags AtFlags) (*DirEntryPlus, error) + func (dir *Directory) RewindDir() + type FallocFlags int + type File struct + func (f *File) Close() error + func (f *File) Fallocate(mode FallocFlags, offset, length int64) error + func (f *File) Fchmod(mode uint32) error + func (f *File) Fchown(user uint32, group uint32) error + func (f *File) Flock(operation LockOp, owner uint64) error + func (f *File) Fstatx(want StatxMask, flags AtFlags) (*CephStatx, error) + func (f *File) Fsync(sync SyncChoice) error + func (f *File) GetXattr(name string) ([]byte, error) + func (f *File) ListXattr() ([]string, error) + func (f *File) Preadv(data [][]byte, offset int64) (int, error) + func (f *File) Pwritev(data [][]byte, offset int64) (int, error) + func (f *File) Read(buf []byte) (int, error) + func (f *File) ReadAt(buf []byte, offset int64) (int, error) + func (f *File) RemoveXattr(name string) error + func (f *File) Seek(offset int64, whence int) (int64, error) + func (f *File) SetXattr(name string, value []byte, flags XattrFlags) error + func (f *File) Sync() error + func (f *File) Truncate(size int64) error + func (f *File) Write(buf []byte) (int, error) + func (f *File) WriteAt(buf []byte, offset int64) (int, error) + type Inode uint64 + type LockOp int + type MountInfo struct + func CreateFromRados(conn *rados.Conn) (*MountInfo, error) + func CreateMount() (*MountInfo, error) + func CreateMountWithId(id string) (*MountInfo, error) + func (mount *MountInfo) ChangeDir(path string) error + func (mount *MountInfo) Chmod(path string, mode uint32) error + func (mount *MountInfo) Chown(path string, user uint32, group uint32) error + func (mount *MountInfo) CurrentDir() string + func (mount *MountInfo) GetConfigOption(option string) (string, error) + func (mount *MountInfo) GetFsCid() (int64, error) + func (mount *MountInfo) GetXattr(path, name string) ([]byte, error) + func (mount *MountInfo) Init() error + func (mount *MountInfo) IsMounted() bool + func (mount *MountInfo) Lchown(path string, user uint32, group uint32) error + func (mount *MountInfo) LgetXattr(path, name string) ([]byte, error) + func (mount *MountInfo) Link(oldname, newname string) error + func (mount *MountInfo) ListXattr(path string) ([]string, error) + func (mount *MountInfo) LlistXattr(path string) ([]string, error) + func (mount *MountInfo) LremoveXattr(path, name string) error + func (mount *MountInfo) LsetXattr(path, name string, value []byte, flags XattrFlags) error + func (mount *MountInfo) MakeDir(path string, mode uint32) error + func (mount *MountInfo) MdsCommand(mdsSpec string, args [][]byte) ([]byte, string, error) + func (mount *MountInfo) MdsCommandWithInputBuffer(mdsSpec string, args [][]byte, inputBuffer []byte) ([]byte, string, error) + func (mount *MountInfo) Mount() error + func (mount *MountInfo) MountWithRoot(root string) error + func (mount *MountInfo) Open(path string, flags int, mode uint32) (*File, error) + func (mount *MountInfo) OpenDir(path string) (*Directory, error) + func (mount *MountInfo) ParseConfigArgv(argv []string) error + func (mount *MountInfo) ParseDefaultConfigEnv() error + func (mount *MountInfo) ReadConfigFile(path string) error + func (mount *MountInfo) ReadDefaultConfigFile() error + func (mount *MountInfo) Readlink(path string) (string, error) + func (mount *MountInfo) Release() error + func (mount *MountInfo) RemoveDir(path string) error + func (mount *MountInfo) RemoveXattr(path, name string) error + func (mount *MountInfo) Rename(from, to string) error + func (mount *MountInfo) SetConfigOption(option, value string) error + func (mount *MountInfo) SetMountPerms(perm *UserPerm) error + func (mount *MountInfo) SetXattr(path, name string, value []byte, flags XattrFlags) error + func (mount *MountInfo) StatFS(path string) (*CephStatVFS, error) + func (mount *MountInfo) Statx(path string, want StatxMask, flags AtFlags) (*CephStatx, error) + func (mount *MountInfo) Symlink(existing, newname string) error + func (mount *MountInfo) SyncFs() error + func (mount *MountInfo) Truncate(path string, size int64) error + func (mount *MountInfo) Unlink(path string) error + func (mount *MountInfo) Unmount() error + type StatxMask uint32 + type SyncChoice int + type Timespec ts.Timespec + type UserPerm struct + func NewUserPerm(uid, gid int, gidlist []int) *UserPerm + func (p *UserPerm) Destroy() + type XattrFlags int