mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Merge branch 'main' into downloader-client-certs
This commit is contained in:
commit
a7be72b740
2 changed files with 15 additions and 12 deletions
|
|
@ -35,9 +35,8 @@ type config struct {
|
||||||
Rate *float64 `long:"rate" short:"r" description:"The average upper limit of https operations per second (defaults to unlimited)" toml:"rate"`
|
Rate *float64 `long:"rate" short:"r" description:"The average upper limit of https operations per second (defaults to unlimited)" toml:"rate"`
|
||||||
Worker int `long:"worker" short:"w" description:"NUMber of concurrent downloads" value-name:"NUM" toml:"worker"`
|
Worker int `long:"worker" short:"w" description:"NUMber of concurrent downloads" value-name:"NUM" toml:"worker"`
|
||||||
Range *models.TimeRange `long:"timerange" short:"t" description:"RANGE of time from which advisories to download" value-name:"RANGE" toml:"timerange"`
|
Range *models.TimeRange `long:"timerange" short:"t" description:"RANGE of time from which advisories to download" value-name:"RANGE" toml:"timerange"`
|
||||||
Folder string `long:"folder" short:"f" description:"Download into a given FOLDER" value-name:"FOLDER" toml:"folder"`
|
Folder string `long:"folder" short:"f" description:"Download into a given subFOLDER" value-name:"FOLDER" toml:"folder"`
|
||||||
IgnorePattern []string `long:"ignorepattern" short:"i" description:"Dont download files if there URLs match any of the given PATTERNs" value-name:"PATTERN" toml:"ignorepattern"`
|
IgnorePattern []string `long:"ignorepattern" short:"i" description:"Do not download files if their URLs match any of the given PATTERNs" value-name:"PATTERN" toml:"ignorepattern"`
|
||||||
|
|
||||||
ExtraHeader http.Header `long:"header" short:"H" description:"One or more extra HTTP header fields" toml:"header"`
|
ExtraHeader http.Header `long:"header" short:"H" description:"One or more extra HTTP header fields" toml:"header"`
|
||||||
|
|
||||||
RemoteValidator string `long:"validator" description:"URL to validate documents remotely" value-name:"URL" toml:"validator"`
|
RemoteValidator string `long:"validator" description:"URL to validate documents remotely" value-name:"URL" toml:"validator"`
|
||||||
|
|
|
||||||
|
|
@ -15,11 +15,12 @@ Application Options:
|
||||||
--client-passphrase=PASSPHRASE Optional passphrase for the client certificate
|
--client-passphrase=PASSPHRASE Optional passphrase for the client certificate
|
||||||
--version Display version of the binary
|
--version Display version of the binary
|
||||||
-v, --verbose Verbose output
|
-v, --verbose Verbose output
|
||||||
-r, --rate= The average upper limit of https operations per second (defaults to unlimited)
|
-r, --rate= The average upper limit of https operations per second (defaults to
|
||||||
|
unlimited)
|
||||||
-w, --worker=NUM NUMber of concurrent downloads (default: 2)
|
-w, --worker=NUM NUMber of concurrent downloads (default: 2)
|
||||||
-t, --timerange=RANGE RANGE of time from which advisories to download
|
-t, --timerange=RANGE RANGE of time from which advisories to download
|
||||||
-f, --folder=FOLDER Download into a given FOLDER
|
-f, --folder=FOLDER Download into a given subFOLDER
|
||||||
-i, --ignorepattern=PATTERN Dont download files if there URLs match any of the given PATTERNs
|
-i, --ignorepattern=PATTERN Do not download files if their URLs match any of the given PATTERNs
|
||||||
-H, --header= One or more extra HTTP header fields
|
-H, --header= One or more extra HTTP header fields
|
||||||
--validator=URL URL to validate documents remotely
|
--validator=URL URL to validate documents remotely
|
||||||
--validatorcache=FILE FILE to cache remote validations
|
--validatorcache=FILE FILE to cache remote validations
|
||||||
|
|
@ -97,13 +98,16 @@ into a given intervall. There are three possible notations:
|
||||||
|
|
||||||
All interval boundaries are inclusive.
|
All interval boundaries are inclusive.
|
||||||
|
|
||||||
If the `folder` option is given the advisories are stored in this folder.
|
If the `folder` option is given all the advisories are stored in a subfolder
|
||||||
If it is omitted (by default) the advisories are stored in folder name by the
|
of this name. Otherwise the advisories are each stored in a folder named
|
||||||
year they are from.
|
by the year they are from.
|
||||||
|
|
||||||
You can ignore certain advisories while downloading by specifying a list
|
You can ignore certain advisories while downloading by specifying a list
|
||||||
of regular expressions to match their URLs by using the `ignorepattern` option.
|
of regular expressions to match their URLs by using the `ignorepattern`
|
||||||
E.g. `-i='.*white.*' -i='*.red.*'` will ignore files which URLs contain the sub strings **white** or **red**.
|
option.
|
||||||
|
|
||||||
|
E.g. `-i='.*white.*' -i='*.red.*'` will ignore files which URLs contain
|
||||||
|
the sub strings **white** or **red**.
|
||||||
In the config file this has to be noted as:
|
In the config file this has to be noted as:
|
||||||
```
|
```
|
||||||
ignorepattern = [".*white.*", ".*red.*"]
|
ignorepattern = [".*white.*", ".*red.*"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue