config

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 License: BSD-3-Clause Imports: 8 Imported by: 3

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 ActionDescriptor struct {
	ID   string `json:"id"`
	Ref  string `json:"ref"`
	Data *struct {
		Flow *struct {
			RootTask         *TaskOld `json:"rootTask"`
			ErrorHandlerTask *TaskOld `json:"errorHandlerTask"`
		} `json:"flow"`
	} `json:"data"`
}

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 Descriptor struct {
	Name        string `json:"name"`
	Version     string `json:"version"`
	Description string `json:"description"`
	Type        string `json:"type"`
}

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 Task

type Task struct {
	Activity *struct {
		Ref string `json:"ref"`
	} `json:"activity"`
}

type TaskOld

type TaskOld struct {
	Ref   string     `json:"activityRef"`
	Tasks []*TaskOld `json:"tasks"`
}

TaskOld is part of the flow structure

type TriggerMetadata

type TriggerMetadata struct {
	Name string `json:"name"`
	Ref  string `json:"ref"`
	Shim string `json:"shim"`
}

Jump to

Keyboard shortcuts

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