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 Normalize ¶
func Normalize(cfg config.Configuration, hReq handlers.HandlerRequest) (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)
Click to show internal directories.
Click to hide internal directories.