Crate dkregistry
source ·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 tokio_core::reactor::Core;
use dkregistry::v2::Client;
// Check whether a registry supports API v2.
let host = "quay.io";
let mut tcore = Core::new()?;
let dclient = Client::configure(&tcore.handle())
.insecure_registry(false)
.registry(host)
.build()?;
let check = dclient.is_v2_supported();
match tcore.run(check)? {
false => println!("{} does NOT support v2", host),
true => println!("{} supports v2", host),
};
Modules
Error chains, types and traits.
Media-types for API objects.
Parser for
docker://
URLs.Render a docker image.
Client library for Docker Registry API v2.
Statics
Default User-Agent client identity.
Functions
Get registry credentials from a JSON config reader.