error

package
v1.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 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 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 NewForbiddenError

func NewForbiddenError(message string) AdmitError

NewForbiddenError returns HTTP status code 403

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

Jump to

Keyboard shortcuts

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