error

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdmitError

type AdmitError struct {
	// contains filtered or unexported fields
}

func BadRequest

func BadRequest(message string) AdmitError

BadRequest return bad request error with code 400

func InternalError

func InternalError(message string) AdmitError

InternalError return error message with code 500

func InvalidError

func InvalidError(message string, field string) AdmitError

InvalidError with error message with code 422

func MethodNotAllowed

func MethodNotAllowed(message string) AdmitError

MethodNotAllowed return method not allowed with code 405

func StatusConflict

func StatusConflict(message string) AdmitError

StatusConflict return error message with code 409

func (AdmitError) AsResult

func (e AdmitError) AsResult() *metav1.Status

func (AdmitError) Error

func (e AdmitError) Error() string

Jump to

Keyboard shortcuts

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