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 NewBadRequest ¶
func NewBadRequest(message string) AdmitError
NewBadRequest returns HTTP status code 400
func NewConflict ¶
func NewConflict(message string) AdmitError
NewConflict returns HTTP status code 409
func NewInternalError ¶
func NewInternalError(message string) AdmitError
NewInternalError returns HTTP status code 500
func NewInvalidError ¶
func NewInvalidError(message string, field string) AdmitError
NewInvalidError returns HTTP status code 422
func NewMethodNotAllowed ¶
func NewMethodNotAllowed(message string) AdmitError
NewMethodNotAllowed returns HTTP status code 405
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.