From 92952d83c5327f4ff2d0da42ea99fdb4963088e3 Mon Sep 17 00:00:00 2001 From: Dennis Date: Wed, 12 Apr 2023 17:44:17 +0200 Subject: [PATCH] breaking(objectstore): rename `object-store` command to `kv-store` (#904) * rename object store to kv store * update to go-fastly v8 * rename to ValidateSignature to VerifySignature * fix import * Update pkg/app/commands.go Co-authored-by: Mark McDonnell * fix order --------- Co-authored-by: Mark McDonnell --- go.mod | 2 +- go.sum | 4 +- pkg/api/interface.go | 18 +- pkg/app/commands.go | 40 ++--- pkg/app/run.go | 2 +- pkg/app/run_test.go | 4 +- pkg/cmd/cmd.go | 2 +- pkg/cmd/flags.go | 2 +- pkg/cmd/flags_test.go | 2 +- pkg/commands/acl/acl_test.go | 2 +- pkg/commands/acl/create.go | 2 +- pkg/commands/acl/delete.go | 2 +- pkg/commands/acl/describe.go | 2 +- pkg/commands/acl/list.go | 2 +- pkg/commands/acl/update.go | 2 +- pkg/commands/aclentry/aclentry_test.go | 2 +- pkg/commands/aclentry/create.go | 2 +- pkg/commands/aclentry/delete.go | 2 +- pkg/commands/aclentry/describe.go | 2 +- pkg/commands/aclentry/list.go | 2 +- pkg/commands/aclentry/update.go | 2 +- pkg/commands/authtoken/authtoken_test.go | 2 +- pkg/commands/authtoken/create.go | 2 +- pkg/commands/authtoken/delete.go | 2 +- pkg/commands/authtoken/describe.go | 2 +- pkg/commands/authtoken/list.go | 2 +- pkg/commands/backend/backend_test.go | 2 +- pkg/commands/backend/create.go | 2 +- pkg/commands/backend/delete.go | 2 +- pkg/commands/backend/describe.go | 2 +- pkg/commands/backend/list.go | 2 +- pkg/commands/backend/update.go | 2 +- pkg/commands/compute/compute_mocks_test.go | 8 +- pkg/commands/compute/deploy.go | 34 ++-- pkg/commands/compute/deploy_test.go | 162 +++++++++--------- pkg/commands/compute/setup/backend.go | 2 +- pkg/commands/compute/setup/dictionary.go | 2 +- pkg/commands/compute/setup/domain.go | 2 +- .../setup/{object_store.go => kv_store.go} | 68 ++++---- .../testdata/init/fastly-viceroy-update.toml | 6 +- pkg/commands/compute/update.go | 2 +- pkg/commands/configstore/configstore_test.go | 2 +- pkg/commands/configstore/create.go | 2 +- pkg/commands/configstore/delete.go | 2 +- pkg/commands/configstore/describe.go | 2 +- pkg/commands/configstore/helper_test.go | 2 +- pkg/commands/configstore/list_services.go | 2 +- pkg/commands/configstore/update.go | 2 +- .../configstoreentry/configstoreentry_test.go | 2 +- pkg/commands/configstoreentry/create.go | 2 +- pkg/commands/configstoreentry/delete.go | 2 +- pkg/commands/configstoreentry/describe.go | 2 +- pkg/commands/configstoreentry/list.go | 2 +- pkg/commands/configstoreentry/update.go | 2 +- pkg/commands/dictionary/create.go | 2 +- pkg/commands/dictionary/delete.go | 2 +- pkg/commands/dictionary/describe.go | 2 +- pkg/commands/dictionary/dictionary_test.go | 2 +- pkg/commands/dictionary/list.go | 2 +- pkg/commands/dictionary/update.go | 2 +- pkg/commands/dictionaryentry/create.go | 2 +- pkg/commands/dictionaryentry/delete.go | 2 +- pkg/commands/dictionaryentry/describe.go | 2 +- .../dictionaryentry/dictionaryitem_test.go | 2 +- pkg/commands/dictionaryentry/list.go | 2 +- pkg/commands/dictionaryentry/update.go | 2 +- pkg/commands/domain/create.go | 2 +- pkg/commands/domain/delete.go | 2 +- pkg/commands/domain/describe.go | 2 +- pkg/commands/domain/domain_test.go | 2 +- pkg/commands/domain/list.go | 2 +- pkg/commands/domain/update.go | 2 +- pkg/commands/domain/validate.go | 2 +- pkg/commands/healthcheck/create.go | 2 +- pkg/commands/healthcheck/delete.go | 2 +- pkg/commands/healthcheck/describe.go | 2 +- pkg/commands/healthcheck/healthcheck_test.go | 2 +- pkg/commands/healthcheck/list.go | 2 +- pkg/commands/healthcheck/update.go | 2 +- pkg/commands/ip/ip_test.go | 2 +- .../{objectstore => kvstore}/create.go | 16 +- .../{objectstore => kvstore}/delete.go | 14 +- .../{objectstore => kvstore}/describe.go | 14 +- pkg/commands/kvstore/doc.go | 3 + .../{objectstore => kvstore}/insert.go | 16 +- pkg/commands/{objectstore => kvstore}/list.go | 14 +- pkg/commands/{objectstore => kvstore}/root.go | 4 +- .../create.go | 12 +- .../delete.go | 10 +- .../describe.go | 12 +- pkg/commands/kvstoreentry/doc.go | 3 + .../list.go | 12 +- .../root.go | 4 +- .../azureblob/azureblob_integration_test.go | 2 +- .../logging/azureblob/azureblob_test.go | 2 +- pkg/commands/logging/azureblob/create.go | 2 +- pkg/commands/logging/azureblob/delete.go | 2 +- pkg/commands/logging/azureblob/describe.go | 2 +- pkg/commands/logging/azureblob/list.go | 2 +- pkg/commands/logging/azureblob/update.go | 2 +- .../bigquery/bigquery_integration_test.go | 2 +- .../logging/bigquery/bigquery_test.go | 2 +- pkg/commands/logging/bigquery/create.go | 2 +- pkg/commands/logging/bigquery/delete.go | 2 +- pkg/commands/logging/bigquery/describe.go | 2 +- pkg/commands/logging/bigquery/list.go | 2 +- pkg/commands/logging/bigquery/update.go | 2 +- .../cloudfiles/cloudfiles_integration_test.go | 2 +- .../logging/cloudfiles/cloudfiles_test.go | 2 +- pkg/commands/logging/cloudfiles/create.go | 2 +- pkg/commands/logging/cloudfiles/delete.go | 2 +- pkg/commands/logging/cloudfiles/describe.go | 2 +- pkg/commands/logging/cloudfiles/list.go | 2 +- pkg/commands/logging/cloudfiles/update.go | 2 +- pkg/commands/logging/datadog/create.go | 2 +- .../datadog/datadog_integration_test.go | 2 +- pkg/commands/logging/datadog/datadog_test.go | 2 +- pkg/commands/logging/datadog/delete.go | 2 +- pkg/commands/logging/datadog/describe.go | 2 +- pkg/commands/logging/datadog/list.go | 2 +- pkg/commands/logging/datadog/update.go | 2 +- pkg/commands/logging/digitalocean/create.go | 2 +- pkg/commands/logging/digitalocean/delete.go | 2 +- pkg/commands/logging/digitalocean/describe.go | 2 +- .../digitalocean_integration_test.go | 2 +- .../logging/digitalocean/digitalocean_test.go | 2 +- pkg/commands/logging/digitalocean/list.go | 2 +- pkg/commands/logging/digitalocean/update.go | 2 +- pkg/commands/logging/elasticsearch/create.go | 2 +- pkg/commands/logging/elasticsearch/delete.go | 2 +- .../logging/elasticsearch/describe.go | 2 +- .../elasticsearch_integration_test.go | 2 +- .../elasticsearch/elasticsearch_test.go | 2 +- pkg/commands/logging/elasticsearch/list.go | 2 +- pkg/commands/logging/elasticsearch/update.go | 2 +- pkg/commands/logging/ftp/create.go | 2 +- pkg/commands/logging/ftp/delete.go | 2 +- pkg/commands/logging/ftp/describe.go | 2 +- .../logging/ftp/ftp_integration_test.go | 2 +- pkg/commands/logging/ftp/ftp_test.go | 2 +- pkg/commands/logging/ftp/list.go | 2 +- pkg/commands/logging/ftp/update.go | 2 +- pkg/commands/logging/gcs/create.go | 2 +- pkg/commands/logging/gcs/delete.go | 2 +- pkg/commands/logging/gcs/describe.go | 2 +- .../logging/gcs/gcs_integration_test.go | 2 +- pkg/commands/logging/gcs/gcs_test.go | 2 +- pkg/commands/logging/gcs/list.go | 2 +- pkg/commands/logging/gcs/update.go | 2 +- pkg/commands/logging/googlepubsub/create.go | 2 +- pkg/commands/logging/googlepubsub/delete.go | 2 +- pkg/commands/logging/googlepubsub/describe.go | 2 +- .../googlepubsub_integration_test.go | 2 +- .../logging/googlepubsub/googlepubsub_test.go | 2 +- pkg/commands/logging/googlepubsub/list.go | 2 +- pkg/commands/logging/googlepubsub/update.go | 2 +- pkg/commands/logging/heroku/create.go | 2 +- pkg/commands/logging/heroku/delete.go | 2 +- pkg/commands/logging/heroku/describe.go | 2 +- .../logging/heroku/heroku_integration_test.go | 2 +- pkg/commands/logging/heroku/heroku_test.go | 2 +- pkg/commands/logging/heroku/list.go | 2 +- pkg/commands/logging/heroku/update.go | 2 +- pkg/commands/logging/honeycomb/create.go | 2 +- pkg/commands/logging/honeycomb/delete.go | 2 +- pkg/commands/logging/honeycomb/describe.go | 2 +- .../honeycomb/honeycomb_integration_test.go | 2 +- .../logging/honeycomb/honeycomb_test.go | 2 +- pkg/commands/logging/honeycomb/list.go | 2 +- pkg/commands/logging/honeycomb/update.go | 2 +- pkg/commands/logging/https/create.go | 2 +- pkg/commands/logging/https/delete.go | 2 +- pkg/commands/logging/https/describe.go | 2 +- .../logging/https/https_integration_test.go | 2 +- pkg/commands/logging/https/https_test.go | 2 +- pkg/commands/logging/https/list.go | 2 +- pkg/commands/logging/https/update.go | 2 +- pkg/commands/logging/kafka/create.go | 2 +- pkg/commands/logging/kafka/delete.go | 2 +- pkg/commands/logging/kafka/describe.go | 2 +- .../logging/kafka/kafka_integration_test.go | 2 +- pkg/commands/logging/kafka/kafka_test.go | 2 +- pkg/commands/logging/kafka/list.go | 2 +- pkg/commands/logging/kafka/update.go | 2 +- pkg/commands/logging/kinesis/create.go | 2 +- pkg/commands/logging/kinesis/delete.go | 2 +- pkg/commands/logging/kinesis/describe.go | 2 +- .../kinesis/kinesis_integration_test.go | 2 +- pkg/commands/logging/kinesis/kinesis_test.go | 2 +- pkg/commands/logging/kinesis/list.go | 2 +- pkg/commands/logging/kinesis/update.go | 2 +- pkg/commands/logging/loggly/create.go | 2 +- pkg/commands/logging/loggly/delete.go | 2 +- pkg/commands/logging/loggly/describe.go | 2 +- pkg/commands/logging/loggly/list.go | 2 +- .../logging/loggly/loggly_integration_test.go | 2 +- pkg/commands/logging/loggly/loggly_test.go | 2 +- pkg/commands/logging/loggly/update.go | 2 +- pkg/commands/logging/logshuttle/create.go | 2 +- pkg/commands/logging/logshuttle/delete.go | 2 +- pkg/commands/logging/logshuttle/describe.go | 2 +- pkg/commands/logging/logshuttle/list.go | 2 +- .../logshuttle/logshuttle_integration_test.go | 2 +- .../logging/logshuttle/logshuttle_test.go | 2 +- pkg/commands/logging/logshuttle/update.go | 2 +- pkg/commands/logging/newrelic/create.go | 2 +- pkg/commands/logging/newrelic/delete.go | 2 +- pkg/commands/logging/newrelic/describe.go | 2 +- pkg/commands/logging/newrelic/list.go | 2 +- .../logging/newrelic/newrelic_test.go | 2 +- pkg/commands/logging/newrelic/update.go | 2 +- pkg/commands/logging/openstack/create.go | 2 +- pkg/commands/logging/openstack/delete.go | 2 +- pkg/commands/logging/openstack/describe.go | 2 +- pkg/commands/logging/openstack/list.go | 2 +- .../openstack/openstack_integration_test.go | 2 +- .../logging/openstack/openstack_test.go | 2 +- pkg/commands/logging/openstack/update.go | 2 +- pkg/commands/logging/papertrail/create.go | 2 +- pkg/commands/logging/papertrail/delete.go | 2 +- pkg/commands/logging/papertrail/describe.go | 2 +- pkg/commands/logging/papertrail/list.go | 2 +- .../papertrail/papertrail_integration_test.go | 2 +- .../logging/papertrail/papertrail_test.go | 2 +- pkg/commands/logging/papertrail/update.go | 2 +- pkg/commands/logging/s3/create.go | 2 +- pkg/commands/logging/s3/delete.go | 2 +- pkg/commands/logging/s3/describe.go | 2 +- pkg/commands/logging/s3/list.go | 2 +- .../logging/s3/s3_integration_test.go | 2 +- pkg/commands/logging/s3/s3_test.go | 2 +- pkg/commands/logging/s3/update.go | 2 +- pkg/commands/logging/scalyr/create.go | 2 +- pkg/commands/logging/scalyr/delete.go | 2 +- pkg/commands/logging/scalyr/describe.go | 2 +- pkg/commands/logging/scalyr/list.go | 2 +- .../logging/scalyr/scalyr_integration_test.go | 2 +- pkg/commands/logging/scalyr/scalyr_test.go | 2 +- pkg/commands/logging/scalyr/update.go | 2 +- pkg/commands/logging/sftp/create.go | 2 +- pkg/commands/logging/sftp/delete.go | 2 +- pkg/commands/logging/sftp/describe.go | 2 +- pkg/commands/logging/sftp/list.go | 2 +- .../logging/sftp/sftp_integration_test.go | 2 +- pkg/commands/logging/sftp/sftp_test.go | 2 +- pkg/commands/logging/sftp/update.go | 2 +- pkg/commands/logging/splunk/create.go | 2 +- pkg/commands/logging/splunk/delete.go | 2 +- pkg/commands/logging/splunk/describe.go | 2 +- pkg/commands/logging/splunk/list.go | 2 +- .../logging/splunk/splunk_integration_test.go | 2 +- pkg/commands/logging/splunk/splunk_test.go | 2 +- pkg/commands/logging/splunk/update.go | 2 +- pkg/commands/logging/sumologic/create.go | 2 +- pkg/commands/logging/sumologic/delete.go | 2 +- pkg/commands/logging/sumologic/describe.go | 2 +- pkg/commands/logging/sumologic/list.go | 2 +- .../sumologic/sumologic_integration_test.go | 2 +- .../logging/sumologic/sumologic_test.go | 2 +- pkg/commands/logging/sumologic/update.go | 2 +- pkg/commands/logging/syslog/create.go | 2 +- pkg/commands/logging/syslog/delete.go | 2 +- pkg/commands/logging/syslog/describe.go | 2 +- pkg/commands/logging/syslog/list.go | 2 +- .../logging/syslog/syslog_integration_test.go | 2 +- pkg/commands/logging/syslog/syslog_test.go | 2 +- pkg/commands/logging/syslog/update.go | 2 +- pkg/commands/logtail/root.go | 2 +- pkg/commands/objectstore/doc.go | 3 - pkg/commands/objectstoreentry/doc.go | 3 - pkg/commands/pop/pop_test.go | 2 +- pkg/commands/profile/create.go | 2 +- pkg/commands/profile/profile_test.go | 2 +- pkg/commands/profile/update.go | 2 +- pkg/commands/purge/purge_test.go | 2 +- pkg/commands/purge/root.go | 2 +- pkg/commands/ratelimit/create.go | 2 +- pkg/commands/ratelimit/delete.go | 2 +- pkg/commands/ratelimit/describe.go | 2 +- pkg/commands/ratelimit/list.go | 2 +- pkg/commands/ratelimit/ratelimit_test.go | 2 +- pkg/commands/ratelimit/update.go | 2 +- pkg/commands/resourcelink/create.go | 2 +- pkg/commands/resourcelink/delete.go | 2 +- pkg/commands/resourcelink/describe.go | 2 +- pkg/commands/resourcelink/list.go | 2 +- .../resourcelink/resourcelink_test.go | 2 +- pkg/commands/resourcelink/update.go | 2 +- pkg/commands/secretstore/create.go | 2 +- pkg/commands/secretstore/delete.go | 2 +- pkg/commands/secretstore/describe.go | 2 +- pkg/commands/secretstore/helper_test.go | 2 +- pkg/commands/secretstore/list.go | 2 +- pkg/commands/secretstore/secretstore_test.go | 2 +- pkg/commands/secretstoreentry/create.go | 4 +- pkg/commands/secretstoreentry/delete.go | 2 +- pkg/commands/secretstoreentry/describe.go | 2 +- pkg/commands/secretstoreentry/helper_test.go | 2 +- pkg/commands/secretstoreentry/list.go | 2 +- .../secretstoreentry/secretstoreentry_test.go | 2 +- pkg/commands/service/create.go | 2 +- pkg/commands/service/delete.go | 2 +- pkg/commands/service/describe.go | 2 +- pkg/commands/service/list.go | 2 +- pkg/commands/service/search.go | 2 +- pkg/commands/service/service_test.go | 2 +- pkg/commands/service/update.go | 2 +- pkg/commands/serviceauth/create.go | 2 +- pkg/commands/serviceauth/delete.go | 2 +- pkg/commands/serviceauth/describe.go | 2 +- pkg/commands/serviceauth/list.go | 2 +- pkg/commands/serviceauth/service_test.go | 2 +- pkg/commands/serviceauth/update.go | 2 +- pkg/commands/serviceversion/activate.go | 2 +- pkg/commands/serviceversion/clone.go | 2 +- pkg/commands/serviceversion/deactivate.go | 2 +- pkg/commands/serviceversion/list.go | 2 +- pkg/commands/serviceversion/lock.go | 2 +- .../serviceversion/serviceversion_test.go | 2 +- pkg/commands/serviceversion/update.go | 2 +- pkg/commands/stats/historical.go | 2 +- pkg/commands/stats/historical_test.go | 2 +- pkg/commands/stats/realtime.go | 2 +- pkg/commands/stats/regions_test.go | 2 +- pkg/commands/stats/template.go | 2 +- pkg/commands/tls/config/config_test.go | 2 +- pkg/commands/tls/config/describe.go | 2 +- pkg/commands/tls/config/list.go | 2 +- pkg/commands/tls/config/update.go | 2 +- .../tls/custom/activation/activation_test.go | 2 +- pkg/commands/tls/custom/activation/create.go | 2 +- pkg/commands/tls/custom/activation/delete.go | 2 +- .../tls/custom/activation/describe.go | 2 +- pkg/commands/tls/custom/activation/list.go | 2 +- pkg/commands/tls/custom/activation/update.go | 2 +- .../custom/certificate/certificate_test.go | 2 +- pkg/commands/tls/custom/certificate/create.go | 2 +- pkg/commands/tls/custom/certificate/delete.go | 2 +- .../tls/custom/certificate/describe.go | 2 +- pkg/commands/tls/custom/certificate/list.go | 2 +- pkg/commands/tls/custom/certificate/update.go | 2 +- pkg/commands/tls/custom/domain/domain_test.go | 2 +- pkg/commands/tls/custom/domain/list.go | 2 +- pkg/commands/tls/custom/privatekey/create.go | 2 +- pkg/commands/tls/custom/privatekey/delete.go | 2 +- .../tls/custom/privatekey/describe.go | 2 +- pkg/commands/tls/custom/privatekey/list.go | 2 +- .../tls/custom/privatekey/privatekey_test.go | 2 +- pkg/commands/tls/platform/create.go | 2 +- pkg/commands/tls/platform/delete.go | 2 +- pkg/commands/tls/platform/describe.go | 2 +- pkg/commands/tls/platform/list.go | 2 +- pkg/commands/tls/platform/platform_test.go | 2 +- pkg/commands/tls/platform/update.go | 2 +- pkg/commands/tls/subscription/create.go | 2 +- pkg/commands/tls/subscription/delete.go | 2 +- pkg/commands/tls/subscription/describe.go | 2 +- pkg/commands/tls/subscription/list.go | 2 +- .../tls/subscription/subscription_test.go | 2 +- pkg/commands/tls/subscription/update.go | 2 +- pkg/commands/user/create.go | 2 +- pkg/commands/user/delete.go | 2 +- pkg/commands/user/describe.go | 2 +- pkg/commands/user/list.go | 2 +- pkg/commands/user/update.go | 2 +- pkg/commands/user/user_test.go | 2 +- pkg/commands/vcl/custom/create.go | 2 +- pkg/commands/vcl/custom/custom_test.go | 2 +- pkg/commands/vcl/custom/delete.go | 2 +- pkg/commands/vcl/custom/describe.go | 2 +- pkg/commands/vcl/custom/list.go | 2 +- pkg/commands/vcl/custom/update.go | 2 +- pkg/commands/vcl/snippet/create.go | 2 +- pkg/commands/vcl/snippet/delete.go | 2 +- pkg/commands/vcl/snippet/describe.go | 2 +- pkg/commands/vcl/snippet/list.go | 2 +- pkg/commands/vcl/snippet/snippet_test.go | 2 +- pkg/commands/vcl/snippet/update.go | 2 +- pkg/commands/version/root.go | 2 +- pkg/errors/deduce.go | 2 +- pkg/errors/deduce_test.go | 2 +- pkg/errors/log.go | 2 +- pkg/manifest/manifest.go | 28 +-- .../testdata/fastly-viceroy-update.toml | 6 +- pkg/mock/api.go | 66 +++---- pkg/testutil/api.go | 2 +- pkg/text/backend.go | 2 +- pkg/text/configstore.go | 2 +- pkg/text/dictionary.go | 2 +- pkg/text/dictionaryitem.go | 2 +- pkg/text/dictionaryitem_test.go | 2 +- pkg/text/healthcheck.go | 2 +- pkg/text/objectstore.go | 14 +- pkg/text/resource.go | 2 +- pkg/text/secretstore.go | 2 +- pkg/text/service.go | 2 +- pkg/text/service_test.go | 2 +- 397 files changed, 669 insertions(+), 669 deletions(-) rename pkg/commands/compute/setup/{object_store.go => kv_store.go} (66%) rename pkg/commands/{objectstore => kvstore}/create.go (73%) rename pkg/commands/{objectstore => kvstore}/delete.go (68%) rename pkg/commands/{objectstore => kvstore}/describe.go (82%) create mode 100644 pkg/commands/kvstore/doc.go rename pkg/commands/{objectstore => kvstore}/insert.go (71%) rename pkg/commands/{objectstore => kvstore}/list.go (80%) rename pkg/commands/{objectstore => kvstore}/root.go (85%) rename pkg/commands/{objectstoreentry => kvstoreentry}/create.go (75%) rename pkg/commands/{objectstoreentry => kvstoreentry}/delete.go (80%) rename pkg/commands/{objectstoreentry => kvstoreentry}/describe.go (85%) create mode 100644 pkg/commands/kvstoreentry/doc.go rename pkg/commands/{objectstoreentry => kvstoreentry}/list.go (87%) rename pkg/commands/{objectstoreentry => kvstoreentry}/root.go (83%) delete mode 100644 pkg/commands/objectstore/doc.go delete mode 100644 pkg/commands/objectstoreentry/doc.go diff --git a/go.mod b/go.mod index 5843dc6c3..d68d00d78 100644 --- a/go.mod +++ b/go.mod @@ -29,7 +29,7 @@ require ( ) require ( - github.com/fastly/go-fastly/v7 v7.5.5 + github.com/fastly/go-fastly/v8 v8.0.0 github.com/kennygrant/sanitize v1.2.4 github.com/mholt/archiver v3.1.1+incompatible github.com/otiai10/copy v1.10.0 diff --git a/go.sum b/go.sum index cadd8cd16..4b54a19d2 100644 --- a/go.sum +++ b/go.sum @@ -18,8 +18,8 @@ github.com/dsnet/compress v0.0.2-0.20210315054119-f66993602bf5/go.mod h1:qssHWj6 github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY= github.com/dustinkirkland/golang-petname v0.0.0-20191129215211-8e5a1ed0cff0 h1:90Ly+6UfUypEF6vvvW5rQIv9opIL8CbmW9FT20LDQoY= github.com/dustinkirkland/golang-petname v0.0.0-20191129215211-8e5a1ed0cff0/go.mod h1:V+Qd57rJe8gd4eiGzZyg4h54VLHmYVVw54iMnlAMrF8= -github.com/fastly/go-fastly/v7 v7.5.5 h1:M3ePbU6a8BTPZzjaPoU4+O+pQspiBalF5HgVNomHlJI= -github.com/fastly/go-fastly/v7 v7.5.5/go.mod h1:/Z2GD7NuxV3vVMAyrtckg1WvZVnCuM2Z8ok/z70XTEQ= +github.com/fastly/go-fastly/v8 v8.0.0 h1:c5y4Cuga1iffDJ75Y4p89EXr9aar9pDRvODiTX+wLlg= +github.com/fastly/go-fastly/v8 v8.0.0/go.mod h1:m/QWKyZsuH8Ow3tDkRLqlbvbJdxalRGkTT3ZKxZJ4eo= github.com/fastly/kingpin v2.1.12-0.20191105091915-95d230a53780+incompatible h1:FhrXlfhgGCS+uc6YwyiFUt04alnjpoX7vgDKJxS6Qbk= github.com/fastly/kingpin v2.1.12-0.20191105091915-95d230a53780+incompatible/go.mod h1:U8UynVoU1SQaqD2I4ZqgYd5lx3A1ipQYn4aSt2Y5h6c= github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= diff --git a/pkg/api/interface.go b/pkg/api/interface.go index 8cb3538cd..639d4278f 100644 --- a/pkg/api/interface.go +++ b/pkg/api/interface.go @@ -4,7 +4,7 @@ import ( "crypto/ed25519" "net/http" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // HTTPClient models a concrete http.Client. It's a consumer contract for some @@ -343,14 +343,14 @@ type Interface interface { ListConfigStoreItems(i *fastly.ListConfigStoreItemsInput) ([]*fastly.ConfigStoreItem, error) UpdateConfigStoreItem(i *fastly.UpdateConfigStoreItemInput) (*fastly.ConfigStoreItem, error) - CreateObjectStore(i *fastly.CreateObjectStoreInput) (*fastly.ObjectStore, error) - ListObjectStores(i *fastly.ListObjectStoresInput) (*fastly.ListObjectStoresResponse, error) - DeleteObjectStore(i *fastly.DeleteObjectStoreInput) error - GetObjectStore(i *fastly.GetObjectStoreInput) (*fastly.ObjectStore, error) - ListObjectStoreKeys(i *fastly.ListObjectStoreKeysInput) (*fastly.ListObjectStoreKeysResponse, error) - GetObjectStoreKey(i *fastly.GetObjectStoreKeyInput) (string, error) - DeleteObjectStoreKey(i *fastly.DeleteObjectStoreKeyInput) error - InsertObjectStoreKey(i *fastly.InsertObjectStoreKeyInput) error + CreateKVStore(i *fastly.CreateKVStoreInput) (*fastly.KVStore, error) + ListKVStores(i *fastly.ListKVStoresInput) (*fastly.ListKVStoresResponse, error) + DeleteKVStore(i *fastly.DeleteKVStoreInput) error + GetKVStore(i *fastly.GetKVStoreInput) (*fastly.KVStore, error) + ListKVStoreKeys(i *fastly.ListKVStoreKeysInput) (*fastly.ListKVStoreKeysResponse, error) + GetKVStoreKey(i *fastly.GetKVStoreKeyInput) (string, error) + DeleteKVStoreKey(i *fastly.DeleteKVStoreKeyInput) error + InsertKVStoreKey(i *fastly.InsertKVStoreKeyInput) error CreateSecretStore(i *fastly.CreateSecretStoreInput) (*fastly.SecretStore, error) GetSecretStore(i *fastly.GetSecretStoreInput) (*fastly.SecretStore, error) diff --git a/pkg/app/commands.go b/pkg/app/commands.go index 1e301d04b..f03a8fc31 100644 --- a/pkg/app/commands.go +++ b/pkg/app/commands.go @@ -15,6 +15,8 @@ import ( "github.com/fastly/cli/pkg/commands/domain" "github.com/fastly/cli/pkg/commands/healthcheck" "github.com/fastly/cli/pkg/commands/ip" + "github.com/fastly/cli/pkg/commands/kvstore" + "github.com/fastly/cli/pkg/commands/kvstoreentry" "github.com/fastly/cli/pkg/commands/logging" "github.com/fastly/cli/pkg/commands/logging/azureblob" "github.com/fastly/cli/pkg/commands/logging/bigquery" @@ -42,8 +44,6 @@ import ( "github.com/fastly/cli/pkg/commands/logging/sumologic" "github.com/fastly/cli/pkg/commands/logging/syslog" "github.com/fastly/cli/pkg/commands/logtail" - "github.com/fastly/cli/pkg/commands/objectstore" - "github.com/fastly/cli/pkg/commands/objectstoreentry" "github.com/fastly/cli/pkg/commands/pop" "github.com/fastly/cli/pkg/commands/profile" "github.com/fastly/cli/pkg/commands/purge" @@ -157,6 +157,16 @@ func defineCommands( healthcheckList := healthcheck.NewListCommand(healthcheckCmdRoot.CmdClause, g, m) healthcheckUpdate := healthcheck.NewUpdateCommand(healthcheckCmdRoot.CmdClause, g, m) ipCmdRoot := ip.NewRootCommand(app, g) + kvstoreCmdRoot := kvstore.NewRootCommand(app, g) + kvstoreCreate := kvstore.NewCreateCommand(kvstoreCmdRoot.CmdClause, g, m) + kvstoreDelete := kvstore.NewDeleteCommand(kvstoreCmdRoot.CmdClause, g, m) + kvstoreDescribe := kvstore.NewDescribeCommand(kvstoreCmdRoot.CmdClause, g, m) + kvstoreList := kvstore.NewListCommand(kvstoreCmdRoot.CmdClause, g, m) + kvstoreentryCmdRoot := kvstoreentry.NewRootCommand(app, g) + kvstoreentryCreate := kvstoreentry.NewCreateCommand(kvstoreentryCmdRoot.CmdClause, g, m) + kvstoreentryDelete := kvstoreentry.NewDeleteCommand(kvstoreentryCmdRoot.CmdClause, g, m) + kvstoreentryDescribe := kvstoreentry.NewDescribeCommand(kvstoreentryCmdRoot.CmdClause, g, m) + kvstoreentryList := kvstoreentry.NewListCommand(kvstoreentryCmdRoot.CmdClause, g, m) logtailCmdRoot := logtail.NewRootCommand(app, g, m) loggingCmdRoot := logging.NewRootCommand(app, g) loggingAzureblobCmdRoot := azureblob.NewRootCommand(loggingCmdRoot.CmdClause, g) @@ -309,16 +319,6 @@ func defineCommands( loggingSyslogDescribe := syslog.NewDescribeCommand(loggingSyslogCmdRoot.CmdClause, g, m) loggingSyslogList := syslog.NewListCommand(loggingSyslogCmdRoot.CmdClause, g, m) loggingSyslogUpdate := syslog.NewUpdateCommand(loggingSyslogCmdRoot.CmdClause, g, m) - objectstoreCmdRoot := objectstore.NewRootCommand(app, g) - objectstoreCreate := objectstore.NewCreateCommand(objectstoreCmdRoot.CmdClause, g, m) - objectstoreDelete := objectstore.NewDeleteCommand(objectstoreCmdRoot.CmdClause, g, m) - objectstoreDescribe := objectstore.NewDescribeCommand(objectstoreCmdRoot.CmdClause, g, m) - objectstoreList := objectstore.NewListCommand(objectstoreCmdRoot.CmdClause, g, m) - objectstoreentryCmdRoot := objectstoreentry.NewRootCommand(app, g) - objectstoreentryCreate := objectstoreentry.NewCreateCommand(objectstoreentryCmdRoot.CmdClause, g, m) - objectstoreentryDelete := objectstoreentry.NewDeleteCommand(objectstoreentryCmdRoot.CmdClause, g, m) - objectstoreentryDescribe := objectstoreentry.NewDescribeCommand(objectstoreentryCmdRoot.CmdClause, g, m) - objectstoreentryList := objectstoreentry.NewListCommand(objectstoreentryCmdRoot.CmdClause, g, m) popCmdRoot := pop.NewRootCommand(app, g) profileCmdRoot := profile.NewRootCommand(app, g) profileCreate := profile.NewCreateCommand(profileCmdRoot.CmdClause, profile.APIClientFactory(opts.APIClient), g) @@ -508,6 +508,14 @@ func defineCommands( healthcheckList, healthcheckUpdate, ipCmdRoot, + kvstoreCreate, + kvstoreDelete, + kvstoreDescribe, + kvstoreList, + kvstoreentryCreate, + kvstoreentryDelete, + kvstoreentryDescribe, + kvstoreentryList, logtailCmdRoot, loggingAzureblobCmdRoot, loggingAzureblobCreate, @@ -660,14 +668,6 @@ func defineCommands( loggingSyslogDescribe, loggingSyslogList, loggingSyslogUpdate, - objectstoreCreate, - objectstoreDelete, - objectstoreDescribe, - objectstoreList, - objectstoreentryCreate, - objectstoreentryDelete, - objectstoreentryDescribe, - objectstoreentryList, popCmdRoot, profileCmdRoot, profileCreate, diff --git a/pkg/app/run.go b/pkg/app/run.go index 49ef151f7..2240d64a4 100644 --- a/pkg/app/run.go +++ b/pkg/app/run.go @@ -19,7 +19,7 @@ import ( "github.com/fastly/cli/pkg/profile" "github.com/fastly/cli/pkg/revision" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" "github.com/fastly/kingpin" ) diff --git a/pkg/app/run_test.go b/pkg/app/run_test.go index c6d8b3c20..b4b6a88fb 100644 --- a/pkg/app/run_test.go +++ b/pkg/app/run_test.go @@ -70,10 +70,10 @@ dictionary-entry domain healthcheck ip-list +kv-store +kv-store-entry log-tail logging -object-store -object-store-entry pops profile purge diff --git a/pkg/cmd/cmd.go b/pkg/cmd/cmd.go index f35fd0e01..24a6f1249 100644 --- a/pkg/cmd/cmd.go +++ b/pkg/cmd/cmd.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" "github.com/fastly/kingpin" ) diff --git a/pkg/cmd/flags.go b/pkg/cmd/flags.go index e7c0d301c..ec191be49 100644 --- a/pkg/cmd/flags.go +++ b/pkg/cmd/flags.go @@ -16,7 +16,7 @@ import ( "github.com/fastly/cli/pkg/env" fsterr "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" "github.com/fastly/kingpin" ) diff --git a/pkg/cmd/flags_test.go b/pkg/cmd/flags_test.go index a8ff99d3c..8b37efeaa 100644 --- a/pkg/cmd/flags_test.go +++ b/pkg/cmd/flags_test.go @@ -11,7 +11,7 @@ import ( "github.com/fastly/cli/pkg/cmd" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestOptionalServiceVersionParse(t *testing.T) { diff --git a/pkg/commands/acl/acl_test.go b/pkg/commands/acl/acl_test.go index ec2aaa4bd..5ec9e0524 100644 --- a/pkg/commands/acl/acl_test.go +++ b/pkg/commands/acl/acl_test.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestACLCreate(t *testing.T) { diff --git a/pkg/commands/acl/create.go b/pkg/commands/acl/create.go index b4a46c163..d4ba0184d 100644 --- a/pkg/commands/acl/create.go +++ b/pkg/commands/acl/create.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewCreateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/acl/delete.go b/pkg/commands/acl/delete.go index 962468b0a..39bcdb500 100644 --- a/pkg/commands/acl/delete.go +++ b/pkg/commands/acl/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDeleteCommand returns a usable command registered under the parent. diff --git a/pkg/commands/acl/describe.go b/pkg/commands/acl/describe.go index 22665f1eb..75fc0b1b5 100644 --- a/pkg/commands/acl/describe.go +++ b/pkg/commands/acl/describe.go @@ -9,7 +9,7 @@ import ( fsterr "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDescribeCommand returns a usable command registered under the parent. diff --git a/pkg/commands/acl/list.go b/pkg/commands/acl/list.go index 6d046fdf0..bf5ca537e 100644 --- a/pkg/commands/acl/list.go +++ b/pkg/commands/acl/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewListCommand returns a usable command registered under the parent. diff --git a/pkg/commands/acl/update.go b/pkg/commands/acl/update.go index 9cf7e5626..47799805d 100644 --- a/pkg/commands/acl/update.go +++ b/pkg/commands/acl/update.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewUpdateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/aclentry/aclentry_test.go b/pkg/commands/aclentry/aclentry_test.go index 53b787250..ec2184ffc 100644 --- a/pkg/commands/aclentry/aclentry_test.go +++ b/pkg/commands/aclentry/aclentry_test.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestACLEntryCreate(t *testing.T) { diff --git a/pkg/commands/aclentry/create.go b/pkg/commands/aclentry/create.go index eaf47026c..c630b6503 100644 --- a/pkg/commands/aclentry/create.go +++ b/pkg/commands/aclentry/create.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewCreateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/aclentry/delete.go b/pkg/commands/aclentry/delete.go index a9b318288..2bb23d9db 100644 --- a/pkg/commands/aclentry/delete.go +++ b/pkg/commands/aclentry/delete.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDeleteCommand returns a usable command registered under the parent. diff --git a/pkg/commands/aclentry/describe.go b/pkg/commands/aclentry/describe.go index 4389bebb9..590c757f6 100644 --- a/pkg/commands/aclentry/describe.go +++ b/pkg/commands/aclentry/describe.go @@ -9,7 +9,7 @@ import ( fsterr "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDescribeCommand returns a usable command registered under the parent. diff --git a/pkg/commands/aclentry/list.go b/pkg/commands/aclentry/list.go index 243b3bd2f..ab44ef69a 100644 --- a/pkg/commands/aclentry/list.go +++ b/pkg/commands/aclentry/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewListCommand returns a usable command registered under the parent. diff --git a/pkg/commands/aclentry/update.go b/pkg/commands/aclentry/update.go index 154fdd540..e69f448ce 100644 --- a/pkg/commands/aclentry/update.go +++ b/pkg/commands/aclentry/update.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewUpdateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/authtoken/authtoken_test.go b/pkg/commands/authtoken/authtoken_test.go index e146cc667..2533e31d1 100644 --- a/pkg/commands/authtoken/authtoken_test.go +++ b/pkg/commands/authtoken/authtoken_test.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreate(t *testing.T) { diff --git a/pkg/commands/authtoken/create.go b/pkg/commands/authtoken/create.go index 98c7470c3..405e74c48 100644 --- a/pkg/commands/authtoken/create.go +++ b/pkg/commands/authtoken/create.go @@ -11,7 +11,7 @@ import ( "github.com/fastly/cli/pkg/lookup" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" "github.com/fastly/kingpin" ) diff --git a/pkg/commands/authtoken/delete.go b/pkg/commands/authtoken/delete.go index 0f0e9e660..726ed439e 100644 --- a/pkg/commands/authtoken/delete.go +++ b/pkg/commands/authtoken/delete.go @@ -13,7 +13,7 @@ import ( "github.com/fastly/cli/pkg/lookup" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDeleteCommand returns a usable command registered under the parent. diff --git a/pkg/commands/authtoken/describe.go b/pkg/commands/authtoken/describe.go index 1f3eddf75..48495fe09 100644 --- a/pkg/commands/authtoken/describe.go +++ b/pkg/commands/authtoken/describe.go @@ -11,7 +11,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/lookup" "github.com/fastly/cli/pkg/manifest" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDescribeCommand returns a usable command registered under the parent. diff --git a/pkg/commands/authtoken/list.go b/pkg/commands/authtoken/list.go index ab64710ff..2e733159b 100644 --- a/pkg/commands/authtoken/list.go +++ b/pkg/commands/authtoken/list.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/lookup" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewListCommand returns a usable command registered under the parent. diff --git a/pkg/commands/backend/backend_test.go b/pkg/commands/backend/backend_test.go index e56be0801..ee4bdcd96 100644 --- a/pkg/commands/backend/backend_test.go +++ b/pkg/commands/backend/backend_test.go @@ -10,7 +10,7 @@ import ( fsterr "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestBackendCreate(t *testing.T) { diff --git a/pkg/commands/backend/create.go b/pkg/commands/backend/create.go index 116c55965..616193b0d 100644 --- a/pkg/commands/backend/create.go +++ b/pkg/commands/backend/create.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create backends. diff --git a/pkg/commands/backend/delete.go b/pkg/commands/backend/delete.go index 51889c037..5e8dd2cf9 100644 --- a/pkg/commands/backend/delete.go +++ b/pkg/commands/backend/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete backends. diff --git a/pkg/commands/backend/describe.go b/pkg/commands/backend/describe.go index 5dc29f53e..2b9f0321b 100644 --- a/pkg/commands/backend/describe.go +++ b/pkg/commands/backend/describe.go @@ -9,7 +9,7 @@ import ( fsterr "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a backend. diff --git a/pkg/commands/backend/list.go b/pkg/commands/backend/list.go index 581efb476..55a4eb6f7 100644 --- a/pkg/commands/backend/list.go +++ b/pkg/commands/backend/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list backends. diff --git a/pkg/commands/backend/update.go b/pkg/commands/backend/update.go index 48b6fd8f1..f85e1f510 100644 --- a/pkg/commands/backend/update.go +++ b/pkg/commands/backend/update.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update backends. diff --git a/pkg/commands/compute/compute_mocks_test.go b/pkg/commands/compute/compute_mocks_test.go index 8a7bcc5fc..f4cd2e141 100644 --- a/pkg/commands/compute/compute_mocks_test.go +++ b/pkg/commands/compute/compute_mocks_test.go @@ -6,7 +6,7 @@ package compute_test import ( "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func getServiceOK(i *fastly.GetServiceInput) (*fastly.Service, error) { @@ -49,14 +49,14 @@ func createDictionaryItemOK(i *fastly.CreateDictionaryItemInput) (*fastly.Dictio }, nil } -func createObjectStoreOK(i *fastly.CreateObjectStoreInput) (*fastly.ObjectStore, error) { - return &fastly.ObjectStore{ +func createKVStoreOK(i *fastly.CreateKVStoreInput) (*fastly.KVStore, error) { + return &fastly.KVStore{ ID: "example-store", Name: i.Name, }, nil } -func createObjectStoreItemOK(i *fastly.InsertObjectStoreKeyInput) error { +func createKVStoreItemOK(i *fastly.InsertKVStoreKeyInput) error { return nil } diff --git a/pkg/commands/compute/deploy.go b/pkg/commands/compute/deploy.go index 07c0b4f01..0030a6a91 100644 --- a/pkg/commands/compute/deploy.go +++ b/pkg/commands/compute/deploy.go @@ -24,7 +24,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" "github.com/fastly/cli/pkg/undo" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" "github.com/kennygrant/sanitize" "github.com/mholt/archiver/v3" ) @@ -126,7 +126,7 @@ func (c *DeployCommand) Exec(in io.Reader, out io.Writer) (err error) { return nil } - domains, backends, dictionaries, loggers, objectStores, err := constructSetupObjects( + domains, backends, dictionaries, loggers, kvStores, err := constructSetupKVs( newService, serviceID, serviceVersion.Number, c, in, out, ) if err != nil { @@ -134,7 +134,7 @@ func (c *DeployCommand) Exec(in io.Reader, out io.Writer) (err error) { } if err := processSetupConfig( - newService, domains, backends, dictionaries, loggers, objectStores, + newService, domains, backends, dictionaries, loggers, kvStores, serviceID, serviceVersion.Number, c, ); err != nil { return err @@ -148,7 +148,7 @@ func (c *DeployCommand) Exec(in io.Reader, out io.Writer) (err error) { }(c.Globals.ErrLog) if err := processSetupCreation( - newService, domains, backends, dictionaries, objectStores, spinner, c, + newService, domains, backends, dictionaries, kvStores, spinner, c, serviceID, serviceVersion.Number, ); err != nil { return err @@ -839,7 +839,7 @@ func pkgUpload(spinner text.Spinner, client api.Interface, serviceID string, ver return spinner.Stop() } -func constructSetupObjects( +func constructSetupKVs( newService bool, serviceID string, serviceVersion int, @@ -851,7 +851,7 @@ func constructSetupObjects( *setup.Backends, *setup.Dictionaries, *setup.Loggers, - *setup.ObjectStores, + *setup.KVStores, error, ) { var err error @@ -892,7 +892,7 @@ func constructSetupObjects( backends *setup.Backends dictionaries *setup.Dictionaries loggers *setup.Loggers - objectStores *setup.ObjectStores + kvStores *setup.KVStores ) if newService { @@ -923,19 +923,19 @@ func constructSetupObjects( Stdout: out, } - objectStores = &setup.ObjectStores{ + kvStores = &setup.KVStores{ APIClient: c.Globals.APIClient, AcceptDefaults: c.Globals.Flags.AcceptDefaults, NonInteractive: c.Globals.Flags.NonInteractive, ServiceID: serviceID, ServiceVersion: serviceVersion, - Setup: c.Manifest.File.Setup.ObjectStores, + Setup: c.Manifest.File.Setup.KVStores, Stdin: in, Stdout: out, } } - return domains, backends, dictionaries, loggers, objectStores, nil + return domains, backends, dictionaries, loggers, kvStores, nil } func processSetupConfig( @@ -944,7 +944,7 @@ func processSetupConfig( backends *setup.Backends, dictionaries *setup.Dictionaries, loggers *setup.Loggers, - objectStores *setup.ObjectStores, + kvStores *setup.KVStores, serviceID string, serviceVersion int, c *DeployCommand, @@ -989,11 +989,11 @@ func processSetupConfig( _ = loggers.Configure() } - if objectStores.Predefined() { - err = objectStores.Configure() + if kvStores.Predefined() { + err = kvStores.Configure() if err != nil { errLogService(c.Globals.ErrLog, err, serviceID, serviceVersion) - return fmt.Errorf("error configuring service object stores: %w", err) + return fmt.Errorf("error configuring service kv stores: %w", err) } } } @@ -1006,7 +1006,7 @@ func processSetupCreation( domains *setup.Domains, backends *setup.Backends, dictionaries *setup.Dictionaries, - objectStores *setup.ObjectStores, + kvStores *setup.KVStores, spinner text.Spinner, c *DeployCommand, serviceID string, @@ -1032,7 +1032,7 @@ func processSetupCreation( if newService { backends.Spinner = spinner dictionaries.Spinner = spinner - objectStores.Spinner = spinner + kvStores.Spinner = spinner if err := backends.Create(); err != nil { c.Globals.ErrLog.AddWithContext(err, map[string]any{ @@ -1056,7 +1056,7 @@ func processSetupCreation( return err } - if err := objectStores.Create(); err != nil { + if err := kvStores.Create(); err != nil { c.Globals.ErrLog.AddWithContext(err, map[string]any{ "Accept defaults": c.Globals.Flags.AcceptDefaults, "Auto-yes": c.Globals.Flags.AutoYes, diff --git a/pkg/commands/compute/deploy_test.go b/pkg/commands/compute/deploy_test.go index 3f4d7585d..c21d59d6d 100644 --- a/pkg/commands/compute/deploy_test.go +++ b/pkg/commands/compute/deploy_test.go @@ -19,7 +19,7 @@ import ( "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" "github.com/fastly/cli/pkg/threadsafe" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NOTE: Some tests don't provide a Service ID via any mechanism (e.g. flag @@ -1578,7 +1578,7 @@ func TestDeploy(t *testing.T) { }, // NOTE: The following test validates [setup] only works for a new service. { - name: "success with setup.object_stores configuration and existing service", + name: "success with setup.kv_stores configuration and existing service", args: args("compute deploy --service-id 123 --token 123"), api: mock.API{ ActivateVersionFn: activateVersionOk, @@ -1606,12 +1606,12 @@ func TestDeploy(t *testing.T) { manifest_version = 2 language = "rust" - [setup.object_stores.store_one] - description = "My first object store" - [setup.object_stores.store_one.items.foo] + [setup.kv_stores.store_one] + description = "My first kv store" + [setup.kv_stores.store_one.items.foo] value = "my default value for foo" description = "a good description about foo" - [setup.object_stores.store_one.items.bar] + [setup.kv_stores.store_one.items.bar] value = "my default value for bar" description = "a good description about bar" `, @@ -1621,31 +1621,31 @@ func TestDeploy(t *testing.T) { "SUCCESS: Deployed package (service 123, version 4)", }, dontWantOutput: []string{ - "Configuring object store 'store_one'", - "Create an object store key called 'foo'", - "Create an object store key called 'bar'", - "Creating object store 'store_one'", - "Creating object store key 'foo'", - "Creating object store key 'bar'", + "Configuring kv store 'store_one'", + "Create an kv store key called 'foo'", + "Create an kv store key called 'bar'", + "Creating kv store 'store_one'", + "Creating kv store key 'foo'", + "Creating kv store key 'bar'", }, }, { - name: "success with setup.object_stores configuration and no existing service", + name: "success with setup.kv_stores configuration and no existing service", args: args("compute deploy --token 123"), api: mock.API{ - ActivateVersionFn: activateVersionOk, - CreateBackendFn: createBackendOK, - CreateObjectStoreFn: createObjectStoreOK, - InsertObjectStoreKeyFn: createObjectStoreItemOK, - CreateResourceFn: createResourceOK, - CreateDomainFn: createDomainOK, - CreateServiceFn: createServiceOK, - GetPackageFn: getPackageOk, - GetServiceFn: getServiceOK, - GetServiceDetailsFn: getServiceDetailsWasm, - ListDomainsFn: listDomainsOk, - ListVersionsFn: testutil.ListVersions, - UpdatePackageFn: updatePackageOk, + ActivateVersionFn: activateVersionOk, + CreateBackendFn: createBackendOK, + CreateKVStoreFn: createKVStoreOK, + InsertKVStoreKeyFn: createKVStoreItemOK, + CreateResourceFn: createResourceOK, + CreateDomainFn: createDomainOK, + CreateServiceFn: createServiceOK, + GetPackageFn: getPackageOk, + GetServiceFn: getServiceOK, + GetServiceDetailsFn: getServiceDetailsWasm, + ListDomainsFn: listDomainsOk, + ListVersionsFn: testutil.ListVersions, + UpdatePackageFn: updatePackageOk, }, httpClientRes: []*http.Response{ { @@ -1662,12 +1662,12 @@ func TestDeploy(t *testing.T) { manifest_version = 2 language = "rust" - [setup.object_stores.store_one] - description = "My first object store" - [setup.object_stores.store_one.items.foo] + [setup.kv_stores.store_one] + description = "My first kv store" + [setup.kv_stores.store_one.items.foo] value = "my default value for foo" description = "a good description about foo" - [setup.object_stores.store_one.items.bar] + [setup.kv_stores.store_one.items.bar] value = "my default value for bar" description = "a good description about bar" `, @@ -1675,34 +1675,34 @@ func TestDeploy(t *testing.T) { "Y", // when prompted to create a new service }, wantOutput: []string{ - "Configuring object store 'store_one'", - "Create an object store key called 'foo'", - "Create an object store key called 'bar'", - "Creating object store 'store_one'", - "Creating object store key 'foo'", - "Creating object store key 'bar'", + "Configuring kv store 'store_one'", + "Create an kv store key called 'foo'", + "Create an kv store key called 'bar'", + "Creating kv store 'store_one'", + "Creating kv store key 'foo'", + "Creating kv store key 'bar'", "Uploading package", "Activating service", "SUCCESS: Deployed package (service 12345, version 1)", }, }, { - name: "success with setup.object_stores configuration and no existing service and --non-interactive", + name: "success with setup.kv_stores configuration and no existing service and --non-interactive", args: args("compute deploy --non-interactive --token 123"), api: mock.API{ - ActivateVersionFn: activateVersionOk, - CreateBackendFn: createBackendOK, - CreateObjectStoreFn: createObjectStoreOK, - InsertObjectStoreKeyFn: createObjectStoreItemOK, - CreateResourceFn: createResourceOK, - CreateDomainFn: createDomainOK, - CreateServiceFn: createServiceOK, - GetPackageFn: getPackageOk, - GetServiceFn: getServiceOK, - GetServiceDetailsFn: getServiceDetailsWasm, - ListDomainsFn: listDomainsOk, - ListVersionsFn: testutil.ListVersions, - UpdatePackageFn: updatePackageOk, + ActivateVersionFn: activateVersionOk, + CreateBackendFn: createBackendOK, + CreateKVStoreFn: createKVStoreOK, + InsertKVStoreKeyFn: createKVStoreItemOK, + CreateResourceFn: createResourceOK, + CreateDomainFn: createDomainOK, + CreateServiceFn: createServiceOK, + GetPackageFn: getPackageOk, + GetServiceFn: getServiceOK, + GetServiceDetailsFn: getServiceDetailsWasm, + ListDomainsFn: listDomainsOk, + ListVersionsFn: testutil.ListVersions, + UpdatePackageFn: updatePackageOk, }, httpClientRes: []*http.Response{ { @@ -1719,12 +1719,12 @@ func TestDeploy(t *testing.T) { manifest_version = 2 language = "rust" - [setup.object_stores.store_one] - description = "My first object store" - [setup.object_stores.store_one.items.foo] + [setup.kv_stores.store_one] + description = "My first kv store" + [setup.kv_stores.store_one.items.foo] value = "my default value for foo" description = "a good description about foo" - [setup.object_stores.store_one.items.bar] + [setup.kv_stores.store_one.items.bar] value = "my default value for bar" description = "a good description about bar" `, @@ -1732,31 +1732,31 @@ func TestDeploy(t *testing.T) { "Y", // when prompted to create a new service }, wantOutput: []string{ - "Creating object store 'store_one'", - "Creating object store key 'foo'", - "Creating object store key 'bar'", + "Creating kv store 'store_one'", + "Creating kv store key 'foo'", + "Creating kv store key 'bar'", "Uploading package", "Activating service", "SUCCESS: Deployed package (service 12345, version 1)", }, }, { - name: "success with setup.object_stores configuration and no existing service and no predefined values", + name: "success with setup.kv_stores configuration and no existing service and no predefined values", args: args("compute deploy --token 123"), api: mock.API{ - ActivateVersionFn: activateVersionOk, - CreateBackendFn: createBackendOK, - CreateObjectStoreFn: createObjectStoreOK, - InsertObjectStoreKeyFn: createObjectStoreItemOK, - CreateResourceFn: createResourceOK, - CreateDomainFn: createDomainOK, - CreateServiceFn: createServiceOK, - GetPackageFn: getPackageOk, - GetServiceFn: getServiceOK, - GetServiceDetailsFn: getServiceDetailsWasm, - ListDomainsFn: listDomainsOk, - ListVersionsFn: testutil.ListVersions, - UpdatePackageFn: updatePackageOk, + ActivateVersionFn: activateVersionOk, + CreateBackendFn: createBackendOK, + CreateKVStoreFn: createKVStoreOK, + InsertKVStoreKeyFn: createKVStoreItemOK, + CreateResourceFn: createResourceOK, + CreateDomainFn: createDomainOK, + CreateServiceFn: createServiceOK, + GetPackageFn: getPackageOk, + GetServiceFn: getServiceOK, + GetServiceDetailsFn: getServiceDetailsWasm, + ListDomainsFn: listDomainsOk, + ListVersionsFn: testutil.ListVersions, + UpdatePackageFn: updatePackageOk, }, httpClientRes: []*http.Response{ { @@ -1773,20 +1773,20 @@ func TestDeploy(t *testing.T) { manifest_version = 2 language = "rust" - [setup.object_stores.store_one] - [setup.object_stores.store_one.items.foo] - [setup.object_stores.store_one.items.bar] + [setup.kv_stores.store_one] + [setup.kv_stores.store_one.items.foo] + [setup.kv_stores.store_one.items.bar] `, stdin: []string{ "Y", // when prompted to create a new service }, wantOutput: []string{ - "Configuring object store 'store_one'", - "Create an object store key called 'foo'", - "Create an object store key called 'bar'", - "Creating object store 'store_one'", - "Creating object store key 'foo'", - "Creating object store key 'bar'", + "Configuring kv store 'store_one'", + "Create an kv store key called 'foo'", + "Create an kv store key called 'bar'", + "Creating kv store 'store_one'", + "Creating kv store key 'foo'", + "Creating kv store key 'bar'", "Uploading package", "Activating service", "SUCCESS: Deployed package (service 12345, version 1)", @@ -1796,7 +1796,7 @@ func TestDeploy(t *testing.T) { // be present in the stdout/stderr as the [setup/dictionaries] // configuration does not define them. dontWantOutput: []string{ - "My first object store", + "My first kv store", "my default value for foo", "my default value for bar", }, diff --git a/pkg/commands/compute/setup/backend.go b/pkg/commands/compute/setup/backend.go index a3c37ff41..bf86ba9ef 100644 --- a/pkg/commands/compute/setup/backend.go +++ b/pkg/commands/compute/setup/backend.go @@ -11,7 +11,7 @@ import ( "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // Backends represents the service state related to backends defined within the diff --git a/pkg/commands/compute/setup/dictionary.go b/pkg/commands/compute/setup/dictionary.go index ce5642c6a..b3e9a32e0 100644 --- a/pkg/commands/compute/setup/dictionary.go +++ b/pkg/commands/compute/setup/dictionary.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // Dictionaries represents the service state related to dictionaries defined diff --git a/pkg/commands/compute/setup/domain.go b/pkg/commands/compute/setup/domain.go index fe7837ce2..943093d09 100644 --- a/pkg/commands/compute/setup/domain.go +++ b/pkg/commands/compute/setup/domain.go @@ -11,7 +11,7 @@ import ( "github.com/fastly/cli/pkg/api" "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) const defaultTopLevelDomain = "edgecompute.app" diff --git a/pkg/commands/compute/setup/object_store.go b/pkg/commands/compute/setup/kv_store.go similarity index 66% rename from pkg/commands/compute/setup/object_store.go rename to pkg/commands/compute/setup/kv_store.go index 2a9085a74..6a2298c91 100644 --- a/pkg/commands/compute/setup/object_store.go +++ b/pkg/commands/compute/setup/kv_store.go @@ -8,14 +8,14 @@ import ( "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) -// ObjectStores represents the service state related to object stores defined +// KVStores represents the service state related to kv stores defined // within the fastly.toml [setup] configuration. // // NOTE: It implements the setup.Interface interface. -type ObjectStores struct { +type KVStores struct { // Public APIClient api.Interface AcceptDefaults bool @@ -23,40 +23,40 @@ type ObjectStores struct { Spinner text.Spinner ServiceID string ServiceVersion int - Setup map[string]*manifest.SetupObjectStore + Setup map[string]*manifest.SetupKVStore Stdin io.Reader Stdout io.Writer // Private - required []ObjectStore + required []KVStore } -// ObjectStore represents the configuration parameters for creating an -// object store via the API client. -type ObjectStore struct { +// KVStore represents the configuration parameters for creating an +// kv store via the API client. +type KVStore struct { Name string - Items []ObjectStoreItem + Items []KVStoreItem } -// ObjectStoreItem represents the configuration parameters for creating -// object store items via the API client. -type ObjectStoreItem struct { +// KVStoreItem represents the configuration parameters for creating +// kv store items via the API client. +type KVStoreItem struct { Key string Value string } // Configure prompts the user for specific values related to the service resource. -func (o *ObjectStores) Configure() error { +func (o *KVStores) Configure() error { for name, settings := range o.Setup { if !o.AcceptDefaults && !o.NonInteractive { text.Break(o.Stdout) - text.Output(o.Stdout, "Configuring object store '%s'", name) + text.Output(o.Stdout, "Configuring kv store '%s'", name) if settings.Description != "" { text.Output(o.Stdout, settings.Description) } } - var items []ObjectStoreItem + var items []KVStoreItem for key, item := range settings.Items { dv := "example" @@ -72,7 +72,7 @@ func (o *ObjectStores) Configure() error { if !o.AcceptDefaults && !o.NonInteractive { text.Break(o.Stdout) - text.Output(o.Stdout, "Create an object store key called '%s'", key) + text.Output(o.Stdout, "Create an kv store key called '%s'", key) if item.Description != "" { text.Output(o.Stdout, item.Description) } @@ -88,13 +88,13 @@ func (o *ObjectStores) Configure() error { value = dv } - items = append(items, ObjectStoreItem{ + items = append(items, KVStoreItem{ Key: key, Value: value, }) } - o.required = append(o.required, ObjectStore{ + o.required = append(o.required, KVStore{ Name: name, Items: items, }) @@ -104,24 +104,24 @@ func (o *ObjectStores) Configure() error { } // Create calls the relevant API to create the service resource(s). -func (o *ObjectStores) Create() error { +func (o *KVStores) Create() error { if o.Spinner == nil { return errors.RemediationError{ - Inner: fmt.Errorf("internal logic error: no text.Progress configured for setup.ObjectStores"), + Inner: fmt.Errorf("internal logic error: no text.Progress configured for setup.KVStores"), Remediation: errors.BugRemediation, } } - for _, objectStore := range o.required { + for _, kvStore := range o.required { err := o.Spinner.Start() if err != nil { return err } - msg := fmt.Sprintf("Creating object store '%s'", objectStore.Name) + msg := fmt.Sprintf("Creating kv store '%s'", kvStore.Name) o.Spinner.Message(msg + "...") - store, err := o.APIClient.CreateObjectStore(&fastly.CreateObjectStoreInput{ - Name: objectStore.Name, + store, err := o.APIClient.CreateKVStore(&fastly.CreateKVStoreInput{ + Name: kvStore.Name, }) if err != nil { o.Spinner.StopFailMessage(msg) @@ -129,7 +129,7 @@ func (o *ObjectStores) Create() error { if err != nil { return err } - return fmt.Errorf("error creating object store: %w", err) + return fmt.Errorf("error creating kv store: %w", err) } o.Spinner.StopMessage(msg) @@ -138,16 +138,16 @@ func (o *ObjectStores) Create() error { return err } - if len(objectStore.Items) > 0 { - for _, item := range objectStore.Items { + if len(kvStore.Items) > 0 { + for _, item := range kvStore.Items { err := o.Spinner.Start() if err != nil { return err } - msg := fmt.Sprintf("Creating object store key '%s'...", item.Key) + msg := fmt.Sprintf("Creating kv store key '%s'...", item.Key) o.Spinner.Message(msg) - err = o.APIClient.InsertObjectStoreKey(&fastly.InsertObjectStoreKeyInput{ + err = o.APIClient.InsertKVStoreKey(&fastly.InsertKVStoreKeyInput{ ID: store.ID, Key: item.Key, Value: item.Value, @@ -158,7 +158,7 @@ func (o *ObjectStores) Create() error { if err != nil { return err } - return fmt.Errorf("error creating object store key: %w", err) + return fmt.Errorf("error creating kv store key: %w", err) } o.Spinner.StopMessage(msg) @@ -173,10 +173,10 @@ func (o *ObjectStores) Create() error { if err != nil { return err } - msg = fmt.Sprintf("Creating resource link between service and object store '%s'...", objectStore.Name) + msg = fmt.Sprintf("Creating resource link between service and kv store '%s'...", kvStore.Name) o.Spinner.Message(msg) - // IMPORTANT: We need to link the object store to the C@E Service. + // IMPORTANT: We need to link the kv store to the C@E Service. _, err = o.APIClient.CreateResource(&fastly.CreateResourceInput{ ServiceID: o.ServiceID, ServiceVersion: o.ServiceVersion, @@ -189,7 +189,7 @@ func (o *ObjectStores) Create() error { if err != nil { return err } - return fmt.Errorf("error creating resource link between the service '%s' and the object store '%s': %w", o.ServiceID, store.Name, err) + return fmt.Errorf("error creating resource link between the service '%s' and the kv store '%s': %w", o.ServiceID, store.Name, err) } o.Spinner.StopMessage(msg) @@ -204,6 +204,6 @@ func (o *ObjectStores) Create() error { // Predefined indicates if the service resource has been specified within the // fastly.toml file using a [setup] configuration block. -func (o *ObjectStores) Predefined() bool { +func (o *KVStores) Predefined() bool { return len(o.Setup) > 0 } diff --git a/pkg/commands/compute/testdata/init/fastly-viceroy-update.toml b/pkg/commands/compute/testdata/init/fastly-viceroy-update.toml index 9be1438a5..5e1eabdc6 100644 --- a/pkg/commands/compute/testdata/init/fastly-viceroy-update.toml +++ b/pkg/commands/compute/testdata/init/fastly-viceroy-update.toml @@ -35,14 +35,14 @@ name = "Default Rust template" baz = """ qux""" - [local_server.object_stores] + [local_server.kv_stores] store_one = [{key = "first", data = "This is some data"}, {key = "second", path = "strings.json"}] - [[local_server.object_stores.store_two]] + [[local_server.kv_stores.store_two]] key = "first" data = "This is some data" - [[local_server.object_stores.store_two]] + [[local_server.kv_stores.store_two]] key = "second" file = "strings.json" diff --git a/pkg/commands/compute/update.go b/pkg/commands/compute/update.go index fbd9485df..eaf7159fc 100644 --- a/pkg/commands/compute/update.go +++ b/pkg/commands/compute/update.go @@ -11,7 +11,7 @@ import ( "github.com/fastly/cli/pkg/lookup" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" "github.com/kennygrant/sanitize" ) diff --git a/pkg/commands/configstore/configstore_test.go b/pkg/commands/configstore/configstore_test.go index 1edb116f4..626f1a3ac 100644 --- a/pkg/commands/configstore/configstore_test.go +++ b/pkg/commands/configstore/configstore_test.go @@ -12,7 +12,7 @@ import ( fstfmt "github.com/fastly/cli/pkg/fmt" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateStoreCommand(t *testing.T) { diff --git a/pkg/commands/configstore/create.go b/pkg/commands/configstore/create.go index ea3b6a79a..106cf0a5f 100644 --- a/pkg/commands/configstore/create.go +++ b/pkg/commands/configstore/create.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewCreateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/configstore/delete.go b/pkg/commands/configstore/delete.go index 8af219c27..cf657b860 100644 --- a/pkg/commands/configstore/delete.go +++ b/pkg/commands/configstore/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDeleteCommand returns a usable command registered under the parent. diff --git a/pkg/commands/configstore/describe.go b/pkg/commands/configstore/describe.go index 1c14bc022..bd5373757 100644 --- a/pkg/commands/configstore/describe.go +++ b/pkg/commands/configstore/describe.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDescribeCommand returns a usable command registered under the parent. diff --git a/pkg/commands/configstore/helper_test.go b/pkg/commands/configstore/helper_test.go index 16e728a02..2c6f06ba7 100644 --- a/pkg/commands/configstore/helper_test.go +++ b/pkg/commands/configstore/helper_test.go @@ -4,7 +4,7 @@ import ( "bytes" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func fmtStore(cs *fastly.ConfigStore, csm *fastly.ConfigStoreMetadata) string { diff --git a/pkg/commands/configstore/list_services.go b/pkg/commands/configstore/list_services.go index 4e0c766d5..1d96131d6 100644 --- a/pkg/commands/configstore/list_services.go +++ b/pkg/commands/configstore/list_services.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewListServicesCommand returns a usable command registered under the parent. diff --git a/pkg/commands/configstore/update.go b/pkg/commands/configstore/update.go index a8657d333..1c868ae25 100644 --- a/pkg/commands/configstore/update.go +++ b/pkg/commands/configstore/update.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewUpdateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/configstoreentry/configstoreentry_test.go b/pkg/commands/configstoreentry/configstoreentry_test.go index e365e41c8..b9494f31d 100644 --- a/pkg/commands/configstoreentry/configstoreentry_test.go +++ b/pkg/commands/configstoreentry/configstoreentry_test.go @@ -13,7 +13,7 @@ import ( "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateEntryCommand(t *testing.T) { diff --git a/pkg/commands/configstoreentry/create.go b/pkg/commands/configstoreentry/create.go index 084f217d9..f629474d7 100644 --- a/pkg/commands/configstoreentry/create.go +++ b/pkg/commands/configstoreentry/create.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewCreateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/configstoreentry/delete.go b/pkg/commands/configstoreentry/delete.go index cbbeedeac..578b824f5 100644 --- a/pkg/commands/configstoreentry/delete.go +++ b/pkg/commands/configstoreentry/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDeleteCommand returns a usable command registered under the parent. diff --git a/pkg/commands/configstoreentry/describe.go b/pkg/commands/configstoreentry/describe.go index f32548941..2561c2a3e 100644 --- a/pkg/commands/configstoreentry/describe.go +++ b/pkg/commands/configstoreentry/describe.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDescribeCommand returns a usable command registered under the parent. diff --git a/pkg/commands/configstoreentry/list.go b/pkg/commands/configstoreentry/list.go index a41a0a13a..b9bb74823 100644 --- a/pkg/commands/configstoreentry/list.go +++ b/pkg/commands/configstoreentry/list.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewListCommand returns a usable command registered under the parent. diff --git a/pkg/commands/configstoreentry/update.go b/pkg/commands/configstoreentry/update.go index 862896b1d..a89bd12b2 100644 --- a/pkg/commands/configstoreentry/update.go +++ b/pkg/commands/configstoreentry/update.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewUpdateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/dictionary/create.go b/pkg/commands/dictionary/create.go index 9cec8b0aa..cdd41ca90 100644 --- a/pkg/commands/dictionary/create.go +++ b/pkg/commands/dictionary/create.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create a service. diff --git a/pkg/commands/dictionary/delete.go b/pkg/commands/dictionary/delete.go index 74822fad6..24096c949 100644 --- a/pkg/commands/dictionary/delete.go +++ b/pkg/commands/dictionary/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete a service. diff --git a/pkg/commands/dictionary/describe.go b/pkg/commands/dictionary/describe.go index 3b57f30b6..329821759 100644 --- a/pkg/commands/dictionary/describe.go +++ b/pkg/commands/dictionary/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a dictionary. diff --git a/pkg/commands/dictionary/dictionary_test.go b/pkg/commands/dictionary/dictionary_test.go index 026ecc99b..8e2286f54 100644 --- a/pkg/commands/dictionary/dictionary_test.go +++ b/pkg/commands/dictionary/dictionary_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestDictionaryDescribe(t *testing.T) { diff --git a/pkg/commands/dictionary/list.go b/pkg/commands/dictionary/list.go index ed5f83a07..a719d1593 100644 --- a/pkg/commands/dictionary/list.go +++ b/pkg/commands/dictionary/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list dictionaries diff --git a/pkg/commands/dictionary/update.go b/pkg/commands/dictionary/update.go index 47b7fddeb..e6212fd92 100644 --- a/pkg/commands/dictionary/update.go +++ b/pkg/commands/dictionary/update.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update a dictionary. diff --git a/pkg/commands/dictionaryentry/create.go b/pkg/commands/dictionaryentry/create.go index ebc55f489..0e1faa53c 100644 --- a/pkg/commands/dictionaryentry/create.go +++ b/pkg/commands/dictionaryentry/create.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create a dictionary item. diff --git a/pkg/commands/dictionaryentry/delete.go b/pkg/commands/dictionaryentry/delete.go index 91d2615fb..4d5eab2d0 100644 --- a/pkg/commands/dictionaryentry/delete.go +++ b/pkg/commands/dictionaryentry/delete.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete a service. diff --git a/pkg/commands/dictionaryentry/describe.go b/pkg/commands/dictionaryentry/describe.go index 91de8a2ee..009b1d773 100644 --- a/pkg/commands/dictionaryentry/describe.go +++ b/pkg/commands/dictionaryentry/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a dictionary item. diff --git a/pkg/commands/dictionaryentry/dictionaryitem_test.go b/pkg/commands/dictionaryentry/dictionaryitem_test.go index 890d87a72..666ad2524 100644 --- a/pkg/commands/dictionaryentry/dictionaryitem_test.go +++ b/pkg/commands/dictionaryentry/dictionaryitem_test.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestDictionaryItemDescribe(t *testing.T) { diff --git a/pkg/commands/dictionaryentry/list.go b/pkg/commands/dictionaryentry/list.go index 0ad0a68bb..4aeb0e92a 100644 --- a/pkg/commands/dictionaryentry/list.go +++ b/pkg/commands/dictionaryentry/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list dictionary items. diff --git a/pkg/commands/dictionaryentry/update.go b/pkg/commands/dictionaryentry/update.go index 12d47c692..4a8491558 100644 --- a/pkg/commands/dictionaryentry/update.go +++ b/pkg/commands/dictionaryentry/update.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update a dictionary item. diff --git a/pkg/commands/domain/create.go b/pkg/commands/domain/create.go index 264fe2c89..85e664057 100644 --- a/pkg/commands/domain/create.go +++ b/pkg/commands/domain/create.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create domains. diff --git a/pkg/commands/domain/delete.go b/pkg/commands/domain/delete.go index 733fe9d51..076d1f36e 100644 --- a/pkg/commands/domain/delete.go +++ b/pkg/commands/domain/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete domains. diff --git a/pkg/commands/domain/describe.go b/pkg/commands/domain/describe.go index db2613c4b..0da05870f 100644 --- a/pkg/commands/domain/describe.go +++ b/pkg/commands/domain/describe.go @@ -9,7 +9,7 @@ import ( fsterr "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a domain. diff --git a/pkg/commands/domain/domain_test.go b/pkg/commands/domain/domain_test.go index 99ee53476..2e0ceeb5f 100644 --- a/pkg/commands/domain/domain_test.go +++ b/pkg/commands/domain/domain_test.go @@ -11,7 +11,7 @@ import ( fsterr "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestDomainCreate(t *testing.T) { diff --git a/pkg/commands/domain/list.go b/pkg/commands/domain/list.go index b794b99ef..0f5680767 100644 --- a/pkg/commands/domain/list.go +++ b/pkg/commands/domain/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list domains. diff --git a/pkg/commands/domain/update.go b/pkg/commands/domain/update.go index a52a18607..0eeb2eb91 100644 --- a/pkg/commands/domain/update.go +++ b/pkg/commands/domain/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update domains. diff --git a/pkg/commands/domain/validate.go b/pkg/commands/domain/validate.go index 28f6dbcd9..6482396b9 100644 --- a/pkg/commands/domain/validate.go +++ b/pkg/commands/domain/validate.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/lookup" "github.com/fastly/cli/pkg/manifest" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewValidateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/healthcheck/create.go b/pkg/commands/healthcheck/create.go index 3523828f6..dfed5b3d3 100644 --- a/pkg/commands/healthcheck/create.go +++ b/pkg/commands/healthcheck/create.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create healthchecks. diff --git a/pkg/commands/healthcheck/delete.go b/pkg/commands/healthcheck/delete.go index 302af9523..cc25ab831 100644 --- a/pkg/commands/healthcheck/delete.go +++ b/pkg/commands/healthcheck/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete healthchecks. diff --git a/pkg/commands/healthcheck/describe.go b/pkg/commands/healthcheck/describe.go index 25a81fcd4..bc730bca0 100644 --- a/pkg/commands/healthcheck/describe.go +++ b/pkg/commands/healthcheck/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a healthcheck. diff --git a/pkg/commands/healthcheck/healthcheck_test.go b/pkg/commands/healthcheck/healthcheck_test.go index 8b885dd61..161933340 100644 --- a/pkg/commands/healthcheck/healthcheck_test.go +++ b/pkg/commands/healthcheck/healthcheck_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestHealthCheckCreate(t *testing.T) { diff --git a/pkg/commands/healthcheck/list.go b/pkg/commands/healthcheck/list.go index ffebe7b41..2a74bf5ee 100644 --- a/pkg/commands/healthcheck/list.go +++ b/pkg/commands/healthcheck/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list healthchecks. diff --git a/pkg/commands/healthcheck/update.go b/pkg/commands/healthcheck/update.go index d4cdd91f9..143c8b74e 100644 --- a/pkg/commands/healthcheck/update.go +++ b/pkg/commands/healthcheck/update.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update healthchecks. diff --git a/pkg/commands/ip/ip_test.go b/pkg/commands/ip/ip_test.go index b9b099e89..942887cd6 100644 --- a/pkg/commands/ip/ip_test.go +++ b/pkg/commands/ip/ip_test.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestAllIPs(t *testing.T) { diff --git a/pkg/commands/objectstore/create.go b/pkg/commands/kvstore/create.go similarity index 73% rename from pkg/commands/objectstore/create.go rename to pkg/commands/kvstore/create.go index 8d3cbdb7b..87d14866d 100644 --- a/pkg/commands/objectstore/create.go +++ b/pkg/commands/kvstore/create.go @@ -1,4 +1,4 @@ -package objectstore +package kvstore import ( "encoding/json" @@ -10,15 +10,15 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) -// CreateCommand calls the Fastly API to create an object store. +// CreateCommand calls the Fastly API to create an kv store. type CreateCommand struct { cmd.Base json bool manifest manifest.Data - Input fastly.CreateObjectStoreInput + Input fastly.CreateKVStoreInput } // NewCreateCommand returns a usable command registered under the parent. @@ -29,8 +29,8 @@ func NewCreateCommand(parent cmd.Registerer, g *global.Data, m manifest.Data) *C }, manifest: m, } - c.CmdClause = parent.Command("create", "Create an object store") - c.CmdClause.Flag("name", "Name of Object Store").Short('n').Required().StringVar(&c.Input.Name) + c.CmdClause = parent.Command("create", "Create an kv store") + c.CmdClause.Flag("name", "Name of KV Store").Short('n').Required().StringVar(&c.Input.Name) c.RegisterFlagBool(cmd.BoolFlagOpts{ Name: cmd.FlagJSONName, Description: cmd.FlagJSONDesc, @@ -46,7 +46,7 @@ func (c *CreateCommand) Exec(_ io.Reader, out io.Writer) error { return fsterr.ErrInvalidVerboseJSONCombo } - o, err := c.Globals.APIClient.CreateObjectStore(&c.Input) + o, err := c.Globals.APIClient.CreateKVStore(&c.Input) if err != nil { c.Globals.ErrLog.Add(err) return err @@ -65,6 +65,6 @@ func (c *CreateCommand) Exec(_ io.Reader, out io.Writer) error { return nil } - text.Success(out, "Created object store %s (name %s)", o.ID, o.Name) + text.Success(out, "Created kv store %s (name %s)", o.ID, o.Name) return nil } diff --git a/pkg/commands/objectstore/delete.go b/pkg/commands/kvstore/delete.go similarity index 68% rename from pkg/commands/objectstore/delete.go rename to pkg/commands/kvstore/delete.go index ee13cf1d1..c9e7b0c81 100644 --- a/pkg/commands/objectstore/delete.go +++ b/pkg/commands/kvstore/delete.go @@ -1,4 +1,4 @@ -package objectstore +package kvstore import ( "io" @@ -7,14 +7,14 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) -// DeleteCommand calls the Fastly API to delete an object store. +// DeleteCommand calls the Fastly API to delete an kv store. type DeleteCommand struct { cmd.Base manifest manifest.Data - Input fastly.DeleteObjectStoreInput + Input fastly.DeleteKVStoreInput } // NewDeleteCommand returns a usable command registered under the parent. @@ -25,19 +25,19 @@ func NewDeleteCommand(parent cmd.Registerer, g *global.Data, m manifest.Data) *D }, manifest: m, } - c.CmdClause = parent.Command("delete", "Delete an object store") + c.CmdClause = parent.Command("delete", "Delete an kv store") c.CmdClause.Flag("store-id", "Store ID").Short('s').Required().StringVar(&c.Input.ID) return &c } // Exec invokes the application logic for the command. func (c *DeleteCommand) Exec(_ io.Reader, out io.Writer) error { - err := c.Globals.APIClient.DeleteObjectStore(&c.Input) + err := c.Globals.APIClient.DeleteKVStore(&c.Input) if err != nil { c.Globals.ErrLog.Add(err) return err } - text.Success(out, "Deleted object store ID %s", c.Input.ID) + text.Success(out, "Deleted kv store ID %s", c.Input.ID) return nil } diff --git a/pkg/commands/objectstore/describe.go b/pkg/commands/kvstore/describe.go similarity index 82% rename from pkg/commands/objectstore/describe.go rename to pkg/commands/kvstore/describe.go index ad3f14729..9a44b54f2 100644 --- a/pkg/commands/objectstore/describe.go +++ b/pkg/commands/kvstore/describe.go @@ -1,4 +1,4 @@ -package objectstore +package kvstore import ( "encoding/json" @@ -10,15 +10,15 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) -// DescribeCommand calls the Fastly API to fetch the value of a key from an object store. +// DescribeCommand calls the Fastly API to fetch the value of a key from an kv store. type DescribeCommand struct { cmd.Base json bool manifest manifest.Data - Input fastly.GetObjectStoreInput + Input fastly.GetKVStoreInput } // NewDescribeCommand returns a usable command registered under the parent. @@ -29,7 +29,7 @@ func NewDescribeCommand(parent cmd.Registerer, g *global.Data, m manifest.Data) }, manifest: m, } - c.CmdClause = parent.Command("describe", "Describe an object store").Alias("get") + c.CmdClause = parent.Command("describe", "Describe an kv store").Alias("get") c.CmdClause.Flag("store-id", "Store ID").Short('s').Required().StringVar(&c.Input.ID) // optional @@ -49,7 +49,7 @@ func (c *DescribeCommand) Exec(_ io.Reader, out io.Writer) error { return fsterr.ErrInvalidVerboseJSONCombo } - o, err := c.Globals.APIClient.GetObjectStore(&c.Input) + o, err := c.Globals.APIClient.GetKVStore(&c.Input) if err != nil { c.Globals.ErrLog.Add(err) return err @@ -68,6 +68,6 @@ func (c *DescribeCommand) Exec(_ io.Reader, out io.Writer) error { return nil } - text.PrintObjectStore(out, "", o) + text.PrintKVStore(out, "", o) return nil } diff --git a/pkg/commands/kvstore/doc.go b/pkg/commands/kvstore/doc.go new file mode 100644 index 000000000..bad798725 --- /dev/null +++ b/pkg/commands/kvstore/doc.go @@ -0,0 +1,3 @@ +// Package kvstore contains commands to inspect and manipulate Fastly edge +// kv stores. +package kvstore diff --git a/pkg/commands/objectstore/insert.go b/pkg/commands/kvstore/insert.go similarity index 71% rename from pkg/commands/objectstore/insert.go rename to pkg/commands/kvstore/insert.go index 63b21bdf5..5baf03056 100644 --- a/pkg/commands/objectstore/insert.go +++ b/pkg/commands/kvstore/insert.go @@ -1,4 +1,4 @@ -package objectstore +package kvstore import ( "io" @@ -7,14 +7,14 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) -// InsertKeyCommand calls the Fastly API to insert a key into an object store. +// InsertKeyCommand calls the Fastly API to insert a key into an kv store. type InsertKeyCommand struct { cmd.Base manifest manifest.Data - Input fastly.InsertObjectStoreKeyInput + Input fastly.InsertKVStoreKeyInput } // NewInsertKeyCommand returns a usable command registered under the parent. @@ -22,8 +22,8 @@ func NewInsertKeyCommand(parent cmd.Registerer, g *global.Data, m manifest.Data) var c InsertKeyCommand c.Globals = g c.manifest = m - c.CmdClause = parent.Command("insert", "Insert key/value pair into a Fastly object store") - c.CmdClause.Flag("id", "ID of Object Store").Short('n').Required().StringVar(&c.Input.ID) + c.CmdClause = parent.Command("insert", "Insert key/value pair into a Fastly kv store") + c.CmdClause.Flag("id", "ID of KV Store").Short('n').Required().StringVar(&c.Input.ID) c.CmdClause.Flag("key", "Key to insert").Short('k').Required().StringVar(&c.Input.Key) c.CmdClause.Flag("value", "Value to insert").Required().StringVar(&c.Input.Value) @@ -32,12 +32,12 @@ func NewInsertKeyCommand(parent cmd.Registerer, g *global.Data, m manifest.Data) // Exec invokes the application logic for the command. func (c *InsertKeyCommand) Exec(_ io.Reader, out io.Writer) error { - err := c.Globals.APIClient.InsertObjectStoreKey(&c.Input) + err := c.Globals.APIClient.InsertKVStoreKey(&c.Input) if err != nil { c.Globals.ErrLog.Add(err) return err } - text.Success(out, "Inserted key %s into object store %s", c.Input.Key, c.Input.ID) + text.Success(out, "Inserted key %s into kv store %s", c.Input.Key, c.Input.ID) return nil } diff --git a/pkg/commands/objectstore/list.go b/pkg/commands/kvstore/list.go similarity index 80% rename from pkg/commands/objectstore/list.go rename to pkg/commands/kvstore/list.go index 32ec7c859..54d06d802 100644 --- a/pkg/commands/objectstore/list.go +++ b/pkg/commands/kvstore/list.go @@ -1,4 +1,4 @@ -package objectstore +package kvstore import ( "encoding/json" @@ -10,15 +10,15 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) -// ListCommand calls the Fastly API to list the available object stores. +// ListCommand calls the Fastly API to list the available kv stores. type ListCommand struct { cmd.Base json bool manifest manifest.Data - Input fastly.ListObjectStoresInput + Input fastly.ListKVStoresInput } // NewListCommand returns a usable command registered under the parent. @@ -29,7 +29,7 @@ func NewListCommand(parent cmd.Registerer, g *global.Data, m manifest.Data) *Lis }, manifest: m, } - c.CmdClause = parent.Command("list", "List object stores") + c.CmdClause = parent.Command("list", "List kv stores") // optional c.RegisterFlagBool(cmd.BoolFlagOpts{ @@ -48,7 +48,7 @@ func (c *ListCommand) Exec(_ io.Reader, out io.Writer) error { return fsterr.ErrInvalidVerboseJSONCombo } - o, err := c.Globals.APIClient.ListObjectStores(&c.Input) + o, err := c.Globals.APIClient.ListKVStores(&c.Input) if err != nil { c.Globals.ErrLog.Add(err) return err @@ -70,7 +70,7 @@ func (c *ListCommand) Exec(_ io.Reader, out io.Writer) error { for _, o := range o.Data { // avoid gosec loop aliasing check :/ o := o - text.PrintObjectStore(out, "", &o) + text.PrintKVStore(out, "", &o) } return nil diff --git a/pkg/commands/objectstore/root.go b/pkg/commands/kvstore/root.go similarity index 85% rename from pkg/commands/objectstore/root.go rename to pkg/commands/kvstore/root.go index 30e3c4798..2db09c6fe 100644 --- a/pkg/commands/objectstore/root.go +++ b/pkg/commands/kvstore/root.go @@ -1,4 +1,4 @@ -package objectstore +package kvstore import ( "io" @@ -18,7 +18,7 @@ type RootCommand struct { func NewRootCommand(parent cmd.Registerer, g *global.Data) *RootCommand { var c RootCommand c.Globals = g - c.CmdClause = parent.Command("object-store", "Manipulate Fastly Object Stores") + c.CmdClause = parent.Command("kv-store", "Manipulate Fastly KV Stores") return &c } diff --git a/pkg/commands/objectstoreentry/create.go b/pkg/commands/kvstoreentry/create.go similarity index 75% rename from pkg/commands/objectstoreentry/create.go rename to pkg/commands/kvstoreentry/create.go index ab6da1851..8fc067ef7 100644 --- a/pkg/commands/objectstoreentry/create.go +++ b/pkg/commands/kvstoreentry/create.go @@ -1,4 +1,4 @@ -package objectstoreentry +package kvstoreentry import ( "io" @@ -7,14 +7,14 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) -// CreateCommand calls the Fastly API to insert a key into an object store. +// CreateCommand calls the Fastly API to insert a key into an kv store. type CreateCommand struct { cmd.Base manifest manifest.Data - Input fastly.InsertObjectStoreKeyInput + Input fastly.InsertKVStoreKeyInput } // NewCreateCommand returns a usable command registered under the parent. @@ -34,12 +34,12 @@ func NewCreateCommand(parent cmd.Registerer, g *global.Data, m manifest.Data) *C // Exec invokes the application logic for the command. func (c *CreateCommand) Exec(_ io.Reader, out io.Writer) error { - err := c.Globals.APIClient.InsertObjectStoreKey(&c.Input) + err := c.Globals.APIClient.InsertKVStoreKey(&c.Input) if err != nil { c.Globals.ErrLog.Add(err) return err } - text.Success(out, "Inserted key %s into object store %s", c.Input.Key, c.Input.ID) + text.Success(out, "Inserted key %s into kv store %s", c.Input.Key, c.Input.ID) return nil } diff --git a/pkg/commands/objectstoreentry/delete.go b/pkg/commands/kvstoreentry/delete.go similarity index 80% rename from pkg/commands/objectstoreentry/delete.go rename to pkg/commands/kvstoreentry/delete.go index f656af12e..aaba17ba1 100644 --- a/pkg/commands/objectstoreentry/delete.go +++ b/pkg/commands/kvstoreentry/delete.go @@ -1,4 +1,4 @@ -package objectstoreentry +package kvstoreentry import ( "io" @@ -7,14 +7,14 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) -// DeleteCommand calls the Fastly API to delete an object store. +// DeleteCommand calls the Fastly API to delete an kv store. type DeleteCommand struct { cmd.Base manifest manifest.Data - Input fastly.DeleteObjectStoreKeyInput + Input fastly.DeleteKVStoreKeyInput } // NewDeleteCommand returns a usable command registered under the parent. @@ -33,7 +33,7 @@ func NewDeleteCommand(parent cmd.Registerer, g *global.Data, m manifest.Data) *D // Exec invokes the application logic for the command. func (c *DeleteCommand) Exec(_ io.Reader, out io.Writer) error { - err := c.Globals.APIClient.DeleteObjectStoreKey(&c.Input) + err := c.Globals.APIClient.DeleteKVStoreKey(&c.Input) if err != nil { c.Globals.ErrLog.Add(err) return err diff --git a/pkg/commands/objectstoreentry/describe.go b/pkg/commands/kvstoreentry/describe.go similarity index 85% rename from pkg/commands/objectstoreentry/describe.go rename to pkg/commands/kvstoreentry/describe.go index 21d5affbf..7bd6418f8 100644 --- a/pkg/commands/objectstoreentry/describe.go +++ b/pkg/commands/kvstoreentry/describe.go @@ -1,4 +1,4 @@ -package objectstoreentry +package kvstoreentry import ( "io" @@ -8,15 +8,15 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) -// DescribeCommand calls the Fastly API to fetch the value of a key from an object store. +// DescribeCommand calls the Fastly API to fetch the value of a key from an kv store. type DescribeCommand struct { cmd.Base json bool manifest manifest.Data - Input fastly.GetObjectStoreKeyInput + Input fastly.GetKVStoreKeyInput } // NewDescribeCommand returns a usable command registered under the parent. @@ -48,7 +48,7 @@ func (c *DescribeCommand) Exec(_ io.Reader, out io.Writer) error { return fsterr.ErrInvalidVerboseJSONCombo } - value, err := c.Globals.APIClient.GetObjectStoreKey(&c.Input) + value, err := c.Globals.APIClient.GetKVStoreKey(&c.Input) if err != nil { c.Globals.ErrLog.Add(err) return err @@ -60,7 +60,7 @@ func (c *DescribeCommand) Exec(_ io.Reader, out io.Writer) error { } if c.Globals.Flags.Verbose { - text.PrintObjectStoreKeyValue(out, "", c.Input.Key, value) + text.PrintKVStoreKeyValue(out, "", c.Input.Key, value) return nil } diff --git a/pkg/commands/kvstoreentry/doc.go b/pkg/commands/kvstoreentry/doc.go new file mode 100644 index 000000000..9c0de9deb --- /dev/null +++ b/pkg/commands/kvstoreentry/doc.go @@ -0,0 +1,3 @@ +// Package kvstoreentry contains commands to inspect and manipulate Fastly edge +// kv stores keys. +package kvstoreentry diff --git a/pkg/commands/objectstoreentry/list.go b/pkg/commands/kvstoreentry/list.go similarity index 87% rename from pkg/commands/objectstoreentry/list.go rename to pkg/commands/kvstoreentry/list.go index 445977672..e7abd1b02 100644 --- a/pkg/commands/objectstoreentry/list.go +++ b/pkg/commands/kvstoreentry/list.go @@ -1,4 +1,4 @@ -package objectstoreentry +package kvstoreentry import ( "encoding/json" @@ -10,15 +10,15 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) -// ListCommand calls the Fastly API to list the keys for a given object store. +// ListCommand calls the Fastly API to list the keys for a given kv store. type ListCommand struct { cmd.Base json bool manifest manifest.Data - Input fastly.ListObjectStoreKeysInput + Input fastly.ListKVStoreKeysInput } // NewListCommand returns a usable command registered under the parent. @@ -48,7 +48,7 @@ func (c *ListCommand) Exec(_ io.Reader, out io.Writer) error { return fsterr.ErrInvalidVerboseJSONCombo } - o, err := c.Globals.APIClient.ListObjectStoreKeys(&c.Input) + o, err := c.Globals.APIClient.ListKVStoreKeys(&c.Input) if err != nil { c.Globals.ErrLog.Add(err) return err @@ -68,7 +68,7 @@ func (c *ListCommand) Exec(_ io.Reader, out io.Writer) error { } if c.Globals.Flags.Verbose { - text.PrintObjectStoreKeys(out, "", o.Data) + text.PrintKVStoreKeys(out, "", o.Data) return nil } diff --git a/pkg/commands/objectstoreentry/root.go b/pkg/commands/kvstoreentry/root.go similarity index 83% rename from pkg/commands/objectstoreentry/root.go rename to pkg/commands/kvstoreentry/root.go index 1bdb3d63b..d5a314f85 100644 --- a/pkg/commands/objectstoreentry/root.go +++ b/pkg/commands/kvstoreentry/root.go @@ -1,4 +1,4 @@ -package objectstoreentry +package kvstoreentry import ( "io" @@ -18,7 +18,7 @@ type RootCommand struct { func NewRootCommand(parent cmd.Registerer, g *global.Data) *RootCommand { var c RootCommand c.Globals = g - c.CmdClause = parent.Command("object-store-entry", "Manipulate Fastly Object Store keys") + c.CmdClause = parent.Command("kv-store-entry", "Manipulate Fastly KV Store keys") return &c } diff --git a/pkg/commands/logging/azureblob/azureblob_integration_test.go b/pkg/commands/logging/azureblob/azureblob_integration_test.go index 37d6a629e..3b38d6b3c 100644 --- a/pkg/commands/logging/azureblob/azureblob_integration_test.go +++ b/pkg/commands/logging/azureblob/azureblob_integration_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestBlobStorageCreate(t *testing.T) { diff --git a/pkg/commands/logging/azureblob/azureblob_test.go b/pkg/commands/logging/azureblob/azureblob_test.go index 446fb3b26..5472bcfaf 100644 --- a/pkg/commands/logging/azureblob/azureblob_test.go +++ b/pkg/commands/logging/azureblob/azureblob_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateBlobStorageInput(t *testing.T) { diff --git a/pkg/commands/logging/azureblob/create.go b/pkg/commands/logging/azureblob/create.go index de668b12e..e024c7352 100644 --- a/pkg/commands/logging/azureblob/create.go +++ b/pkg/commands/logging/azureblob/create.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create an Azure Blob Storage logging endpoint. diff --git a/pkg/commands/logging/azureblob/delete.go b/pkg/commands/logging/azureblob/delete.go index 1d4f65a9e..b77384bbb 100644 --- a/pkg/commands/logging/azureblob/delete.go +++ b/pkg/commands/logging/azureblob/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete an Azure Blob Storage logging endpoint. diff --git a/pkg/commands/logging/azureblob/describe.go b/pkg/commands/logging/azureblob/describe.go index 72115cb27..c50795cc0 100644 --- a/pkg/commands/logging/azureblob/describe.go +++ b/pkg/commands/logging/azureblob/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe an Azure Blob Storage logging endpoint. diff --git a/pkg/commands/logging/azureblob/list.go b/pkg/commands/logging/azureblob/list.go index b45ce2d17..964d3cbf7 100644 --- a/pkg/commands/logging/azureblob/list.go +++ b/pkg/commands/logging/azureblob/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list Azure Blob Storage logging endpoints. diff --git a/pkg/commands/logging/azureblob/update.go b/pkg/commands/logging/azureblob/update.go index e3df80254..75e77c2f2 100644 --- a/pkg/commands/logging/azureblob/update.go +++ b/pkg/commands/logging/azureblob/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update an Azure Blob Storage logging endpoint. diff --git a/pkg/commands/logging/bigquery/bigquery_integration_test.go b/pkg/commands/logging/bigquery/bigquery_integration_test.go index de6f8283c..d8d6dd024 100644 --- a/pkg/commands/logging/bigquery/bigquery_integration_test.go +++ b/pkg/commands/logging/bigquery/bigquery_integration_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestBigQueryCreate(t *testing.T) { diff --git a/pkg/commands/logging/bigquery/bigquery_test.go b/pkg/commands/logging/bigquery/bigquery_test.go index 455f25163..6e4388ab6 100644 --- a/pkg/commands/logging/bigquery/bigquery_test.go +++ b/pkg/commands/logging/bigquery/bigquery_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateBigQueryInput(t *testing.T) { diff --git a/pkg/commands/logging/bigquery/create.go b/pkg/commands/logging/bigquery/create.go index d17b94b3b..b4ce7a42e 100644 --- a/pkg/commands/logging/bigquery/create.go +++ b/pkg/commands/logging/bigquery/create.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create a BigQuery logging endpoint. diff --git a/pkg/commands/logging/bigquery/delete.go b/pkg/commands/logging/bigquery/delete.go index 184cafafc..fcef33e5c 100644 --- a/pkg/commands/logging/bigquery/delete.go +++ b/pkg/commands/logging/bigquery/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete a BigQuery logging endpoint. diff --git a/pkg/commands/logging/bigquery/describe.go b/pkg/commands/logging/bigquery/describe.go index fdccd9c2b..aa9b8607c 100644 --- a/pkg/commands/logging/bigquery/describe.go +++ b/pkg/commands/logging/bigquery/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a BigQuery logging endpoint. diff --git a/pkg/commands/logging/bigquery/list.go b/pkg/commands/logging/bigquery/list.go index 90b399ccf..31454564c 100644 --- a/pkg/commands/logging/bigquery/list.go +++ b/pkg/commands/logging/bigquery/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list BigQuery logging endpoints. diff --git a/pkg/commands/logging/bigquery/update.go b/pkg/commands/logging/bigquery/update.go index 76a44db8a..5868dae2c 100644 --- a/pkg/commands/logging/bigquery/update.go +++ b/pkg/commands/logging/bigquery/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update a BigQuery logging endpoint. diff --git a/pkg/commands/logging/cloudfiles/cloudfiles_integration_test.go b/pkg/commands/logging/cloudfiles/cloudfiles_integration_test.go index 3357ce489..ee022b8d4 100644 --- a/pkg/commands/logging/cloudfiles/cloudfiles_integration_test.go +++ b/pkg/commands/logging/cloudfiles/cloudfiles_integration_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCloudfilesCreate(t *testing.T) { diff --git a/pkg/commands/logging/cloudfiles/cloudfiles_test.go b/pkg/commands/logging/cloudfiles/cloudfiles_test.go index 47ba6c2e8..1178b8495 100644 --- a/pkg/commands/logging/cloudfiles/cloudfiles_test.go +++ b/pkg/commands/logging/cloudfiles/cloudfiles_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateCloudfilesInput(t *testing.T) { diff --git a/pkg/commands/logging/cloudfiles/create.go b/pkg/commands/logging/cloudfiles/create.go index a26d7b8f7..192e998b8 100644 --- a/pkg/commands/logging/cloudfiles/create.go +++ b/pkg/commands/logging/cloudfiles/create.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create a Cloudfiles logging endpoint. diff --git a/pkg/commands/logging/cloudfiles/delete.go b/pkg/commands/logging/cloudfiles/delete.go index fd9b70e36..a07bdcebd 100644 --- a/pkg/commands/logging/cloudfiles/delete.go +++ b/pkg/commands/logging/cloudfiles/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete a Cloudfiles logging endpoint. diff --git a/pkg/commands/logging/cloudfiles/describe.go b/pkg/commands/logging/cloudfiles/describe.go index c2e437458..0ee0593fd 100644 --- a/pkg/commands/logging/cloudfiles/describe.go +++ b/pkg/commands/logging/cloudfiles/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a Cloudfiles logging endpoint. diff --git a/pkg/commands/logging/cloudfiles/list.go b/pkg/commands/logging/cloudfiles/list.go index b3e04761f..dfe036185 100644 --- a/pkg/commands/logging/cloudfiles/list.go +++ b/pkg/commands/logging/cloudfiles/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list Cloudfiles logging endpoints. diff --git a/pkg/commands/logging/cloudfiles/update.go b/pkg/commands/logging/cloudfiles/update.go index 519df54b6..de49365b5 100644 --- a/pkg/commands/logging/cloudfiles/update.go +++ b/pkg/commands/logging/cloudfiles/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update a Cloudfiles logging endpoint. diff --git a/pkg/commands/logging/datadog/create.go b/pkg/commands/logging/datadog/create.go index f9e577756..5786c78f7 100644 --- a/pkg/commands/logging/datadog/create.go +++ b/pkg/commands/logging/datadog/create.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create a Datadog logging endpoint. diff --git a/pkg/commands/logging/datadog/datadog_integration_test.go b/pkg/commands/logging/datadog/datadog_integration_test.go index c5f02648b..d21b16a47 100644 --- a/pkg/commands/logging/datadog/datadog_integration_test.go +++ b/pkg/commands/logging/datadog/datadog_integration_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestDatadogCreate(t *testing.T) { diff --git a/pkg/commands/logging/datadog/datadog_test.go b/pkg/commands/logging/datadog/datadog_test.go index a2800f139..148a08c04 100644 --- a/pkg/commands/logging/datadog/datadog_test.go +++ b/pkg/commands/logging/datadog/datadog_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateDatadogInput(t *testing.T) { diff --git a/pkg/commands/logging/datadog/delete.go b/pkg/commands/logging/datadog/delete.go index 567a77733..89fad831f 100644 --- a/pkg/commands/logging/datadog/delete.go +++ b/pkg/commands/logging/datadog/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete a Datadog logging endpoint. diff --git a/pkg/commands/logging/datadog/describe.go b/pkg/commands/logging/datadog/describe.go index c47412fdc..8995bce7c 100644 --- a/pkg/commands/logging/datadog/describe.go +++ b/pkg/commands/logging/datadog/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a Datadog logging endpoint. diff --git a/pkg/commands/logging/datadog/list.go b/pkg/commands/logging/datadog/list.go index 83b2d094c..2d87b390d 100644 --- a/pkg/commands/logging/datadog/list.go +++ b/pkg/commands/logging/datadog/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list Datadog logging endpoints. diff --git a/pkg/commands/logging/datadog/update.go b/pkg/commands/logging/datadog/update.go index 45b8e5358..7bcd5b2f4 100644 --- a/pkg/commands/logging/datadog/update.go +++ b/pkg/commands/logging/datadog/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update a Datadog logging endpoint. diff --git a/pkg/commands/logging/digitalocean/create.go b/pkg/commands/logging/digitalocean/create.go index 1a74e3a80..174a503ce 100644 --- a/pkg/commands/logging/digitalocean/create.go +++ b/pkg/commands/logging/digitalocean/create.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create a DigitalOcean Spaces logging endpoint. diff --git a/pkg/commands/logging/digitalocean/delete.go b/pkg/commands/logging/digitalocean/delete.go index 9a8de934a..b0b07c27f 100644 --- a/pkg/commands/logging/digitalocean/delete.go +++ b/pkg/commands/logging/digitalocean/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete a DigitalOcean Spaces logging endpoint. diff --git a/pkg/commands/logging/digitalocean/describe.go b/pkg/commands/logging/digitalocean/describe.go index 3c78ec0b7..784183513 100644 --- a/pkg/commands/logging/digitalocean/describe.go +++ b/pkg/commands/logging/digitalocean/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a DigitalOcean Spaces logging endpoint. diff --git a/pkg/commands/logging/digitalocean/digitalocean_integration_test.go b/pkg/commands/logging/digitalocean/digitalocean_integration_test.go index 6a085e850..8ca78b9b9 100644 --- a/pkg/commands/logging/digitalocean/digitalocean_integration_test.go +++ b/pkg/commands/logging/digitalocean/digitalocean_integration_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestDigitalOceanCreate(t *testing.T) { diff --git a/pkg/commands/logging/digitalocean/digitalocean_test.go b/pkg/commands/logging/digitalocean/digitalocean_test.go index 46bd0d0c6..ac71e9ea3 100644 --- a/pkg/commands/logging/digitalocean/digitalocean_test.go +++ b/pkg/commands/logging/digitalocean/digitalocean_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateDigitalOceanInput(t *testing.T) { diff --git a/pkg/commands/logging/digitalocean/list.go b/pkg/commands/logging/digitalocean/list.go index a1e3609d3..bf09ffe1c 100644 --- a/pkg/commands/logging/digitalocean/list.go +++ b/pkg/commands/logging/digitalocean/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list DigitalOcean Spaces logging endpoints. diff --git a/pkg/commands/logging/digitalocean/update.go b/pkg/commands/logging/digitalocean/update.go index 374012a89..3dc450f8e 100644 --- a/pkg/commands/logging/digitalocean/update.go +++ b/pkg/commands/logging/digitalocean/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update a DigitalOcean Spaces logging endpoint. diff --git a/pkg/commands/logging/elasticsearch/create.go b/pkg/commands/logging/elasticsearch/create.go index 1811c9312..264815bf6 100644 --- a/pkg/commands/logging/elasticsearch/create.go +++ b/pkg/commands/logging/elasticsearch/create.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create an Elasticsearch logging endpoint. diff --git a/pkg/commands/logging/elasticsearch/delete.go b/pkg/commands/logging/elasticsearch/delete.go index 1a11a5d88..c49ddec42 100644 --- a/pkg/commands/logging/elasticsearch/delete.go +++ b/pkg/commands/logging/elasticsearch/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete an Elasticsearch logging endpoint. diff --git a/pkg/commands/logging/elasticsearch/describe.go b/pkg/commands/logging/elasticsearch/describe.go index a41255b9f..a1af67e66 100644 --- a/pkg/commands/logging/elasticsearch/describe.go +++ b/pkg/commands/logging/elasticsearch/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe an Elasticsearch logging endpoint. diff --git a/pkg/commands/logging/elasticsearch/elasticsearch_integration_test.go b/pkg/commands/logging/elasticsearch/elasticsearch_integration_test.go index 59424645d..6d7cd5425 100644 --- a/pkg/commands/logging/elasticsearch/elasticsearch_integration_test.go +++ b/pkg/commands/logging/elasticsearch/elasticsearch_integration_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestElasticsearchCreate(t *testing.T) { diff --git a/pkg/commands/logging/elasticsearch/elasticsearch_test.go b/pkg/commands/logging/elasticsearch/elasticsearch_test.go index 4d57c3983..c6e83ad8b 100644 --- a/pkg/commands/logging/elasticsearch/elasticsearch_test.go +++ b/pkg/commands/logging/elasticsearch/elasticsearch_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateElasticsearchInput(t *testing.T) { diff --git a/pkg/commands/logging/elasticsearch/list.go b/pkg/commands/logging/elasticsearch/list.go index a18aaf075..d3744b3fa 100644 --- a/pkg/commands/logging/elasticsearch/list.go +++ b/pkg/commands/logging/elasticsearch/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list Elasticsearch logging endpoints. diff --git a/pkg/commands/logging/elasticsearch/update.go b/pkg/commands/logging/elasticsearch/update.go index 9ec4b62af..c1e43ccf6 100644 --- a/pkg/commands/logging/elasticsearch/update.go +++ b/pkg/commands/logging/elasticsearch/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update an Elasticsearch logging endpoint. diff --git a/pkg/commands/logging/ftp/create.go b/pkg/commands/logging/ftp/create.go index 61fc65910..795c40f1e 100644 --- a/pkg/commands/logging/ftp/create.go +++ b/pkg/commands/logging/ftp/create.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create an FTP logging endpoint. diff --git a/pkg/commands/logging/ftp/delete.go b/pkg/commands/logging/ftp/delete.go index 053fa1048..9b7226592 100644 --- a/pkg/commands/logging/ftp/delete.go +++ b/pkg/commands/logging/ftp/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete an FTP logging endpoint. diff --git a/pkg/commands/logging/ftp/describe.go b/pkg/commands/logging/ftp/describe.go index 3dbfe8707..b780534c1 100644 --- a/pkg/commands/logging/ftp/describe.go +++ b/pkg/commands/logging/ftp/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe an FTP logging endpoint. diff --git a/pkg/commands/logging/ftp/ftp_integration_test.go b/pkg/commands/logging/ftp/ftp_integration_test.go index 773f2499c..0377f3b7f 100644 --- a/pkg/commands/logging/ftp/ftp_integration_test.go +++ b/pkg/commands/logging/ftp/ftp_integration_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestFTPCreate(t *testing.T) { diff --git a/pkg/commands/logging/ftp/ftp_test.go b/pkg/commands/logging/ftp/ftp_test.go index 27b7741b5..6a0b41ac7 100644 --- a/pkg/commands/logging/ftp/ftp_test.go +++ b/pkg/commands/logging/ftp/ftp_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateFTPInput(t *testing.T) { diff --git a/pkg/commands/logging/ftp/list.go b/pkg/commands/logging/ftp/list.go index 9e61c551a..435caba86 100644 --- a/pkg/commands/logging/ftp/list.go +++ b/pkg/commands/logging/ftp/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list FTP logging endpoints. diff --git a/pkg/commands/logging/ftp/update.go b/pkg/commands/logging/ftp/update.go index 2687f9b60..0abb5824c 100644 --- a/pkg/commands/logging/ftp/update.go +++ b/pkg/commands/logging/ftp/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update an FTP logging endpoint. diff --git a/pkg/commands/logging/gcs/create.go b/pkg/commands/logging/gcs/create.go index b1802b7eb..dbe5e4d80 100644 --- a/pkg/commands/logging/gcs/create.go +++ b/pkg/commands/logging/gcs/create.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create a GCS logging endpoint. diff --git a/pkg/commands/logging/gcs/delete.go b/pkg/commands/logging/gcs/delete.go index 688dd8f43..58809f42c 100644 --- a/pkg/commands/logging/gcs/delete.go +++ b/pkg/commands/logging/gcs/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete a GCS logging endpoint. diff --git a/pkg/commands/logging/gcs/describe.go b/pkg/commands/logging/gcs/describe.go index b20bfd45b..1380460dd 100644 --- a/pkg/commands/logging/gcs/describe.go +++ b/pkg/commands/logging/gcs/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a GCS logging endpoint. diff --git a/pkg/commands/logging/gcs/gcs_integration_test.go b/pkg/commands/logging/gcs/gcs_integration_test.go index f392e9795..c8eaa818f 100644 --- a/pkg/commands/logging/gcs/gcs_integration_test.go +++ b/pkg/commands/logging/gcs/gcs_integration_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestGCSCreate(t *testing.T) { diff --git a/pkg/commands/logging/gcs/gcs_test.go b/pkg/commands/logging/gcs/gcs_test.go index 28eb047f5..bd0753e8d 100644 --- a/pkg/commands/logging/gcs/gcs_test.go +++ b/pkg/commands/logging/gcs/gcs_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateGCSInput(t *testing.T) { diff --git a/pkg/commands/logging/gcs/list.go b/pkg/commands/logging/gcs/list.go index f3a980883..c1a028de4 100644 --- a/pkg/commands/logging/gcs/list.go +++ b/pkg/commands/logging/gcs/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list GCS logging endpoints. diff --git a/pkg/commands/logging/gcs/update.go b/pkg/commands/logging/gcs/update.go index 495edc042..9831c5e9d 100644 --- a/pkg/commands/logging/gcs/update.go +++ b/pkg/commands/logging/gcs/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update a GCS logging endpoint. diff --git a/pkg/commands/logging/googlepubsub/create.go b/pkg/commands/logging/googlepubsub/create.go index 08ce859da..e4a50e7b1 100644 --- a/pkg/commands/logging/googlepubsub/create.go +++ b/pkg/commands/logging/googlepubsub/create.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create a Google Cloud Pub/Sub logging endpoint. diff --git a/pkg/commands/logging/googlepubsub/delete.go b/pkg/commands/logging/googlepubsub/delete.go index 5c0f0abf8..aa32ab934 100644 --- a/pkg/commands/logging/googlepubsub/delete.go +++ b/pkg/commands/logging/googlepubsub/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete a Google Cloud Pub/Sub logging endpoint. diff --git a/pkg/commands/logging/googlepubsub/describe.go b/pkg/commands/logging/googlepubsub/describe.go index 33df6fc19..a764dc55e 100644 --- a/pkg/commands/logging/googlepubsub/describe.go +++ b/pkg/commands/logging/googlepubsub/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a Google Cloud Pub/Sub logging endpoint. diff --git a/pkg/commands/logging/googlepubsub/googlepubsub_integration_test.go b/pkg/commands/logging/googlepubsub/googlepubsub_integration_test.go index 7fbde08bf..5062ecc7a 100644 --- a/pkg/commands/logging/googlepubsub/googlepubsub_integration_test.go +++ b/pkg/commands/logging/googlepubsub/googlepubsub_integration_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestGooglePubSubCreate(t *testing.T) { diff --git a/pkg/commands/logging/googlepubsub/googlepubsub_test.go b/pkg/commands/logging/googlepubsub/googlepubsub_test.go index 45f7f2500..e5910d551 100644 --- a/pkg/commands/logging/googlepubsub/googlepubsub_test.go +++ b/pkg/commands/logging/googlepubsub/googlepubsub_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateGooglePubSubInput(t *testing.T) { diff --git a/pkg/commands/logging/googlepubsub/list.go b/pkg/commands/logging/googlepubsub/list.go index c0337c8ff..5b061b613 100644 --- a/pkg/commands/logging/googlepubsub/list.go +++ b/pkg/commands/logging/googlepubsub/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list Google Cloud Pub/Sub logging endpoints. diff --git a/pkg/commands/logging/googlepubsub/update.go b/pkg/commands/logging/googlepubsub/update.go index 6938376fc..0ce593f2d 100644 --- a/pkg/commands/logging/googlepubsub/update.go +++ b/pkg/commands/logging/googlepubsub/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update a Google Cloud Pub/Sub logging endpoint. diff --git a/pkg/commands/logging/heroku/create.go b/pkg/commands/logging/heroku/create.go index c549180b1..1fc9f96cb 100644 --- a/pkg/commands/logging/heroku/create.go +++ b/pkg/commands/logging/heroku/create.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create a Heroku logging endpoint. diff --git a/pkg/commands/logging/heroku/delete.go b/pkg/commands/logging/heroku/delete.go index 0efa81b3c..450cb2166 100644 --- a/pkg/commands/logging/heroku/delete.go +++ b/pkg/commands/logging/heroku/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete a Heroku logging endpoint. diff --git a/pkg/commands/logging/heroku/describe.go b/pkg/commands/logging/heroku/describe.go index 69917c61f..088c5f582 100644 --- a/pkg/commands/logging/heroku/describe.go +++ b/pkg/commands/logging/heroku/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a Heroku logging endpoint. diff --git a/pkg/commands/logging/heroku/heroku_integration_test.go b/pkg/commands/logging/heroku/heroku_integration_test.go index 11b7717ae..c11b44aa5 100644 --- a/pkg/commands/logging/heroku/heroku_integration_test.go +++ b/pkg/commands/logging/heroku/heroku_integration_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestHerokuCreate(t *testing.T) { diff --git a/pkg/commands/logging/heroku/heroku_test.go b/pkg/commands/logging/heroku/heroku_test.go index c0665d7fa..b93cb4b32 100644 --- a/pkg/commands/logging/heroku/heroku_test.go +++ b/pkg/commands/logging/heroku/heroku_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateHerokuInput(t *testing.T) { diff --git a/pkg/commands/logging/heroku/list.go b/pkg/commands/logging/heroku/list.go index 043a742a9..ee08da27e 100644 --- a/pkg/commands/logging/heroku/list.go +++ b/pkg/commands/logging/heroku/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list Heroku logging endpoints. diff --git a/pkg/commands/logging/heroku/update.go b/pkg/commands/logging/heroku/update.go index 45036f6bd..8b66cc50e 100644 --- a/pkg/commands/logging/heroku/update.go +++ b/pkg/commands/logging/heroku/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update a Heroku logging endpoint. diff --git a/pkg/commands/logging/honeycomb/create.go b/pkg/commands/logging/honeycomb/create.go index 7b8aebb9f..82e9d8e01 100644 --- a/pkg/commands/logging/honeycomb/create.go +++ b/pkg/commands/logging/honeycomb/create.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create a Honeycomb logging endpoint. diff --git a/pkg/commands/logging/honeycomb/delete.go b/pkg/commands/logging/honeycomb/delete.go index 6d2fd8496..685a9caaf 100644 --- a/pkg/commands/logging/honeycomb/delete.go +++ b/pkg/commands/logging/honeycomb/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete a Honeycomb logging endpoint. diff --git a/pkg/commands/logging/honeycomb/describe.go b/pkg/commands/logging/honeycomb/describe.go index 0dd689c9c..9810d17e0 100644 --- a/pkg/commands/logging/honeycomb/describe.go +++ b/pkg/commands/logging/honeycomb/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a Honeycomb logging endpoint. diff --git a/pkg/commands/logging/honeycomb/honeycomb_integration_test.go b/pkg/commands/logging/honeycomb/honeycomb_integration_test.go index 170478dc9..85440e51a 100644 --- a/pkg/commands/logging/honeycomb/honeycomb_integration_test.go +++ b/pkg/commands/logging/honeycomb/honeycomb_integration_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestHoneycombCreate(t *testing.T) { diff --git a/pkg/commands/logging/honeycomb/honeycomb_test.go b/pkg/commands/logging/honeycomb/honeycomb_test.go index 9e172d057..1e0ee089f 100644 --- a/pkg/commands/logging/honeycomb/honeycomb_test.go +++ b/pkg/commands/logging/honeycomb/honeycomb_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateHoneycombInput(t *testing.T) { diff --git a/pkg/commands/logging/honeycomb/list.go b/pkg/commands/logging/honeycomb/list.go index e98131dec..bf1e4211b 100644 --- a/pkg/commands/logging/honeycomb/list.go +++ b/pkg/commands/logging/honeycomb/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list Honeycomb logging endpoints. diff --git a/pkg/commands/logging/honeycomb/update.go b/pkg/commands/logging/honeycomb/update.go index 7be24cea4..0196ab0dd 100644 --- a/pkg/commands/logging/honeycomb/update.go +++ b/pkg/commands/logging/honeycomb/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update a Honeycomb logging endpoint. diff --git a/pkg/commands/logging/https/create.go b/pkg/commands/logging/https/create.go index 7b125d1c4..58de3882e 100644 --- a/pkg/commands/logging/https/create.go +++ b/pkg/commands/logging/https/create.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create an HTTPS logging endpoint. diff --git a/pkg/commands/logging/https/delete.go b/pkg/commands/logging/https/delete.go index 3c5fc11e6..14745072a 100644 --- a/pkg/commands/logging/https/delete.go +++ b/pkg/commands/logging/https/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete an HTTPS logging endpoint. diff --git a/pkg/commands/logging/https/describe.go b/pkg/commands/logging/https/describe.go index 92cb966e8..ff96ef5eb 100644 --- a/pkg/commands/logging/https/describe.go +++ b/pkg/commands/logging/https/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe an HTTPS logging endpoint. diff --git a/pkg/commands/logging/https/https_integration_test.go b/pkg/commands/logging/https/https_integration_test.go index dd7d5be08..ccdeb1e46 100644 --- a/pkg/commands/logging/https/https_integration_test.go +++ b/pkg/commands/logging/https/https_integration_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestHTTPSCreate(t *testing.T) { diff --git a/pkg/commands/logging/https/https_test.go b/pkg/commands/logging/https/https_test.go index f3557bdb5..ad3d87908 100644 --- a/pkg/commands/logging/https/https_test.go +++ b/pkg/commands/logging/https/https_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateHTTPSInput(t *testing.T) { diff --git a/pkg/commands/logging/https/list.go b/pkg/commands/logging/https/list.go index 6f15958d4..c76acd4d0 100644 --- a/pkg/commands/logging/https/list.go +++ b/pkg/commands/logging/https/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list HTTPS logging endpoints. diff --git a/pkg/commands/logging/https/update.go b/pkg/commands/logging/https/update.go index 6b234638a..c326d766d 100644 --- a/pkg/commands/logging/https/update.go +++ b/pkg/commands/logging/https/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update an HTTPS logging endpoint. diff --git a/pkg/commands/logging/kafka/create.go b/pkg/commands/logging/kafka/create.go index 6898cf617..b4b54e2dc 100644 --- a/pkg/commands/logging/kafka/create.go +++ b/pkg/commands/logging/kafka/create.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create a Kafka logging endpoint. diff --git a/pkg/commands/logging/kafka/delete.go b/pkg/commands/logging/kafka/delete.go index 7d1420d6c..d8321ed8f 100644 --- a/pkg/commands/logging/kafka/delete.go +++ b/pkg/commands/logging/kafka/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete a Kafka logging endpoint. diff --git a/pkg/commands/logging/kafka/describe.go b/pkg/commands/logging/kafka/describe.go index 63f832ea7..5a732591b 100644 --- a/pkg/commands/logging/kafka/describe.go +++ b/pkg/commands/logging/kafka/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a Kafka logging endpoint. diff --git a/pkg/commands/logging/kafka/kafka_integration_test.go b/pkg/commands/logging/kafka/kafka_integration_test.go index 21561d325..c45954360 100644 --- a/pkg/commands/logging/kafka/kafka_integration_test.go +++ b/pkg/commands/logging/kafka/kafka_integration_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestKafkaCreate(t *testing.T) { diff --git a/pkg/commands/logging/kafka/kafka_test.go b/pkg/commands/logging/kafka/kafka_test.go index 4252595e1..e25adadae 100644 --- a/pkg/commands/logging/kafka/kafka_test.go +++ b/pkg/commands/logging/kafka/kafka_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateKafkaInput(t *testing.T) { diff --git a/pkg/commands/logging/kafka/list.go b/pkg/commands/logging/kafka/list.go index 19a5b8774..4aa287894 100644 --- a/pkg/commands/logging/kafka/list.go +++ b/pkg/commands/logging/kafka/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list Kafka logging endpoints. diff --git a/pkg/commands/logging/kafka/update.go b/pkg/commands/logging/kafka/update.go index 887521968..1f8621c36 100644 --- a/pkg/commands/logging/kafka/update.go +++ b/pkg/commands/logging/kafka/update.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update a Kafka logging endpoint. diff --git a/pkg/commands/logging/kinesis/create.go b/pkg/commands/logging/kinesis/create.go index 1bf6844e9..7039cefd2 100644 --- a/pkg/commands/logging/kinesis/create.go +++ b/pkg/commands/logging/kinesis/create.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create an Amazon Kinesis logging endpoint. diff --git a/pkg/commands/logging/kinesis/delete.go b/pkg/commands/logging/kinesis/delete.go index bd0f3f830..196f4f663 100644 --- a/pkg/commands/logging/kinesis/delete.go +++ b/pkg/commands/logging/kinesis/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete an Amazon Kinesis logging endpoint. diff --git a/pkg/commands/logging/kinesis/describe.go b/pkg/commands/logging/kinesis/describe.go index ece8c1066..dbeb02a08 100644 --- a/pkg/commands/logging/kinesis/describe.go +++ b/pkg/commands/logging/kinesis/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe an Amazon Kinesis logging endpoint. diff --git a/pkg/commands/logging/kinesis/kinesis_integration_test.go b/pkg/commands/logging/kinesis/kinesis_integration_test.go index d83b21f77..4ad68dfb8 100644 --- a/pkg/commands/logging/kinesis/kinesis_integration_test.go +++ b/pkg/commands/logging/kinesis/kinesis_integration_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestKinesisCreate(t *testing.T) { diff --git a/pkg/commands/logging/kinesis/kinesis_test.go b/pkg/commands/logging/kinesis/kinesis_test.go index 4a595a904..8ecebda3d 100644 --- a/pkg/commands/logging/kinesis/kinesis_test.go +++ b/pkg/commands/logging/kinesis/kinesis_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateKinesisInput(t *testing.T) { diff --git a/pkg/commands/logging/kinesis/list.go b/pkg/commands/logging/kinesis/list.go index a427ce1cb..23593576e 100644 --- a/pkg/commands/logging/kinesis/list.go +++ b/pkg/commands/logging/kinesis/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list Amazon Kinesis logging endpoints. diff --git a/pkg/commands/logging/kinesis/update.go b/pkg/commands/logging/kinesis/update.go index ccf8bdc2b..8a676603f 100644 --- a/pkg/commands/logging/kinesis/update.go +++ b/pkg/commands/logging/kinesis/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update an Amazon Kinesis logging endpoint. diff --git a/pkg/commands/logging/loggly/create.go b/pkg/commands/logging/loggly/create.go index d1af184f2..cb6b2ee32 100644 --- a/pkg/commands/logging/loggly/create.go +++ b/pkg/commands/logging/loggly/create.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create a Loggly logging endpoint. diff --git a/pkg/commands/logging/loggly/delete.go b/pkg/commands/logging/loggly/delete.go index fd60add61..6518413f7 100644 --- a/pkg/commands/logging/loggly/delete.go +++ b/pkg/commands/logging/loggly/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete a Loggly logging endpoint. diff --git a/pkg/commands/logging/loggly/describe.go b/pkg/commands/logging/loggly/describe.go index 9eb3cb7d8..bfb56c056 100644 --- a/pkg/commands/logging/loggly/describe.go +++ b/pkg/commands/logging/loggly/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a Loggly logging endpoint. diff --git a/pkg/commands/logging/loggly/list.go b/pkg/commands/logging/loggly/list.go index d4fa86072..493330d9a 100644 --- a/pkg/commands/logging/loggly/list.go +++ b/pkg/commands/logging/loggly/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list Loggly logging endpoints. diff --git a/pkg/commands/logging/loggly/loggly_integration_test.go b/pkg/commands/logging/loggly/loggly_integration_test.go index a95396d3d..41f8cad46 100644 --- a/pkg/commands/logging/loggly/loggly_integration_test.go +++ b/pkg/commands/logging/loggly/loggly_integration_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestLogglyCreate(t *testing.T) { diff --git a/pkg/commands/logging/loggly/loggly_test.go b/pkg/commands/logging/loggly/loggly_test.go index 31dd45443..dcc87766a 100644 --- a/pkg/commands/logging/loggly/loggly_test.go +++ b/pkg/commands/logging/loggly/loggly_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateLogglyInput(t *testing.T) { diff --git a/pkg/commands/logging/loggly/update.go b/pkg/commands/logging/loggly/update.go index be3263db1..6edb93edf 100644 --- a/pkg/commands/logging/loggly/update.go +++ b/pkg/commands/logging/loggly/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update a Loggly logging endpoint. diff --git a/pkg/commands/logging/logshuttle/create.go b/pkg/commands/logging/logshuttle/create.go index 9bc6ddb4d..79c3a179f 100644 --- a/pkg/commands/logging/logshuttle/create.go +++ b/pkg/commands/logging/logshuttle/create.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create a Logshuttle logging endpoint. diff --git a/pkg/commands/logging/logshuttle/delete.go b/pkg/commands/logging/logshuttle/delete.go index fa528b577..a15d91457 100644 --- a/pkg/commands/logging/logshuttle/delete.go +++ b/pkg/commands/logging/logshuttle/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete a Logshuttle logging endpoint. diff --git a/pkg/commands/logging/logshuttle/describe.go b/pkg/commands/logging/logshuttle/describe.go index f7c46918b..450d0732c 100644 --- a/pkg/commands/logging/logshuttle/describe.go +++ b/pkg/commands/logging/logshuttle/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a Logshuttle logging endpoint. diff --git a/pkg/commands/logging/logshuttle/list.go b/pkg/commands/logging/logshuttle/list.go index c0f920ce4..2d877d9a4 100644 --- a/pkg/commands/logging/logshuttle/list.go +++ b/pkg/commands/logging/logshuttle/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list Logshuttle logging endpoints. diff --git a/pkg/commands/logging/logshuttle/logshuttle_integration_test.go b/pkg/commands/logging/logshuttle/logshuttle_integration_test.go index f7ea5760d..6babfe7ac 100644 --- a/pkg/commands/logging/logshuttle/logshuttle_integration_test.go +++ b/pkg/commands/logging/logshuttle/logshuttle_integration_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestLogshuttleCreate(t *testing.T) { diff --git a/pkg/commands/logging/logshuttle/logshuttle_test.go b/pkg/commands/logging/logshuttle/logshuttle_test.go index 24198385f..364a1cf2a 100644 --- a/pkg/commands/logging/logshuttle/logshuttle_test.go +++ b/pkg/commands/logging/logshuttle/logshuttle_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateLogshuttleInput(t *testing.T) { diff --git a/pkg/commands/logging/logshuttle/update.go b/pkg/commands/logging/logshuttle/update.go index fa253e7f1..e448096d8 100644 --- a/pkg/commands/logging/logshuttle/update.go +++ b/pkg/commands/logging/logshuttle/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update a Logshuttle logging endpoint. diff --git a/pkg/commands/logging/newrelic/create.go b/pkg/commands/logging/newrelic/create.go index aa8f3e8e1..a1eb0ced2 100644 --- a/pkg/commands/logging/newrelic/create.go +++ b/pkg/commands/logging/newrelic/create.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create an appropriate resource. diff --git a/pkg/commands/logging/newrelic/delete.go b/pkg/commands/logging/newrelic/delete.go index 9e35c79dc..1c86fab71 100644 --- a/pkg/commands/logging/newrelic/delete.go +++ b/pkg/commands/logging/newrelic/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDeleteCommand returns a usable command registered under the parent. diff --git a/pkg/commands/logging/newrelic/describe.go b/pkg/commands/logging/newrelic/describe.go index 5cdefeb36..c0bc97ae4 100644 --- a/pkg/commands/logging/newrelic/describe.go +++ b/pkg/commands/logging/newrelic/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDescribeCommand returns a usable command registered under the parent. diff --git a/pkg/commands/logging/newrelic/list.go b/pkg/commands/logging/newrelic/list.go index 1861d495d..3aa778416 100644 --- a/pkg/commands/logging/newrelic/list.go +++ b/pkg/commands/logging/newrelic/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewListCommand returns a usable command registered under the parent. diff --git a/pkg/commands/logging/newrelic/newrelic_test.go b/pkg/commands/logging/newrelic/newrelic_test.go index cfcb8948a..3bfcff6f8 100644 --- a/pkg/commands/logging/newrelic/newrelic_test.go +++ b/pkg/commands/logging/newrelic/newrelic_test.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestNewRelicCreate(t *testing.T) { diff --git a/pkg/commands/logging/newrelic/update.go b/pkg/commands/logging/newrelic/update.go index 31cb62d84..ff4d244c7 100644 --- a/pkg/commands/logging/newrelic/update.go +++ b/pkg/commands/logging/newrelic/update.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update an appropriate resource. diff --git a/pkg/commands/logging/openstack/create.go b/pkg/commands/logging/openstack/create.go index 10e267fa6..1528ce261 100644 --- a/pkg/commands/logging/openstack/create.go +++ b/pkg/commands/logging/openstack/create.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create an OpenStack logging endpoint. diff --git a/pkg/commands/logging/openstack/delete.go b/pkg/commands/logging/openstack/delete.go index 352c2e88a..5e2d23533 100644 --- a/pkg/commands/logging/openstack/delete.go +++ b/pkg/commands/logging/openstack/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete an OpenStack logging endpoint. diff --git a/pkg/commands/logging/openstack/describe.go b/pkg/commands/logging/openstack/describe.go index b50d3cab4..e1337370c 100644 --- a/pkg/commands/logging/openstack/describe.go +++ b/pkg/commands/logging/openstack/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe an OpenStack logging endpoint. diff --git a/pkg/commands/logging/openstack/list.go b/pkg/commands/logging/openstack/list.go index 3a8b6add3..7e9b587f5 100644 --- a/pkg/commands/logging/openstack/list.go +++ b/pkg/commands/logging/openstack/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list OpenStack logging endpoints. diff --git a/pkg/commands/logging/openstack/openstack_integration_test.go b/pkg/commands/logging/openstack/openstack_integration_test.go index c8e414320..927ab5912 100644 --- a/pkg/commands/logging/openstack/openstack_integration_test.go +++ b/pkg/commands/logging/openstack/openstack_integration_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestOpenstackCreate(t *testing.T) { diff --git a/pkg/commands/logging/openstack/openstack_test.go b/pkg/commands/logging/openstack/openstack_test.go index 4bb9572c5..1d777eb7f 100644 --- a/pkg/commands/logging/openstack/openstack_test.go +++ b/pkg/commands/logging/openstack/openstack_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateOpenstackInput(t *testing.T) { diff --git a/pkg/commands/logging/openstack/update.go b/pkg/commands/logging/openstack/update.go index 16920ca2b..41b87564e 100644 --- a/pkg/commands/logging/openstack/update.go +++ b/pkg/commands/logging/openstack/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update an OpenStack logging endpoint. diff --git a/pkg/commands/logging/papertrail/create.go b/pkg/commands/logging/papertrail/create.go index 5bea2f976..67f76498d 100644 --- a/pkg/commands/logging/papertrail/create.go +++ b/pkg/commands/logging/papertrail/create.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create a Papertrail logging endpoint. diff --git a/pkg/commands/logging/papertrail/delete.go b/pkg/commands/logging/papertrail/delete.go index cd71e5abe..2c0302312 100644 --- a/pkg/commands/logging/papertrail/delete.go +++ b/pkg/commands/logging/papertrail/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete a Papertrail logging endpoint. diff --git a/pkg/commands/logging/papertrail/describe.go b/pkg/commands/logging/papertrail/describe.go index f6836a0c8..c6d9670e4 100644 --- a/pkg/commands/logging/papertrail/describe.go +++ b/pkg/commands/logging/papertrail/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a Papertrail logging endpoint. diff --git a/pkg/commands/logging/papertrail/list.go b/pkg/commands/logging/papertrail/list.go index bf38245ac..f248bbb48 100644 --- a/pkg/commands/logging/papertrail/list.go +++ b/pkg/commands/logging/papertrail/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list Papertrail logging endpoints. diff --git a/pkg/commands/logging/papertrail/papertrail_integration_test.go b/pkg/commands/logging/papertrail/papertrail_integration_test.go index 1b5912260..9e0f8817d 100644 --- a/pkg/commands/logging/papertrail/papertrail_integration_test.go +++ b/pkg/commands/logging/papertrail/papertrail_integration_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestPapertrailCreate(t *testing.T) { diff --git a/pkg/commands/logging/papertrail/papertrail_test.go b/pkg/commands/logging/papertrail/papertrail_test.go index fe09ba880..cdaf54e10 100644 --- a/pkg/commands/logging/papertrail/papertrail_test.go +++ b/pkg/commands/logging/papertrail/papertrail_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreatePapertrailInput(t *testing.T) { diff --git a/pkg/commands/logging/papertrail/update.go b/pkg/commands/logging/papertrail/update.go index c6ea83aa6..bf10f513d 100644 --- a/pkg/commands/logging/papertrail/update.go +++ b/pkg/commands/logging/papertrail/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update a Papertrail logging endpoint. diff --git a/pkg/commands/logging/s3/create.go b/pkg/commands/logging/s3/create.go index b6bc497e2..3748526b6 100644 --- a/pkg/commands/logging/s3/create.go +++ b/pkg/commands/logging/s3/create.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create an Amazon S3 logging endpoint. diff --git a/pkg/commands/logging/s3/delete.go b/pkg/commands/logging/s3/delete.go index 5c356b8c8..415ed5cee 100644 --- a/pkg/commands/logging/s3/delete.go +++ b/pkg/commands/logging/s3/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete an Amazon S3 logging endpoint. diff --git a/pkg/commands/logging/s3/describe.go b/pkg/commands/logging/s3/describe.go index 68462b7f2..5ac89a8ed 100644 --- a/pkg/commands/logging/s3/describe.go +++ b/pkg/commands/logging/s3/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe an Amazon S3 logging endpoint. diff --git a/pkg/commands/logging/s3/list.go b/pkg/commands/logging/s3/list.go index 6f4964936..56d44335a 100644 --- a/pkg/commands/logging/s3/list.go +++ b/pkg/commands/logging/s3/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list Amazon S3 logging endpoints. diff --git a/pkg/commands/logging/s3/s3_integration_test.go b/pkg/commands/logging/s3/s3_integration_test.go index a7a4154e1..86eb32b06 100644 --- a/pkg/commands/logging/s3/s3_integration_test.go +++ b/pkg/commands/logging/s3/s3_integration_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestS3Create(t *testing.T) { diff --git a/pkg/commands/logging/s3/s3_test.go b/pkg/commands/logging/s3/s3_test.go index a5070d40e..c2fb13ea4 100644 --- a/pkg/commands/logging/s3/s3_test.go +++ b/pkg/commands/logging/s3/s3_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateS3Input(t *testing.T) { diff --git a/pkg/commands/logging/s3/update.go b/pkg/commands/logging/s3/update.go index 2f9178386..e32026597 100644 --- a/pkg/commands/logging/s3/update.go +++ b/pkg/commands/logging/s3/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update an Amazon S3 logging endpoint. diff --git a/pkg/commands/logging/scalyr/create.go b/pkg/commands/logging/scalyr/create.go index 6063316e1..20942f766 100644 --- a/pkg/commands/logging/scalyr/create.go +++ b/pkg/commands/logging/scalyr/create.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create a Scalyr logging endpoint. diff --git a/pkg/commands/logging/scalyr/delete.go b/pkg/commands/logging/scalyr/delete.go index a7bca555d..c94941ca8 100644 --- a/pkg/commands/logging/scalyr/delete.go +++ b/pkg/commands/logging/scalyr/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete a Scalyr logging endpoint. diff --git a/pkg/commands/logging/scalyr/describe.go b/pkg/commands/logging/scalyr/describe.go index 171199042..777043a95 100644 --- a/pkg/commands/logging/scalyr/describe.go +++ b/pkg/commands/logging/scalyr/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a Scalyr logging endpoint. diff --git a/pkg/commands/logging/scalyr/list.go b/pkg/commands/logging/scalyr/list.go index 99ebb1377..23320a116 100644 --- a/pkg/commands/logging/scalyr/list.go +++ b/pkg/commands/logging/scalyr/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list Scalyr logging endpoints. diff --git a/pkg/commands/logging/scalyr/scalyr_integration_test.go b/pkg/commands/logging/scalyr/scalyr_integration_test.go index 8ef3fb8fb..267ae03b2 100644 --- a/pkg/commands/logging/scalyr/scalyr_integration_test.go +++ b/pkg/commands/logging/scalyr/scalyr_integration_test.go @@ -10,7 +10,7 @@ import ( fsterrs "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestScalyrCreate(t *testing.T) { diff --git a/pkg/commands/logging/scalyr/scalyr_test.go b/pkg/commands/logging/scalyr/scalyr_test.go index dc31021ba..d194e89de 100644 --- a/pkg/commands/logging/scalyr/scalyr_test.go +++ b/pkg/commands/logging/scalyr/scalyr_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateScalyrInput(t *testing.T) { diff --git a/pkg/commands/logging/scalyr/update.go b/pkg/commands/logging/scalyr/update.go index 5729c9c64..ba3bc5f82 100644 --- a/pkg/commands/logging/scalyr/update.go +++ b/pkg/commands/logging/scalyr/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update Scalyr logging endpoints. diff --git a/pkg/commands/logging/sftp/create.go b/pkg/commands/logging/sftp/create.go index c22bf7ee9..851aa07b7 100644 --- a/pkg/commands/logging/sftp/create.go +++ b/pkg/commands/logging/sftp/create.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create an SFTP logging endpoint. diff --git a/pkg/commands/logging/sftp/delete.go b/pkg/commands/logging/sftp/delete.go index 304a88dde..dfb186aac 100644 --- a/pkg/commands/logging/sftp/delete.go +++ b/pkg/commands/logging/sftp/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete an SFTP logging endpoint. diff --git a/pkg/commands/logging/sftp/describe.go b/pkg/commands/logging/sftp/describe.go index 214697ac3..7b1dc78c6 100644 --- a/pkg/commands/logging/sftp/describe.go +++ b/pkg/commands/logging/sftp/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe an SFTP logging endpoint. diff --git a/pkg/commands/logging/sftp/list.go b/pkg/commands/logging/sftp/list.go index 260d48316..ef75d9330 100644 --- a/pkg/commands/logging/sftp/list.go +++ b/pkg/commands/logging/sftp/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list SFTP logging endpoints. diff --git a/pkg/commands/logging/sftp/sftp_integration_test.go b/pkg/commands/logging/sftp/sftp_integration_test.go index 1f3145221..d68f99830 100644 --- a/pkg/commands/logging/sftp/sftp_integration_test.go +++ b/pkg/commands/logging/sftp/sftp_integration_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestSFTPCreate(t *testing.T) { diff --git a/pkg/commands/logging/sftp/sftp_test.go b/pkg/commands/logging/sftp/sftp_test.go index c7fcc4f86..7450fc807 100644 --- a/pkg/commands/logging/sftp/sftp_test.go +++ b/pkg/commands/logging/sftp/sftp_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateSFTPInput(t *testing.T) { diff --git a/pkg/commands/logging/sftp/update.go b/pkg/commands/logging/sftp/update.go index c4118aaea..911cda627 100644 --- a/pkg/commands/logging/sftp/update.go +++ b/pkg/commands/logging/sftp/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update an SFTP logging endpoint. diff --git a/pkg/commands/logging/splunk/create.go b/pkg/commands/logging/splunk/create.go index f0e1b3f38..2de28b504 100644 --- a/pkg/commands/logging/splunk/create.go +++ b/pkg/commands/logging/splunk/create.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create a Splunk logging endpoint. diff --git a/pkg/commands/logging/splunk/delete.go b/pkg/commands/logging/splunk/delete.go index 72822da95..920869e68 100644 --- a/pkg/commands/logging/splunk/delete.go +++ b/pkg/commands/logging/splunk/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete a Splunk logging endpoint. diff --git a/pkg/commands/logging/splunk/describe.go b/pkg/commands/logging/splunk/describe.go index 61a942394..a5741de82 100644 --- a/pkg/commands/logging/splunk/describe.go +++ b/pkg/commands/logging/splunk/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a Splunk logging endpoint. diff --git a/pkg/commands/logging/splunk/list.go b/pkg/commands/logging/splunk/list.go index ca031552b..9dbbde9c8 100644 --- a/pkg/commands/logging/splunk/list.go +++ b/pkg/commands/logging/splunk/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list Splunk logging endpoints. diff --git a/pkg/commands/logging/splunk/splunk_integration_test.go b/pkg/commands/logging/splunk/splunk_integration_test.go index 463d9a396..37a42f31c 100644 --- a/pkg/commands/logging/splunk/splunk_integration_test.go +++ b/pkg/commands/logging/splunk/splunk_integration_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestSplunkCreate(t *testing.T) { diff --git a/pkg/commands/logging/splunk/splunk_test.go b/pkg/commands/logging/splunk/splunk_test.go index 6256a9edc..b87da39a7 100644 --- a/pkg/commands/logging/splunk/splunk_test.go +++ b/pkg/commands/logging/splunk/splunk_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateSplunkInput(t *testing.T) { diff --git a/pkg/commands/logging/splunk/update.go b/pkg/commands/logging/splunk/update.go index 74cb3a46f..e33e0c3c0 100644 --- a/pkg/commands/logging/splunk/update.go +++ b/pkg/commands/logging/splunk/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update a Splunk logging endpoint. diff --git a/pkg/commands/logging/sumologic/create.go b/pkg/commands/logging/sumologic/create.go index 52552f3f8..a042d6847 100644 --- a/pkg/commands/logging/sumologic/create.go +++ b/pkg/commands/logging/sumologic/create.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create a Sumologic logging endpoint. diff --git a/pkg/commands/logging/sumologic/delete.go b/pkg/commands/logging/sumologic/delete.go index 4870edeea..203587090 100644 --- a/pkg/commands/logging/sumologic/delete.go +++ b/pkg/commands/logging/sumologic/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete a Sumologic logging endpoint. diff --git a/pkg/commands/logging/sumologic/describe.go b/pkg/commands/logging/sumologic/describe.go index a80002caf..bd0f65430 100644 --- a/pkg/commands/logging/sumologic/describe.go +++ b/pkg/commands/logging/sumologic/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a Sumologic logging endpoint. diff --git a/pkg/commands/logging/sumologic/list.go b/pkg/commands/logging/sumologic/list.go index d1674ddfa..6f4be3d7e 100644 --- a/pkg/commands/logging/sumologic/list.go +++ b/pkg/commands/logging/sumologic/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list Sumologic logging endpoints. diff --git a/pkg/commands/logging/sumologic/sumologic_integration_test.go b/pkg/commands/logging/sumologic/sumologic_integration_test.go index cd3720c09..48219c7b6 100644 --- a/pkg/commands/logging/sumologic/sumologic_integration_test.go +++ b/pkg/commands/logging/sumologic/sumologic_integration_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestSumologicCreate(t *testing.T) { diff --git a/pkg/commands/logging/sumologic/sumologic_test.go b/pkg/commands/logging/sumologic/sumologic_test.go index d0e89d3ee..e0d4cffc1 100644 --- a/pkg/commands/logging/sumologic/sumologic_test.go +++ b/pkg/commands/logging/sumologic/sumologic_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateSumologicInput(t *testing.T) { diff --git a/pkg/commands/logging/sumologic/update.go b/pkg/commands/logging/sumologic/update.go index e3159eee7..658eca10c 100644 --- a/pkg/commands/logging/sumologic/update.go +++ b/pkg/commands/logging/sumologic/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update a Sumologic logging endpoint. diff --git a/pkg/commands/logging/syslog/create.go b/pkg/commands/logging/syslog/create.go index b49438294..bc54ca31b 100644 --- a/pkg/commands/logging/syslog/create.go +++ b/pkg/commands/logging/syslog/create.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create a Syslog logging endpoint. diff --git a/pkg/commands/logging/syslog/delete.go b/pkg/commands/logging/syslog/delete.go index ec08710a4..1ccb12ed0 100644 --- a/pkg/commands/logging/syslog/delete.go +++ b/pkg/commands/logging/syslog/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete a Syslog logging endpoint. diff --git a/pkg/commands/logging/syslog/describe.go b/pkg/commands/logging/syslog/describe.go index e428e127f..01bb52768 100644 --- a/pkg/commands/logging/syslog/describe.go +++ b/pkg/commands/logging/syslog/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a Syslog logging endpoint. diff --git a/pkg/commands/logging/syslog/list.go b/pkg/commands/logging/syslog/list.go index d68a1eb75..f1b9151c2 100644 --- a/pkg/commands/logging/syslog/list.go +++ b/pkg/commands/logging/syslog/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list Syslog logging endpoints. diff --git a/pkg/commands/logging/syslog/syslog_integration_test.go b/pkg/commands/logging/syslog/syslog_integration_test.go index c31db1bef..664c7c61c 100644 --- a/pkg/commands/logging/syslog/syslog_integration_test.go +++ b/pkg/commands/logging/syslog/syslog_integration_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestSyslogCreate(t *testing.T) { diff --git a/pkg/commands/logging/syslog/syslog_test.go b/pkg/commands/logging/syslog/syslog_test.go index 125185225..e06eb9962 100644 --- a/pkg/commands/logging/syslog/syslog_test.go +++ b/pkg/commands/logging/syslog/syslog_test.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateSyslogInput(t *testing.T) { diff --git a/pkg/commands/logging/syslog/update.go b/pkg/commands/logging/syslog/update.go index 00c4fe0d0..63cb19a5d 100644 --- a/pkg/commands/logging/syslog/update.go +++ b/pkg/commands/logging/syslog/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update a Syslog logging endpoint. diff --git a/pkg/commands/logtail/root.go b/pkg/commands/logtail/root.go index 5fb1707e3..ceab2e76e 100644 --- a/pkg/commands/logtail/root.go +++ b/pkg/commands/logtail/root.go @@ -21,7 +21,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" "github.com/tomnomnom/linkheader" ) diff --git a/pkg/commands/objectstore/doc.go b/pkg/commands/objectstore/doc.go deleted file mode 100644 index 513b00aee..000000000 --- a/pkg/commands/objectstore/doc.go +++ /dev/null @@ -1,3 +0,0 @@ -// Package objectstore contains commands to inspect and manipulate Fastly edge -// object stores. -package objectstore diff --git a/pkg/commands/objectstoreentry/doc.go b/pkg/commands/objectstoreentry/doc.go deleted file mode 100644 index 481dad3b2..000000000 --- a/pkg/commands/objectstoreentry/doc.go +++ /dev/null @@ -1,3 +0,0 @@ -// Package objectstoreentry contains commands to inspect and manipulate Fastly edge -// object stores keys. -package objectstoreentry diff --git a/pkg/commands/pop/pop_test.go b/pkg/commands/pop/pop_test.go index 73e0b5561..d9598dcc0 100644 --- a/pkg/commands/pop/pop_test.go +++ b/pkg/commands/pop/pop_test.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestAllDatacenters(t *testing.T) { diff --git a/pkg/commands/profile/create.go b/pkg/commands/profile/create.go index 49a1a2a1c..e10baf7eb 100644 --- a/pkg/commands/profile/create.go +++ b/pkg/commands/profile/create.go @@ -15,7 +15,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/profile" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand represents a Kingpin command. diff --git a/pkg/commands/profile/profile_test.go b/pkg/commands/profile/profile_test.go index 99c01b10b..792a72344 100644 --- a/pkg/commands/profile/profile_test.go +++ b/pkg/commands/profile/profile_test.go @@ -14,7 +14,7 @@ import ( "github.com/fastly/cli/pkg/config" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // Scenario is an extension of the base TestScenario. diff --git a/pkg/commands/profile/update.go b/pkg/commands/profile/update.go index 5be9653e9..a4d8ae742 100644 --- a/pkg/commands/profile/update.go +++ b/pkg/commands/profile/update.go @@ -11,7 +11,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/profile" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // APIClientFactory allows the profile command to regenerate the global Fastly diff --git a/pkg/commands/purge/purge_test.go b/pkg/commands/purge/purge_test.go index 52785691a..d75f2af78 100644 --- a/pkg/commands/purge/purge_test.go +++ b/pkg/commands/purge/purge_test.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestPurgeAll(t *testing.T) { diff --git a/pkg/commands/purge/root.go b/pkg/commands/purge/root.go index fce102502..27f4798c7 100644 --- a/pkg/commands/purge/root.go +++ b/pkg/commands/purge/root.go @@ -14,7 +14,7 @@ import ( "github.com/fastly/cli/pkg/lookup" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewRootCommand returns a new command registered in the parent. diff --git a/pkg/commands/ratelimit/create.go b/pkg/commands/ratelimit/create.go index 48938244d..f05c0cd1c 100644 --- a/pkg/commands/ratelimit/create.go +++ b/pkg/commands/ratelimit/create.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/lookup" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // rateLimitActionFlagOpts is a string representation of rateLimitActions diff --git a/pkg/commands/ratelimit/delete.go b/pkg/commands/ratelimit/delete.go index 1bdd14a96..902234b24 100644 --- a/pkg/commands/ratelimit/delete.go +++ b/pkg/commands/ratelimit/delete.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/lookup" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDeleteCommand returns a usable command registered under the parent. diff --git a/pkg/commands/ratelimit/describe.go b/pkg/commands/ratelimit/describe.go index 203dcbfcf..77c3f62b9 100644 --- a/pkg/commands/ratelimit/describe.go +++ b/pkg/commands/ratelimit/describe.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/lookup" "github.com/fastly/cli/pkg/manifest" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDescribeCommand returns a usable command registered under the parent. diff --git a/pkg/commands/ratelimit/list.go b/pkg/commands/ratelimit/list.go index 0a7323e89..32d4431f3 100644 --- a/pkg/commands/ratelimit/list.go +++ b/pkg/commands/ratelimit/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/lookup" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewListCommand returns a usable command registered under the parent. diff --git a/pkg/commands/ratelimit/ratelimit_test.go b/pkg/commands/ratelimit/ratelimit_test.go index 69167680f..47df1e38a 100644 --- a/pkg/commands/ratelimit/ratelimit_test.go +++ b/pkg/commands/ratelimit/ratelimit_test.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreate(t *testing.T) { diff --git a/pkg/commands/ratelimit/update.go b/pkg/commands/ratelimit/update.go index 1c4325a1d..aecc856ce 100644 --- a/pkg/commands/ratelimit/update.go +++ b/pkg/commands/ratelimit/update.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/lookup" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewUpdateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/resourcelink/create.go b/pkg/commands/resourcelink/create.go index e8c3ff1bd..48f467409 100644 --- a/pkg/commands/resourcelink/create.go +++ b/pkg/commands/resourcelink/create.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create a resource link. diff --git a/pkg/commands/resourcelink/delete.go b/pkg/commands/resourcelink/delete.go index ce7a8e2a7..ec1c7a228 100644 --- a/pkg/commands/resourcelink/delete.go +++ b/pkg/commands/resourcelink/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete service resource links. diff --git a/pkg/commands/resourcelink/describe.go b/pkg/commands/resourcelink/describe.go index 7f37f5b28..a694860f6 100644 --- a/pkg/commands/resourcelink/describe.go +++ b/pkg/commands/resourcelink/describe.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a service resource link. diff --git a/pkg/commands/resourcelink/list.go b/pkg/commands/resourcelink/list.go index 0b63e625e..31fbd9636 100644 --- a/pkg/commands/resourcelink/list.go +++ b/pkg/commands/resourcelink/list.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list service resource links diff --git a/pkg/commands/resourcelink/resourcelink_test.go b/pkg/commands/resourcelink/resourcelink_test.go index a041ebd75..6d4577410 100644 --- a/pkg/commands/resourcelink/resourcelink_test.go +++ b/pkg/commands/resourcelink/resourcelink_test.go @@ -11,7 +11,7 @@ import ( "github.com/fastly/cli/pkg/commands/resourcelink" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateServiceResourceCommand(t *testing.T) { diff --git a/pkg/commands/resourcelink/update.go b/pkg/commands/resourcelink/update.go index 37701ac8c..aeacff2f9 100644 --- a/pkg/commands/resourcelink/update.go +++ b/pkg/commands/resourcelink/update.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update a dictionary. diff --git a/pkg/commands/secretstore/create.go b/pkg/commands/secretstore/create.go index c98266247..60d7b3f3e 100644 --- a/pkg/commands/secretstore/create.go +++ b/pkg/commands/secretstore/create.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewCreateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/secretstore/delete.go b/pkg/commands/secretstore/delete.go index d3c424f5d..b47047dc7 100644 --- a/pkg/commands/secretstore/delete.go +++ b/pkg/commands/secretstore/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDeleteCommand returns a usable command registered under the parent. diff --git a/pkg/commands/secretstore/describe.go b/pkg/commands/secretstore/describe.go index a905270be..c6de42cb4 100644 --- a/pkg/commands/secretstore/describe.go +++ b/pkg/commands/secretstore/describe.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDescribeCommand returns a usable command registered under the parent. diff --git a/pkg/commands/secretstore/helper_test.go b/pkg/commands/secretstore/helper_test.go index d470a7a46..3e8d03220 100644 --- a/pkg/commands/secretstore/helper_test.go +++ b/pkg/commands/secretstore/helper_test.go @@ -4,7 +4,7 @@ import ( "bytes" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func fmtStore(s *fastly.SecretStore) string { diff --git a/pkg/commands/secretstore/list.go b/pkg/commands/secretstore/list.go index eac5b749d..aba576326 100644 --- a/pkg/commands/secretstore/list.go +++ b/pkg/commands/secretstore/list.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewListCommand returns a usable command registered under the parent. diff --git a/pkg/commands/secretstore/secretstore_test.go b/pkg/commands/secretstore/secretstore_test.go index 1f164d17b..cda55489e 100644 --- a/pkg/commands/secretstore/secretstore_test.go +++ b/pkg/commands/secretstore/secretstore_test.go @@ -12,7 +12,7 @@ import ( fstfmt "github.com/fastly/cli/pkg/fmt" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreateStoreCommand(t *testing.T) { diff --git a/pkg/commands/secretstoreentry/create.go b/pkg/commands/secretstoreentry/create.go index c8da6adb9..0e4492f42 100644 --- a/pkg/commands/secretstoreentry/create.go +++ b/pkg/commands/secretstoreentry/create.go @@ -13,7 +13,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) const ( @@ -148,7 +148,7 @@ func (c *CreateCommand) Exec(in io.Reader, out io.Writer) error { return err } - if !ck.ValidateSignature(sk) { + if !ck.VerifySignature(sk) { err := fmt.Errorf("unable to validate signature of client key") c.Globals.ErrLog.Add(err) return err diff --git a/pkg/commands/secretstoreentry/delete.go b/pkg/commands/secretstoreentry/delete.go index d7e998b19..0c7f3d30f 100644 --- a/pkg/commands/secretstoreentry/delete.go +++ b/pkg/commands/secretstoreentry/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDeleteCommand returns a usable command registered under the parent. diff --git a/pkg/commands/secretstoreentry/describe.go b/pkg/commands/secretstoreentry/describe.go index e29643751..654cf1fd3 100644 --- a/pkg/commands/secretstoreentry/describe.go +++ b/pkg/commands/secretstoreentry/describe.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDescribeCommand returns a usable command registered under the parent. diff --git a/pkg/commands/secretstoreentry/helper_test.go b/pkg/commands/secretstoreentry/helper_test.go index 622e42c3e..f7c33a868 100644 --- a/pkg/commands/secretstoreentry/helper_test.go +++ b/pkg/commands/secretstoreentry/helper_test.go @@ -4,7 +4,7 @@ import ( "bytes" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func fmtSecret(s *fastly.Secret) string { diff --git a/pkg/commands/secretstoreentry/list.go b/pkg/commands/secretstoreentry/list.go index 586942ec7..87c361647 100644 --- a/pkg/commands/secretstoreentry/list.go +++ b/pkg/commands/secretstoreentry/list.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewListCommand returns a usable command registered under the parent. diff --git a/pkg/commands/secretstoreentry/secretstoreentry_test.go b/pkg/commands/secretstoreentry/secretstoreentry_test.go index 5530f43b8..f30657266 100644 --- a/pkg/commands/secretstoreentry/secretstoreentry_test.go +++ b/pkg/commands/secretstoreentry/secretstoreentry_test.go @@ -18,7 +18,7 @@ import ( fstfmt "github.com/fastly/cli/pkg/fmt" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" "golang.org/x/crypto/nacl/box" ) diff --git a/pkg/commands/service/create.go b/pkg/commands/service/create.go index 2fc4517e6..bd24ef976 100644 --- a/pkg/commands/service/create.go +++ b/pkg/commands/service/create.go @@ -6,7 +6,7 @@ import ( "github.com/fastly/cli/pkg/cmd" "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CreateCommand calls the Fastly API to create services. diff --git a/pkg/commands/service/delete.go b/pkg/commands/service/delete.go index 8915df84e..923a0cd31 100644 --- a/pkg/commands/service/delete.go +++ b/pkg/commands/service/delete.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete services. diff --git a/pkg/commands/service/describe.go b/pkg/commands/service/describe.go index eec00526a..bc9351d88 100644 --- a/pkg/commands/service/describe.go +++ b/pkg/commands/service/describe.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" "github.com/fastly/cli/pkg/time" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a service. diff --git a/pkg/commands/service/list.go b/pkg/commands/service/list.go index 1490affc7..fc1e7390f 100644 --- a/pkg/commands/service/list.go +++ b/pkg/commands/service/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/text" "github.com/fastly/cli/pkg/time" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list services. diff --git a/pkg/commands/service/search.go b/pkg/commands/service/search.go index c9d441e44..03ef8798b 100644 --- a/pkg/commands/service/search.go +++ b/pkg/commands/service/search.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // SearchCommand calls the Fastly API to describe a service. diff --git a/pkg/commands/service/service_test.go b/pkg/commands/service/service_test.go index 457ac9dd3..9448d2ec2 100644 --- a/pkg/commands/service/service_test.go +++ b/pkg/commands/service/service_test.go @@ -13,7 +13,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestServiceCreate(t *testing.T) { diff --git a/pkg/commands/service/update.go b/pkg/commands/service/update.go index 10a869d07..af3d11a87 100644 --- a/pkg/commands/service/update.go +++ b/pkg/commands/service/update.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to create services. diff --git a/pkg/commands/serviceauth/create.go b/pkg/commands/serviceauth/create.go index 44c5fea24..c3c14091a 100644 --- a/pkg/commands/serviceauth/create.go +++ b/pkg/commands/serviceauth/create.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // Permissions is a list of supported permission values. diff --git a/pkg/commands/serviceauth/delete.go b/pkg/commands/serviceauth/delete.go index da3df362b..f158a51c4 100644 --- a/pkg/commands/serviceauth/delete.go +++ b/pkg/commands/serviceauth/delete.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeleteCommand calls the Fastly API to delete service authorizations. diff --git a/pkg/commands/serviceauth/describe.go b/pkg/commands/serviceauth/describe.go index 22ffcc9c9..93c10d76b 100644 --- a/pkg/commands/serviceauth/describe.go +++ b/pkg/commands/serviceauth/describe.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/time" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DescribeCommand calls the Fastly API to describe a service authorization. diff --git a/pkg/commands/serviceauth/list.go b/pkg/commands/serviceauth/list.go index 095f6c37f..3c09f8c2c 100644 --- a/pkg/commands/serviceauth/list.go +++ b/pkg/commands/serviceauth/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/text" "github.com/fastly/cli/pkg/time" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list service authorizations. diff --git a/pkg/commands/serviceauth/service_test.go b/pkg/commands/serviceauth/service_test.go index 9e377c325..93d8ab385 100644 --- a/pkg/commands/serviceauth/service_test.go +++ b/pkg/commands/serviceauth/service_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestServiceAuthCreate(t *testing.T) { diff --git a/pkg/commands/serviceauth/update.go b/pkg/commands/serviceauth/update.go index 7ccefea0c..f820db248 100644 --- a/pkg/commands/serviceauth/update.go +++ b/pkg/commands/serviceauth/update.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update service authorizations. diff --git a/pkg/commands/serviceversion/activate.go b/pkg/commands/serviceversion/activate.go index 3b6826970..ee2c69233 100644 --- a/pkg/commands/serviceversion/activate.go +++ b/pkg/commands/serviceversion/activate.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ActivateCommand calls the Fastly API to activate a service version. diff --git a/pkg/commands/serviceversion/clone.go b/pkg/commands/serviceversion/clone.go index 407d8effb..10c1c5b1d 100644 --- a/pkg/commands/serviceversion/clone.go +++ b/pkg/commands/serviceversion/clone.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // CloneCommand calls the Fastly API to clone a service version. diff --git a/pkg/commands/serviceversion/deactivate.go b/pkg/commands/serviceversion/deactivate.go index 3c100924b..d569e5a9e 100644 --- a/pkg/commands/serviceversion/deactivate.go +++ b/pkg/commands/serviceversion/deactivate.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // DeactivateCommand calls the Fastly API to deactivate a service version. diff --git a/pkg/commands/serviceversion/list.go b/pkg/commands/serviceversion/list.go index 93449349d..b87fbc180 100644 --- a/pkg/commands/serviceversion/list.go +++ b/pkg/commands/serviceversion/list.go @@ -11,7 +11,7 @@ import ( "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" "github.com/fastly/cli/pkg/time" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // ListCommand calls the Fastly API to list services. diff --git a/pkg/commands/serviceversion/lock.go b/pkg/commands/serviceversion/lock.go index b0470f861..64e6133a1 100644 --- a/pkg/commands/serviceversion/lock.go +++ b/pkg/commands/serviceversion/lock.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // LockCommand calls the Fastly API to lock a service version. diff --git a/pkg/commands/serviceversion/serviceversion_test.go b/pkg/commands/serviceversion/serviceversion_test.go index dec79e9f5..c93333d13 100644 --- a/pkg/commands/serviceversion/serviceversion_test.go +++ b/pkg/commands/serviceversion/serviceversion_test.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestVersionClone(t *testing.T) { diff --git a/pkg/commands/serviceversion/update.go b/pkg/commands/serviceversion/update.go index 24790d1cb..a2a1d4dc6 100644 --- a/pkg/commands/serviceversion/update.go +++ b/pkg/commands/serviceversion/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // UpdateCommand calls the Fastly API to update a service version. diff --git a/pkg/commands/stats/historical.go b/pkg/commands/stats/historical.go index 9e8077523..f8f755c79 100644 --- a/pkg/commands/stats/historical.go +++ b/pkg/commands/stats/historical.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/cmd" "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) const statusSuccess = "success" diff --git a/pkg/commands/stats/historical_test.go b/pkg/commands/stats/historical_test.go index 030f3a527..aa4d4cf06 100644 --- a/pkg/commands/stats/historical_test.go +++ b/pkg/commands/stats/historical_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestHistorical(t *testing.T) { diff --git a/pkg/commands/stats/realtime.go b/pkg/commands/stats/realtime.go index a7cdbc794..d9c771b9b 100644 --- a/pkg/commands/stats/realtime.go +++ b/pkg/commands/stats/realtime.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // RealtimeCommand exposes the Realtime Metrics API. diff --git a/pkg/commands/stats/regions_test.go b/pkg/commands/stats/regions_test.go index 47dd5455b..cac75754f 100644 --- a/pkg/commands/stats/regions_test.go +++ b/pkg/commands/stats/regions_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestRegions(t *testing.T) { diff --git a/pkg/commands/stats/template.go b/pkg/commands/stats/template.go index 207ace504..48f41c41c 100644 --- a/pkg/commands/stats/template.go +++ b/pkg/commands/stats/template.go @@ -6,7 +6,7 @@ import ( "text/template" "time" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" "github.com/mitchellh/mapstructure" ) diff --git a/pkg/commands/tls/config/config_test.go b/pkg/commands/tls/config/config_test.go index 23813b088..283e40f6f 100644 --- a/pkg/commands/tls/config/config_test.go +++ b/pkg/commands/tls/config/config_test.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) const ( diff --git a/pkg/commands/tls/config/describe.go b/pkg/commands/tls/config/describe.go index 8316e98d7..1346422b2 100644 --- a/pkg/commands/tls/config/describe.go +++ b/pkg/commands/tls/config/describe.go @@ -9,7 +9,7 @@ import ( fsterr "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) const include = "dns_records" diff --git a/pkg/commands/tls/config/list.go b/pkg/commands/tls/config/list.go index 5817c725e..8855f932d 100644 --- a/pkg/commands/tls/config/list.go +++ b/pkg/commands/tls/config/list.go @@ -11,7 +11,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewListCommand returns a usable command registered under the parent. diff --git a/pkg/commands/tls/config/update.go b/pkg/commands/tls/config/update.go index fcc23d14c..a9fcfae0d 100644 --- a/pkg/commands/tls/config/update.go +++ b/pkg/commands/tls/config/update.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewUpdateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/tls/custom/activation/activation_test.go b/pkg/commands/tls/custom/activation/activation_test.go index 9d692a8c6..9e8885972 100644 --- a/pkg/commands/tls/custom/activation/activation_test.go +++ b/pkg/commands/tls/custom/activation/activation_test.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) const ( diff --git a/pkg/commands/tls/custom/activation/create.go b/pkg/commands/tls/custom/activation/create.go index ded798d39..6f9510249 100644 --- a/pkg/commands/tls/custom/activation/create.go +++ b/pkg/commands/tls/custom/activation/create.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewCreateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/tls/custom/activation/delete.go b/pkg/commands/tls/custom/activation/delete.go index c9cbb2b6d..0db3acffa 100644 --- a/pkg/commands/tls/custom/activation/delete.go +++ b/pkg/commands/tls/custom/activation/delete.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDeleteCommand returns a usable command registered under the parent. diff --git a/pkg/commands/tls/custom/activation/describe.go b/pkg/commands/tls/custom/activation/describe.go index d94feadad..aa0fc896d 100644 --- a/pkg/commands/tls/custom/activation/describe.go +++ b/pkg/commands/tls/custom/activation/describe.go @@ -9,7 +9,7 @@ import ( fsterr "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) var include = []string{"tls_certificate", "tls_configuration", "tls_domain"} diff --git a/pkg/commands/tls/custom/activation/list.go b/pkg/commands/tls/custom/activation/list.go index 813ab4262..6c4e97e8e 100644 --- a/pkg/commands/tls/custom/activation/list.go +++ b/pkg/commands/tls/custom/activation/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewListCommand returns a usable command registered under the parent. diff --git a/pkg/commands/tls/custom/activation/update.go b/pkg/commands/tls/custom/activation/update.go index 7b53fc1a3..1ac71063c 100644 --- a/pkg/commands/tls/custom/activation/update.go +++ b/pkg/commands/tls/custom/activation/update.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewUpdateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/tls/custom/certificate/certificate_test.go b/pkg/commands/tls/custom/certificate/certificate_test.go index d680667fb..0b72ec66b 100644 --- a/pkg/commands/tls/custom/certificate/certificate_test.go +++ b/pkg/commands/tls/custom/certificate/certificate_test.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) const ( diff --git a/pkg/commands/tls/custom/certificate/create.go b/pkg/commands/tls/custom/certificate/create.go index 5a3504252..cf6c0dc5f 100644 --- a/pkg/commands/tls/custom/certificate/create.go +++ b/pkg/commands/tls/custom/certificate/create.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewCreateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/tls/custom/certificate/delete.go b/pkg/commands/tls/custom/certificate/delete.go index 436928673..46d0977ab 100644 --- a/pkg/commands/tls/custom/certificate/delete.go +++ b/pkg/commands/tls/custom/certificate/delete.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDeleteCommand returns a usable command registered under the parent. diff --git a/pkg/commands/tls/custom/certificate/describe.go b/pkg/commands/tls/custom/certificate/describe.go index dd4379f59..363fe3a65 100644 --- a/pkg/commands/tls/custom/certificate/describe.go +++ b/pkg/commands/tls/custom/certificate/describe.go @@ -9,7 +9,7 @@ import ( fsterr "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDescribeCommand returns a usable command registered under the parent. diff --git a/pkg/commands/tls/custom/certificate/list.go b/pkg/commands/tls/custom/certificate/list.go index 9ec7688d6..2dda8e894 100644 --- a/pkg/commands/tls/custom/certificate/list.go +++ b/pkg/commands/tls/custom/certificate/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) const emptyString = "" diff --git a/pkg/commands/tls/custom/certificate/update.go b/pkg/commands/tls/custom/certificate/update.go index 9dc030fc5..c7c20b320 100644 --- a/pkg/commands/tls/custom/certificate/update.go +++ b/pkg/commands/tls/custom/certificate/update.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewUpdateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/tls/custom/domain/domain_test.go b/pkg/commands/tls/custom/domain/domain_test.go index 04d128346..6d289ba4c 100644 --- a/pkg/commands/tls/custom/domain/domain_test.go +++ b/pkg/commands/tls/custom/domain/domain_test.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) const ( diff --git a/pkg/commands/tls/custom/domain/list.go b/pkg/commands/tls/custom/domain/list.go index 36b551b88..7b9e0d7f8 100644 --- a/pkg/commands/tls/custom/domain/list.go +++ b/pkg/commands/tls/custom/domain/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) const emptyString = "" diff --git a/pkg/commands/tls/custom/privatekey/create.go b/pkg/commands/tls/custom/privatekey/create.go index 2fa46cd22..260a93296 100644 --- a/pkg/commands/tls/custom/privatekey/create.go +++ b/pkg/commands/tls/custom/privatekey/create.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewCreateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/tls/custom/privatekey/delete.go b/pkg/commands/tls/custom/privatekey/delete.go index e3e5df11e..b8d7ef86d 100644 --- a/pkg/commands/tls/custom/privatekey/delete.go +++ b/pkg/commands/tls/custom/privatekey/delete.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDeleteCommand returns a usable command registered under the parent. diff --git a/pkg/commands/tls/custom/privatekey/describe.go b/pkg/commands/tls/custom/privatekey/describe.go index 618fb5ffb..e49008f4a 100644 --- a/pkg/commands/tls/custom/privatekey/describe.go +++ b/pkg/commands/tls/custom/privatekey/describe.go @@ -9,7 +9,7 @@ import ( fsterr "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDescribeCommand returns a usable command registered under the parent. diff --git a/pkg/commands/tls/custom/privatekey/list.go b/pkg/commands/tls/custom/privatekey/list.go index 5e186b153..96a4f60c7 100644 --- a/pkg/commands/tls/custom/privatekey/list.go +++ b/pkg/commands/tls/custom/privatekey/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewListCommand returns a usable command registered under the parent. diff --git a/pkg/commands/tls/custom/privatekey/privatekey_test.go b/pkg/commands/tls/custom/privatekey/privatekey_test.go index 7bcb062df..640fb34e8 100644 --- a/pkg/commands/tls/custom/privatekey/privatekey_test.go +++ b/pkg/commands/tls/custom/privatekey/privatekey_test.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) const ( diff --git a/pkg/commands/tls/platform/create.go b/pkg/commands/tls/platform/create.go index 284b3bf48..4a81042a5 100644 --- a/pkg/commands/tls/platform/create.go +++ b/pkg/commands/tls/platform/create.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewCreateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/tls/platform/delete.go b/pkg/commands/tls/platform/delete.go index 4c7ca74c9..dcb797351 100644 --- a/pkg/commands/tls/platform/delete.go +++ b/pkg/commands/tls/platform/delete.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDeleteCommand returns a usable command registered under the parent. diff --git a/pkg/commands/tls/platform/describe.go b/pkg/commands/tls/platform/describe.go index 7e330b164..45cb56b4e 100644 --- a/pkg/commands/tls/platform/describe.go +++ b/pkg/commands/tls/platform/describe.go @@ -9,7 +9,7 @@ import ( fsterr "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDescribeCommand returns a usable command registered under the parent. diff --git a/pkg/commands/tls/platform/list.go b/pkg/commands/tls/platform/list.go index 182a5aabf..5b9c21588 100644 --- a/pkg/commands/tls/platform/list.go +++ b/pkg/commands/tls/platform/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewListCommand returns a usable command registered under the parent. diff --git a/pkg/commands/tls/platform/platform_test.go b/pkg/commands/tls/platform/platform_test.go index 08d0b2263..b26042270 100644 --- a/pkg/commands/tls/platform/platform_test.go +++ b/pkg/commands/tls/platform/platform_test.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) const ( diff --git a/pkg/commands/tls/platform/update.go b/pkg/commands/tls/platform/update.go index 8476d0c61..1bf9a1f8d 100644 --- a/pkg/commands/tls/platform/update.go +++ b/pkg/commands/tls/platform/update.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewUpdateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/tls/subscription/create.go b/pkg/commands/tls/subscription/create.go index 9271b5e99..282794467 100644 --- a/pkg/commands/tls/subscription/create.go +++ b/pkg/commands/tls/subscription/create.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) const emptyString = "" diff --git a/pkg/commands/tls/subscription/delete.go b/pkg/commands/tls/subscription/delete.go index c38289bd0..469b93a55 100644 --- a/pkg/commands/tls/subscription/delete.go +++ b/pkg/commands/tls/subscription/delete.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDeleteCommand returns a usable command registered under the parent. diff --git a/pkg/commands/tls/subscription/describe.go b/pkg/commands/tls/subscription/describe.go index 7dce88bc9..f7b993558 100644 --- a/pkg/commands/tls/subscription/describe.go +++ b/pkg/commands/tls/subscription/describe.go @@ -9,7 +9,7 @@ import ( fsterr "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) var include = []string{"tls_authorizations", "tls_authorizations.globalsign_email_challenge"} diff --git a/pkg/commands/tls/subscription/list.go b/pkg/commands/tls/subscription/list.go index 129c067a2..7ce24e415 100644 --- a/pkg/commands/tls/subscription/list.go +++ b/pkg/commands/tls/subscription/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) var states = []string{"pending", "processing", "issued", "renewing"} diff --git a/pkg/commands/tls/subscription/subscription_test.go b/pkg/commands/tls/subscription/subscription_test.go index 720e21d8c..48f0f0744 100644 --- a/pkg/commands/tls/subscription/subscription_test.go +++ b/pkg/commands/tls/subscription/subscription_test.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) const ( diff --git a/pkg/commands/tls/subscription/update.go b/pkg/commands/tls/subscription/update.go index 1c1512006..6e6c5bb2b 100644 --- a/pkg/commands/tls/subscription/update.go +++ b/pkg/commands/tls/subscription/update.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewUpdateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/user/create.go b/pkg/commands/user/create.go index 7a06d9715..f858d1d7c 100644 --- a/pkg/commands/user/create.go +++ b/pkg/commands/user/create.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/lookup" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewCreateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/user/delete.go b/pkg/commands/user/delete.go index beaff25b0..67892e3e8 100644 --- a/pkg/commands/user/delete.go +++ b/pkg/commands/user/delete.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/lookup" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDeleteCommand returns a usable command registered under the parent. diff --git a/pkg/commands/user/describe.go b/pkg/commands/user/describe.go index 471b5f126..c617b623a 100644 --- a/pkg/commands/user/describe.go +++ b/pkg/commands/user/describe.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/lookup" "github.com/fastly/cli/pkg/manifest" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDescribeCommand returns a usable command registered under the parent. diff --git a/pkg/commands/user/list.go b/pkg/commands/user/list.go index 7fddcb333..63bbde61a 100644 --- a/pkg/commands/user/list.go +++ b/pkg/commands/user/list.go @@ -11,7 +11,7 @@ import ( "github.com/fastly/cli/pkg/lookup" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewListCommand returns a usable command registered under the parent. diff --git a/pkg/commands/user/update.go b/pkg/commands/user/update.go index 44c41f40e..75daf2a3f 100644 --- a/pkg/commands/user/update.go +++ b/pkg/commands/user/update.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/lookup" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewUpdateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/user/user_test.go b/pkg/commands/user/user_test.go index 0f780ee73..aa7c4e561 100644 --- a/pkg/commands/user/user_test.go +++ b/pkg/commands/user/user_test.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestCreate(t *testing.T) { diff --git a/pkg/commands/vcl/custom/create.go b/pkg/commands/vcl/custom/create.go index 770c3b76f..e5dce8df6 100644 --- a/pkg/commands/vcl/custom/create.go +++ b/pkg/commands/vcl/custom/create.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewCreateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/vcl/custom/custom_test.go b/pkg/commands/vcl/custom/custom_test.go index 46fe1891c..2bb54deed 100644 --- a/pkg/commands/vcl/custom/custom_test.go +++ b/pkg/commands/vcl/custom/custom_test.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestVCLCustomCreate(t *testing.T) { diff --git a/pkg/commands/vcl/custom/delete.go b/pkg/commands/vcl/custom/delete.go index 34b1e5401..f2e688a90 100644 --- a/pkg/commands/vcl/custom/delete.go +++ b/pkg/commands/vcl/custom/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDeleteCommand returns a usable command registered under the parent. diff --git a/pkg/commands/vcl/custom/describe.go b/pkg/commands/vcl/custom/describe.go index ae50b8f10..b867b3663 100644 --- a/pkg/commands/vcl/custom/describe.go +++ b/pkg/commands/vcl/custom/describe.go @@ -9,7 +9,7 @@ import ( fsterr "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDescribeCommand returns a usable command registered under the parent. diff --git a/pkg/commands/vcl/custom/list.go b/pkg/commands/vcl/custom/list.go index 8086b2d11..a96b914a9 100644 --- a/pkg/commands/vcl/custom/list.go +++ b/pkg/commands/vcl/custom/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewListCommand returns a usable command registered under the parent. diff --git a/pkg/commands/vcl/custom/update.go b/pkg/commands/vcl/custom/update.go index 1d0835327..5d555e9e7 100644 --- a/pkg/commands/vcl/custom/update.go +++ b/pkg/commands/vcl/custom/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewUpdateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/vcl/snippet/create.go b/pkg/commands/vcl/snippet/create.go index 85cbe68d3..43f98a198 100644 --- a/pkg/commands/vcl/snippet/create.go +++ b/pkg/commands/vcl/snippet/create.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // Locations is a list of VCL subroutines. diff --git a/pkg/commands/vcl/snippet/delete.go b/pkg/commands/vcl/snippet/delete.go index c661373b0..89a539424 100644 --- a/pkg/commands/vcl/snippet/delete.go +++ b/pkg/commands/vcl/snippet/delete.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDeleteCommand returns a usable command registered under the parent. diff --git a/pkg/commands/vcl/snippet/describe.go b/pkg/commands/vcl/snippet/describe.go index 6905525d0..0213f4a32 100644 --- a/pkg/commands/vcl/snippet/describe.go +++ b/pkg/commands/vcl/snippet/describe.go @@ -9,7 +9,7 @@ import ( fsterr "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewDescribeCommand returns a usable command registered under the parent. diff --git a/pkg/commands/vcl/snippet/list.go b/pkg/commands/vcl/snippet/list.go index ce9bc0cf5..7b60a2eac 100644 --- a/pkg/commands/vcl/snippet/list.go +++ b/pkg/commands/vcl/snippet/list.go @@ -10,7 +10,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewListCommand returns a usable command registered under the parent. diff --git a/pkg/commands/vcl/snippet/snippet_test.go b/pkg/commands/vcl/snippet/snippet_test.go index 2ac12caec..18c1db51b 100644 --- a/pkg/commands/vcl/snippet/snippet_test.go +++ b/pkg/commands/vcl/snippet/snippet_test.go @@ -7,7 +7,7 @@ import ( "github.com/fastly/cli/pkg/app" "github.com/fastly/cli/pkg/mock" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestVCLSnippetCreate(t *testing.T) { diff --git a/pkg/commands/vcl/snippet/update.go b/pkg/commands/vcl/snippet/update.go index 2ab15a92a..ee03a4a14 100644 --- a/pkg/commands/vcl/snippet/update.go +++ b/pkg/commands/vcl/snippet/update.go @@ -9,7 +9,7 @@ import ( "github.com/fastly/cli/pkg/global" "github.com/fastly/cli/pkg/manifest" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // NewUpdateCommand returns a usable command registered under the parent. diff --git a/pkg/commands/version/root.go b/pkg/commands/version/root.go index 1a97849b0..7c3ce6679 100644 --- a/pkg/commands/version/root.go +++ b/pkg/commands/version/root.go @@ -12,7 +12,7 @@ import ( "github.com/fastly/cli/pkg/github" "github.com/fastly/cli/pkg/revision" "github.com/fastly/cli/pkg/useragent" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func init() { diff --git a/pkg/errors/deduce.go b/pkg/errors/deduce.go index 0b978699c..2d67ec058 100644 --- a/pkg/errors/deduce.go +++ b/pkg/errors/deduce.go @@ -7,7 +7,7 @@ import ( "os" "strings" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // Deduce attempts to deduce a RemediationError from a plain error. If the error diff --git a/pkg/errors/deduce_test.go b/pkg/errors/deduce_test.go index c182e23b1..79e917511 100644 --- a/pkg/errors/deduce_test.go +++ b/pkg/errors/deduce_test.go @@ -8,7 +8,7 @@ import ( "github.com/fastly/cli/pkg/errors" "github.com/fastly/cli/pkg/testutil" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestDeduce(t *testing.T) { diff --git a/pkg/errors/log.go b/pkg/errors/log.go index ae1625fe6..647a26945 100644 --- a/pkg/errors/log.go +++ b/pkg/errors/log.go @@ -12,7 +12,7 @@ import ( "text/template" "time" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" "github.com/getsentry/sentry-go" ) diff --git a/pkg/manifest/manifest.go b/pkg/manifest/manifest.go index d45da7462..badcc6547 100644 --- a/pkg/manifest/manifest.go +++ b/pkg/manifest/manifest.go @@ -218,10 +218,10 @@ type Scripts struct { // Setup represents a set of service configuration that works with the code in // the package. See https://developer.fastly.com/reference/fastly-toml/. type Setup struct { - Backends map[string]*SetupBackend `toml:"backends,omitempty"` - Dictionaries map[string]*SetupDictionary `toml:"dictionaries,omitempty"` - Loggers map[string]*SetupLogger `toml:"log_endpoints,omitempty"` - ObjectStores map[string]*SetupObjectStore `toml:"object_stores,omitempty"` + Backends map[string]*SetupBackend `toml:"backends,omitempty"` + Dictionaries map[string]*SetupDictionary `toml:"dictionaries,omitempty"` + Loggers map[string]*SetupLogger `toml:"log_endpoints,omitempty"` + KVStores map[string]*SetupKVStore `toml:"kv_stores,omitempty"` } // Defined indicates if there is any [setup] configuration in the manifest. @@ -237,7 +237,7 @@ func (s Setup) Defined() bool { if len(s.Loggers) > 0 { defined = true } - if len(s.ObjectStores) > 0 { + if len(s.KVStores) > 0 { defined = true } @@ -268,14 +268,14 @@ type SetupLogger struct { Provider string `toml:"provider,omitempty"` } -// SetupObjectStore represents a '[setup.object_stores.]' instance. -type SetupObjectStore struct { - Items map[string]SetupObjectStoreItems `toml:"items,omitempty"` - Description string `toml:"description,omitempty"` +// SetupKVStore represents a '[setup.kv_stores.]' instance. +type SetupKVStore struct { + Items map[string]SetupKVStoreItems `toml:"items,omitempty"` + Description string `toml:"description,omitempty"` } -// SetupObjectStoreItems represents a '[setup.object_stores..items]' instance. -type SetupObjectStoreItems struct { +// SetupKVStoreItems represents a '[setup.kv_stores..items]' instance. +type SetupKVStoreItems struct { Value string `toml:"value,omitempty"` Description string `toml:"description,omitempty"` } @@ -284,7 +284,7 @@ type SetupObjectStoreItems struct { type LocalServer struct { Backends map[string]LocalBackend `toml:"backends"` Dictionaries map[string]LocalDictionary `toml:"dictionaries,omitempty"` - ObjectStores map[string][]LocalObjectStore `toml:"object_stores,omitempty"` + KVStores map[string][]LocalKVStore `toml:"kv_stores,omitempty"` SecretStores map[string][]LocalSecretStore `toml:"secret_stores,omitempty"` } @@ -303,8 +303,8 @@ type LocalDictionary struct { Contents map[string]string `toml:"contents,omitempty"` } -// LocalObjectStore represents an object_store to be mocked by the local testing server. -type LocalObjectStore struct { +// LocalKVStore represents an kv_store to be mocked by the local testing server. +type LocalKVStore struct { Key string `toml:"key"` File string `toml:"file,omitempty"` Data string `toml:"data,omitempty"` diff --git a/pkg/manifest/testdata/fastly-viceroy-update.toml b/pkg/manifest/testdata/fastly-viceroy-update.toml index b96d2a60e..91fa08937 100644 --- a/pkg/manifest/testdata/fastly-viceroy-update.toml +++ b/pkg/manifest/testdata/fastly-viceroy-update.toml @@ -35,14 +35,14 @@ name = "Default Rust template" baz = """ qux""" - [local_server.object_stores] + [local_server.kv_stores] store_one = [{key = "first", data = "This is some data"}, {key = "second", file = "strings.json"}] - [[local_server.object_stores.store_two]] + [[local_server.kv_stores.store_two]] key = "first" data = "This is some data" - [[local_server.object_stores.store_two]] + [[local_server.kv_stores.store_two]] key = "second" file = "strings.json" diff --git a/pkg/mock/api.go b/pkg/mock/api.go index 34838beb2..6c1cb016a 100644 --- a/pkg/mock/api.go +++ b/pkg/mock/api.go @@ -3,7 +3,7 @@ package mock import ( "crypto/ed25519" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // API is a mock implementation of api.Interface that's used for testing. @@ -335,14 +335,14 @@ type API struct { ListConfigStoreItemsFn func(i *fastly.ListConfigStoreItemsInput) ([]*fastly.ConfigStoreItem, error) UpdateConfigStoreItemFn func(i *fastly.UpdateConfigStoreItemInput) (*fastly.ConfigStoreItem, error) - CreateObjectStoreFn func(i *fastly.CreateObjectStoreInput) (*fastly.ObjectStore, error) - GetObjectStoreFn func(i *fastly.GetObjectStoreInput) (*fastly.ObjectStore, error) - ListObjectStoresFn func(i *fastly.ListObjectStoresInput) (*fastly.ListObjectStoresResponse, error) - DeleteObjectStoreFn func(i *fastly.DeleteObjectStoreInput) error - ListObjectStoreKeysFn func(i *fastly.ListObjectStoreKeysInput) (*fastly.ListObjectStoreKeysResponse, error) - GetObjectStoreKeyFn func(i *fastly.GetObjectStoreKeyInput) (string, error) - InsertObjectStoreKeyFn func(i *fastly.InsertObjectStoreKeyInput) error - DeleteObjectStoreKeyFn func(i *fastly.DeleteObjectStoreKeyInput) error + CreateKVStoreFn func(i *fastly.CreateKVStoreInput) (*fastly.KVStore, error) + GetKVStoreFn func(i *fastly.GetKVStoreInput) (*fastly.KVStore, error) + ListKVStoresFn func(i *fastly.ListKVStoresInput) (*fastly.ListKVStoresResponse, error) + DeleteKVStoreFn func(i *fastly.DeleteKVStoreInput) error + ListKVStoreKeysFn func(i *fastly.ListKVStoreKeysInput) (*fastly.ListKVStoreKeysResponse, error) + GetKVStoreKeyFn func(i *fastly.GetKVStoreKeyInput) (string, error) + InsertKVStoreKeyFn func(i *fastly.InsertKVStoreKeyInput) error + DeleteKVStoreKeyFn func(i *fastly.DeleteKVStoreKeyInput) error CreateSecretStoreFn func(i *fastly.CreateSecretStoreInput) (*fastly.SecretStore, error) GetSecretStoreFn func(i *fastly.GetSecretStoreInput) (*fastly.SecretStore, error) @@ -1718,44 +1718,44 @@ func (m API) UpdateConfigStoreItem(i *fastly.UpdateConfigStoreItemInput) (*fastl return m.UpdateConfigStoreItemFn(i) } -// CreateObjectStore implements Interface. -func (m API) CreateObjectStore(i *fastly.CreateObjectStoreInput) (*fastly.ObjectStore, error) { - return m.CreateObjectStoreFn(i) +// CreateKVStore implements Interface. +func (m API) CreateKVStore(i *fastly.CreateKVStoreInput) (*fastly.KVStore, error) { + return m.CreateKVStoreFn(i) } -// GetObjectStore implements Interface. -func (m API) GetObjectStore(i *fastly.GetObjectStoreInput) (*fastly.ObjectStore, error) { - return m.GetObjectStoreFn(i) +// GetKVStore implements Interface. +func (m API) GetKVStore(i *fastly.GetKVStoreInput) (*fastly.KVStore, error) { + return m.GetKVStoreFn(i) } -// ListObjectStores implements Interface. -func (m API) ListObjectStores(i *fastly.ListObjectStoresInput) (*fastly.ListObjectStoresResponse, error) { - return m.ListObjectStoresFn(i) +// ListKVStores implements Interface. +func (m API) ListKVStores(i *fastly.ListKVStoresInput) (*fastly.ListKVStoresResponse, error) { + return m.ListKVStoresFn(i) } -// DeleteObjectStore implements Interface. -func (m API) DeleteObjectStore(i *fastly.DeleteObjectStoreInput) error { - return m.DeleteObjectStoreFn(i) +// DeleteKVStore implements Interface. +func (m API) DeleteKVStore(i *fastly.DeleteKVStoreInput) error { + return m.DeleteKVStoreFn(i) } -// ListObjectStoreKeys implements Interface. -func (m API) ListObjectStoreKeys(i *fastly.ListObjectStoreKeysInput) (*fastly.ListObjectStoreKeysResponse, error) { - return m.ListObjectStoreKeysFn(i) +// ListKVStoreKeys implements Interface. +func (m API) ListKVStoreKeys(i *fastly.ListKVStoreKeysInput) (*fastly.ListKVStoreKeysResponse, error) { + return m.ListKVStoreKeysFn(i) } -// GetObjectStoreKey implements Interface. -func (m API) GetObjectStoreKey(i *fastly.GetObjectStoreKeyInput) (string, error) { - return m.GetObjectStoreKeyFn(i) +// GetKVStoreKey implements Interface. +func (m API) GetKVStoreKey(i *fastly.GetKVStoreKeyInput) (string, error) { + return m.GetKVStoreKeyFn(i) } -// InsertObjectStoreKey implements Interface. -func (m API) InsertObjectStoreKey(i *fastly.InsertObjectStoreKeyInput) error { - return m.InsertObjectStoreKeyFn(i) +// InsertKVStoreKey implements Interface. +func (m API) InsertKVStoreKey(i *fastly.InsertKVStoreKeyInput) error { + return m.InsertKVStoreKeyFn(i) } -// DeleteObjectStoreKey implements Interface. -func (m API) DeleteObjectStoreKey(i *fastly.DeleteObjectStoreKeyInput) error { - return m.DeleteObjectStoreKeyFn(i) +// DeleteKVStoreKey implements Interface. +func (m API) DeleteKVStoreKey(i *fastly.DeleteKVStoreKeyInput) error { + return m.DeleteKVStoreKeyFn(i) } // CreateSecretStore implements Interface. diff --git a/pkg/testutil/api.go b/pkg/testutil/api.go index cf621c524..8c18712e1 100644 --- a/pkg/testutil/api.go +++ b/pkg/testutil/api.go @@ -3,7 +3,7 @@ package testutil import ( "errors" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) // Err represents a generic error. diff --git a/pkg/text/backend.go b/pkg/text/backend.go index ea3e9f76f..ec2b0b882 100644 --- a/pkg/text/backend.go +++ b/pkg/text/backend.go @@ -4,7 +4,7 @@ import ( "fmt" "io" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" "github.com/segmentio/textio" ) diff --git a/pkg/text/configstore.go b/pkg/text/configstore.go index 2343df396..265f00d0a 100644 --- a/pkg/text/configstore.go +++ b/pkg/text/configstore.go @@ -7,7 +7,7 @@ import ( "time" fsttime "github.com/fastly/cli/pkg/time" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" "github.com/segmentio/textio" ) diff --git a/pkg/text/dictionary.go b/pkg/text/dictionary.go index 2b7594943..9752dfaad 100644 --- a/pkg/text/dictionary.go +++ b/pkg/text/dictionary.go @@ -5,7 +5,7 @@ import ( "io" "github.com/fastly/cli/pkg/time" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" "github.com/segmentio/textio" ) diff --git a/pkg/text/dictionaryitem.go b/pkg/text/dictionaryitem.go index f2a089d68..a9573b346 100644 --- a/pkg/text/dictionaryitem.go +++ b/pkg/text/dictionaryitem.go @@ -5,7 +5,7 @@ import ( "io" "github.com/fastly/cli/pkg/time" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" "github.com/segmentio/textio" ) diff --git a/pkg/text/dictionaryitem_test.go b/pkg/text/dictionaryitem_test.go index 02dc5c892..3766cc398 100644 --- a/pkg/text/dictionaryitem_test.go +++ b/pkg/text/dictionaryitem_test.go @@ -6,7 +6,7 @@ import ( "github.com/fastly/cli/pkg/testutil" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestPrintDictionaryItem(t *testing.T) { diff --git a/pkg/text/healthcheck.go b/pkg/text/healthcheck.go index 76d9c9540..8e3ce8050 100644 --- a/pkg/text/healthcheck.go +++ b/pkg/text/healthcheck.go @@ -4,7 +4,7 @@ import ( "fmt" "io" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" "github.com/segmentio/textio" ) diff --git a/pkg/text/objectstore.go b/pkg/text/objectstore.go index 95318f4aa..555b7ff5e 100644 --- a/pkg/text/objectstore.go +++ b/pkg/text/objectstore.go @@ -5,14 +5,14 @@ import ( "io" "github.com/fastly/cli/pkg/time" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" "github.com/segmentio/textio" ) -// PrintObjectStore pretty prints a fastly.Dictionary structure in verbose +// PrintKVStore pretty prints a fastly.Dictionary structure in verbose // format to a given io.Writer. Consumers can provide a prefix string which // will be used as a prefix to each line, useful for indentation. -func PrintObjectStore(out io.Writer, prefix string, d *fastly.ObjectStore) { +func PrintKVStore(out io.Writer, prefix string, d *fastly.KVStore) { out = textio.NewPrefixWriter(out, prefix) fmt.Fprintf(out, "\nID: %s\n", d.ID) @@ -21,10 +21,10 @@ func PrintObjectStore(out io.Writer, prefix string, d *fastly.ObjectStore) { fmt.Fprintf(out, "Last edited (UTC): %s\n", d.UpdatedAt.UTC().Format(time.Format)) } -// PrintObjectStoreKeys pretty prints a list of object store keys in verbose +// PrintKVStoreKeys pretty prints a list of kv store keys in verbose // format to a given io.Writer. Consumers can provide a prefix string which // will be used as a prefix to each line, useful for indentation. -func PrintObjectStoreKeys(out io.Writer, prefix string, keys []string) { +func PrintKVStoreKeys(out io.Writer, prefix string, keys []string) { out = textio.NewPrefixWriter(out, prefix) for _, k := range keys { @@ -32,10 +32,10 @@ func PrintObjectStoreKeys(out io.Writer, prefix string, keys []string) { } } -// PrintObjectStoreKeyValue pretty prints a value from an object store to a +// PrintKVStoreKeyValue pretty prints a value from an kv store to a // given io.Writer. Consumers can provide a prefix string which will be used as // a prefix to each line, useful for indentation. -func PrintObjectStoreKeyValue(out io.Writer, prefix string, key, value string) { +func PrintKVStoreKeyValue(out io.Writer, prefix string, key, value string) { out = textio.NewPrefixWriter(out, prefix) fmt.Fprintf(out, "Key: %s\n", key) diff --git a/pkg/text/resource.go b/pkg/text/resource.go index 86f45df5f..2e30a850e 100644 --- a/pkg/text/resource.go +++ b/pkg/text/resource.go @@ -5,7 +5,7 @@ import ( "io" "github.com/fastly/cli/pkg/time" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" "github.com/segmentio/textio" ) diff --git a/pkg/text/secretstore.go b/pkg/text/secretstore.go index 5d508d88e..0e039968c 100644 --- a/pkg/text/secretstore.go +++ b/pkg/text/secretstore.go @@ -5,7 +5,7 @@ import ( "fmt" "io" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" "github.com/segmentio/textio" ) diff --git a/pkg/text/service.go b/pkg/text/service.go index 6b82d3d7c..b2a1c749a 100644 --- a/pkg/text/service.go +++ b/pkg/text/service.go @@ -5,7 +5,7 @@ import ( "io" "github.com/fastly/cli/pkg/time" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" "github.com/segmentio/textio" ) diff --git a/pkg/text/service_test.go b/pkg/text/service_test.go index 8da389967..9766c6cd6 100644 --- a/pkg/text/service_test.go +++ b/pkg/text/service_test.go @@ -6,7 +6,7 @@ import ( "github.com/fastly/cli/pkg/testutil" "github.com/fastly/cli/pkg/text" - "github.com/fastly/go-fastly/v7/fastly" + "github.com/fastly/go-fastly/v8/fastly" ) func TestPrintService(t *testing.T) {