internal

package
v3.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const TypeExistsFlagName = ".existFlag"

TypeExistsFlagName is the name of a Consul key that is used to prove the existence of a TOSCA type

This key doesn't contain any value and allow to detect types even if there is no other values stored for them into consul

Variables

This section is empty.

Functions

func StoreAllTypes

func StoreAllTypes(ctx context.Context, consulStore consulutil.ConsulStore, topology tosca.Topology, topologyPrefix, importPath string) error

StoreAllTypes stores all types of a given topology

func StoreComplexType

func StoreComplexType(consulStore consulutil.ConsulStore, valuePath string, value interface{})

StoreComplexType stores a TOSCA value into a given path.

This value can be a literal or a complex value composed by maps and lists

func StoreRepositories

func StoreRepositories(ctx context.Context, consulStore consulutil.ConsulStore, topology tosca.Topology, topologyPrefix string) error

StoreRepositories store repositories

func StoreRequirementAssignment

func StoreRequirementAssignment(consulStore consulutil.ConsulStore, requirement tosca.RequirementAssignment, requirementPrefix, requirementName string)

StoreRequirementAssignment stores a TOSCA RequirementAssignment under a given prefix

func StoreTopology

func StoreTopology(ctx context.Context, consulStore consulutil.ConsulStore, errGroup *errgroup.Group, topology tosca.Topology, deploymentID, topologyPrefix, importPrefix, importPath, rootDefPath string) error

StoreTopology stores a given topology.

The given topology may be an import in this case importPrefix and importPath should be specified

func StoreTopologyTopLevelKeyNames

func StoreTopologyTopLevelKeyNames(ctx context.Context, consulStore consulutil.ConsulStore, topology tosca.Topology, topologyPrefix string)

StoreTopologyTopLevelKeyNames stores top level keynames for a topology.

This may be done under the import path in case of imports.

func StoreValueAssignment

func StoreValueAssignment(consulStore consulutil.ConsulStore, vaPrefix string, va *tosca.ValueAssignment)

StoreValueAssignment stores a TOSCA value assignment under a given path

func StoreWorkflow

func StoreWorkflow(consulStore consulutil.ConsulStore, deploymentID, workflowName string, workflow tosca.Workflow)

StoreWorkflow stores a workflow

Types

This section is empty.

Jump to

Keyboard shortcuts

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