Documentation ¶
Index ¶
- Variables
- func Issues(ctx context.Context, client *gitlab.Client, pid string, since time.Time) <-chan *gitlab.Issue
- func LabelEvents(ctx context.Context, client *gitlab.Client, issue *gitlab.Issue) <-chan Event
- func Notes(ctx context.Context, client *gitlab.Client, issue *gitlab.Issue) <-chan Event
- func SortedEvents(inputs ...<-chan Event) chan Event
- func StateEvents(ctx context.Context, client *gitlab.Client, issue *gitlab.Issue) <-chan Event
- type ErrorEvent
- type Event
- type EventKind
- type Gitlab
- func (g *Gitlab) Configure(repo *cache.RepoCache, params core.BridgeParams, interactive bool) (core.Configuration, error)
- func (g *Gitlab) LoginMetaKey() string
- func (Gitlab) NewExporter() core.Exporter
- func (Gitlab) NewImporter() core.Importer
- func (Gitlab) Target() string
- func (g *Gitlab) ValidParams() map[string]interface{}
- func (g *Gitlab) ValidateConfig(conf core.Configuration) error
- type LabelEvent
- type NoteEvent
- type StateEvent
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBadProjectURL = errors.New("bad project url")
)
View Source
var (
ErrMissingIdentityToken = errors.New("missing identity token")
)
Functions ¶
func Issues ¶ added in v0.8.0
func Issues(ctx context.Context, client *gitlab.Client, pid string, since time.Time) <-chan *gitlab.Issue
Issues returns a channel with gitlab project issues, ascending order.
func LabelEvents ¶ added in v0.8.0
LabelEvents returns a channel with label events.
func SortedEvents ¶ added in v0.8.0
SortedEvents fan-in some Event-channels into one, sorted by creation date, using CreatedAt-method. This function assume that each channel is pre-ordered.
func StateEvents ¶ added in v0.8.0
StateEvents returns a channel with state change events.
Types ¶
type ErrorEvent ¶ added in v0.8.0
func (ErrorEvent) CreatedAt ¶ added in v0.8.0
func (e ErrorEvent) CreatedAt() time.Time
func (ErrorEvent) ID ¶ added in v0.8.0
func (e ErrorEvent) ID() string
func (ErrorEvent) Kind ¶ added in v0.8.0
func (e ErrorEvent) Kind() EventKind
func (ErrorEvent) UserID ¶ added in v0.8.0
func (e ErrorEvent) UserID() int
type EventKind ¶ added in v0.8.0
type EventKind int
const ( EventUnknown EventKind = iota EventError EventComment EventTitleChanged EventDescriptionChanged EventClosed EventReopened EventLocked EventUnlocked EventChangedDuedate EventRemovedDuedate EventAssigned EventUnassigned EventChangedMilestone EventRemovedMilestone EventAddLabel EventRemoveLabel EventMentionedInIssue EventMentionedInMergeRequest )
type Gitlab ¶
type Gitlab struct{}
func (*Gitlab) Configure ¶
func (g *Gitlab) Configure(repo *cache.RepoCache, params core.BridgeParams, interactive bool) (core.Configuration, error)
func (*Gitlab) LoginMetaKey ¶
func (Gitlab) NewExporter ¶
func (Gitlab) NewImporter ¶
func (*Gitlab) ValidParams ¶
func (*Gitlab) ValidateConfig ¶
func (g *Gitlab) ValidateConfig(conf core.Configuration) error
type LabelEvent ¶ added in v0.8.0
type LabelEvent struct{ gitlab.LabelEvent }
func (LabelEvent) CreatedAt ¶ added in v0.8.0
func (l LabelEvent) CreatedAt() time.Time
func (LabelEvent) ID ¶ added in v0.8.0
func (l LabelEvent) ID() string
func (LabelEvent) Kind ¶ added in v0.8.0
func (l LabelEvent) Kind() EventKind
func (LabelEvent) UserID ¶ added in v0.8.0
func (l LabelEvent) UserID() int
type StateEvent ¶ added in v0.8.0
type StateEvent struct{ gitlab.StateEvent }
func (StateEvent) CreatedAt ¶ added in v0.8.0
func (s StateEvent) CreatedAt() time.Time
func (StateEvent) ID ¶ added in v0.8.0
func (s StateEvent) ID() string
func (StateEvent) Kind ¶ added in v0.8.0
func (s StateEvent) Kind() EventKind
func (StateEvent) UserID ¶ added in v0.8.0
func (s StateEvent) UserID() int
Click to show internal directories.
Click to hide internal directories.