Documentation
¶
Overview ¶
Package capture records provider-independent stdio JSONL with owned process lifecycle, lossless native JSON, and explicit failure evidence.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnectOptions ¶
type ConnectOptions struct {
URL string
TokenFile string
MaxFrameBytes int64
ConnectTimeout time.Duration
}
func (ConnectOptions) Validate ¶
func (o ConnectOptions) Validate() error
Validate checks the private target without opening a connection.
type ErrorKind ¶
type ErrorKind string
ErrorKind describes capture outcomes; callers choose their own exit codes.
type IO ¶
IO supplies process descriptors so capture can interrupt blocked reads and writes. Run owns their use for one invocation, not the caller's descriptors.
type Options ¶
type Options struct {
Output string
ProcessFile string
CWD string
Env []string
ClearEnv bool
Remote *ConnectOptions
Command []string
OmitNativeArgs bool // Keep Command's arguments out of framework metadata.
NativeVersion string
ProxyVersion string
StdinEOFAction string
Timeout time.Duration
ProtocolBytes int64
StderrBytes int64
MaxFrames int64
MaxFrameBytes int64
CleanupTimeout time.Duration
}
Options describes a single capture, independently of command-line parsing. Output must not exist. ProxyVersion identifies the caller's capture binary in the provenance manifest; it does not constrain native executable versions.