GetManifest returns an ImageManifest for the reference
(ctx context.Context, ref reference.Named)
| 160 | |
| 161 | // GetManifest returns an ImageManifest for the reference |
| 162 | func (c *client) GetManifest(ctx context.Context, ref reference.Named) (manifesttypes.ImageManifest, error) { |
| 163 | var result manifesttypes.ImageManifest |
| 164 | fetch := func(ctx context.Context, repo distribution.Repository, ref reference.Named) (bool, error) { |
| 165 | var err error |
| 166 | result, err = fetchManifest(ctx, repo, ref) |
| 167 | return result.Ref != nil, err |
| 168 | } |
| 169 | |
| 170 | err := c.iterateEndpoints(ctx, ref, fetch) |
| 171 | return result, err |
| 172 | } |
| 173 | |
| 174 | // GetManifestList returns a list of ImageManifest for the reference |
| 175 | func (c *client) GetManifestList(ctx context.Context, ref reference.Named) ([]manifesttypes.ImageManifest, error) { |
nothing calls this directly
no test coverage detected