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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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