ccapi

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePatch added in v1.7.0

func CreatePatch(props *yaml.Node, priorJson string) (string, error)

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

func DeleteResource(logicalId string, identifier string, resource *yaml.Node) error

DeleteResource deletes a resource and blocks until the operation is complete

func GetResource added in v1.7.0

func GetResource(identifier string, typeName string) (string, error)

GetResource gets a resource from cloud control api It returns the resource model as a string

func ResourceExists

func ResourceExists(typeName string, identifier []string) bool

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

func UpdateResource added in v1.7.0

func UpdateResource(
	logicalId string,
	identifier string,
	resource *yaml.Node,
	priorJson string) (model string, err error)

UpdateResource updates a resource based on the YAML node from the template, and blocks until resource update is complete.

Types

This section is empty.

Jump to

Keyboard shortcuts

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