webhook

package
v3.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 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