functions

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

func Concat(vars, params map[string]interface{}, str string) string

Concat function splits str and runs respective functions on split parts. Example: [Concat(parameters('vaultName'), '/', parameters('keyName'))]

func LookUp

func LookUp(vars, params map[string]interface{}, key string) interface{}

LookUp function looks for different keywords in str and accordingly selects a function to call. generic variant, for eg. use for bool

func LookUpFloat64

func LookUpFloat64(vars, params map[string]interface{}, key string) float64

LookUpFloat64 safely returns float64 after Lookup

func LookUpString

func LookUpString(vars, params map[string]interface{}, key string) string

LookUpString safely returns string after Lookup

func Parameters

func Parameters(param string) string

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

func ResolveLinkedTemplate(uri string) ([]byte, error)

ResolveLinkedTemplate downloads template for the given uri and returns its path

func ResourceID

func ResourceID(vars, params map[string]interface{}, str string) string

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.

func ToLower

func ToLower(vars, params map[string]interface{}, str string) string

ToLower function runs str against a regular expression and returns the final value in all lower case.

For example: if param = [toLower('location')], the function returns location as the key.

func UniqueString

func UniqueString() string

UniqueString function returns a string UUID.

func Variables

func Variables(variable string) string

Variables function runs variable against a regular expression and return the variable key.

For example: if var = Variables('identityName'), the function returns identityName as the key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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