error

package
v1.1.2-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 2 Imported by: 14

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

400

func NewConflict

func NewConflict(message string) AdmitError

409

func NewInternalError

func NewInternalError(message string) AdmitError

500

func NewInvalidError

func NewInvalidError(message string, field string) AdmitError

422

func NewMethodNotAllowed

func NewMethodNotAllowed(message string) AdmitError

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