MCPcopy
hub / github.com/moby/moby / validateFetchedMetadata

Function validateFetchedMetadata

daemon/pkg/plugin/fetch_linux.go:187–195  ·  view source on GitHub ↗
(md fetchMeta)

Source from the content-addressed store, hash-verified

185}
186
187func validateFetchedMetadata(md fetchMeta) error {
188 if md.config == "" {
189 return errors.New("fetched plugin image but plugin config is missing")
190 }
191 if md.manifest == "" {
192 return errors.New("fetched plugin image but manifest is missing")
193 }
194 return nil
195}
196
197// withFetchProgress is a fetch handler which registers a descriptor with a progress
198func withFetchProgress(cs content.Store, out progress.Output, ref reference.Named) c8dimages.HandlerFunc {

Callers 2

UpgradeMethod · 0.85
PullMethod · 0.85

Calls 1

NewMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…