Documentation
¶
Overview ¶
Package xrdfuse contains the implementation of the FUSE API accessing a remote filesystem served over the XRootD protocol.
Index ¶
- type ErrorHandler
- type FS
- func (fs *FS) Chmod(name string, mode uint32, ctx *fuse.Context) fuse.Status
- func (fs *FS) GetAttr(name string, ctx *fuse.Context) (*fuse.Attr, fuse.Status)
- func (fs *FS) Mkdir(name string, mode uint32, ctx *fuse.Context) fuse.Status
- func (fs *FS) Mknod(name string, mode uint32, dev uint32, ctx *fuse.Context) fuse.Status
- func (fs *FS) Open(name string, flags uint32, ctx *fuse.Context) (file nodefs.File, code fuse.Status)
- func (fs *FS) OpenDir(name string, ctx *fuse.Context) (c []fuse.DirEntry, code fuse.Status)
- func (fs *FS) Rename(oldName string, newName string, ctx *fuse.Context) fuse.Status
- func (fs *FS) Rmdir(name string, ctx *fuse.Context) fuse.Status
- func (fs *FS) Unlink(name string, ctx *fuse.Context) fuse.Status
- type File
- func (f *File) Flush() (code fuse.Status)
- func (f *File) Fsync(flags int) (code fuse.Status)
- func (f *File) GetAttr(out *fuse.Attr) fuse.Status
- func (f *File) Read(dest []byte, off int64) (fuse.ReadResult, fuse.Status)
- func (f *File) Release()
- func (f *File) Truncate(size uint64) fuse.Status
- func (f *File) Write(data []byte, off int64) (uint32, fuse.Status)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorHandler ¶
type ErrorHandler func(error)
ErrorHandler is the function which handles occurred error (e.g. logs it).
type FS ¶
type FS struct { pathfs.FileSystem // contains filtered or unexported fields }
FS implements a pathfs.FileSystem that makes requests to the remote server over the XRootD protocol.
func NewFS ¶
func NewFS(client *xrootd.Client, root string, handler ErrorHandler) *FS
NewFS returns a new path.FileSystem representing the filesystem on the remote XRootD server. client is a client connected to the remote XRootD server. root is the path to the remote directory to be used as a root directory. handler is the function which handles occurred error (e.g. logs it). If the handler is nil, then a default handler is used that does nothing.
func (*FS) Open ¶
func (fs *FS) Open(name string, flags uint32, ctx *fuse.Context) (file nodefs.File, code fuse.Status)
Open implements pathfs.FileSystem.Open