Skip to main content

CodeRepositoryStore

Trait CodeRepositoryStore 

Source
pub trait CodeRepositoryStore: Send + Sync {
Show 57 methods // Required methods fn upsert_code_repository( &self, registration: CodeRepositoryRegistration, ) -> StorageFuture<'_, CodeRepositoryStatus>; fn code_repository_status( &self, repository: String, ) -> StorageFuture<'_, Option<CodeRepositoryStatus>>; fn code_repository_scope_status( &self, repository: String, resolved_commit_sha: String, path_filters: Vec<String>, language_filters: Vec<String>, ) -> StorageFuture<'_, Option<CodeRepositoryStatus>>; fn queue_code_index_task( &self, task: CodeIndexTaskSeed, ) -> StorageFuture<'_, CodeIndexTaskRecord>; fn claim_code_index_task( &self, request: CodeIndexTaskClaimRequest, ) -> StorageFuture<'_, Option<CodeIndexTaskRecord>>; fn complete_code_index_task( &self, request: CodeIndexTaskCompletion, ) -> StorageFuture<'_, CodeIndexTaskRecord>; fn fail_code_index_task( &self, request: CodeIndexTaskFailure, ) -> StorageFuture<'_, CodeIndexTaskRecord>; fn code_index_task( &self, task_id: String, ) -> StorageFuture<'_, Option<CodeIndexTaskRecord>>; fn active_code_index_task( &self, repository_id: String, ) -> StorageFuture<'_, Option<CodeIndexTaskRecord>>; fn code_index_checkpoint( &self, source_scope: String, ) -> StorageFuture<'_, Option<CodeIndexCheckpoint>>; fn code_scope_retention( &self, repository_id: String, ) -> StorageFuture<'_, CodeScopeRetentionSummary>; fn prune_code_repository_scopes( &self, request: CodeScopeRetentionRequest, ) -> StorageFuture<'_, CodeScopeRetentionSummary>; fn code_file_fingerprints( &self, repository_id: String, ) -> StorageFuture<'_, Vec<CodeFileFingerprint>>; fn apply_code_index_snapshot( &self, snapshot: CodeIndexSnapshot, ) -> StorageFuture<'_, CodeIndexSummary>; fn search_code( &self, request: CodeRetrievalRequest, ) -> StorageFuture<'_, Vec<CodeRetrievalHit>>; fn analyze_code_impact( &self, request: CodeImpactRequest, changes: CodeImpactChanges, ) -> StorageFuture<'_, Vec<CodeRetrievalHit>>; // Provided methods fn list_code_repositories( &self, ) -> StorageFuture<'_, Vec<CodeRepositoryStatus>> { ... } fn remove_code_repository( &self, repository: String, now_ms: u64, ) -> StorageFuture<'_, Option<CodeRepositoryRemovalSummary>> { ... } fn latest_code_repository_scope_status( &self, _repository: String, _path_filters: Vec<String>, _language_filters: Vec<String>, ) -> StorageFuture<'_, Option<CodeRepositoryStatus>> { ... } fn recover_code_index_task_leases( &self, _now_ms: u64, _max_attempts: u32, ) -> StorageFuture<'_, ()> { ... } fn running_code_index_task_leases( &self, ) -> StorageFuture<'_, Vec<CodeIndexTaskLeaseRecord>> { ... } fn recover_code_index_task_leases_by_task( &self, _request: CodeIndexTaskLeaseRecovery, ) -> StorageFuture<'_, usize> { ... } fn reset_code_index_tasks( &self, _repository_id: String, _now_ms: u64, ) -> StorageFuture<'_, Vec<CodeIndexTaskRecord>> { ... } fn renew_code_index_task_lease( &self, _request: CodeIndexTaskLeaseRenewal, ) -> StorageFuture<'_, CodeIndexTaskRecord> { ... } fn code_index_task_queue_status( &self, ) -> StorageFuture<'_, CodeIndexTaskQueueStatus> { ... } fn latest_code_index_checkpoint( &self, _repository_id: String, ) -> StorageFuture<'_, Option<CodeIndexCheckpoint>> { ... } fn code_file_fingerprints_for_scope( &self, source_scope: String, ) -> StorageFuture<'_, Vec<CodeFileFingerprint>> { ... } fn code_file_fingerprints_for_paths( &self, source_scope: String, paths: Vec<String>, ) -> StorageFuture<'_, Vec<CodeFileFingerprint>> { ... } fn code_file_candidate_paths_for_scope( &self, source_scope: String, _path_filters: Vec<String>, _language_filters: Vec<String>, _exclude_generated: bool, _limit: usize, ) -> StorageFuture<'_, Vec<String>> { ... } fn code_file_candidate_paths_for_query_scope( &self, source_scope: String, _query: String, path_filters: Vec<String>, language_filters: Vec<String>, exclude_generated: bool, limit: usize, ) -> StorageFuture<'_, Vec<String>> { ... } fn clear_code_workspace_state( &self, _repository_id: String, _source_scope: String, ) -> StorageFuture<'_, ()> { ... } fn begin_code_index_session( &self, session: CodeIndexSession, ) -> StorageFuture<'_, CodeIndexCheckpoint> { ... } fn apply_code_index_batch( &self, batch: CodeIndexBatch, ) -> StorageFuture<'_, CodeIndexCheckpoint> { ... } fn finalize_code_index_session( &self, session: CodeIndexSession, ) -> StorageFuture<'_, CodeIndexSummary> { ... } fn search_code_feature_flags( &self, request: CodeFeatureFlagRequest, ) -> StorageFuture<'_, Vec<CodeFeatureFlagGraph>> { ... } fn search_code_feature_flags_scope( &self, source_scope: String, _request: CodeFeatureFlagRequest, ) -> StorageFuture<'_, Vec<CodeFeatureFlagGraph>> { ... } fn search_code_scope( &self, source_scope: String, _request: CodeRetrievalRequest, ) -> StorageFuture<'_, Vec<CodeRetrievalHit>> { ... } fn analyze_code_impact_scope( &self, source_scope: String, _request: CodeImpactRequest, _changes: CodeImpactChanges, ) -> StorageFuture<'_, Vec<CodeRetrievalHit>> { ... } fn codebase_view_snapshot( &self, source_scope: String, _request: CodebaseViewRequest, _row_limit: usize, ) -> StorageFuture<'_, CodebaseViewSnapshot> { ... } fn code_repository_totals(&self) -> StorageFuture<'_, CodeRepositoryTotals> { ... } fn code_repository_report( &self, repository: String, ) -> StorageFuture<'_, CodeRepositoryReport> { ... } fn code_repository_scope_symbol_generation_counts( &self, source_scope: String, ) -> StorageFuture<'_, CodeSymbolGenerationCounts> { ... } fn refresh_software_global_projection( &self, source_scope: String, ) -> StorageFuture<'_, SoftwareGlobalProjection> { ... } fn software_global_projection( &self, request: SoftwareGlobalRequest, ) -> StorageFuture<'_, SoftwareGlobalProjection> { ... } fn software_global_projection_for_scope( &self, source_scope: String, _request: SoftwareGlobalRequest, ) -> StorageFuture<'_, SoftwareGlobalProjection> { ... } fn create_code_repository_set( &self, _seed: CodeRepositorySetSeed, ) -> StorageFuture<'_, CodeRepositorySet> { ... } fn add_code_repository_set_member( &self, _seed: CodeRepositorySetMemberSeed, ) -> StorageFuture<'_, CodeRepositorySetMember> { ... } fn remove_code_repository_set_member( &self, _set_alias: String, _repository_alias: String, ) -> StorageFuture<'_, CodeRepositorySetMember> { ... } fn code_repository_set( &self, _set_alias: String, ) -> StorageFuture<'_, Option<CodeRepositorySet>> { ... } fn code_repository_set_status( &self, _set_alias: String, ) -> StorageFuture<'_, Option<CodeRepositorySetStatus>> { ... } fn refresh_code_repository_set_overlay( &self, _set_alias: String, _now_ms: u64, ) -> StorageFuture<'_, CodeRepositorySetRefreshSummary> { ... } fn code_repository_set_cross_edges( &self, _set_id: String, ) -> StorageFuture<'_, Vec<CodeRepositoryCrossEdge>> { ... } fn code_repository_set_cross_edges_for_selector( &self, set_id: String, _selector: CodeRepositorySetEdgeSelector, ) -> StorageFuture<'_, Vec<CodeRepositoryCrossEdge>> { ... } fn queue_code_repository_set_refresh_task( &self, _task: CodeRepositorySetRefreshTaskSeed, ) -> StorageFuture<'_, CodeRepositorySetRefreshTaskRecord> { ... } fn claim_code_repository_set_refresh_task( &self, _request: CodeRepositorySetRefreshTaskClaimRequest, ) -> StorageFuture<'_, Option<CodeRepositorySetRefreshTaskRecord>> { ... } fn complete_code_repository_set_refresh_task( &self, _request: CodeRepositorySetRefreshTaskCompletion, ) -> StorageFuture<'_, CodeRepositorySetRefreshTaskRecord> { ... } fn fail_code_repository_set_refresh_task( &self, _request: CodeRepositorySetRefreshTaskFailure, ) -> StorageFuture<'_, CodeRepositorySetRefreshTaskRecord> { ... }
}
Expand description

