azureerrors

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package azureerrors contains helpers for detecting various known error types from Azure API responses and wrapping them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsAugmented

func AsAugmented(err error, permissionsNeeded []string) error

AsAugmented checks whether an error returned by the Azure SDK matched some known Azure errors. If the error matches, it produces a new, augmented error by adding information we think will help the user use the plugin correctly. If it didn't match, it returns the error as is.

  • err: An error returned by the Azure SDK.
  • permissionsNeeded: The permissions the Azure client needed to have in order for the operation it just performed to be successful. Used to form a good error message for the user, whichever operation was being attempted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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