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.

options.go 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. import "code.gitea.io/gitea/modules/structs"
  6. // MigrateOptions defines the way a repository gets migrated
  7. // this is for internal usage by migrations module and func who interact with it
  8. type MigrateOptions struct {
  9. // required: true
  10. CloneAddr string `json:"clone_addr" binding:"Required"`
  11. CloneAddrEncrypted string `json:"clone_addr_encrypted,omitempty"`
  12. AuthUsername string `json:"auth_username"`
  13. AuthPassword string `json:"-"`
  14. AuthPasswordEncrypted string `json:"auth_password_encrypted,omitempty"`
  15. AuthToken string `json:"-"`
  16. AuthTokenEncrypted string `json:"auth_token_encrypted,omitempty"`
  17. // required: true
  18. UID int `json:"uid" binding:"Required"`
  19. // required: true
  20. RepoName string `json:"repo_name" binding:"Required"`
  21. Mirror bool `json:"mirror"`
  22. LFS bool `json:"lfs"`
  23. LFSEndpoint string `json:"lfs_endpoint"`
  24. Private bool `json:"private"`
  25. Description string `json:"description"`
  26. OriginalURL string
  27. GitServiceType structs.GitServiceType
  28. Wiki bool
  29. Issues bool
  30. Milestones bool
  31. Labels bool
  32. Releases bool
  33. Comments bool
  34. PullRequests bool
  35. ReleaseAssets bool
  36. MigrateToRepoID int64
  37. MirrorInterval string `json:"mirror_interval"`
  38. }