Begin new protocol refactor
parent: tbd commit: 26651b1
1 | use ; |
2 | |
3 | use crate:: |
4 | , | RepositoryError
5 | , |
6 | ; |
7 | |
8 | use ; |
9 | |
10 | /// A request to get a repository's information. |
11 | /// |
12 | /// # Authentication |
13 | /// - Instance Authentication |
14 | /// - Validate request against the `issued_for` public key |
15 | /// - Validate User token against the user's instance's public key |
16 | /// # Authorization |
17 | /// - User Authorization |
18 | /// - Potential User permissions checks |
19 | |
20 | ; |
21 | |
22 | |
23 | type Success = u64; |
24 | type Failure = RepositoryError; |
25 | |
26 | |
27 | /// A request to get a repository's issues count. |
28 | /// |
29 | /// # Authentication |
30 | /// - Instance Authentication |
31 | /// - Validate request against the `issued_for` public key |
32 | /// - Validate User token against the user's instance's public key |
33 | /// # Authorization |
34 | /// - User Authorization |
35 | /// - Potential User permissions checks |
36 | |
37 | ; |
38 | |
39 | |
40 | type Success = ; |
41 | type Failure = RepositoryError; |
42 | |
43 | |
44 | /// A request to get a repository's issue labels. |
45 | /// |
46 | /// # Authentication |
47 | /// - Instance Authentication |
48 | /// - Validate request against the `issued_for` public key |
49 | /// - Validate User token against the user's instance's public key |
50 | /// # Authorization |
51 | /// - User Authorization |
52 | /// - Potential User permissions checks |
53 | |
54 | ; |
55 | |
56 | |
57 | type Success = ; |
58 | type Failure = RepositoryError; |
59 | |
60 | |
61 | /// A request to inspect the tree of a repository. |
62 | /// |
63 | /// # Authentication |
64 | /// - Instance Authentication |
65 | /// - Validate request against the `issued_for` public key |
66 | /// - Validate User token against the user's instance's public key |
67 | /// # Authorization |
68 | /// - User Authorization |
69 | /// - Potential User permissions checks |
70 | |
71 | |
72 | pub path: RepositoryTreeEntry, |
73 | |
74 | |
75 | |
76 | type Success = ; |
77 | type Failure = RepositoryError; |
78 | |
79 | |
80 | |
81 | pub async |
82 | self. |
83 | |
84 | |
85 | pub async |
86 | self. |
87 | |
88 | |
89 | pub async |
90 | self. |
91 | |
92 | |
93 | pub async |
94 | &mut self, |
95 | entry: &RepositoryTreeEntry, |
96 | |
97 | self. |
98 | path: entry.clone, |
99 | |
100 | |
101 | |
102 |