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 696B

1234567891011121314151617181920
  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. CreateMilestones(milestones ...*Milestone) error
  11. CreateReleases(releases ...*Release) error
  12. CreateLabels(labels ...*Label) error
  13. CreateIssues(issues ...*Issue) error
  14. CreateComments(comments ...*Comment) error
  15. CreatePullRequests(prs ...*PullRequest) error
  16. Rollback() error
  17. Close()
  18. }