Documentation ¶
Index ¶
- func NextHandle() uint64
- func NextInodeID() uint64
- type Cache
- type Config
- type DirHandle
- type FS
- func (fs *FS) Create(parent uint64, name string) (ino *Inode, fh *FileHandle, err error)
- func (fs *FS) CreateDirHandle(ino *Inode) (dh *DirHandle, err error)
- func (fs *FS) CreateFileHandle(ino *Inode) (fh *FileHandle, err error)
- func (fs *FS) Delete(parent uint64, name string) (err error)
- func (fs *FS) DeleteDir(path string) (err error)
- func (fs *FS) DeleteDirHandle(dhid uint64) (err error)
- func (fs *FS) DeleteEntry(parent uint64, name string) (err error)
- func (fs *FS) DeleteFileHandle(fhid uint64) (err error)
- func (fs *FS) DeleteInode(ino *Inode) (err error)
- func (fs *FS) DeleteInodeByID(id uint64) (err error)
- func (fs *FS) GetDirHandle(dhid uint64) (dh *DirHandle, err error)
- func (fs *FS) GetEntry(parent uint64, name string) (ino *Inode, err error)
- func (fs *FS) GetFileHandle(fhid uint64) (fh *FileHandle, err error)
- func (fs *FS) GetInode(id uint64) (ino *Inode, err error)
- func (fs *FS) SetInode(ino *Inode) (err error)
- func (fs *FS) Stat(parent uint64, name string) (ino *Inode, err error)
- type FileHandle
- type Inode
- func (z *Inode) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *Inode) EncodeMsg(en *msgp.Writer) (err error)
- func (ino *Inode) GetEntryPath(name string) string
- func (ino *Inode) IsDir() bool
- func (z *Inode) MarshalMsg(b []byte) (o []byte, err error)
- func (z *Inode) Msgsize() (s int)
- func (z *Inode) UnmarshalMsg(bts []byte) (o []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NextHandle ¶
func NextHandle() uint64
func NextInodeID ¶
func NextInodeID() uint64
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
func (*FS) CreateFileHandle ¶
func (fs *FS) CreateFileHandle(ino *Inode) (fh *FileHandle, err error)
func (*FS) DeleteDirHandle ¶
func (*FS) DeleteFileHandle ¶
func (*FS) DeleteInode ¶
func (*FS) DeleteInodeByID ¶
func (*FS) GetFileHandle ¶
func (fs *FS) GetFileHandle(fhid uint64) (fh *FileHandle, err error)
type FileHandle ¶
type FileHandle struct { ID uint64 // contains filtered or unexported fields }
func (*FileHandle) CloseForWrite ¶
func (fh *FileHandle) CloseForWrite() (err error)
func (*FileHandle) GetInode ¶
func (fh *FileHandle) GetInode() *Inode
func (*FileHandle) PrepareForWrite ¶
func (fh *FileHandle) PrepareForWrite() (err error)
type Inode ¶
type Inode struct { ID uint64 ParentID uint64 Path string Name string Generation uint64 Size uint64 Mode uint32 // The same with os.FileMode Atime time.Time Mtime time.Time Ctime time.Time }
func (*Inode) GetEntryPath ¶
func (*Inode) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
Click to show internal directories.
Click to hide internal directories.