convert

package
v0.9.99 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToBranch

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

func ToCommit

func ToCommit(c *git.Commit) *api.PayloadCommit

func ToCorrectPageSize

func ToCorrectPageSize(size int) int

ToCorrectPageSize makes sure page size is in allowed range.

func ToDeployKey

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

func ToEmail

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

func ToHook

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

func ToOrganization

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

func ToPublicKey

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

func ToTeam

func ToTeam(team *models.Team) *api.Team

Types

This section is empty.

Jump to

Keyboard shortcuts

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