From 1aeb40c6de62ca4b3102bb91945bcff70585381c Mon Sep 17 00:00:00 2001 From: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> Date: Tue, 17 Dec 2024 10:18:07 -0600 Subject: [PATCH 1/3] Update GO client versions Fixes issue #8959 Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> --- _clients/go.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/_clients/go.md b/_clients/go.md index 4e7de56601..6cccd8ffff 100644 --- a/_clients/go.md +++ b/_clients/go.md @@ -6,7 +6,7 @@ nav_order: 50 # Go client -The OpenSearch Go client lets you connect your Go application with the data in your OpenSearch cluster. This getting started guide illustrates how to connect to OpenSearch, index documents, and run queries. For the client's complete API documentation and additional examples, see the [Go client API documentation](https://pkg.go.dev/github.com/opensearch-project/opensearch-go/v2). +The OpenSearch Go client lets you connect your Go application with the data in your OpenSearch cluster. This getting started guide illustrates how to connect to OpenSearch, index documents, and run queries. For the client's complete API documentation and additional examples, see the [Go client API documentation](https://pkg.go.dev/github.com/opensearch-project/opensearch-go/v4). For the client source code, see the [opensearch-go repo](https://github.com/opensearch-project/opensearch-go). @@ -66,11 +66,11 @@ import ( "context" "log" - "github.com/aws/aws-sdk-go-v2/aws" - "github.com/aws/aws-sdk-go-v2/config" - opensearch "github.com/opensearch-project/opensearch-go/v2" - opensearchapi "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - requestsigner "github.com/opensearch-project/opensearch-go/v2/signer/awsv2" + "github.com/aws/aws-sdk-go-v4/aws" + "github.com/aws/aws-sdk-go-v4/config" + opensearch "github.com/opensearch-project/opensearch-go/v4" + opensearchapi "github.com/opensearch-project/opensearch-go/v4/opensearchapi" + requestsigner "github.com/opensearch-project/opensearch-go/v4/signer/awsv4" ) const endpoint = "" // e.g. https://opensearch-domain.region.com or Amazon OpenSearch Serverless endpoint @@ -128,11 +128,11 @@ import ( "context" "log" - "github.com/aws/aws-sdk-go-v2/aws" - "github.com/aws/aws-sdk-go-v2/config" - opensearch "github.com/opensearch-project/opensearch-go/v2" - opensearchapi "github.com/opensearch-project/opensearch-go/v2/opensearchapi" - requestsigner "github.com/opensearch-project/opensearch-go/v2/signer/awsv2" + "github.com/aws/aws-sdk-go-v4/aws" + "github.com/aws/aws-sdk-go-v4/config" + opensearch "github.com/opensearch-project/opensearch-go/v4" + opensearchapi "github.com/opensearch-project/opensearch-go/v4/opensearchapi" + requestsigner "github.com/opensearch-project/opensearch-go/v4/signer/awsv4" ) const endpoint = "" // e.g. https://opensearch-domain.region.com or Amazon OpenSearch Serverless endpoint @@ -471,4 +471,4 @@ func main() { defer deleteIndexResponse.Body.Close() } ``` -{% include copy.html %} \ No newline at end of file +{% include copy.html %} From a3ae56dcd0ebd9d76cd8db742077fde80389e48c Mon Sep 17 00:00:00 2001 From: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> Date: Tue, 17 Dec 2024 10:21:47 -0600 Subject: [PATCH 2/3] Update awsv2 signer URL Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> --- _clients/go.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_clients/go.md b/_clients/go.md index 6cccd8ffff..0d440de7a6 100644 --- a/_clients/go.md +++ b/_clients/go.md @@ -70,7 +70,7 @@ import ( "github.com/aws/aws-sdk-go-v4/config" opensearch "github.com/opensearch-project/opensearch-go/v4" opensearchapi "github.com/opensearch-project/opensearch-go/v4/opensearchapi" - requestsigner "github.com/opensearch-project/opensearch-go/v4/signer/awsv4" + requestsigner "/github.com/opensearch-project/opensearch-go/v4@v4.3.0/signer/awsv2" ) const endpoint = "" // e.g. https://opensearch-domain.region.com or Amazon OpenSearch Serverless endpoint @@ -132,7 +132,7 @@ import ( "github.com/aws/aws-sdk-go-v4/config" opensearch "github.com/opensearch-project/opensearch-go/v4" opensearchapi "github.com/opensearch-project/opensearch-go/v4/opensearchapi" - requestsigner "github.com/opensearch-project/opensearch-go/v4/signer/awsv4" + requestsigner "/github.com/opensearch-project/opensearch-go/v4@v4.3.0/signer/awsv2" ) const endpoint = "" // e.g. https://opensearch-domain.region.com or Amazon OpenSearch Serverless endpoint From 336fa1192809be92061e2367badc438ed4357906 Mon Sep 17 00:00:00 2001 From: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> Date: Tue, 17 Dec 2024 10:22:35 -0600 Subject: [PATCH 3/3] Update API link Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> --- _clients/go.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_clients/go.md b/_clients/go.md index 0d440de7a6..2adb8fc616 100644 --- a/_clients/go.md +++ b/_clients/go.md @@ -69,8 +69,8 @@ import ( "github.com/aws/aws-sdk-go-v4/aws" "github.com/aws/aws-sdk-go-v4/config" opensearch "github.com/opensearch-project/opensearch-go/v4" - opensearchapi "github.com/opensearch-project/opensearch-go/v4/opensearchapi" - requestsigner "/github.com/opensearch-project/opensearch-go/v4@v4.3.0/signer/awsv2" + opensearchapi "github.com/opensearch-project/opensearch-go/v4@v4.3.0/opensearchapi" + requestsigner "github.com/opensearch-project/opensearch-go/v4@v4.3.0/signer/awsv2" ) const endpoint = "" // e.g. https://opensearch-domain.region.com or Amazon OpenSearch Serverless endpoint @@ -131,8 +131,8 @@ import ( "github.com/aws/aws-sdk-go-v4/aws" "github.com/aws/aws-sdk-go-v4/config" opensearch "github.com/opensearch-project/opensearch-go/v4" - opensearchapi "github.com/opensearch-project/opensearch-go/v4/opensearchapi" - requestsigner "/github.com/opensearch-project/opensearch-go/v4@v4.3.0/signer/awsv2" + opensearchapi "github.com/opensearch-project/opensearch-go/v4@v4.3.0/opensearchapi" + requestsigner "github.com/opensearch-project/opensearch-go/v4@v4.3.0/signer/awsv2" ) const endpoint = "" // e.g. https://opensearch-domain.region.com or Amazon OpenSearch Serverless endpoint