Documentation
¶
Overview ¶
Package project package project defines project model
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct {
ID string `json:"SessionID,omitempty"`
Location string `json:"LOCATION,omitempty"`
Description string `json:"DESCRIPTION,omitempty"`
WorkflowID string `json:"WORKFLOW_ID,omitempty"`
IsDir bool `json:"IS_DIR,omitempty"`
Template string `json:"TEMPLATE,omitempty"`
InstanceIndex int `json:"INSTANCE_INDEX,omitempty"`
InstanceTag string `json:"INSTANCE_TAG,omitempty"`
Position int `json:"POSITION,omitempty"`
Source []byte `json:"SOURCE,omitempty"`
Format string `json:"FORMAT,omitempty"`
Codec string `json:"CODEC,omitempty"`
}
Asset represents a workflow asset
type Bundle ¶
type Bundle struct {
Project *Project
*Workflow
SubWorkflows []*Bundle
Templates map[string][]*Bundle
// contains filtered or unexported fields
}
Bundle represents a project bundle
func (*Bundle) AppendAsset ¶
func (*Bundle) AppendTask ¶
func (*Bundle) LookupWorkflow ¶
type Extract ¶
type Extract struct {
RegExpr string `description:"regular expression with oval bracket to extract match pattern" yaml:",omitempty" ` //regular expression
Key string `description:"state key to store a match" yaml:",omitempty"` //state key to store a match
Reset bool `description:"reset the key in the context before evaluating this data extraction rule" yaml:",omitempty"` //reset the key in the context before evaluating this data extraction rule
Required bool `description:"require that at least one pattern match is returned" yaml:",omitempty"` //require that at least one pattern match is returned
}
Extract represents a data extraction rule
type Project ¶
type Project struct {
ID string `json:"SessionID,omitempty"`
Name string `json:"NAME,omitempty"`
Description string `json:"DESCRIPTION,omitempty"`
}
Project represents a project
type Revision ¶
type Revision struct {
//SessionID represents revision ID
ID string
//WorkflowID represents workflow ID
Principal string
//Comment represents revision comment
Comment string
//Diff represents revision diff
Diff string
}
Revision represents a workflow revision
type Task ¶
type Task struct {
ID string `json:"SessionID,omitempty" yaml:"-"`
WorkflowID string `json:"WORKFLOW_ID,omitempty" yaml:"-"`
ParentId string `json:"PARENT_ID,omitempty" yaml:"-"`
Position int `json:"POSITION,omitempty" yaml:"-"`
Tag string `json:"TAG,omitempty" yaml:"-"`
Init string `jsonx:"inline" json:"INIT,omitempty" yaml:"-"`
Post string `jsonx:"inline" json:"POST,omitempty" yaml:"-"`
Description string `json:"DESCRIPTION,omitempty" yaml:",omitempty"`
When string `sqlx:"WHEN_EXPR" json:"WHEN_EXPR,omitempty" yaml:"when,omitempty"`
Exit string `sqlx:"EXIT_EXPR" json:"EXIT_EXPR,omitempty" yaml:"exit,omitempty"`
OnError string `json:"ON_ERROR,omitempty" yaml:"onError,omitempty"`
Deferred string `json:"DEFERRED,omitempty" yaml:",omitempty"`
Service string `json:"SERVICE,omitempty" yaml:",omitempty"`
Action string `json:"ACTION,omitempty" yaml:",omitempty"`
Input string `json:"INPUT,omitempty" yaml:"-"`
InputURI string `json:"INPUT_URI,omitempty" yaml:"uri,omitempty"`
Async bool `json:"ASYNC,omitempty" yaml:",omitempty"`
Skip string `sqlx:"SKIP_EXPR" json:"SKIP_EXPR,omitempty" yaml:",omitempty"`
Fail bool `json:"FAIL,omitempty" yaml:",omitempty"`
IsTemplate bool `json:"IS_TEMPLATE,omitempty" yaml:"-"`
SubPath string `json:"SUB_PATH,omitempty" yaml:",omitempty"`
Range string `sqlx:"RANGE_EXPR" json:"RANGE_EXPR,omitempty" yaml:",omitempty"`
Data string `jsonx:"inline" json:"DATA,omitempty" yaml:"-"`
Variables string `jsonx:"inline" json:"VARIABLES,omitempty" yaml:"-"`
Extracts Extracts `jsonx:"inline" json:"EXTRACTS,omitempty" yaml:",omitempty"`
SleepTimeMs int `json:"SLEEP_TIME_MS,omitempty" yaml:"sleepTimeMs,omitempty"`
ThinkTimeMs int `json:"THINK_TIME_MS,omitempty" yaml:"thinkTimeMs,omitempty"`
Logging *bool `json:"LOGGING,omitempty" yaml:",omitempty"`
Repeat int `sqlx:"REPEAT_RUN" json:"REPEAT_RUN,omitempty" yaml:",omitempty"`
InstanceIndex int `json:"INSTANCE_INDEX,omitempty" yaml:"-"`
InstanceTag string `json:"INSTANCE_TAG,omitempty" yaml:"-"`
}
Task represents a task
func (*Task) IsWorkflowRun ¶
func (*Task) MarshalYAML ¶
MarshalYAML marshals task to yaml
type Workflow ¶
type Workflow struct {
ID string `json:"SessionID,omitempty"`
Position int `json:"POSITION,omitempty"`
ParentID string `json:"PARENT_ID,omitempty"`
Revision string `json:"REVISION,omitempty"`
URI string `json:"URI,omitempty"`
ProjectID string `json:"PROJECT_ID,omitempty"`
Name string `json:"NAME,omitempty"`
Description string `json:"DESCRIPTION,omitempty"`
Init string `jsonx:"inline" json:"INIT,omitempty"`
Post string `jsonx:"inline" json:"POST,omitempty"`
Steps []*Task `json:"-"`
Assets []*Asset `json:"-"`
Workflows []*Workflow `json:"-"`
Template string `json:"TEMPLATE,omitempty"`
InstanceIndex int `json:"INSTANCE_INDEX,omitempty"`
InstanceTag string `json:"INSTANCE_TAG,omitempty"`
}
func (*Workflow) MarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.