2016-09-27 20:30:28 -05:00
|
|
|
package model
|
2016-04-12 17:27:24 -07:00
|
|
|
|
|
|
|
// EventType defines the possible types of build events.
|
|
|
|
type EventType string
|
|
|
|
|
|
|
|
const (
|
|
|
|
Enqueued EventType = "enqueued"
|
|
|
|
Started EventType = "started"
|
|
|
|
Finished EventType = "finished"
|
|
|
|
Cancelled EventType = "cancelled"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Event represents a build event.
|
|
|
|
type Event struct {
|
2016-09-27 20:30:28 -05:00
|
|
|
Type EventType `json:"type"`
|
|
|
|
Repo Repo `json:"repo"`
|
|
|
|
Build Build `json:"build"`
|
2017-04-02 23:13:26 +09:00
|
|
|
Proc Proc `json:"proc"`
|
2016-04-21 00:25:30 -07:00
|
|
|
}
|