[][src]Struct scaleway_sdk::registry::Registry

pub struct Registry { /* fields omitted */ }

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]

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]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.