webhookreceiver

package
v0.18.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

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.

func (*WebhookReceiver) Start added in v0.10.0

func (wr *WebhookReceiver) Start(ctx context.Context, addr string) error

Start starts the webhook receiver server on the given address.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL