Documentation ¶
Index ¶
- Constants
- type FCall
- type Header
- type Mode
- type ParseError
- type Qid
- type RAttach
- type RAuth
- type RClunk
- type RCreate
- type RError
- type RFlush
- type ROpen
- type RRead
- type RRemove
- type RStat
- type RWalk
- type RWrite
- type RWstat
- type Stat
- type TAttach
- type TAuth
- type TClunk
- type TCreate
- type TFlush
- type TOpen
- type TRVersion
- type TRead
- type TRemove
- type TStat
- type TWalk
- type TWrite
- type TWstat
Constants ¶
View Source
const ( Tversion = 100 Rversion = 101 Tauth = 102 Rauth = 103 Tattach = 104 Rattach = 105 Terror = 106 /* illegal */ Rerror = 107 Tflush = 108 Rflush = 109 Twalk = 110 Rwalk = 111 Topen = 112 Ropen = 113 Tcreate = 114 Rcreate = 115 Tread = 116 Rread = 117 Twrite = 118 Rwrite = 119 Tclunk = 120 Rclunk = 121 Tremove = 122 Rremove = 123 Tstat = 124 Rstat = 125 Twstat = 126 Rwstat = 127 )
These constants represent the message types and belong in the type field of the Header that is a part of every FCall.
View Source
const ( Oread = 0 Owrite = 1 Ordwr = 2 Oexec = 3 None = 4 Otrunc = 0x10 Orclose = 0x40 )
Open mode file constants
View Source
const ( DMDIR = uint32(1 << 31) DMAPPEND = uint32(1 << 30) DMEXCL = uint32(1 << 29) DMTMP = uint32(1 << 26) )
View Source
const (
IOUnit = 8168
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FCall ¶
type FCall interface { String() string Compose() []byte // contains filtered or unexported methods }
FCall - the interface that all FCall types imlement. String - typical human readable string representation. Compose - returns a slice containing the call serialized according the the 9P2000 protocol, ready to be written.
type ParseError ¶
type ParseError struct {
Err string
}
func (*ParseError) Error ¶
func (pe *ParseError) Error() string
type Qid ¶
Qid - Qids are unique ids for files. Qtype should be the upper 8 bits of the file's permissions (Stat.Mode)
type Stat ¶
type Stat struct { Type uint16 Dev uint32 Qid Qid Mode uint32 Atime uint32 Mtime uint32 Length uint64 Name string Uid string Gid string Muid string }
func (*Stat) ComposeLength ¶
Click to show internal directories.
Click to hide internal directories.