MCPcopy
hub / github.com/slimtoolkit/slim / NewRegistryCommand

Function NewRegistryCommand

pkg/report/command_report.go:488–500  ·  view source on GitHub ↗

NewRegistryCommand creates a new 'registry' command report

(reportLocation string, containerized bool)

Source from the content-addressed store, hash-verified

486
487// NewRegistryCommand creates a new 'registry' command report
488func 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
503func NewVulnerabilityCommand(reportLocation string, containerized bool) *VulnerabilityCommand {

Callers 5

OnPushCommandFunction · 0.92
OnServerCommandFunction · 0.92
OnPullCommandFunction · 0.92
OnCopyCommandFunction · 0.92

Calls 1

initMethod · 0.45

Tested by

no test coverage detected