Trait em_client::RegistryApi
source[−]pub trait RegistryApi {
type Error;
fn create_registry(
&self,
registry_request: RegistryRequest
) -> Result<Registry, Self::Error>;
fn delete_registry(&self, registry_id: Uuid) -> Result<(), Self::Error>;
fn get_all_registries(&self) -> Result<Vec<Registry>, Self::Error>;
fn get_registry(&self, registry_id: Uuid) -> Result<Registry, Self::Error>;
fn get_registry_for_app(
&self,
app_id: Uuid
) -> Result<AppRegistryResponse, Self::Error>;
fn get_registry_for_image(
&self,
image_name: String
) -> Result<ImageRegistryResponse, Self::Error>;
fn update_registry(
&self,
registry_id: Uuid,
body: UpdateRegistryRequest
) -> Result<Registry, Self::Error>;
}
Associated Types
Required methods
fn create_registry(
&self,
registry_request: RegistryRequest
) -> Result<Registry, Self::Error>
fn create_registry(
&self,
registry_request: RegistryRequest
) -> Result<Registry, Self::Error>
Add a new registry to an account
Get details of all registry in the account
Get details of a particular registry
fn get_registry_for_app(
&self,
app_id: Uuid
) -> Result<AppRegistryResponse, Self::Error>
fn get_registry_for_app(
&self,
app_id: Uuid
) -> Result<AppRegistryResponse, Self::Error>
Get details of the registry that will be used for the particular app images
fn get_registry_for_image(
&self,
image_name: String
) -> Result<ImageRegistryResponse, Self::Error>
fn get_registry_for_image(
&self,
image_name: String
) -> Result<ImageRegistryResponse, Self::Error>
Get details of the registry that will be used for the particular image
fn update_registry(
&self,
registry_id: Uuid,
body: UpdateRegistryRequest
) -> Result<Registry, Self::Error>
fn update_registry(
&self,
registry_id: Uuid,
body: UpdateRegistryRequest
) -> Result<Registry, Self::Error>
Update a particular registry details