pub struct RepositoryManager { /* private fields */ }
Expand description
Repository manager for coordinating scanning and indexing
Implementations§
Source§impl RepositoryManager
impl RepositoryManager
Sourcepub fn new(language_registry: Arc<LanguageRegistry>) -> Self
pub fn new(language_registry: Arc<LanguageRegistry>) -> Self
Create a new repository manager
Sourcepub fn new_with_config(
language_registry: Arc<LanguageRegistry>,
exclude_dirs: Option<Vec<String>>,
include_extensions: Option<Vec<String>>,
dependency_mode: Option<DependencyMode>,
) -> Self
pub fn new_with_config( language_registry: Arc<LanguageRegistry>, exclude_dirs: Option<Vec<String>>, include_extensions: Option<Vec<String>>, dependency_mode: Option<DependencyMode>, ) -> Self
Create a new repository manager with custom configuration
Sourcepub fn register_repository(&mut self, config: RepositoryConfig) -> Result<()>
pub fn register_repository(&mut self, config: RepositoryConfig) -> Result<()>
Register a repository
Sourcepub fn unregister_repository(&mut self, repo_id: &str)
pub fn unregister_repository(&mut self, repo_id: &str)
Unregister a repository
Sourcepub fn get_repository(&self, repo_id: &str) -> Option<&RepositoryInfo>
pub fn get_repository(&self, repo_id: &str) -> Option<&RepositoryInfo>
Get repository info
Sourcepub fn list_repositories(&self) -> Vec<&RepositoryInfo>
pub fn list_repositories(&self) -> Vec<&RepositoryInfo>
Get all registered repositories
Sourcepub async fn index_repository(
&mut self,
repo_id: &str,
progress_reporter: Option<Arc<dyn ProgressReporter>>,
) -> Result<IndexingResult>
pub async fn index_repository( &mut self, repo_id: &str, progress_reporter: Option<Arc<dyn ProgressReporter>>, ) -> Result<IndexingResult>
Perform full repository scan and indexing
Sourcepub async fn health_check(&mut self, repo_id: &str) -> Result<HealthStatus>
pub async fn health_check(&mut self, repo_id: &str) -> Result<HealthStatus>
Quick repository health check
Sourcepub fn get_stats(&self, repo_id: &str) -> Option<&IndexingStats>
pub fn get_stats(&self, repo_id: &str) -> Option<&IndexingStats>
Get repository statistics
Sourcepub fn get_total_stats(&self) -> HashMap<String, usize>
pub fn get_total_stats(&self) -> HashMap<String, usize>
Get total statistics across all repositories
Auto Trait Implementations§
impl Freeze for RepositoryManager
impl !RefUnwindSafe for RepositoryManager
impl Send for RepositoryManager
impl Sync for RepositoryManager
impl Unpin for RepositoryManager
impl !UnwindSafe for RepositoryManager
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 more