Documentation
¶
Index ¶
- Constants
- type DirEntry
- func (d *DirEntry) Access(ctx context.Context, input uint32) (errno syscall.Errno)
- func (d *DirEntry) Create(ctx context.Context, name string, flags uint32, mode uint32, ...) (*fs.Inode, fs.FileHandle, uint32, syscall.Errno)
- func (d *DirEntry) DB() storage.Storage
- func (d *DirEntry) FileInfo() (*oss.FileInfo, error)
- func (d *DirEntry) Flush(ctx context.Context, fh fs.FileHandle) syscall.Errno
- func (d *DirEntry) Getattr(ctx context.Context, fh fs.FileHandle, out *fuse.AttrOut) syscall.Errno
- func (d *DirEntry) IsDir() bool
- func (d *DirEntry) Lookup(ctx context.Context, name string, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)
- func (d *DirEntry) Mkdir(ctx context.Context, name string, mode uint32, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)
- func (d *DirEntry) Mountpoint() string
- func (d *DirEntry) Open(ctx context.Context, flags uint32) (fs.FileHandle, uint32, syscall.Errno)
- func (d *DirEntry) OssFS() *oss.FS
- func (d *DirEntry) Path() string
- func (d *DirEntry) Read(ctx context.Context, fh fs.FileHandle, dest []byte, off int64) (fuse.ReadResult, syscall.Errno)
- func (d *DirEntry) RelPath() string
- func (d *DirEntry) Rename(ctx context.Context, name string, newParent fs.InodeEmbedder, newName string, ...) syscall.Errno
- func (d *DirEntry) Rmdir(ctx context.Context, name string) syscall.Errno
- func (d *DirEntry) Setattr(ctx context.Context, fh fs.FileHandle, in *fuse.SetAttrIn, out *fuse.AttrOut) syscall.Errno
- func (d *DirEntry) Unlink(ctx context.Context, name string) syscall.Errno
- func (d *DirEntry) UpdateModified(ctx context.Context) error
- func (d *DirEntry) Write(ctx context.Context, fh fs.FileHandle, data []byte, off int64) (written uint32, errno syscall.Errno)
- type FS
- type File
- func (f *File) DB() storage.Storage
- func (f *File) Flush(ctx context.Context, fh fs.FileHandle) syscall.Errno
- func (f *File) Getattr(ctx context.Context, fh fs.FileHandle, out *fuse.AttrOut) syscall.Errno
- func (f *File) Info() *oss.FileInfo
- func (f *File) Mountpoint() string
- func (f *File) Open(ctx context.Context, flags uint32) (fs.FileHandle, uint32, syscall.Errno)
- func (f *File) OssFS() *oss.FS
- func (f *File) Path() string
- func (f *File) Read(ctx context.Context, fh fs.FileHandle, dest []byte, off int64) (fuse.ReadResult, syscall.Errno)
- func (f *File) RelPath() string
- func (f *File) Setattr(ctx context.Context, fh fs.FileHandle, in *fuse.SetAttrIn, out *fuse.AttrOut) syscall.Errno
- func (f *File) Write(ctx context.Context, fh fs.FileHandle, data []byte, off int64) (written uint32, errno syscall.Errno)
- type Mounter
Constants ¶
View Source
const ( F_OFD_GETLK = 36 F_OFD_SETLK = 37 F_OFD_SETLKW = 38 S_IRUGO = syscall.S_IRGRP | syscall.S_IRUSR | syscall.S_IROTH S_IWUGO = syscall.S_IWGRP | syscall.S_IWUSR | syscall.S_IWOTH S_IXUGO = syscall.S_IXGRP | syscall.S_IXUSR | syscall.S_IXOTH S_IRWXUGO = syscall.S_IRWXU | syscall.S_IRWXG | syscall.S_IRWXO F_DIR_RW = syscall.S_IFDIR | 0777 F_FILE_RW = syscall.S_IFREG | 0644 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirEntry ¶
func NewDirEntry ¶
func (*DirEntry) Mountpoint ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
func (*FS) Mountpoint ¶
type File ¶
func (*File) Mountpoint ¶
Click to show internal directories.
Click to hide internal directories.