2019-05-07 03:12:51 +02:00
|
|
|
// Copyright 2019 The Gitea Authors. All rights reserved.
|
|
|
|
// Copyright 2018 Jonas Franz. All rights reserved.
|
2022-11-27 19:20:29 +01:00
|
|
|
// SPDX-License-Identifier: MIT
|
2019-05-07 03:12:51 +02:00
|
|
|
|
2021-11-16 16:25:33 +01:00
|
|
|
package migration
|
2019-05-07 03:12:51 +02:00
|
|
|
|
2021-07-08 13:38:13 +02:00
|
|
|
// Uploader uploads all the information of one repository
|
2019-05-07 03:12:51 +02:00
|
|
|
type Uploader interface {
|
2019-07-06 21:24:50 +02:00
|
|
|
MaxBatchInsertSize(tp string) int
|
2019-07-01 23:17:16 +02:00
|
|
|
CreateRepo(repo *Repository, opts MigrateOptions) error
|
2019-08-14 08:16:12 +02:00
|
|
|
CreateTopics(topic ...string) error
|
2019-06-29 15:38:22 +02:00
|
|
|
CreateMilestones(milestones ...*Milestone) error
|
2020-12-27 04:34:19 +01:00
|
|
|
CreateReleases(releases ...*Release) error
|
2019-12-12 01:20:11 +01:00
|
|
|
SyncTags() error
|
2019-06-29 15:38:22 +02:00
|
|
|
CreateLabels(labels ...*Label) error
|
|
|
|
CreateIssues(issues ...*Issue) error
|
|
|
|
CreateComments(comments ...*Comment) error
|
|
|
|
CreatePullRequests(prs ...*PullRequest) error
|
2020-01-23 18:28:15 +01:00
|
|
|
CreateReviews(reviews ...*Review) error
|
2019-05-07 03:12:51 +02:00
|
|
|
Rollback() error
|
2020-12-27 04:34:19 +01:00
|
|
|
Finish() error
|
2019-11-13 08:01:19 +01:00
|
|
|
Close()
|
2019-05-07 03:12:51 +02:00
|
|
|
}
|