Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitlabRetreiver ¶
type GitlabRetreiver interface { // GetPipelineURL return the url of this pipeline depending on the instance and project path GetPipelineURL(pathWithNamespace string, pipelineID int) string // GetUserURL return the url of this GitLab user depending on domain instance (e.g. https://gitlab.com/username) GetUserURL(username string) string // GetUsernameById return a username by GitLab id GetUsernameByID(id int) string // ParseGitlabUsernamesFromText from a text return an array of username ParseGitlabUsernamesFromText(text string) []string // GetSubscribedChannelsForProject returns all subscriptions for given project. GetSubscribedChannelsForProject(namespace, project string, isPublicVisibility bool) []*subscription.Subscription }
GitlabRetreiver return infos of current GitLab instance
type HandleWebhook ¶
type Webhook ¶
type Webhook interface { HandleIssue(event *gitlab.IssueEvent) ([]*HandleWebhook, error) HandleMergeRequest(event *gitlab.MergeEvent) ([]*HandleWebhook, error) HandleIssueComment(event *gitlab.IssueCommentEvent) ([]*HandleWebhook, error) HandleMergeRequestComment(event *gitlab.MergeCommentEvent) ([]*HandleWebhook, error) HandlePipeline(event *gitlab.PipelineEvent) ([]*HandleWebhook, error) HandleTag(event *gitlab.TagEvent) ([]*HandleWebhook, error) HandlePush(event *gitlab.PushEvent) ([]*HandleWebhook, error) }
func NewWebhook ¶
func NewWebhook(g GitlabRetreiver) Webhook
Click to show internal directories.
Click to hide internal directories.