Documentation
¶
Index ¶
- Constants
- func GetAppName() string
- func GetAppVerison() string
- func GetDefinition(flowURI string) (*definition.Definition, bool, error)
- func GetHostId() string
- func GetPrioritizeExprTask() bool
- func GetPropagateSkip() bool
- func GetUserName() string
- func InitDefaultDefLookup(fManager *FlowManager, rManager *resource.Manager)
- func SetResource(resources []*resource.Config) error
- type BasicRemoteFlowProvider
- type FlowLoader
- type FlowManager
- type Patch
- type TaskPatch
Constants ¶
View Source
const ( UserName = "FLOGO_APP_USERNAME" HostName = "FLOGO_HOST_NAME" AppName = "FLOGO_APP_NAME" AppVersion = "FLOGO_APP_VERSION" PropagateSkip = "FLOGO_TASK_PROPAGATE_SKIP" PropagateSkipDefault bool = true PrioritizeExprLink = "FLOGO_TASK_PRIORITIZE_EXPR_LINK" PrioritizeExprLinkDefault bool = false )
View Source
const (
ResTypeFlow = "flow"
)
Variables ¶
This section is empty.
Functions ¶
func GetAppName ¶ added in v1.6.0
func GetAppName() string
func GetAppVerison ¶ added in v1.6.0
func GetAppVerison() string
func GetDefinition ¶
func GetDefinition(flowURI string) (*definition.Definition, bool, error)
func GetPrioritizeExprTask ¶ added in v1.6.5
func GetPrioritizeExprTask() bool
func GetPropagateSkip ¶ added in v1.6.4
func GetPropagateSkip() bool
func GetUserName ¶ added in v1.6.0
func GetUserName() string
func InitDefaultDefLookup ¶
func InitDefaultDefLookup(fManager *FlowManager, rManager *resource.Manager)
func SetResource ¶ added in v1.1.0
Types ¶
type BasicRemoteFlowProvider ¶
type BasicRemoteFlowProvider struct {
// contains filtered or unexported fields
}
func (*BasicRemoteFlowProvider) GetFlow ¶
func (fp *BasicRemoteFlowProvider) GetFlow(flowURI string) (*definition.DefinitionRep, error)
type FlowManager ¶
type FlowManager struct {
// contains filtered or unexported fields
}
func NewFlowManager ¶
func NewFlowManager(flowProvider definition.Provider) *FlowManager
func (*FlowManager) GetFlow ¶
func (fm *FlowManager) GetFlow(uri string) (*definition.Definition, error)
type Patch ¶
type Patch struct {
TaskPatches []*TaskPatch `json:"tasks"` //put in mapper object
// contains filtered or unexported fields
}
Patch contains a set of task patches for a Flow Patch, this can be used to override the default data and mappings of a Flow
func (*Patch) GetInputMapper ¶
GetInputMapper returns the InputMapper for the specified task (referred to by ID)
func (*Patch) GetOutputMapper ¶
GetOutputMapper returns the OutputMapper for the specified task (referred to by ID)
type TaskPatch ¶
type TaskPatch struct {
ID string `json:"id"`
Attributes []*data.Attribute `json:"attributes"`
Input map[string]interface{} `json:"input"`
Output map[string]interface{} `json:"output"`
Attrs map[string]*data.Attribute
// contains filtered or unexported fields
}
TaskPatch contains patching information for a Task, such has attributes, input mappings, output mappings. This is used to override the corresponding settings for a Task in the Process
func (*TaskPatch) InputMapper ¶
InputMapper returns the overriding InputMapper
func (*TaskPatch) OutputMapper ¶
OutputMapper returns the overriding OutputMapper
Click to show internal directories.
Click to hide internal directories.