MCPcopy Index your code
hub / github.com/camallo/dkregistry-rs

github.com/camallo/dkregistry-rs @v0.5.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.5.0 ↗ · + Follow
184 symbols 760 edges 35 files 41 documented · 22%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

dkregistry

Build Status LoC Documentation

A pure-Rust asynchronous library for Docker Registry API.

dkregistry provides support for asynchronous interaction with container registries conformant to the Docker Registry HTTP API V2 specification.

Configurable features

The following is a list of Cargo features that consumers can enable or disable:

  • reqwest-default-tls (enabled by default): provides TLS support via system-specific library (OpenSSL on Linux)
  • reqwest-rustls: provides TLS support via the rustls library

Testing

Integration tests

This library relies on the mockito framework for mocking.

Mock tests can be enabled via the test-mock feature:

cargo test --features test-mock

Interoperability tests

This library includes additional interoperability tests against some of the most common registries.

Those tests are not run by default as they require network access and registry credentials.

They are gated behind a dedicated "test-net" feature and can be run as:

cargo test --features test-net

Credentials for those registries must be provided via environmental flags.

License

Licensed under either of

  • Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Core symbols most depended-on inside this repo

registry
called by 46
src/reference.rs
insecure_registry
called by 41
src/v2/config.rs
build
called by 41
src/v2/config.rs
username
called by 40
src/v2/config.rs
password
called by 40
src/v2/config.rs
is_v2_supported
called by 17
src/v2/mod.rs
build_reqwest
called by 11
src/v2/mod.rs
get_tags
called by 10
src/v2/tags.rs

Shape

Function 89
Method 55
Class 27
Enum 13

Languages

Rust100%

Modules by API surface

src/v2/auth.rs17 symbols
tests/net/quay_io/mod.rs16 symbols
src/reference.rs14 symbols
src/v2/manifest/mod.rs12 symbols
src/v2/manifest/manifest_schema2.rs12 symbols
src/v2/content_digest.rs11 symbols
src/v2/config.rs10 symbols
tests/manifest.rs8 symbols
src/v2/mod.rs8 symbols
tests/reference.rs7 symbols
tests/net/gcr_io/mod.rs7 symbols
tests/mock/api_version.rs6 symbols

For agents

$ claude mcp add dkregistry-rs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page