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.

uploader.go 751B

12345678910111213141516171819202122
  1. // Copyright 2019 The Gitea Authors. All rights reserved.
  2. // Copyright 2018 Jonas Franz. All rights reserved.
  3. // Use of this source code is governed by a MIT-style
  4. // license that can be found in the LICENSE file.
  5. package base
  6. // Uploader uploads all the informations of one repository
  7. type Uploader interface {
  8. MaxBatchInsertSize(tp string) int
  9. CreateRepo(repo *Repository, opts MigrateOptions) error
  10. CreateTopics(topic ...string) error
  11. CreateMilestones(milestones ...*Milestone) error
  12. CreateReleases(releases ...*Release) error
  13. SyncTags() error
  14. CreateLabels(labels ...*Label) error
  15. CreateIssues(issues ...*Issue) error
  16. CreateComments(comments ...*Comment) error
  17. CreatePullRequests(prs ...*PullRequest) error
  18. Rollback() error
  19. Close()
  20. }