mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Add category support for aggregator
This commit is contained in:
parent
198e5b8897
commit
7bafb210cf
4 changed files with 83 additions and 8 deletions
|
|
@ -36,8 +36,9 @@ type provider struct {
|
|||
Name string `toml:"name"`
|
||||
Domain string `toml:"domain"`
|
||||
// Rate gives the provider specific rate limiting (see overall Rate).
|
||||
Rate *float64 `toml:"rate"`
|
||||
Insecure *bool `toml:"insecure"`
|
||||
Rate *float64 `toml:"rate"`
|
||||
Insecure *bool `toml:"insecure"`
|
||||
Categories *[]string `toml:"categories"`
|
||||
}
|
||||
|
||||
type config struct {
|
||||
|
|
@ -50,6 +51,7 @@ type config struct {
|
|||
// Rate gives the average upper limit of https operations per second.
|
||||
Rate *float64 `toml:"rate"`
|
||||
Insecure *bool `toml:"insecure"`
|
||||
Categories *[]string `toml:"categories"`
|
||||
Aggregator csaf.AggregatorInfo `toml:"aggregator"`
|
||||
Providers []*provider `toml:"providers"`
|
||||
OpenPGPPrivateKey string `toml:"openpgp_private_key"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue