Debian Codegraph @

examples/multirepo/repository/README.md

raw
1 # Example repository used for bootstrapping a multi repository TUF client (TAP 4)
2
3 The following is a helper TUF repository that serves several targets:
4
5 - `map.json` which holds repository mappings and can be used to bootstrap a TUF client supporting multiple repositories
6 - A set of trusted root files for each repository listed in the `map.json` file
7 - The `examples/multirepo/client/client_example.go`(../client/client_example.go) is a client which uses this repository to bootstrap a multi-repository TUF client
8
9 ## Usage
10
11 To regenerate the multi-repo repository,
12 run the following command from inside the `examples/multirepo/repository` directory:
13
14 ```bash
15 go run .
16 ```
17
18 This should generate the necessary metadata files in the `metadata` directory and the `map.json` file.
19 It will also copy the new `root.json` files to the `client` directory.