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
Click to show internal directories.
Click to hide internal directories.