package
0.0.0-20241002035518-1e039682b16d
Repository: https://github.com/u-root/cpu.git
Documentation: pkg.go.dev
# Functions
Command implements exec.Command.
GetHostName reads the host name from the ssh config file, if needed.
GetHostUser gets the user and host name.
GetKeyFile picks a keyfile if none has been set.
GetPort gets a port.
JoinFSTab joins an arbitrary number of fstab-style strings.
NewCPIO9P returns a CPIO9P, properly initialized, from a path.
NewCPIO9PReaderAt returns a CPIO9P, properly initialized, from an io.ReaderAt.
NewCPU9P returns a CPU9P, properly initialized.
NewfsCPIO returns a fsCPIO, properly initialized.
NewNullAuthHandler creates a handler for the provided filesystem TODO: see if the newer NFS can supply this.
NewOSFS returns a billy.FileSystem for a path.
NewUnion9P returns a Union9P, properly initialized, from a []UnionMount.
NewUnionMount creates a new Union Mount from a []string and a p9.File.
ParseBinds parses a CPU_NAMESPACE-style string to a an fstab format string.
SetVerbose sets the verbose printing function.
SrvNFS sets up an nfs server.
With9P enables the 9P2000 server in cpu.
WithDisablePrivateKey disables using private keys to encrypt the SSH connection.
WithFSTab reads a file for the FSTab member.
WithHostKeyFile adds a host key to a Cmd.
WithMount allows the addition of mounts to an fsCPIO, as part of a NewfsCPIO call.
WithNameSpace sets the namespace to Cmd.There is no default: having some default violates the principle of least surprise for package users.
WithNetwork sets the network.
WithPort sets the port in the Cmd.
WithPrivateKeyFile adds a private key file to a Cmd.
WithRoot adds a root to a Cmd.
WithServer allows setting custom 9P servers.
WithTimeout sets the 9p timeout.
# Constants
DefaultNameSpace is the default used if the user does not request something else.
DefaultPort is the default cpu port.
# Variables
Debug9p enables 9p debugging.
DefaultKeyFile is the default key for cpu users.
Dump9p enables dumping 9p packets.
DumpWriter is an io.Writer to which dump packets are written.
# Structs
Cmd is a cpu client.
COS or OSFS + Change wraps a billy.FS to not fail the `Change` interface.
CPIO9P is a p9.Attacher.
CPIO9PFID defines a FID.
CPU9P is a p9.Attacher.
MountPoint is a mountpoint in an fsCPIO.
NullAuthHandler returns a NFS backing that exposes a given file system in response to all mount requests.
Union9P is a p9.Attacher.
Bind is a single bind For a given Twalk, the walk []string will be compared to the string slice in the Twalk.
# Type aliases
Set is the type of function used to set options in SetOptions.