You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,16 +81,20 @@ Process the source, if any:
81
81
The crawler's output is stored for use by the rest of the ClearlyDefined infrastructure -- it is not intended to be used directly by humans. Note that each tool's output is stored separately and the results of processing the component and the component source are also separated.
82
82
83
83
### <aid="more-on-type"></a>More on `type`
84
+
84
85
The `type` in the request object typically corresponds to an internal processor in CD.
85
-
1.`component` is the most generic type. Internally, it is converted to a `package` or `source` request by the component processor.
86
-
2.`package` request is processed by the package processor and is further converted to a request with a specific type (`crate`, `deb`, `gem`, `go`, `maven`, `npm`, `nuget`, `composer`, `pod`, `pypi`). For a `package` typed request, if the mentioned specific binary package type is known, the specific type (e.g. `npm`) can be used (instead of `package`) in the harvest request and skip the conversion step. For example,
86
+
87
+
1.`component` is the most generic type. Internally, it is converted to a `package` or `source` request by the component processor.
88
+
2.`package` request is processed by the package processor and is further converted to a request with a specific type (`crate`, `deb`, `gem`, `go`, `maven`, `npm`, `nuget`, `composer`, `pod`, `pypi`). For a `package` typed request, if the mentioned specific binary package type is known, the specific type (e.g. `npm`) can be used (instead of `package`) in the harvest request and skip the conversion step. For example,
89
+
87
90
```json
88
91
{
89
92
"type": "npm",
90
93
"url": "cd:/npm/npmjs/-/redie/0.3.0"
91
94
}
92
95
```
93
-
3.`source` requests are processed by the source processor, which subsequently dispatches a `clearlydefined` typed request for the supported source types and other requests (one for each scanning tool). These are the more advanced scenarios where the request type and the coordinate type differ.
96
+
97
+
3.`source` requests are processed by the source processor, which subsequently dispatches a `clearlydefined` typed request for the supported source types and other requests (one for each scanning tool). These are the more advanced scenarios where the request type and the coordinate type differ.
94
98
95
99
# Configuration
96
100
@@ -238,7 +242,8 @@ Make sure you started the container with the 5000 port forwarded for this to wor
0 commit comments