Versions in this module Expand all Collapse all v0 v0.17.1 Mar 3, 2017 v0.17.0 Mar 2, 2017 Changes in this version + const DbgLogFcalls + const DbgLogPackets + const DbgPrintFcalls + const DbgPrintPackets + var Ebadoffset error = &p.Error + var Ebaduse error = &p.Error + var Edirchange error = &p.Error + var Eexist = &p.Error + var Einuse error = &p.Error + var Enoauth error = &p.Error + var Enoent = &p.Error + var Enotdir error = &p.Error + var Enotempty = &p.Error + var Enotimpl error = &p.Error + var Enouser error = &p.Error + var Eopen error = &p.Error + var Eperm error = &p.Error + var Etoolarge error = &p.Error + var Eunknownfid error = &p.Error + type AuthOps interface + AuthCheck func(fid *Fid, afid *Fid, aname string) error + AuthDestroy func(afid *Fid) + AuthInit func(afid *Fid, aname string) (*p.Qid, error) + AuthRead func(afid *Fid, offset uint64, data []byte) (count int, err error) + AuthWrite func(afid *Fid, offset uint64, data []byte) (count int, err error) + type Conn struct + Debuglevel int + Dotu bool + Id string + Msize uint32 + Srv *Srv + func (conn *Conn) FidGet(fidno uint32) *Fid + func (conn *Conn) FidNew(fidno uint32) *Fid + func (conn *Conn) LocalAddr() net.Addr + func (conn *Conn) RemoteAddr() net.Addr + func (conn *Conn) String() string + type ConnOps interface + ConnClosed func(*Conn) + ConnOpened func(*Conn) + type FClunkOp interface + Clunk func(fid *FFid) error + type FCreateOp interface + Create func(fid *FFid, name string, perm uint32) (*File, error) + type FDestroyOp interface + FidDestroy func(fid *FFid) + type FFid struct + F *File + Fid *Fid + type FFlags int + const Fremoved + type FOpenOp interface + Open func(fid *FFid, mode uint8) error + type FReadOp interface + Read func(fid *FFid, buf []byte, offset uint64) (int, error) + type FRemoveOp interface + Remove func(*FFid) error + type FStatOp interface + Stat func(fid *FFid) error + type FWriteOp interface + Write func(fid *FFid, data []byte, offset uint64) (int, error) + type FWstatOp interface + Wstat func(*FFid, *p.Dir) error + type Fid struct + Aux interface{} + Diroffset uint64 + Fconn *Conn + Omode uint8 + Type uint8 + User p.User + func (fid *Fid) DecRef() + func (fid *Fid) IncRef() + type FidOps interface + FidDestroy func(*Fid) + type File struct + Ops interface{} + Parent *File + func (f *File) Add(dir *File, name string, uid p.User, gid p.Group, mode uint32, ops interface{}) error + func (f *File) CheckPerm(user p.User, perm uint32) bool + func (f *File) Remove() + func (f *File) Rename(name string) error + func (p *File) Find(name string) *File + type FlushOp interface + Flush func(*Req) + type Fsrv struct + Root *File + func NewFileSrv(root *File) *Fsrv + func (*Fsrv) Clunk(req *Req) + func (*Fsrv) Create(req *Req) + func (*Fsrv) FidDestroy(ffid *Fid) + func (*Fsrv) Open(req *Req) + func (*Fsrv) Read(req *Req) + func (*Fsrv) Remove(req *Req) + func (*Fsrv) Stat(req *Req) + func (*Fsrv) Walk(req *Req) + func (*Fsrv) Write(req *Req) + func (*Fsrv) Wstat(req *Req) + func (s *Fsrv) Attach(req *Req) + type Req struct + Afid *Fid + Conn *Conn + Fid *Fid + Newfid *Fid + Rc *p.Fcall + Tc *p.Fcall + func (req *Req) Flush() + func (req *Req) PostProcess() + func (req *Req) Process() + func (req *Req) Respond() + func (req *Req) RespondError(err interface{}) + func (req *Req) RespondRattach(aqid *p.Qid) + func (req *Req) RespondRauth(aqid *p.Qid) + func (req *Req) RespondRclunk() + func (req *Req) RespondRcreate(qid *p.Qid, iounit uint32) + func (req *Req) RespondRflush() + func (req *Req) RespondRopen(qid *p.Qid, iounit uint32) + func (req *Req) RespondRread(data []byte) + func (req *Req) RespondRremove() + func (req *Req) RespondRstat(st *p.Dir) + func (req *Req) RespondRversion(msize uint32, version string) + func (req *Req) RespondRwalk(wqids []p.Qid) + func (req *Req) RespondRwrite(count uint32) + func (req *Req) RespondRwstat() + type ReqOps interface + Attach func(*Req) + Clunk func(*Req) + Create func(*Req) + Open func(*Req) + Read func(*Req) + Remove func(*Req) + Stat func(*Req) + Walk func(*Req) + Write func(*Req) + Wstat func(*Req) + type ReqProcessOps interface + ReqProcess func(*Req) + ReqRespond func(*Req) + type Srv struct + Debuglevel int + Dotu bool + Id string + Log *p.Logger + Maxpend int + Msize uint32 + Upool p.Users + func (srv *Srv) NewConn(c net.Conn) + func (srv *Srv) Start(ops interface{}) bool + func (srv *Srv) StartListener(l net.Listener) error + func (srv *Srv) StartNetListener(ntype, addr string) error + func (srv *Srv) String() string + type StatsOps interface