Documentation
¶
Index ¶
- Constants
- func NewMappingEdge(type_ string, name string, mapping *Mapping, ...)
- func SetMetadata(entity cloutpkg.Entity, kind string)
- type Artifact
- type Artifacts
- type CallOperation
- type Capabilities
- type Capability
- type Constrainable
- type ConstrainableList
- type Constrainables
- type FunctionCall
- type FunctionCallMap
- type FunctionCallMapMap
- type FunctionCalls
- type Group
- type Groups
- type Interface
- type Interfaces
- type List
- func (self *List) AddConstraint(functionCall *tosca.FunctionCall)
- func (self *List) AddEntryConstraint(constraint *tosca.FunctionCall)
- func (self *List) Set(index int, value Constrainable)
- func (self *List) SetConverter(converter *tosca.FunctionCall)
- func (self *List) SetInformation(information *ValueInformation)
- func (self *List) SetKey(key Constrainable)
- type Location
- type Map
- func (self *Map) AddConstraint(constraint *tosca.FunctionCall)
- func (self *Map) AddKeyConstraint(constraint *tosca.FunctionCall)
- func (self *Map) AddValueConstraint(constraint *tosca.FunctionCall)
- func (self *Map) Put(key interface{}, value Constrainable)
- func (self *Map) SetConverter(converter *tosca.FunctionCall)
- func (self *Map) SetInformation(information *ValueInformation)
- func (self *Map) SetKey(key Constrainable)
- type Mapping
- type Mappings
- type MarshalableCapability
- type MarshalableMapping
- type MarshalableRequirement
- type NodeTemplate
- func (self *NodeTemplate) NewArtifact(name string) *Artifact
- func (self *NodeTemplate) NewCapability(name string, location *Location) *Capability
- func (self *NodeTemplate) NewInterface(name string) *Interface
- func (self *NodeTemplate) NewMapping(targetType string, target string) *Mapping
- func (self *NodeTemplate) NewRequirement(name string, location *Location) *Requirement
- type NodeTemplates
- type Normalizable
- type Notification
- type Notifications
- type Operation
- type Operations
- type Policies
- type Policy
- type PolicyTrigger
- type Relationship
- type Relationships
- type Requirement
- type Requirements
- type ServiceTemplate
- func (serviceTemplate *ServiceTemplate) Compile(allowTimestamps bool) (*cloutpkg.Clout, error)
- func (self *ServiceTemplate) NewGroup(name string) *Group
- func (self *ServiceTemplate) NewNodeTemplate(name string) *NodeTemplate
- func (self *ServiceTemplate) NewPolicy(name string) *Policy
- func (self *ServiceTemplate) NewSubstitution() *Substitution
- func (self *ServiceTemplate) NewWorkflow(name string) *Workflow
- type Substitution
- type Type
- type TypeInformation
- type Types
- type Value
- type ValueInformation
- type ValueInformationMap
- type Workflow
- type WorkflowActivity
- type WorkflowPrecondition
- type WorkflowStep
- type WorkflowSteps
- type Workflows
Constants ¶
View Source
const VERSION = "1.0"
Variables ¶
This section is empty.
Functions ¶
func NewMappingEdge ¶ added in v0.20.0
func SetMetadata ¶ added in v0.20.0
Types ¶
type Artifact ¶
type Artifact struct { NodeTemplate *NodeTemplate `json:"-" yaml:"-"` Name string `json:"-" yaml:"-"` Description string `json:"description" yaml:"description"` Types Types `json:"types" yaml:"types"` Properties Constrainables `json:"properties" yaml:"properties"` Filename string `json:"filename" yaml:"filename"` SourcePath string `json:"sourcePath" yaml:"sourcePath"` TargetPath string `json:"targetPath" yaml:"targetPath"` Version string `json:"version" yaml:"version"` ChecksumAlgorithm string `json:"checksumAlgorithm" yaml:"checksumAlgorithm"` Checksum string `json:"checksum" yaml:"checksum"` Credential Constrainable `json:"credential" yaml:"credential"` }
type CallOperation ¶ added in v0.19.0
type CallOperation struct { Activity *WorkflowActivity `json:"-" yaml:"-"` Operation *Operation `json:"operation" yaml:"operation"` Inputs Constrainables `json:"inputs" yaml:"inputs"` }
type Capabilities ¶
type Capabilities map[string]*Capability
type Capability ¶
type Capability struct { NodeTemplate *NodeTemplate Name string Description string Types Types Properties Constrainables Attributes Constrainables MinRelationshipCount uint64 MaxRelationshipCount uint64 Location *Location }
func (*Capability) MarshalCBOR ¶ added in v0.18.0
func (self *Capability) MarshalCBOR() ([]byte, error)
cbor.Marshaler interface
func (*Capability) MarshalJSON ¶
func (self *Capability) MarshalJSON() ([]byte, error)
json.Marshaler interface
func (*Capability) MarshalYAML ¶
func (self *Capability) MarshalYAML() (interface{}, error)
yaml.Marshaler interface
func (*Capability) Marshalable ¶
func (self *Capability) Marshalable() interface{}
type Constrainable ¶
type Constrainable interface { SetKey(Constrainable) SetInformation(*ValueInformation) AddConstraint(*tosca.FunctionCall) SetConverter(*tosca.FunctionCall) }
type ConstrainableList ¶
type ConstrainableList []Constrainable
func (ConstrainableList) AppendWithKey ¶
func (self ConstrainableList) AppendWithKey(key interface{}, value Constrainable) ConstrainableList
type Constrainables ¶
type Constrainables map[interface{}]Constrainable
type FunctionCall ¶
type FunctionCall struct { Key Constrainable `json:"$key,omitempty" yaml:"$key,omitempty"` Information *ValueInformation `json:"$information,omitempty" yaml:"$information,omitempty"` Constraints FunctionCalls `json:"$constraints,omitempty" yaml:"$constraints,omitempty"` Converter *FunctionCall `json:"$converter,omitempty" yaml:"$converter,omitempty"` FunctionCall *tosca.FunctionCall `json:"$functionCall" yaml:"$functionCall"` }
func NewFunctionCall ¶
func NewFunctionCall(functionCall *tosca.FunctionCall) *FunctionCall
func (*FunctionCall) AddConstraint ¶
func (self *FunctionCall) AddConstraint(constraint *tosca.FunctionCall)
Constrainable interface
func (*FunctionCall) SetConverter ¶ added in v0.19.0
func (self *FunctionCall) SetConverter(converter *tosca.FunctionCall)
Constrainable interface
func (*FunctionCall) SetInformation ¶ added in v0.15.0
func (self *FunctionCall) SetInformation(information *ValueInformation)
Constrainable interface
func (*FunctionCall) SetKey ¶
func (self *FunctionCall) SetKey(key Constrainable)
Constrainable interface
type FunctionCallMap ¶
type FunctionCallMap map[string]FunctionCalls
type FunctionCallMapMap ¶
type FunctionCallMapMap map[string]FunctionCallMap
type FunctionCalls ¶
type FunctionCalls []*FunctionCall
type Group ¶
type Group struct { ServiceTemplate *ServiceTemplate `json:"-" yaml:"-"` Name string `json:"-" yaml:"-"` Metadata map[string]string `json:"metadata" yaml:"metadata"` Description string `json:"description" yaml:"description"` Types Types `json:"types" yaml:"types"` Properties Constrainables `json:"properties" yaml:"properties"` Interfaces Interfaces `json:"interfaces" yaml:"interfaces"` Members []*NodeTemplate `json:"-" yaml:"-"` }
func (*Group) NewInterface ¶
type Interface ¶
type Interface struct { NodeTemplate *NodeTemplate `json:"-" yaml:"-"` Group *Group `json:"-" yaml:"-"` Relationship *Relationship `json:"-" yaml:"-"` Name string `json:"-" yaml:"-"` Description string `json:"description" yaml:"description"` Types Types `json:"types" yaml:"types"` Inputs Constrainables `json:"inputs" yaml:"inputs"` Operations Operations `json:"operations" yaml:"operations"` Notifications Notifications `json:"notifications" yaml:"notifications"` }
func (*Interface) NewNotification ¶
func (self *Interface) NewNotification(name string) *Notification
func (*Interface) NewOperation ¶
type Interfaces ¶
type List ¶
type List struct { Key Constrainable `json:"$key,omitempty" yaml:"$key,omitempty"` Information *ValueInformation `json:"$information,omitempty" yaml:"$information,omitempty"` Constraints FunctionCalls `json:"$constraints,omitempty" yaml:"$constraints,omitempty"` Converter *FunctionCall `json:"$converter,omitempty" yaml:"$converter,omitempty"` EntryConstraints FunctionCalls `json:"$entryConstraints,omitempty" yaml:"$entryConstraints,omitempty"` Entries ConstrainableList `json:"$list" yaml:"$list"` }
func (*List) AddConstraint ¶
func (self *List) AddConstraint(functionCall *tosca.FunctionCall)
Constrainable interface
func (*List) AddEntryConstraint ¶
func (self *List) AddEntryConstraint(constraint *tosca.FunctionCall)
func (*List) Set ¶
func (self *List) Set(index int, value Constrainable)
func (*List) SetConverter ¶ added in v0.19.0
func (self *List) SetConverter(converter *tosca.FunctionCall)
Constrainable interface
func (*List) SetInformation ¶ added in v0.15.0
func (self *List) SetInformation(information *ValueInformation)
Constrainable interface
type Location ¶ added in v0.18.0
type Location struct { Path string `json:"path" yaml:"path"` Row int `json:"row" yaml:"row"` Column int `json:"column" yaml:"column"` }
func NewLocationForContext ¶ added in v0.18.0
type Map ¶
type Map struct { Key Constrainable `json:"$key,omitempty" yaml:"$key,omitempty"` Information *ValueInformation `json:"$information,omitempty" yaml:"$information,omitempty"` Constraints FunctionCalls `json:"$constraints,omitempty" yaml:"$constraints,omitempty"` Converter *FunctionCall `json:"$converter,omitempty" yaml:"$converter,omitempty"` KeyConstraints FunctionCalls `json:"$keyConstraints,omitempty" yaml:"$keyConstraints,omitempty"` ValueConstraints FunctionCalls `json:"$valueConstraints,omitempty" yaml:"$valueConstraints,omitempty"` Entries ConstrainableList `json:"$map" yaml:"$map"` }
func (*Map) AddConstraint ¶
func (self *Map) AddConstraint(constraint *tosca.FunctionCall)
Constrainable interface
func (*Map) AddKeyConstraint ¶
func (self *Map) AddKeyConstraint(constraint *tosca.FunctionCall)
func (*Map) AddValueConstraint ¶
func (self *Map) AddValueConstraint(constraint *tosca.FunctionCall)
func (*Map) Put ¶
func (self *Map) Put(key interface{}, value Constrainable)
func (*Map) SetConverter ¶ added in v0.19.0
func (self *Map) SetConverter(converter *tosca.FunctionCall)
Constrainable interface
func (*Map) SetInformation ¶ added in v0.15.0
func (self *Map) SetInformation(information *ValueInformation)
Constrainable interface
type Mapping ¶ added in v0.18.0
type Mapping struct { NodeTemplate *NodeTemplate Relationship *Relationship TargetType string Target string Value Constrainable }
func NewMapping ¶ added in v0.18.0
func NewMappingValue ¶ added in v0.19.0
func NewMappingValue(targetType string, value Constrainable) *Mapping
func (*Mapping) MarshalCBOR ¶ added in v0.18.0
cbor.Marshaler interface
func (*Mapping) MarshalJSON ¶ added in v0.18.0
json.Marshaler interface
func (*Mapping) MarshalYAML ¶ added in v0.18.0
yaml.Marshaler interface
func (*Mapping) Marshalable ¶ added in v0.18.0
func (self *Mapping) Marshalable() interface{}
type MarshalableCapability ¶
type MarshalableCapability struct { Description string `json:"description" yaml:"description"` Types Types `json:"types" yaml:"types"` Properties Constrainables `json:"properties" yaml:"properties"` Attributes Constrainables `json:"attributes" yaml:"attributes"` MinRelationshipCount int64 `json:"minRelationshipCount" yaml:"minRelationshipCount"` MaxRelationshipCount int64 `json:"maxRelationshipCount" yaml:"maxRelationshipCount"` Location *Location `json:"location" yaml:"location"` }
type MarshalableMapping ¶ added in v0.18.0
type MarshalableMapping struct { NodeTemplateName string `json:"nodeTemplateName,omitempty" yaml:"nodeTemplateName,omitempty"` TargetType string `json:"targetType" yaml:"targetType"` Target string `json:"target,omitempty" yaml:"target,omitempty"` Value Constrainable `json:"value,omitempty" yaml:"value,omitempty"` }
type MarshalableRequirement ¶
type MarshalableRequirement struct { Name string `json:"name" yaml:"name"` CapabilityTypeName string `json:"capabilityTypeName" yaml:"capabilityTypeName"` CapabilityName string `json:"capabilityName" yaml:"capabilityName"` NodeTypeName string `json:"nodeTypeName" yaml:"nodeTypeName" ` NodeTemplateName string `json:"nodeTemplateName" yaml:"nodeTemplateName"` NodeTemplatePropertyConstraints FunctionCallMap `json:"nodeTemplatePropertyConstraints" yaml:"nodeTemplatePropertyConstraints"` CapabilityPropertyConstraints FunctionCallMapMap `json:"capabilityPropertyConstraints" yaml:"capabilityPropertyConstraints"` Relationship *Relationship `json:"relationship" yaml:"relationship"` Location *Location `json:"location" yaml:"location"` }
type NodeTemplate ¶
type NodeTemplate struct { ServiceTemplate *ServiceTemplate `json:"-" yaml:"-"` Name string `json:"-" yaml:"-"` Metadata map[string]string `json:"metadata" yaml:"metadata"` Description string `json:"description" yaml:"description"` Types Types `json:"types" yaml:"types"` Directives []string `json:"directives" yaml:"directives"` Properties Constrainables `json:"properties" yaml:"properties"` Attributes Constrainables `json:"attributes" yaml:"attributes"` Requirements Requirements `json:"requirements" yaml:"requirements"` Capabilities Capabilities `json:"capabilities" yaml:"capabilities"` Interfaces Interfaces `json:"interfaces" yaml:"interfaces"` Artifacts Artifacts `json:"artifacts" yaml:"artifacts"` }
func (*NodeTemplate) NewArtifact ¶
func (self *NodeTemplate) NewArtifact(name string) *Artifact
func (*NodeTemplate) NewCapability ¶
func (self *NodeTemplate) NewCapability(name string, location *Location) *Capability
func (*NodeTemplate) NewInterface ¶
func (self *NodeTemplate) NewInterface(name string) *Interface
func (*NodeTemplate) NewMapping ¶ added in v0.18.0
func (self *NodeTemplate) NewMapping(targetType string, target string) *Mapping
func (*NodeTemplate) NewRequirement ¶
func (self *NodeTemplate) NewRequirement(name string, location *Location) *Requirement
type NodeTemplates ¶
type NodeTemplates map[string]*NodeTemplate
func (NodeTemplates) Object ¶
func (self NodeTemplates) Object(name string) map[string]interface{}
For access in JavaScript
type Normalizable ¶
type Normalizable interface {
NormalizeServiceTemplate() *ServiceTemplate
}
type Notification ¶
type Notification struct { Interface *Interface `json:"-" yaml:"-"` Name string `json:"-" yaml:"-"` Description string `json:"description" yaml:"description"` Implementation string `json:"implementation" yaml:"implementation"` Dependencies []string `json:"dependencies" yaml:"dependencies"` Timeout int64 `json:"timeout" yaml:"timeout"` Host string `json:"host,omitempty" yaml:"host,omitempty"` Outputs Mappings `json:"outputs" yaml:"outputs"` }
type Notifications ¶
type Notifications map[string]*Notification
type Operation ¶
type Operation struct { Interface *Interface `json:"-" yaml:"-"` PolicyTrigger *PolicyTrigger `json:"-" yaml:"-"` Name string `json:"-" yaml:"-"` Description string `json:"description" yaml:"description"` Implementation string `json:"implementation" yaml:"implementation"` Dependencies []string `json:"dependencies" yaml:"dependencies"` Inputs Constrainables `json:"inputs" yaml:"inputs"` Outputs Mappings `json:"outputs" yaml:"outputs"` Timeout int64 `json:"timeout" yaml:"timeout"` Host string `json:"host,omitempty" yaml:"host,omitempty"` }
type Operations ¶
type Policy ¶
type Policy struct { ServiceTemplate *ServiceTemplate `json:"-" yaml:"-"` Name string `json:"-" yaml:"-"` Metadata map[string]string `json:"metadata" yaml:"metadata"` Description string `json:"description" yaml:"description"` Types Types `json:"types" yaml:"types"` Properties Constrainables `json:"properties" yaml:"properties"` GroupTargets []*Group `json:"-" yaml:"-"` NodeTemplateTargets []*NodeTemplate `json:"-" yaml:"-"` Triggers []*PolicyTrigger `json:"-" yaml:"-"` }
func (*Policy) NewTrigger ¶
func (self *Policy) NewTrigger() *PolicyTrigger
type PolicyTrigger ¶
type PolicyTrigger struct { Policy *Policy `json:"-" yaml:"-"` EventType string `json:"eventType" yaml:"eventType"` Operation *Operation `json:"operation" yaml:"operation"` Workflow *Workflow `json:"workflow" yaml:"workflow"` }
func (*PolicyTrigger) NewOperation ¶
func (self *PolicyTrigger) NewOperation() *Operation
type Relationship ¶
type Relationship struct { Requirement *Requirement `json:"-" yaml:"-"` Name string `json:"-" yaml:"-"` Metadata map[string]string `json:"metadata" yaml:"metadata"` Description string `json:"description" yaml:"description"` Types Types `json:"types" yaml:"types"` Properties Constrainables `json:"properties" yaml:"properties"` Attributes Constrainables `json:"attributes" yaml:"attributes"` Interfaces Interfaces `json:"interfaces" yaml:"interfaces"` }
func (*Relationship) NewInterface ¶
func (self *Relationship) NewInterface(name string) *Interface
func (*Relationship) NewMapping ¶ added in v0.18.0
func (self *Relationship) NewMapping(targetType string, target string) *Mapping
type Relationships ¶
type Relationships []*Relationship
type Requirement ¶
type Requirement struct { SourceNodeTemplate *NodeTemplate Name string CapabilityTypeName *string CapabilityName *string NodeTypeName *string NodeTemplate *NodeTemplate NodeTemplatePropertyConstraints FunctionCallMap CapabilityPropertyConstraints FunctionCallMapMap Relationship *Relationship Location *Location }
func (*Requirement) MarshalCBOR ¶ added in v0.18.0
func (self *Requirement) MarshalCBOR() ([]byte, error)
cbor.Marshaler interface
func (*Requirement) MarshalJSON ¶
func (self *Requirement) MarshalJSON() ([]byte, error)
json.Marshaler interface
func (*Requirement) MarshalYAML ¶
func (self *Requirement) MarshalYAML() (interface{}, error)
yaml.Marshaler interface
func (*Requirement) Marshalable ¶
func (self *Requirement) Marshalable() interface{}
func (*Requirement) NewRelationship ¶
func (self *Requirement) NewRelationship() *Relationship
type Requirements ¶
type Requirements []*Requirement
type ServiceTemplate ¶
type ServiceTemplate struct { Description string `json:"description" yaml:"description"` NodeTemplates NodeTemplates `json:"nodeTemplates" yaml:"nodeTemplates"` Groups Groups `json:"groups" yaml:"groups"` Policies Policies `json:"policies" yaml:"policies"` Inputs Constrainables `json:"inputs" yaml:"inputs"` Outputs Constrainables `json:"outputs" yaml:"outputs"` Workflows Workflows `json:"workflows" yaml:"workflows"` Substitution *Substitution `json:"substitution" yaml:"substitution"` Metadata map[string]string `json:"metadata" yaml:"metadata"` ScriptletNamespace *tosca.ScriptletNamespace `json:"scriptletNamespace" yaml:"scriptletNamespace"` }
func NewServiceTemplate ¶
func NewServiceTemplate() *ServiceTemplate
func NormalizeServiceTemplate ¶
func NormalizeServiceTemplate(entityPtr tosca.EntityPtr) (*ServiceTemplate, bool)
From Normalizable interface
func (*ServiceTemplate) Compile ¶ added in v0.20.0
func (serviceTemplate *ServiceTemplate) Compile(allowTimestamps bool) (*cloutpkg.Clout, error)
func (*ServiceTemplate) NewGroup ¶
func (self *ServiceTemplate) NewGroup(name string) *Group
func (*ServiceTemplate) NewNodeTemplate ¶
func (self *ServiceTemplate) NewNodeTemplate(name string) *NodeTemplate
func (*ServiceTemplate) NewPolicy ¶
func (self *ServiceTemplate) NewPolicy(name string) *Policy
func (*ServiceTemplate) NewSubstitution ¶
func (self *ServiceTemplate) NewSubstitution() *Substitution
func (*ServiceTemplate) NewWorkflow ¶
func (self *ServiceTemplate) NewWorkflow(name string) *Workflow
type Substitution ¶
type Substitution struct { ServiceTemplate *ServiceTemplate `json:"-" yaml:"-"` Type string `json:"type" yaml:"type"` TypeMetadata map[string]string `json:"typeMetadata" yaml:"typeMetadata"` CapabilityMappings Mappings `json:"capabilityMappings" yaml:"capabilityMappings"` RequirementMappings Mappings `json:"requirementMappings" yaml:"requirementMappings"` PropertyMappings Mappings `json:"propertyMappings" yaml:"propertyMappings"` AttributeMappings Mappings `json:"attributeMappings" yaml:"attributeMappings"` InterfaceMappings Mappings `json:"interfaceMappings" yaml:"interfaceMappings"` }
type Type ¶
type TypeInformation ¶ added in v0.15.0
type TypeInformation struct { Name string `json:"name,omitempty" yaml:"name,omitempty"` Description string `json:"description,omitempty" yaml:"description,omitempty"` SchemaDescription string `json:"schemaDescription,omitempty" yaml:"schemaDescription,omitempty"` Metadata map[string]string `json:"metadata,omitempty" yaml:"metadata,omitempty"` }
func CopyTypeInformation ¶ added in v0.15.0
func CopyTypeInformation(information *TypeInformation) *TypeInformation
func NewTypeInformation ¶ added in v0.15.0
func NewTypeInformation() *TypeInformation
func (*TypeInformation) Empty ¶ added in v0.15.0
func (self *TypeInformation) Empty() bool
func (*TypeInformation) Prune ¶ added in v0.15.0
func (self *TypeInformation) Prune()
type Types ¶
func GetHierarchyTypes ¶
type Value ¶
type Value struct { Key Constrainable `json:"$key,omitempty" yaml:"$key,omitempty"` Information *ValueInformation `json:"$information,omitempty" yaml:"$information,omitempty"` Constraints FunctionCalls `json:"$constraints,omitempty" yaml:"$constraints,omitempty"` Converter *FunctionCall `json:"$converter,omitempty" yaml:"$converter,omitempty"` Value ard.Value `json:"$value" yaml:"$value"` }
func (*Value) AddConstraint ¶
func (self *Value) AddConstraint(constraint *tosca.FunctionCall)
Constrainable interface
func (*Value) SetConverter ¶ added in v0.19.0
func (self *Value) SetConverter(converter *tosca.FunctionCall)
Constrainable interface
func (*Value) SetInformation ¶ added in v0.15.0
func (self *Value) SetInformation(information *ValueInformation)
Constrainable interface
type ValueInformation ¶ added in v0.19.0
type ValueInformation struct { Description string `json:"description,omitempty" yaml:"description,omitempty"` Definition *TypeInformation `json:"definition,omitempty" yaml:"definition,omitempty"` Type *TypeInformation `json:"type,omitempty" yaml:"type,omitempty"` Entry *TypeInformation `json:"entry,omitempty" yaml:"entry,omitempty"` Key *TypeInformation `json:"key,omitempty" yaml:"key,omitempty"` Value *TypeInformation `json:"value,omitempty" yaml:"value,omitempty"` Fields ValueInformationMap `json:"fields,omitempty" yaml:"fields,omitempty"` }
func CopyValueInformation ¶ added in v0.19.0
func CopyValueInformation(information *ValueInformation) *ValueInformation
func NewValueInformation ¶ added in v0.19.0
func NewValueInformation() *ValueInformation
func (*ValueInformation) Empty ¶ added in v0.19.0
func (self *ValueInformation) Empty() bool
func (*ValueInformation) Prune ¶ added in v0.19.0
func (self *ValueInformation) Prune()
type ValueInformationMap ¶ added in v0.19.0
type ValueInformationMap map[string]*ValueInformation
func CopyValueInformationMap ¶ added in v0.19.0
func CopyValueInformationMap(informationMap ValueInformationMap) ValueInformationMap
func (ValueInformationMap) Empty ¶ added in v0.19.0
func (self ValueInformationMap) Empty() bool
func (ValueInformationMap) Prune ¶ added in v0.19.0
func (self ValueInformationMap) Prune()
type Workflow ¶
type Workflow struct { ServiceTemplate *ServiceTemplate `json:"-" yaml:"-"` Name string `json:"-" yaml:"-"` Metadata map[string]string `json:"metadata" yaml:"metadata"` Description string `json:"description" yaml:"description"` Preconditions []*WorkflowPrecondition `json:"preconditions" yaml:"preconditions"` Steps WorkflowSteps `json:"steps" yaml:"steps"` Inputs Constrainables `json:"inputs" yaml:"inputs"` }
func (*Workflow) NewStep ¶
func (self *Workflow) NewStep(name string) *WorkflowStep
type WorkflowActivity ¶
type WorkflowActivity struct { Step *WorkflowStep `json:"-" yaml:"-"` DelegateWorkflow *Workflow `json:"-" yaml:"-"` InlineWorkflow *Workflow `json:"-" yaml:"-"` SetNodeState string `json:"setNodeState" yaml:"setNodeState"` CallOperation *CallOperation `json:"callOperation" yaml:"callOperation"` }
func (*WorkflowActivity) NewCallOperation ¶ added in v0.19.0
func (self *WorkflowActivity) NewCallOperation() *CallOperation
type WorkflowPrecondition ¶
type WorkflowPrecondition struct { TargetNodeTemplate *NodeTemplate ` json:"-" yaml:"-"` TargetGroup *Group ` json:"-" yaml:"-"` }
type WorkflowStep ¶
type WorkflowStep struct { Workflow *Workflow `json:"-" yaml:"-"` Name string `json:"-" yaml:"-"` TargetNodeTemplate *NodeTemplate `json:"-" yaml:"-"` TargetGroup *Group `json:"-" yaml:"-"` // TODO: Filters OnSuccessSteps []*WorkflowStep `json:"-" yaml:"-"` OnFailureSteps []*WorkflowStep `json:"-" yaml:"-"` Activities []*WorkflowActivity `json:"-" yaml:"-"` Host string `json:"-" yaml:"-"` }
func (*WorkflowStep) NewActivity ¶
func (self *WorkflowStep) NewActivity() *WorkflowActivity
type WorkflowSteps ¶
type WorkflowSteps map[string]*WorkflowStep
Source Files
¶
- artifact.go
- capability.go
- common.go
- compile.go
- constrainable.go
- function-call.go
- group.go
- interface.go
- list.go
- location.go
- map.go
- mapping.go
- node-template.go
- notification.go
- operation.go
- policy.go
- relationship.go
- requirement.go
- service-template.go
- substitution.go
- type-information.go
- type.go
- value-information.go
- value.go
- workflow.go
Click to show internal directories.
Click to hide internal directories.