Documentation
¶
Overview ¶
Package repohooks manages webhooks for VCS events
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRepohookOptions ¶
type EventUnmarshaler ¶
type EventUnmarshaler func(w http.ResponseWriter, r *http.Request, secret string) *vcs.EventPayload
EventUnmarshaler does two things: (a) handles incoming request (containing a VCS event) and sends appropriate response (b) unmarshals event from the request; if the event is irrelevant or invalid then nil is returned.
type Options ¶
type Options struct { logr.Logger OrganizationService *organization.Service VCSProviderService *vcsprovider.Service GithubAppService *github.Service VCSEventBroker *vcs.Broker *sql.DB *internal.HostnameService }
type Service ¶
func (Service) AddHandlers ¶ added in v0.2.2
func (*Service) CreateRepohook ¶
func (*Service) DeleteUnreferencedRepohooks ¶
func (*Service) RegisterCloudHandler ¶
func (s *Service) RegisterCloudHandler(kind vcs.Kind, h EventUnmarshaler)
Click to show internal directories.
Click to hide internal directories.