expect

package
v0.0.0-...-ea728a0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(err error, explain ...any)

Error expects an error happens, otherwise an exception raises

func Forbidden

func Forbidden(err error)

Forbidden checks if "err" is set a `metav1.StatusReasonForbidden` or `404` response using `apierrors` package, raising an exception otherwise

func NoError

func NoError(err error, explain ...any)

NoError checks if "err" is set and raises an exception if so

Types

This section is empty.

Jump to

Keyboard shortcuts

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