jiracloud

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 Event

type Event struct {
	Timestamp    int
	WebhookEvent string `json:"webhookEvent"`
}

func (Event) Type

func (e Event) Type() eventType

type IssueEvent

type IssueEvent struct {
	User      jira.User
	Issue     jira.Issue
	Changelog jira.Changelog
}

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 (IssueEvent) Tags

func (ie IssueEvent) Tags() (map[string]interface{}, error)

func (IssueEvent) Timings added in v0.3.0

func (ie IssueEvent) Timings() (eventsources.EventTimings, error)

type Source

type Source struct {
	// contains filtered or unexported fields
}

func NewSource

func NewSource(tracer opentracing.Tracer) (*Source, error)

func (*Source) Event

func (s *Source) Event(r *http.Request, payload []byte) (eventsources.Event, error)

func (Source) Name

func (s Source) Name() string

func (*Source) SecretKey

func (s *Source) SecretKey() []byte

func (*Source) Tracer

func (s *Source) Tracer() opentracing.Tracer

func (*Source) ValidatePayload

func (s *Source) ValidatePayload(r *http.Request, secretKey []byte) ([]byte, error)

type SprintEvent

type SprintEvent struct {
	Sprint jira.Sprint
}

func (SprintEvent) IsError

func (se SprintEvent) IsError() (bool, error)

IsError returns true if the sprint ended before its `endDate` TODO

func (SprintEvent) OperationName

func (se SprintEvent) OperationName() string

func (SprintEvent) ParentSpanID

func (se SprintEvent) ParentSpanID() (*string, error)

func (SprintEvent) SpanID

func (se SprintEvent) SpanID() (string, error)

func (SprintEvent) State

func (SprintEvent) Tags

func (se SprintEvent) Tags() (map[string]interface{}, error)

func (SprintEvent) Timings added in v0.3.0

func (se SprintEvent) Timings() (eventsources.EventTimings, error)

Jump to

Keyboard shortcuts

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