@@ -15,21 +15,21 @@ menu:
15
15
16
16
# Migration Features
17
17
18
- The new migration features introduced in Gitea 1.9.0. It defined two interfaces to support migrating
19
- repositories data from other git host platforms to gitea or in future migrating gitea data to other
20
- git host platform . Currently, it only implements to migrate from github via APIv3 to Gitea.
18
+ The new migration features were introduced in Gitea 1.9.0. It defines two interfaces to support migrating
19
+ repositories data from other git host platforms to gitea or, in the future migrating gitea data to other
20
+ git host platforms . Currently, only the migrations from github via APIv3 to Gitea is implemented .
21
21
22
- First of all, Gitea defines some standard objects, ` Repository ` , ` Milestone ` , ` Release ` , ` Label ` , ` Issue ` ,
23
- ` Comment ` , ` PullRequest ` .
22
+ First of all, Gitea defines some standard objects in packages ` modules/migrations/base ` . They are
23
+ ` Repository ` , ` Milestone ` , ` Release ` , ` Label ` , ` Issue ` , ` Comment ` , ` PullRequest ` .
24
24
25
25
## Downloader Interfaces
26
26
27
27
To migrate from a new git host platform, there are two steps to be updated.
28
28
29
- - You should implement a Downloader which could get repository all kinds of informations.
30
- - You should implement a DownloaderFactory which could detect if the url should match the
31
- factory and new a Downloader
32
- - You should RegisterDownloaderFactory when init
29
+ - You should implement a ` Downloader ` which will get all kinds of repository informations.
30
+ - You should implement a ` DownloaderFactory ` which is used to detect if the URL matches and
31
+ create a Downloader.
32
+ - You'll need to register the ` DownloaderFactory ` via ` RegisterDownloaderFactory ` on init.
33
33
34
34
``` Go
35
35
type Downloader interface {
@@ -52,8 +52,9 @@ type DownloaderFactory interface {
52
52
53
53
## Uploader Interface
54
54
55
- Currently, we only implemented an Uploader ` GiteaLocalUploader ` so we only save downloaded
56
- data via this ` Uploader ` and we haven't supported a new Uploader that will be in future.
55
+ Currently, only a ` GiteaLocalUploader ` is implemented, so we only save downloaded
56
+ data via this ` Uploader ` on the local Gitea instance. Other uploaders are not supported
57
+ and will be implemented in future.
57
58
58
59
``` Go
59
60
// Uploader uploads all the informations
0 commit comments