Documentation ¶
Index ¶
- func NewFromCLI(c *cli.Context, tracer opentracing.Tracer) (eventsources.EventSource, error)
- func NewSource(tracer opentracing.Tracer) (eventsources.EventSource, error)
- func PostEvent(payload []byte, eventType string, u *url.URL, client *http.Client) (*http.Response, error)
- type IssueEvent
- func (ie IssueEvent) IsError() (bool, error)
- func (ie IssueEvent) OperationName() string
- func (ie IssueEvent) ParentSpanID() (*string, error)
- func (ie IssueEvent) SpanID() (string, error)
- func (ie IssueEvent) State(prev *eventsources.EventState) (eventsources.SpanState, error)
- func (ie IssueEvent) Tags() (map[string]interface{}, error)
- type JobEvent
- func (je JobEvent) IsError() (bool, error)
- func (je JobEvent) OperationName() string
- func (je JobEvent) ParentSpanID() (*string, error)
- func (je JobEvent) SpanID() (string, error)
- func (je JobEvent) State(prev *eventsources.EventState) (eventsources.SpanState, error)
- func (je JobEvent) Tags() (map[string]interface{}, error)
- type MergeEvent
- func (me MergeEvent) IsError() (bool, error)
- func (me MergeEvent) OperationName() string
- func (me MergeEvent) ParentSpanID() (*string, error)
- func (me MergeEvent) SpanID() (string, error)
- func (me MergeEvent) State(prev *eventsources.EventState) (eventsources.SpanState, error)
- func (me MergeEvent) Tags() (map[string]interface{}, error)
- func (me MergeEvent) TraceID() (*string, error)
- type PipelineEvent
- func (pe PipelineEvent) IsError() (bool, error)
- func (pe PipelineEvent) OperationName() string
- func (pe PipelineEvent) ParentSpanID() (*string, error)
- func (pe PipelineEvent) SpanID() (string, error)
- func (pe PipelineEvent) State(prev *eventsources.EventState) (eventsources.SpanState, error)
- func (pe PipelineEvent) Tags() (map[string]interface{}, error)
- 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)
func NewSource ¶
func NewSource(tracer opentracing.Tracer) (eventsources.EventSource, error)
Types ¶
type IssueEvent ¶
type IssueEvent struct {
*gitlab.IssueEvent
}
func (IssueEvent) IsError ¶
func (ie IssueEvent) IsError() (bool, error)
func (IssueEvent) OperationName ¶
func (ie IssueEvent) OperationName() string
func (IssueEvent) ParentSpanID ¶
func (ie IssueEvent) ParentSpanID() (*string, error)
func (IssueEvent) SpanID ¶
func (ie IssueEvent) SpanID() (string, error)
func (IssueEvent) State ¶
func (ie IssueEvent) State(prev *eventsources.EventState) (eventsources.SpanState, error)
func (IssueEvent) Tags ¶
func (ie IssueEvent) Tags() (map[string]interface{}, error)
type JobEvent ¶
type JobEvent struct {
*gitlab.JobEvent
}
func (JobEvent) OperationName ¶
func (JobEvent) ParentSpanID ¶
func (JobEvent) State ¶
func (je JobEvent) State(prev *eventsources.EventState) (eventsources.SpanState, error)
State identifies the current state of the build, valid states are: - pending - created - running - canceled - success
type MergeEvent ¶
type MergeEvent struct {
*gitlab.MergeEvent
}
func (MergeEvent) IsError ¶
func (me MergeEvent) IsError() (bool, error)
func (MergeEvent) OperationName ¶
func (me MergeEvent) OperationName() string
func (MergeEvent) ParentSpanID ¶
func (me MergeEvent) ParentSpanID() (*string, error)
func (MergeEvent) SpanID ¶
func (me MergeEvent) SpanID() (string, error)
func (MergeEvent) State ¶
func (me MergeEvent) State(prev *eventsources.EventState) (eventsources.SpanState, error)
func (MergeEvent) Tags ¶
func (me MergeEvent) Tags() (map[string]interface{}, error)
func (MergeEvent) TraceID ¶
func (me MergeEvent) TraceID() (*string, error)
type PipelineEvent ¶
type PipelineEvent struct {
*gitlab.PipelineEvent
}
func (PipelineEvent) IsError ¶
func (pe PipelineEvent) IsError() (bool, error)
func (PipelineEvent) OperationName ¶
func (pe PipelineEvent) OperationName() string
func (PipelineEvent) ParentSpanID ¶
func (pe PipelineEvent) ParentSpanID() (*string, error)
ParentSpanID inspects the pipeline payload for the causing event: - Pull Request - Issue
func (PipelineEvent) SpanID ¶
func (pe PipelineEvent) SpanID() (string, error)
func (PipelineEvent) State ¶
func (pe PipelineEvent) State(prev *eventsources.EventState) (eventsources.SpanState, error)
func (PipelineEvent) Tags ¶
func (pe PipelineEvent) Tags() (map[string]interface{}, error)
Click to show internal directories.
Click to hide internal directories.