code: func (c *client) GetManifest(ctx context.Context, ref reference.Named) (manifesttypes.ImageManifest, error) {
  	var result manifesttypes.ImageManifest
  	fetch := func(ctx context.Context, repo distribution.Repository, ref reference.Named) (bool, error) {
  		var err error
  		result, err = fetchManifest(ctx, repo, ref)
  		return result.Ref != nil, err
  	}
  
  	err := c.iterateEndpoints(ctx, ref, fetch)
  	return result, err
  }
docs: // GetManifest returns an ImageManifest for the reference