Fixes
parent: tbd commit: b87f0a3
1 | use ; |
2 | |
3 | use crate:: |
4 | , |
5 | , | Object
6 | , | ObjectBackend
7 | , | GiteratedOperation
8 | ; |
9 | |
10 | use ; |
11 | |
12 | /// A request to get a repository's information. |
13 | /// |
14 | /// # Authentication |
15 | /// - Instance Authentication |
16 | /// - Validate request against the `issued_for` public key |
17 | /// - Validate User token against the user's instance's public key |
18 | /// # Authorization |
19 | /// - User Authorization |
20 | /// - Potential User permissions checks |
21 | |
22 | ; |
23 | |
24 | |
25 | type Success = RepositoryView; |
26 | type Failure = RepositoryError; |
27 | |
28 | |
29 | |
30 | ; |
31 | |
32 | |
33 | type Success = u64; |
34 | type Failure = RepositoryError; |
35 | |
36 | |
37 | /// A request to get a repository's issues count. |
38 | /// |
39 | /// # Authentication |
40 | /// - Instance Authentication |
41 | /// - Validate request against the `issued_for` public key |
42 | /// - Validate User token against the user's instance's public key |
43 | /// # Authorization |
44 | /// - User Authorization |
45 | /// - Potential User permissions checks |
46 | |
47 | ; |
48 | |
49 | |
50 | type Success = ; |
51 | type Failure = RepositoryError; |
52 | |
53 | |
54 | /// A request to get a repository's issue labels. |
55 | /// |
56 | /// # Authentication |
57 | /// - Instance Authentication |
58 | /// - Validate request against the `issued_for` public key |
59 | /// - Validate User token against the user's instance's public key |
60 | /// # Authorization |
61 | /// - User Authorization |
62 | /// - Potential User permissions checks |
63 | |
64 | ; |
65 | |
66 | |
67 | type Success = ; |
68 | type Failure = RepositoryError; |
69 | |
70 | |
71 | /// A request to inspect the tree of a repository. |
72 | /// |
73 | /// # Authentication |
74 | /// - Instance Authentication |
75 | /// - Validate request against the `issued_for` public key |
76 | /// - Validate User token against the user's instance's public key |
77 | /// # Authorization |
78 | /// - User Authorization |
79 | /// - Potential User permissions checks |
80 | |
81 | |
82 | pub path: RepositoryTreeEntry, |
83 | |
84 | |
85 | |
86 | type Success = ; |
87 | type Failure = RepositoryError; |
88 | |
89 | |
90 | |
91 | pub async |
92 | self. |
93 | .await |
94 | |
95 | // pub async fn issues_count(&mut self) -> Result<u64, OperationError<RepositoryError>> { |
96 | // self.request::<RepositoryIssuesCountRequest>(RepositoryIssuesCountRequest) |
97 | // .await |
98 | // } |
99 | |
100 | pub async |
101 | &mut self, |
102 | |
103 | self. |
104 | .await |
105 | |
106 | |
107 | pub async |
108 | &mut self, |
109 | |
110 | self. |
111 | .await |
112 | |
113 | |
114 | pub async |
115 | &mut self, |
116 | entry: &RepositoryTreeEntry, |
117 | |
118 | self. |
119 | path: entry.clone, |
120 | |
121 | .await |
122 | |
123 | |
124 |