clairctl icon indicating copy to clipboard operation
clairctl copied to clipboard

Feature Request: break down reports path

Open jdel opened this issue 7 years ago • 2 comments

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.

jdel avatar Jun 07 '17 09:06 jdel

+1

gauravjos avatar Jun 09 '17 04:06 gauravjos

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.

jdel avatar Jun 09 '17 10:06 jdel