Skip to content

Commit

Permalink
Docs: fromYaml templating function (#1278)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertgraeff authored Nov 21, 2024
1 parent a98feab commit db3a6a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/usage/Templating.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit db3a6a3

Please sign in to comment.