Documentation ¶
Overview ¶
rpcfs implements the fs.FS interface using the 'net/rpc' package.
Index ¶
- Constants
- type FopenReq
- type FreadReq
- type FreadRes
- type FseekReq
- type FseekRes
- type FwriteReq
- type FwriteRes
- type ReaddirReq
- type ReaddirRes
- type RemoteFile
- type RpcFs
- func (f *RpcFs) Create(path string) (*RemoteFile, error)
- func (f *RpcFs) Glob(pattern string) ([]string, error)
- func (f *RpcFs) Open(path string) (fs.File, error)
- func (f *RpcFs) OpenFile(path string, flag int, perm fs.FileMode) (*RemoteFile, error)
- func (f *RpcFs) OpenRead(path string) (*RemoteFile, error)
- func (f *RpcFs) ReadDir(path string) ([]fs.DirEntry, error)
- type RpcFsServer
- func (s *RpcFsServer) Fclose(fdint uint, res *bool) error
- func (s *RpcFsServer) Fopen(req *FopenReq, res *uint) error
- func (s *RpcFsServer) Fread(req *FreadReq, res *FreadRes) (err error)
- func (s *RpcFsServer) Fseek(req *FseekReq, res *FseekRes) (err error)
- func (s *RpcFsServer) Fstat(fdint uint, info *fs.FileInfo) error
- func (s *RpcFsServer) Fwrite(req *FwriteReq, res *FwriteRes) (err error)
- func (s *RpcFsServer) Glob(pattern string, items *[]string) error
- func (s *RpcFsServer) ReadDir(req *ReaddirReq, res *ReaddirRes) error
Constants ¶
View Source
const RPC_FILE_CLASS = "RpcFsServer"
rpc class name for requests
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReaddirReq ¶
type ReaddirReq struct {
Path string
}
type ReaddirRes ¶
type RemoteFile ¶
type RemoteFile struct {
// contains filtered or unexported fields
}
func (*RemoteFile) Close ¶
func (rf *RemoteFile) Close() error
type RpcFs ¶
type RpcFs struct {
// contains filtered or unexported fields
}
Client side of RpcFs.
type RpcFsServer ¶
type RpcFsServer struct {
// contains filtered or unexported fields
}
func NewRpcFsServer ¶
func NewRpcFsServer(root string) *RpcFsServer
func (*RpcFsServer) Fwrite ¶
func (s *RpcFsServer) Fwrite(req *FwriteReq, res *FwriteRes) (err error)
func (*RpcFsServer) ReadDir ¶
func (s *RpcFsServer) ReadDir(req *ReaddirReq, res *ReaddirRes) error
Click to show internal directories.
Click to hide internal directories.