ef23868feat: rebuild the profile page on flat navigation7d | 1 | use std::time::SystemTime; |
| 2 | |
c5b3ff5feat: repository persistence24d | 3 | use super::RepositoryResult; |
| 4 | use crate::domain::{OrgId, RepoId, RepoName, Repository}; |
| 5 | |
| 6 | |
| 7 | pub trait RepoRepository: Send + Sync { |
| 8 | fn find_by_id( |
| 9 | &self, |
| 10 | id: &RepoId, |
| 11 | ) -> impl Future<Output = RepositoryResult<Option<Repository>>> + Send; |
| 12 | |
| 13 | |
| 14 | fn find_by_org_and_name( |
| 15 | &self, |
| 16 | org_id: &OrgId, |
| 17 | name: &RepoName, |
| 18 | ) -> impl Future<Output = RepositoryResult<Option<Repository>>> + Send; |
| 19 | |
ef23868feat: rebuild the profile page on flat navigation7d | 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
c5b3ff5feat: repository persistence24d | 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | fn list_by_org( |
| 32 | &self, |
| 33 | org_id: &OrgId, |
| 34 | ) -> impl Future<Output = RepositoryResult<Vec<Repository>>> + Send; |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | fn save(&self, repo: &Repository) -> impl Future<Output = RepositoryResult<()>> + Send; |
4ef3945feat: repository settings, README rendering, branch switcher, raw files8d | 40 | |
ef23868feat: rebuild the profile page on flat navigation7d | 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | fn touch( |
| 50 | &self, |
| 51 | id: &RepoId, |
| 52 | now: SystemTime, |
| 53 | ) -> impl Future<Output = RepositoryResult<()>> + Send; |
| 54 | |
4ef3945feat: repository settings, README rendering, branch switcher, raw files8d | 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | fn delete(&self, id: &RepoId) -> impl Future<Output = RepositoryResult<()>> + Send; |
c5b3ff5feat: repository persistence24d | 64 | } |