# Functions
CheckAndEnsureSafePR will check that a given PR is safe to download.
DumpRepository dump repository according MigrateOptions to a local directory.
Init migrations service.
IsMigrateURLAllowed checks if an URL is allowed to be migrated from.
IsRateLimitError returns true if the err is github.RateLimitError.
IsTwoFactorAuthError returns true if the err is github.TwoFactorAuthError.
MigrateRepository migrate repository according MigrateOptions.
NewCodebaseDownloader creates a new downloader.
NewGitBucketDownloader creates a GitBucket downloader.
NewGiteaDownloader creates a gitea Downloader via gitea API
Use either a username/password or personal token.
NewGiteaLocalUploader creates an gitea Uploader via gitea API v1.
NewGithubDownloaderV3 creates a github Downloader via github v3 API.
NewGitlabDownloader creates a gitlab Downloader via gitlab API
Use either a username/password, personal token entered into the username field, or anonymous/public access Note: Public access only allows very basic access.
NewGogsDownloader creates a gogs Downloader via gogs API.
NewMigrationHTTPClient returns a HTTP client for migration.
NewMigrationHTTPTransport returns a HTTP transport for migration.
NewOneDevDownloader creates a new downloader.
NewPlainGitDownloader creates a git Downloader.
NewRepositoryDumper creates an gitea Uploader.
NewRepositoryRestorer creates a repository restorer which could restore repository from a dumped folder.
RegisterDownloaderFactory registers a downloader factory.
RestoreRepository restore a repository from the disk directory.
UpdateMigrationPosterID updates all migrated repositories' issues and comments posterID.
WarnAndNotice will log the provided message and send a repository notice.
# Variables
ErrRepoNotCreated returns the error that repository not created.
GithubLimitRateRemaining limit to wait for new rate to apply.
# Structs
CodebaseDownloader implements a Downloader interface to get repository information from Codebase.
CodebaseDownloaderFactory defines a downloader factory.
CodeCommitDownloader implements a downloader for AWS CodeCommit.
CodeCommitDownloaderFactory defines a codecommit downloader factory.
GitBucketDownloader implements a Downloader interface to get repository information from GitBucket via GithubDownloader.
GitBucketDownloaderFactory defines a GitBucket downloader factory.
GiteaDownloader implements a Downloader interface to get repository information's.
GiteaDownloaderFactory defines a gitea downloader factory.
GiteaLocalUploader implements an Uploader to gitea sites.
GithubDownloaderV3 implements a Downloader interface to get repository information from github via APIv3.
GithubDownloaderV3Factory defines a github downloader v3 factory.
GitlabDownloader implements a Downloader interface to get repository information from gitlab via go-gitlab - issueCount is incremented in GetIssues() to ensure PR and Issue numbers do not overlap, because Gitlab has individual Issue and Pull Request numbers.
GitlabDownloaderFactory defines a gitlab downloader factory.
GogsDownloader implements a Downloader interface to get repository information from gogs via API.
GogsDownloaderFactory defines a gogs downloader factory.
OneDevDownloader implements a Downloader interface to get repository information from OneDev.
OneDevDownloaderFactory defines a downloader factory.
PlainGitDownloader implements a Downloader interface to clone git from a http/https URL.
RepositoryDumper implements an Uploader to the local directory.
RepositoryRestorer implements an Downloader from the local directory.
# Type aliases
MigrateOptions is equal to base.MigrateOptions.