webhook

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	Start(runUID types.UID, webhook rolloutv1alpha1.RolloutWebhook, payload rolloutv1alpha1.RolloutWebhookReview) (WebhookWorker, error)
	Get(key types.UID) (WebhookWorker, bool)
	Stop(key types.UID)
}

func NewManager

func NewManager() Manager

type WebhookWorker

type WebhookWorker interface {
	// Result returns the last probe result.
	Result() Result

	// Retry manually triggers the webhook probe.
	Retry()

	// Stop stops the probe worker. and clean up the result in cache.
	// The worker handles cleanup and removes itself from its manager.
	// It's safe to call Stop multiple times.
	Stop()
}

WebhookWorker handles the periodic webhook works.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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