[−][src]Struct scaleway_sdk::registry::Registry
Methods
impl Registry
[src]
pub fn new(auth_token: String, region: String) -> Self
[src]
Creates a new Registry
API instance
pub fn endpoint(self, url: &str) -> Self
[src]
Sets endpoint url
by mutating self
pub async fn namespaces<'_>(&'_ self) -> Result<Vec<Namespace>, Error>
[src]
Returns a list of namespaces the user has access to
pub async fn namespace<'_, '_>(
&'_ self,
namespace_id: &'_ str
) -> Result<Namespace, Error>
[src]
&'_ self,
namespace_id: &'_ str
) -> Result<Namespace, Error>
Returns the namespace details for a given namespace_id
pub async fn images<'_>(&'_ self) -> Result<Vec<Image>, Error>
[src]
Returns a list of all images accessible to the user
pub async fn image_tags<'_, '_>(
&'_ self,
image_id: &'_ str
) -> Result<Vec<ImageTag>, Error>
[src]
&'_ self,
image_id: &'_ str
) -> Result<Vec<ImageTag>, Error>
Retrieves all tags for a given image
and returns them
pub async fn delete_image_by_tag<'_, '_>(
&'_ self,
tag_id: &'_ str,
force: bool
) -> Result<ImageTag, Error>
[src]
&'_ 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
pub fn get(&self, path: &str) -> RequestBuilder
[src]
Returns a prepared RequestBuilder
that is ready to issue a GET request
to the given path
and a X-Auth-Token
header already set
pub fn delete(&self, path: &str) -> RequestBuilder
[src]
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 !RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl !UnwindSafe for Registry
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,