code.gitea.io/gitea@v1.19.3/modules/migration/uploader.go (about) 1 // Copyright 2019 The Gitea Authors. All rights reserved. 2 // Copyright 2018 Jonas Franz. All rights reserved. 3 // SPDX-License-Identifier: MIT 4 5 package migration 6 7 // Uploader uploads all the information of one repository 8 type Uploader interface { 9 MaxBatchInsertSize(tp string) int 10 CreateRepo(repo *Repository, opts MigrateOptions) error 11 CreateTopics(topic ...string) error 12 CreateMilestones(milestones ...*Milestone) error 13 CreateReleases(releases ...*Release) error 14 SyncTags() error 15 CreateLabels(labels ...*Label) error 16 CreateIssues(issues ...*Issue) error 17 CreateComments(comments ...*Comment) error 18 CreatePullRequests(prs ...*PullRequest) error 19 CreateReviews(reviews ...*Review) error 20 Rollback() error 21 Finish() error 22 Close() 23 }