store

package
v4.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

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 GetCommonsTypesKeyPaths

func GetCommonsTypesKeyPaths() []string

GetCommonsTypesKeyPaths 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

Jump to

Keyboard shortcuts

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