pub struct RegistryClient { /* private fields */ }Expand description
Registry client for querying and downloading skills
Implementations§
Source§impl RegistryClient
impl RegistryClient
Sourcepub fn new(config: RegistryConfig) -> Result<Self, ServiceError>
pub fn new(config: RegistryConfig) -> Result<Self, ServiceError>
Create a new registry client
Sourcepub async fn get_skill(
&self,
name: &str,
) -> Result<Vec<IndexEntry>, ServiceError>
pub async fn get_skill( &self, name: &str, ) -> Result<Vec<IndexEntry>, ServiceError>
Get skill information from registry Returns all versions for the skill (reads single file with newline-delimited JSON)
Sourcepub async fn get_versions(
&self,
name: &str,
) -> Result<Vec<String>, ServiceError>
pub async fn get_versions( &self, name: &str, ) -> Result<Vec<String>, ServiceError>
Get available versions for a skill
Sourcepub async fn get_latest_version(
&self,
name: &str,
include_pre_release: bool,
) -> Result<Option<String>, ServiceError>
pub async fn get_latest_version( &self, name: &str, include_pre_release: bool, ) -> Result<Option<String>, ServiceError>
Get latest version for a skill (excluding pre-releases by default)
Sourcepub async fn get_version(
&self,
name: &str,
version: &str,
) -> Result<Option<IndexEntry>, ServiceError>
pub async fn get_version( &self, name: &str, version: &str, ) -> Result<Option<IndexEntry>, ServiceError>
Get specific version of a skill
Sourcepub async fn download(
&self,
name: &str,
version: &str,
) -> Result<Vec<u8>, ServiceError>
pub async fn download( &self, name: &str, version: &str, ) -> Result<Vec<u8>, ServiceError>
Download skill package
Sourcepub async fn search(
&self,
_query: &str,
) -> Result<Vec<SkillMetadata>, ServiceError>
pub async fn search( &self, _query: &str, ) -> Result<Vec<SkillMetadata>, ServiceError>
Search skills in registry (basic implementation - scans index)
Auto Trait Implementations§
impl Freeze for RegistryClient
impl !RefUnwindSafe for RegistryClient
impl Send for RegistryClient
impl Sync for RegistryClient
impl Unpin for RegistryClient
impl UnsafeUnpin for RegistryClient
impl !UnwindSafe for RegistryClient
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.