Documentation
¶
Overview ¶
Command strata indexes a container registry into a queryable lineage graph.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package cmd defines strata's commands, one per file.
|
Package cmd defines strata's commands, one per file. |
|
examples
|
|
|
demo-registry
command
Command demo-registry runs an in-memory OCI registry seeded with a realistic organization's images, so strata can be tried without access to a real registry:
|
Command demo-registry runs an in-memory OCI registry seeded with a realistic organization's images, so strata can be tried without access to a real registry: |
|
internal
|
|
|
acr
Package acr lists Azure Container Registry through its /acr/v1 API instead of the distribution API.
|
Package acr lists Azure Container Registry through its /acr/v1 API instead of the distribution API. |
|
api
Package api serves strata's HTTP API.
|
Package api serves strata's HTTP API. |
|
chain
Package chain computes OCI layer chain IDs.
|
Package chain computes OCI layer chain IDs. |
|
cli
Package cli holds what strata's commands share: configuration loading through viper, opening the index, and output helpers.
|
Package cli holds what strata's commands share: configuration loading through viper, opening the index, and output helpers. |
|
config
Package config defines strata's configuration file, strata.yaml.
|
Package config defines strata's configuration file, strata.yaml. |
|
crawl
Package crawl walks a registry over the OCI Distribution API and writes what it finds to the index: repos, then tags, then manifests and image configs.
|
Package crawl walks a registry over the OCI Distribution API and writes what it finds to the index: repos, then tags, then manifests and image configs. |
|
ecr
Package ecr lists Amazon ECR registries through the ECR API instead of the distribution API.
|
Package ecr lists Amazon ECR registries through the ECR API instead of the distribution API. |
|
fixture
Package fixture builds synthetic images and indexes for tests, so lineage, staleness and query tests can describe a registry in a few lines instead of crawling one.
|
Package fixture builds synthetic images and indexes for tests, so lineage, staleness and query tests can describe a registry in a few lines instead of crawling one. |
|
gar
Package gar lists Google Artifact Registry Docker repositories through the Artifact Registry API instead of the distribution API.
|
Package gar lists Google Artifact Registry Docker repositories through the Artifact Registry API instead of the distribution API. |
|
graph
Package graph is the lineage graph strata renders: nodes for images, external roots and phantom ancestors, edges with their provenance, and the budget rules that keep a descendant tree of a popular base readable.
|
Package graph is the lineage graph strata renders: nodes for images, external roots and phantom ancestors, edges with their provenance, and the budget rules that keep a descendant tree of a popular base readable. |
|
harbor
Package harbor lists a Harbor registry through Harbor's v2 API instead of the distribution API.
|
Package harbor lists a Harbor registry through Harbor's v2 API instead of the distribution API. |
|
lineage
Package lineage derives parent edges between images from their layer stacks, adds the parents images declare in annotations and labels, and materializes ancestry facts for fast queries.
|
Package lineage derives parent edges between images from their layer stacks, adds the parents images declare in annotations and labels, and materializes ancestry facts for fast queries. |
|
mcpserver
Package mcpserver exposes strata's questions as Model Context Protocol tools, so an agent can ask "which prod images are on an EOL base?" and get an answer from the index directly.
|
Package mcpserver exposes strata's questions as Model Context Protocol tools, so an agent can ask "which prod images are on an EOL base?" and get an answer from the index directly. |
|
model
Package model holds the records strata indexes: images, tags, layers, referrers and lineage edges.
|
Package model holds the records strata indexes: images, tags, layers, referrers and lineage edges. |
|
query
Package query parses strata's filter language and compiles it to SQL, so every filter runs inside DuckDB rather than in application memory.
|
Package query parses strata's filter language and compiles it to SQL, so every filter runs inside DuckDB rather than in application memory. |
|
regapi
Package regapi is the HTTP client the registry API listers share: JSON GETs with authentication, paging through Link headers, and a count of calls for the crawl's request totals.
|
Package regapi is the HTTP client the registry API listers share: JSON GETs with authentication, paging through Link headers, and a count of calls for the crawl's request totals. |
|
render
Package render writes strata's answers as tables, trees, JSON, CSV, NDJSON, Mermaid, DOT, SVG and self-contained HTML.
|
Package render writes strata's answers as tables, trees, JSON, CSV, NDJSON, Mermaid, DOT, SVG and self-contained HTML. |
|
service
Package service answers strata's questions over an index: what an image is, where it came from, what is built on it, and whether it is stale.
|
Package service answers strata's questions over an index: what an image is, where it came from, what is built on it, and whether it is stale. |
|
stale
Package stale gives every image an explainable staleness verdict.
|
Package stale gives every image an explainable staleness verdict. |
|
store
Package store keeps strata's index in a local DuckDB file.
|
Package store keeps strata's index in a local DuckDB file. |
|
testenv
Package testenv builds an indexed test registry for tests of the interfaces on top of the service: the API, MCP server, CLI and commands.
|
Package testenv builds an indexed test registry for tests of the interfaces on top of the service: the API, MCP server, CLI and commands. |
|
testreg
Package testreg runs an in-memory OCI registry seeded with a small, realistic image graph, for crawler, CLI and API tests.
|
Package testreg runs an in-memory OCI registry seeded with a small, realistic image graph, for crawler, CLI and API tests. |
|
ui
Package ui holds every terminal style strata uses, built from the brand palette with adaptive colors that read on light and dark terminals, and the slog setup.
|
Package ui holds every terminal style strata uses, built from the brand palette with adaptive colors that read on light and dark terminals, and the slog setup. |
|
web
Package web serves strata's web UI: a few static files embedded in the binary that read the JSON API.
|
Package web serves strata's web UI: a few static files embedded in the binary that read the JSON API. |
|
pkg
|
|
|
client
Package client provides primitives to interact with the openapi HTTP API.
|
Package client provides primitives to interact with the openapi HTTP API. |
|
tools
|
|
|
doccheck
command
Command doccheck fails if any function or method in the given packages lacks a doc comment, or any package lacks a package comment.
|
Command doccheck fails if any function or method in the given packages lacks a doc comment, or any package lacks a package comment. |
|
gendocs
command
Command gendocs writes one Markdown reference page per strata command into docs/reference/commands, so the docs never drift from the CLI.
|
Command gendocs writes one Markdown reference page per strata command into docs/reference/commands, so the docs never drift from the CLI. |
|
generated
command
Command generated prints the import-path-qualified names of generated Go files (those with a "Code generated ...
|
Command generated prints the import-path-qualified names of generated Go files (those with a "Code generated ... |
|
internal/gofiles
Package gofiles walks the Go packages named by command-line patterns and parses their files, for the repo's check tools.
|
Package gofiles walks the Go packages named by command-line patterns and parses their files, for the repo's check tools. |
Click to show internal directories.
Click to hide internal directories.




