Versions in this module Expand all Collapse all v1 v1.0.0 Aug 3, 2025 Changes in this version + var ErrDirDoesntSupport = errors.New("type of Dir does not support this operation") + var ErrDirNil = errors.New("cephfs dir is nil, is this a file?") + var ErrFileNil = errors.New("cephfs file is nil, is this a directory?") + type File struct + func (f *File) Close() error + func (f *File) Name() string + func (f *File) Read(buf []byte) (int, error) + func (f *File) ReadAt(buf []byte, offset int64) (int, error) + func (f *File) Readdir(count int) ([]os.FileInfo, error) + func (f *File) Readdirnames(count int) ([]string, error) + func (f *File) Seek(offset int64, whence int) (int64, error) + func (f *File) Stat() (os.FileInfo, 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, off int64) (int, error) + func (f *File) WriteString(s string) (int, error) + type FileInfo struct + func (info *FileInfo) IsDir() bool + func (info *FileInfo) ModTime() time.Time + func (info *FileInfo) Mode() os.FileMode + func (info *FileInfo) Name() string + func (info *FileInfo) Size() int64 + func (info *FileInfo) Sys() interface{} + type Fs struct + func NewCephFS() (*Fs, error) + func ToAferoFS(cephfsys *gocephfs.MountInfo) *Fs + func (fs *Fs) Chmod(path string, mode os.FileMode) error + func (fs *Fs) Chown(path string, uid int, gid int) error + func (fs *Fs) Chtimes(path string, atime time.Time, mtime time.Time) error + func (fs *Fs) Create(path string) (afero.File, error) + func (fs *Fs) Mkdir(path string, perm os.FileMode) error + func (fs *Fs) MkdirAll(path string, perm os.FileMode) error + func (fs *Fs) Name() string + func (fs *Fs) Open(path string) (afero.File, error) + func (fs *Fs) OpenFile(path string, flag int, perm os.FileMode) (afero.File, error) + func (fs *Fs) Remove(path string) error + func (fs *Fs) RemoveAll(path string) error + func (fs *Fs) Rename(oldPath, newPath string) error + func (fs *Fs) Stat(path string) (os.FileInfo, error) + func (fs *Fs) Unmount() error