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