MCPcopy Create free account
hub / github.com/conforma/cli / Head

Method Head

internal/utils/oci/client.go:171–179  ·  view source on GitHub ↗
(ref name.Reference)

Source from the content-addressed store, hash-verified

169}
170
171func (c *defaultClient) Head(ref name.Reference) (*v1.Descriptor, error) {
172 if trace.IsEnabled() {
173 region := trace.StartRegion(c.ctx, "ec:oci-head")
174 defer region.End()
175 trace.Logf(c.ctx, "", "image=%q", ref)
176 }
177
178 return remote.Head(ref, c.opts...)
179}
180
181// gather all attestation uris and digests associated with an image
182func (c *defaultClient) AttestationUri(img string) (string, error) {

Callers

nothing calls this directly

Calls 2

LogfMethod · 0.65
HeadMethod · 0.65

Tested by

no test coverage detected