Help us shape the future of Go! Take the 2026 Go Developer Survey

webhook

package
v3.3.15 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIURLRegex

func GetAPIURLRegex(apiURL string) (*regexp.Regexp, error)

GetAPIURLRegex compiles a regex that will match any targetRevision referring to the same repo as the given apiURL.

func GetWebURLRegex

func GetWebURLRegex(webURL string) (*regexp.Regexp, error)

GetWebURLRegex compiles a regex that will match any targetRevision referring to the same repo as the given webURL. webURL is expected to be a URL from an SCM webhook payload pointing to the web page for the repo.

func ParseRevision

func ParseRevision(ref string) string

Types

type ArgoCDWebhookHandler

type ArgoCDWebhookHandler struct {
	sync.WaitGroup // for testing
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(namespace string, applicationNamespaces []string, webhookParallelism int, appClientset appclientset.Interface, appsLister alpha1.ApplicationLister, set *settings.ArgoCDSettings, settingsSrc settingsSource, repoCache *cache.Cache, serverCache *servercache.Cache, argoDB db.ArgoDB, maxWebhookPayloadSizeB int64) *ArgoCDWebhookHandler

func (*ArgoCDWebhookHandler) HandleEvent

func (a *ArgoCDWebhookHandler) HandleEvent(payload any)

HandleEvent handles webhook events for repo push events

func (*ArgoCDWebhookHandler) Handler

Jump to

Keyboard shortcuts

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