Versions in this module Expand all Collapse all v6 v6.0.3 Apr 22, 2022 v6.0.2 Apr 18, 2022 v6.0.1 Apr 17, 2022 Changes in this version + var ErrEventNotFound = errors.New("event not defined to be parsed") + var ErrEventNotSpecifiedToParse = errors.New("no Event specified to parse") + var ErrGitLabTokenVerificationFailed = errors.New("X-Gitlab-Token validation failed") + var ErrInvalidHTTPMethod = errors.New("invalid HTTP Method") + var ErrMissingGitLabEventHeader = errors.New("missing X-Gitlab-Event Header") + var ErrParsingPayload = errors.New("error parsing payload") + var ErrParsingSystemPayload = errors.New("error parsing system payload") + var Options = WebhookOptions + type ArtifactsFile struct + Filename string + Size string + type Assignee struct + AvatarURL string + Email string + ID int64 + Name string + Username string + type Author struct + Email string + Name string + type Build struct + ArtifactsFile ArtifactsFile + CreatedAt customTime + FinishedAt customTime + ID int64 + Manual bool + Name string + Runner Runner + Stage string + StartedAt customTime + Status string + User User + When string + type BuildCommit struct + AuthorEmail string + AuthorName string + Duration float64 + FinishedAt customTime + ID int64 + Message string + SHA string + StartedAt customTime + Status string + type BuildEventPayload struct + BeforeSHA string + BuildAllowFailure bool + BuildDuration float64 + BuildFinishedAt customTime + BuildID int64 + BuildName string + BuildStage string + BuildStartedAt customTime + BuildStatus string + Commit BuildCommit + ObjectKind string + ProjectID int64 + ProjectName string + Ref string + Repository Repository + Runner Runner + SHA string + Tag bool + User User + type Changes struct + LabelChanges LabelChanges + type CommentEventPayload struct + Commit Commit + Issue Issue + MergeRequest MergeRequest + ObjectAttributes ObjectAttributes + ObjectKind string + Project Project + ProjectID int64 + Repository Repository + Snippet Snippet + User User + type Commit struct + Added []string + Author Author + ID string + Message string + Modified []string + Removed []string + Timestamp customTime + Title string + URL string + type ConfidentialIssueEventPayload struct + type Event string + const BuildEvents + const CommentEvents + const ConfidentialIssuesEvents + const IssuesEvents + const JobEvents + const MergeRequestEvents + const PipelineEvents + const PushEvents + const SystemHookEvents + const TagEvents + const WikiPageEvents + type Issue struct + AssigneeID int64 + AuthorID int64 + BranchName string + CreatedAt customTime + Description string + ID int64 + IID int64 + MilestoneID int64 + Position int64 + ProjectID int64 + State string + Title string + UpdatedAt customTime + type IssueEventPayload struct + Assignee Assignee + Changes Changes + ObjectAttributes ObjectAttributes + ObjectKind string + Project Project + Repository Repository + User User + type JobEventPayload struct + BeforeSHA string + BuildAllowFailure bool + BuildDuration float64 + BuildFailureReason string + BuildFinishedAt customTime + BuildID int64 + BuildName string + BuildStage string + BuildStartedAt customTime + BuildStatus string + Commit BuildCommit + ObjectKind string + PipelineID int64 + ProjectID int64 + ProjectName string + Ref string + Repository Repository + Runner Runner + SHA string + Tag bool + User User + type Label struct + Color string + CreatedAt customTime + Description string + GroupID int64 + ID int64 + ProjectID int64 + Template bool + Title string + Type string + UpdatedAt customTime + type LabelChanges struct + Current []Label + Previous []Label + type LastCommit struct + Author Author + ID string + Message string + Timestamp customTime + URL string + type MergeRequest struct + Assignee Assignee + AssigneeID int64 + AuthorID int64 + CreatedAt customTime + Description string + ID int64 + IID int64 + LastCommit LastCommit + LockedAt customTime + MergeStatus string + MilestoneID int64 + Position int64 + Source Source + SourceBranch string + SourceProjectID int64 + State string + Target Target + TargetBranch string + TargetProjectID int64 + Title string + URL string + UpdatedAt customTime + WorkInProgress bool + type MergeRequestEventPayload struct + Assignees []Assignee + Changes Changes + Labels []Label + ObjectAttributes ObjectAttributes + ObjectKind string + Project Project + Repository Repository + User User + type ObjectAttributes struct + Action string + Assignee Assignee + AssigneeID int64 + AssigneeIDS []int64 + At customTime + AuthorID int64 + BeforeSHA string + BranchName string + CommitID string + Confidential bool + Content string + CreatedAt customTime + Description string + DiscussionLocked bool + DueDate customTime + Duration int64 + Format string + ID int64 + IID int64 + LastCommit LastCommit + LastEditedAt customTime + LastEditedByID int64 + LineCode string + MergeStatus string + Message string + MilestoneID int64 + Note string + NoteableID int64 + NotebookType string + Position Position + ProjectID int64 + Ref string + RelativePosition int64 + SHA string + Slug string + Source Source + SourceBranch string + SourceProjectID int64 + StCommits string + StDiffs []StDiff + Stages []string + State string + StateID int64 + Status string + System bool + Tag bool + Target Target + TargetBranch string + TargetProjectID int64 + TimeEstimate int64 + Title string + TotalTimeSpent int64 + URL string + UpdatedAt customTime + UpdatedByID int64 + WorkInProgress bool + type Option func(*Webhook) error + type PipelineEventPayload struct + Builds []Build + Commit Commit + MergeRequest MergeRequest + ObjectAttributes PipelineObjectAttributes + ObjectKind string + Project Project + User User + type PipelineObjectAttributes struct + BeforeSHA string + CreatedAt customTime + Duration int64 + FinishedAt customTime + ID int64 + Ref string + SHA string + Source string + Stages []string + Status string + Tag bool + Variables []Variable + type Position struct + BaseSHA string + HeadSHA string + Height int64 + NewLine int64 + NewPath string + OldLine int64 + OldPath string + PositionType string + StartSHA string + Width int64 + X int64 + Y int64 + type Project struct + AvatarURL string + DefaultBranch string + Description string + GitHTTPURL string + GitSSHURL string + HTTPURL string + Homepage string + ID int64 + Name string + Namespace string + PathWithNamespace string + SSHURL string + URL string + VisibilityLevel int64 + WebURL string + type PushEventPayload struct + After string + Before string + CheckoutSHA string + Commits []Commit + ObjectKind string + Project Project + ProjectID int64 + Ref string + Repository Repository + TotalCommitsCount int64 + UserAvatar string + UserEmail string + UserID int64 + UserName string + UserUsername string + type Repository struct + Description string + GitHTTPURL string + GitSSHURL string + Homepage string + Name string + URL string + VisibilityLevel int64 + type Runner struct + Active bool + Description string + ID int64 + IsShared bool + type Snippet struct + AuthorID int64 + Content string + CreatedAt customTime + ExpiresAt customTime + FileName string + ID int64 + ProjectID int64 + Title string + Type string + UpdatedAt customTime + VisibilityLevel int64 + type Source struct + AvatarURL string + DefaultBranch string + Description string + GitHTTPURL string + GitSSHURL string + HTTPURL string + Homepage string + Name string + Namespace string + PathWithNamespace string + SSHURL string + URL string + VisibilityLevel int64 + WebURL string + type StDiff struct + AMode string + BMode string + DeletedFile bool + Diff string + NewFile bool + NewPath string + OldPath string + RenamedFile bool + type SystemHookPayload struct + EventName string + ObjectKind string + type TagEventPayload struct + After string + Before string + CheckoutSHA string + Commits []Commit + ObjectKind string + Project Project + ProjectID int64 + Ref string + Repository Repository + TotalCommitsCount int64 + UserAvatar string + UserID int64 + UserName string + UserUsername string + type Target struct + AvatarURL string + DefaultBranch string + Description string + GitHTTPURL string + GitSSHURL string + HTTPURL string + Homepage string + Name string + Namespace string + PathWithNamespace string + SSHURL string + URL string + VisibilityLevel int64 + WebURL string + type User struct + AvatarURL string + Email string + ID int64 + Name string + UserName string + type Variable struct + Key string + Value string + type Webhook struct + func New(options ...Option) (*Webhook, error) + func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error) + type WebhookOptions struct + func (WebhookOptions) Secret(secret string) Option + type Wiki struct + DefaultBranch string + GitHTTPURL string + GitSSHURL string + PathWithNamespace string + WebURL string + type WikiPageEventPayload struct + ObjectAttributes ObjectAttributes + ObjectKind string + Project Project + User User + Wiki Wiki Other modules containing this package github.com/robekeane/webhooks