resources

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTOSCADefinition

func GetTOSCADefinition(name string) ([]byte, error)

GetTOSCADefinition allows to retrieve a TOSCA definition stored into Yorc executable

func ReadResource

func ReadResource(r res.Resource) ([]byte, error)

ReadResource is an helper function that reads bytes from a Resource

func ReadResources

func ReadResources(rs []res.Resource) (map[string][]byte, error)

ReadResources is an helper function that reads bytes from a slice of Resource

Resources are indexed based on there base path name

func StoreBuiltinTOSCAResources

func StoreBuiltinTOSCAResources() error

StoreBuiltinTOSCAResources retrieves TOSCA definition within the Yorc binary and register them into Consul

Note that the consulpublisher should be initialized with a KV before running this function

Types

This section is empty.

Jump to

Keyboard shortcuts

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