Persisted code repository graph and retrieval contract.

Required Methods§

Source

fn upsert_code_repository( &self, registration: CodeRepositoryRegistration, ) -> StorageFuture<'_, CodeRepositoryStatus>

Source

fn code_repository_status( &self, repository: String, ) -> StorageFuture<'_, Option<CodeRepositoryStatus>>

Source

fn code_repository_scope_status( &self, repository: String, resolved_commit_sha: String, path_filters: Vec<String>, language_filters: Vec<String>, ) -> StorageFuture<'_, Option<CodeRepositoryStatus>>

Source

fn queue_code_index_task( &self, task: CodeIndexTaskSeed, ) -> StorageFuture<'_, CodeIndexTaskRecord>

Source

fn claim_code_index_task( &self, request: CodeIndexTaskClaimRequest, ) -> StorageFuture<'_, Option<CodeIndexTaskRecord>>

Source

fn complete_code_index_task( &self, request: CodeIndexTaskCompletion, ) -> StorageFuture<'_, CodeIndexTaskRecord>

Source

fn fail_code_index_task( &self, request: CodeIndexTaskFailure, ) -> StorageFuture<'_, CodeIndexTaskRecord>

Source

fn code_index_task( &self, task_id: String, ) -> StorageFuture<'_, Option<CodeIndexTaskRecord>>

