Documentation
¶
Overview ¶
Package localfs exposes the host's local file system as a p9.File.
Index ¶
- func Attacher(root string) p9.Attacher
- func RootAttacher() p9.Attacher
- type Local
- func (l *Local) Close() error
- func (l *Local) Create(name string, mode p9.OpenFlags, permissions p9.FileMode, _ p9.UID, _ p9.GID) (p9.File, p9.QID, uint32, error)
- func (l *Local) FSync() error
- func (l *Local) GetAttr(req p9.AttrMask) (p9.QID, p9.AttrMask, p9.Attr, error)
- func (l *Local) Link(target p9.File, newname string) error
- func (l *Local) Mkdir(name string, permissions p9.FileMode, _ p9.UID, _ p9.GID) (p9.QID, error)
- func (l *Local) Open(mode p9.OpenFlags) (p9.QID, uint32, error)
- func (l *Local) ReadAt(p []byte, offset int64) (int, error)
- func (l *Local) Readdir(offset uint64, count uint32) (p9.Dirents, error)
- func (l *Local) Readlink() (string, error)
- func (l *Local) RenameAt(oldName string, newDir p9.File, newName string) error
- func (l *Local) Renamed(parent p9.File, newName string)
- func (l *Local) Symlink(oldname string, newname string, _ p9.UID, _ p9.GID) (p9.QID, error)
- func (l *Local) Walk(names []string) ([]p9.QID, p9.File, error)
- func (l *Local) WriteAt(p []byte, offset int64) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RootAttacher ¶
RootAttacher attaches at the host file system's root.
Types ¶
type Local ¶
type Local struct { p9.DefaultWalkGetAttr templatefs.NoopFile // contains filtered or unexported fields }
Local is a p9.File.
func (*Local) Create ¶
func (l *Local) Create(name string, mode p9.OpenFlags, permissions p9.FileMode, _ p9.UID, _ p9.GID) (p9.File, p9.QID, uint32, error)
Create implements p9.File.Create.
Click to show internal directories.
Click to hide internal directories.