errorutils

package
v0.0.0-...-8ff1004 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCredentialError

func HandleCredentialError(err error, ctx context.ProviderCallContext) error

HandleCredentialError determines if given error relates to invalid credential. If it is, the credential is invalidated. Original error is returned untouched.

func MaybeInvalidateCredential

func MaybeInvalidateCredential(err error, ctx context.ProviderCallContext) bool

MaybeInvalidateCredential determines if given error is related to authentication/authorisation failures. If an error is related to an invalid credential, then this call will try to invalidate that credential as well.

func ServiceError

func ServiceError(err error) (*azure.ServiceError, bool)

ServiceError returns the *azure.ServiceError underlying the supplied error, if any, and a bool indicating whether one was found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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