sentry

package
v0.0.0-...-61304a0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2018 License: LGPL-3.0 Imports: 13 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoUID = errors.New("No UID from request")
)

Functions

func Decode

func Decode(b []byte, o runtime.Object) error

func NewSentryServer

func NewSentryServer(s Sentry) (*http.Server, error)

func NewSentryServerNoSSL

func NewSentryServerNoSSL(s Sentry) *http.Server

Types

type Sentry

type Sentry interface {
	Admit(v1beta1.AdmissionReview) *v1beta1.AdmissionResponse
	Type() string
}

type SentryHandler

type SentryHandler struct {
	Sentry
}

func (SentryHandler) ServeHTTP

func (sh SentryHandler) 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