http

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 10 Imported by: 14

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlerFor

func HandlerFor(webhook webhook.Webhook) (http.Handler, error)

HandlerFor returns a new http.Handler ready to handle admission reviews using a a webhook.

Example (ServeMultipleWebhooks)

ServeMultipleWebhooks shows how to serve multiple webhooks in the same server.

Output:

Example (ServeWebhook)

ServeWebhook shows how to serve a validating webhook that denies all pods.

Output:

func MustHandlerFor added in v0.1.1

func MustHandlerFor(webhook webhook.Webhook) http.Handler

MustHandlerFor it's the same as HandleFor but will panic instead of returning a error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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