Back to godoc.org

Package apiservice

v0.0.0-...-e0434a4
Latest Go to latest

The latest major version is .

Published: Jun 30, 2019 | License: Apache-2.0 | Module: github.com/atlassian/voyager

Index

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)

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier