2019-05-07 10:12:51 +09:00
|
|
|
// Copyright 2019 The Gitea Authors. All rights reserved.
|
|
|
|
// Copyright 2018 Jonas Franz. All rights reserved.
|
|
|
|
// Use of this source code is governed by a MIT-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2021-11-17 00:25:33 +09:00
|
|
|
package migration
|
2019-05-07 10:12:51 +09:00
|
|
|
|
2021-07-08 20:38:13 +09:00
|
|
|
// Uploader uploads all the information of one repository
|
2019-05-07 10:12:51 +09:00
|
|
|
type Uploader interface {
|
2019-07-07 04:24:50 +09:00
|
|
|
MaxBatchInsertSize(tp string) int
|
2019-07-02 06:17:16 +09:00
|
|
|
CreateRepo(repo *Repository, opts MigrateOptions) error
|
2019-08-14 15:16:12 +09:00
|
|
|
CreateTopics(topic ...string) error
|
2019-06-29 22:38:22 +09:00
|
|
|
CreateMilestones(milestones ...*Milestone) error
|
2020-12-27 12:34:19 +09:00
|
|
|
CreateReleases(releases ...*Release) error
|
2019-12-12 09:20:11 +09:00
|
|
|
SyncTags() error
|
2019-06-29 22:38:22 +09:00
|
|
|
CreateLabels(labels ...*Label) error
|
|
|
|
CreateIssues(issues ...*Issue) error
|
|
|
|
CreateComments(comments ...*Comment) error
|
|
|
|
CreatePullRequests(prs ...*PullRequest) error
|
2020-01-24 02:28:15 +09:00
|
|
|
CreateReviews(reviews ...*Review) error
|
2019-05-07 10:12:51 +09:00
|
|
|
Rollback() error
|
2020-12-27 12:34:19 +09:00
|
|
|
Finish() error
|
2019-11-13 16:01:19 +09:00
|
|
|
Close()
|
2019-05-07 10:12:51 +09:00
|
|
|
}
|