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) GetXattr(attr string) ([]byte, error)
- func (l *Local) Link(target p9.File, newname string) error
- func (l *Local) ListXattrs() ([]string, error)
- func (l *Local) Lock(pid int, locktype p9.LockType, flags p9.LockFlags, start, length uint64, ...) (p9.LockStatus, 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) RemoveXattr(attr 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) SetAttr(valid p9.SetAttrMask, attr p9.SetAttr) error
- func (l *Local) SetXattr(attr string, data []byte, flags p9.XattrFlags) error
- 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.
func (*Local) ListXattrs ¶ added in v0.3.0
func (*Local) Lock ¶ added in v0.3.0
func (l *Local) Lock(pid int, locktype p9.LockType, flags p9.LockFlags, start, length uint64, client string) (p9.LockStatus, error)
Lock implements p9.File.Lock.
func (*Local) RemoveXattr ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.