2019-05-07 06:42:51 +05:30
|
|
|
// 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.
|
|
|
|
|
|
|
|
package base
|
|
|
|
|
2021-07-08 17:08:13 +05:30
|
|
|
// Uploader uploads all the information of one repository
|
2019-05-07 06:42:51 +05:30
|
|
|
type Uploader interface {
|
2019-07-07 00:54:50 +05:30
|
|
|
MaxBatchInsertSize(tp string) int
|
2019-07-02 02:47:16 +05:30
|
|
|
CreateRepo(repo *Repository, opts MigrateOptions) error
|
2019-08-14 11:46:12 +05:30
|
|
|
CreateTopics(topic ...string) error
|
2019-06-29 19:08:22 +05:30
|
|
|
CreateMilestones(milestones ...*Milestone) error
|
2020-12-27 09:04:19 +05:30
|
|
|
CreateReleases(releases ...*Release) error
|
2019-12-12 05:50:11 +05:30
|
|
|
SyncTags() error
|
2019-06-29 19:08:22 +05:30
|
|
|
CreateLabels(labels ...*Label) error
|
|
|
|
CreateIssues(issues ...*Issue) error
|
|
|
|
CreateComments(comments ...*Comment) error
|
|
|
|
CreatePullRequests(prs ...*PullRequest) error
|
2020-01-23 22:58:15 +05:30
|
|
|
CreateReviews(reviews ...*Review) error
|
2019-05-07 06:42:51 +05:30
|
|
|
Rollback() error
|
2020-12-27 09:04:19 +05:30
|
|
|
Finish() error
|
2019-11-13 12:31:19 +05:30
|
|
|
Close()
|
2019-05-07 06:42:51 +05:30
|
|
|
}
|