Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
genbundle
command
Command genbundle exports generated bundle artifacts to stdout.
|
Command genbundle exports generated bundle artifacts to stdout. |
|
gendocs
command
|
|
|
pacto
command
|
|
|
examples
|
|
|
demo
command
Package main provides a browser/WASM build of the Pacto dashboard backed by contracts embedded at compile time, so the whole demo runs client-side with no server and no live OCI access.
|
Package main provides a browser/WASM build of the Pacto dashboard backed by contracts embedded at compile time, so the whole demo runs client-side with no server and no live OCI access. |
|
demo/genlocks
command
Command genlocks generates committed pacto.lock files for the dependency-bearing demo bundles, OFFLINE and DETERMINISTICALLY.
|
Command genlocks generates committed pacto.lock files for the dependency-bearing demo bundles, OFFLINE and DETERMINISTICALLY. |
|
internal
|
|
|
logger
Package logger configures the global slog logger based on verbosity.
|
Package logger configures the global slog logger based on verbosity. |
|
mcp
Package mcp provides an MCP (Model Context Protocol) server that exposes Pacto contract operations as tools for AI agents.
|
Package mcp provides an MCP (Model Context Protocol) server that exposes Pacto contract operations as tools for AI agents. |
|
testutil
Package testutil provides shared test mocks and fixtures used across multiple test packages to avoid duplication.
|
Package testutil provides shared test mocks and fixtures used across multiple test packages to avoid duplication. |
|
pkg
|
|
|
contract
Package contract defines the core data model for Pacto service contracts: the in-memory representation of a pacto.yaml and the types for service identity, interfaces, dependencies, configurations, policies, runtime semantics, scaling, and readiness.
|
Package contract defines the core data model for Pacto service contracts: the in-memory representation of a pacto.yaml and the types for service identity, interfaces, dependencies, configurations, policies, runtime semantics, scaling, and readiness. |
|
dashboard
Package dashboard serves the Pacto dashboard: a REST API and web UI that aggregates contract and runtime data from multiple sources — Kubernetes (via the operator), OCI registries, local directories, and on-disk cache — into a single view of a service fleet.
|
Package dashboard serves the Pacto dashboard: a REST API and web UI that aggregates contract and runtime data from multiple sources — Kubernetes (via the operator), OCI registries, local directories, and on-disk cache — into a single view of a service fleet. |
|
diff
Package diff compares two versioned contracts and classifies each change as non-breaking, potentially breaking, or breaking to downstream consumers.
|
Package diff compares two versioned contracts and classifies each change as non-breaking, potentially breaking, or breaking to downstream consumers. |
|
doc
Package doc generates Markdown documentation from a dashboard service snapshot and serves it as rendered HTML.
|
Package doc generates Markdown documentation from a dashboard service snapshot and serves it as rendered HTML. |
|
graph
Package graph builds and traverses a service's dependency graph.
|
Package graph builds and traverses a service's dependency graph. |
|
ignore
Package ignore implements .pactoignore filtering for bundle packaging.
|
Package ignore implements .pactoignore filtering for bundle packaging. |
|
lock
Package lock models pacto.lock: the committed, deterministic record of the resolved dependency + reference closure.
|
Package lock models pacto.lock: the committed, deterministic record of the resolved dependency + reference closure. |
|
oci
Package oci stores and retrieves Pacto contract bundles in OCI registries.
|
Package oci stores and retrieves Pacto contract bundles in OCI registries. |
|
openapi
Package openapi parses OpenAPI specs (YAML or JSON) into a flat list of endpoints.
|
Package openapi parses OpenAPI specs (YAML or JSON) into a flat list of endpoints. |
|
override
Package override merges values into a contract's YAML from CLI flags.
|
Package override merges values into a contract's YAML from CLI flags. |
|
plugin
Package plugin discovers and executes out-of-process Pacto plugins.
|
Package plugin discovers and executes out-of-process Pacto plugins. |
|
readiness
Package readiness derives operational readiness state from a contract's declared readiness section.
|
Package readiness derives operational readiness state from a contract's declared readiness section. |
|
sbom
Package sbom provides SBOM parsing and diffing for Pacto bundles.
|
Package sbom provides SBOM parsing and diffing for Pacto bundles. |
|
schemax
Package schemax extracts human-readable property summaries from JSON Schema documents and configuration value maps.
|
Package schemax extracts human-readable property summaries from JSON Schema documents and configuration value maps. |
|
semver
Package semver is the single source of truth for semver tag handling shared by the CLI/OCI resolver and the dashboard data sources.
|
Package semver is the single source of truth for semver tag handling shared by the CLI/OCI resolver and the dashboard data sources. |
|
validation
Package validation checks a contract across four layers — structural (JSON Schema), cross-field consistency, semantic rules, and policy enforcement — and reports errors and warnings.
|
Package validation checks a contract across four layers — structural (JSON Schema), cross-field consistency, semantic rules, and policy enforcement — and reports errors and warnings. |
|
tests
|
|
|
e2e/testplugin
command
testplugin is a minimal pacto plugin for e2e testing.
|
testplugin is a minimal pacto plugin for e2e testing. |
Click to show internal directories.
Click to hide internal directories.