Help us shape the future of Go! Take the 2026 Go Developer Survey

event

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Kind       Kind      `json:"kind"`
	ID         string    `json:"id"`
	At         time.Time `json:"at"`
	StartedAt  time.Time `json:"started_at,omitzero"`
	App        string    `json:"app,omitempty"`
	From       string    `json:"from,omitempty"`
	To         string    `json:"to,omitempty"`
	Image      string    `json:"image,omitempty"`
	Title      string    `json:"title,omitempty"`
	PR         int       `json:"pr,omitempty"`
	Actor      string    `json:"actor,omitempty"`
	Commit     string    `json:"commit,omitempty"`
	RunURL     string    `json:"run_url,omitempty"`
	PRURL      string    `json:"pr_url,omitempty"`
	Attempt    int       `json:"attempt,omitempty"`
	Hosts      []Host    `json:"hosts,omitempty"`
	Result     Result    `json:"result,omitempty"`
	FailedTask string    `json:"failed_task,omitempty"`
	Error      string    `json:"error,omitempty"`
	NoChanges  bool      `json:"no_changes,omitempty"`
}

type Host

type Host struct {
	Name        string `json:"name"`
	OK          int    `json:"ok"`
	Changed     int    `json:"changed"`
	Failed      int    `json:"failed"`
	Unreachable int    `json:"unreachable"`
}

type Kind

type Kind string
const (
	ReleaseOpened  Kind = "release_opened"
	Reopened       Kind = "reopened"
	ChecksFinished Kind = "checks_finished"
	Merged         Kind = "merged"
	ClosedUnmerged Kind = "closed_unmerged"
	DeployStarted  Kind = "deploy_started"
	DeployFinished Kind = "deploy_finished"
)

type Result

type Result string
const (
	Success   Result = "success"
	Failure   Result = "failure"
	Cancelled Result = "cancelled"
)

Jump to

Keyboard shortcuts

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