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 ¶
EventUnmarshaler validates the request using the secret and unmarshals the event contained in the request body. If the request is to be ignored then the unmarshaler should return vcs.ErrIgnoreEvent, explaining why the event was ignored.
type Options ¶
type Options struct {
OrganizationService *organization.Service
VCSProviderService *vcsprovider.Service
GithubAppService *github.Service
VCSEventBroker *vcs.Broker
Logger *slog.Logger
*sql.Pool
*internal.HostnameService
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (Service) AddHandlers ¶
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.