Documentation ¶
Index ¶
- Variables
- func Concat(vars, params map[string]interface{}, str string) string
- func LookUp(vars, params map[string]interface{}, key string) interface{}
- func LookUpFloat64(vars, params map[string]interface{}, key string) float64
- func LookUpString(vars, params map[string]interface{}, key string) string
- func Parameters(param string) string
- func ResolveLinkedTemplate(uri string) ([]byte, error)
- func ResourceID(vars, params map[string]interface{}, str string) string
- func ToLower(vars, params map[string]interface{}, str string) string
- func UniqueString() string
- func Variables(variable string) string
Constants ¶
This section is empty.
Variables ¶
var ResourceIDs = map[string]string{}
ResourceIDs is a map[ARMResource.Type]output.ResourceConfig.ID required for resolving the resourceId function calls in ARM templates.
Functions ¶
func Concat ¶
Concat function splits str and runs respective functions on split parts. Example: [Concat(parameters('vaultName'), '/', parameters('keyName'))]
func LookUp ¶
LookUp function looks for different keywords in str and accordingly selects a function to call. generic variant, for eg. use for bool
func LookUpFloat64 ¶
LookUpFloat64 safely returns float64 after Lookup
func LookUpString ¶
LookUpString safely returns string after Lookup
func Parameters ¶
Parameters function runs param against a regular expression and returns the parameter key.
For example: if param = [Parameters('location')], the function returns location as the key.
func ResolveLinkedTemplate ¶
ResolveLinkedTemplate downloads template for the given uri and returns its path
func ResourceID ¶
ResourceID function runs str against a regular expression and returns the resource ID.
For example: if str = [resourceId('Microsoft.KeyVault/vaults', parameters('keyVaultName'))], the function returns resource ID for Microsoft.KeyVault/vaults.
Types ¶
This section is empty.