Documentation ¶
Index ¶
- func AddFS(fsName string, n FS)
- func FullPath(serverPath string, name string) string
- type AttachArgs
- type Attachresp
- type ClientConn
- func (client *ClientConn) Attach(name string, args ...string) error
- func (client *ClientConn) Create(Fid Fid, name string, mode int, perm os.FileMode) (*File, error)
- func (client *ClientConn) Open(Fid Fid, mode int) (*File, error)
- func (client *ClientConn) Readdir() ([]FileInfo, error)
- func (client *ClientConn) Readlink(Fid Fid) (string, error)
- func (client *ClientConn) Stat(Fid Fid, name string) (FileInfo, error)
- type Conn
- type FIresp
- type FS
- type Fid
- type File
- type FileInfo
- type Ioargs
- type Ioresp
- type NameArgs
- type Nameresp
- type NewArgs
- type Node
- type Server
- type StatArgs
- type StatResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AttachArgs ¶
AttachArgs is used in an attach, and has a server name type and args.
type Attachresp ¶
Attachresp is the resonse to an attach.
type ClientConn ¶
Client is a client struct for a file fid. It's not clear we should have embedded the Conn.
func NewClientConn ¶
func NewClientConn(c *Conn) *ClientConn
func (*ClientConn) Attach ¶
func (client *ClientConn) Attach(name string, args ...string) error
Attach attaches to a so9p server.
func (*ClientConn) Open ¶
func (client *ClientConn) Open(Fid Fid, mode int) (*File, error)
Open opens a file
func (*ClientConn) Readdir ¶
func (client *ClientConn) Readdir() ([]FileInfo, error)
ReadDir reads an entire directory.
type File ¶
type File struct { *ClientConn Fid Fid Off int64 EOF bool }
File is the client struct for a file. cureent ops are ReadAt, WriteAt, Read, Write, Statx
type Node ¶
Node is the interface for a server, requiring implementations for Attach and FI.
func GetServerNode ¶
type Server ¶
Server contains data for a server instance
func (*Server) Attach ¶
func (server *Server) Attach(Args *AttachArgs, Resp *Attachresp) (err error)
Attach is the server response ot an attach
Source Files ¶
Click to show internal directories.
Click to hide internal directories.