Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EventType ¶
type EventType string
const ( EventTypeInvalid EventType = "" // event stream protocol version EventTypeVersion EventType = "version" // end of stream EventTypeEnd EventType = "end" // build log (e.g. from input or build execution) EventTypeLog EventType = "log" // build status change (e.g. 'started', 'succeeded') EventTypeStatus EventType = "status" // build initializing (all inputs fetched; fetching image) EventTypeInitialize EventType = "initialize" // build execution started EventTypeStart EventType = "start" // build execution finished EventTypeFinish EventType = "finish" // error occurred EventTypeError EventType = "error" // input fetched EventTypeInput EventType = "input" // output completed EventTypeOutput EventType = "output" )
type Initialize ¶
func (Initialize) EventType ¶
func (Initialize) EventType() EventType
type Message ¶
type Message struct {
Event Event `json:"-"`
}
func (Message) MarshalJSON ¶
func (*Message) UnmarshalJSON ¶
type Origin ¶
type Origin struct { Type OriginType `json:"type"` Name string `json:"name"` }
not an event; used in Log and Error
type OriginType ¶
type OriginType string
const ( OriginTypeInvalid OriginType = "" OriginTypeInput OriginType = "input" OriginTypeOutput OriginType = "output" OriginTypeRun OriginType = "run" )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.