Trait RegistryApiMut

Source
pub trait RegistryApiMut {
    type Error;

    // Required methods
    fn create_registry(
        &mut self,
        registry_request: RegistryRequest,
    ) -> Result<Registry, Self::Error>;
    fn delete_registry(&mut self, registry_id: Uuid) -> Result<(), Self::Error>;
    fn get_all_registries(&mut self) -> Result<Vec<Registry>, Self::Error>;
    fn get_registry(
        &mut self,
        registry_id: Uuid,
    ) -> Result<Registry, Self::Error>;
    fn get_registry_for_app(
        &mut self,
        app_id: Uuid,
    ) -> Result<AppRegistryResponse, Self::Error>;
    fn get_registry_for_image(
        &mut self,
        image_name: String,
    ) -> Result<ImageRegistryResponse, Self::Error>;
    fn update_registry(
        &mut self,
        registry_id: Uuid,
        body: UpdateRegistryRequest,
    ) -> Result<Registry, Self::Error>;
}

Required Associated Types§

Required Methods§

Source

fn create_registry( &mut self, registry_request: RegistryRequest, ) -> Result<Registry, Self::Error>

Add a new registry to an account

Source

fn delete_registry(&mut self, registry_id: Uuid) -> Result<(), Self::Error>

Delete registry

Source

fn get_all_registries(&mut self) -> Result<Vec<Registry>, Self::Error>

Get details of all registry in the account

Source

fn get_registry(&mut self, registry_id: Uuid) -> Result<Registry, Self::Error>

Get details of a particular registry

Source

fn get_registry_for_app( &mut self, app_id: Uuid, ) -> Result<AppRegistryResponse, Self::Error>

Get details of the registry that will be used for the particular app images

Source

fn get_registry_for_image( &mut self, image_name: String, ) -> Result<ImageRegistryResponse, Self::Error>

Get details of the registry that will be used for the particular image

Source

fn update_registry( &mut self, registry_id: Uuid, body: UpdateRegistryRequest, ) -> Result<Registry, Self::Error>

Update a particular registry details

Implementors§

Source§

impl<T, E> RegistryApiMut for T
where T: RegistryApi<Error = E>,

Source§

type Error = E