pub struct RemoteRegistry { /* private fields */ }Expand description
Remote registry client
Implementations§
Source§impl RemoteRegistry
impl RemoteRegistry
Sourcepub fn with_auth(self, auth: RegistryAuth) -> Self
pub fn with_auth(self, auth: RegistryAuth) -> Self
Set authentication
Sourcepub async fn list_models(&self) -> Result<ListModelsResponse>
pub async fn list_models(&self) -> Result<ListModelsResponse>
List all models in the registry
Sourcepub async fn list_versions(&self, model: &str) -> Result<ListVersionsResponse>
pub async fn list_versions(&self, model: &str) -> Result<ListVersionsResponse>
List versions of a model
Sourcepub async fn get_metadata(
&self,
model: &str,
version: &str,
) -> Result<ModelMetadataResponse>
pub async fn get_metadata( &self, model: &str, version: &str, ) -> Result<ModelMetadataResponse>
Get model metadata
Sourcepub async fn pull_model(&self, model: &str, version: &str) -> Result<Vec<u8>>
pub async fn pull_model(&self, model: &str, version: &str) -> Result<Vec<u8>>
Pull model artifact data
Sourcepub async fn init_push(&self, request: &PushRequest) -> Result<PushResponse>
pub async fn init_push(&self, request: &PushRequest) -> Result<PushResponse>
Initiate a push operation
Sourcepub async fn upload_artifact(
&self,
upload_url: &str,
data: Vec<u8>,
) -> Result<()>
pub async fn upload_artifact( &self, upload_url: &str, data: Vec<u8>, ) -> Result<()>
Upload artifact data to the provided URL
Sourcepub async fn push_model(
&self,
name: &str,
version: &ModelVersion,
data: &[u8],
card: Option<Value>,
) -> Result<()>
pub async fn push_model( &self, name: &str, version: &ModelVersion, data: &[u8], card: Option<Value>, ) -> Result<()>
Complete push operation (full workflow)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RemoteRegistry
impl !UnwindSafe for RemoteRegistry
impl Freeze for RemoteRegistry
impl Send for RemoteRegistry
impl Sync for RemoteRegistry
impl Unpin for RemoteRegistry
impl UnsafeUnpin for RemoteRegistry
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