2019-05-07 09:12:51 +08: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.
|
|
|
|
|
|
|
|
package base
|
|
|
|
|
2019-06-29 21:38:22 +08:00
|
|
|
// Uploader uploads all the informations of one repository
|
2019-05-07 09:12:51 +08:00
|
|
|
type Uploader interface {
|
2019-07-07 03:24:50 +08:00
|
|
|
MaxBatchInsertSize(tp string) int
|
2019-07-02 05:17:16 +08:00
|
|
|
CreateRepo(repo *Repository, opts MigrateOptions) error
|
2019-08-14 14:16:12 +08:00
|
|
|
CreateTopics(topic ...string) error
|
2019-06-29 21:38:22 +08:00
|
|
|
CreateMilestones(milestones ...*Milestone) error
|
2020-08-28 09:36:37 +08:00
|
|
|
CreateReleases(downloader Downloader, releases ...*Release) error
|
2019-12-12 08:20:11 +08:00
|
|
|
SyncTags() error
|
2019-06-29 21:38:22 +08:00
|
|
|
CreateLabels(labels ...*Label) error
|
|
|
|
CreateIssues(issues ...*Issue) error
|
|
|
|
CreateComments(comments ...*Comment) error
|
|
|
|
CreatePullRequests(prs ...*PullRequest) error
|
2020-01-24 01:28:15 +08:00
|
|
|
CreateReviews(reviews ...*Review) error
|
2019-05-07 09:12:51 +08:00
|
|
|
Rollback() error
|
2019-11-13 15:01:19 +08:00
|
|
|
Close()
|
2019-05-07 09:12:51 +08:00
|
|
|
}
|