Versions in this module Expand all Collapse all v0 v0.2.0 Nov 13, 2026 v0.1.0 Oct 7, 2026 Changes in this version + const DefaultNameSpace + const DefaultPort + var Debug9p bool + var DefaultKeyFile = filepath.Join(os.Getenv("HOME"), ".ssh/cpu_rsa") + var Dump9p bool + var DumpWriter io.Writer = os.Stderr + func GetHostName(host string) string + func GetHostUser(n string) (host, user string) + func GetKeyFile(host, kf string) string + func GetPort(host, port string) (string, error) + func JoinFSTab(tables ...string) string + func NewNullAuthHandler(l net.Listener, fs billy.Filesystem, nonce string) nfs.Handler + func NewOSFS(r string) billy.Filesystem + func NewfsCPIO(c string, mounts ...MountPoint) (*fsCPIO, error) + func ParseBinds(s string) (string, error) + func SetVerbose(f func(string, ...interface{})) + func SrvNFS(cl *Cmd, n string, dir string) (func() error, string, error) + type COS struct + func (fs COS) Chmod(name string, mode os.FileMode) error + func (fs COS) Chown(name string, uid, gid int) error + func (fs COS) Chtimes(name string, atime time.Time, mtime time.Time) error + func (fs COS) Lchown(name string, uid, gid int) error + type CPIO9P struct + func NewCPIO9P(c string) (*CPIO9P, error) + func NewCPIO9PReaderAt(r io.ReaderAt) (*CPIO9P, error) + func (s *CPIO9P) Attach() (p9.File, error) + type CPIO9PFID struct + func (*CPIO9PFID) Lock(pid int, locktype p9.LockType, flags p9.LockFlags, start, length uint64, ...) (p9.LockStatus, error) + func (*CPIO9PFID) Mknod(name string, mode p9.FileMode, major uint32, minor uint32, _ p9.UID, _ p9.GID) (p9.QID, error) + func (*CPIO9PFID) Rename(directory p9.File, name string) error + func (*CPIO9PFID) StatFS() (p9.FSStat, error) + func (l *CPIO9PFID) Create(name string, mode p9.OpenFlags, permissions p9.FileMode, _ p9.UID, _ p9.GID) (p9.File, p9.QID, uint32, error) + func (l *CPIO9PFID) Flush() error + func (l *CPIO9PFID) GetAttr(req p9.AttrMask) (p9.QID, p9.AttrMask, p9.Attr, error) + func (l *CPIO9PFID) Link(target p9.File, newname string) error + func (l *CPIO9PFID) Mkdir(name string, permissions p9.FileMode, _ p9.UID, _ p9.GID) (p9.QID, error) + func (l *CPIO9PFID) Open(mode p9.OpenFlags) (p9.QID, uint32, error) + func (l *CPIO9PFID) ReadAt(p []byte, offset int64) (int, error) + func (l *CPIO9PFID) Readdir(offset uint64, count uint32) (p9.Dirents, error) + func (l *CPIO9PFID) Readlink() (string, error) + func (l *CPIO9PFID) RenameAt(oldName string, newDir p9.File, newName string) error + func (l *CPIO9PFID) SetAttr(mask p9.SetAttrMask, attr p9.SetAttr) error + func (l *CPIO9PFID) Symlink(oldname string, newname string, _ p9.UID, _ p9.GID) (p9.QID, error) + func (l *CPIO9PFID) UnlinkAt(name string, flags uint32) error + func (l *CPIO9PFID) Walk(names []string) ([]p9.QID, p9.File, error) + func (l *CPIO9PFID) WriteAt(p []byte, offset int64) (int, error) + type CPU9P struct + func NewCPU9P(root string) *CPU9P + func (*CPU9P) Mknod(name string, mode p9.FileMode, major uint32, minor uint32, _ p9.UID, _ p9.GID) (p9.QID, error) + func (*CPU9P) Rename(directory p9.File, name string) error + func (*CPU9P) StatFS() (p9.FSStat, error) + func (l *CPU9P) Attach() (p9.File, error) + func (l *CPU9P) Close() error + func (l *CPU9P) Create(name string, mode p9.OpenFlags, permissions p9.FileMode, _ p9.UID, _ p9.GID) (p9.File, p9.QID, uint32, error) + func (l *CPU9P) FSync() error + func (l *CPU9P) Flush() error + func (l *CPU9P) GetAttr(req p9.AttrMask) (p9.QID, p9.AttrMask, p9.Attr, error) + func (l *CPU9P) GetXattr(attr string) ([]byte, error) + func (l *CPU9P) Link(target p9.File, newname string) error + func (l *CPU9P) ListXattrs() ([]string, error) + func (l *CPU9P) Lock(pid int, locktype p9.LockType, flags p9.LockFlags, start, length uint64, ...) (p9.LockStatus, error) + func (l *CPU9P) Mkdir(name string, permissions p9.FileMode, _ p9.UID, _ p9.GID) (p9.QID, error) + func (l *CPU9P) Open(mode p9.OpenFlags) (p9.QID, uint32, error) + func (l *CPU9P) ReadAt(p []byte, offset int64) (int, error) + func (l *CPU9P) Readdir(offset uint64, count uint32) (p9.Dirents, error) + func (l *CPU9P) Readlink() (string, error) + func (l *CPU9P) Remove() error + func (l *CPU9P) RemoveXattr(attr string) error + func (l *CPU9P) RenameAt(oldName string, newDir p9.File, newName string) error + func (l *CPU9P) Renamed(parent p9.File, newName string) + func (l *CPU9P) SetAttr(mask p9.SetAttrMask, attr p9.SetAttr) error + func (l *CPU9P) SetXattr(attr string, data []byte, flags p9.XattrFlags) error + func (l *CPU9P) Symlink(oldname string, newname string, _ p9.UID, _ p9.GID) (p9.QID, error) + func (l *CPU9P) UnlinkAt(name string, flags uint32) error + func (l *CPU9P) Walk(names []string) ([]p9.QID, p9.File, error) + func (l *CPU9P) WriteAt(p []byte, offset int64) (int, error) + type Cmd struct + Args []string + Col int + DisablePrivateKey bool + Env []string + FSTab string + Host string + HostKeyFile string + HostName string + NameSpace string + Ninep bool + Port string + PrivateKeyFile string + Root string + Row int + SessionErr io.Reader + SessionIn io.WriteCloser + SessionOut io.Reader + Stderr io.WriteCloser + Stdin io.Reader + Stdout io.WriteCloser + Timeout time.Duration + func Command(host string, args ...string) *Cmd + func (c *Cmd) Close() error + func (c *Cmd) CombinedOutput() ([]byte, error) + func (c *Cmd) Dial() error + func (c *Cmd) HostKeyConfig(hostKeyFile string) error + func (c *Cmd) Listen(n, addr string) (net.Listener, error) + func (c *Cmd) Outputs() ([]bytes.Buffer, error) + func (c *Cmd) Run() error + func (c *Cmd) SSHStdin(w io.WriteCloser, r io.Reader) + func (c *Cmd) SetEnv(envs ...string) error + func (c *Cmd) SetOptions(opts ...Set) error + func (c *Cmd) SetupInteractive() error + func (c *Cmd) Signal(s ssh.Signal) error + func (c *Cmd) Start() error + func (c *Cmd) TTYIn(s *ssh.Session, w io.WriteCloser, r io.Reader) + func (c *Cmd) UserKeyConfig() error + func (c *Cmd) Wait() error + type MountPoint struct + func WithMount(n string, fs billy.Filesystem) MountPoint + type NullAuthHandler struct + func (c *NullAuthHandler) InvalidateHandle(billy.Filesystem, []byte) error + func (h *NullAuthHandler) Change(fs billy.Filesystem) billy.Change + func (h *NullAuthHandler) FSStat(ctx context.Context, f billy.Filesystem, s *nfs.FSStat) error + func (h *NullAuthHandler) FromHandle([]byte) (billy.Filesystem, []string, error) + func (h *NullAuthHandler) HandleLimit() int + func (h *NullAuthHandler) Mount(ctx context.Context, conn net.Conn, req nfs.MountRequest) (status nfs.MountStatus, hndl billy.Filesystem, auths []nfs.AuthFlavor) + func (h *NullAuthHandler) ToHandle(f billy.Filesystem, s []string) []byte + type Set func(*Cmd) error + func With9P(p9 bool) Set + func WithDisablePrivateKey(disable bool) Set + func WithFSTab(fstab string) Set + func WithHostKeyFile(key string) Set + func WithNameSpace(ns string) Set + func WithNetwork(network string) Set + func WithPort(port string) Set + func WithPrivateKeyFile(key string) Set + func WithRoot(root string) Set + func WithServer(a p9.Attacher) Set + func WithTimeout(timeout string) Set + type Union9P struct + func NewUnion9P(mounts []UnionMount) (*Union9P, error) + func (u *Union9P) Attach() (p9.File, error) + type UnionMount struct + func NewUnionMount(w []string, m p9.File) UnionMount