You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
812 B
25 lines
812 B
6 years ago
|
// 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.
|
||
|
|
||
3 years ago
|
package migration
|
||
6 years ago
|
|
||
4 years ago
|
// Uploader uploads all the information of one repository
|
||
6 years ago
|
type Uploader interface {
|
||
6 years ago
|
MaxBatchInsertSize(tp string) int
|
||
6 years ago
|
CreateRepo(repo *Repository, opts MigrateOptions) error
|
||
5 years ago
|
CreateTopics(topic ...string) error
|
||
6 years ago
|
CreateMilestones(milestones ...*Milestone) error
|
||
4 years ago
|
CreateReleases(releases ...*Release) error
|
||
5 years ago
|
SyncTags() error
|
||
6 years ago
|
CreateLabels(labels ...*Label) error
|
||
|
CreateIssues(issues ...*Issue) error
|
||
|
CreateComments(comments ...*Comment) error
|
||
|
CreatePullRequests(prs ...*PullRequest) error
|
||
5 years ago
|
CreateReviews(reviews ...*Review) error
|
||
6 years ago
|
Rollback() error
|
||
4 years ago
|
Finish() error
|
||
5 years ago
|
Close()
|
||
6 years ago
|
}
|