File: README.md

package info (click to toggle)
golang-github-theupdateframework-go-tuf 2.0.2%2B0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,908 kB
  • sloc: python: 164; makefile: 89; sh: 37
file content (19 lines) | stat: -rw-r--r-- 851 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Example repository used for bootstrapping a multi repository TUF client (TAP 4)

The following is a helper TUF repository that serves several targets:

- `map.json` which holds repository mappings and can be used to bootstrap a TUF client supporting multiple repositories
- A set of trusted root files for each repository listed in the `map.json` file
- 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

## Usage

To regenerate the multi-repo repository,
run the following command from inside the `examples/multirepo/repository` directory:

```bash
go run .
```

This should generate the necessary metadata files in the `metadata` directory and the `map.json` file.
It will also copy the new `root.json` files to the `client` directory.