Documentation ¶
Index ¶
- Constants
- type GitlabEventWorker
- type GitlabHookEvent
- type GitlabHooksHandler
- type MergeRequestEventMsg
- type NoteEventMsg
- func (e *NoteEventMsg) DecodeEventData(b []byte) error
- func (e *NoteEventMsg) EncodeEventData() []byte
- func (e *NoteEventMsg) GetAttributes() vcs.MRAttributes
- func (e *NoteEventMsg) GetId() string
- func (e *NoteEventMsg) GetLastCommit() vcs.Commit
- func (e *NoteEventMsg) GetMR() vcs.MR
- func (e *NoteEventMsg) GetProject() vcs.Project
- type TriggerCreationFunc
Constants ¶
View Source
const GitlabHookIgnoreReasonUnhandledEventType = "unhandled-event-type"
View Source
const GitlabHooksSubject = "gitlab"
View Source
const GitlabTokenHeader = "X-Gitlab-Token"
View Source
const MergeRequestEventsSubject = "mrevents"
View Source
const NoteEventsSubject = "noteevents"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitlabEventWorker ¶
type GitlabEventWorker struct {
// contains filtered or unexported fields
}
func NewGitlabEventWorker ¶
func NewGitlabEventWorker(h *GitlabHooksHandler, js nats.JetStreamContext) *GitlabEventWorker
type GitlabHookEvent ¶
type GitlabHookEvent struct { }
GitlabHookEvent represents all types of Gitlab Hooks events to be processed.
func (*GitlabHookEvent) GetPlatform ¶
func (e *GitlabHookEvent) GetPlatform() string
type GitlabHooksHandler ¶
type GitlabHooksHandler struct {
// contains filtered or unexported fields
}
func NewGitlabHooksHandler ¶
func NewGitlabHooksHandler(gl vcs.GitClient, tfc tfc_api.ApiClient, rs runstream.StreamClient, js nats.JetStreamContext) *GitlabHooksHandler
func (*GitlabHooksHandler) GroupHandler ¶
func (h *GitlabHooksHandler) GroupHandler() func(c echo.Context) error
func (*GitlabHooksHandler) ProjectHandler ¶
func (h *GitlabHooksHandler) ProjectHandler() func(c echo.Context) error
type MergeRequestEventMsg ¶
type MergeRequestEventMsg struct { GitlabHookEvent // contains filtered or unexported fields }
func (*MergeRequestEventMsg) DecodeEventData ¶
func (e *MergeRequestEventMsg) DecodeEventData(b []byte) error
func (*MergeRequestEventMsg) EncodeEventData ¶
func (e *MergeRequestEventMsg) EncodeEventData() []byte
func (*MergeRequestEventMsg) GetId ¶
func (e *MergeRequestEventMsg) GetId() string
func (*MergeRequestEventMsg) GetPayload ¶
func (e *MergeRequestEventMsg) GetPayload() interface{}
func (*MergeRequestEventMsg) GetType ¶
func (e *MergeRequestEventMsg) GetType() string
type NoteEventMsg ¶
type NoteEventMsg struct { GitlabHookEvent // contains filtered or unexported fields }
func (*NoteEventMsg) DecodeEventData ¶
func (e *NoteEventMsg) DecodeEventData(b []byte) error
func (*NoteEventMsg) EncodeEventData ¶
func (e *NoteEventMsg) EncodeEventData() []byte
func (*NoteEventMsg) GetAttributes ¶
func (e *NoteEventMsg) GetAttributes() vcs.MRAttributes
func (*NoteEventMsg) GetId ¶
func (e *NoteEventMsg) GetId() string
func (*NoteEventMsg) GetLastCommit ¶
func (e *NoteEventMsg) GetLastCommit() vcs.Commit
func (*NoteEventMsg) GetMR ¶
func (e *NoteEventMsg) GetMR() vcs.MR
func (*NoteEventMsg) GetProject ¶
func (e *NoteEventMsg) GetProject() vcs.Project
type TriggerCreationFunc ¶
type TriggerCreationFunc func(gl vcs.GitClient, tfc tfc_api.ApiClient, runstream runstream.StreamClient, cfg *tfc_trigger.TFCTriggerOptions) tfc_trigger.Trigger
Click to show internal directories.
Click to hide internal directories.