convert

package
v0.8.25 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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