Add authentication back into the operation states
parent: tbd commit: 97a26fd
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | use Error; |
8 | use async_trait; |
9 | use Value; |
10 | |
11 | use crate GitBackendError; |
12 | use UserAuthenticationToken; |
13 | |
14 | use |
15 | AuthenticationTokenRequest, Instance, RegisterAccountRequest, RepositoryCreateRequest, |
16 | ; |
17 | |
18 | use |
19 | Commit, IssueLabel, Repository, RepositoryCommitBeforeRequest, RepositoryDiff, |
20 | RepositoryDiffPatchRequest, RepositoryDiffRequest, RepositoryFile, RepositoryFileFromIdRequest, |
21 | RepositoryFileFromPathRequest, RepositoryFileInspectRequest, RepositoryIssue, |
22 | RepositoryIssueLabelsRequest, RepositoryIssuesCountRequest, RepositoryIssuesRequest, |
23 | RepositorySummary, RepositoryTreeEntry, |
24 | ; |
25 | use AnySetting; |
26 | use User; |
27 | use AnyValue; |
28 | |
29 | |
30 | |
31 | async |
32 | &mut self, |
33 | user: &User, |
34 | request: &RepositoryCreateRequest, |
35 | ; |
36 | async |
37 | &mut self, |
38 | requester: , |
39 | repository: &Repository, |
40 | request: &RepositoryFileInspectRequest, |
41 | ; |
42 | async |
43 | &mut self, |
44 | requester: , |
45 | repository: &Repository, |
46 | request: &RepositoryFileFromIdRequest, |
47 | ; |
48 | async |
49 | &mut self, |
50 | requester: , |
51 | repository: &Repository, |
52 | request: &RepositoryFileFromPathRequest, |
53 | ; |
54 | async |
55 | &mut self, |
56 | requester: , |
57 | repository: &Repository, |
58 | request: &RepositoryDiffRequest, |
59 | ; |
60 | async |
61 | &mut self, |
62 | requester: , |
63 | repository: &Repository, |
64 | request: &RepositoryDiffPatchRequest, |
65 | ; |
66 | async |
67 | &mut self, |
68 | requester: , |
69 | repository: &Repository, |
70 | request: &RepositoryCommitBeforeRequest, |
71 | ; |
72 | async |
73 | &mut self, |
74 | user: &Repository, |
75 | name: &str, |
76 | ; |
77 | async ; |
78 | async |
79 | &mut self, |
80 | user: &Repository, |
81 | name: &str, |
82 | setting: &Value, |
83 | ; |
84 | async ; |
85 | |
86 | |
87 | |
88 | |
89 | &mut self, |
90 | requester: , |
91 | request: &RepositoryIssuesCountRequest, |
92 | ; |
93 | |
94 | &mut self, |
95 | requester: , |
96 | request: &RepositoryIssueLabelsRequest, |
97 | ; |
98 | |
99 | &mut self, |
100 | requester: , |
101 | request: &RepositoryIssuesRequest, |
102 | ; |
103 | |
104 | |
105 | |
106 | |
107 | async |
108 | &mut self, |
109 | request: RegisterAccountRequest, |
110 | ; |
111 | |
112 | async |
113 | &mut self, |
114 | source: &Instance, |
115 | request: AuthenticationTokenRequest, |
116 | ; |
117 | |
118 | |
119 | |
120 | |
121 | async ; |
122 | async ; |
123 | async |
124 | &mut self, |
125 | user: &User, |
126 | name: &str, |
127 | setting: &Value, |
128 | ; |
129 | async ; |
130 | async |
131 | &mut self, |
132 | requester: , |
133 | user: &User, |
134 | ; |
135 | |
136 | |
137 | |
138 | |
139 | async ; |
140 | async |
141 | &mut self, |
142 | user: &User, |
143 | name: &str, |
144 | setting: AnySetting, |
145 | ; |
146 | async |
147 | &mut self, |
148 | repository: &Repository, |
149 | name: &str, |
150 | ; |
151 | async |
152 | &mut self, |
153 | repository: &Repository, |
154 | name: &str, |
155 | setting: AnySetting, |
156 | ; |
157 | |
158 |