(md fetchMeta)
| 185 | } |
| 186 | |
| 187 | func 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 |
| 198 | func withFetchProgress(cs content.Store, out progress.Output, ref reference.Named) c8dimages.HandlerFunc { |