From c8c2ce00a95aa33698fab9ec47465131fd12c5b8 Mon Sep 17 00:00:00 2001 From: Jakob Hahn Date: Tue, 7 Oct 2025 13:48:28 +0200 Subject: [PATCH 1/7] Update golangci-lint to 1.64.8 Signed-off-by: Jakob Hahn --- .github/workflows/lint.yml | 2 +- CHANGELOG.md | 1 + Makefile | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7832dbc1d..b2891700e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,7 +16,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.54.2 + version: v1.64.8 args: -v -c .golangci.yml only-new-issues: true diff --git a/CHANGELOG.md b/CHANGELOG.md index d5b8ed361..d904a15cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Add more SuggestOptions to SearchResp ([#713](https://github.com/opensearch-project/opensearch-go/pull/713)) - Updates Go version to 1.24 ([#674](https://github.com/opensearch-project/opensearch-go/pull/674)) - Replace `golang.org/x/exp/slices` usage with built-in `slices` ([#674](https://github.com/opensearch-project/opensearch-go/pull/674)) +- Update golangci-linter to 1.64.8 ([#740](https://github.com/opensearch-project/opensearch-go/pull/740)) ### Deprecated diff --git a/Makefile b/Makefile index a2d823c93..975f1daee 100644 --- a/Makefile +++ b/Makefile @@ -229,7 +229,7 @@ cluster.clean: ## Remove unused Docker volumes and networks docker system prune --volumes --force linters: - docker run -t --rm -v $$(pwd):/app -v ~/.cache/golangci-lint/v1.54.2:/root/.cache -w /app golangci/golangci-lint:v1.54.2 golangci-lint run --timeout=5m + docker run -t --rm -v $$(pwd):/app -v ~/.cache/golangci-lint/v1.64.8:/root/.cache -w /app golangci/golangci-lint:v1.64.8 golangci-lint run --timeout=5m workflow: ## Run all github workflow commands here sequentially From 4e34bde28a4f089d619e29a4d24b6a7214600f66 Mon Sep 17 00:00:00 2001 From: Jakob Hahn Date: Tue, 7 Oct 2025 13:56:31 +0200 Subject: [PATCH 2/7] Fix typo in comments Signed-off-by: Jakob Hahn --- CHANGELOG.md | 2 +- opensearchapi/api_aliases.go | 2 +- opensearchapi/api_bulk.go | 2 +- opensearchapi/api_cat-aliases.go | 2 +- opensearchapi/api_cat-allocation.go | 2 +- opensearchapi/api_cat-cluster_manager.go | 2 +- opensearchapi/api_cat-count.go | 2 +- opensearchapi/api_cat-fielddata.go | 2 +- opensearchapi/api_cat-health.go | 2 +- opensearchapi/api_cat-indices.go | 2 +- opensearchapi/api_cat-master.go | 2 +- opensearchapi/api_cat-nodeattrs.go | 2 +- opensearchapi/api_cat-nodes.go | 2 +- opensearchapi/api_cat-pending_tasks.go | 2 +- opensearchapi/api_cat-plugins.go | 2 +- opensearchapi/api_cat-recovery.go | 2 +- opensearchapi/api_cat-repositories.go | 2 +- opensearchapi/api_cat-segments.go | 2 +- opensearchapi/api_cat-shards.go | 2 +- opensearchapi/api_cat-snapshots.go | 2 +- opensearchapi/api_cat-tasks.go | 2 +- opensearchapi/api_cat-templates.go | 2 +- opensearchapi/api_cat-thread_pool.go | 2 +- opensearchapi/api_cluster-allocation_explain.go | 2 +- opensearchapi/api_cluster-decommission.go | 6 +++--- opensearchapi/api_cluster-health.go | 2 +- opensearchapi/api_cluster-pending_tasks.go | 2 +- opensearchapi/api_cluster-remote_info.go | 2 +- opensearchapi/api_cluster-reroute.go | 2 +- opensearchapi/api_cluster-settings.go | 4 ++-- opensearchapi/api_cluster-state.go | 2 +- opensearchapi/api_cluster-stats.go | 2 +- opensearchapi/api_component_template-create.go | 2 +- opensearchapi/api_component_template-delete.go | 2 +- opensearchapi/api_component_template-get.go | 2 +- opensearchapi/api_dangling-delete.go | 2 +- opensearchapi/api_dangling-get.go | 2 +- opensearchapi/api_dangling-import.go | 2 +- opensearchapi/api_datastream-create.go | 2 +- opensearchapi/api_datastream-delete.go | 2 +- opensearchapi/api_datastream-get.go | 2 +- opensearchapi/api_datastream-stats.go | 2 +- opensearchapi/api_document-create.go | 2 +- opensearchapi/api_document-delete.go | 2 +- opensearchapi/api_document-delete_by_query.go | 2 +- opensearchapi/api_document-delete_by_query_rethrottle.go | 2 +- opensearchapi/api_document-explain.go | 2 +- opensearchapi/api_document-get.go | 2 +- opensearchapi/api_document-source.go | 2 +- opensearchapi/api_index.go | 2 +- opensearchapi/api_index_template-create.go | 2 +- opensearchapi/api_index_template-delete.go | 2 +- opensearchapi/api_index_template-get.go | 2 +- opensearchapi/api_index_template-simulate.go | 2 +- opensearchapi/api_index_template-simulate_index.go | 2 +- opensearchapi/api_indices-alias.go | 6 +++--- opensearchapi/api_indices-analyze.go | 2 +- opensearchapi/api_indices-block.go | 2 +- opensearchapi/api_indices-cache.go | 2 +- opensearchapi/api_indices-clone.go | 2 +- opensearchapi/api_indices-close.go | 2 +- opensearchapi/api_indices-count.go | 2 +- opensearchapi/api_indices-create.go | 2 +- opensearchapi/api_indices-delete.go | 2 +- opensearchapi/api_indices-field_caps.go | 2 +- opensearchapi/api_indices-flush.go | 2 +- opensearchapi/api_indices-forcemerge.go | 2 +- opensearchapi/api_indices-get.go | 2 +- opensearchapi/api_indices-mapping.go | 6 +++--- opensearchapi/api_indices-open.go | 2 +- opensearchapi/api_indices-recovery.go | 2 +- opensearchapi/api_indices-refresh.go | 2 +- opensearchapi/api_indices-resolve.go | 2 +- opensearchapi/api_indices-rollover.go | 2 +- opensearchapi/api_indices-segments.go | 2 +- opensearchapi/api_indices-settings.go | 4 ++-- opensearchapi/api_indices-shardstores.go | 2 +- opensearchapi/api_indices-shrink.go | 2 +- opensearchapi/api_indices-split.go | 2 +- opensearchapi/api_indices-stats.go | 2 +- opensearchapi/api_indices-validate.go | 2 +- opensearchapi/api_info.go | 2 +- opensearchapi/api_ingest-create.go | 2 +- opensearchapi/api_ingest-delete.go | 2 +- opensearchapi/api_ingest-get.go | 2 +- opensearchapi/api_ingest-grok.go | 2 +- opensearchapi/api_ingest-simulate.go | 2 +- opensearchapi/api_mget.go | 2 +- opensearchapi/api_msearch-template.go | 2 +- opensearchapi/api_msearch.go | 2 +- opensearchapi/api_mtermvectors.go | 2 +- opensearchapi/api_nodes-info.go | 2 +- opensearchapi/api_nodes-reload_security.go | 2 +- opensearchapi/api_nodes-stats.go | 2 +- opensearchapi/api_nodes-usage.go | 2 +- opensearchapi/api_point_in_time-create.go | 2 +- opensearchapi/api_point_in_time-delete.go | 2 +- opensearchapi/api_point_in_time-get.go | 2 +- opensearchapi/api_rank_eval.go | 2 +- opensearchapi/api_reindex.go | 2 +- opensearchapi/api_reindex_rethrottle.go | 2 +- opensearchapi/api_render_search_template.go | 2 +- opensearchapi/api_script-context.go | 2 +- opensearchapi/api_script-delete.go | 2 +- opensearchapi/api_script-get.go | 2 +- opensearchapi/api_script-language.go | 2 +- opensearchapi/api_script-painless_execute.go | 2 +- opensearchapi/api_script-put.go | 2 +- opensearchapi/api_scroll-delete.go | 2 +- opensearchapi/api_scroll-get.go | 2 +- opensearchapi/api_search-template.go | 2 +- opensearchapi/api_search_shards.go | 2 +- opensearchapi/api_snapshot-clone.go | 2 +- opensearchapi/api_snapshot-create.go | 2 +- opensearchapi/api_snapshot-delete.go | 2 +- opensearchapi/api_snapshot-get.go | 2 +- opensearchapi/api_snapshot-restore.go | 2 +- opensearchapi/api_snapshot-status.go | 2 +- opensearchapi/api_snapshot_repository-cleanup.go | 2 +- opensearchapi/api_snapshot_repository-create.go | 2 +- opensearchapi/api_snapshot_repository-delete.go | 2 +- opensearchapi/api_snapshot_repository-get.go | 2 +- opensearchapi/api_snapshot_repository-verify.go | 2 +- opensearchapi/api_tasks-cancel.go | 2 +- opensearchapi/api_tasks-get.go | 2 +- opensearchapi/api_tasks-list.go | 2 +- opensearchapi/api_template-create.go | 2 +- opensearchapi/api_template-delete.go | 2 +- opensearchapi/api_template-get.go | 2 +- opensearchapi/api_termvectors.go | 2 +- opensearchapi/api_update.go | 2 +- opensearchapi/api_update_by_query.go | 2 +- opensearchapi/api_update_by_query_rethrottle.go | 2 +- opensearchapi/opensearchapi.go | 2 +- opensearchtransport/opensearchtransport_integration_test.go | 2 +- plugins/ism/api_add.go | 2 +- plugins/ism/api_change.go | 2 +- plugins/ism/api_explain.go | 2 +- plugins/ism/api_policies-delete.go | 2 +- plugins/ism/api_policies-get.go | 2 +- plugins/ism/api_policies-put.go | 2 +- plugins/ism/api_remove.go | 2 +- plugins/ism/api_retry.go | 2 +- plugins/security/api_account-get.go | 2 +- plugins/security/api_account-put.go | 2 +- plugins/security/api_actiongroups-delete.go | 2 +- plugins/security/api_actiongroups-get.go | 2 +- plugins/security/api_actiongroups-patch.go | 2 +- plugins/security/api_actiongroups-put.go | 2 +- plugins/security/api_audit-get.go | 2 +- plugins/security/api_audit-patch.go | 2 +- plugins/security/api_audit-put.go | 2 +- plugins/security/api_flushcache.go | 2 +- plugins/security/api_health.go | 2 +- plugins/security/api_internalusers-delete.go | 2 +- plugins/security/api_internalusers-get.go | 2 +- plugins/security/api_internalusers-patch.go | 2 +- plugins/security/api_internalusers-put.go | 2 +- plugins/security/api_nodesdn-delete.go | 2 +- plugins/security/api_nodesdn-get.go | 2 +- plugins/security/api_nodesdn-patch.go | 2 +- plugins/security/api_nodesdn-put.go | 2 +- plugins/security/api_roles-delete.go | 2 +- plugins/security/api_roles-get.go | 2 +- plugins/security/api_roles-patch.go | 2 +- plugins/security/api_roles-put.go | 2 +- plugins/security/api_rolesmapping-delete.go | 2 +- plugins/security/api_rolesmapping-get.go | 2 +- plugins/security/api_rolesmapping-patch.go | 2 +- plugins/security/api_rolesmapping-put.go | 2 +- plugins/security/api_securityconfig-get.go | 2 +- plugins/security/api_securityconfig-patch.go | 2 +- plugins/security/api_securityconfig-put.go | 2 +- plugins/security/api_ssl-get.go | 2 +- plugins/security/api_ssl-http-reload.go | 2 +- plugins/security/api_ssl-transport-reload.go | 2 +- plugins/security/api_tenants-delete.go | 2 +- plugins/security/api_tenants-get.go | 2 +- plugins/security/api_tenants-patch.go | 2 +- plugins/security/api_tenants-put.go | 2 +- 180 files changed, 188 insertions(+), 188 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d904a15cb..53b3338ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -317,7 +317,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Uses `[]string` instead of `string` in `SnapshotDeleteRequest` ([#237](https://github.com/opensearch-project/opensearch-go/pull/237)) - Updates workflows to reduce CI time, consolidate OpenSearch versions, update compatibility matrix ([#242](https://github.com/opensearch-project/opensearch-go/pull/242)) - Moves @svencowart to emeritus maintainers ([#270](https://github.com/opensearch-project/opensearch-go/pull/270)) -- Reads, closes and replaces the http Reponse Body ([#300](https://github.com/opensearch-project/opensearch-go/pull/300)) +- Reads, closes and replaces the http Response Body ([#300](https://github.com/opensearch-project/opensearch-go/pull/300)) ### Fixed diff --git a/opensearchapi/api_aliases.go b/opensearchapi/api_aliases.go index 5967894b6..e33f1b5c7 100644 --- a/opensearchapi/api_aliases.go +++ b/opensearchapi/api_aliases.go @@ -52,7 +52,7 @@ type AliasesResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r AliasesResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_bulk.go b/opensearchapi/api_bulk.go index 854c07fd9..550ccf5cf 100644 --- a/opensearchapi/api_bulk.go +++ b/opensearchapi/api_bulk.go @@ -103,7 +103,7 @@ type BulkRespItem struct { } `json:"error,omitempty"` } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r BulkResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_cat-aliases.go b/opensearchapi/api_cat-aliases.go index a4485a68c..efca5c910 100644 --- a/opensearchapi/api_cat-aliases.go +++ b/opensearchapi/api_cat-aliases.go @@ -55,7 +55,7 @@ type CatAliasResp struct { IsWriteIndex string `json:"is_write_index"` } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r CatAliasesResp) Inspect() Inspect { return Inspect{ Response: r.response, diff --git a/opensearchapi/api_cat-allocation.go b/opensearchapi/api_cat-allocation.go index 899533fe6..10fba86c7 100644 --- a/opensearchapi/api_cat-allocation.go +++ b/opensearchapi/api_cat-allocation.go @@ -59,7 +59,7 @@ type CatAllocationResp struct { Node string `json:"node"` } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r CatAllocationsResp) Inspect() Inspect { return Inspect{ Response: r.response, diff --git a/opensearchapi/api_cat-cluster_manager.go b/opensearchapi/api_cat-cluster_manager.go index bf03671c2..a9a9422b1 100644 --- a/opensearchapi/api_cat-cluster_manager.go +++ b/opensearchapi/api_cat-cluster_manager.go @@ -43,7 +43,7 @@ type CatClusterManagerResp struct { Node string `json:"node"` } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r CatClusterManagersResp) Inspect() Inspect { return Inspect{ Response: r.response, diff --git a/opensearchapi/api_cat-count.go b/opensearchapi/api_cat-count.go index 083424581..554822c76 100644 --- a/opensearchapi/api_cat-count.go +++ b/opensearchapi/api_cat-count.go @@ -52,7 +52,7 @@ type CatCountResp struct { Count int `json:"count,string"` } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r CatCountsResp) Inspect() Inspect { return Inspect{ Response: r.response, diff --git a/opensearchapi/api_cat-fielddata.go b/opensearchapi/api_cat-fielddata.go index 7ddefd179..01e81298a 100644 --- a/opensearchapi/api_cat-fielddata.go +++ b/opensearchapi/api_cat-fielddata.go @@ -55,7 +55,7 @@ type CatFieldDataItemResp struct { Size string `json:"size"` } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r CatFieldDataResp) Inspect() Inspect { return Inspect{ Response: r.response, diff --git a/opensearchapi/api_cat-health.go b/opensearchapi/api_cat-health.go index 2ffe0f318..9cefb0004 100644 --- a/opensearchapi/api_cat-health.go +++ b/opensearchapi/api_cat-health.go @@ -55,7 +55,7 @@ type CatHealthItemResp struct { ActiveShardsPercent string `json:"active_shards_percent"` } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r CatHealthResp) Inspect() Inspect { return Inspect{ Response: r.response, diff --git a/opensearchapi/api_cat-indices.go b/opensearchapi/api_cat-indices.go index 28ddc18ea..032d7864a 100644 --- a/opensearchapi/api_cat-indices.go +++ b/opensearchapi/api_cat-indices.go @@ -195,7 +195,7 @@ type CatIndexResp struct { SearchThrottled bool `json:"search.throttled,string"` } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r CatIndicesResp) Inspect() Inspect { return Inspect{ Response: r.response, diff --git a/opensearchapi/api_cat-master.go b/opensearchapi/api_cat-master.go index 0ff98fbfd..2ac0b1d02 100644 --- a/opensearchapi/api_cat-master.go +++ b/opensearchapi/api_cat-master.go @@ -43,7 +43,7 @@ type CatMasterItemResp struct { Node string `json:"node"` } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r CatMasterResp) Inspect() Inspect { return Inspect{ Response: r.response, diff --git a/opensearchapi/api_cat-nodeattrs.go b/opensearchapi/api_cat-nodeattrs.go index 378589358..0bda0be5e 100644 --- a/opensearchapi/api_cat-nodeattrs.go +++ b/opensearchapi/api_cat-nodeattrs.go @@ -47,7 +47,7 @@ type CatNodeAttrsItemResp struct { Value string `json:"value"` } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r CatNodeAttrsResp) Inspect() Inspect { return Inspect{ Response: r.response, diff --git a/opensearchapi/api_cat-nodes.go b/opensearchapi/api_cat-nodes.go index 207431c06..353056cea 100644 --- a/opensearchapi/api_cat-nodes.go +++ b/opensearchapi/api_cat-nodes.go @@ -138,7 +138,7 @@ type CatNodesItemResp struct { SuggestTotal *int `json:"suggest.total,string"` } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r CatNodesResp) Inspect() Inspect { return Inspect{ Response: r.response, diff --git a/opensearchapi/api_cat-pending_tasks.go b/opensearchapi/api_cat-pending_tasks.go index 4c43cce8a..ec85bc643 100644 --- a/opensearchapi/api_cat-pending_tasks.go +++ b/opensearchapi/api_cat-pending_tasks.go @@ -43,7 +43,7 @@ type CatPendingTaskResp struct { Source string `json:"source"` } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r CatPendingTasksResp) Inspect() Inspect { return Inspect{ Response: r.response, diff --git a/opensearchapi/api_cat-plugins.go b/opensearchapi/api_cat-plugins.go index 08035c30d..2243dc810 100644 --- a/opensearchapi/api_cat-plugins.go +++ b/opensearchapi/api_cat-plugins.go @@ -44,7 +44,7 @@ type CatPluginResp struct { Description string `json:"description,omitempty"` } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r CatPluginsResp) Inspect() Inspect { return Inspect{ Response: r.response, diff --git a/opensearchapi/api_cat-recovery.go b/opensearchapi/api_cat-recovery.go index c71c536a7..15f925817 100644 --- a/opensearchapi/api_cat-recovery.go +++ b/opensearchapi/api_cat-recovery.go @@ -75,7 +75,7 @@ type CatRecoveryItemResp struct { TranslogOpsPercent string `json:"translog_ops_percent"` } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r CatRecoveryResp) Inspect() Inspect { return Inspect{ Response: r.response, diff --git a/opensearchapi/api_cat-repositories.go b/opensearchapi/api_cat-repositories.go index 35417890d..ad3a8e19f 100644 --- a/opensearchapi/api_cat-repositories.go +++ b/opensearchapi/api_cat-repositories.go @@ -41,7 +41,7 @@ type CatRepositorieResp struct { Type string `json:"type"` } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r CatRepositoriesResp) Inspect() Inspect { return Inspect{ Response: r.response, diff --git a/opensearchapi/api_cat-segments.go b/opensearchapi/api_cat-segments.go index b4d6685a6..2772c8a46 100644 --- a/opensearchapi/api_cat-segments.go +++ b/opensearchapi/api_cat-segments.go @@ -64,7 +64,7 @@ type CatSegmentResp struct { Compound bool `json:"compound,string"` } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r CatSegmentsResp) Inspect() Inspect { return Inspect{ Response: r.response, diff --git a/opensearchapi/api_cat-shards.go b/opensearchapi/api_cat-shards.go index bcbb1ef3e..8a8fabf6d 100644 --- a/opensearchapi/api_cat-shards.go +++ b/opensearchapi/api_cat-shards.go @@ -129,7 +129,7 @@ type CatShardResp struct { DocsDeleted *int `json:"docs.deleted,string"` } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r CatShardsResp) Inspect() Inspect { return Inspect{ Response: r.response, diff --git a/opensearchapi/api_cat-snapshots.go b/opensearchapi/api_cat-snapshots.go index 76c64854f..6585319a1 100644 --- a/opensearchapi/api_cat-snapshots.go +++ b/opensearchapi/api_cat-snapshots.go @@ -53,7 +53,7 @@ type CatSnapshotResp struct { Reason string `json:"reason"` } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r CatSnapshotsResp) Inspect() Inspect { return Inspect{ Response: r.response, diff --git a/opensearchapi/api_cat-tasks.go b/opensearchapi/api_cat-tasks.go index 5eecade16..f0ea4f38a 100644 --- a/opensearchapi/api_cat-tasks.go +++ b/opensearchapi/api_cat-tasks.go @@ -54,7 +54,7 @@ type CatTaskResp struct { XOpaqueID string `json:"x_opaque_id"` } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r CatTasksResp) Inspect() Inspect { return Inspect{ Response: r.response, diff --git a/opensearchapi/api_cat-templates.go b/opensearchapi/api_cat-templates.go index 07b0db5f3..8ba24c77d 100644 --- a/opensearchapi/api_cat-templates.go +++ b/opensearchapi/api_cat-templates.go @@ -54,7 +54,7 @@ type CatTemplateResp struct { ComposedOf string `json:"composed_of"` } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r CatTemplatesResp) Inspect() Inspect { return Inspect{ Response: r.response, diff --git a/opensearchapi/api_cat-thread_pool.go b/opensearchapi/api_cat-thread_pool.go index 37c29e5f0..6f61a9f0f 100644 --- a/opensearchapi/api_cat-thread_pool.go +++ b/opensearchapi/api_cat-thread_pool.go @@ -70,7 +70,7 @@ type CatThreadPoolItemResp struct { TotalWaitTime string `json:"total_wait_time"` } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r CatThreadPoolResp) Inspect() Inspect { return Inspect{ Response: r.response, diff --git a/opensearchapi/api_cluster-allocation_explain.go b/opensearchapi/api_cluster-allocation_explain.go index b446fe473..79de1a1a1 100644 --- a/opensearchapi/api_cluster-allocation_explain.go +++ b/opensearchapi/api_cluster-allocation_explain.go @@ -74,7 +74,7 @@ type ClusterAllocationExplainResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ClusterAllocationExplainResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_cluster-decommission.go b/opensearchapi/api_cluster-decommission.go index d0f99bb6f..2793a9554 100644 --- a/opensearchapi/api_cluster-decommission.go +++ b/opensearchapi/api_cluster-decommission.go @@ -46,7 +46,7 @@ type ClusterPutDecommissionResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ClusterPutDecommissionResp) Inspect() Inspect { return Inspect{Response: r.response} } @@ -74,7 +74,7 @@ type ClusterDeleteDecommissionResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ClusterDeleteDecommissionResp) Inspect() Inspect { return Inspect{Response: r.response} } @@ -110,7 +110,7 @@ type ClusterGetDecommissionResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ClusterGetDecommissionResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_cluster-health.go b/opensearchapi/api_cluster-health.go index aa8984132..ce6317cdc 100644 --- a/opensearchapi/api_cluster-health.go +++ b/opensearchapi/api_cluster-health.go @@ -63,7 +63,7 @@ type ClusterHealthResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ClusterHealthResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_cluster-pending_tasks.go b/opensearchapi/api_cluster-pending_tasks.go index ba26216c3..295318830 100644 --- a/opensearchapi/api_cluster-pending_tasks.go +++ b/opensearchapi/api_cluster-pending_tasks.go @@ -35,7 +35,7 @@ type ClusterPendingTasksResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ClusterPendingTasksResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_cluster-remote_info.go b/opensearchapi/api_cluster-remote_info.go index af74f8d58..44ab0b1ee 100644 --- a/opensearchapi/api_cluster-remote_info.go +++ b/opensearchapi/api_cluster-remote_info.go @@ -35,7 +35,7 @@ type ClusterRemoteInfoResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ClusterRemoteInfoResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_cluster-reroute.go b/opensearchapi/api_cluster-reroute.go index 113e12b11..b6d0a554b 100644 --- a/opensearchapi/api_cluster-reroute.go +++ b/opensearchapi/api_cluster-reroute.go @@ -40,7 +40,7 @@ type ClusterRerouteResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ClusterRerouteResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_cluster-settings.go b/opensearchapi/api_cluster-settings.go index dc1e5ee0a..2c6eeecd6 100644 --- a/opensearchapi/api_cluster-settings.go +++ b/opensearchapi/api_cluster-settings.go @@ -39,7 +39,7 @@ type ClusterGetSettingsResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ClusterGetSettingsResp) Inspect() Inspect { return Inspect{Response: r.response} } @@ -70,7 +70,7 @@ type ClusterPutSettingsResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ClusterPutSettingsResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_cluster-state.go b/opensearchapi/api_cluster-state.go index 4243f8006..66e47cfa6 100644 --- a/opensearchapi/api_cluster-state.go +++ b/opensearchapi/api_cluster-state.go @@ -83,7 +83,7 @@ type ClusterStateResp struct { } `json:"restore"` } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ClusterStateResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_cluster-stats.go b/opensearchapi/api_cluster-stats.go index 8bae86c71..ca3ce2e3e 100644 --- a/opensearchapi/api_cluster-stats.go +++ b/opensearchapi/api_cluster-stats.go @@ -60,7 +60,7 @@ type ClusterStatsResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ClusterStatsResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_component_template-create.go b/opensearchapi/api_component_template-create.go index 237395778..297f119fd 100644 --- a/opensearchapi/api_component_template-create.go +++ b/opensearchapi/api_component_template-create.go @@ -41,7 +41,7 @@ type ComponentTemplateCreateResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ComponentTemplateCreateResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_component_template-delete.go b/opensearchapi/api_component_template-delete.go index ceb66bbb4..095d712cd 100644 --- a/opensearchapi/api_component_template-delete.go +++ b/opensearchapi/api_component_template-delete.go @@ -38,7 +38,7 @@ type ComponentTemplateDeleteResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ComponentTemplateDeleteResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_component_template-get.go b/opensearchapi/api_component_template-get.go index f9366bba9..a2f2f8d4c 100644 --- a/opensearchapi/api_component_template-get.go +++ b/opensearchapi/api_component_template-get.go @@ -47,7 +47,7 @@ type ComponentTemplateGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ComponentTemplateGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_dangling-delete.go b/opensearchapi/api_dangling-delete.go index 03ff832bf..e59f94f7f 100644 --- a/opensearchapi/api_dangling-delete.go +++ b/opensearchapi/api_dangling-delete.go @@ -38,7 +38,7 @@ type DanglingDeleteResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r DanglingDeleteResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_dangling-get.go b/opensearchapi/api_dangling-get.go index 974d1f89b..b7572c02a 100644 --- a/opensearchapi/api_dangling-get.go +++ b/opensearchapi/api_dangling-get.go @@ -55,7 +55,7 @@ type DanglingGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r DanglingGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_dangling-import.go b/opensearchapi/api_dangling-import.go index 83ad7ce6a..8d3fc6d27 100644 --- a/opensearchapi/api_dangling-import.go +++ b/opensearchapi/api_dangling-import.go @@ -38,7 +38,7 @@ type DanglingImportResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r DanglingImportResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_datastream-create.go b/opensearchapi/api_datastream-create.go index 148dee149..be6898292 100644 --- a/opensearchapi/api_datastream-create.go +++ b/opensearchapi/api_datastream-create.go @@ -38,7 +38,7 @@ type DataStreamCreateResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r DataStreamCreateResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_datastream-delete.go b/opensearchapi/api_datastream-delete.go index 929b1f8ca..d536ea161 100644 --- a/opensearchapi/api_datastream-delete.go +++ b/opensearchapi/api_datastream-delete.go @@ -38,7 +38,7 @@ type DataStreamDeleteResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r DataStreamDeleteResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_datastream-get.go b/opensearchapi/api_datastream-get.go index 20604aee6..3401a7b1a 100644 --- a/opensearchapi/api_datastream-get.go +++ b/opensearchapi/api_datastream-get.go @@ -48,7 +48,7 @@ type DataStreamGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r DataStreamGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_datastream-stats.go b/opensearchapi/api_datastream-stats.go index d99f8dc89..4755666c0 100644 --- a/opensearchapi/api_datastream-stats.go +++ b/opensearchapi/api_datastream-stats.go @@ -63,7 +63,7 @@ type DataStreamStatsResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r DataStreamStatsResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_document-create.go b/opensearchapi/api_document-create.go index 10a7a4acb..610f2b766 100644 --- a/opensearchapi/api_document-create.go +++ b/opensearchapi/api_document-create.go @@ -60,7 +60,7 @@ type DocumentCreateResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r DocumentCreateResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_document-delete.go b/opensearchapi/api_document-delete.go index 7a282f86f..b1d3b720a 100644 --- a/opensearchapi/api_document-delete.go +++ b/opensearchapi/api_document-delete.go @@ -56,7 +56,7 @@ type DocumentDeleteResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r DocumentDeleteResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_document-delete_by_query.go b/opensearchapi/api_document-delete_by_query.go index e936006e7..8fe45d964 100644 --- a/opensearchapi/api_document-delete_by_query.go +++ b/opensearchapi/api_document-delete_by_query.go @@ -58,7 +58,7 @@ type DocumentDeleteByQueryResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r DocumentDeleteByQueryResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_document-delete_by_query_rethrottle.go b/opensearchapi/api_document-delete_by_query_rethrottle.go index 5f741ef64..8b5d33d1f 100644 --- a/opensearchapi/api_document-delete_by_query_rethrottle.go +++ b/opensearchapi/api_document-delete_by_query_rethrottle.go @@ -91,7 +91,7 @@ type DocumentDeleteByQueryRethrottleResourceInfo struct { MemoryInBytes int `json:"memory_in_bytes"` } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r DocumentDeleteByQueryRethrottleResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_document-explain.go b/opensearchapi/api_document-explain.go index 2610fe0db..a0180819d 100644 --- a/opensearchapi/api_document-explain.go +++ b/opensearchapi/api_document-explain.go @@ -46,7 +46,7 @@ type DocumentExplainResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r DocumentExplainResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_document-get.go b/opensearchapi/api_document-get.go index 39862ad4c..38d06b863 100644 --- a/opensearchapi/api_document-get.go +++ b/opensearchapi/api_document-get.go @@ -48,7 +48,7 @@ type DocumentGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r DocumentGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_document-source.go b/opensearchapi/api_document-source.go index c2c9bb5da..b9bbbf03f 100644 --- a/opensearchapi/api_document-source.go +++ b/opensearchapi/api_document-source.go @@ -40,7 +40,7 @@ type DocumentSourceResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r DocumentSourceResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_index.go b/opensearchapi/api_index.go index d772a758f..4db821646 100644 --- a/opensearchapi/api_index.go +++ b/opensearchapi/api_index.go @@ -75,7 +75,7 @@ type IndexResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndexResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_index_template-create.go b/opensearchapi/api_index_template-create.go index 1d6e35bf0..fd00d4735 100644 --- a/opensearchapi/api_index_template-create.go +++ b/opensearchapi/api_index_template-create.go @@ -41,7 +41,7 @@ type IndexTemplateCreateResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndexTemplateCreateResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_index_template-delete.go b/opensearchapi/api_index_template-delete.go index 0c1011686..a37ce8422 100644 --- a/opensearchapi/api_index_template-delete.go +++ b/opensearchapi/api_index_template-delete.go @@ -38,7 +38,7 @@ type IndexTemplateDeleteResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndexTemplateDeleteResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_index_template-get.go b/opensearchapi/api_index_template-get.go index db2bb89b9..07d5d6e44 100644 --- a/opensearchapi/api_index_template-get.go +++ b/opensearchapi/api_index_template-get.go @@ -40,7 +40,7 @@ type IndexTemplateGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndexTemplateGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_index_template-simulate.go b/opensearchapi/api_index_template-simulate.go index 5cc253a4e..03516e16e 100644 --- a/opensearchapi/api_index_template-simulate.go +++ b/opensearchapi/api_index_template-simulate.go @@ -50,7 +50,7 @@ type IndexTemplateSimulateResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndexTemplateSimulateResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_index_template-simulate_index.go b/opensearchapi/api_index_template-simulate_index.go index 3d59105fe..bf186e2df 100644 --- a/opensearchapi/api_index_template-simulate_index.go +++ b/opensearchapi/api_index_template-simulate_index.go @@ -50,7 +50,7 @@ type IndexTemplateSimulateIndexResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndexTemplateSimulateIndexResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-alias.go b/opensearchapi/api_indices-alias.go index fbbafdc96..24d89cf2c 100644 --- a/opensearchapi/api_indices-alias.go +++ b/opensearchapi/api_indices-alias.go @@ -98,7 +98,7 @@ type AliasDeleteResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r AliasDeleteResp) Inspect() Inspect { return Inspect{Response: r.response} } @@ -140,7 +140,7 @@ type AliasGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r AliasGetResp) Inspect() Inspect { return Inspect{Response: r.response} } @@ -179,7 +179,7 @@ type AliasPutResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r AliasPutResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-analyze.go b/opensearchapi/api_indices-analyze.go index 008fd96b7..9f87416e9 100644 --- a/opensearchapi/api_indices-analyze.go +++ b/opensearchapi/api_indices-analyze.go @@ -73,7 +73,7 @@ type IndicesAnalyzeResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndicesAnalyzeResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-block.go b/opensearchapi/api_indices-block.go index 0d54cea7b..7fc329aa9 100644 --- a/opensearchapi/api_indices-block.go +++ b/opensearchapi/api_indices-block.go @@ -56,7 +56,7 @@ type IndicesBlockResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndicesBlockResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-cache.go b/opensearchapi/api_indices-cache.go index f29fa682b..2e7e46ff2 100644 --- a/opensearchapi/api_indices-cache.go +++ b/opensearchapi/api_indices-cache.go @@ -53,7 +53,7 @@ type IndicesClearCacheResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndicesClearCacheResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-clone.go b/opensearchapi/api_indices-clone.go index adaddb9f0..8c78d65e9 100644 --- a/opensearchapi/api_indices-clone.go +++ b/opensearchapi/api_indices-clone.go @@ -44,7 +44,7 @@ type IndicesCloneResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndicesCloneResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-close.go b/opensearchapi/api_indices-close.go index 4275278ae..f2a257133 100644 --- a/opensearchapi/api_indices-close.go +++ b/opensearchapi/api_indices-close.go @@ -45,7 +45,7 @@ type IndicesCloseResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndicesCloseResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-count.go b/opensearchapi/api_indices-count.go index f8dc45395..2d70aee56 100644 --- a/opensearchapi/api_indices-count.go +++ b/opensearchapi/api_indices-count.go @@ -56,7 +56,7 @@ type IndicesCountResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndicesCountResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-create.go b/opensearchapi/api_indices-create.go index cfd773d4c..03e577ac6 100644 --- a/opensearchapi/api_indices-create.go +++ b/opensearchapi/api_indices-create.go @@ -41,7 +41,7 @@ type IndicesCreateResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndicesCreateResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-delete.go b/opensearchapi/api_indices-delete.go index 57857d3fc..22cc2ce63 100644 --- a/opensearchapi/api_indices-delete.go +++ b/opensearchapi/api_indices-delete.go @@ -38,7 +38,7 @@ type IndicesDeleteResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndicesDeleteResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-field_caps.go b/opensearchapi/api_indices-field_caps.go index 3f4e29a77..3d160d5e9 100644 --- a/opensearchapi/api_indices-field_caps.go +++ b/opensearchapi/api_indices-field_caps.go @@ -56,7 +56,7 @@ type IndicesFieldCapsResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndicesFieldCapsResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-flush.go b/opensearchapi/api_indices-flush.go index cf3bedff3..4c2150f68 100644 --- a/opensearchapi/api_indices-flush.go +++ b/opensearchapi/api_indices-flush.go @@ -52,7 +52,7 @@ type IndicesFlushResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndicesFlushResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-forcemerge.go b/opensearchapi/api_indices-forcemerge.go index c8f367807..7ee723146 100644 --- a/opensearchapi/api_indices-forcemerge.go +++ b/opensearchapi/api_indices-forcemerge.go @@ -52,7 +52,7 @@ type IndicesForcemergeResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndicesForcemergeResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-get.go b/opensearchapi/api_indices-get.go index 70f3b2eba..dbbd5a970 100644 --- a/opensearchapi/api_indices-get.go +++ b/opensearchapi/api_indices-get.go @@ -45,7 +45,7 @@ type IndicesGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndicesGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-mapping.go b/opensearchapi/api_indices-mapping.go index 4b10f8aab..b67ec7490 100644 --- a/opensearchapi/api_indices-mapping.go +++ b/opensearchapi/api_indices-mapping.go @@ -103,7 +103,7 @@ type MappingGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r MappingGetResp) Inspect() Inspect { return Inspect{Response: r.response} } @@ -142,7 +142,7 @@ type MappingPutResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r MappingPutResp) Inspect() Inspect { return Inspect{Response: r.response} } @@ -186,7 +186,7 @@ type MappingFieldResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r MappingFieldResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-open.go b/opensearchapi/api_indices-open.go index 28a3c81ce..5371e2dea 100644 --- a/opensearchapi/api_indices-open.go +++ b/opensearchapi/api_indices-open.go @@ -39,7 +39,7 @@ type IndicesOpenResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndicesOpenResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-recovery.go b/opensearchapi/api_indices-recovery.go index 68dfdcbc9..8b0097d2b 100644 --- a/opensearchapi/api_indices-recovery.go +++ b/opensearchapi/api_indices-recovery.go @@ -87,7 +87,7 @@ type IndicesRecoveryResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndicesRecoveryResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-refresh.go b/opensearchapi/api_indices-refresh.go index d499175fe..3d282487a 100644 --- a/opensearchapi/api_indices-refresh.go +++ b/opensearchapi/api_indices-refresh.go @@ -51,7 +51,7 @@ type IndicesRefreshResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndicesRefreshResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-resolve.go b/opensearchapi/api_indices-resolve.go index 882c6efb4..b2f85c1d8 100644 --- a/opensearchapi/api_indices-resolve.go +++ b/opensearchapi/api_indices-resolve.go @@ -52,7 +52,7 @@ type IndicesResolveResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndicesResolveResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-rollover.go b/opensearchapi/api_indices-rollover.go index 49bd02012..4550269f4 100644 --- a/opensearchapi/api_indices-rollover.go +++ b/opensearchapi/api_indices-rollover.go @@ -57,7 +57,7 @@ type IndicesRolloverResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndicesRolloverResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-segments.go b/opensearchapi/api_indices-segments.go index 4a4cc6256..02bda7cdc 100644 --- a/opensearchapi/api_indices-segments.go +++ b/opensearchapi/api_indices-segments.go @@ -55,7 +55,7 @@ type IndicesSegmentsResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndicesSegmentsResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-settings.go b/opensearchapi/api_indices-settings.go index 27b507fba..9a21b08e6 100644 --- a/opensearchapi/api_indices-settings.go +++ b/opensearchapi/api_indices-settings.go @@ -91,7 +91,7 @@ type SettingsGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r SettingsGetResp) Inspect() Inspect { return Inspect{Response: r.response} } @@ -130,7 +130,7 @@ type SettingsPutResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r SettingsPutResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-shardstores.go b/opensearchapi/api_indices-shardstores.go index 91a7bd3f2..4ff040e8e 100644 --- a/opensearchapi/api_indices-shardstores.go +++ b/opensearchapi/api_indices-shardstores.go @@ -53,7 +53,7 @@ type IndicesShardStoresResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndicesShardStoresResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-shrink.go b/opensearchapi/api_indices-shrink.go index 367bbd82e..415087c0d 100644 --- a/opensearchapi/api_indices-shrink.go +++ b/opensearchapi/api_indices-shrink.go @@ -44,7 +44,7 @@ type IndicesShrinkResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndicesShrinkResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-split.go b/opensearchapi/api_indices-split.go index dba82ff8e..30457e9c6 100644 --- a/opensearchapi/api_indices-split.go +++ b/opensearchapi/api_indices-split.go @@ -44,7 +44,7 @@ type IndicesSplitResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndicesSplitResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-stats.go b/opensearchapi/api_indices-stats.go index cd7f8c2b5..dd55560de 100644 --- a/opensearchapi/api_indices-stats.go +++ b/opensearchapi/api_indices-stats.go @@ -56,7 +56,7 @@ type IndicesStatsResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndicesStatsResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_indices-validate.go b/opensearchapi/api_indices-validate.go index 5ab44462b..af1334445 100644 --- a/opensearchapi/api_indices-validate.go +++ b/opensearchapi/api_indices-validate.go @@ -64,7 +64,7 @@ type IndicesValidateQueryResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IndicesValidateQueryResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_info.go b/opensearchapi/api_info.go index fc4ceb489..ce8f3fcaf 100644 --- a/opensearchapi/api_info.go +++ b/opensearchapi/api_info.go @@ -67,7 +67,7 @@ type InfoResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r InfoResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_ingest-create.go b/opensearchapi/api_ingest-create.go index f5d7adc10..2a98075b9 100644 --- a/opensearchapi/api_ingest-create.go +++ b/opensearchapi/api_ingest-create.go @@ -41,7 +41,7 @@ type IngestCreateResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IngestCreateResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_ingest-delete.go b/opensearchapi/api_ingest-delete.go index 4e798d802..82aa2d114 100644 --- a/opensearchapi/api_ingest-delete.go +++ b/opensearchapi/api_ingest-delete.go @@ -38,7 +38,7 @@ type IngestDeleteResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IngestDeleteResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_ingest-get.go b/opensearchapi/api_ingest-get.go index 5ba24e314..f3588b426 100644 --- a/opensearchapi/api_ingest-get.go +++ b/opensearchapi/api_ingest-get.go @@ -43,7 +43,7 @@ type IngestGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IngestGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_ingest-grok.go b/opensearchapi/api_ingest-grok.go index a6cdc4b6e..3eb25a67f 100644 --- a/opensearchapi/api_ingest-grok.go +++ b/opensearchapi/api_ingest-grok.go @@ -35,7 +35,7 @@ type IngestGrokResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IngestGrokResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_ingest-simulate.go b/opensearchapi/api_ingest-simulate.go index 1aa81e387..ad730f3e4 100644 --- a/opensearchapi/api_ingest-simulate.go +++ b/opensearchapi/api_ingest-simulate.go @@ -50,7 +50,7 @@ type IngestSimulateResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r IngestSimulateResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_mget.go b/opensearchapi/api_mget.go index 11a306725..0e394a4d5 100644 --- a/opensearchapi/api_mget.go +++ b/opensearchapi/api_mget.go @@ -72,7 +72,7 @@ type MGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r MGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_msearch-template.go b/opensearchapi/api_msearch-template.go index b6206ef03..f8f1b010a 100644 --- a/opensearchapi/api_msearch-template.go +++ b/opensearchapi/api_msearch-template.go @@ -77,7 +77,7 @@ type MSearchTemplateResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r MSearchTemplateResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_msearch.go b/opensearchapi/api_msearch.go index bfd468a8b..c555d61ac 100644 --- a/opensearchapi/api_msearch.go +++ b/opensearchapi/api_msearch.go @@ -79,7 +79,7 @@ type MSearchResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r MSearchResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_mtermvectors.go b/opensearchapi/api_mtermvectors.go index 7c30187f8..bb755fb57 100644 --- a/opensearchapi/api_mtermvectors.go +++ b/opensearchapi/api_mtermvectors.go @@ -71,7 +71,7 @@ type MTermvectorsResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r MTermvectorsResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_nodes-info.go b/opensearchapi/api_nodes-info.go index 8d4cfac8d..bc54bdd9f 100644 --- a/opensearchapi/api_nodes-info.go +++ b/opensearchapi/api_nodes-info.go @@ -64,7 +64,7 @@ type NodesInfoResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r NodesInfoResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_nodes-reload_security.go b/opensearchapi/api_nodes-reload_security.go index a3ca438d3..2df04c660 100644 --- a/opensearchapi/api_nodes-reload_security.go +++ b/opensearchapi/api_nodes-reload_security.go @@ -63,7 +63,7 @@ type NodesReloadSecurityResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r NodesReloadSecurityResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_nodes-stats.go b/opensearchapi/api_nodes-stats.go index 586d3352f..9c166f6db 100644 --- a/opensearchapi/api_nodes-stats.go +++ b/opensearchapi/api_nodes-stats.go @@ -72,7 +72,7 @@ type NodesStatsResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r NodesStatsResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_nodes-usage.go b/opensearchapi/api_nodes-usage.go index 8f3a678fa..6bbf0ce61 100644 --- a/opensearchapi/api_nodes-usage.go +++ b/opensearchapi/api_nodes-usage.go @@ -65,7 +65,7 @@ type NodesUsageResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r NodesUsageResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_point_in_time-create.go b/opensearchapi/api_point_in_time-create.go index 5903dd89c..22a80437d 100644 --- a/opensearchapi/api_point_in_time-create.go +++ b/opensearchapi/api_point_in_time-create.go @@ -55,7 +55,7 @@ type PointInTimeCreateResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r PointInTimeCreateResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_point_in_time-delete.go b/opensearchapi/api_point_in_time-delete.go index 6d6f82121..5103a8b5a 100644 --- a/opensearchapi/api_point_in_time-delete.go +++ b/opensearchapi/api_point_in_time-delete.go @@ -58,7 +58,7 @@ type PointInTimeDeleteResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r PointInTimeDeleteResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_point_in_time-get.go b/opensearchapi/api_point_in_time-get.go index 0fcf3982f..a0b61ef4d 100644 --- a/opensearchapi/api_point_in_time-get.go +++ b/opensearchapi/api_point_in_time-get.go @@ -39,7 +39,7 @@ type PointInTimeGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r PointInTimeGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_rank_eval.go b/opensearchapi/api_rank_eval.go index 1aa1bc302..467def852 100644 --- a/opensearchapi/api_rank_eval.go +++ b/opensearchapi/api_rank_eval.go @@ -66,7 +66,7 @@ type RankEvalResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r RankEvalResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_reindex.go b/opensearchapi/api_reindex.go index 05034e0be..b54db66f8 100644 --- a/opensearchapi/api_reindex.go +++ b/opensearchapi/api_reindex.go @@ -70,7 +70,7 @@ type ReindexResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ReindexResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_reindex_rethrottle.go b/opensearchapi/api_reindex_rethrottle.go index ec123ab9a..32c283928 100644 --- a/opensearchapi/api_reindex_rethrottle.go +++ b/opensearchapi/api_reindex_rethrottle.go @@ -111,7 +111,7 @@ type ReindexRethrottleResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ReindexRethrottleResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_render_search_template.go b/opensearchapi/api_render_search_template.go index b419221fb..c09fe2641 100644 --- a/opensearchapi/api_render_search_template.go +++ b/opensearchapi/api_render_search_template.go @@ -63,7 +63,7 @@ type RenderSearchTemplateResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r RenderSearchTemplateResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_script-context.go b/opensearchapi/api_script-context.go index 1e42f69fa..08b0d24a6 100644 --- a/opensearchapi/api_script-context.go +++ b/opensearchapi/api_script-context.go @@ -45,7 +45,7 @@ type ScriptContextResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ScriptContextResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_script-delete.go b/opensearchapi/api_script-delete.go index 3d033955c..1a8f8362a 100644 --- a/opensearchapi/api_script-delete.go +++ b/opensearchapi/api_script-delete.go @@ -38,7 +38,7 @@ type ScriptDeleteResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ScriptDeleteResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_script-get.go b/opensearchapi/api_script-get.go index fb2948ccb..8709153c4 100644 --- a/opensearchapi/api_script-get.go +++ b/opensearchapi/api_script-get.go @@ -43,7 +43,7 @@ type ScriptGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ScriptGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_script-language.go b/opensearchapi/api_script-language.go index 26cf2eb14..32241b6e0 100644 --- a/opensearchapi/api_script-language.go +++ b/opensearchapi/api_script-language.go @@ -39,7 +39,7 @@ type ScriptLanguageResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ScriptLanguageResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_script-painless_execute.go b/opensearchapi/api_script-painless_execute.go index 21c63d807..2634ee1fd 100644 --- a/opensearchapi/api_script-painless_execute.go +++ b/opensearchapi/api_script-painless_execute.go @@ -39,7 +39,7 @@ type ScriptPainlessExecuteResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ScriptPainlessExecuteResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_script-put.go b/opensearchapi/api_script-put.go index 6af90dc66..2762f2e2e 100644 --- a/opensearchapi/api_script-put.go +++ b/opensearchapi/api_script-put.go @@ -51,7 +51,7 @@ type ScriptPutResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ScriptPutResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_scroll-delete.go b/opensearchapi/api_scroll-delete.go index 62817053d..7aa934612 100644 --- a/opensearchapi/api_scroll-delete.go +++ b/opensearchapi/api_scroll-delete.go @@ -50,7 +50,7 @@ type ScrollDeleteResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ScrollDeleteResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_scroll-get.go b/opensearchapi/api_scroll-get.go index 5a6ee7be4..63477d138 100644 --- a/opensearchapi/api_scroll-get.go +++ b/opensearchapi/api_scroll-get.go @@ -52,7 +52,7 @@ type ScrollGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ScrollGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_search-template.go b/opensearchapi/api_search-template.go index b79d9db27..3aae3b15d 100644 --- a/opensearchapi/api_search-template.go +++ b/opensearchapi/api_search-template.go @@ -74,7 +74,7 @@ type SearchTemplateResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r SearchTemplateResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_search_shards.go b/opensearchapi/api_search_shards.go index d8bfae2f1..5b3a1f426 100644 --- a/opensearchapi/api_search_shards.go +++ b/opensearchapi/api_search_shards.go @@ -94,7 +94,7 @@ type SearchShardsResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r SearchShardsResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_snapshot-clone.go b/opensearchapi/api_snapshot-clone.go index c12a6ccc2..6c10f6cb4 100644 --- a/opensearchapi/api_snapshot-clone.go +++ b/opensearchapi/api_snapshot-clone.go @@ -43,7 +43,7 @@ type SnapshotCloneResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r SnapshotCloneResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_snapshot-create.go b/opensearchapi/api_snapshot-create.go index 986b2c2f1..f125f793c 100644 --- a/opensearchapi/api_snapshot-create.go +++ b/opensearchapi/api_snapshot-create.go @@ -66,7 +66,7 @@ type SnapshotCreateResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r SnapshotCreateResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_snapshot-delete.go b/opensearchapi/api_snapshot-delete.go index 2f13553aa..e17a83ef9 100644 --- a/opensearchapi/api_snapshot-delete.go +++ b/opensearchapi/api_snapshot-delete.go @@ -40,7 +40,7 @@ type SnapshotDeleteResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r SnapshotDeleteResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_snapshot-get.go b/opensearchapi/api_snapshot-get.go index 33925c555..9266ef409 100644 --- a/opensearchapi/api_snapshot-get.go +++ b/opensearchapi/api_snapshot-get.go @@ -44,7 +44,7 @@ type SnapshotGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r SnapshotGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_snapshot-restore.go b/opensearchapi/api_snapshot-restore.go index 2264e4365..707067629 100644 --- a/opensearchapi/api_snapshot-restore.go +++ b/opensearchapi/api_snapshot-restore.go @@ -51,7 +51,7 @@ type SnapshotRestoreResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r SnapshotRestoreResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_snapshot-status.go b/opensearchapi/api_snapshot-status.go index e63caeba0..574176c7a 100644 --- a/opensearchapi/api_snapshot-status.go +++ b/opensearchapi/api_snapshot-status.go @@ -57,7 +57,7 @@ type SnapshotStatusResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r SnapshotStatusResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_snapshot_repository-cleanup.go b/opensearchapi/api_snapshot_repository-cleanup.go index 072a9ca59..6845ad1d0 100644 --- a/opensearchapi/api_snapshot_repository-cleanup.go +++ b/opensearchapi/api_snapshot_repository-cleanup.go @@ -41,7 +41,7 @@ type SnapshotRepositoryCleanupResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r SnapshotRepositoryCleanupResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_snapshot_repository-create.go b/opensearchapi/api_snapshot_repository-create.go index ba01e1161..eaeb01347 100644 --- a/opensearchapi/api_snapshot_repository-create.go +++ b/opensearchapi/api_snapshot_repository-create.go @@ -41,7 +41,7 @@ type SnapshotRepositoryCreateResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r SnapshotRepositoryCreateResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_snapshot_repository-delete.go b/opensearchapi/api_snapshot_repository-delete.go index 4a51de58a..33082a976 100644 --- a/opensearchapi/api_snapshot_repository-delete.go +++ b/opensearchapi/api_snapshot_repository-delete.go @@ -48,7 +48,7 @@ type SnapshotRepositoryDeleteResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r SnapshotRepositoryDeleteResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_snapshot_repository-get.go b/opensearchapi/api_snapshot_repository-get.go index f04239600..728a4ef72 100644 --- a/opensearchapi/api_snapshot_repository-get.go +++ b/opensearchapi/api_snapshot_repository-get.go @@ -51,7 +51,7 @@ type SnapshotRepositoryGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r SnapshotRepositoryGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_snapshot_repository-verify.go b/opensearchapi/api_snapshot_repository-verify.go index 5542af7e3..1d3e8cc8d 100644 --- a/opensearchapi/api_snapshot_repository-verify.go +++ b/opensearchapi/api_snapshot_repository-verify.go @@ -40,7 +40,7 @@ type SnapshotRepositoryVerifyResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r SnapshotRepositoryVerifyResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_tasks-cancel.go b/opensearchapi/api_tasks-cancel.go index 4c3d0596b..f7dc2acc2 100644 --- a/opensearchapi/api_tasks-cancel.go +++ b/opensearchapi/api_tasks-cancel.go @@ -48,7 +48,7 @@ type TasksCancelResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r TasksCancelResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_tasks-get.go b/opensearchapi/api_tasks-get.go index 45411fac6..803701e9c 100644 --- a/opensearchapi/api_tasks-get.go +++ b/opensearchapi/api_tasks-get.go @@ -73,7 +73,7 @@ type TasksGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r TasksGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_tasks-list.go b/opensearchapi/api_tasks-list.go index 0332f851f..0af34d4e8 100644 --- a/opensearchapi/api_tasks-list.go +++ b/opensearchapi/api_tasks-list.go @@ -37,7 +37,7 @@ type TasksListResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r TasksListResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_template-create.go b/opensearchapi/api_template-create.go index fa974f0bc..2d5266830 100644 --- a/opensearchapi/api_template-create.go +++ b/opensearchapi/api_template-create.go @@ -41,7 +41,7 @@ type TemplateCreateResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r TemplateCreateResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_template-delete.go b/opensearchapi/api_template-delete.go index 5bc7f0b6d..29befafbe 100644 --- a/opensearchapi/api_template-delete.go +++ b/opensearchapi/api_template-delete.go @@ -38,7 +38,7 @@ type TemplateDeleteResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r TemplateDeleteResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_template-get.go b/opensearchapi/api_template-get.go index 95b2d66a5..153db1a91 100644 --- a/opensearchapi/api_template-get.go +++ b/opensearchapi/api_template-get.go @@ -40,7 +40,7 @@ type TemplateGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r TemplateGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_termvectors.go b/opensearchapi/api_termvectors.go index d25d4b367..e608c359d 100644 --- a/opensearchapi/api_termvectors.go +++ b/opensearchapi/api_termvectors.go @@ -74,7 +74,7 @@ type TermvectorsResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r TermvectorsResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_update.go b/opensearchapi/api_update.go index 54ab8e1d8..693b131e5 100644 --- a/opensearchapi/api_update.go +++ b/opensearchapi/api_update.go @@ -67,7 +67,7 @@ type UpdateResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r UpdateResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_update_by_query.go b/opensearchapi/api_update_by_query.go index ff0b5b881..ad22e1fe9 100644 --- a/opensearchapi/api_update_by_query.go +++ b/opensearchapi/api_update_by_query.go @@ -74,7 +74,7 @@ type UpdateByQueryResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r UpdateByQueryResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/api_update_by_query_rethrottle.go b/opensearchapi/api_update_by_query_rethrottle.go index 5c72cf7b8..d014ef022 100644 --- a/opensearchapi/api_update_by_query_rethrottle.go +++ b/opensearchapi/api_update_by_query_rethrottle.go @@ -111,7 +111,7 @@ type UpdateByQueryRethrottleResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r UpdateByQueryRethrottleResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/opensearchapi/opensearchapi.go b/opensearchapi/opensearchapi.go index d23d5abfc..6bffed61f 100644 --- a/opensearchapi/opensearchapi.go +++ b/opensearchapi/opensearchapi.go @@ -139,7 +139,7 @@ type ResponseShards struct { Skipped int `json:"skipped"` } -// ResponseShardsFailure is a sub type of ReponseShards containing information about a failed shard +// ResponseShardsFailure is a sub type of ResponseShards containing information about a failed shard type ResponseShardsFailure struct { Shard int `json:"shard"` Index any `json:"index"` diff --git a/opensearchtransport/opensearchtransport_integration_test.go b/opensearchtransport/opensearchtransport_integration_test.go index edacac794..62c339f7f 100644 --- a/opensearchtransport/opensearchtransport_integration_test.go +++ b/opensearchtransport/opensearchtransport_integration_test.go @@ -169,7 +169,7 @@ func TestTransportBodyClose(t *testing.T) { } body, err := io.ReadAll(res.Body) if err != nil { - t.Fatalf("Failed to read the reponse body: %s", err) + t.Fatalf("Failed to read the response body: %s", err) } if body == nil || len(body) == 0 { t.Fatalf("Unexpected response body:\n%s", body) diff --git a/plugins/ism/api_add.go b/plugins/ism/api_add.go index 05fe5bb92..dfa1cad7d 100644 --- a/plugins/ism/api_add.go +++ b/plugins/ism/api_add.go @@ -70,7 +70,7 @@ type AddResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r AddResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/ism/api_change.go b/plugins/ism/api_change.go index 2cd66a10a..4ef6a9076 100644 --- a/plugins/ism/api_change.go +++ b/plugins/ism/api_change.go @@ -70,7 +70,7 @@ type ChangeResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ChangeResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/ism/api_explain.go b/plugins/ism/api_explain.go index 2e298c819..b67d0a199 100644 --- a/plugins/ism/api_explain.go +++ b/plugins/ism/api_explain.go @@ -67,7 +67,7 @@ type ExplainResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ExplainResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/ism/api_policies-delete.go b/plugins/ism/api_policies-delete.go index 0516450e2..778c22c09 100644 --- a/plugins/ism/api_policies-delete.go +++ b/plugins/ism/api_policies-delete.go @@ -49,7 +49,7 @@ type PoliciesDeleteResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r PoliciesDeleteResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/ism/api_policies-get.go b/plugins/ism/api_policies-get.go index 87e263f2e..8b28eb347 100644 --- a/plugins/ism/api_policies-get.go +++ b/plugins/ism/api_policies-get.go @@ -51,7 +51,7 @@ type PoliciesGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r PoliciesGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/ism/api_policies-put.go b/plugins/ism/api_policies-put.go index 5fa4de8ab..24eee75c3 100644 --- a/plugins/ism/api_policies-put.go +++ b/plugins/ism/api_policies-put.go @@ -52,7 +52,7 @@ type PoliciesPutResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r PoliciesPutResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/ism/api_remove.go b/plugins/ism/api_remove.go index f054907d2..dbbcc786e 100644 --- a/plugins/ism/api_remove.go +++ b/plugins/ism/api_remove.go @@ -62,7 +62,7 @@ type RemoveResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r RemoveResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/ism/api_retry.go b/plugins/ism/api_retry.go index df4aaf015..844f44fd4 100644 --- a/plugins/ism/api_retry.go +++ b/plugins/ism/api_retry.go @@ -75,7 +75,7 @@ type RetryResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r RetryResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_account-get.go b/plugins/security/api_account-get.go index b68f3db54..423d7207f 100644 --- a/plugins/security/api_account-get.go +++ b/plugins/security/api_account-get.go @@ -42,7 +42,7 @@ type AccountGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r AccountGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_account-put.go b/plugins/security/api_account-put.go index 732186109..ec2af2075 100644 --- a/plugins/security/api_account-put.go +++ b/plugins/security/api_account-put.go @@ -50,7 +50,7 @@ type AccountPutResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r AccountPutResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_actiongroups-delete.go b/plugins/security/api_actiongroups-delete.go index eef750af9..0e38e40a8 100644 --- a/plugins/security/api_actiongroups-delete.go +++ b/plugins/security/api_actiongroups-delete.go @@ -38,7 +38,7 @@ type ActionGroupsDeleteResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ActionGroupsDeleteResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_actiongroups-get.go b/plugins/security/api_actiongroups-get.go index 1e9fc83eb..7da28b45f 100644 --- a/plugins/security/api_actiongroups-get.go +++ b/plugins/security/api_actiongroups-get.go @@ -44,7 +44,7 @@ type ActionGroupsGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ActionGroupsGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_actiongroups-patch.go b/plugins/security/api_actiongroups-patch.go index 4ea1165a4..fa28999f1 100644 --- a/plugins/security/api_actiongroups-patch.go +++ b/plugins/security/api_actiongroups-patch.go @@ -54,7 +54,7 @@ type ActionGroupsPatchResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ActionGroupsPatchResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_actiongroups-put.go b/plugins/security/api_actiongroups-put.go index a99a8e221..7174abc5d 100644 --- a/plugins/security/api_actiongroups-put.go +++ b/plugins/security/api_actiongroups-put.go @@ -46,7 +46,7 @@ type ActionGroupsPutResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ActionGroupsPutResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_audit-get.go b/plugins/security/api_audit-get.go index 8d8a560ea..0f9bb3816 100644 --- a/plugins/security/api_audit-get.go +++ b/plugins/security/api_audit-get.go @@ -35,7 +35,7 @@ type AuditGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r AuditGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_audit-patch.go b/plugins/security/api_audit-patch.go index 4a608db79..cfc8abb8f 100644 --- a/plugins/security/api_audit-patch.go +++ b/plugins/security/api_audit-patch.go @@ -44,7 +44,7 @@ type AuditPatchResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r AuditPatchResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_audit-put.go b/plugins/security/api_audit-put.go index 0a85efc2f..b4c2b01ef 100644 --- a/plugins/security/api_audit-put.go +++ b/plugins/security/api_audit-put.go @@ -47,7 +47,7 @@ type AuditPutResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r AuditPutResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_flushcache.go b/plugins/security/api_flushcache.go index 5fc289f5b..b6c091c60 100644 --- a/plugins/security/api_flushcache.go +++ b/plugins/security/api_flushcache.go @@ -53,7 +53,7 @@ type FlushCacheResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r FlushCacheResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_health.go b/plugins/security/api_health.go index 709bda6bf..e72018e06 100644 --- a/plugins/security/api_health.go +++ b/plugins/security/api_health.go @@ -54,7 +54,7 @@ type HealthResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r HealthResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_internalusers-delete.go b/plugins/security/api_internalusers-delete.go index 5e7d44ef4..eada2c6c6 100644 --- a/plugins/security/api_internalusers-delete.go +++ b/plugins/security/api_internalusers-delete.go @@ -38,7 +38,7 @@ type InternalUsersDeleteResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r InternalUsersDeleteResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_internalusers-get.go b/plugins/security/api_internalusers-get.go index 9444950dc..f6f00a87f 100644 --- a/plugins/security/api_internalusers-get.go +++ b/plugins/security/api_internalusers-get.go @@ -45,7 +45,7 @@ type InternalUsersGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r InternalUsersGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_internalusers-patch.go b/plugins/security/api_internalusers-patch.go index 20c29ad7a..d289daebd 100644 --- a/plugins/security/api_internalusers-patch.go +++ b/plugins/security/api_internalusers-patch.go @@ -54,7 +54,7 @@ type InternalUsersPatchResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r InternalUsersPatchResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_internalusers-put.go b/plugins/security/api_internalusers-put.go index 01b04b227..cf5e689b2 100644 --- a/plugins/security/api_internalusers-put.go +++ b/plugins/security/api_internalusers-put.go @@ -56,7 +56,7 @@ type InternalUsersPutResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r InternalUsersPutResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_nodesdn-delete.go b/plugins/security/api_nodesdn-delete.go index 2371eb8ff..146edf835 100644 --- a/plugins/security/api_nodesdn-delete.go +++ b/plugins/security/api_nodesdn-delete.go @@ -38,7 +38,7 @@ type NodesDNDeleteResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r NodesDNDeleteResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_nodesdn-get.go b/plugins/security/api_nodesdn-get.go index fbe3e429e..602db1613 100644 --- a/plugins/security/api_nodesdn-get.go +++ b/plugins/security/api_nodesdn-get.go @@ -46,7 +46,7 @@ type NodesDNGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r NodesDNGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_nodesdn-patch.go b/plugins/security/api_nodesdn-patch.go index 02bd6fe5c..d113195aa 100644 --- a/plugins/security/api_nodesdn-patch.go +++ b/plugins/security/api_nodesdn-patch.go @@ -54,7 +54,7 @@ type NodesDNPatchResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r NodesDNPatchResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_nodesdn-put.go b/plugins/security/api_nodesdn-put.go index 0b1225feb..18362254c 100644 --- a/plugins/security/api_nodesdn-put.go +++ b/plugins/security/api_nodesdn-put.go @@ -51,7 +51,7 @@ type NodesDNPutResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r NodesDNPutResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_roles-delete.go b/plugins/security/api_roles-delete.go index a205b9e00..87cb17a3f 100644 --- a/plugins/security/api_roles-delete.go +++ b/plugins/security/api_roles-delete.go @@ -38,7 +38,7 @@ type RolesDeleteResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r RolesDeleteResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_roles-get.go b/plugins/security/api_roles-get.go index b208702b5..c33f1436e 100644 --- a/plugins/security/api_roles-get.go +++ b/plugins/security/api_roles-get.go @@ -45,7 +45,7 @@ type RolesGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r RolesGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_roles-patch.go b/plugins/security/api_roles-patch.go index 63e0e0893..bd9509d68 100644 --- a/plugins/security/api_roles-patch.go +++ b/plugins/security/api_roles-patch.go @@ -54,7 +54,7 @@ type RolesPatchResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r RolesPatchResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_roles-put.go b/plugins/security/api_roles-put.go index 5b9e7c1a6..66ad0b861 100644 --- a/plugins/security/api_roles-put.go +++ b/plugins/security/api_roles-put.go @@ -54,7 +54,7 @@ type RolesPutResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r RolesPutResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_rolesmapping-delete.go b/plugins/security/api_rolesmapping-delete.go index c7649a4eb..85e682be6 100644 --- a/plugins/security/api_rolesmapping-delete.go +++ b/plugins/security/api_rolesmapping-delete.go @@ -38,7 +38,7 @@ type RolesMappingDeleteResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r RolesMappingDeleteResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_rolesmapping-get.go b/plugins/security/api_rolesmapping-get.go index cc18ca75b..77ecbb75b 100644 --- a/plugins/security/api_rolesmapping-get.go +++ b/plugins/security/api_rolesmapping-get.go @@ -45,7 +45,7 @@ type RolesMappingGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r RolesMappingGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_rolesmapping-patch.go b/plugins/security/api_rolesmapping-patch.go index f10c28bba..186f91c19 100644 --- a/plugins/security/api_rolesmapping-patch.go +++ b/plugins/security/api_rolesmapping-patch.go @@ -54,7 +54,7 @@ type RolesMappingPatchResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r RolesMappingPatchResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_rolesmapping-put.go b/plugins/security/api_rolesmapping-put.go index bba96a1ff..6ed6fb39d 100644 --- a/plugins/security/api_rolesmapping-put.go +++ b/plugins/security/api_rolesmapping-put.go @@ -55,7 +55,7 @@ type RolesMappingPutResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r RolesMappingPutResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_securityconfig-get.go b/plugins/security/api_securityconfig-get.go index f537c3d4e..878eec8c1 100644 --- a/plugins/security/api_securityconfig-get.go +++ b/plugins/security/api_securityconfig-get.go @@ -37,7 +37,7 @@ type ConfigGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ConfigGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_securityconfig-patch.go b/plugins/security/api_securityconfig-patch.go index 1bb5a864b..943d50cfa 100644 --- a/plugins/security/api_securityconfig-patch.go +++ b/plugins/security/api_securityconfig-patch.go @@ -44,7 +44,7 @@ type ConfigPatchResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ConfigPatchResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_securityconfig-put.go b/plugins/security/api_securityconfig-put.go index f6aa9912e..f306f2bb4 100644 --- a/plugins/security/api_securityconfig-put.go +++ b/plugins/security/api_securityconfig-put.go @@ -49,7 +49,7 @@ type ConfigPutResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r ConfigPutResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_ssl-get.go b/plugins/security/api_ssl-get.go index 0db32e55d..194a569d8 100644 --- a/plugins/security/api_ssl-get.go +++ b/plugins/security/api_ssl-get.go @@ -36,7 +36,7 @@ type SSLGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r SSLGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_ssl-http-reload.go b/plugins/security/api_ssl-http-reload.go index 510469ec0..c78ae5386 100644 --- a/plugins/security/api_ssl-http-reload.go +++ b/plugins/security/api_ssl-http-reload.go @@ -35,7 +35,7 @@ type SSLHTTPReloadResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r SSLHTTPReloadResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_ssl-transport-reload.go b/plugins/security/api_ssl-transport-reload.go index c9cce06eb..66687f820 100644 --- a/plugins/security/api_ssl-transport-reload.go +++ b/plugins/security/api_ssl-transport-reload.go @@ -35,7 +35,7 @@ type SSLTransportReloadResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r SSLTransportReloadResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_tenants-delete.go b/plugins/security/api_tenants-delete.go index da36de495..c418973d7 100644 --- a/plugins/security/api_tenants-delete.go +++ b/plugins/security/api_tenants-delete.go @@ -38,7 +38,7 @@ type TenantsDeleteResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r TenantsDeleteResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_tenants-get.go b/plugins/security/api_tenants-get.go index fdabcbd5c..fcff73027 100644 --- a/plugins/security/api_tenants-get.go +++ b/plugins/security/api_tenants-get.go @@ -45,7 +45,7 @@ type TenantsGetResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r TenantsGetResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_tenants-patch.go b/plugins/security/api_tenants-patch.go index cf7ff1838..bb249cc05 100644 --- a/plugins/security/api_tenants-patch.go +++ b/plugins/security/api_tenants-patch.go @@ -54,7 +54,7 @@ type TenantsPatchResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r TenantsPatchResp) Inspect() Inspect { return Inspect{Response: r.response} } diff --git a/plugins/security/api_tenants-put.go b/plugins/security/api_tenants-put.go index 83b6a4e10..64ea1a6bf 100644 --- a/plugins/security/api_tenants-put.go +++ b/plugins/security/api_tenants-put.go @@ -51,7 +51,7 @@ type TenantsPutResp struct { response *opensearch.Response } -// Inspect returns the Inspect type containing the raw *opensearch.Reponse +// Inspect returns the Inspect type containing the raw *opensearch.Response func (r TenantsPutResp) Inspect() Inspect { return Inspect{Response: r.response} } From 06d31e9562b85308fb3ff7f99e36c38fe8b28edb Mon Sep 17 00:00:00 2001 From: Jakob Hahn Date: Tue, 7 Oct 2025 14:27:50 +0200 Subject: [PATCH 3/7] opensearchtransport: fix musttag linter complain Signed-off-by: Jakob Hahn --- opensearchtransport/discovery.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/opensearchtransport/discovery.go b/opensearchtransport/discovery.go index 2e0bbec85..b180b1185 100644 --- a/opensearchtransport/discovery.go +++ b/opensearchtransport/discovery.go @@ -46,14 +46,14 @@ type Discoverable interface { // nodeInfo represents the information about node in a cluster. type nodeInfo struct { - ID string - Name string - URL *url.URL - Roles []string `json:"roles"` - Attributes map[string]interface{} + ID string `json:"id"` + Name string `json:"name"` + URL *url.URL `json:"url"` + Roles []string `json:"roles"` + Attributes map[string]interface{} `json:"attributes"` HTTP struct { PublishAddress string `json:"publish_address"` - } + } `json:"http"` } // DiscoverNodes reloads the client connections by fetching information from the cluster. From 98deeec98dd6f7c39237d9c57ab89c153143a217 Mon Sep 17 00:00:00 2001 From: Jakob Hahn Date: Tue, 7 Oct 2025 14:48:41 +0200 Subject: [PATCH 4/7] fix nolintlint complains Signed-off-by: Jakob Hahn --- internal/test/helper.go | 6 +----- signer/aws/aws.go | 1 - signer/awsv2/sdkv2signer.go | 1 - 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/internal/test/helper.go b/internal/test/helper.go index 1cd2780f5..5ec32ee41 100644 --- a/internal/test/helper.go +++ b/internal/test/helper.go @@ -38,11 +38,7 @@ func NewClient() (*opensearchapi.Client, error) { // IsSecure returns true when SECURE_INTEGRATION env is set to true func IsSecure() bool { - //nolint:gosimple // Getenv returns string not bool, if clause is needed - if os.Getenv("SECURE_INTEGRATION") == "true" { - return true - } - return false + return os.Getenv("SECURE_INTEGRATION") == "true" } // ClientConfig returns an opensearchapi.Config for secure opensearch diff --git a/signer/aws/aws.go b/signer/aws/aws.go index 616e4ab8f..cb852fb79 100644 --- a/signer/aws/aws.go +++ b/signer/aws/aws.go @@ -30,7 +30,6 @@ const OpenSearchService = "es" // OpenSearchServerless Amazon OpenSearch Serverless Name const OpenSearchServerless = "aoss" -//nolint:gosec // static empty Body const emptyBodySHA256 = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" // Signer is an interface that will implement opensearchtransport.Signer diff --git a/signer/awsv2/sdkv2signer.go b/signer/awsv2/sdkv2signer.go index 94323b5bc..fd9598e33 100644 --- a/signer/awsv2/sdkv2signer.go +++ b/signer/awsv2/sdkv2signer.go @@ -29,7 +29,6 @@ import ( const ( openSearchService = "es" - //nolint:gosec // static empty Body emptyStringSHA256 = `e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855` ) From 3959e275fbee368f7303329e43773698f5cd0eb6 Mon Sep 17 00:00:00 2001 From: Jakob Hahn Date: Tue, 7 Oct 2025 14:52:01 +0200 Subject: [PATCH 5/7] golangci: remove deprecated linters Signed-off-by: Jakob Hahn --- .golangci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 7c017afb7..5a6c8217c 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -70,9 +70,7 @@ linters: - errchkjson - errname - errorlint - - execinquery - exhaustive - - exportloopref - gci - ginkgolinter - gocheckcompilerdirectives From bccdd1951bee25ca54da0ea2029f8a98ca1c6c1d Mon Sep 17 00:00:00 2001 From: Jakob Hahn Date: Tue, 7 Oct 2025 16:03:37 +0200 Subject: [PATCH 6/7] opensearchapi: fix MaxScore type to be a pointer Signed-off-by: Jakob Hahn --- CHANGELOG.md | 1 + opensearchapi/api_msearch.go | 2 +- opensearchapi/api_scroll-get.go | 2 +- opensearchapi/api_search.go | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 53b3338ed..f80e5c2aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Updates Go version to 1.24 ([#674](https://github.com/opensearch-project/opensearch-go/pull/674)) - Replace `golang.org/x/exp/slices` usage with built-in `slices` ([#674](https://github.com/opensearch-project/opensearch-go/pull/674)) - Update golangci-linter to 1.64.8 ([#740](https://github.com/opensearch-project/opensearch-go/pull/740)) +- Change MaxScore to pointer ([#740](https://github.com/opensearch-project/opensearch-go/pull/740)) ### Deprecated diff --git a/opensearchapi/api_msearch.go b/opensearchapi/api_msearch.go index c555d61ac..900ac7040 100644 --- a/opensearchapi/api_msearch.go +++ b/opensearchapi/api_msearch.go @@ -70,7 +70,7 @@ type MSearchResp struct { Value int `json:"value"` Relation string `json:"relation"` } `json:"total"` - MaxScore float32 `json:"max_score"` + MaxScore *float32 `json:"max_score"` Hits []SearchHit `json:"hits"` } `json:"hits"` Status int `json:"status"` diff --git a/opensearchapi/api_scroll-get.go b/opensearchapi/api_scroll-get.go index 63477d138..bcd6d2f3c 100644 --- a/opensearchapi/api_scroll-get.go +++ b/opensearchapi/api_scroll-get.go @@ -43,7 +43,7 @@ type ScrollGetResp struct { Value int `json:"value"` Relation string `json:"relation"` } `json:"total"` - MaxScore float32 `json:"max_score"` + MaxScore *float32 `json:"max_score"` Hits []SearchHit `json:"hits"` } `json:"hits"` ScrollID *string `json:"_scroll_id,omitempty"` diff --git a/opensearchapi/api_search.go b/opensearchapi/api_search.go index 9db41e642..6fa7f840d 100644 --- a/opensearchapi/api_search.go +++ b/opensearchapi/api_search.go @@ -86,7 +86,7 @@ type SearchHits struct { Value int `json:"value"` Relation string `json:"relation"` } `json:"total"` - MaxScore float32 `json:"max_score"` + MaxScore *float32 `json:"max_score"` Hits []SearchHit `json:"hits"` } From c97c0ba98c52f85b8dd11b58fb2e557aacecd42e Mon Sep 17 00:00:00 2001 From: Jakob Hahn Date: Tue, 7 Oct 2025 16:37:10 +0200 Subject: [PATCH 7/7] golangci: exclude goconst check for all param files Signed-off-by: Jakob Hahn --- .golangci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 5a6c8217c..843f0f5c6 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -157,7 +157,7 @@ issues: path: _test\.go - linters: - goconst - path: opensearchapi\/api_ + path: -params\.go - linters: - errcheck text: "Error return value of `debugLogger.Logf` is not checked"