resourceproviders

package
v2.85.6 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheSupportedProviders

func CacheSupportedProviders(ctx context.Context, client *resources.ProvidersClient)

CacheSupportedProviders attempts to retrieve the supported Resource Providers from the Resource Manager API and caches them, for used in enhanced validation

func EnhancedValidate

func EnhancedValidate(i interface{}, k string) ([]string, []error)

EnhancedValidate returns a validation function which attempts to validate the Resource Provider against the list of Resource Provider supported by this Azure Environment.

NOTE: this is best-effort - if the users offline, or the API doesn't return it we'll fall back to the original approach

func EnsureRegistered

func EnsureRegistered(ctx context.Context, client resources.ProvidersClient, availableRPs []resources.Provider, requiredRPs map[string]struct{}) error

func Required

func Required() map[string]struct{}

RequiredResourceProviders returns all of the Resource Providers used by the AzureRM Provider whilst all may not be used by every user - the intention is that we determine which should be registered such that we can avoid obscure errors where Resource Providers aren't registered. new Resource Providers should be added to this list as they're used in the Provider (this is the approach used by Microsoft in their tooling)

Types

This section is empty.

Jump to

Keyboard shortcuts

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