Documentation
¶
Overview ¶
Package share publishes a directory as an NFSv3 export behind a tailcat address.
Index ¶
Constants ¶
View Source
const ( // PortNFS carries the NFSv3 and MOUNT protocols on one TCP stream. PortNFS uint16 = 2049 // PortInfo returns one JSON Info document per connection, then closes. PortInfo uint16 = 2050 )
Tunnel ports served by a tailmount sharer. Clients dial these through the tailcat tunnel; nothing listens on them on the host network.
View Source
const ( ModeReadWrite = "rw" ModeReadOnly = "ro" )
Access modes a share can be published with.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Info ¶
type Info struct {
Mode string `json:"mode"`
Name string `json:"name"`
Version string `json:"version"`
}
Info describes a share to a client before it mounts. The client needs the mode to pick the right mount flag and the name to choose a mountpoint.
type Options ¶
type Options struct {
// Dir is the directory to publish. Empty means the working directory.
Dir string
// ReadOnly enforces read-only access on the server.
ReadOnly bool
// Verbose enables tailcat and go-nfs diagnostic logging.
Verbose bool
// Out receives the address and instructions for humans. Defaults to stdout.
Out io.Writer
}
Options configure a share.
Click to show internal directories.
Click to hide internal directories.