Versions in this module Expand all Collapse all v0 v0.0.1 Apr 28, 2020 Changes in this version + var ErrEventNotFound = errors.New("event not defined to be parsed") + var ErrEventNotSpecifiedToParse = errors.New("no Event specified to parse") + var ErrHMACVerificationFailed = errors.New("HMAC verification failed") + var ErrInvalidHTTPMethod = errors.New("invalid HTTP Method") + var ErrMissingSignatureHeader = errors.New("missing X-Nexus-Webhook-Signature Header") + var ErrMissingWebhookIdHeader = errors.New("missing X-Nexus-Webhook-Id Header") + var ErrParsingPayload = errors.New("error parsing payload") + var Options = WebhookOptions + type ApplicationEvaluationPayload struct + ApplicationEvaluation struct{ ... } + Id string + Initiator string + Timestamp string + type Event string + const ApplicationEvaluation + const LicenseOverrideManagement + const PolicyManagement + const SecurityVulnerabilityOverrideManagement + type LicenseOverrideManagementPayload struct + Id string + Initiator string + LicenseOverride struct{ ... } + Timestamp string + type Option func(*Webhook) error + type PolicyManagementPayload struct + Id string + Initiator string + Owner struct{ ... } + Timestamp string + type SecurityVulnerabilityOverrideManagementPayload struct + Id string + Initiator string + SecurityVulnerabilityOverride struct{ ... } + Timestamp string + type SonatypeDate struct + func (sd *SonatypeDate) UnmarshalJSON(input []byte) error + 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