Documentation
¶
Index ¶
- Variables
- func NormalizeFunctionCallArguments(functionCall *tosca.FunctionCall, context *tosca.Context)
- func ReadBlueprint(context *tosca.Context) tosca.EntityPtr
- func ReadDSLResource(context *tosca.Context) tosca.EntityPtr
- func ReadDataType(context *tosca.Context) tosca.EntityPtr
- func ReadGroup(context *tosca.Context) tosca.EntityPtr
- func ReadGroupPolicy(context *tosca.Context) tosca.EntityPtr
- func ReadGroupPolicyTrigger(context *tosca.Context) tosca.EntityPtr
- func ReadImport(context *tosca.Context) tosca.EntityPtr
- func ReadInput(context *tosca.Context) tosca.EntityPtr
- func ReadInterfaceAssignment(context *tosca.Context) tosca.EntityPtr
- func ReadInterfaceDefinition(context *tosca.Context) tosca.EntityPtr
- func ReadMetadata(context *tosca.Context) tosca.EntityPtr
- func ReadNodeTemplate(context *tosca.Context) tosca.EntityPtr
- func ReadNodeTemplateCapability(context *tosca.Context) tosca.EntityPtr
- func ReadNodeTemplateInstances(context *tosca.Context) tosca.EntityPtr
- func ReadNodeType(context *tosca.Context) tosca.EntityPtr
- func ReadOperationAssignment(context *tosca.Context) tosca.EntityPtr
- func ReadOperationDefinition(context *tosca.Context) tosca.EntityPtr
- func ReadParameterDefinition(context *tosca.Context) tosca.EntityPtr
- func ReadPlugin(context *tosca.Context) tosca.EntityPtr
- func ReadPolicy(context *tosca.Context) tosca.EntityPtr
- func ReadPolicyTriggerType(context *tosca.Context) tosca.EntityPtr
- func ReadPolicyType(context *tosca.Context) tosca.EntityPtr
- func ReadPropertyDefinition(context *tosca.Context) tosca.EntityPtr
- func ReadRelationshipAssignment(context *tosca.Context) tosca.EntityPtr
- func ReadRelationshipType(context *tosca.Context) tosca.EntityPtr
- func ReadUnit(context *tosca.Context) tosca.EntityPtr
- func ReadUploadResources(context *tosca.Context) tosca.EntityPtr
- func ReadValue(context *tosca.Context) tosca.EntityPtr
- func ReadValueDefinition(context *tosca.Context) tosca.EntityPtr
- func ReadWorkflow(context *tosca.Context) tosca.EntityPtr
- func ToFunctionCall(context *tosca.Context) bool
- func ToFunctionCalls(context *tosca.Context)
- func ValidateOperationExecutor(executor string, context *tosca.Context)
- type Blueprint
- type DSLResource
- type DSLResources
- type DataType
- func (self *DataType) GetInternal() (ard.TypeName, ard.TypeValidator, tosca.Reader, bool)
- func (self *DataType) GetInternalTypeName() (ard.TypeName, bool)
- func (self *DataType) GetParent() tosca.EntityPtr
- func (self *DataType) GetTypeInformation() *normal.TypeInformation
- func (self *DataType) Inherit()
- func (self *DataType) Render()
- type DataTypes
- type Entity
- type Group
- type GroupPolicies
- type GroupPolicy
- type GroupPolicyTrigger
- type GroupPolicyTriggers
- type Groups
- type Import
- type Imports
- type Input
- type Inputs
- type InterfaceAssignment
- func (self *InterfaceAssignment) GetDefinitionForNodeTemplate(nodeTemplate *NodeTemplate) (*InterfaceDefinition, bool)
- func (self *InterfaceAssignment) GetDefinitionForRelationshipSource(relationship *RelationshipAssignment) (*InterfaceDefinition, bool)
- func (self *InterfaceAssignment) GetDefinitionForRelationshipTarget(relationship *RelationshipAssignment) (*InterfaceDefinition, bool)
- func (self *InterfaceAssignment) GetKey() string
- func (self *InterfaceAssignment) Normalize(normalInterface *normal.Interface, definition *InterfaceDefinition)
- func (self *InterfaceAssignment) Render(definition *InterfaceDefinition)
- type InterfaceAssignments
- func (self InterfaceAssignments) NormalizeForNodeTemplate(nodeTemplate *NodeTemplate, normalNodeTemplate *normal.NodeTemplate)
- func (self InterfaceAssignments) NormalizeForRelationshipSource(relationship *RelationshipAssignment, normalRelationship *normal.Relationship)
- func (self InterfaceAssignments) NormalizeForRelationshipTarget(relationship *RelationshipAssignment, normalRelationship *normal.Relationship)
- func (self InterfaceAssignments) Render(definitions InterfaceDefinitions, context *tosca.Context)
- type InterfaceDefinition
- type InterfaceDefinitions
- type Metadata
- type NodeTemplate
- type NodeTemplateCapabilities
- type NodeTemplateCapability
- type NodeTemplateInstances
- type NodeTemplates
- type NodeType
- type NodeTypes
- type OperationAssignment
- type OperationAssignments
- type OperationDefinition
- type OperationDefinitions
- type ParameterDefinition
- type ParameterDefinitions
- type Plugin
- type Plugins
- type Policies
- type Policy
- type PolicyTriggerType
- type PolicyTriggerTypes
- type PolicyType
- type PolicyTypes
- type PropertyDefinition
- type PropertyDefinitions
- type RelationshipAssignment
- type RelationshipAssignments
- type RelationshipType
- type RelationshipTypes
- type Type
- type Unit
- type UploadResources
- type Value
- type ValueDefinition
- type ValueDefinitions
- type Values
- func (self Values) Normalize(normalConstrainables normal.Constrainables, prefix string)
- func (self Values) RenderMissingValue(definition *ParameterDefinition, kind string, required bool, ...)
- func (self Values) RenderParameters(definitions ParameterDefinitions, kind string, context *tosca.Context)
- func (self Values) RenderProperties(definitions PropertyDefinitions, kind string, context *tosca.Context)
- func (self Values) SetIfNil(context *tosca.Context, key string, data ard.Value)
- type Workflow
- type Workflows
Constants ¶
This section is empty.
Variables ¶
var DefaultScriptletNamespace = tosca.NewScriptletNamespace()
var FunctionScriptlets = map[string]string{ "tosca.function.concat": profile.Profile["/cloudify/5.0.5/js/functions/get_secret.js"], "tosca.function.get_attribute": profile.Profile["/cloudify/5.0.5/js/functions/get_attribute.js"], "tosca.function.get_capability": profile.Profile["/cloudify/5.0.5/js/functions/get_capability.js"], "tosca.function.get_input": profile.Profile["/cloudify/5.0.5/js/functions/get_input.js"], "tosca.function.get_property": profile.Profile["/cloudify/5.0.5/js/functions/get_property.js"], "tosca.function.get_secret": profile.Profile["/cloudify/5.0.5/js/functions/get_secret.js"], }
var Grammar = tosca.NewGrammar()
Functions ¶
func NormalizeFunctionCallArguments ¶
func NormalizeFunctionCallArguments(functionCall *tosca.FunctionCall, context *tosca.Context)
func ReadBlueprint ¶
tosca.Reader signature
func ReadDSLResource ¶
tosca.Reader signature
func ReadDataType ¶
tosca.Reader signature
func ReadGroupPolicy ¶
tosca.Reader signature
func ReadGroupPolicyTrigger ¶
tosca.Reader signature
func ReadInterfaceAssignment ¶
tosca.Reader signature
func ReadInterfaceDefinition ¶
tosca.Reader signature
func ReadMetadata ¶
tosca.Reader signature
func ReadNodeTemplate ¶
tosca.Reader signature
func ReadNodeTemplateCapability ¶
tosca.Reader signature
func ReadNodeTemplateInstances ¶
tosca.Reader signature
func ReadNodeType ¶
tosca.Reader signature
func ReadOperationAssignment ¶
tosca.Reader signature
func ReadOperationDefinition ¶
tosca.Reader signature
func ReadParameterDefinition ¶
tosca.Reader signature
func ReadPolicyTriggerType ¶
tosca.Reader signature
func ReadPolicyType ¶
tosca.Reader signature
func ReadPropertyDefinition ¶
tosca.Reader signature
func ReadRelationshipAssignment ¶
tosca.Reader signature
func ReadRelationshipType ¶
tosca.Reader signature
func ReadUploadResources ¶
tosca.Reader signature
func ReadValueDefinition ¶
tosca.Reader signature
func ReadWorkflow ¶
tosca.Reader signature
func ToFunctionCall ¶
func ToFunctionCalls ¶
Types ¶
type Blueprint ¶
type Blueprint struct { *Unit `name:"blueprint"` Description *string `read:"description"` // not in spec, but in code Groups Groups `read:"groups,Group"` }
func NewBlueprint ¶
func (*Blueprint) NormalizeServiceTemplate ¶
func (self *Blueprint) NormalizeServiceTemplate() *normal.ServiceTemplate
normal.Normalizable interface
type DSLResource ¶
type DSLResource struct { *Entity `name:"DSL resource"` SourcePath *string `read:"source_path" require:""` DestinationPath *string `read:"destination_path" require:""` }
func NewDSLResource ¶
func NewDSLResource(context *tosca.Context) *DSLResource
type DSLResources ¶
type DSLResources []*DSLResource
type DataType ¶
type DataType struct { *Type `name:"data type"` Description *string `read:"description"` PropertyDefinitions PropertyDefinitions `read:"properties,PropertyDefinition" inherit:"properties,Parent"` Parent *DataType `lookup:"derived_from,ParentName" json:"-" yaml:"-"` }
func NewDataType ¶
func (*DataType) GetInternal ¶ added in v0.13.0
func (*DataType) GetInternalTypeName ¶
func (*DataType) GetTypeInformation ¶ added in v0.15.0
func (self *DataType) GetTypeInformation() *normal.TypeInformation
type Entity ¶
func (*Entity) GetContext ¶
tosca.Contextual interface
type Group ¶
type Group struct { *Entity `name:"group"` Name string `namespace:""` MemberNodeTemplateNames *[]string `read:"members" require:""` Policies GroupPolicies `read:"policies,GroupPolicy"` MemberNodeTemplates NodeTemplates `lookup:"members,MemberNodeTemplateNames" json:"-" yaml:"-"` }
type GroupPolicies ¶
type GroupPolicies map[string]*GroupPolicy
type GroupPolicy ¶
type GroupPolicy struct { *Entity `name:"group policy"` PolicyTypeName *string `read:"type" require:""` Properties Values `read:"properties,Value"` Triggers GroupPolicyTriggers `read:"triggers,GroupPolicyTrigger"` PolicyType *PolicyType `lookup:"type,PolicyTypeName" json:"-" yaml:"-"` }
func NewGroupPolicy ¶
func NewGroupPolicy(context *tosca.Context) *GroupPolicy
type GroupPolicyTrigger ¶
type GroupPolicyTrigger struct { *Entity `name:"group policy trigger"` PolicyTriggerTypeName *string `read:"type" require:""` Parameters Values `read:"parameters,Value"` PolicyTriggerType *PolicyTriggerType `lookup:"type,PolicyTriggerTypeName" json:"-" yaml:"-"` }
func NewGroupPolicyTrigger ¶
func NewGroupPolicyTrigger(context *tosca.Context) *GroupPolicyTrigger
type GroupPolicyTriggers ¶
type GroupPolicyTriggers map[string]*GroupPolicyTrigger
type Groups ¶
type Groups []*Group
func (Groups) Normalize ¶
func (self Groups) Normalize(normalServiceTemplate *normal.ServiceTemplate)
type Import ¶
func (*Import) NewImportSpec ¶
func (self *Import) NewImportSpec(unit *Unit) (*tosca.ImportSpec, bool)
type Input ¶
type Input struct { *ParameterDefinition `name:"input"` Name string `namespace:""` Value *Value }
type InterfaceAssignment ¶
type InterfaceAssignment struct { *Entity `name:"interface assignment"` Name string Operations OperationAssignments `read:"?,OperationAssignment"` }
func NewInterfaceAssignment ¶
func NewInterfaceAssignment(context *tosca.Context) *InterfaceAssignment
func (*InterfaceAssignment) GetDefinitionForNodeTemplate ¶
func (self *InterfaceAssignment) GetDefinitionForNodeTemplate(nodeTemplate *NodeTemplate) (*InterfaceDefinition, bool)
func (*InterfaceAssignment) GetDefinitionForRelationshipSource ¶
func (self *InterfaceAssignment) GetDefinitionForRelationshipSource(relationship *RelationshipAssignment) (*InterfaceDefinition, bool)
func (*InterfaceAssignment) GetDefinitionForRelationshipTarget ¶
func (self *InterfaceAssignment) GetDefinitionForRelationshipTarget(relationship *RelationshipAssignment) (*InterfaceDefinition, bool)
func (*InterfaceAssignment) GetKey ¶
func (self *InterfaceAssignment) GetKey() string
tosca.Mappable interface
func (*InterfaceAssignment) Normalize ¶
func (self *InterfaceAssignment) Normalize(normalInterface *normal.Interface, definition *InterfaceDefinition)
func (*InterfaceAssignment) Render ¶
func (self *InterfaceAssignment) Render(definition *InterfaceDefinition)
type InterfaceAssignments ¶
type InterfaceAssignments map[string]*InterfaceAssignment
func (InterfaceAssignments) NormalizeForNodeTemplate ¶
func (self InterfaceAssignments) NormalizeForNodeTemplate(nodeTemplate *NodeTemplate, normalNodeTemplate *normal.NodeTemplate)
func (InterfaceAssignments) NormalizeForRelationshipSource ¶
func (self InterfaceAssignments) NormalizeForRelationshipSource(relationship *RelationshipAssignment, normalRelationship *normal.Relationship)
func (InterfaceAssignments) NormalizeForRelationshipTarget ¶
func (self InterfaceAssignments) NormalizeForRelationshipTarget(relationship *RelationshipAssignment, normalRelationship *normal.Relationship)
func (InterfaceAssignments) Render ¶
func (self InterfaceAssignments) Render(definitions InterfaceDefinitions, context *tosca.Context)
type InterfaceDefinition ¶
type InterfaceDefinition struct { *Entity `name:"interface definition"` Name string OperationDefinitions OperationDefinitions `read:"?,OperationDefinition"` }
func NewInterfaceDefinition ¶
func NewInterfaceDefinition(context *tosca.Context) *InterfaceDefinition
func (*InterfaceDefinition) GetKey ¶
func (self *InterfaceDefinition) GetKey() string
tosca.Mappable interface
func (*InterfaceDefinition) Inherit ¶
func (self *InterfaceDefinition) Inherit(parentDefinition *InterfaceDefinition)
type InterfaceDefinitions ¶
type InterfaceDefinitions map[string]*InterfaceDefinition
func (InterfaceDefinitions) Inherit ¶
func (self InterfaceDefinitions) Inherit(parentDefinitions InterfaceDefinitions)
type NodeTemplate ¶
type NodeTemplate struct { *Entity `name:"node template"` Name string `namespace:""` NodeTypeName *string `read:"type" require:""` Properties Values `read:"properties,Value"` Instances *NodeTemplateInstances `read:"instances,NodeTemplateInstances"` // deprecated in Cloudify DSL 1.3 Interfaces InterfaceAssignments `read:"interfaces,InterfaceAssignment"` Relationships RelationshipAssignments `read:"relationships,[]RelationshipAssignment"` Capabilities NodeTemplateCapabilities `read:"capabilities,NodeTemplateCapability"` NodeType *NodeType `lookup:"type,NodeTypeName" json:"-" yaml:"-"` }
func NewNodeTemplate ¶
func NewNodeTemplate(context *tosca.Context) *NodeTemplate
func (*NodeTemplate) Normalize ¶
func (self *NodeTemplate) Normalize(normalServiceTemplate *normal.ServiceTemplate) *normal.NodeTemplate
func (*NodeTemplate) NormalizeRelationships ¶
func (self *NodeTemplate) NormalizeRelationships(normalServiceTemplate *normal.ServiceTemplate)
type NodeTemplateCapabilities ¶
type NodeTemplateCapabilities map[string]*NodeTemplateCapability
func (NodeTemplateCapabilities) Validate ¶
func (self NodeTemplateCapabilities) Validate(context *tosca.Context, instances *NodeTemplateInstances)
type NodeTemplateCapability ¶
type NodeTemplateCapability struct { *Entity `name:"node template capability"` Properties Values `read:"properties,Value"` }
func NewNodeTemplateCapability ¶
func NewNodeTemplateCapability(context *tosca.Context) *NodeTemplateCapability
func (*NodeTemplateCapability) ValidateScalableProperties ¶
func (self *NodeTemplateCapability) ValidateScalableProperties(instances *NodeTemplateInstances)
type NodeTemplateInstances ¶
type NodeTemplateInstances struct { *Entity `name:"node template instances"` Deploy *int64 `read:"deploy"` }
func NewNodeTemplateInstances ¶
func NewNodeTemplateInstances(context *tosca.Context) *NodeTemplateInstances
type NodeTemplates ¶
type NodeTemplates []*NodeTemplate
func (NodeTemplates) Normalize ¶
func (self NodeTemplates) Normalize(normalServiceTemplate *normal.ServiceTemplate)
type NodeType ¶
type NodeType struct { *Type `name:"node type"` InterfaceDefinitions InterfaceDefinitions `read:"interfaces,InterfaceDefinition" inherit:"interfaces,Parent"` PropertyDefinitions PropertyDefinitions `read:"properties,PropertyDefinition" inherit:"properties,Parent"` Parent *NodeType `lookup:"derived_from,ParentName" json:"-" yaml:"-"` }
func NewNodeType ¶
type OperationAssignment ¶
type OperationAssignment struct { *Entity `name:"operation assignment"` Name string Implementation *string `read:"implementation" require:""` Inputs Values `read:"inputs,Value"` Executor *string `read:"executor"` MaxRetries *int64 `read:"max_retries"` RetryInterval *float64 `read:"retry_interval"` }
func NewOperationAssignment ¶
func NewOperationAssignment(context *tosca.Context) *OperationAssignment
func (*OperationAssignment) GetKey ¶
func (self *OperationAssignment) GetKey() string
tosca.Mappable interface
type OperationAssignments ¶
type OperationAssignments map[string]*OperationAssignment
func (OperationAssignments) Normalize ¶
func (self OperationAssignments) Normalize(normalInterface *normal.Interface)
func (OperationAssignments) Render ¶
func (self OperationAssignments) Render(definitions OperationDefinitions, context *tosca.Context)
type OperationDefinition ¶
type OperationDefinition struct { *Entity `name:"operation definition"` Name string Implementation *string `read:"implementation"` InputDefinitions ParameterDefinitions `read:"inputs,ParameterDefinition"` Executor *string `read:"executor"` MaxRetries *int64 `read:"max_retries"` RetryInterval *float64 `read:"retry_interval"` }
func NewOperationDefinition ¶
func NewOperationDefinition(context *tosca.Context) *OperationDefinition
func (*OperationDefinition) GetKey ¶
func (self *OperationDefinition) GetKey() string
tosca.Mappable interface
func (*OperationDefinition) Inherit ¶
func (self *OperationDefinition) Inherit(parentDefinition *OperationDefinition)
type OperationDefinitions ¶
type OperationDefinitions map[string]*OperationDefinition
func (OperationDefinitions) Inherit ¶
func (self OperationDefinitions) Inherit(parentDefinitions OperationDefinitions)
type ParameterDefinition ¶
type ParameterDefinition struct { *Entity `name:"parameter definition"` Name string Description *string `read:"description"` DataTypeName *string `read:"type"` Default *Value `read:"default,Value"` DataType *DataType `lookup:"type,DataTypeName" json:"-" yaml:"-"` }
func NewParameterDefinition ¶
func NewParameterDefinition(context *tosca.Context) *ParameterDefinition
func (*ParameterDefinition) GetKey ¶
func (self *ParameterDefinition) GetKey() string
tosca.Mappable interface
func (*ParameterDefinition) GetTypeInformation ¶ added in v0.15.0
func (self *ParameterDefinition) GetTypeInformation() *normal.TypeInformation
func (*ParameterDefinition) Inherit ¶
func (self *ParameterDefinition) Inherit(parentDefinition *ParameterDefinition)
func (*ParameterDefinition) Render ¶ added in v0.13.0
func (self *ParameterDefinition) Render()
parser.Renderable interface
type ParameterDefinitions ¶
type ParameterDefinitions map[string]*ParameterDefinition
func (ParameterDefinitions) Inherit ¶
func (self ParameterDefinitions) Inherit(parentDefinitions ParameterDefinitions)
type Plugin ¶
type Plugin struct { *Entity `name:"plugin"` Name string `namespace:""` Executor *string `read:"executor" require:""` Source *string `read:"source"` InstallArguments *string `read:"install_arguments"` Install *bool `read:"install"` PackageName *string `read:"package_name"` PackageVersion *string `read:"package_version"` SupportedPlatform *string `read:"supported_platform"` Distribution *string `read:"distribution"` DistributionVersion *string `read:"distribution_version"` DistributionRelease *string `read:"distribution_release"` }
type Policies ¶
type Policies []*Policy
func (Policies) Normalize ¶
func (self Policies) Normalize(normalServiceTemplate *normal.ServiceTemplate)
type Policy ¶
type Policy struct { *Entity `name:"policy"` Name string `namespace:""` PolicyTypeName *string `read:"type" require:""` Properties Values `read:"properties,Value"` TargetGroupNames *[]string `read:"targets" require:""` PolicyType *PolicyType `lookup:"type,PolicyTypeName" json:"-" yaml:"-"` TargetGroups Groups `lookup:"targets,TargetGroupNames" json:"-" yaml:"-"` }
type PolicyTriggerType ¶
type PolicyTriggerType struct { *Entity `name:"policy trigger type"` Name string `namespace:""` Source *string `read:"source" require:""` Parameters PropertyDefinitions `read:"parameters,PropertyDefinition"` }
func NewPolicyTriggerType ¶
func NewPolicyTriggerType(context *tosca.Context) *PolicyTriggerType
func (*PolicyTriggerType) GetParent ¶
func (self *PolicyTriggerType) GetParent() tosca.EntityPtr
tosca.Hierarchical interface
type PolicyTriggerTypes ¶
type PolicyTriggerTypes []*PolicyTriggerType
type PolicyType ¶
type PolicyType struct { *Entity `name:"policy type"` Name string `namespace:""` Source *string `read:"source" require:""` PropertyDefinitions PropertyDefinitions `read:"properties,PropertyDefinition"` }
func NewPolicyType ¶
func NewPolicyType(context *tosca.Context) *PolicyType
func (*PolicyType) GetParent ¶
func (self *PolicyType) GetParent() tosca.EntityPtr
tosca.Hierarchical interface
type PolicyTypes ¶
type PolicyTypes []*PolicyType
type PropertyDefinition ¶
type PropertyDefinition struct { *ParameterDefinition `name:"property definition"` Required *bool `read:"required"` }
func NewPropertyDefinition ¶
func NewPropertyDefinition(context *tosca.Context) *PropertyDefinition
func (*PropertyDefinition) GetKey ¶
func (self *PropertyDefinition) GetKey() string
tosca.Mappable interface
func (*PropertyDefinition) Inherit ¶
func (self *PropertyDefinition) Inherit(parentDefinition *PropertyDefinition)
func (*PropertyDefinition) IsRequired ¶ added in v0.13.0
func (self *PropertyDefinition) IsRequired() bool
type PropertyDefinitions ¶
type PropertyDefinitions map[string]*PropertyDefinition
func (PropertyDefinitions) Inherit ¶
func (self PropertyDefinitions) Inherit(parentDefinitions PropertyDefinitions)
type RelationshipAssignment ¶
type RelationshipAssignment struct { *Entity `name:"relationship assignment"` RelationshipTypeName *string `read:"type" require:""` TargetNodeTemplateName *string `read:"target" require:""` Properties Values `read:"properties,Value"` SourceInterfaces InterfaceAssignments `read:"source_interfaces,InterfaceAssignment"` TargetInterfaces InterfaceAssignments `read:"target_interfaces,InterfaceAssignment"` RelationshipType *RelationshipType `lookup:"type,RelationshipTypeName" json:"-" yaml:"-"` TargetNodeTemplate *NodeTemplate `lookup:"target,TargetNodeTemplateName" json:"-" yaml:"-"` }
func NewRelationshipAssignment ¶
func NewRelationshipAssignment(context *tosca.Context) *RelationshipAssignment
func (*RelationshipAssignment) Normalize ¶
func (self *RelationshipAssignment) Normalize(nodeTemplate *NodeTemplate, normalNodeTemplate *normal.NodeTemplate) *normal.Requirement
func (*RelationshipAssignment) Render ¶
func (self *RelationshipAssignment) Render()
parser.Renderable interface
type RelationshipAssignments ¶
type RelationshipAssignments []*RelationshipAssignment
type RelationshipType ¶
type RelationshipType struct { *Type `name:"relationship type"` SourceInterfaceDefinitions InterfaceDefinitions `read:"source_interfaces,InterfaceDefinition" inherit:"source_interfaces,Parent"` TargetInterfaceDefinitions InterfaceDefinitions `read:"target_interfaces,InterfaceDefinition" inherit:"target_interfaces,Parent"` PropertyDefinitions PropertyDefinitions `read:"properties,PropertyDefinition" inherit:"properties,Parent"` Parent *RelationshipType `lookup:"derived_from,ParentName" json:"-" yaml:"-"` }
func NewRelationshipType ¶
func NewRelationshipType(context *tosca.Context) *RelationshipType
func (*RelationshipType) GetParent ¶
func (self *RelationshipType) GetParent() tosca.EntityPtr
tosca.Hierarchical interface
type RelationshipTypes ¶
type RelationshipTypes []*RelationshipType
type Type ¶
type Unit ¶
type Unit struct { *Entity `name:"unit"` ToscaDefinitionsVersion *string `read:"tosca_definitions_version" require:""` Metadata Metadata `read:"metadata,!Metadata"` // not in spec, but in code Imports Imports `read:"imports,[]Import"` Inputs Inputs `read:"inputs,Input"` NodeTemplates NodeTemplates `read:"node_templates,NodeTemplate"` NodeTypes NodeTypes `read:"node_types,NodeType" hierarchy:""` Capabilities []*ValueDefinition `read:"capability,ValueDefinition"` Outputs ValueDefinitions `read:"outputs,ValueDefinition"` RelationshipTypes RelationshipTypes `read:"relationships,RelationshipType" hierarchy:""` Plugins Plugins `read:"plugins,Plugin"` Workflows Workflows `read:"workflows,Workflow"` DataTypes DataTypes `read:"data_types,DataType" hierarchy:""` Policies Policies `read:"policies,Policy"` PolicyTypes PolicyTypes `read:"policy_types,PolicyType" hierarchy:""` PolicyTriggerTypes PolicyTriggerTypes `read:"policy_triggers,PolicyTriggerType" hierarchy:""` UploadResources *UploadResources `read:"upload_resources,UploadResources"` }
func (*Unit) GetImportSpecs ¶
func (self *Unit) GetImportSpecs() []*tosca.ImportSpec
parser.Importer interface
type UploadResources ¶
type UploadResources struct { *Entity `name:"upload resources"` PluginResources *[]string `read:"plugin_resources"` DSLResources DSLResources `read:"dsl_resources,[]DSLResource"` Parameters Values `read:"parameters,Value"` }
func NewUploadResources ¶
func NewUploadResources(context *tosca.Context) *UploadResources
type Value ¶
type Value struct { *Entity `name:"value"` Name string Description *string // contains filtered or unexported fields }
func (*Value) Normalize ¶
func (self *Value) Normalize() normal.Constrainable
func (*Value) RenderParameter ¶
func (self *Value) RenderParameter(dataType *DataType, definition *ParameterDefinition, validateRequire bool, allowNil bool)
func (*Value) RenderProperty ¶
func (self *Value) RenderProperty(dataType *DataType, definition *PropertyDefinition)
type ValueDefinition ¶
type ValueDefinition struct { *Entity `name:"value definition"` Name string `namespace:""` Description *string `read:"description"` Value *Value `read:"value,Value"` }
func NewValueDefinition ¶
func NewValueDefinition(context *tosca.Context) *ValueDefinition
func (*ValueDefinition) GetKey ¶
func (self *ValueDefinition) GetKey() string
tosca.Mappable interface
type ValueDefinitions ¶
type ValueDefinitions map[string]*ValueDefinition
func (ValueDefinitions) Normalize ¶
func (self ValueDefinitions) Normalize(c normal.Constrainables)
type Values ¶
func (Values) Normalize ¶
func (self Values) Normalize(normalConstrainables normal.Constrainables, prefix string)
func (Values) RenderMissingValue ¶
func (Values) RenderParameters ¶
func (self Values) RenderParameters(definitions ParameterDefinitions, kind string, context *tosca.Context)
func (Values) RenderProperties ¶
func (self Values) RenderProperties(definitions PropertyDefinitions, kind string, context *tosca.Context)
type Workflow ¶
type Workflow struct { *Entity `name:"workflow"` Name string `namespace:""` Mapping *string `read:"mapping" require:""` ParameterDefinitions ParameterDefinitions `read:"parameters,ParameterDefinition"` IsCascading *bool `read:"is_cascading"` // See: https://docs.cloudify.co/5.0.5/working_with/service_composition/component/ }
func NewWorkflow ¶
Source Files
¶
- blueprint.go
- common.go
- data-type.go
- dsl-resource.go
- entity.go
- functions.go
- group-policy-trigger.go
- group-policy.go
- group.go
- import.go
- input.go
- interface-assignment.go
- interface-definition.go
- metadata.go
- node-template-capability.go
- node-template-instances.go
- node-template.go
- node-type.go
- operation-assignment.go
- operation-definition.go
- parameter-definition.go
- plugin.go
- policy-trigger-type.go
- policy-type.go
- policy.go
- property-definition.go
- relationship-assignment.go
- relationship-type.go
- type.go
- unit.go
- upload-resources.go
- value-definition.go
- value.go
- workflow.go