operations

package
v3.0.0-M4+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInstanceName

func GetInstanceName(nodeName, instanceID string) string

GetInstanceName returns the built instance name from nodeName and instanceID

func GetOperation

func GetOperation(kv *api.KV, deploymentID, nodeName, operationName, requirementName, operationHost string) (prov.Operation, error)

GetOperation returns a Prov.Operation structure describing precisely operation in order to execute it

Types

type EnvInput

type EnvInput struct {
	Name         string
	Value        string
	InstanceName string
}

An EnvInput represent a TOSCA operation input

This element is exported in order to be used by text.Template but should be consider as internal

func ResolveInputs

func ResolveInputs(kv *api.KV, deploymentID, nodeName, taskID string, operation prov.Operation) ([]*EnvInput, []string, error)

ResolveInputs allows to resolve inputs for an operation

func ResolveInputsWithInstances

func ResolveInputsWithInstances(kv *api.KV, deploymentID, nodeName, taskID string, operation prov.Operation,
	sourceNodeInstances, targetNodeInstances []string) ([]*EnvInput, []string, error)

ResolveInputsWithInstances used to resolve inputs for an operation

func (EnvInput) String

func (ei EnvInput) String() string

Jump to

Keyboard shortcuts

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