Documentation ¶
Index ¶
- func CreatePatch(props *yaml.Node, priorJson string) (string, error)
- func CreateResource(logicalId string, resource *yaml.Node) (identifier string, model string, err error)
- func DeleteResource(logicalId string, identifier string, resource *yaml.Node) error
- func GetResource(identifier string, typeName string) (string, error)
- func ResourceExists(typeName string, identifier []string) bool
- func ToJsonProps(resource *yaml.Node) string
- func UpdateResource(logicalId string, identifier string, resource *yaml.Node, priorJson string) (model string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePatch ¶ added in v1.7.0
Create a json patch document based on the new props and the prior json from the last version of the template (not the property model)
func CreateResource ¶ added in v1.7.0
func CreateResource(logicalId string, resource *yaml.Node) (identifier string, model string, err error)
CreateResource creates a resource based on the YAML node from the template, and blocks until resource creation is complete.
func DeleteResource ¶ added in v1.7.0
DeleteResource deletes a resource and blocks until the operation is complete
func GetResource ¶ added in v1.7.0
GetResource gets a resource from cloud control api It returns the resource model as a string
func ResourceExists ¶
Returns true if the resource already exists
func ToJsonProps ¶ added in v1.7.0
func ToJsonProps(resource *yaml.Node) string
toJsonProps converts properties in a resource node to the JSON representation
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.