Directories
¶
| Path | Synopsis |
|---|---|
|
Package adapters embeds the bundled reference adapters into the stunt binary so that a `brew install stunt` / `go install stuntapi.com/stunt/cmd/stunt` user gets all reference adapters with zero cloning.
|
Package adapters embeds the bundled reference adapters into the stunt binary so that a `brew install stunt` / `go install stuntapi.com/stunt/cmd/stunt` user gets all reference adapters with zero cloning. |
|
cmd
|
|
|
stunt
command
|
|
|
internal
|
|
|
adapter
Package adapter defines the on-disk format for a stunt adapter: an adapter.yaml manifest plus convention directories (endpoints/, scripts/, fixtures/, templates/, schemas/).
|
Package adapter defines the on-disk format for a stunt adapter: an adapter.yaml manifest plus convention directories (endpoints/, scripts/, fixtures/, templates/, schemas/). |
|
adapter/runtime
Package runtime wires the primitives (Collection + KV + Blob) stores into Starlark handler scripts as builtins, enabling stateful adapters that persist data across requests.
|
Package runtime wires the primitives (Collection + KV + Blob) stores into Starlark handler scripts as builtins, enabling stateful adapters that persist data across requests. |
|
adapterdist
Package adapterdist implements resolution and caching of adapter source specifications for stunt.
|
Package adapterdist implements resolution and caching of adapter source specifications for stunt. |
|
catalog
Package catalog provides a registry of stunt adapters.
|
Package catalog provides a registry of stunt adapters. |
|
contrib
Package contrib implements the contributor workflow for building stunt adapters.
|
Package contrib implements the contributor workflow for building stunt adapters. |
|
contrib/conform
Package conform replays recorded real traces against a locally-running adapter instance and compares the simulator's responses to the recorded expected responses.
|
Package conform replays recorded real traces against a locally-running adapter instance and compares the simulator's responses to the recorded expected responses. |
|
contrib/har
Package har imports HAR 1.2 files into stunt adapters.
|
Package har imports HAR 1.2 files into stunt adapters. |
|
contrib/lint
Package lint checks adapter fixtures and templates for content that looks like REAL recorded data rather than synthetic data.
|
Package lint checks adapter fixtures and templates for content that looks like REAL recorded data rather than synthetic data. |
|
contrib/openapi
Package openapi imports OpenAPI 3.x specifications into stunt adapters.
|
Package openapi imports OpenAPI 3.x specifications into stunt adapters. |
|
contrib/proto
Package proto imports Protocol Buffer .proto definitions into stunt adapters.
|
Package proto imports Protocol Buffer .proto definitions into stunt adapters. |
|
engine
Package engine: snapshot/restore of simulator state (collections, kv, blobs).
|
Package engine: snapshot/restore of simulator state (collections, kv, blobs). |
|
engine/dashboard
Package dashboard serves the localhost admin UI + JSON API for a running engine.
|
Package dashboard serves the localhost admin UI + JSON API for a running engine. |
|
engine/requestlog
Package requestlog records simulated-API request/response traffic to SQLite.
|
Package requestlog records simulated-API request/response traffic to SQLite. |
|
graphqlsim
Package graphqlsim provides a thin GraphQL executor on top of the gqlparser AST.
|
Package graphqlsim provides a thin GraphQL executor on top of the gqlparser AST. |
|
grpcsim
Package grpcsim provides dynamic gRPC serving from a protobuf FileDescriptorSet — no compiled Go stubs required.
|
Package grpcsim provides dynamic gRPC serving from a protobuf FileDescriptorSet — no compiled Go stubs required. |
|
netutil
Package netutil provides networking helpers for stunt: local CA generation, platform trust-store commands, and /etc/hosts management.
|
Package netutil provides networking helpers for stunt: local CA generation, platform trust-store commands, and /etc/hosts management. |
|
netutil/proxy
Package proxy implements a single privileged listener (:80/:443) that terminates TLS (HTTP/2 + HTTPS), routes by Host/SNI header, and reverse-proxies each request to the correct unprivileged backend (the stunt engine on a high port).
|
Package proxy implements a single privileged listener (:80/:443) that terminates TLS (HTTP/2 + HTTPS), routes by Host/SNI header, and reverse-proxies each request to the correct unprivileged backend (the stunt engine on a high port). |
|
pathutil
Package pathutil provides directory-containment validation for file paths resolved from adapter-declared content (rules body.file, collection seeds, graphql schemas, grpc descriptors, etc.).
|
Package pathutil provides directory-containment validation for file paths resolved from adapter-declared content (rules body.file, collection seeds, graphql schemas, grpc descriptors, etc.). |
|
primitives/blob
Package blob provides a filesystem-backed file-content store for services like Drive/Dropbox/S3.
|
Package blob provides a filesystem-backed file-content store for services like Drive/Dropbox/S3. |
|
primitives/clock
Package clock provides a deterministic virtual clock for tests and a real-time clock for normal runs.
|
Package clock provides a deterministic virtual clock for tests and a real-time clock for normal runs. |
|
primitives/events
Package events provides a webhook emitter for pushing event payloads to registered target URLs via HTTP POST.
|
Package events provides a webhook emitter for pushing event payloads to registered target URLs via HTTP POST. |
|
primitives/gen
Package gen provides a named generator registry.
|
Package gen provides a named generator registry. |
|
primitives/identity
Package identity provides a local "yes" auth issuer that mints and validates opaque HMAC-SHA256 tokens with simulated scopes.
|
Package identity provides a local "yes" auth issuer that mints and validates opaque HMAC-SHA256 tokens with simulated scopes. |
|
primitives/validator
Package validator validates a Go value (a parsed JSON map or any other JSON-compatible type) against a JSON-Schema document.
|
Package validator validates a Go value (a parsed JSON map or any other JSON-compatible type) against a JSON-Schema document. |
Click to show internal directories.
Click to hide internal directories.
