Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions cmd/experimental/fsck/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ import (
)

var (
storageURL = flag.String("storage_url", "", "Base tlog-tiles URL")
N = flag.Uint("N", 1, "The number of workers to use when fetching/comparing resources")
origin = flag.String("origin", "", "Origin of the log to check, if unset, will use the name of the provided public key")
pubKey = flag.String("public_key", "", "Path to a file containing the log's public key")
storageURL = flag.String("storage_url", "", "Base tlog-tiles URL")
bearerToken = flag.String("bearer_token", "", "The bearer token for authorizing HTTP requests to the storage URL, if needed")
N = flag.Uint("N", 1, "The number of workers to use when fetching/comparing resources")
origin = flag.String("origin", "", "Origin of the log to check, if unset, will use the name of the provided public key")
pubKey = flag.String("public_key", "", "Path to a file containing the log's public key")
)

func main() {
Expand All @@ -50,6 +51,9 @@ func main() {
if err != nil {
klog.Exitf("Failed to create HTTP fetcher: %v", err)
}
if *bearerToken != "" {
src.SetAuthorizationHeader(fmt.Sprintf("Bearer %s", *bearerToken))
}
v := verifierFromFlags()
if *origin == "" {
*origin = v.Name()
Expand Down
Loading