client

package
v0.0.0-...-f3d8a94 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Elements

func Elements(name string) []string

Types

type Conn

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

func Dial

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

func DialService

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

func NewConn

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

func (*Conn) Attach

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

func (*Conn) Auth

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

func (*Conn) Close

func (c *Conn) Close() error

type Error

type Error string

func (Error) Error

func (e Error) Error() string

type Fid

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

func (*Fid) Clone

func (fid *Fid) Clone(newfid *Fid) error

func (*Fid) Close

func (fid *Fid) Close() (err error)

func (*Fid) Create

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

func (*Fid) Dirread

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

func (*Fid) Dirreadall

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

func (*Fid) File

func (fid *Fid) File() seq.File

func (*Fid) Open

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

func (*Fid) Qid

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

func (*Fid) Read

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

func (*Fid) ReadAt

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

func (*Fid) ReadFull

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

func (*Fid) Remove

func (fid *Fid) Remove() error

func (*Fid) Seek

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

func (*Fid) Stat

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

func (*Fid) Walk

func (fid *Fid) Walk(elem ...string) (*Fid, error)

func (*Fid) Write

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

func (*Fid) WriteAt

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

func (*Fid) Wstat

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

type Fsys

type Fsys struct {
	Root *Fid
}

func Mount

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

func MountService

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

func (*Fsys) Access

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

func (*Fsys) Create

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

func (*Fsys) Open

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

func (*Fsys) Remove

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

func (*Fsys) Stat

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

func (*Fsys) Walk

func (fs *Fsys) Walk(name string) (*Fid, error)

func (*Fsys) Wstat

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

type Ns

type Ns struct {
	Root *NsFile
	Dot  *NsFile
}

func (*Ns) Access

func (ns *Ns) Access(name string, mode uint8) (err error)

func (*Ns) Chdir

func (ns *Ns) Chdir(name string) error

func (*Ns) Create

func (ns *Ns) Create(name string, mode uint8, perm plan9.Perm) (*NsFile, error)

func (*Ns) Open

func (ns *Ns) Open(name string, mode uint8) (f *NsFile, err error)

func (*Ns) ReadStream

func (ns *Ns) ReadStream(name string, nreqs, iounit int) io.ReadCloser

func (*Ns) Remove

func (ns *Ns) Remove(name string) (err error)

func (*Ns) SeqCreate

func (ns *Ns) SeqCreate(sq *seq.Sequencer, path string, mode uint8, perm plan9.Perm) *NsFile

func (*Ns) SeqRemove

func (ns *Ns) SeqRemove(sq *seq.Sequencer, name string)

func (*Ns) SeqWalk

func (ns *Ns) SeqWalk(sq *seq.Sequencer, name string) *NsFile

func (*Ns) Stat

func (ns *Ns) Stat(name string) (*plan9.Dir, error)

func (*Ns) Walk

func (ns *Ns) Walk(name string) (*NsFile, error)

func (*Ns) Wstat

func (ns *Ns) Wstat(name string, d *plan9.Dir) error

type NsFile

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

func NewNsFile

func NewNsFile(f seq.File) *NsFile

func (*NsFile) Clone

func (f *NsFile) Clone() (*NsFile, error)

func (*NsFile) Close

func (f *NsFile) Close()

func (*NsFile) Dirread

func (f *NsFile) Dirread() ([]*plan9.Dir, error)

func (*NsFile) File

func (f *NsFile) File() seq.File

func (*NsFile) IsDir

func (f *NsFile) IsDir() bool

func (*NsFile) IsOpen

func (f *NsFile) IsOpen() bool

func (*NsFile) Open

func (f *NsFile) Open(mode uint8) error

func (*NsFile) Read

func (f *NsFile) Read(buf []byte) (int, error)

func (*NsFile) ReadAt

func (f *NsFile) ReadAt(buf []byte, at int64) (int, error)

func (*NsFile) ReadStream

func (f *NsFile) ReadStream(nreqs, iounit int) io.ReadCloser

func (*NsFile) Remove

func (f *NsFile) Remove() error

func (*NsFile) SeqReadStream

func (nsf *NsFile) SeqReadStream(sq *seq.Sequencer, nreqs, iounit int) io.ReadCloser

func (*NsFile) SeqWalk

func (f *NsFile) SeqWalk(sq *seq.Sequencer, path ...string) *NsFile

result is PathWalkResult

func (*NsFile) Stat

func (f *NsFile) Stat() (*plan9.Dir, error)

func (*NsFile) Walk

func (f *NsFile) Walk(elem ...string) (*NsFile, error)

func (*NsFile) Write

func (f *NsFile) Write(data []byte) (n int, err error)

func (*NsFile) WriteAt

func (f *NsFile) WriteAt(data []byte, offset int64) (int, error)

func (*NsFile) Wstat

func (f *NsFile) Wstat(dir *plan9.Dir) error

type OpResults

type OpResults []seq.Result

func (OpResults) Rtype

func (OpResults) Rtype() interface{}

type PathWalkResult

type PathWalkResult []plan9.Qid

func (PathWalkResult) Rtype

func (PathWalkResult) Rtype() interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL