v1alpha1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

type WebhookPlugin

type WebhookPlugin struct {
	// contains filtered or unexported fields
}

func NewWebhookPlugin

func NewWebhookPlugin(
	name string,
	urlPrefix string,
	filterPath string,
	scorePath string,
	selectPath string,
	client HTTPClient,
) *WebhookPlugin

func (*WebhookPlugin) Filter

func (*WebhookPlugin) Name

func (p *WebhookPlugin) Name() string

func (*WebhookPlugin) NormalizeScore

func (p *WebhookPlugin) NormalizeScore(ctx context.Context, scores framework.ClusterScoreList) *framework.Result

func (*WebhookPlugin) Score

func (*WebhookPlugin) ScoreExtensions

func (p *WebhookPlugin) ScoreExtensions() framework.ScoreExtensions

func (*WebhookPlugin) SelectClusters

Jump to

Keyboard shortcuts

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