apiservice

package
v0.0.0-...-e0434a4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RespondWithBadRequest

func RespondWithBadRequest(logger *zap.Logger, w http.ResponseWriter, r *http.Request, message string, cause error)

func RespondWithForbiddenError

func RespondWithForbiddenError(logger *zap.Logger, w http.ResponseWriter, r *http.Request, message string, cause error)

func RespondWithInternalError

func RespondWithInternalError(logger *zap.Logger, w http.ResponseWriter, r *http.Request, message string, cause error)

func RespondWithNotFoundError

func RespondWithNotFoundError(logger *zap.Logger, w http.ResponseWriter, r *http.Request, message string, cause error)

func RespondWithUnauthorizedError

func RespondWithUnauthorizedError(logger *zap.Logger, w http.ResponseWriter, r *http.Request, message string, cause error)

Types

type ErrorStatus

type ErrorStatus meta_v1.Status

Using meta_v1.Status will allow kubectl to display errors

func (*ErrorStatus) Render

func (e *ErrorStatus) Render(w http.ResponseWriter, r *http.Request) error

Jump to

Keyboard shortcuts

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