Documentation
¶
Index ¶
- func NewFromCLI(c *cli.Context, tracer opentracing.Tracer) (eventsources.EventSource, error)
- type BuildEvent
- func (be BuildEvent) IsError() (bool, error)
- func (be BuildEvent) OperationName() string
- func (be BuildEvent) ParentSpanID() (*string, error)
- func (be BuildEvent) SpanID() (string, error)
- func (be BuildEvent) State(prev *eventsources.EventState) (eventsources.SpanState, error)
- func (be BuildEvent) String() (string, error)
- func (be BuildEvent) Tags() (map[string]interface{}, error)
- func (be BuildEvent) Timings() (eventsources.EventTimings, error)
- type BuildState
- type ScmInfo
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFromCLI ¶
func NewFromCLI(c *cli.Context, tracer opentracing.Tracer) (eventsources.EventSource, error)
Types ¶
type BuildEvent ¶
type BuildEvent struct { QueueTime int `json:"queueTime"` Result string `json:"result"` CiURL string `json:"ciUrl"` ContextID int `json:"contextId"` FullJobName string `json:"fullJobName"` Parameters map[string]string `json:"parameters"` BuildURL string `json:"buildUrl"` BuildCause string `json:"buildCause"` StartTime int `json:"startTime"` Number int `json:"number"` StartedUsername string `json:"startedUsername"` JobName string `json:"jobName"` SlaveInfo struct { SlaveName string `json:"slaveName"` Executor string `json:"executor"` Label string `json:"label"` } `json:"slaveInfo"` ScmInfo *ScmInfo `json:"scmInfo,omitempty"` StartedUserID string `json:"startedUserId"` Duration int `json:"duration"` EndTime int `json:"endTime"` }
func (BuildEvent) IsError ¶
func (be BuildEvent) IsError() (bool, error)
func (BuildEvent) OperationName ¶
func (be BuildEvent) OperationName() string
OperationName determines if the event is a `deploy` or a `build` based on the presence of a `type:deploy` tag.
func (BuildEvent) ParentSpanID ¶
func (be BuildEvent) ParentSpanID() (*string, error)
ParentSpanID inspects the Jenkins Event payload to determine what the parent span is. First will check to see if the parent is explicitly specified in build params Then will check if the build is part of SCM
func (BuildEvent) SpanID ¶
func (be BuildEvent) SpanID() (string, error)
func (BuildEvent) State ¶
func (be BuildEvent) State(prev *eventsources.EventState) (eventsources.SpanState, error)
func (BuildEvent) String ¶
func (be BuildEvent) String() (string, error)
func (BuildEvent) Tags ¶
func (be BuildEvent) Tags() (map[string]interface{}, error)
func (BuildEvent) Timings ¶ added in v0.3.0
func (be BuildEvent) Timings() (eventsources.EventTimings, error)
type BuildState ¶
type BuildState int
Click to show internal directories.
Click to hide internal directories.