Documentation ¶
Index ¶
- func NewServer(ctx context.Context, root string) p9p.FileSys
- type FileRef
- func (ref *FileRef) Clunk(ctx context.Context) error
- func (ref *FileRef) Create(ctx context.Context, name string, perm uint32, mode p9p.Flag) (p9p.Dirent, p9p.File, error)
- func (ref *FileRef) IOUnit() int
- func (f *FileRef) IsDir() bool
- func (ref *FileRef) Open(ctx context.Context, mode p9p.Flag) (p9p.File, error)
- func (ref *FileRef) OpenDir(ctx context.Context) (p9p.ReadNext, error)
- func (ref *FileRef) Qid() p9p.Qid
- func (ref *FileRef) Read(ctx context.Context, p []byte, offset int64) (n int, err error)
- func (ref *FileRef) Remove(ctx context.Context) error
- func (ref *FileRef) Stat(ctx context.Context) (p9p.Dir, error)
- func (ref *FileRef) WStat(ctx context.Context, dir p9p.Dir) error
- func (ref *FileRef) Walk(ctx context.Context, names ...string) ([]p9p.Qid, p9p.Dirent, error)
- func (ref *FileRef) Write(ctx context.Context, p []byte, offset int64) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileRef ¶
type FileRef struct { Path string Info p9p.Dir // contains filtered or unexported fields }
Internal path invariants:
- Path always begins with "/".
- Path does not contain any "\\" characters.
- Path never contains "." or ".." or "" (empty) elements.
Click to show internal directories.
Click to hide internal directories.