Documentation
¶
Index ¶
- Variables
- func NormalizeFunctionCallArguments(functionCall *parsing.FunctionCall, context *parsing.Context)
- func ParseFunctionCall(context *parsing.Context) bool
- func ParseFunctionCalls(context *parsing.Context)
- func ReadBlueprint(context *parsing.Context) parsing.EntityPtr
- func ReadDSLResource(context *parsing.Context) parsing.EntityPtr
- func ReadDataType(context *parsing.Context) parsing.EntityPtr
- func ReadFile(context *parsing.Context) parsing.EntityPtr
- func ReadGroup(context *parsing.Context) parsing.EntityPtr
- func ReadGroupPolicy(context *parsing.Context) parsing.EntityPtr
- func ReadGroupPolicyTrigger(context *parsing.Context) parsing.EntityPtr
- func ReadImport(context *parsing.Context) parsing.EntityPtr
- func ReadInput(context *parsing.Context) parsing.EntityPtr
- func ReadInterfaceAssignment(context *parsing.Context) parsing.EntityPtr
- func ReadInterfaceDefinition(context *parsing.Context) parsing.EntityPtr
- func ReadMetadata(context *parsing.Context) parsing.EntityPtr
- func ReadNodeTemplate(context *parsing.Context) parsing.EntityPtr
- func ReadNodeTemplateCapability(context *parsing.Context) parsing.EntityPtr
- func ReadNodeTemplateInstances(context *parsing.Context) parsing.EntityPtr
- func ReadNodeType(context *parsing.Context) parsing.EntityPtr
- func ReadOperationAssignment(context *parsing.Context) parsing.EntityPtr
- func ReadOperationDefinition(context *parsing.Context) parsing.EntityPtr
- func ReadParameterDefinition(context *parsing.Context) parsing.EntityPtr
- func ReadPlugin(context *parsing.Context) parsing.EntityPtr
- func ReadPolicy(context *parsing.Context) parsing.EntityPtr
- func ReadPolicyTriggerType(context *parsing.Context) parsing.EntityPtr
- func ReadPolicyType(context *parsing.Context) parsing.EntityPtr
- func ReadPropertyDefinition(context *parsing.Context) parsing.EntityPtr
- func ReadRelationshipAssignment(context *parsing.Context) parsing.EntityPtr
- func ReadRelationshipType(context *parsing.Context) parsing.EntityPtr
- func ReadUploadResources(context *parsing.Context) parsing.EntityPtr
- func ReadValue(context *parsing.Context) parsing.EntityPtr
- func ReadValueDefinition(context *parsing.Context) parsing.EntityPtr
- func ReadWorkflow(context *parsing.Context) parsing.EntityPtr
- func ValidateOperationExecutor(executor string, context *parsing.Context)
- type Blueprint
- type DSLResource
- type DSLResources
- type DataType
- func (self *DataType) GetInternal() (ard.TypeName, ard.TypeValidator, parsing.Reader, bool)
- func (self *DataType) GetInternalTypeName() (ard.TypeName, bool)
- func (self *DataType) GetParent() parsing.EntityPtr
- func (self *DataType) Inherit()
- func (self *DataType) NewValueMeta() *normal.ValueMeta
- func (self *DataType) Render()
- type DataTypes
- type Entity
- type File
- 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 *parsing.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 UploadResources
- type Value
- type ValueDefinition
- type ValueDefinitions
- type Values
- func (self Values) Normalize(normalConstrainables normal.Values, prefix string)
- func (self Values) RenderMissingValue(definition *ParameterDefinition, kind string, required bool, ...)
- func (self Values) RenderParameters(definitions ParameterDefinitions, kind string, context *parsing.Context)
- func (self Values) RenderProperties(definitions PropertyDefinitions, kind string, context *parsing.Context)
- func (self Values) SetIfNil(context *parsing.Context, key string, data ard.Value)
- type Workflow
- type Workflows
Constants ¶
This section is empty.
Variables ¶
var DefaultScriptletNamespace = parsing.NewScriptletNamespace()
var FunctionScriptlets = map[string]string{ parsing.MetadataFunctionPrefix + "concat": profiles.GetString(functionPathPrefix + "get_secret.js"), parsing.MetadataFunctionPrefix + "get_attribute": profiles.GetString(functionPathPrefix + "get_attribute.js"), parsing.MetadataFunctionPrefix + "get_capability": profiles.GetString(functionPathPrefix + "get_capability.js"), parsing.MetadataFunctionPrefix + "get_input": profiles.GetString(functionPathPrefix + "get_input.js"), parsing.MetadataFunctionPrefix + "get_property": profiles.GetString(functionPathPrefix + "get_property.js"), parsing.MetadataFunctionPrefix + "get_secret": profiles.GetString(functionPathPrefix + "get_secret.js"), }
var Grammar = parsing.NewGrammar()
Functions ¶
func NormalizeFunctionCallArguments ¶
func NormalizeFunctionCallArguments(functionCall *parsing.FunctionCall, context *parsing.Context)
func ParseFunctionCall ¶ added in v0.21.0
func ParseFunctionCalls ¶ added in v0.21.0
func ReadBlueprint ¶
(parsing.Reader signature)
func ReadDSLResource ¶
(parsing.Reader signature)
func ReadDataType ¶
(parsing.Reader signature)
func ReadFile ¶ added in v0.21.0
(parsing.Reader signature)
func ReadGroup ¶
(parsing.Reader signature)
func ReadGroupPolicy ¶
(parsing.Reader signature)
func ReadGroupPolicyTrigger ¶
(parsing.Reader signature)
func ReadImport ¶
(parsing.Reader signature)
func ReadInput ¶
(parsing.Reader signature)
func ReadInterfaceAssignment ¶
(parsing.Reader signature)
func ReadInterfaceDefinition ¶
(parsing.Reader signature)
func ReadMetadata ¶
(parsing.Reader signature)
func ReadNodeTemplate ¶
(parsing.Reader signature)
func ReadNodeTemplateCapability ¶
(parsing.Reader signature)
func ReadNodeTemplateInstances ¶
(parsing.Reader signature)
func ReadNodeType ¶
(parsing.Reader signature)
func ReadOperationAssignment ¶
(parsing.Reader signature)
func ReadOperationDefinition ¶
(parsing.Reader signature)
func ReadParameterDefinition ¶
(parsing.Reader signature)
func ReadPlugin ¶
(parsing.Reader signature)
func ReadPolicy ¶
(parsing.Reader signature)
func ReadPolicyTriggerType ¶
(parsing.Reader signature)
func ReadPolicyType ¶
(parsing.Reader signature)
func ReadPropertyDefinition ¶
(parsing.Reader signature)
func ReadRelationshipAssignment ¶
(parsing.Reader signature)
func ReadRelationshipType ¶
(parsing.Reader signature)
func ReadUploadResources ¶
(parsing.Reader signature)
func ReadValue ¶
(parsing.Reader signature)
func ReadValueDefinition ¶
(parsing.Reader signature)
func ReadWorkflow ¶
(parsing.Reader signature)
Types ¶
type Blueprint ¶
type Blueprint struct { *File `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" mandatory:""` DestinationPath *string `read:"destination_path" mandatory:""` }
func NewDSLResource ¶
func NewDSLResource(context *parsing.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" traverse:"ignore" json:"-" yaml:"-"` }
func NewDataType ¶
func (*DataType) GetInternal ¶ added in v0.13.0
func (*DataType) GetInternalTypeName ¶
func (*DataType) GetParent ¶
(parsing.Hierarchical interface)
func (*DataType) NewValueMeta ¶ added in v0.21.0
func (*DataType) Render ¶ added in v0.13.0
func (self *DataType) Render()
(parsing.Renderable interface)
type Entity ¶
type Entity struct { Context *parsing.Context `traverse:"ignore" json:"-" yaml:"-"` // contains filtered or unexported fields }
func (*Entity) GetContext ¶
(parsing.Contextual interface)
type File ¶ added in v0.21.0
type File struct { *Entity `name:"file"` ToscaDefinitionsVersion *string `read:"tosca_definitions_version" mandatory:""` 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 (*File) GetImportSpecs ¶ added in v0.21.0
func (self *File) GetImportSpecs() []*parsing.ImportSpec
(parsing.Importer interface)
type Group ¶
type Group struct { *Entity `name:"group"` Name string `namespace:""` MemberNodeTemplateNames *[]string `read:"members" mandatory:""` Policies GroupPolicies `read:"policies,GroupPolicy"` MemberNodeTemplates NodeTemplates `lookup:"members,MemberNodeTemplateNames" traverse:"ignore" json:"-" yaml:"-"` }
type GroupPolicies ¶
type GroupPolicies map[string]*GroupPolicy
type GroupPolicy ¶
type GroupPolicy struct { *Entity `name:"group policy"` PolicyTypeName *string `read:"type" mandatory:""` Properties Values `read:"properties,Value"` Triggers GroupPolicyTriggers `read:"triggers,GroupPolicyTrigger"` PolicyType *PolicyType `lookup:"type,PolicyTypeName" traverse:"ignore" json:"-" yaml:"-"` }
func NewGroupPolicy ¶
func NewGroupPolicy(context *parsing.Context) *GroupPolicy
type GroupPolicyTrigger ¶
type GroupPolicyTrigger struct { *Entity `name:"group policy trigger"` PolicyTriggerTypeName *string `read:"type" mandatory:""` Parameters Values `read:"parameters,Value"` PolicyTriggerType *PolicyTriggerType `lookup:"type,PolicyTriggerTypeName" traverse:"ignore" json:"-" yaml:"-"` }
func NewGroupPolicyTrigger ¶
func NewGroupPolicyTrigger(context *parsing.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 *File) (*parsing.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 *parsing.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
(parsing.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 *parsing.Context)
type InterfaceDefinition ¶
type InterfaceDefinition struct { *Entity `name:"interface definition"` Name string OperationDefinitions OperationDefinitions `read:"?,OperationDefinition"` }
func NewInterfaceDefinition ¶
func NewInterfaceDefinition(context *parsing.Context) *InterfaceDefinition
func (*InterfaceDefinition) GetKey ¶
func (self *InterfaceDefinition) GetKey() string
(parsing.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" mandatory:""` 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" traverse:"ignore" json:"-" yaml:"-"` }
func NewNodeTemplate ¶
func NewNodeTemplate(context *parsing.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 *parsing.Context, instances *NodeTemplateInstances)
type NodeTemplateCapability ¶
type NodeTemplateCapability struct { *Entity `name:"node template capability"` Properties Values `read:"properties,Value"` }
func NewNodeTemplateCapability ¶
func NewNodeTemplateCapability(context *parsing.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 *parsing.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" traverse:"ignore" json:"-" yaml:"-"` }
func NewNodeType ¶
func (*NodeType) GetParent ¶
(parsing.Hierarchical interface)
type OperationAssignment ¶
type OperationAssignment struct { *Entity `name:"operation assignment"` Name string Implementation *string `read:"implementation" mandatory:""` Inputs Values `read:"inputs,Value"` Executor *string `read:"executor"` MaxRetries *int64 `read:"max_retries"` RetryInterval *float64 `read:"retry_interval"` }
func NewOperationAssignment ¶
func NewOperationAssignment(context *parsing.Context) *OperationAssignment
func (*OperationAssignment) GetKey ¶
func (self *OperationAssignment) GetKey() string
(parsing.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 *parsing.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 *parsing.Context) *OperationDefinition
func (*OperationDefinition) GetKey ¶
func (self *OperationDefinition) GetKey() string
(parsing.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" traverse:"ignore" json:"-" yaml:"-"` }
func NewParameterDefinition ¶
func NewParameterDefinition(context *parsing.Context) *ParameterDefinition
func (*ParameterDefinition) GetKey ¶
func (self *ParameterDefinition) GetKey() string
(parsing.Mappable interface)
func (*ParameterDefinition) GetNormalDataType ¶ added in v0.21.0
func (self *ParameterDefinition) GetNormalDataType() *normal.ValueMeta
func (*ParameterDefinition) Inherit ¶
func (self *ParameterDefinition) Inherit(parentDefinition *ParameterDefinition)
func (*ParameterDefinition) Render ¶ added in v0.13.0
func (self *ParameterDefinition) Render()
(parsing.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" mandatory:""` 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" mandatory:""` Properties Values `read:"properties,Value"` TargetGroupNames *[]string `read:"targets" mandatory:""` PolicyType *PolicyType `lookup:"type,PolicyTypeName" traverse:"ignore" json:"-" yaml:"-"` TargetGroups Groups `lookup:"targets,TargetGroupNames" traverse:"ignore" json:"-" yaml:"-"` }
type PolicyTriggerType ¶
type PolicyTriggerType struct { *Entity `name:"policy trigger type"` Name string `namespace:""` Source *string `read:"source" mandatory:""` Parameters PropertyDefinitions `read:"parameters,PropertyDefinition"` }
func NewPolicyTriggerType ¶
func NewPolicyTriggerType(context *parsing.Context) *PolicyTriggerType
func (*PolicyTriggerType) GetParent ¶
func (self *PolicyTriggerType) GetParent() parsing.EntityPtr
(parsing.Hierarchical interface)
type PolicyTriggerTypes ¶
type PolicyTriggerTypes []*PolicyTriggerType
type PolicyType ¶
type PolicyType struct { *Entity `name:"policy type"` Name string `namespace:""` Source *string `read:"source" mandatory:""` PropertyDefinitions PropertyDefinitions `read:"properties,PropertyDefinition"` }
func NewPolicyType ¶
func NewPolicyType(context *parsing.Context) *PolicyType
func (*PolicyType) GetParent ¶
func (self *PolicyType) GetParent() parsing.EntityPtr
(parsing.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 *parsing.Context) *PropertyDefinition
func (*PropertyDefinition) GetKey ¶
func (self *PropertyDefinition) GetKey() string
(parsing.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" mandatory:""` TargetNodeTemplateName *string `read:"target" mandatory:""` Properties Values `read:"properties,Value"` SourceInterfaces InterfaceAssignments `read:"source_interfaces,InterfaceAssignment"` TargetInterfaces InterfaceAssignments `read:"target_interfaces,InterfaceAssignment"` RelationshipType *RelationshipType `lookup:"type,RelationshipTypeName" traverse:"ignore" json:"-" yaml:"-"` TargetNodeTemplate *NodeTemplate `lookup:"target,TargetNodeTemplateName" traverse:"ignore" json:"-" yaml:"-"` }
func NewRelationshipAssignment ¶
func NewRelationshipAssignment(context *parsing.Context) *RelationshipAssignment
func (*RelationshipAssignment) Normalize ¶
func (self *RelationshipAssignment) Normalize(nodeTemplate *NodeTemplate, normalNodeTemplate *normal.NodeTemplate) *normal.Requirement
func (*RelationshipAssignment) Render ¶
func (self *RelationshipAssignment) Render()
(parsing.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" traverse:"ignore" json:"-" yaml:"-"` }
func NewRelationshipType ¶
func NewRelationshipType(context *parsing.Context) *RelationshipType
func (*RelationshipType) GetParent ¶
func (self *RelationshipType) GetParent() parsing.EntityPtr
(parsing.Hierarchical interface)
func (*RelationshipType) Inherit ¶
func (self *RelationshipType) Inherit()
(parsing.Inherits interface)
type RelationshipTypes ¶
type RelationshipTypes []*RelationshipType
type Type ¶
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 *parsing.Context) *UploadResources
type Value ¶
type Value struct { *Entity `name:"value"` Name string Meta *normal.ValueMeta `traverse:"ignore" json:"-" yaml:"-"` }
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 *parsing.Context) *ValueDefinition
func (*ValueDefinition) GetKey ¶
func (self *ValueDefinition) GetKey() string
(parsing.Mappable interface)
type ValueDefinitions ¶
type ValueDefinitions map[string]*ValueDefinition
func (ValueDefinitions) Normalize ¶
func (self ValueDefinitions) Normalize(c normal.Values)
type Values ¶
func (Values) RenderMissingValue ¶
func (Values) RenderParameters ¶
func (self Values) RenderParameters(definitions ParameterDefinitions, kind string, context *parsing.Context)
func (Values) RenderProperties ¶
func (self Values) RenderProperties(definitions PropertyDefinitions, kind string, context *parsing.Context)
type Workflow ¶
type Workflow struct { *Entity `name:"workflow"` Name string `namespace:""` Mapping *string `read:"mapping" mandatory:""` 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
- file.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
- upload-resources.go
- value-definition.go
- value.go
- workflow.go