utils

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFoundError

func IsNotFoundError(err error) bool

func PanicIfUnauthorized added in v1.5.2

func PanicIfUnauthorized(err error)

PanicIfUnauthorized panics if the provided error is due to `http.StatusUnauthorized`. Use this helper to slow down Engine requests by triggering a CrashLoopBackoff. NOTE: This helper only works for errors returned by go-anxcloud.

Types

This section is empty.

Jump to

Keyboard shortcuts

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