[][src]Crate dkregistry

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

errors

Error chains, types and traits.

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.