azureroles

package
v0.19.1237 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package azureroles resolves Azure built-in role names to their definition GUIDs. ARM role assignments reference a definition by GUID and have no name lookup, so anything an app config expresses as a name has to be translated before it reaches a template.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GUID

func GUID(nameOrGUID string) string

GUID resolves a role name to its definition GUID. A value that is already a GUID is returned unchanged, so a config can name any role -- including one absent from the map above -- by passing its GUID directly.

func KnownNames

func KnownNames() []string

KnownNames returns the mapped role names, sorted, for error messages.

func Resolvable

func Resolvable(nameOrGUID string) bool

Resolvable reports whether GUID will produce something ARM can accept: either a mapped name or a literal GUID. Anything else -- a typo, or a real role name missing from the map -- would otherwise be forwarded to ARM verbatim and fail the customer's stack deployment with InvalidRoleDefinitionId.

Types

This section is empty.

Jump to

Keyboard shortcuts

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