| 3 | package main |
| 4 | |
| 5 | type ServerCmd struct { |
| 6 | HttpAddr string `arg:"--http-addr" help:"address of the server" default:"127.0.0.1:5000"` |
| 7 | HttpsAddr string `arg:"--https-addr" help:"address of the server" default:"0.0.0.0:5001"` |
| 8 | RouterAddr string `arg:"--router-addr" help:"address of the router (p2p)" default:"0.0.0.0:5003"` |
| 9 | PromAddr string `arg:"--prom-addr" help:"address of prometheus metrics endpoint" default:"0.0.0.0:5004"` |
| 10 | PrefetchWorkers int `arg:"--prefetch-workers" help:"number of workers to prefetch content" default:"50"` |
| 11 | |
| 12 | // Mirror configuration. |
| 13 | Hosts []string `arg:"--hosts" help:"list of hosts to mirror"` |
| 14 | AddMirrorConfiguration bool `arg:"--add-mirror-configuration" help:"add mirror configuration to containerd host configuration" default:"false"` |
| 15 | Mirrors []string `arg:"--mirrors" help:"mirror URLs"` |
| 16 | ContainerdHostsConfigPath string `arg:"--containerd-hosts-config-path" help:"containerd hosts configuration path" default:"/etc/containerd/certs.d"` |
| 17 | } |
| 18 | |
| 19 | type Arguments struct { |
| 20 | Server *ServerCmd `arg:"subcommand:run" help:"run the server"` |
nothing calls this directly
no outgoing calls
no test coverage detected