Documentation ¶
Index ¶
- func ToApiBranch(b *models.Branch, c *git.Commit) *api.Branch
- func ToApiCommit(c *git.Commit) *api.PayloadCommit
- func ToApiDeployKey(apiLink string, key *models.DeployKey) *api.DeployKey
- func ToApiEmail(email *models.EmailAddress) *api.Email
- func ToApiHook(repoLink string, w *models.Webhook) *api.Hook
- func ToApiOrganization(org *models.User) *api.Organization
- func ToApiPublicKey(apiLink string, key *models.PublicKey) *api.PublicKey
- func ToApiRepository(owner *models.User, repo *models.Repository, permission api.Permission) *api.Repository
- func ToApiUser(u *models.User) *api.User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToApiBranch ¶ added in v0.8.43
ToApiBranch converts user to its API format.
func ToApiCommit ¶ added in v0.8.43
func ToApiCommit(c *git.Commit) *api.PayloadCommit
ToApiCommit converts user to its API format.
func ToApiDeployKey ¶
ToApiDeployKey converts deploy key to its API format.
func ToApiEmail ¶
func ToApiEmail(email *models.EmailAddress) *api.Email
func ToApiOrganization ¶
func ToApiOrganization(org *models.User) *api.Organization
func ToApiPublicKey ¶
ToApiPublicKey converts public key to its API format.
func ToApiRepository ¶
func ToApiRepository(owner *models.User, repo *models.Repository, permission api.Permission) *api.Repository
ToApiRepository converts repository to API format.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.