You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

35 lines
1.7 KiB

  1. // Copyright 2018 Google LLC
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package main
  5. // replacementPackage is a map from an API package name to the
  6. // import path of the package that replaces it. If an API appears
  7. // in this map, its package doc comment will note that it is deprecated
  8. // and point to the replacement.
  9. // TODO(jba): consider automating this by looking at the structure of the gocloud repo.
  10. var replacementPackage = map[string]string{
  11. "bigquery": "cloud.google.com/go/bigquery",
  12. "cloudkms": "cloud.google.com/go/kms/apiv1",
  13. "cloudtasks": "cloud.google.com/go/cloudtasks/apiv2beta2",
  14. "dataproc": "cloud.google.com/go/dataproc/apiv1",
  15. "datastore": "cloud.google.com/go/datastore",
  16. "dialogflow": "cloud.google.com/go/dialogflow/apiv2",
  17. "dlp": "cloud.google.com/go/dlp/apiv2",
  18. "firestore": "cloud.google.com/go/firestore",
  19. "language": "cloud.google.com/go/language/apiv1",
  20. "logging": "cloud.google.com/go/logging",
  21. "monitoring": "cloud.google.com/go/monitoring/apiv3",
  22. "oslogin": "cloud.google.com/go/oslogin/apiv1",
  23. "pubsub": "cloud.google.com/go/pubsub",
  24. "redis": "cloud.google.com/go/redis/apiv1",
  25. "spanner": "cloud.google.com/go/spanner",
  26. "speech": "cloud.google.com/go/speech/apiv1",
  27. "texttospeech": "cloud.google.com/go/texttospeech/apiv1",
  28. "translate": "cloud.google.com/go/translate",
  29. "videointelligence": "cloud.google.com/go/videointelligence/apiv1",
  30. "vision": "cloud.google.com/go/vision/apiv1",
  31. "storage": "cloud.google.com/go/storage",
  32. }