pub struct Registry { /* private fields */ }
Implementations§
Source§impl Registry
impl Registry
Sourcepub async fn namespaces(&self) -> Result<Vec<Namespace>, Error>
pub async fn namespaces(&self) -> Result<Vec<Namespace>, Error>
Returns a list of namespaces the user has access to
Sourcepub async fn namespace(&self, namespace_id: &str) -> Result<Namespace, Error>
pub async fn namespace(&self, namespace_id: &str) -> Result<Namespace, Error>
Returns the namespace details for a given namespace_id
Sourcepub async fn images(&self) -> Result<Vec<Image>, Error>
pub async fn images(&self) -> Result<Vec<Image>, Error>
Returns a list of all images accessible to the user
Retrieves all tags for a given image
and returns them
Sourcepub async fn delete_image_by_tag(
&self,
tag_id: &str,
force: bool,
) -> Result<ImageTag, Error>
pub async fn delete_image_by_tag( &self, tag_id: &str, force: bool, ) -> Result<ImageTag, Error>
Deletes an image with the given image_tag
if it exists - the operation will fail if two
tags share the same digest unless force
is true
Sourcepub fn get(&self, path: &str) -> RequestBuilder
pub fn get(&self, path: &str) -> RequestBuilder
Returns a prepared RequestBuilder
that is ready to issue a GET request
to the given path
and a X-Auth-Token
header already set
Sourcepub fn delete(&self, path: &str) -> RequestBuilder
pub fn delete(&self, path: &str) -> RequestBuilder
Returns a prepared RequestBuilder
that is ready to issue a DELETE request
to the given path
and a X-Auth-Token
header already set
Auto Trait Implementations§
impl Freeze for Registry
impl !RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl !UnwindSafe for Registry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more