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