convert

package
v0.8.43 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToApiBranch added in v0.8.43

func ToApiBranch(b *models.Branch, c *git.Commit) *api.Branch

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

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

ToApiDeployKey converts deploy key to its API format.

func ToApiEmail

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

func ToApiHook

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

ToApiHook converts webhook to its API format.

func ToApiOrganization

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

func ToApiPublicKey

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

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.

func ToApiUser

func ToApiUser(u *models.User) *api.User

ToApiUser converts user to its API format.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL