Documentation
¶
Overview ¶
Package endpoint is the in-sandbox side of workspace sync. It executes filesystem operations it is told to perform and computes nothing: the controller on the engineer's machine decides every action.
That split follows from the lifecycle. This process is terminated without warning whenever the WebSocket drops, the sandbox idles out, or the TTL fires, so anything authoritative held here is state that is routinely lost. It persists exactly two things, both disposable: a root marker and a staging directory.
Index ¶
Constants ¶
const ( // ProtocolVersion is what this build speaks. It is the protocol, never the // build: the CLI is installed by the engineer and the in-sandbox binary // ships with the platform, so differing builds are the normal case. ProtocolVersion = 1 MinProtocolVersion = 1 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// Root is the directory to serve, as given on the command line.
Root string
// Workspace confines Root after symlink resolution. Empty disables the
// check, which is what a local test harness wants; inside a sandbox it is
// the workspace mount and the confinement is real.
Workspace string
// Version reports the endpoint build, for diagnostics only. Never used to
// accept or refuse a session.
Version string
}
Options configures one endpoint session.