restplus

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleBadRequest

func HandleBadRequest(response *restful.Response, req *restful.Request, err error)

HandleBadRequest writes http.StatusBadRequest and log error

func HandleConflict

func HandleConflict(response *restful.Response, req *restful.Request, err error)

func HandleError added in v1.2.0

func HandleError(response *restful.Response, req *restful.Request, err error)

func HandleForbidden

func HandleForbidden(response *restful.Response, req *restful.Request, err error)

func HandleInternalError

func HandleInternalError(response *restful.Response, req *restful.Request, err error)

func HandleNotFound

func HandleNotFound(response *restful.Response, req *restful.Request, err error)

func HandleTooManyRequests

func HandleTooManyRequests(response *restful.Response, req *restful.Request, err error)

func HandleUnauthorized

func HandleUnauthorized(response *restful.Response, req *restful.Request, err error)

func HandlerCrash

func HandlerCrash()

func HandlerErrorWithCustomCode

func HandlerErrorWithCustomCode(response *restful.Response, req *restful.Request, httpStatus, code int, message string, err error)

func NewMultiWatcher added in v1.4.0

func NewMultiWatcher(watchers []watch.Interface) watch.Interface

func ServeWatch

func ServeWatch(watcher watch.Interface, gvk schema.GroupVersionKind, request *restful.Request, response *restful.Response, timeout time.Duration)

Types

This section is empty.

Jump to

Keyboard shortcuts

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