Documentation ¶
Index ¶
- func ToBranch(repo *models.Repository, b *models.Branch, c *git.Commit) *api.Branch
- func ToCommit(repo *models.Repository, c *git.Commit) *api.PayloadCommit
- func ToCorrectPageSize(size int) int
- func ToDeployKey(apiLink string, key *models.DeployKey) *api.DeployKey
- func ToEmail(email *models.EmailAddress) *api.Email
- func ToGPGKey(key *models.GPGKey) *api.GPGKey
- func ToGPGKeyEmail(email *models.EmailAddress) *api.GPGKeyEmail
- func ToHook(repoLink string, w *models.Webhook) *api.Hook
- func ToOrganization(org *models.User) *api.Organization
- func ToPublicKey(apiLink string, key *models.PublicKey) *api.PublicKey
- func ToTag(repo *models.Repository, t *git.Tag) *api.Tag
- func ToTeam(team *models.Team) *api.Team
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToCommit ¶
func ToCommit(repo *models.Repository, c *git.Commit) *api.PayloadCommit
ToCommit convert a commit to api.PayloadCommit
func ToCorrectPageSize ¶
ToCorrectPageSize makes sure page size is in allowed range.
func ToDeployKey ¶
ToDeployKey convert models.DeployKey to api.DeployKey
func ToEmail ¶
func ToEmail(email *models.EmailAddress) *api.Email
ToEmail convert models.EmailAddress to api.Email
func ToGPGKeyEmail ¶ added in v1.2.0
func ToGPGKeyEmail(email *models.EmailAddress) *api.GPGKeyEmail
ToGPGKeyEmail convert models.EmailAddress to api.GPGKeyEmail
func ToOrganization ¶
func ToOrganization(org *models.User) *api.Organization
ToOrganization convert models.User to api.Organization
func ToPublicKey ¶
ToPublicKey convert models.PublicKey to api.PublicKey
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.