Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProviderGitHub = "github" ProviderGitLab = "gitlab" ProviderForgejo = "forgejo" ProviderUnknown = "" )
Provider type constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebhookReceiver ¶ added in v0.10.0
type WebhookReceiver struct {
// contains filtered or unexported fields
}
WebhookReceiver is a server that listens for webhooks and triggers reconciles of ChangeTransferPolicies.
func NewWebhookReceiver ¶
func NewWebhookReceiver(mgr controllerruntime.Manager) WebhookReceiver
NewWebhookReceiver creates a new instance of WebhookReceiver.
func (*WebhookReceiver) DetectProvider ¶ added in v0.15.0
func (wr *WebhookReceiver) DetectProvider(r *http.Request) string
DetectProvider determines the SCM provider based on webhook headers. Returns ProviderGitHub, ProviderGitLab, ProviderForgejo, or ProviderUnknown.
Click to show internal directories.
Click to hide internal directories.