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.

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