codeship

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DisplayName      = "Codeship"
	HandlerKey       = "codeship"
	MessageDirection = "out"
	DocumentationURL = "https://documentation.codeship.com/basic/getting-started/webhooks/"
	MessageBodyType  = models.JSON
)

Variables

This section is empty.

Functions

func ExampleMessage

func ExampleMessage(cfg config.Configuration, data util.ExampleData) (cc.Message, error)

func NewHandler

func NewHandler() handlers.Handler

func Normalize

func Normalize(cfg config.Configuration, bytes []byte) (cc.Message, error)

Types

type CodeshipOutBuild

type CodeshipOutBuild struct {
	BuildURL        string `json:"build_url,omitempty"`
	CommitURL       string `json:"commit_url,omitempty"`
	ProjectId       int64  `json:"project_id,omitempty"`
	BuildId         int64  `json:"build_id,omitempty"`
	Status          string `json:"status,omitempty"`
	ProjectFullName string `json:"project_full_name,omitempty"`
	ProjectName     string `json:"project_name,omitempty"`
	CommitId        string `json:"commit_id,omitempty"`
	ShortCommitId   string `json:"short_commit_id,omitempty"`
	Message         string `json:"message,omitempty"`
	Committer       string `json:"committer,omitempty"`
	Branch          string `json:"branch,omitempty"`
}

type CodeshipOutMessage

type CodeshipOutMessage struct {
	Build CodeshipOutBuild `json:"build,omitempty"`
}

func CodeshipOutMessageFromBytes

func CodeshipOutMessageFromBytes(bytes []byte) (CodeshipOutMessage, error)

Jump to

Keyboard shortcuts

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