injection

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerFunc

type HandlerFunc func(context.Context, Request) (Response, error)

type Request

type Request struct {
	Headers http.Header `json:"headers"`
	Body    string      `json:"body"`
}

type Response

type Response struct {
	Object *unstructured.Unstructured `json:"object"`
}

type Webhook

type Webhook struct {
	client.Client

	Handler    HandlerFunc
	KeyHandler jwt.Keyfunc
	// contains filtered or unexported fields
}

func (*Webhook) InjectClient

func (wh *Webhook) InjectClient(c client.Client) error

func (*Webhook) InjectLogger

func (wh *Webhook) InjectLogger(l logr.Logger) error

func (*Webhook) ServeHTTP

func (wh *Webhook) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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