-
Notifications
You must be signed in to change notification settings - Fork 502
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update GO client versions Fixes issue #8959 Signed-off-by: Naarcha-AWS <[email protected]> * Update awsv2 signer URL Signed-off-by: Naarcha-AWS <[email protected]> * Update API link Signed-off-by: Naarcha-AWS <[email protected]> --------- Signed-off-by: Naarcha-AWS <[email protected]>
- Loading branch information
1 parent
70b5df1
commit 126ef43
Showing
1 changed file
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected]/opensearchapi" | ||
requestsigner "github.com/opensearch-project/opensearch-go/[email protected]/signer/awsv2" | ||
) | ||
|
||
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/[email protected]/opensearchapi" | ||
requestsigner "github.com/opensearch-project/opensearch-go/[email protected]/signer/awsv2" | ||
) | ||
|
||
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 %} | ||
{% include copy.html %} |