Documentation ¶
Index ¶
- Constants
- type BaseDir
- type BaseFile
- type CountedHandle
- type Dir
- type ErrorAccessDenied
- type ErrorNotADirectory
- type ErrorNotFound
- type ErrorNotImplemented
- type ErrorUnknown
- type FS
- func (fs *FS) Access(path string, mask uint32) int
- func (fs *FS) Chmod(path string, mode uint32) int
- func (fs *FS) Chown(path string, uid uint32, gid uint32) int
- func (fs *FS) Create(path string, flags int, mode uint32) (int, uint64)
- func (fs *FS) CreateEx(path string, flags uint32, fi *fuse.FileInfo_t) int
- func (fs *FS) Destroy()
- func (fs *FS) Flush(path string, fh uint64) int
- func (fs *FS) Fsync(path string, datasync bool, fh uint64) int
- func (fs *FS) Fsyncdir(path string, datasync bool, fh uint64) int
- func (fs *FS) Getattr(path string, stat *fuse.Stat_t, fh uint64) int
- func (fs *FS) Getxattr(path string, name string) (int, []byte)
- func (fs *FS) Init()
- func (fs *FS) Link(oldpath string, newpath string) int
- func (fs *FS) Listxattr(path string, fill func(name string) bool) int
- func (fs *FS) Mkdir(path string, mode uint32) int
- func (fs *FS) Mknod(path string, mode uint32, dev uint64) int
- func (fs *FS) Open(path string, flags int) (int, uint64)
- func (fs *FS) OpenEx(path string, fi *fuse.FileInfo_t) int
- func (fs *FS) Opendir(path string) (int, uint64)
- func (fs *FS) Read(path string, buff []byte, offset int64, fh uint64) int
- func (fs *FS) Readdir(path string, fill func(name string, stat *fuse.Stat_t, ofst int64) bool, ...) int
- func (fs *FS) Readlink(path string) (int, string)
- func (fs *FS) Release(path string, fh uint64) int
- func (fs *FS) Releasedir(path string, fh uint64) int
- func (fs *FS) Removexattr(path string, name string) int
- func (fs *FS) Rename(oldpath string, newpath string) int
- func (fs *FS) Rmdir(path string) int
- func (fs *FS) Setxattr(path string, name string, value []byte, flags int) int
- func (fs *FS) Statfs(path string, stat *fuse.Statfs_t) int
- func (fs *FS) Symlink(target string, newpath string) int
- func (fs *FS) Truncate(path string, size int64, fh uint64) (errn int)
- func (fs *FS) Unlink(path string) int
- func (fs *FS) Utimens(path string, tmsp []fuse.Timespec) int
- func (fs *FS) Write(path string, buff []byte, ofst int64, fh uint64) int
- type File
- type FileHandle
- type FilePermissions
- type FileType
- type FuseError
- type Handles
- type Node
- type Stat
Constants ¶
View Source
const ( FileType_Directory FileType = fuse.S_IFDIR FileType_Link FileType = fuse.S_IFLNK FileType_File FileType = fuse.S_IFREG FilePermissions_Read FilePermissions = 0444 FilePermissions_ReadExecute FilePermissions = 0555 FilePermissions_ReadWrite FilePermissions = 0664 FilePermissions_ReadWriteExecute FilePermissions = 0775 )
View Source
const FileHandleValue = ^uint64(0)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountedHandle ¶
type CountedHandle struct {
// contains filtered or unexported fields
}
type ErrorAccessDenied ¶
type ErrorAccessDenied struct {
Path string
}
func (*ErrorAccessDenied) Error ¶
func (e *ErrorAccessDenied) Error() string
func (*ErrorAccessDenied) ErrorCode ¶
func (e *ErrorAccessDenied) ErrorCode() int
type ErrorNotADirectory ¶
type ErrorNotADirectory struct {
Path string
}
func (*ErrorNotADirectory) Error ¶
func (e *ErrorNotADirectory) Error() string
func (*ErrorNotADirectory) ErrorCode ¶
func (e *ErrorNotADirectory) ErrorCode() int
type ErrorNotFound ¶
type ErrorNotFound struct {
Path string
}
func (*ErrorNotFound) Error ¶
func (e *ErrorNotFound) Error() string
func (*ErrorNotFound) ErrorCode ¶
func (e *ErrorNotFound) ErrorCode() int
type ErrorNotImplemented ¶
type ErrorNotImplemented struct{}
func (*ErrorNotImplemented) Error ¶
func (e *ErrorNotImplemented) Error() string
func (*ErrorNotImplemented) ErrorCode ¶
func (e *ErrorNotImplemented) ErrorCode() int
type ErrorUnknown ¶
func (*ErrorUnknown) Error ¶
func (e *ErrorUnknown) Error() string
func (*ErrorUnknown) ErrorCode ¶
func (e *ErrorUnknown) ErrorCode() int
type FS ¶
func (*FS) Create ¶
Create creates and opens a file. The flags are a combination of the fuse.O_* constants.
func (*FS) Readdir ¶
func (fs *FS) Readdir(path string, fill func(name string, stat *fuse.Stat_t, ofst int64) bool, ofst int64, fh uint64) int
Readdir reads a directory.
func (*FS) Releasedir ¶
Releasedir closes an open directory.
func (*FS) Removexattr ¶
Removexattr removes extended attributes.
type FileHandle ¶
type FilePermissions ¶
type FilePermissions uint32
type Handles ¶
type Handles struct {
// contains filtered or unexported fields
}
func (*Handles) CreateOrIncrement ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.