Skip to content

Commit

Permalink
adjust upgrading.md
Browse files Browse the repository at this point in the history
Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>
  • Loading branch information
Jakob3xD committed Apr 7, 2024
1 parent dd0c6d8 commit 232e019
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions UPGRADING.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,35 @@
- [Upgrading Opensearch GO Client](#upgrading-opensearch-go-client)
- [Upgraading to >= 3.0.0](#upgrading-to->=-3.0.0)
- [Upgrading to >= 3.2.0](#upgrading-to->=-3.2.0)
- [error types](#error-types)
- [Upgrading to >= 3.0.0](#upgrading-to->=-3.0.0)
- [client creation](#client-creation)
- [requests](#requests)
- [responses](#responses)
- [error handing](#error-handling)
- [Upgraading to >= 2.3.0](#upgrading-to->=-2.3.0)
- [Upgrading to >= 2.3.0](#upgrading-to->=-2.3.0)
- [snapshot delete](#snapshot-delete)

# Upgrading Opensearch GO Client

## Upgrading to >= 3.2.0

Version 3.2.0 moved the error types, added with 3.0.0, from opensearchapi to opensearch, renamed them and added new error types.

### Error Types

Before 3.2.0:
Error types:
- `opensearchapi.Error`
- `opensearchapi.StringError`

With 3.2.0:
Error types
- `opensearch.Error`
- `opensearch.StringError`
- `opensearch.ReasonError`
- `opensearch.MessageError`
- `opensearch.StructError` (which was the `opensearchapi.Error`)

## Upgrading to >= 3.0.0

Version 3.0.0 is a major refactor of the client.
Expand Down

0 comments on commit 232e019

Please sign in to comment.