Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFeatures ¶
CheckFeatures verifies the ticket advertises every feature this client needs. Unknown extra features are tolerated; a missing required one is a definite pre-input refusal (exit 2).
func UsageNotice ¶
func WatchResize ¶
func WatchSignals ¶
Types ¶
type LockResponder ¶ added in v0.1.1
LockResponder turns a lock_device_challenge envelope into a lock_device_proof envelope. It returns an error the caller surfaces verbatim, never a partial or an empty reply.
type Outcome ¶
type Outcome struct {
ExitCode int
Detached bool
Replaced bool
// LockError carries the reason a protected workspace refused this attach,
// so the caller reports the lock code rather than a generic close.
LockError error
}
type Streams ¶
type Streams struct {
Input io.Reader
Output io.Writer
Resize <-chan Size
Signals <-chan os.Signal
// Lock answers a guest lock_device_challenge with the proof envelope for
// this device's live grant. It is nil when no grant is stored, which is the
// correct state for an open workspace and a definite refusal for a
// protected one: the CLI never guesses a proof it cannot sign.
Lock LockResponder
}