diff --git a/src/client.rs b/src/client.rs index 368ffd52..f78c78bc 100644 --- a/src/client.rs +++ b/src/client.rs @@ -325,7 +325,7 @@ impl Client { /// /// This performs authorization and then stores the token internally to be used /// on other requests. - async fn auth( + pub async fn auth( &mut self, image: &Reference, authentication: &RegistryAuth, @@ -726,7 +726,7 @@ impl Client { /// repository and the registry, but it is not used to verify that /// the digest is a layer inside of the image. (The manifest is /// used for that.) - async fn pull_blob( + pub async fn pull_blob( &self, image: &Reference, digest: &str, diff --git a/src/lib.rs b/src/lib.rs index 7c98d1c1..6c9b0528 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,6 +13,8 @@ mod token_cache; pub use client::Client; #[doc(inline)] pub use reference::{ParseError, Reference}; +#[doc(inline)] +pub use token_cache::RegistryOperation; #[macro_use] extern crate lazy_static;