package
0.0.0-20210929134506-8fd29ad8f0d9
Repository: https://github.com/kok-stack/native-kubelet.git
Documentation: pkg.go.dev
# Functions
AsInvalidInput wraps the passed in error to make it of type ErrInvalidInput
Callers should make sure the passed in error has exactly the error message it wants as this function does not decorate the message.
AsNotFound wraps the passed in error to make it of type ErrNotFound
Callers should make sure the passed in error has exactly the error message it wants as this function does not decorate the message.
InvalidInput makes an ErrInvalidInput from the provided error message.
InvalidInputf makes an ErrInvalidInput from the provided error format and args.
IsInvalidInput determines if the passed in error is of type ErrInvalidInput
This will traverse the causal chain (`Cause() error`), until it finds an error which implements the `InvalidInput` interface.
IsNotFound determines if the passed in error is of type ErrNotFound
This will traverse the causal chain (`Cause() error`), until it finds an error which implements the `NotFound` interface.
NotFound makes an ErrNotFound from the provided error message.
NotFoundf makes an ErrNotFound from the provided error format and args.
# Interfaces
ErrInvalidInput is an error interface which denotes whether the opration failed due to a the resource not being found.
ErrNotFound is an error interface which denotes whether the opration failed due to a the resource not being found.