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
Click to show internal directories.
Click to hide internal directories.