buildkite

package
v0.0.0-...-d2cb3ff Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2018 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventTypePing              EventType = "ping"
	EventTypeBuildScheduled              = "build.scheduled"
	EventTypeBuildRunning                = "build.running"
	EventTypeBuildFinished               = "build.finished"
	EventTypeJobStarted                  = "job.started"
	EventTypeJobFinished                 = "job.finished"
	EventTypeJobActivated                = "job.activated"
	EventTypeAgentConnected              = "agent.connected"
	EventTypeAgentLost                   = "agent.lost"
	EventTypeAgentDisconnected           = "agent.disconnected"
	EventTypeAgentStopping               = "agent.stopping"
	EventTypeAgentStopped                = "agent.stopped"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentEvent

type AgentEvent struct {
	Event  EventType
	Agent  bk.Agent
	Sender EventSender
}

func (AgentEvent) Type

func (ae AgentEvent) Type() EventType

type BuildEvent

type BuildEvent struct {
	Event    EventType
	Build    bk.Build
	Pipeline bk.Pipeline
	Sender   EventSender
}

func (BuildEvent) Type

func (be BuildEvent) Type() EventType

type Event

type Event interface {
	Type() EventType
	// contains filtered or unexported methods
}

func Unmarshal

func Unmarshal(b []byte) (Event, error)

type EventSender

type EventSender struct {
	ID   string `json:"id"`
	Name string
}

type EventType

type EventType string

type JobEvent

type JobEvent struct {
	Event    EventType
	Job      bk.Job
	Build    bk.Build
	Pipeline bk.Pipeline
	Sender   EventSender
}

func (JobEvent) Type

func (je JobEvent) Type() EventType

type PingEvent

type PingEvent struct {
	Event   EventType
	Service struct {
		ID       string `json:"id"`
		Provider string
		Settings map[string]string
	}
	Organization bk.Organization
	Sender       EventSender
}

func (PingEvent) Type

func (pe PingEvent) Type() EventType

Jump to

Keyboard shortcuts

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