This library is an implementation of the TOSCA definition as described in the document written in pure GO TOSCA Simple Profile in YAML Version 1.1
The normative types definitions are included de facto. The files are embeded using go-bindata.
Create a ServiceTemplateDefinition
and call Parse(r io.Reader)
of ParseCsar(c string)
to fill it with a YAML definition.
var t toscalib.ServiceTemplateDefinition
err := t.Parse(os.Stdin)
if err != nil {
log.Fatal(err)
}
var t toscalib.ServiceTemplateDefinition
err := t.ParseCsar("tests/tosca_elk.zip")
if err != nil {
log.Fatal(err)
}
Original implementation provided by Olivier Wulveryck at github.com/owulveryck/toscalib.