code: func UpstreamFromAPI(u api.Upstream) Upstream {
  	return Upstream{
  		DestinationType:      string(u.DestinationType),
  		DestinationNamespace: u.DestinationNamespace,
  		DestinationName:      u.DestinationName,
  		Datacenter:           u.Datacenter,
  		LocalBindAddress:     u.LocalBindAddress,
  		LocalBindPort:        u.LocalBindPort,
  		Config:               u.Config,
  	}
  }
docs: // UpstreamFromAPI is a helper for converting api.Upstream to Upstream.