Documentation ¶
Index ¶
Constants ¶
View Source
const BuiltinOrigin = "builtin"
BuiltinOrigin is the origin for Yorc builtin
Variables ¶
This section is empty.
Functions ¶
func CommonDefinition ¶
func CommonDefinition(ctx context.Context, definitionName, origin string, definitionContent []byte) error
CommonDefinition stores a TOSCA definition to the common place
func Deployment ¶
func Deployment(ctx context.Context, topology tosca.Topology, deploymentID, rootDefPath string) error
Deployment stores a whole deployment.
func GetCommonsTypesPaths ¶
func GetCommonsTypesPaths() []string
GetCommonsTypesPaths returns the path of builtin types supported by this instance of Yorc
Returned keys are formatted as <consulutil.CommonsTypesKVPrefix>/<name>/<version> If this is used from outside a Yorc instance typically a plugin or another app then the latest version of each builtin type stored in Consul is assumed
Types ¶
type Definition ¶
type Definition struct { Name string `json:"name"` Origin string `json:"origin"` Version string `json:"version"` }
Definition is TOSCA Definition registered in the Yorc as builtin could be comming from Yorc itself or a plugin
func GetCommonsDefinitionsList ¶
func GetCommonsDefinitionsList() ([]Definition, error)
GetCommonsDefinitionsList returns the list of commons definitions within Yorc
Click to show internal directories.
Click to hide internal directories.