internal/

directory
v0.41.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2026 License: Apache-2.0

Directories

Path Synopsis
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/).
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.
Package adapterdist implements resolution and caching of adapter source specifications for stunt.
Package adapterdist implements resolution and caching of adapter source specifications for stunt.
Package catalog provides a registry of stunt adapters.
Package catalog provides a registry of stunt adapters.
Package contrib implements the contributor workflow for building stunt adapters.
Package contrib implements the contributor workflow for building stunt adapters.
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.
har
Package har imports HAR 1.2 files into stunt adapters.
Package har imports HAR 1.2 files into stunt adapters.
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.
openapi
Package openapi imports OpenAPI 3.x specifications into stunt adapters.
Package openapi imports OpenAPI 3.x specifications into stunt adapters.
proto
Package proto imports Protocol Buffer .proto definitions into stunt adapters.
Package proto imports Protocol Buffer .proto definitions into stunt adapters.
Package engine: snapshot/restore of simulator state (collections, kv, blobs).
Package engine: snapshot/restore of simulator state (collections, kv, blobs).
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.
requestlog
Package requestlog records simulated-API request/response traffic to SQLite.
Package requestlog records simulated-API request/response traffic to SQLite.
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.
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.
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.
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).
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.).
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.
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.
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.
gen
Package gen provides a named generator registry.
Package gen provides a named generator registry.
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.
kv
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL