package
1.8.0
Repository: https://github.com/jolheiser/gitea.git
Documentation: pkg.go.dev

# Functions

ToAnnotatedTag convert git.Tag to api.AnnotatedTag.
ToAnnotatedTagObject convert a git.Commit to an api.AnnotatedTagObject.
ToAPIPullRequest assumes following fields have been assigned with valid values: Required - Issue Optional - Merger.
ToBranch convert a git.Commit and git.Branch to an api.Branch.
ToCommit convert a git.Commit to api.PayloadCommit.
ToCommitMeta convert a git.Tag to an api.CommitMeta.
ToCommitUser convert a git.Signature to an api.CommitUser.
ToCorrectPageSize makes sure page size is in allowed range.
ToDeployKey convert models.DeployKey to api.DeployKey.
ToEmail convert models.EmailAddress to api.Email.
ToGitHook convert git.Hook to api.GitHook.
ToGPGKey converts models.GPGKey to api.GPGKey.
ToGPGKeyEmail convert models.EmailAddress to api.GPGKeyEmail.
ToHook convert models.Webhook to api.Hook.
ToOrganization convert models.User to api.Organization.
ToPublicKey convert models.PublicKey to api.PublicKey.
ToTag convert a git.Tag to an api.Tag.
ToTeam convert models.Team to api.Team.
ToTopicResponse convert from models.Topic to api.TopicResponse.
ToTrackedTime converts TrackedTime to API format.
ToTrackedTimeList converts TrackedTimeList to API format.
ToUser convert models.User to api.User signed shall only be set if requester is logged in.
ToVerification convert a git.Commit.Signature to an api.PayloadCommitVerification.