Skip to main content

RepositoryDirectory

Trait RepositoryDirectory 

Source
pub trait RepositoryDirectory:
    Debug
    + Send
    + Sync {
    // Required method
    fn repositories<'life0, 'life1, 'async_trait>(
        &'life0 self,
        org: &'life1 Org,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<OwnerRepo>, InventoryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Which repositories an organization installation reaches.

f1 already holds this, from runner_manager_github::AuthenticatedClient::discover_installations. It is a port here so that RepositoryCache can be tested for the property that matters — how often it asks — without a network.

Required Methods§

Source

fn repositories<'life0, 'life1, 'async_trait>( &'life0 self, org: &'life1 Org, ) -> Pin<Box<dyn Future<Output = Result<Vec<OwnerRepo>, InventoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

The repositories this credential reaches in org.

§Errors

Anything the underlying gateway reports.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§