NewRegistryCommand creates a new 'registry' command report
(reportLocation string, containerized bool)
| 486 | |
| 487 | // NewRegistryCommand creates a new 'registry' command report |
| 488 | func NewRegistryCommand(reportLocation string, containerized bool) *RegistryCommand { |
| 489 | cmd := &RegistryCommand{ |
| 490 | Command: Command{ |
| 491 | reportLocation: reportLocation, |
| 492 | Version: OVRegistryCommand, //registry command 'results' version (report and artifacts) |
| 493 | Type: command.Registry, |
| 494 | State: command.StateUnknown, |
| 495 | }, |
| 496 | } |
| 497 | |
| 498 | cmd.Command.init(containerized) |
| 499 | return cmd |
| 500 | } |
| 501 | |
| 502 | // NewVulnerabilityCommand creates a new 'registry' command report |
| 503 | func NewVulnerabilityCommand(reportLocation string, containerized bool) *VulnerabilityCommand { |
no test coverage detected