handler

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthCheck

func HealthCheck(w http.ResponseWriter, r *http.Request)

HealthCheck is a simple endpoint to ping for server health

Types

type TokenHandler

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

TokenHandler is used for responding to a TokenReview request from the Kubernetes API. It's primary use is as an HTTP handler

func NewTokenHandler

func NewTokenHandler(v *validator.Validator) *TokenHandler

NewTokenHandler returns a TokenHandler with the given validator to be used for validating and caching token responses

func (*TokenHandler) ValidateTokenReview

func (t *TokenHandler) ValidateTokenReview(w http.ResponseWriter, r *http.Request)

ValidateTokenReview is the main handler for validating a token review

Jump to

Keyboard shortcuts

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