Versions in this module Expand all Collapse all v0 v0.23.0 Oct 26, 2017 v0.22.3 Oct 6, 2017 v0.22.2 Sep 18, 2017 v0.22.1 Sep 11, 2017 v0.22.0 Sep 7, 2017 v0.21.0 Jul 26, 2017 v0.20.0 Jun 21, 2017 v0.19.1 May 30, 2017 v0.19.0 May 9, 2017 v0.18.0 Apr 7, 2017 Changes in this version + const DMAPPEND + const DMAUTH + const DMDEVICE + const DMDIR + const DMEXCL + const DMEXEC + const DMLINK + const DMMOUNT + const DMNAMEDPIPE + const DMREAD + const DMSETGID + const DMSETUID + const DMSOCKET + const DMSYMLINK + const DMTMP + const DMWRITE + const DbgLogFcalls + const DbgLogPackets + const DbgPrintFcalls + const DbgPrintPackets + const EEXIST + const EINVAL + const EIO + const ENOENT + const ENOTDIR + const EPERM + const IOHDRSZ + const MSIZE + const NOFID + const NOTAG + const NOUID + const OCEXEC + const OEXEC + const ORCLOSE + const ORDWR + const OREAD + const OTRUNC + const OWRITE + const PORT + const QTAPPEND + const QTAUTH + const QTDIR + const QTEXCL + const QTFILE + const QTLINK + const QTMOUNT + const QTSYMLINK + const QTTMP + const Rattach + const Rauth + const Rclunk + const Rcreate + const Rerror + const Rflush + const Ropen + const Rread + const Rremove + const Rstat + const Rversion + const Rwalk + const Rwrite + const Rwstat + const Tattach + const Tauth + const Tclunk + const Tcreate + const Terror + const Tflush + const Tlast + const Topen + const Tread + const Tremove + const Tstat + const Tversion + const Twalk + const Twrite + const Twstat + var Akaros = boolPointer(false) + var DefaultDebuglevel int + var Ebadoffset error = &Error + var Ebaduse error = &Error + var Edirchange error = &Error + var Eexist = &Error + var Einuse error = &Error + var Enoauth error = &Error + var Enoent = &Error + var Enotdir error = &Error + var Enotempty = &Error + var Enotimpl error = &Error + var Enouser error = &Error + var Eopen error = &Error + var Eperm error = &Error + var Etoolarge error = &Error + var Eunknownfid error = &Error + var OsUsers *osUsers + func Gint32(buf []byte) (uint32, []byte) + func InitRread(fc *Fcall, count uint32) error + func PackDir(d *Dir, dotu bool) []byte + func PackRattach(fc *Fcall, aqid *Qid) error + func PackRauth(fc *Fcall, aqid *Qid) error + func PackRclunk(fc *Fcall) error + func PackRcreate(fc *Fcall, qid *Qid, iounit uint32) error + func PackRerror(fc *Fcall, error string, errornum uint32, dotu bool) error + func PackRflush(fc *Fcall) error + func PackRopen(fc *Fcall, qid *Qid, iounit uint32) error + func PackRread(fc *Fcall, data []byte) error + func PackRremove(fc *Fcall) error + func PackRstat(fc *Fcall, d *Dir, dotu bool) error + func PackRversion(fc *Fcall, msize uint32, version string) error + func PackRwalk(fc *Fcall, wqids []Qid) error + func PackRwrite(fc *Fcall, count uint32) error + func PackRwstat(fc *Fcall) error + func PackTattach(fc *Fcall, fid uint32, afid uint32, uname string, aname string, ...) error + func PackTauth(fc *Fcall, fid uint32, uname string, aname string, unamenum uint32, dotu bool) error + func PackTclunk(fc *Fcall, fid uint32) error + func PackTcreate(fc *Fcall, fid uint32, name string, perm uint32, mode uint8, ext string, ...) error + func PackTflush(fc *Fcall, oldtag uint16) error + func PackTopen(fc *Fcall, fid uint32, mode uint8) error + func PackTread(fc *Fcall, fid uint32, offset uint64, count uint32) error + func PackTremove(fc *Fcall, fid uint32) error + func PackTstat(fc *Fcall, fid uint32) error + func PackTversion(fc *Fcall, msize uint32, version string) error + func PackTwalk(fc *Fcall, fid uint32, newfid uint32, wnames []string) error + func PackTwrite(fc *Fcall, fid uint32, offset uint64, count uint32, data []byte) error + func PackTwstat(fc *Fcall, fid uint32, d *Dir, dotu bool) error + func SetRreadCount(fc *Fcall, count uint32) + func SetTag(fc *Fcall, tag uint16) + type AuthOps interface + AuthCheck func(fid *SrvFid, afid *SrvFid, aname string) error + AuthDestroy func(afid *SrvFid) + AuthInit func(afid *SrvFid, aname string) (*Qid, error) + AuthRead func(afid *SrvFid, offset uint64, data []byte) (count int, err error) + AuthWrite func(afid *SrvFid, offset uint64, data []byte) (count int, err error) + type Clnt struct + Debuglevel int + Dotu bool + Id string + Log *Logger + Msize uint32 + Root *Fid + func Connect(c net.Conn, msize uint32, dotu bool) (*Clnt, error) + func Mount(ntype, addr, aname string, msize uint32, user User) (*Clnt, error) + func MountConn(c net.Conn, aname string, msize uint32, user User) (*Clnt, error) + func NewClnt(c net.Conn, msize uint32, dotu bool) *Clnt + func (clnt *Clnt) Attach(afid *Fid, user User, aname string) (*Fid, error) + func (clnt *Clnt) Auth(user 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) (*Dir, error) + func (clnt *Clnt) FWalk(path string) (*Fid, error) + func (clnt *Clnt) FidAlloc() *Fid + func (clnt *Clnt) FreeFcall(fc *Fcall) + func (clnt *Clnt) NewFcall() *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 *Fcall) (rc *Fcall, err error) + func (clnt *Clnt) Rpcnb(r *Req) error + func (clnt *Clnt) Stat(fid *Fid) (*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) ([]Qid, error) + func (clnt *Clnt) Write(fid *Fid, data []byte, offset uint64) (int, error) + func (clnt *Clnt) Wstat(fid *Fid, dir *Dir) error + type ClntList struct + type Conn struct + Debuglevel int + Dotu bool + Id string + Msize uint32 + Srv *Srv + func (conn *Conn) FidGet(fidno uint32) *SrvFid + func (conn *Conn) FidNew(fidno uint32) *SrvFid + 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 Dir struct + Atime uint32 + Dev uint32 + Ext string + Gid string + Gidnum uint32 + Length uint64 + Mode uint32 + Mtime uint32 + Muid string + Muidnum uint32 + Name string + Size uint16 + Type uint16 + Uid string + Uidnum uint32 + func UnpackDir(buf []byte, dotu bool) (d *Dir, b []byte, amt int, err error) + func (d *Dir) String() string + type Error struct + Err string + Errornum uint32 + func (err *Error) Error() string + type FClunkOp interface + Clunk func(fid *FFid) error + type FCreateOp interface + Create func(fid *FFid, name string, perm uint32) (*srvFile, error) + type FDestroyOp interface + FidDestroy func(fid *FFid) + type FFid struct + F *srvFile + Fid *SrvFid + 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, *Dir) error + type Fcall struct + Afid uint32 + Aname string + Buf []uint8 + Count uint32 + Data []uint8 + Error string + Errornum uint32 + Ext string + Fid uint32 + Iounit uint32 + Mode uint8 + Msize uint32 + Name string + Newfid uint32 + Offset uint64 + Oldtag uint16 + Perm uint32 + Pkt []uint8 + Size uint32 + Tag uint16 + Type uint8 + Uname string + Unamenum uint32 + Version string + Wname []string + Wqid []Qid + func NewFcall(sz uint32) *Fcall + func Unpack(buf []byte, dotu bool) (fc *Fcall, err error, fcsz int) + func (fc *Fcall) String() string + type Fid struct + Clnt *Clnt + Fid uint32 + Iounit uint32 + Mode uint8 + type File struct + Fid *Fid + func FidFile(fid *Fid, offset uint64) *File + 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) ([]*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 FlushOp interface + Flush func(*SrvReq) + type Fsrv struct + Root *srvFile + func NewsrvFileSrv(root *srvFile) *Fsrv + func (*Fsrv) Clunk(req *SrvReq) + func (*Fsrv) Create(req *SrvReq) + func (*Fsrv) FidDestroy(ffid *SrvFid) + func (*Fsrv) Open(req *SrvReq) + func (*Fsrv) Read(req *SrvReq) + func (*Fsrv) Remove(req *SrvReq) + func (*Fsrv) Stat(req *SrvReq) + func (*Fsrv) Walk(req *SrvReq) + func (*Fsrv) Write(req *SrvReq) + func (*Fsrv) Wstat(req *SrvReq) + func (s *Fsrv) Attach(req *SrvReq) + type Group interface + Id func() int + Members func() []User + Name func() string + type Log struct + Data interface{} + Owner interface{} + Type int + type Logger struct + var DefaultLogger *Logger + func NewLogger(sz int) *Logger + func (l *Logger) Filter(owner interface{}, itype int) []*Log + func (l *Logger) Log(data, owner interface{}, itype int) + func (l *Logger) Resize(sz int) + type Pipefs struct + Root string + func (*Pipefs) Clunk(req *SrvReq) + func (*Pipefs) ConnClosed(conn *Conn) + func (*Pipefs) ConnOpened(conn *Conn) + func (*Pipefs) Create(req *SrvReq) + func (*Pipefs) FidDestroy(sfid *SrvFid) + func (*Pipefs) Flush(req *SrvReq) + func (*Pipefs) Open(req *SrvReq) + func (*Pipefs) Read(req *SrvReq) + func (*Pipefs) Remove(req *SrvReq) + func (*Pipefs) Stat(req *SrvReq) + func (*Pipefs) Walk(req *SrvReq) + func (*Pipefs) Write(req *SrvReq) + func (*Pipefs) Wstat(req *SrvReq) + func (pipe *Pipefs) Attach(req *SrvReq) + type Qid struct + Path uint64 + Type uint8 + Version uint32 + func (qid *Qid) String() string + type Req struct + Clnt *Clnt + Done chan *Req + Err error + Rc *Fcall + Tc *Fcall + type Srv struct + Debuglevel int + Dotu bool + Id string + Log *Logger + Maxpend int + Msize uint32 + Upool 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 SrvFid struct + Aux interface{} + Dirents []byte + Diroffset uint64 + Fconn *Conn + Omode uint8 + Type uint8 + User User + func (fid *SrvFid) DecRef() + func (fid *SrvFid) IncRef() + type SrvFidOps interface + FidDestroy func(*SrvFid) + type SrvReq struct + Afid *SrvFid + Conn *Conn + Fid *SrvFid + Newfid *SrvFid + Rc *Fcall + Tc *Fcall + func (req *SrvReq) Flush() + func (req *SrvReq) PostProcess() + func (req *SrvReq) Process() + func (req *SrvReq) Respond() + func (req *SrvReq) RespondError(err interface{}) + func (req *SrvReq) RespondRattach(aqid *Qid) + func (req *SrvReq) RespondRauth(aqid *Qid) + func (req *SrvReq) RespondRclunk() + func (req *SrvReq) RespondRcreate(qid *Qid, iounit uint32) + func (req *SrvReq) RespondRflush() + func (req *SrvReq) RespondRopen(qid *Qid, iounit uint32) + func (req *SrvReq) RespondRread(data []byte) + func (req *SrvReq) RespondRremove() + func (req *SrvReq) RespondRstat(st *Dir) + func (req *SrvReq) RespondRversion(msize uint32, version string) + func (req *SrvReq) RespondRwalk(wqids []Qid) + func (req *SrvReq) RespondRwrite(count uint32) + func (req *SrvReq) RespondRwstat() + type SrvReqOps interface + Attach func(*SrvReq) + Clunk func(*SrvReq) + Create func(*SrvReq) + Open func(*SrvReq) + Read func(*SrvReq) + Remove func(*SrvReq) + Stat func(*SrvReq) + Walk func(*SrvReq) + Write func(*SrvReq) + Wstat func(*SrvReq) + type SrvReqProcessOps interface + SrvReqProcess func(*SrvReq) + SrvReqRespond func(*SrvReq) + type StatsOps interface + type Tag struct + func (tag *Tag) Attach(fid, afid *Fid, user User, aname string) error + func (tag *Tag) Auth(afid *Fid, user 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 *Dir) error + type Ufs struct + Root string + func (*Ufs) Clunk(req *SrvReq) + func (*Ufs) ConnClosed(conn *Conn) + func (*Ufs) ConnOpened(conn *Conn) + func (*Ufs) Create(req *SrvReq) + func (*Ufs) FidDestroy(sfid *SrvFid) + func (*Ufs) Flush(req *SrvReq) + func (*Ufs) Open(req *SrvReq) + func (*Ufs) Read(req *SrvReq) + func (*Ufs) Remove(req *SrvReq) + func (*Ufs) Stat(req *SrvReq) + func (*Ufs) Walk(req *SrvReq) + func (*Ufs) Write(req *SrvReq) + func (u *Ufs) Wstat(req *SrvReq) + func (ufs *Ufs) Attach(req *SrvReq) + type User interface + Groups func() []Group + Id func() int + IsMember func(g Group) bool + Name func() string + type Users interface + Gid2Group func(gid int) Group + Gname2Group func(gname string) Group + Uid2User func(uid int) User + Uname2User func(uname string) User v0.17.1 Mar 3, 2017 v0.17.0 Mar 2, 2017