Source

fn active_code_index_task( &self, repository_id: String, ) -> StorageFuture<'_, Option<CodeIndexTaskRecord>>

Source

fn code_index_checkpoint( &self, source_scope: String, ) -> StorageFuture<'_, Option<CodeIndexCheckpoint>>

Source

fn code_scope_retention( &self, repository_id: String, ) -> StorageFuture<'_, CodeScopeRetentionSummary>

Source

fn prune_code_repository_scopes( &self, request: CodeScopeRetentionRequest, ) -> StorageFuture<'_, CodeScopeRetentionSummary>

Source

fn code_file_fingerprints( &self, repository_id: String, ) -> StorageFuture<'_, Vec<CodeFileFingerprint>>

Source

fn apply_code_index_snapshot( &self, snapshot: CodeIndexSnapshot, ) -> StorageFuture<'_, CodeIndexSummary>

Source

fn search_code( &self, request: CodeRetrievalRequest, ) -> StorageFuture<'_, Vec<CodeRetrievalHit>>

Source

fn analyze_code_impact( &self, request: CodeImpactRequest, changes: CodeImpactChanges, ) -> StorageFuture<'_, Vec<CodeRetrievalHit>>

Provided Methods§

Source

fn list_code_repositories(&self) -> StorageFuture<'_, Vec<CodeRepositoryStatus>>

Source

fn remove_code_repository( &self, repository: String, now_ms: u64, ) -> StorageFuture<'_, Option<CodeRepositoryRemovalSummary>>

Source

fn latest_code_repository_scope_status( &self, _repository: String, _path_filters: Vec<String>, _language_filters: Vec<String>, ) -> StorageFuture<'_, Option<CodeRepositoryStatus>>

Source

fn recover_code_index_task_leases( &self, _now_ms: u64, _max_attempts: u32, ) -> StorageFuture<'_, ()>

Source

fn running_code_index_task_leases( &self, ) -> StorageFuture<'_, Vec<CodeIndexTaskLeaseRecord>>

Source

fn recover_code_index_task_leases_by_task( &self, _request: CodeIndexTaskLeaseRecovery, ) -> StorageFuture<'_, usize>

Source

fn reset_code_index_tasks( &self, _repository_id: String, _now_ms: u64, ) -> StorageFuture<'_, Vec<CodeIndexTaskRecord>>

Source

fn renew_code_index_task_lease( &self, _request: CodeIndexTaskLeaseRenewal, ) -> StorageFuture<'_, CodeIndexTaskRecord>

Source

fn code_index_task_queue_status( &self, ) -> StorageFuture<'_, CodeIndexTaskQueueStatus>

Source

fn latest_code_index_checkpoint( &self, _repository_id: String, ) -> StorageFuture<'_, Option<CodeIndexCheckpoint>>

Source

fn code_file_fingerprints_for_scope( &self, source_scope: String, ) -> StorageFuture<'_, Vec<CodeFileFingerprint>>

Source

fn code_file_fingerprints_for_paths( &self, source_scope: String, paths: Vec<String>, ) -> StorageFuture<'_, Vec<CodeFileFingerprint>>

Source

fn code_file_candidate_paths_for_scope( &self, source_scope: String, _path_filters: Vec<String>, _language_filters: Vec<String>, _exclude_generated: bool, _limit: usize, ) -> StorageFuture<'_, Vec<String>>

Source

