Documentation ¶
Index ¶
- func RespondWithBadRequest(logger *zap.Logger, w http.ResponseWriter, r *http.Request, message string, ...)
- func RespondWithForbiddenError(logger *zap.Logger, w http.ResponseWriter, r *http.Request, message string, ...)
- func RespondWithInternalError(logger *zap.Logger, w http.ResponseWriter, r *http.Request, message string, ...)
- func RespondWithNotFoundError(logger *zap.Logger, w http.ResponseWriter, r *http.Request, message string, ...)
- func RespondWithUnauthorizedError(logger *zap.Logger, w http.ResponseWriter, r *http.Request, message string, ...)
- type ErrorStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RespondWithBadRequest ¶
Types ¶
type ErrorStatus ¶
Using meta_v1.Status will allow kubectl to display errors
func (*ErrorStatus) Render ¶
func (e *ErrorStatus) Render(w http.ResponseWriter, r *http.Request) error
Click to show internal directories.
Click to hide internal directories.