Expand description
A pure-Rust asynchronous library for Docker Registry API.
This library provides support for asynchronous interaction with container registries conformant to the Docker Registry HTTP API V2.
§Example
use docker_registry::v2::Client;
// Check whether a registry supports API v2.
let host = "quay.io";
let client = Client::configure()
.insecure_registry(false)
.registry(host)
.build()?;
match client.is_v2_supported().await? {
false => println!("{} does NOT support v2", host),
true => println!("{} supports v2", host),
};
Modules§
- errors
- Defines root error type
- mediatypes
- Media-types for API objects.
- reference
- Parser for
docker://
URLs. - render
- Render a docker image.
- v2
- Client library for Docker Registry API v2.
Statics§
- USER_
AGENT - Default User-Agent client identity.
Functions§
- get_
credentials - Get registry credentials from a JSON config reader.