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

Method Index

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

Source from the content-addressed store, hash-verified

247}
248
249func (c *defaultClient) Index(ref name.Reference) (v1.ImageIndex, error) {
250 if trace.IsEnabled() {
251 region := trace.StartRegion(c.ctx, "ec:oci-fetch-index")
252 defer region.End()
253 trace.Logf(c.ctx, "", "image=%q", ref)
254 }
255
256 index, err := remote.Index(ref, c.opts...)
257 if err != nil {
258 return nil, fmt.Errorf("fetching index: %w", err)
259 }
260
261 return index, nil
262}

Callers

nothing calls this directly

Calls 3

LogfMethod · 0.65
IndexMethod · 0.65
ErrorfMethod · 0.65

Tested by

no test coverage detected