Versions in this module Expand all Collapse all v6 v6.4.0 Jul 30, 2024 Changes in this version + var ErrBasicAuthVerificationFailed = errors.New("basic auth verification failed") + var Options = WebhookOptions + type Option func(*Webhook) error + type WebhookOptions struct + func (WebhookOptions) BasicAuth(username, password string) Option v6.3.0 Aug 10, 2023 Changes in this version + type Account struct + ID string type Event + const GitPushEventType + type GitPushEvent struct + CreatedDate string + DetailedMessage Message + EventType string + ID string + Message Message + PublisherID string + Resource Resource + ResourceContainers ResourceContainers + ResourceVersion string + Scope string + type PushedBy struct + DisplayName string + ID string + UniqueName string + type RefUpdate struct + Name string + NewObjectID string + OldObjectID string + type Resource struct + Commits []Commit + Date string + PushID int + PushedBy PushedBy + RefUpdates []RefUpdate + Repository Repository + URL string + type ResourceContainers struct + Account Account + Collection Account + Project Account v6.2.0 Jul 13, 2023 Changes in this version + var ErrInvalidHTTPMethod = errors.New("invalid HTTP Method") + var ErrParsingPayload = errors.New("error parsing payload") + type BasicEvent struct + CreatedDate Date + EventType Event + ID string + PublisherID string + Scope string + type Build struct + BuildNumber string + Definition BuildDefinition + Drop Drop + DropLocation string + FinishTime Date + HasDiagnostics bool + ID int + LastChangedBy User + Log Log + Queue Queue + Reason string + Requests []Request + RetainIndefinitely bool + SourceGetVersion string + StartTime Date + Status string + URI string + URL string + type BuildCompleteEvent struct + CreatedDate Date + DetailedMessage Message + EventType Event + ID string + Message Message + PublisherID string + Resource Build + ResourceContainers interface{} + ResourceVersion string + Scope string + type BuildDefinition struct + BatchSize int + DefinitionType string + ID int + Name string + TriggerType string + URL string + type Commit struct + CommitID string + URL string + type Date time.Time + func (b *Date) UnmarshalJSON(p []byte) error + func (b Date) MarshalJSON() ([]byte, error) + type Drop struct + DownloadURL string + Location string + Type string + URL string + type Event string + const BuildCompleteEventType + const GitPullRequestCreatedEventType + const GitPullRequestMergedEventType + const GitPullRequestUpdatedEventType + type GitPullRequestEvent struct + CreatedDate Date + DetailedMessage Message + EventType Event + ID string + Message Message + PublisherID string + Resource PullRequest + ResourceContainers interface{} + ResourceVersion string + Scope string + type Log struct + DownloadURL string + Type string + URL string + type Message struct + HTML string + Markdown string + Text string + type Project struct + ID string + Name string + State string + URL string + type PullRequest struct + ClosedDate Date + Commits []Commit + CreatedBy User + CreationDate Date + Description string + LastMergeCommit Commit + LastMergeSourceCommit Commit + LastMergeTargetCommit Commit + MergeID string + MergeStatus string + PullRequestID int + Repository Repository + Reviewers []Reviewer + SourceRefName string + Status string + TargetRefName string + Title string + URL string + type Queue struct + ID int + Name string + QueueType string + URL string + type Repository struct + DefaultBranch string + ID string + Name string + Project Project + RemoteURL string + URL string + type Request struct + ID int + RequestedFor User + URL string + type Reviewer struct + DisplayName string + ID string + ImageURL string + IsContainer bool + ReviewerURL string + URL string + UniqueName string + Vote int + type User struct + DisplayName string + ID string + ImageURL string + URL string + UniqueName string + type Webhook struct + func New() (*Webhook, error) + func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error)