Documentation ¶
Index ¶
Constants ¶
View Source
const ( ACTION ContribType = 1 + iota TRIGGER ACTIVITY FLOW_MODEL REF FileDescriptor string = "flogo.json" FileImportsGo string = "imports.go" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionDescriptor ¶
type ContribType ¶
type ContribType int
func ToContribType ¶
func ToContribType(name string) ContribType
func (ContribType) String ¶
func (m ContribType) String() string
type Dependency ¶
type Dependency struct { ContribType ContribType Ref string }
func ExtractAllDependencies ¶
func ExtractAllDependencies(appjson string) ([]*Dependency, error)
func ExtractDependenciesSharedActions ¶ added in v0.5.6
func ExtractDependenciesSharedActions(actions []*ActionDescriptor) []*Dependency
ExtractDependencies extracts dependencies from from application descriptor
func (*Dependency) MarshalJSON ¶
func (d *Dependency) MarshalJSON() ([]byte, error)
func (*Dependency) UnmarshalJSON ¶
func (d *Dependency) UnmarshalJSON(data []byte) error
type Descriptor ¶
type ErrorHandlerRep ¶
type ErrorHandlerRep struct {
Tasks []*Task `json:"tasks"`
}
type FlogoAppDescriptor ¶
type FlogoAppDescriptor struct { Name string `json:"name"` Type string `json:"type"` Version string `json:"version"` Description string `json:"description"` AppModel string `json:"appModel,omitempty"` Triggers []*trigger.Config `json:"triggers"` Resources []*ResourceDescriptor `json:"resources"` //deprecated Actions []*ActionDescriptor `json:"actions"` }
FlogoAppDescriptor is the descriptor for a Flogo application
type FlogoPaletteDescriptor ¶
type FlogoPaletteDescriptor struct { Name string `json:"name"` Version string `json:"version"` Description string `json:"description"` Extensions []Dependency `json:"extensions"` }
FlogoPaletteDescriptor a package: just change to a list of references
type ResourceData ¶
type ResourceData struct { Tasks []*Task `json:"tasks"` Links []*Task `json:"links"` ErrorHandler *ErrorHandlerRep `json:"errorHandler"` }
type ResourceDescriptor ¶
type ResourceDescriptor struct { ID string `json:"id"` Compressed bool `json:"compressed"` Data json.RawMessage `json:"data"` }
type TriggerMetadata ¶
Click to show internal directories.
Click to hide internal directories.