clairctl
clairctl copied to clipboard
Feature Request: break down reports path
Is it possible to amend https://github.com/jgsqware/clairctl/blob/e0959c5c82070bbe7c855872ab6bcc4970b67748/cmd/report.go#L73 in order to generate paths like this ?
<reports path>/<report format>/<repo name>/<image name>/<image tag>.html
I personally scan 100+ images on my registry and serve them with nginx. Having a breakdown by registry/image/tag would keep things well organized.
+1
Just had a quick look, technically, we just need to comment (or skip depending on a config value for example) https://github.com/jgsqware/clairctl/blob/e0959c5c82070bbe7c855872ab6bcc4970b67748/cmd/report.go#L35 and amend the path creation here https://github.com/jgsqware/clairctl/blob/e0959c5c82070bbe7c855872ab6bcc4970b67748/cmd/report.go#L74
Unfortunately, I've never written any golang yet. I'll give it a shot if I can spare some time this weekend.