Documentation
¶
Index ¶
Constants ¶
const ( LeaseShellCodeStdout = 100 LeaseShellCodeStderr = 101 LeaseShellCodeResult = 102 LeaseShellCodeFailure = 103 LeaseShellCodeStdin = 104 LeaseShellCodeTerminalResize = 105 )
Variables ¶
This section is empty.
Functions ¶
func AuthHeaderTokenExtractor ¶ added in v0.7.0
AuthHeaderTokenExtractor is a TokenExtractor that takes a request and extracts the token from the Authorization header.
func DefaultErrorHandler ¶ added in v0.7.0
func DefaultErrorHandler(w http.ResponseWriter, r *http.Request, err error)
DefaultErrorHandler writes err as a JSON error response. Errors that are not *httperror.HttpError are logged with the logger found in the request context.
Types ¶
type CtxAuthKey ¶
type CtxAuthKey string