MCPcopy
hub / github.com/wagoodman/dive / Fetch

Method Fetch

runtime/run_test.go:49–55  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

47}
48
49func (r *failedBuildResolver) Fetch(id string) (*image.Image, error) {
50 archive, err := docker.TestLoadArchive("../.data/test-docker-image.tar")
51 if err != nil {
52 return nil, err
53 }
54 return archive.ToImage()
55}
56
57func (r *failedBuildResolver) Build(args []string) (*image.Image, error) {
58 return nil, fmt.Errorf("some build failure")

Callers

nothing calls this directly

Calls 2

TestLoadArchiveFunction · 0.92
ToImageMethod · 0.80

Tested by

no test coverage detected