Documentation
¶
Overview ¶
Package application is the single use-case boundary shared by the CLI and importable library adapters.
Index ¶
- func ExecutionReport(fixtureDir, executionID string) (*lifecycle.ExecutionReport, error)
- func Export(o ExportOptions) error
- type ExecutionStart
- type ExportOptions
- type Fixture
- type MockOptions
- type MockResult
- type MockRun
- type OpenResult
- type PrepareOptions
- type RecordOptions
- type RecordResult
- type StartMockStreams
- type Streams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecutionReport ¶
func ExecutionReport(fixtureDir, executionID string) (*lifecycle.ExecutionReport, error)
ExecutionReport regenerates validated evidence for one mock execution.
func Export ¶
func Export(o ExportOptions) error
Export validates caller input and copies the current recording.
Types ¶
type ExecutionStart ¶
type ExecutionStart struct {
FixtureID string
ExecutionID string
ConnectionID string
Material corpus.Material
ExecutionSHA256 string
ExecutionPath string
Workspace string
ProtocolCwd string
Home string
Config string
Tmp string
HistoryFiles map[string]string
Env map[string]string
NativeArgs []string
Transport lifecycle.MockTransport
}
ExecutionStart is the immutable public projection of one claimed execution overlay.
type ExportOptions ¶
type Fixture ¶
func Prepare ¶
func Prepare(o PrepareOptions) (*Fixture, error)
Prepare validates caller input and creates one prepared fixture.
type MockOptions ¶
type MockResult ¶
func Mock ¶
func Mock(ctx context.Context, o MockOptions, streams Streams) (*MockResult, error)
Mock validates caller input and owns one mock action.
type MockRun ¶
type MockRun struct {
Start ExecutionStart
// contains filtered or unexported fields
}
MockRun is an in-process mock connection handle.
func StartMock ¶
func StartMock(ctx context.Context, o MockOptions, streams StartMockStreams) (*MockRun, error)
StartMock validates, claims, writes running evidence and exposes the overlay before releasing replay.
func (*MockRun) Abort ¶
Abort requests cancellation and closes fixture-side streams. It is idempotent; Wait remains the only final-report path.
func (*MockRun) Done ¶
func (r *MockRun) Done() <-chan struct{}
Done closes after replay, protocol receipt and lifecycle finalization for this connection have ended.
func (*MockRun) FullConsumption ¶
func (r *MockRun) FullConsumption() <-chan struct{}
FullConsumption reports the one-shot safe point for SDK input half-close.
type OpenResult ¶
func Open ¶
func Open(fixtureDir string) (*OpenResult, error)
Open reads the prepared fixture and its optional current recording.
type PrepareOptions ¶
type RecordOptions ¶
type RecordResult ¶
type RecordResult = lifecycle.RecordResult
func Record ¶
func Record(ctx context.Context, o RecordOptions, streams Streams) (*RecordResult, error)
Record validates caller input and owns one record action.
type StartMockStreams ¶
type StartMockStreams struct {
Reader io.ReadCloser
Writer io.WriteCloser
Stderr io.Writer
}
StartMockStreams are the fixture-side closeable streams transferred to a StartMockAgent run.