From db3a6a3b9e4175f74591d211ebe27b6322933609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Gr=C3=A4ff?= Date: Thu, 21 Nov 2024 15:06:32 +0100 Subject: [PATCH] Docs: fromYaml templating function (#1278) --- docs/usage/Templating.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/usage/Templating.md b/docs/usage/Templating.md index f5d443143..eed9586d4 100644 --- a/docs/usage/Templating.md +++ b/docs/usage/Templating.md @@ -128,7 +128,9 @@ The following additional functions are available: - **`readDir(path string): []FileInfo`** returns all files and directories in the given directory of the blueprint's filesystem. - **`toYaml(interface{}): string`** - converts the given object to valid yaml + converts the given object to valid yaml. +- **`fromYaml(string): interface{}`** + unmarshals a given yaml string into an object. - **`getResource(ComponentDescriptor, keyValuePairs ...string): GlobalIdentity`** searches a resource in the given component descriptors that matches the specified selector. The selector are key-value pairs that describe the resource's identity. e.g. `getResource .cd "name" "myResource"` -> returns the resource with the name `myResource`