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 DefaultDebuglevel int + var DefaultLogger *p.Logger + var Eisdir = &p.Error + var Enegoff = &p.Error + type Clnt struct + Debuglevel int + Dotu bool + Id string + Log *p.Logger + Msize uint32 + Root *Fid + func Connect(c net.Conn, msize uint32, dotu bool) (*Clnt, error) + func Mount(ntype, addr, aname string, user p.User) (*Clnt, error) + func MountConn(c net.Conn, aname string, user p.User) (*Clnt, error) + func NewClnt(c net.Conn, msize uint32, dotu bool) *Clnt + func (clnt *Clnt) Attach(afid *Fid, user p.User, aname string) (*Fid, error) + func (clnt *Clnt) Auth(user p.User, aname string) (*Fid, error) + func (clnt *Clnt) Clunk(fid *Fid) (err error) + func (clnt *Clnt) Create(fid *Fid, name string, perm uint32, mode uint8, ext string) error + func (clnt *Clnt) FCreate(path string, perm uint32, mode uint8) (*File, error) + func (clnt *Clnt) FOpen(path string, mode uint8) (*File, error) + func (clnt *Clnt) FRemove(path string) error + func (clnt *Clnt) FStat(path string) (*p.Dir, error) + func (clnt *Clnt) FWalk(path string) (*Fid, error) + func (clnt *Clnt) FidAlloc() *Fid + func (clnt *Clnt) FreeFcall(fc *p.Fcall) + func (clnt *Clnt) NewFcall() *p.Fcall + func (clnt *Clnt) Open(fid *Fid, mode uint8) error + func (clnt *Clnt) Read(fid *Fid, offset uint64, count uint32) ([]byte, error) + func (clnt *Clnt) Remove(fid *Fid) error + func (clnt *Clnt) ReqAlloc() *Req + func (clnt *Clnt) ReqFree(req *Req) + func (clnt *Clnt) Rpc(tc *p.Fcall) (rc *p.Fcall, err error) + func (clnt *Clnt) Rpcnb(r *Req) error + func (clnt *Clnt) Stat(fid *Fid) (*p.Dir, error) + func (clnt *Clnt) TagAlloc(reqchan chan *Req) *Tag + func (clnt *Clnt) TagFree(tag *Tag) + func (clnt *Clnt) Unmount() + func (clnt *Clnt) Walk(fid *Fid, newfid *Fid, wnames []string) ([]p.Qid, error) + func (clnt *Clnt) Write(fid *Fid, data []byte, offset uint64) (int, error) + func (clnt *Clnt) Wstat(fid *Fid, dir *p.Dir) error + type ClntList struct + type Fid struct + Clnt *Clnt + Fid uint32 + Iounit uint32 + Mode uint8 + type File struct + func NewFile(f *Fid, offset uint64) *File + func (f *File) Fid() *Fid + func (f *File) Seek(offset int64, whence int) (int64, error) + func (file *File) Close() error + func (file *File) Read(buf []byte) (int, error) + func (file *File) ReadAt(buf []byte, offset int64) (int, error) + func (file *File) Readdir(num int) ([]*p.Dir, error) + func (file *File) Readn(buf []byte, offset uint64) (int, error) + func (file *File) Write(buf []byte) (int, error) + func (file *File) WriteAt(buf []byte, offset int64) (int, error) + func (file *File) Writen(buf []byte, offset uint64) (int, error) + type Req struct + Clnt *Clnt + Done chan *Req + Err error + Rc *p.Fcall + Tc *p.Fcall + type StatsOps interface + type Tag struct + func (tag *Tag) Attach(fid, afid *Fid, user p.User, aname string) error + func (tag *Tag) Auth(afid *Fid, user p.User, aname string) error + func (tag *Tag) Clunk(fid *Fid) error + func (tag *Tag) Create(fid *Fid, name string, perm uint32, mode uint8, ext string) error + func (tag *Tag) Open(fid *Fid, mode uint8) error + func (tag *Tag) Read(fid *Fid, offset uint64, count uint32) error + func (tag *Tag) Remove(fid *Fid) error + func (tag *Tag) ReqFree(r *Req) + func (tag *Tag) Stat(fid *Fid) error + func (tag *Tag) Walk(fid *Fid, newfid *Fid, wnames []string) error + func (tag *Tag) Write(fid *Fid, data []byte, offset uint64) error + func (tag *Tag) Wstat(fid *Fid, dir *p.Dir) error