(ref name.Reference, opts *cosign.CheckOpts)
| 110 | } |
| 111 | |
| 112 | func (c *defaultClient) VerifyImageSignatures(ref name.Reference, opts *cosign.CheckOpts) ([]oci.Signature, bool, error) { |
| 113 | if trace.IsEnabled() { |
| 114 | region := trace.StartRegion(c.ctx, "ec:validate-image-signatures") |
| 115 | defer region.End() |
| 116 | trace.Logf(c.ctx, "", "image=%q", ref) |
| 117 | } |
| 118 | |
| 119 | opts.RegistryClientOpts = append(opts.RegistryClientOpts, ociremote.WithRemoteOptions(c.opts...)) |
| 120 | return cosign.VerifyImageSignatures(c.ctx, ref, opts) |
| 121 | } |
| 122 | |
| 123 | func (c *defaultClient) VerifyImageAttestations(ref name.Reference, opts *cosign.CheckOpts) ([]oci.Signature, bool, error) { |
| 124 | if trace.IsEnabled() { |
nothing calls this directly
no test coverage detected