go fix
Signed-off-by: Wei Fu <fuweid89@gmail.com>
Add support for an optional `default` registry hosts config, should no other hosts config match. Signed-off-by: Jess <jess@ros.io>
go fmt
The new `go fmt` adds `//go:build` lines (https://golang.org/doc/go1.17#tools). Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Add configuration toml file format and configuration function to configure registry hosts from a directory based configuration. Compatible with Docker registry certificate loading. Signed-off-by: Derek McGowan <derek@mcgstyle.net>