Documentation ¶
Index ¶
- type CachedFileSystem
- func (fs *CachedFileSystem) Init(f2 *FileSystem, size int) *CachedFileSystem
- func (fs *CachedFileSystem) Mkfile(id *uuid.UUID) error
- func (fs *CachedFileSystem) ReadAt(id *uuid.UUID, b []byte, off int64) (int, error)
- func (fs *CachedFileSystem) Readdirnames(id *uuid.UUID) ([]string, error)
- func (fs *CachedFileSystem) Stat(id *uuid.UUID) (os.FileInfo, error)
- func (fs *CachedFileSystem) Truncate(id *uuid.UUID, size int64) error
- func (fs *CachedFileSystem) WriteAt(id *uuid.UUID, b []byte, off int64) (int, error)
- type Facade
- type Facade2
- type FileSystem
- func (fs *FileSystem) Chtimes(id *uuid.UUID, atime time.Time, mtime time.Time) error
- func (fs *FileSystem) DelDirent(id *uuid.UUID, name string) error
- func (fs *FileSystem) DelDirentFull(id *uuid.UUID, name string) error
- func (fs *FileSystem) Lookup(id *uuid.UUID, name string) (*uuid.UUID, error)
- func (fs *FileSystem) Mkdir(id *uuid.UUID) error
- func (fs *FileSystem) Open(id *uuid.UUID, flag int) (*os.File, error)
- func (fs *FileSystem) PutDirent(id *uuid.UUID, name string, child *uuid.UUID) error
- func (fs *FileSystem) Stat(id *uuid.UUID) (os.FileInfo, error)
- type HL_Wrap
- func (h *HL_Wrap) HL_Delete(id *uuid.UUID, name string) error
- func (h *HL_Wrap) HL_Mkdir(id *uuid.UUID, name string) (*uuid.UUID, error)
- func (h *HL_Wrap) HL_Mkfile(id *uuid.UUID, name string) (*uuid.UUID, error)
- func (h *HL_Wrap) HL_Movelink(oid *uuid.UUID, oname string, nid *uuid.UUID, nname string) error
- func (h *HL_Wrap) HL_ReadAt(id *uuid.UUID, b []byte, off int64) ([]byte, error)
- func (h *HL_Wrap) HL_ReadAt2(id *uuid.UUID, size int, off int64) ([]byte, error)
- func (h *HL_Wrap) HL_Stat(id *uuid.UUID, sb *Statbuf) error
- type LL_Facade
- type Statbuf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedFileSystem ¶
type CachedFileSystem struct { *FileSystem Cache *lru.Cache }
func (*CachedFileSystem) Init ¶
func (fs *CachedFileSystem) Init(f2 *FileSystem, size int) *CachedFileSystem
func (*CachedFileSystem) Mkfile ¶
func (fs *CachedFileSystem) Mkfile(id *uuid.UUID) error
func (*CachedFileSystem) ReadAt ¶
func (fs *CachedFileSystem) ReadAt(id *uuid.UUID, b []byte, off int64) (int, error)
func (*CachedFileSystem) Readdirnames ¶
func (fs *CachedFileSystem) Readdirnames(id *uuid.UUID) ([]string, error)
func (*CachedFileSystem) Stat ¶
func (fs *CachedFileSystem) Stat(id *uuid.UUID) (os.FileInfo, error)
func (*CachedFileSystem) Truncate ¶
func (fs *CachedFileSystem) Truncate(id *uuid.UUID, size int64) error
type Facade2 ¶
type Facade2 interface { Facade HL_Mkdir(id *uuid.UUID, name string) (*uuid.UUID, error) HL_Mkfile(id *uuid.UUID, name string) (*uuid.UUID, error) HL_Stat(id *uuid.UUID, sb *Statbuf) error HL_Delete(id *uuid.UUID, name string) error HL_ReadAt(id *uuid.UUID, b []byte, off int64) ([]byte, error) HL_Movelink(oid *uuid.UUID, oname string, nid *uuid.UUID, nname string) error // RPC-Friendly version of HL_ReadAt HL_ReadAt2(id *uuid.UUID, size int, off int64) ([]byte, error) }
type FileSystem ¶
type FileSystem struct {
Prefix string
}
func (*FileSystem) DelDirent ¶
func (fs *FileSystem) DelDirent(id *uuid.UUID, name string) error
func (*FileSystem) DelDirentFull ¶
func (fs *FileSystem) DelDirentFull(id *uuid.UUID, name string) error
func (*FileSystem) Lookup ¶
func (fs *FileSystem) Lookup(id *uuid.UUID, name string) (*uuid.UUID, error)
func (*FileSystem) Mkdir ¶
func (fs *FileSystem) Mkdir(id *uuid.UUID) error
func (*FileSystem) PutDirent ¶
func (fs *FileSystem) PutDirent(id *uuid.UUID, name string, child *uuid.UUID) error
type HL_Wrap ¶
type HL_Wrap struct {
LL_Facade
}
func (*HL_Wrap) HL_Movelink ¶
func (*HL_Wrap) HL_ReadAt2 ¶
type LL_Facade ¶
type LL_Facade interface { Facade Stat(id *uuid.UUID) (os.FileInfo, error) Mkfile(id *uuid.UUID) error Mkdir(id *uuid.UUID) error PutDirent(id *uuid.UUID, name string, child *uuid.UUID) error DelDirent(id *uuid.UUID, name string) error DelDirentFull(id *uuid.UUID, name string) error ReadAt(id *uuid.UUID, b []byte, off int64) (int, error) }
Click to show internal directories.
Click to hide internal directories.