gitea: code.gitea.io/gitea/routers/api/v1/convert Index | Files

package convert

import "code.gitea.io/gitea/routers/api/v1/convert"

Index

Package Files

convert.go utils.go

func ToAnnotatedTag Uses

func ToAnnotatedTag(repo *models.Repository, t *git.Tag, c *git.Commit) *api.AnnotatedTag

ToAnnotatedTag convert git.Tag to api.AnnotatedTag

func ToAnnotatedTagObject Uses

func ToAnnotatedTagObject(repo *models.Repository, commit *git.Commit) *api.AnnotatedTagObject

ToAnnotatedTagObject convert a git.Commit to an api.AnnotatedTagObject

func ToBranch Uses

func ToBranch(repo *models.Repository, b *git.Branch, c *git.Commit) *api.Branch

ToBranch convert a git.Commit and git.Branch to an api.Branch

func ToCommit Uses

func ToCommit(repo *models.Repository, c *git.Commit) *api.PayloadCommit

ToCommit convert a git.Commit to api.PayloadCommit

func ToCommitMeta Uses

func ToCommitMeta(repo *models.Repository, tag *git.Tag) *api.CommitMeta

ToCommitMeta convert a git.Tag to an api.CommitMeta

func ToCommitUser Uses

func ToCommitUser(sig *git.Signature) *api.CommitUser

ToCommitUser convert a git.Signature to an api.CommitUser

func ToCorrectPageSize Uses

func ToCorrectPageSize(size int) int

ToCorrectPageSize makes sure page size is in allowed range.

func ToDeployKey Uses

func ToDeployKey(apiLink string, key *models.DeployKey) *api.DeployKey

ToDeployKey convert models.DeployKey to api.DeployKey

func ToEmail Uses

func ToEmail(email *models.EmailAddress) *api.Email

ToEmail convert models.EmailAddress to api.Email

func ToGPGKey Uses

func ToGPGKey(key *models.GPGKey) *api.GPGKey

ToGPGKey converts models.GPGKey to api.GPGKey

func ToGPGKeyEmail Uses

func ToGPGKeyEmail(email *models.EmailAddress) *api.GPGKeyEmail

ToGPGKeyEmail convert models.EmailAddress to api.GPGKeyEmail

func ToGitHook Uses

func ToGitHook(h *git.Hook) *api.GitHook

ToGitHook convert git.Hook to api.GitHook

func ToHook Uses

func ToHook(repoLink string, w *models.Webhook) *api.Hook

ToHook convert models.Webhook to api.Hook

func ToOrganization Uses

func ToOrganization(org *models.User) *api.Organization

ToOrganization convert models.User to api.Organization

func ToPublicKey Uses

func ToPublicKey(apiLink string, key *models.PublicKey) *api.PublicKey

ToPublicKey convert models.PublicKey to api.PublicKey

func ToTag Uses

func ToTag(repo *models.Repository, t *git.Tag) *api.Tag

ToTag convert a git.Tag to an api.Tag

func ToTeam Uses

func ToTeam(team *models.Team) *api.Team

ToTeam convert models.Team to api.Team

func ToTopicResponse Uses

func ToTopicResponse(topic *models.Topic) *api.TopicResponse

ToTopicResponse convert from models.Topic to api.TopicResponse

func ToUser Uses

func ToUser(user *models.User, signed, authed bool) *api.User

ToUser convert models.User to api.User

func ToVerification Uses

func ToVerification(c *git.Commit) *api.PayloadCommitVerification

ToVerification convert a git.Commit.Signature to an api.PayloadCommitVerification

Package convert imports 10 packages (graph) and is imported by 10 packages. Updated 2019-09-15. Refresh now. Tools for package owners.