fn code_file_candidate_paths_for_query_scope( &self, source_scope: String, _query: String, path_filters: Vec<String>, language_filters: Vec<String>, exclude_generated: bool, limit: usize, ) -> StorageFuture<'_, Vec<String>>

Source

fn clear_code_workspace_state( &self, _repository_id: String, _source_scope: String, ) -> StorageFuture<'_, ()>

Source

fn begin_code_index_session( &self, session: CodeIndexSession, ) -> StorageFuture<'_, CodeIndexCheckpoint>

Source

fn apply_code_index_batch( &self, batch: CodeIndexBatch, ) -> StorageFuture<'_, CodeIndexCheckpoint>

Source

fn finalize_code_index_session( &self, session: CodeIndexSession, ) -> StorageFuture<'_, CodeIndexSummary>

Source

fn search_code_feature_flags( &self, request: CodeFeatureFlagRequest, ) -> StorageFuture<'_, Vec<CodeFeatureFlagGraph>>

Source

fn search_code_feature_flags_scope( &self, source_scope: String, _request: CodeFeatureFlagRequest, ) -> StorageFuture<'_, Vec<CodeFeatureFlagGraph>>

Source

fn search_code_scope( &self, source_scope: String, _request: CodeRetrievalRequest, ) -> StorageFuture<'_, Vec<CodeRetrievalHit>>

Source

fn analyze_code_impact_scope( &self, source_scope: String, _request: CodeImpactRequest, _changes: CodeImpactChanges, ) -> StorageFuture<'_, Vec<CodeRetrievalHit>>

Source

fn codebase_view_snapshot( &self, source_scope: String, _request: CodebaseViewRequest, _row_limit: usize, ) -> StorageFuture<'_, CodebaseViewSnapshot>

Source

fn code_repository_totals(&self) -> StorageFuture<'_, CodeRepositoryTotals>

Source

fn code_repository_report( &self, repository: String, ) -> StorageFuture<'_, CodeRepositoryReport>

Source

fn code_repository_scope_symbol_generation_counts( &self, source_scope: String, ) -> StorageFuture<'_, CodeSymbolGenerationCounts>

Source

fn refresh_software_global_projection( &self, source_scope: String, ) -> StorageFuture<'_, SoftwareGlobalProjection>

Source

fn software_global_projection( &self, request: SoftwareGlobalRequest, ) -> StorageFuture<'_, SoftwareGlobalProjection>

Source

fn software_global_projection_for_scope( &self, source_scope: String, _request: SoftwareGlobalRequest, ) -> StorageFuture<'_, SoftwareGlobalProjection>

Source

fn create_code_repository_set( &self, _seed: CodeRepositorySetSeed, ) -> StorageFuture<'_, CodeRepositorySet>

Source

fn add_code_repository_set_member( &self, _seed: CodeRepositorySetMemberSeed, ) -> StorageFuture<'_, CodeRepositorySetMember>

Source

fn remove_code_repository_set_member( &self, _set_alias: String, _repository_alias: String, ) -> StorageFuture<'_, CodeRepositorySetMember>

Source

fn code_repository_set( &self, _set_alias: String, ) -> StorageFuture<'_, Option<CodeRepositorySet>>

Source

fn code_repository_set_status( &self, _set_alias: String, ) -> StorageFuture<'_, Option<CodeRepositorySetStatus>>

Source

fn refresh_code_repository_set_overlay( &self, _set_alias: String, _now_ms: u64, ) -> StorageFuture<'_, CodeRepositorySetRefreshSummary>

Source

fn code_repository_set_cross_edges( &self, _set_id: String, ) -> StorageFuture<'_, Vec<CodeRepositoryCrossEdge>>

Source

fn code_repository_set_cross_edges_for_selector( &self, set_id: String, _selector: CodeRepositorySetEdgeSelector, ) -> StorageFuture<'_, Vec<CodeRepositoryCrossEdge>>

Source

fn queue_code_repository_set_refresh_task( &self, _task: CodeRepositorySetRefreshTaskSeed, ) -> StorageFuture<'_, CodeRepositorySetRefreshTaskRecord>

Source

fn claim_code_repository_set_refresh_task( &self, _request: CodeRepositorySetRefreshTaskClaimRequest, ) -> StorageFuture<'_, Option<CodeRepositorySetRefreshTaskRecord>>

Source

fn complete_code_repository_set_refresh_task( &self, _request: CodeRepositorySetRefreshTaskCompletion, ) -> StorageFuture<'_, CodeRepositorySetRefreshTaskRecord>

Source

fn fail_code_repository_set_refresh_task( &self, _request: CodeRepositorySetRefreshTaskFailure, ) -> StorageFuture<'_, CodeRepositorySetRefreshTaskRecord>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§