(cs content.Store)
| 149 | } |
| 150 | |
| 151 | func childrenHandler(cs content.Store) c8dimages.HandlerFunc { |
| 152 | ch := c8dimages.ChildrenHandler(cs) |
| 153 | return func(ctx context.Context, desc ocispec.Descriptor) ([]ocispec.Descriptor, error) { |
| 154 | switch desc.MediaType { |
| 155 | case mediaTypePluginConfig: |
| 156 | return nil, nil |
| 157 | default: |
| 158 | return ch(ctx, desc) |
| 159 | } |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | type fetchMeta struct { |
| 164 | blobs []digest.Digest |