Commit 8492908
committed
modules/lfstransfer: modify transfer.Backend interface
Make a few changes to make the transfer backend suit Gitea better.
Merge Upload into one method:
Makes things simpler since out content store verifies size & hashes
itself
Change Download return into io.ReadCloser:
Removes dependency on filesystem
Add size: int64 arguments wherever appropriate
In arguments for Upload and Verify, and in return for Download1 parent 5b3f2a3 commit 8492908
2 files changed
+12
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
161 | 160 | | |
162 | 161 | | |
163 | 162 | | |
164 | | - | |
165 | | - | |
166 | | - | |
| 163 | + | |
| 164 | + | |
167 | 165 | | |
168 | 166 | | |
169 | 167 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | 168 | | |
188 | 169 | | |
189 | 170 | | |
| |||
197 | 178 | | |
198 | 179 | | |
199 | 180 | | |
200 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
201 | 186 | | |
202 | 187 | | |
203 | 188 | | |
| |||
210 | 195 | | |
211 | 196 | | |
212 | 197 | | |
213 | | - | |
| 198 | + | |
214 | 199 | | |
215 | 200 | | |
216 | 201 | | |
217 | 202 | | |
218 | 203 | | |
219 | 204 | | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
| 205 | + | |
225 | 206 | | |
226 | 207 | | |
227 | 208 | | |
| |||
0 commit comments