support

package
v0.5.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2023 License: BSD-3-Clause Imports: 15 Imported by: 35

Documentation

Index

Constants

View Source
const (
	RESTYPE_FLOW = "flow"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicRemoteFlowProvider added in v0.5.2

type BasicRemoteFlowProvider struct {
}

func (*BasicRemoteFlowProvider) GetFlow added in v0.5.2

type FlowEntry

type FlowEntry struct {
	// contains filtered or unexported fields
}

FlowEntry will contain either a compressed flow, an uncompressed flow or a flow uri

type FlowManager

type FlowManager struct {
	// contains filtered or unexported fields
}

func GetFlowManager added in v0.5.2

func GetFlowManager() *FlowManager

func NewFlowManager

func NewFlowManager(flowProvider definition.Provider) *FlowManager

func (*FlowManager) GetFlow

func (fm *FlowManager) GetFlow(uri string) (*definition.Definition, error)

func (*FlowManager) GetResource added in v0.5.2

func (fm *FlowManager) GetResource(id string) interface{}

func (*FlowManager) LoadResource added in v0.5.2

func (fm *FlowManager) LoadResource(config *resource.Config) error

type FlowManagerOld added in v0.5.2

type FlowManagerOld struct {
	// contains filtered or unexported fields
}

FlowManagerOld is a simple manager for flows

func NewFlowManagerOld added in v0.5.2

func NewFlowManagerOld() *FlowManagerOld

NewFlowManager creates a new FlowManagerOld

func (*FlowManagerOld) AddCompressed added in v0.5.2

func (mgr *FlowManagerOld) AddCompressed(id string, newFlow string) error

AddCompressed adds a compressed flow to the map of flow entries

func (*FlowManagerOld) AddURI added in v0.5.2

func (mgr *FlowManagerOld) AddURI(id string, newUri string) error

AddURI adds a uri flow to the map of flow entries

func (*FlowManagerOld) AddUncompressed added in v0.5.2

func (mgr *FlowManagerOld) AddUncompressed(id string, newFlow []byte) error

TODO add schema validation for flow AddUncompressed adds an uncompressed flow to the map of flow entries

func (*FlowManagerOld) GetFlow added in v0.5.2

func (mgr *FlowManagerOld) GetFlow(id string) (*definition.DefinitionRep, error)

GetFlow gets the specified embedded flow

type Interceptor

type Interceptor struct {
	TaskInterceptors []*TaskInterceptor `json:"tasks"`
	// contains filtered or unexported fields
}

Interceptor contains a set of task interceptor, this can be used to override runtime data of an instance of the corresponding Flow. This can be used to modify runtime execution of a flow or in test/debug for implementing mocks for tasks

func (*Interceptor) GetTaskInterceptor

func (pi *Interceptor) GetTaskInterceptor(taskID string) *TaskInterceptor

GetTaskInterceptor get the TaskInterceptor for the specified task (referred to by ID)

func (*Interceptor) Init

func (pi *Interceptor) Init()

Init initializes the FlowInterceptor, usually called after deserialization

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

func (pp *Patch) GetInputMapper(taskID string) data.Mapper

GetInputMapper returns the InputMapper for the specified task (referred to by ID)

func (*Patch) GetOutputMapper

func (pp *Patch) GetOutputMapper(taskID string) data.Mapper

GetOutputMapper returns the OutputMapper for the specified task (referred to by ID)

func (*Patch) GetPatch

func (pp *Patch) GetPatch(taskID string) *TaskPatch

GetPatch returns the Task Patch for the specified task (referred to by ID)

func (*Patch) Init

func (pp *Patch) Init()

Init initializes the FlowPatch, usually called after deserialization

type TaskInterceptor

type TaskInterceptor struct {
	ID      string            `json:"id"`
	Skip    bool              `json:"skip,omitempty"`
	Inputs  []*data.Attribute `json:"inputs,omitempty"`
	Outputs []*data.Attribute `json:"outputs,omitempty"`
}

TaskInterceptor contains instance override information for a Task, such has attributes. Also, a 'Skip' flag can be enabled to inform the runtime that the task should not execute.

type TaskPatch

type TaskPatch struct {
	ID             string             `json:"id"`
	Attributes     []*data.Attribute  `json:"attributes"`
	InputMappings  []*data.MappingDef `json:"inputMappings"` //put in mapper object
	OutputMappings []*data.MappingDef `json:"ouputMappings"` //put in mapper object

	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

func (tp *TaskPatch) InputMapper() data.Mapper

InputMapper returns the overriding InputMapper

func (*TaskPatch) OutputMapper

func (tp *TaskPatch) OutputMapper() data.Mapper

OutputMapper returns the overriding OutputMapper

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL