v3

package
v0.0.0-...-7a6a509 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResourcePath

func GetResourcePath(c echo.Context) string

GetResourcePath returns the full url that was called by the web request

Types

type CfAPIError

type CfAPIError struct {
	HTTPStatus int    `json:"-"`
	Detail     string `json:"detail,omitempty"`
	Title      string `json:"title"`
	Code       int    `json:"code"`
	Err        error  `json:"-"`
}

func BadQueryParameter

func BadQueryParameter(err error) *CfAPIError

func InvalidAuthToken

func InvalidAuthToken(err error) *CfAPIError

func NotAuthenticated

func NotAuthenticated(err error) *CfAPIError

func NotAuthorized

func NotAuthorized(err error) *CfAPIError

func ResourceNotFound

func ResourceNotFound(resourceType string, err error) *CfAPIError

func TooManyRequests

func TooManyRequests(err error) *CfAPIError

func UnknownError

func UnknownError(err error) *CfAPIError

func UnprocessableEntity

func UnprocessableEntity(detail string, err error) *CfAPIError

func (*CfAPIError) Error

func (e *CfAPIError) Error() string

func (*CfAPIError) Unwrap

func (e *CfAPIError) Unwrap() error

type CfAPIErrors

type CfAPIErrors struct {
	Errors []CfAPIError `json:"errors"`
}

func AsErrors

func AsErrors(errors ...CfAPIError) CfAPIErrors

Directories

Path Synopsis
mocks
Package mock_metadata is a generated GoMock package.
Package mock_metadata is a generated GoMock package.
mocks
Package mock_permissions is a generated GoMock package.
Package mock_permissions is a generated GoMock package.

Jump to

Keyboard shortcuts

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