Crate dkregistry

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 dkregistry::v2::Client;

// Check whether a registry supports API v2.
let host = "quay.io";
let dclient = Client::configure()
                     .insecure_registry(false)
                     .registry(host)
                     .build()?;
match dclient.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.