code: func NewRegistryResolver(opt registry.Opt) Resolver {
  	return &registryResolver{
  		opt:   opt,
  		cache: make(map[string]string),
  	}
  }
docs: // NewRegistryResolver returns a resolver that looks up a docker
  // registry to resolve digests