mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
271b916a26
This adds a new --json flag to the compliance subcommand, which will output the compliance test results as minified JSON to stdout. Also a few other small additions: - Exit 1 if compliance tests fail - Use random port for test server using freeport library (added) Signed-off-by: Josh Dolitsky <393494+jdolitsky@users.noreply.github.com>
13 lines
165 B
Go
13 lines
165 B
Go
package compliance
|
|
|
|
type Config struct {
|
|
Address string
|
|
Port string
|
|
Version string
|
|
OutputJSON bool
|
|
}
|
|
|
|
func NewConfig() *Config {
|
|
return &Config{}
|
|
}
|