Documentation ¶
Index ¶
- Variables
- func DateTimeAsc(fi1, fi2 fsIntf.FileInfo) bool
- func DateTimeDesc(fi1, fi2 fsIntf.FileInfo) bool
- func DirsFirst(fi1, fi2 fsIntf.FileInfo) bool
- func DirsLast(fi1, fi2 fsIntf.FileInfo) bool
- func ExtAsc(fi1, fi2 fsIntf.FileInfo) bool
- func ExtDesc(fi1, fi2 fsIntf.FileInfo) bool
- func NamesAsc(fi1, fi2 fsIntf.FileInfo) bool
- func NamesDesc(fi1, fi2 fsIntf.FileInfo) bool
- func RegisterRPCFileSystem(f fsIntf.FileSystem) error
- func SizeAsc(fi1, fi2 fsIntf.FileInfo) bool
- func SizeDesc(fi1, fi2 fsIntf.FileInfo) bool
- type Dir
- func (d Dir) Create(parentId string, name string, flag int) (fsIntf.File, error)
- func (d Dir) Mkdir(parentId string, name string, perm os.FileMode) (string, error)
- func (d Dir) Open(id string) (fsIntf.File, error)
- func (d Dir) RemoveAll(id string) error
- func (d Dir) Rename(oldId, newParentId string, newName string) (string, error)
- func (d Dir) Stat(id string) (fsIntf.FileInfo, error)
- type FileInfoArray
- type LessFunc
- type RPCFile
- func (f *RPCFile) Close(id fsIntf.FileId, _ *int) error
- func (f *RPCFile) Id(id fsIntf.FileId, fId *string) error
- func (f *RPCFile) ParentId(id fsIntf.FileId, parentId *string) error
- func (f *RPCFile) Read(params fsIntf.ReadParams, retParams *fsIntf.ReadReturnParams) error
- func (f *RPCFile) Readdir(params fsIntf.ReaddirParams, fi *[]fsIntf.FileInfoStruct) error
- func (f *RPCFile) Seek(params fsIntf.SeekParams, ret *int64) error
- func (f *RPCFile) Stat(id fsIntf.FileId, fi *fsIntf.FileInfoStruct) error
- func (f *RPCFile) Sync(id fsIntf.FileId, _ *int) error
- func (f *RPCFile) Write(params fsIntf.WriteParams, n *int) error
- type RPCFileCache
- func (c *RPCFileCache) Create(params fsIntf.CacheFileCreateParams, id *fsIntf.FileId) error
- func (c *RPCFileCache) GetBool(params fsIntf.GetCacheValueParams, value *bool) error
- func (c *RPCFileCache) GetString(params fsIntf.GetCacheValueParams, value *string) error
- func (c *RPCFileCache) Open(params fsIntf.CacheFileOpenParams, id *fsIntf.FileId) error
- func (c *RPCFileCache) PutBool(params fsIntf.PutBoolParams, _ *int) error
- func (c *RPCFileCache) PutString(params fsIntf.PutStringParams, _ *int) error
- type RPCFileSystem
- func (fs *RPCFileSystem) Create(p fsIntf.CreateParams, id *fsIntf.FileId) error
- func (fs *RPCFileSystem) Mkdir(p fsIntf.MkdirParams, encName *string) error
- func (fs *RPCFileSystem) Open(fid string, id *fsIntf.FileId) error
- func (fs *RPCFileSystem) RemoveAll(id string, _ *int) error
- func (fs *RPCFileSystem) Rename(p fsIntf.RenameParams, encName *string) error
- func (fs *RPCFileSystem) Stat(id string, fi *fsIntf.FileInfoStruct) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterRPCFileSystem ¶
func RegisterRPCFileSystem(f fsIntf.FileSystem) error
Types ¶
type Dir ¶
type Dir string
A Dir implements FileSystem using the native file system restricted to a specific directory tree.
An empty Dir is treated as ".".
func (Dir) Create ¶
func (Dir) Mkdir ¶
type FileInfoArray ¶
func (FileInfoArray) SortBy ¶
func (arr FileInfoArray) SortBy(less ...LessFunc)
type RPCFile ¶
type RPCFile struct {
// contains filtered or unexported fields
}
func (*RPCFile) Read ¶
func (f *RPCFile) Read(params fsIntf.ReadParams, retParams *fsIntf.ReadReturnParams) error
func (*RPCFile) Readdir ¶
func (f *RPCFile) Readdir(params fsIntf.ReaddirParams, fi *[]fsIntf.FileInfoStruct) error
type RPCFileCache ¶
type RPCFileCache struct {
// contains filtered or unexported fields
}
func (*RPCFileCache) Create ¶
func (c *RPCFileCache) Create(params fsIntf.CacheFileCreateParams, id *fsIntf.FileId) error
func (*RPCFileCache) GetBool ¶
func (c *RPCFileCache) GetBool(params fsIntf.GetCacheValueParams, value *bool) error
func (*RPCFileCache) GetString ¶
func (c *RPCFileCache) GetString(params fsIntf.GetCacheValueParams, value *string) error
func (*RPCFileCache) Open ¶
func (c *RPCFileCache) Open(params fsIntf.CacheFileOpenParams, id *fsIntf.FileId) error
func (*RPCFileCache) PutBool ¶
func (c *RPCFileCache) PutBool(params fsIntf.PutBoolParams, _ *int) error
func (*RPCFileCache) PutString ¶
func (c *RPCFileCache) PutString(params fsIntf.PutStringParams, _ *int) error
type RPCFileSystem ¶
type RPCFileSystem struct { fsIntf.FileSystem // contains filtered or unexported fields }
func (*RPCFileSystem) Create ¶
func (fs *RPCFileSystem) Create(p fsIntf.CreateParams, id *fsIntf.FileId) error
func (*RPCFileSystem) Mkdir ¶
func (fs *RPCFileSystem) Mkdir(p fsIntf.MkdirParams, encName *string) error
func (*RPCFileSystem) RemoveAll ¶
func (fs *RPCFileSystem) RemoveAll(id string, _ *int) error
func (*RPCFileSystem) Rename ¶
func (fs *RPCFileSystem) Rename(p fsIntf.RenameParams, encName *string) error
func (*RPCFileSystem) Stat ¶
func (fs *RPCFileSystem) Stat(id string, fi *fsIntf.FileInfoStruct) error
Click to show internal directories.
Click to hide internal directories.