Documentation
¶
Index ¶
- Constants
- type DirEntry
- func (d *DirEntry) Access(ctx context.Context, input uint32) (errno syscall.Errno)
- func (d *DirEntry) CopyFileRange(ctx context.Context, fhIn fs.FileHandle, offIn uint64, out *fs.Inode, ...) (uint32, 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) CreateTemp() (*os.File, error)
- func (d *DirEntry) ETag() string
- func (d *DirEntry) FileInfo() (*oss.FileInfo, error)
- func (d *DirEntry) FileSize() int64
- 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) Getxattr(ctx context.Context, name string, dist []byte) (uint32, 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) ModTime() uint64
- 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) Readdir(ctx context.Context) (fs.DirStream, syscall.Errno)
- func (d *DirEntry) RelPath() string
- func (d *DirEntry) Release(ctx context.Context, fh fs.FileHandle) syscall.Errno
- 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) SetETag(etag string)
- func (d *DirEntry) SetModTime(t time.Time)
- func (d *DirEntry) SetPath(path string)
- func (d *DirEntry) SetSize(size int64)
- func (d *DirEntry) Setattr(ctx context.Context, fh fs.FileHandle, in *fuse.SetAttrIn, out *fuse.AttrOut) syscall.Errno
- func (d *DirEntry) Setxattr(ctx context.Context, name string, value []byte, flags uint32) syscall.Errno
- func (d *DirEntry) Truncate(size uint64) fuse.Status
- func (d *DirEntry) Unlink(ctx context.Context, name string) syscall.Errno
- func (d *DirEntry) Utimens(atime *time.Time, mtime *time.Time) fuse.Status
- func (d *DirEntry) Write(ctx context.Context, fh fs.FileHandle, data []byte, off int64) (written uint32, errno syscall.Errno)
- type FS
- 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) CopyFileRange ¶ added in v1.0.5
func (*DirEntry) Mountpoint ¶
func (*DirEntry) Read ¶
func (d *DirEntry) Read(ctx context.Context, fh fs.FileHandle, dest []byte, off int64) (fuse.ReadResult, syscall.Errno)
Read supports random reading of data from the file. This gets called as many times as are needed to get through all the desired data len(buf) bytes at a time.
func (*DirEntry) SetModTime ¶ added in v1.0.5
func (*DirEntry) Setxattr ¶ added in v1.0.5
func (d *DirEntry) Setxattr(ctx context.Context, name string, value []byte, flags uint32) syscall.Errno
Setxattr 设置扩展属性
Click to show internal directories.
Click to hide internal directories.