Struct dkregistry::v2::Client
source · pub struct Client { /* private fields */ }
Expand description
A Client to make outgoing API requests to a registry.
Implementations
sourceimpl Client
impl Client
pub fn get_catalog(&self, paginate: Option<u32>) -> StreamCatalog
sourceimpl Client
impl Client
sourcepub fn set_token(&mut self, token: Option<&str>) -> &Self
pub fn set_token(&mut self, token: Option<&str>) -> &Self
Set the token to be used for further registry requests.
sourcepub fn login(&self, scopes: &[&str]) -> FutureTokenAuth
pub fn login(&self, scopes: &[&str]) -> FutureTokenAuth
Perform registry authentication and return an authenticated token.
On success, the returned token will be valid for all requested scopes.
sourcepub fn is_auth(&self, token: Option<&str>) -> FutureBool
pub fn is_auth(&self, token: Option<&str>) -> FutureBool
Check whether the client is authenticated with the registry.
sourceimpl Client
impl Client
sourcepub fn get_manifest(&self, name: &str, reference: &str) -> FutureManifest
pub fn get_manifest(&self, name: &str, reference: &str) -> FutureManifest
Fetch an image manifest.
The name and reference parameters identify the image. The reference may be either a tag or digest.
sourcepub fn has_manifest(
&self,
name: &str,
reference: &str,
mediatypes: Option<&[&str]>
) -> FutureMediaType
pub fn has_manifest(
&self,
name: &str,
reference: &str,
mediatypes: Option<&[&str]>
) -> FutureMediaType
Check if an image manifest exists.
The name and reference parameters identify the image. The reference may be either a tag or digest.
sourceimpl Client
impl Client
sourcepub fn has_blob(&self, name: &str, digest: &str) -> FutureBool
pub fn has_blob(&self, name: &str, digest: &str) -> FutureBool
Check if a blob exists.
sourcepub fn get_blob(&self, name: &str, digest: &str) -> FutureBlob
pub fn get_blob(&self, name: &str, digest: &str) -> FutureBlob
Retrieve blob.
sourceimpl Client
impl Client
pub fn configure(handle: &Handle) -> Config
pub fn is_v2_supported(&self) -> FutureBool
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more