-
Notifications
You must be signed in to change notification settings - Fork 3
/
workflow.go
75 lines (58 loc) · 2.47 KB
/
workflow.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package cwl
type Workflow struct {
CWLVersion string `json:"cwlVersion,omitempty"`
ID string `json:"id,omitempty"`
Label string `json:"label,omitempty"`
Doc string `json:"doc,omitempty"`
Hints []Requirement `json:"hints,omitempty"`
Requirements []Requirement `json:"requirements,omitempty"`
Inputs []WorkflowInput `json:"inputs,omitempty"`
Outputs []WorkflowOutput `json:"outputs,omitempty"`
Steps []Step `json:"steps,omitempty"`
}
// TODO exactly the same as CommandInput? Changing in v1.1?
type WorkflowInput struct {
ID string `json:"id,omitempty"`
Label string `json:"label,omitempty"`
Doc string `json:"doc,omitempty"`
Streamable bool `json:"streamable,omitempty"`
Default Value `json:"default,omitempty"`
Type []InputType `json:"type,omitempty"`
SecondaryFiles []Expression `json:"secondaryFiles,omitempty"`
Format []Expression `json:"format,omitempty"`
InputBinding *CommandLineBinding `json:"inputBinding,omitempty"`
}
type WorkflowOutput struct {
ID string `json:"id,omitempty"`
Label string `json:"label,omitempty"`
Doc string `json:"doc,omitempty"`
Streamable bool `json:"streamable,omitempty"`
LinkMerge LinkMergeMethod `json:"linkMerge,omitempty"`
Type []OutputType `json:"type,omitempty"`
SecondaryFiles []Expression `json:"secondaryFiles,omitempty"`
Format []Expression `json:"format,omitempty"`
OutputBinding *CommandOutputBinding `json:"outputBinding,omitempty"`
OutputSource []string `json:"outputSource,omitempty"`
}
type Step struct {
ID string `json:"id,omitempty"`
Label string `json:"label,omitempty"`
Doc string `json:"doc,omitempty"`
Hints []Requirement `json:"hints,omitempty"`
Requirements []Requirement `json:"requirements,omitempty"`
In []StepInput `json:"in,omitempty"`
Out []StepOutput `json:"out,omitempty"`
Run Document `json:"run,omitempty"`
Scatter []string `json:"scatter,omitempty"`
ScatterMethod ScatterMethod `json:"scatterMethod,omitempty"`
}
type StepInput struct {
ID string `json:"id,omitempty"`
Source []string `json:"source,omitempty"`
LinkMerge LinkMergeMethod `json:"linkMerge,omitempty"`
Default Value `json:"default,omitempty"`
ValueFrom Expression `json:"valueFrom,omitempty"`
}
type StepOutput struct {
ID string `json:"id,omitempty"`
}