1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Merged main into branch

This commit is contained in:
Sascha L. Teichmann 2023-01-27 18:25:22 +01:00
commit c8e0804eba
12 changed files with 197 additions and 46 deletions

View file

@ -12,6 +12,7 @@ package main
import (
"fmt"
"log"
"net/http"
"os"
"github.com/csaf-poc/csaf_distribution/util"
@ -25,6 +26,8 @@ type options struct {
Verbose bool `long:"verbose" short:"v" description:"Verbose output"`
Rate *float64 `long:"rate" short:"r" description:"The average upper limit of https operations per second"`
ExtraHeader http.Header `long:"header" short:"H" description:"One or more extra HTTP header fields"`
RemoteValidator string `long:"validator" description:"URL to validate documents remotely" value-name:"URL"`
RemoteValidatorCache string `long:"validatorcache" description:"FILE to cache remote validations" value-name:"FILE"`
RemoteValidatorPresets []string `long:"validatorpreset" description:"One or more presets to validate remotely" default:"mandatory"`