convert

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToBranch

func ToBranch(b *db.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 *db.DeployKey) *api.DeployKey

func ToEmail

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

func ToHook

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

func ToOrganization

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

func ToPublicKey

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

func ToTeam

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

Types

type Tag added in v0.12.4

type Tag struct {
	Name   string             `json:"name"`
	Commit *api.PayloadCommit `json:"commit"`
}

func ToTag added in v0.12.4

func ToTag(b *db.Tag, c *git.Commit) *Tag

Jump to

Keyboard shortcuts

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