(ref name.Reference, opts *cosign.CheckOpts)
| 121 | } |
| 122 | |
| 123 | func (c *defaultClient) VerifyImageAttestations(ref name.Reference, opts *cosign.CheckOpts) ([]oci.Signature, bool, error) { |
| 124 | if trace.IsEnabled() { |
| 125 | region := trace.StartRegion(c.ctx, "ec:validate-image-attestations") |
| 126 | defer region.End() |
| 127 | trace.Logf(c.ctx, "", "image=%q", ref) |
| 128 | } |
| 129 | |
| 130 | opts.RegistryClientOpts = append(opts.RegistryClientOpts, ociremote.WithRemoteOptions(c.opts...)) |
| 131 | return cosign.VerifyImageAttestations(c.ctx, ref, opts) |
| 132 | } |
| 133 | |
| 134 | func (c *defaultClient) FetchAttestationLayers(ref name.Reference) ([]oci.Signature, error) { |
| 135 | if trace.IsEnabled() { |
nothing calls this directly
no test coverage detected