gitech
1// Copyright 2019 The Gitea Authors. All rights reserved.
2// Copyright 2018 Jonas Franz. All rights reserved.
3// SPDX-License-Identifier: MIT
4
5package migration6
7import "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
11type MigrateOptions struct {12// required: true13CloneAddr string `json:"clone_addr" binding:"Required"`14CloneAddrEncrypted string `json:"clone_addr_encrypted,omitempty"`15AuthUsername string `json:"auth_username"`16AuthPassword string `json:"-"`17AuthPasswordEncrypted string `json:"auth_password_encrypted,omitempty"`18AuthToken string `json:"-"`19AuthTokenEncrypted string `json:"auth_token_encrypted,omitempty"`20// required: true21UID int `json:"uid" binding:"Required"`22// required: true23RepoName string `json:"repo_name" binding:"Required"`24Mirror bool `json:"mirror"`25LFS bool `json:"lfs"`26LFSEndpoint string `json:"lfs_endpoint"`27Private bool `json:"private"`28Description string `json:"description"`29OriginalURL string30GitServiceType structs.GitServiceType31Wiki bool32Issues bool33Milestones bool34Labels bool35Releases bool36Comments bool37PullRequests bool38ReleaseAssets bool39MigrateToRepoID int6440MirrorInterval string `json:"mirror_interval"`41}
42