go: 9fans.net/go/plan9/client Index | Files

package client

import "9fans.net/go/plan9/client"

Index

Package Files

conn.go dial.go fid.go fsys.go

func Namespace Uses

func Namespace() string

Namespace returns the path to the name space directory.

type Conn Uses

type Conn struct {
    // contains filtered or unexported fields
}

func Dial Uses

func Dial(network, addr string) (*Conn, error)

func DialService Uses

func DialService(service string) (*Conn, error)

func NewConn Uses

func NewConn(rwc io.ReadWriteCloser) (*Conn, error)

func (*Conn) Attach Uses

func (c *Conn) Attach(afid *Fid, user, aname string) (*Fsys, error)

func (*Conn) Auth Uses

func (c *Conn) Auth(uname, aname string) (*Fid, error)

func (*Conn) Close Uses

func (c *Conn) Close() error

type Error Uses

type Error string

func (Error) Error Uses

func (e Error) Error() string

type Fid Uses

type Fid struct {
    // contains filtered or unexported fields
}

func (*Fid) Close Uses

func (fid *Fid) Close() error

func (*Fid) Create Uses

func (fid *Fid) Create(name string, mode uint8, perm plan9.Perm) error

func (*Fid) Dirread Uses

func (fid *Fid) Dirread() ([]*plan9.Dir, error)

func (*Fid) Dirreadall Uses

func (fid *Fid) Dirreadall() ([]*plan9.Dir, error)

func (*Fid) Open Uses

func (fid *Fid) Open(mode uint8) error

func (*Fid) Qid Uses

func (fid *Fid) Qid() plan9.Qid

func (*Fid) Read Uses

func (fid *Fid) Read(b []byte) (n int, err error)

func (*Fid) ReadAt Uses

func (fid *Fid) ReadAt(b []byte, offset int64) (n int, err error)

func (*Fid) ReadFull Uses

func (fid *Fid) ReadFull(b []byte) (n int, err error)

func (*Fid) Remove Uses

func (fid *Fid) Remove() error

func (*Fid) Seek Uses

func (fid *Fid) Seek(n int64, whence int) (int64, error)

func (*Fid) Stat Uses

func (fid *Fid) Stat() (*plan9.Dir, error)

func (*Fid) Walk Uses

func (fid *Fid) Walk(name string) (*Fid, error)

TODO(rsc): Could use ...string instead?

func (*Fid) Write Uses

func (fid *Fid) Write(b []byte) (n int, err error)

func (*Fid) WriteAt Uses

func (fid *Fid) WriteAt(b []byte, offset int64) (n int, err error)

func (*Fid) Wstat Uses

func (fid *Fid) Wstat(d *plan9.Dir) error

type Fsys Uses

type Fsys struct {
    // contains filtered or unexported fields
}

func Mount Uses

func Mount(network, addr string) (*Fsys, error)

func MountService Uses

func MountService(service string) (*Fsys, error)

func (*Fsys) Access Uses

func (fs *Fsys) Access(name string, mode int) error

func (*Fsys) Create Uses

func (fs *Fsys) Create(name string, mode uint8, perm plan9.Perm) (*Fid, error)

func (*Fsys) Open Uses

func (fs *Fsys) Open(name string, mode uint8) (*Fid, error)

func (*Fsys) Remove Uses

func (fs *Fsys) Remove(name string) error

func (*Fsys) Stat Uses

func (fs *Fsys) Stat(name string) (*plan9.Dir, error)

func (*Fsys) Wstat Uses

func (fs *Fsys) Wstat(name string, d *plan9.Dir) error

Package client imports 9 packages (graph) and is imported by 21 packages. Updated 2020-05-06. Refresh now. Tools for package owners.