build(deps): bump github.com/opensearch-project/opensearch-go/v4
Bumps [github.com/opensearch-project/opensearch-go/v4](https://github.com/opensearch-project/opensearch-go) from 4.5.0 to 4.6.0. - [Release notes](https://github.com/opensearch-project/opensearch-go/releases) - [Changelog](https://github.com/opensearch-project/opensearch-go/blob/main/CHANGELOG.md) - [Commits](https://github.com/opensearch-project/opensearch-go/compare/v4.5.0...v4.6.0) --- updated-dependencies: - dependency-name: github.com/opensearch-project/opensearch-go/v4 dependency-version: 4.6.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
committed by
Ralf Haferkamp
parent
24fc3ba005
commit
aad42fd3de
@@ -65,7 +65,7 @@ require (
|
|||||||
github.com/opencloud-eu/icap-client v0.0.0-20250930132611-28a2afe62d89
|
github.com/opencloud-eu/icap-client v0.0.0-20250930132611-28a2afe62d89
|
||||||
github.com/opencloud-eu/libre-graph-api-go v1.0.8-0.20250724122329-41ba6b191e76
|
github.com/opencloud-eu/libre-graph-api-go v1.0.8-0.20250724122329-41ba6b191e76
|
||||||
github.com/opencloud-eu/reva/v2 v2.41.0
|
github.com/opencloud-eu/reva/v2 v2.41.0
|
||||||
github.com/opensearch-project/opensearch-go/v4 v4.5.0
|
github.com/opensearch-project/opensearch-go/v4 v4.6.0
|
||||||
github.com/orcaman/concurrent-map v1.0.0
|
github.com/orcaman/concurrent-map v1.0.0
|
||||||
github.com/pkg/errors v0.9.1
|
github.com/pkg/errors v0.9.1
|
||||||
github.com/pkg/xattr v0.4.12
|
github.com/pkg/xattr v0.4.12
|
||||||
|
|||||||
@@ -973,8 +973,8 @@ github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8
|
|||||||
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
|
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
|
||||||
github.com/opencontainers/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJwooC2xJA040=
|
github.com/opencontainers/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJwooC2xJA040=
|
||||||
github.com/opencontainers/image-spec v1.1.1/go.mod h1:qpqAh3Dmcf36wStyyWU+kCeDgrGnAve2nCC8+7h8Q0M=
|
github.com/opencontainers/image-spec v1.1.1/go.mod h1:qpqAh3Dmcf36wStyyWU+kCeDgrGnAve2nCC8+7h8Q0M=
|
||||||
github.com/opensearch-project/opensearch-go/v4 v4.5.0 h1:26XckmmF6MhlXt91Bu1yY6R51jy1Ns/C3XgIfvyeTRo=
|
github.com/opensearch-project/opensearch-go/v4 v4.6.0 h1:Ac8aLtDSmLEyOmv0r1qhQLw3b4vcUhE42NE9k+Z4cRc=
|
||||||
github.com/opensearch-project/opensearch-go/v4 v4.5.0/go.mod h1:VmFc7dqOEM3ZtLhrpleOzeq+cqUgNabqQG5gX0xId64=
|
github.com/opensearch-project/opensearch-go/v4 v4.6.0/go.mod h1:3iZtb4SNt3IzaxavKq0dURh1AmtVgYW71E4XqmYnIiQ=
|
||||||
github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=
|
github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=
|
||||||
github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs=
|
github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs=
|
||||||
github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc=
|
github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc=
|
||||||
|
|||||||
+109
-105
@@ -1,59 +1,8 @@
|
|||||||
|
version: "2"
|
||||||
run:
|
run:
|
||||||
timeout: 10m
|
|
||||||
modules-download-mode: readonly
|
modules-download-mode: readonly
|
||||||
|
|
||||||
linters-settings:
|
|
||||||
errcheck:
|
|
||||||
check-blank: true
|
|
||||||
check-type-assertions: false
|
|
||||||
errorlint:
|
|
||||||
check-generated: false
|
|
||||||
default-signifies-exhaustive: false
|
|
||||||
exhaustive:
|
|
||||||
default-signifies-exhaustive: false
|
|
||||||
gci:
|
|
||||||
sections:
|
|
||||||
- standard
|
|
||||||
- default
|
|
||||||
- prefix(github.com/opensearch-project/opensearch-go)
|
|
||||||
goconst:
|
|
||||||
min-len: 3
|
|
||||||
min-occurrences: 3
|
|
||||||
godox:
|
|
||||||
keywords:
|
|
||||||
- BUG
|
|
||||||
- FIXME
|
|
||||||
- HACK
|
|
||||||
goimports:
|
|
||||||
local-prefixes: github.com/opensearch-project/opensearch-go
|
|
||||||
lll:
|
|
||||||
line-length: 140
|
|
||||||
nolintlint:
|
|
||||||
allow-leading-space: false
|
|
||||||
require-explanation: true
|
|
||||||
require-specific: true
|
|
||||||
unparam:
|
|
||||||
check-exported: true
|
|
||||||
misspell:
|
|
||||||
locale: US
|
|
||||||
ignore-words:
|
|
||||||
- expect
|
|
||||||
- cancelled
|
|
||||||
prealloc:
|
|
||||||
simple: true
|
|
||||||
range-loops: true
|
|
||||||
for-loops: false
|
|
||||||
revive:
|
|
||||||
rules:
|
|
||||||
- name: exported
|
|
||||||
severity: error
|
|
||||||
disabled: false
|
|
||||||
arguments:
|
|
||||||
- "checkPrivateReceivers"
|
|
||||||
- "sayRepetitiveInsteadOfStutters"
|
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
disable-all: true
|
default: none
|
||||||
enable:
|
enable:
|
||||||
- asasalint
|
- asasalint
|
||||||
- asciicheck
|
- asciicheck
|
||||||
@@ -70,10 +19,7 @@ linters:
|
|||||||
- errchkjson
|
- errchkjson
|
||||||
- errname
|
- errname
|
||||||
- errorlint
|
- errorlint
|
||||||
- execinquery
|
|
||||||
- exhaustive
|
- exhaustive
|
||||||
- exportloopref
|
|
||||||
- gci
|
|
||||||
- ginkgolinter
|
- ginkgolinter
|
||||||
- gocheckcompilerdirectives
|
- gocheckcompilerdirectives
|
||||||
- gochecknoglobals
|
- gochecknoglobals
|
||||||
@@ -81,15 +27,11 @@ linters:
|
|||||||
- goconst
|
- goconst
|
||||||
- gocritic
|
- gocritic
|
||||||
- godox
|
- godox
|
||||||
- gofmt
|
|
||||||
- gofumpt
|
|
||||||
- goheader
|
- goheader
|
||||||
- goimports
|
|
||||||
- gomoddirectives
|
- gomoddirectives
|
||||||
- gomodguard
|
- gomodguard
|
||||||
- goprintffuncname
|
- goprintffuncname
|
||||||
- gosec
|
- gosec
|
||||||
- gosimple
|
|
||||||
- govet
|
- govet
|
||||||
- grouper
|
- grouper
|
||||||
- importas
|
- importas
|
||||||
@@ -117,12 +59,10 @@ linters:
|
|||||||
- rowserrcheck
|
- rowserrcheck
|
||||||
- sqlclosecheck
|
- sqlclosecheck
|
||||||
- staticcheck
|
- staticcheck
|
||||||
- stylecheck
|
|
||||||
- tagalign
|
- tagalign
|
||||||
- testpackage
|
- testpackage
|
||||||
- thelper
|
- thelper
|
||||||
- tparallel
|
- tparallel
|
||||||
- typecheck
|
|
||||||
- unconvert
|
- unconvert
|
||||||
- unparam
|
- unparam
|
||||||
- unused
|
- unused
|
||||||
@@ -130,46 +70,110 @@ linters:
|
|||||||
- wastedassign
|
- wastedassign
|
||||||
- whitespace
|
- whitespace
|
||||||
- zerologlint
|
- zerologlint
|
||||||
|
settings:
|
||||||
issues:
|
errcheck:
|
||||||
include:
|
check-type-assertions: false
|
||||||
- EXC0012
|
check-blank: true
|
||||||
- EXC0014
|
exhaustive:
|
||||||
exclude-rules:
|
default-signifies-exhaustive: false
|
||||||
- path: (_test\.go|internal/)
|
goconst:
|
||||||
linters:
|
min-len: 3
|
||||||
- cyclop
|
min-occurrences: 3
|
||||||
- dupl
|
godox:
|
||||||
- errcheck
|
keywords:
|
||||||
- gochecknoglobals
|
- BUG
|
||||||
- gochecknoinits
|
- FIXME
|
||||||
- goconst
|
- HACK
|
||||||
- noctx
|
lll:
|
||||||
- linters:
|
line-length: 140
|
||||||
- gosec
|
misspell:
|
||||||
text: "math/rand"
|
locale: US
|
||||||
path: _test\.go
|
ignore-rules:
|
||||||
- linters:
|
- expect
|
||||||
- gosec
|
- cancelled
|
||||||
text: "TLS InsecureSkipVerify set true"
|
nolintlint:
|
||||||
path: (_test\.go|internal/)
|
require-explanation: true
|
||||||
- linters:
|
require-specific: true
|
||||||
- gosec
|
prealloc:
|
||||||
text: "G108: Profiling endpoint is automatically exposed on /debug/pprof"
|
simple: true
|
||||||
path: _test\.go
|
range-loops: true
|
||||||
- linters:
|
for-loops: false
|
||||||
- goconst
|
revive:
|
||||||
path: opensearchapi\/api_
|
rules:
|
||||||
- linters:
|
- name: exported
|
||||||
- errcheck
|
arguments:
|
||||||
text: "Error return value of `debugLogger.Logf` is not checked"
|
- checkPrivateReceivers
|
||||||
- linters:
|
- sayRepetitiveInsteadOfStutters
|
||||||
- errcheck
|
severity: error
|
||||||
- gochecknoglobals
|
disabled: false
|
||||||
path: opensearchtransport\/logger\.go
|
unparam:
|
||||||
- linters:
|
check-exported: true
|
||||||
- nestif
|
exclusions:
|
||||||
path: opensearchtransport/opensearchtransport.go
|
generated: lax
|
||||||
- linters:
|
presets:
|
||||||
- dupl
|
- common-false-positives
|
||||||
path: (-params\.go|api_indices|api_dangling\.go|api_point_in_time\.go|rethrottle\.go|api_cat-.*\.go|plugins/security/api_\w+.go|plugins/security/api_.*-patch.go)
|
- legacy
|
||||||
|
- std-error-handling
|
||||||
|
rules:
|
||||||
|
- linters:
|
||||||
|
- cyclop
|
||||||
|
- dupl
|
||||||
|
- errcheck
|
||||||
|
- gochecknoglobals
|
||||||
|
- gochecknoinits
|
||||||
|
- goconst
|
||||||
|
- noctx
|
||||||
|
path: (_test\.go|internal/)
|
||||||
|
- linters:
|
||||||
|
- gosec
|
||||||
|
path: _test\.go
|
||||||
|
text: math/rand
|
||||||
|
- linters:
|
||||||
|
- gosec
|
||||||
|
path: (_test\.go|internal/)
|
||||||
|
text: TLS InsecureSkipVerify set true
|
||||||
|
- linters:
|
||||||
|
- gosec
|
||||||
|
path: _test\.go
|
||||||
|
text: 'G108: Profiling endpoint is automatically exposed on /debug/pprof'
|
||||||
|
- linters:
|
||||||
|
- goconst
|
||||||
|
path: -params\.go
|
||||||
|
- linters:
|
||||||
|
- errcheck
|
||||||
|
text: Error return value of `debugLogger.Logf` is not checked
|
||||||
|
- linters:
|
||||||
|
- errcheck
|
||||||
|
- gochecknoglobals
|
||||||
|
path: opensearchtransport\/logger\.go
|
||||||
|
- linters:
|
||||||
|
- nestif
|
||||||
|
path: opensearchtransport/opensearchtransport.go
|
||||||
|
- linters:
|
||||||
|
- dupl
|
||||||
|
path: (-params\.go|api_indices|api_dangling\.go|api_point_in_time\.go|rethrottle\.go|api_cat-.*\.go|plugins/security/api_\w+.go|plugins/security/api_.*-patch.go)
|
||||||
|
paths:
|
||||||
|
- third_party$
|
||||||
|
- builtin$
|
||||||
|
- examples$
|
||||||
|
formatters:
|
||||||
|
enable:
|
||||||
|
- gci
|
||||||
|
- gofmt
|
||||||
|
- gofumpt
|
||||||
|
- goimports
|
||||||
|
settings:
|
||||||
|
gci:
|
||||||
|
sections:
|
||||||
|
- standard
|
||||||
|
- default
|
||||||
|
- prefix(github.com/opensearch-project/opensearch-go)
|
||||||
|
goimports:
|
||||||
|
local-prefixes:
|
||||||
|
- github.com/opensearch-project/opensearch-go
|
||||||
|
exclusions:
|
||||||
|
generated: lax
|
||||||
|
paths:
|
||||||
|
- third_party$
|
||||||
|
- builtin$
|
||||||
|
- examples$
|
||||||
|
|||||||
+37
-1
@@ -2,6 +2,41 @@
|
|||||||
|
|
||||||
Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
||||||
|
|
||||||
|
## [4.6.0]
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
- Bump `github.com/aws/aws-sdk-go-v2/config` from 1.29.14 to 1.32.5 ([#707](https://github.com/opensearch-project/opensearch-go/pull/707), [#711](https://github.com/opensearch-project/opensearch-go/pull/711), [#719](https://github.com/opensearch-project/opensearch-go/pull/719), [#730](https://github.com/opensearch-project/opensearch-go/pull/730), [#737](https://github.com/opensearch-project/opensearch-go/pull/737), [#761](https://github.com/opensearch-project/opensearch-go/pull/761))
|
||||||
|
- Bump `github.com/aws/aws-sdk-go-v2` from 1.36.4 to 1.41.0 ([#710](https://github.com/opensearch-project/opensearch-go/pull/710), [#720](https://github.com/opensearch-project/opensearch-go/pull/720), [#759](https://github.com/opensearch-project/opensearch-go/pull/759))
|
||||||
|
- Bump `github.com/stretchr/testify` from 1.10.0 to 1.11.1 ([#728](https://github.com/opensearch-project/opensearch-go/pull/728))
|
||||||
|
- Bump `github.com/aws/aws-sdk-go` from 1.55.7 to 1.55.8 ([#716](https://github.com/opensearch-project/opensearch-go/pull/716))
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Adds new fields for Opensearch 3.0 ([#702](https://github.com/opensearch-project/opensearch-go/pull/702))
|
||||||
|
- Allow users to override signing port ([#721](https://github.com/opensearch-project/opensearch-go/pull/721))
|
||||||
|
- Add `phase_took` features supported from OpenSearch 2.12 ([#722](https://github.com/opensearch-project/opensearch-go/pull/722))
|
||||||
|
- Adds the action to refresh the search analyzers to the ISM plugin ([#686](https://github.com/opensearch-project/opensearch-go/pull/686))
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Test against Opensearch 3.0 ([#702](https://github.com/opensearch-project/opensearch-go/pull/702))
|
||||||
|
- 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))
|
||||||
|
- Change MaxScore to pointer ([#740](https://github.com/opensearch-project/opensearch-go/pull/740))
|
||||||
|
- Update workflow action ([#760](https://github.com/opensearch-project/opensearch-go/pull/760))
|
||||||
|
- Migrate to golangci-lint v2 ([#760](https://github.com/opensearch-project/opensearch-go/pull/760))
|
||||||
|
|
||||||
|
### Deprecated
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Missing "caused by" information in StructError ([#752](https://github.com/opensearch-project/opensearch-go/pull/752))
|
||||||
|
- Add missing `ignore_unavailable`, `allow_no_indices`, and `expand_wildcards` params to MSearch ([#757](https://github.com/opensearch-project/opensearch-go/pull/757))
|
||||||
|
- Fix `UpdateResp` to correctly parse the `get` field when `_source` is requested in update operations. ([#739](https://github.com/opensearch-project/opensearch-go/pull/739))
|
||||||
|
|
||||||
|
### Security
|
||||||
|
|
||||||
## [4.5.0]
|
## [4.5.0]
|
||||||
|
|
||||||
### Dependencies
|
### Dependencies
|
||||||
@@ -290,7 +325,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))
|
- 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))
|
- 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))
|
- 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
|
### Fixed
|
||||||
|
|
||||||
@@ -329,6 +364,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|||||||
- Bumps `github.com/stretchr/testify` from 1.8.0 to 1.8.1
|
- Bumps `github.com/stretchr/testify` from 1.8.0 to 1.8.1
|
||||||
- Bumps `github.com/aws/aws-sdk-go` from 1.44.45 to 1.44.132
|
- Bumps `github.com/aws/aws-sdk-go` from 1.44.45 to 1.44.132
|
||||||
|
|
||||||
|
[4.6.0]: https://github.com/opensearch-project/opensearch-go/compare/v4.5.0...v4.6.0
|
||||||
[4.5.0]: https://github.com/opensearch-project/opensearch-go/compare/v4.4.0...v4.5.0
|
[4.5.0]: https://github.com/opensearch-project/opensearch-go/compare/v4.4.0...v4.5.0
|
||||||
[4.4.0]: https://github.com/opensearch-project/opensearch-go/compare/v4.3.0...v4.4.0
|
[4.4.0]: https://github.com/opensearch-project/opensearch-go/compare/v4.3.0...v4.4.0
|
||||||
[4.3.0]: https://github.com/opensearch-project/opensearch-go/compare/v4.2.0...v4.3.0
|
[4.3.0]: https://github.com/opensearch-project/opensearch-go/compare/v4.2.0...v4.3.0
|
||||||
|
|||||||
+2
@@ -9,6 +9,8 @@ The below matrix shows the compatibility of the [`opensearch-go`](https://pkg.go
|
|||||||
| -------------- | ------------------ |
|
| -------------- | ------------------ |
|
||||||
| 1.x.0 | 1.x |
|
| 1.x.0 | 1.x |
|
||||||
| 2.x.0 | 1.3.13-2.11.0 |
|
| 2.x.0 | 1.3.13-2.11.0 |
|
||||||
|
| 3.x.0 | 1.3.13-2.12.0 |
|
||||||
|
| 4.x.0 | 1.3.20-3.0.0 |
|
||||||
|
|
||||||
## Upgrading
|
## Upgrading
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -2,7 +2,7 @@
|
|||||||
- [Getting Started](#getting-started)
|
- [Getting Started](#getting-started)
|
||||||
- [Git Clone OpenSearch Go Client Repository](#git-clone-opensearch-go-client-repository)
|
- [Git Clone OpenSearch Go Client Repository](#git-clone-opensearch-go-client-repository)
|
||||||
- [Install Prerequisites](#install-prerequisites)
|
- [Install Prerequisites](#install-prerequisites)
|
||||||
- [Go 1.21](#go-121)
|
- [Go 1.24](#go-124)
|
||||||
- [Docker](#docker)
|
- [Docker](#docker)
|
||||||
- [Windows](#windows)
|
- [Windows](#windows)
|
||||||
- [Unit Testing](#unit-testing)
|
- [Unit Testing](#unit-testing)
|
||||||
@@ -29,9 +29,9 @@ Fork [opensearch-project/opensearch-go](https://github.com/opensearch-project/op
|
|||||||
|
|
||||||
### Install Prerequisites
|
### Install Prerequisites
|
||||||
|
|
||||||
#### Go 1.21
|
#### Go 1.24
|
||||||
|
|
||||||
OpenSearch Go Client builds using [Go](https://go.dev/doc/install) 1.21 at a minimum.
|
OpenSearch Go Client builds using [Go](https://go.dev/doc/install) 1.24 at a minimum.
|
||||||
|
|
||||||
#### Docker
|
#### Docker
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,6 @@ This document contains a list of maintainers in this repo. See [opensearch-proje
|
|||||||
|
|
||||||
| Maintainer | GitHub ID | Affiliation |
|
| Maintainer | GitHub ID | Affiliation |
|
||||||
| ----------------------- | ----------------------------------------- | ------------------- |
|
| ----------------------- | ----------------------------------------- | ------------------- |
|
||||||
| Daniel Doubrovkine | [dblock](https://github.com/dblock) | Independent |
|
|
||||||
| Jakob Hahn | [Jakob3xD](https://github.com/Jakob3xD) | Hetzner Online GmbH |
|
| Jakob Hahn | [Jakob3xD](https://github.com/Jakob3xD) | Hetzner Online GmbH |
|
||||||
| Vacha Shah | [VachaShah](https://github.com/VachaShah) | Amazon |
|
| Vacha Shah | [VachaShah](https://github.com/VachaShah) | Amazon |
|
||||||
| Vijayan Balasubramanian | [VijayanB](https://github.com/VijayanB) | Amazon |
|
| Vijayan Balasubramanian | [VijayanB](https://github.com/VijayanB) | Amazon |
|
||||||
@@ -15,6 +14,7 @@ This document contains a list of maintainers in this repo. See [opensearch-proje
|
|||||||
|
|
||||||
| Maintainer | GitHub ID | Affiliation |
|
| Maintainer | GitHub ID | Affiliation |
|
||||||
| ---------------------- | ------------------------------------------- | ----------- |
|
| ---------------------- | ------------------------------------------- | ----------- |
|
||||||
|
| Daniel Doubrovkine | [dblock](https://github.com/dblock) | Independent |
|
||||||
| Jack Mazanec | [jmazanec15](https://github.com/jmazanec15) | Amazon |
|
| Jack Mazanec | [jmazanec15](https://github.com/jmazanec15) | Amazon |
|
||||||
| Rob Cowart | [robcowart](https://github.com/robcowart) | ElastiFlow |
|
| Rob Cowart | [robcowart](https://github.com/robcowart) | ElastiFlow |
|
||||||
| Sven Cowart | [svencowart](https://github.com/svencowart) | |
|
| Sven Cowart | [svencowart](https://github.com/svencowart) | |
|
||||||
|
|||||||
+2
-4
@@ -80,9 +80,7 @@ build-coverage:
|
|||||||
|
|
||||||
##@ Development
|
##@ Development
|
||||||
lint: ## Run lint on the package
|
lint: ## Run lint on the package
|
||||||
@printf "\033[2m→ Running lint...\033[0m\n"
|
@make linters
|
||||||
go vet github.com/opensearch-project/opensearch-go/...
|
|
||||||
go list github.com/opensearch-project/opensearch-go/... | 'grep' -v internal | xargs golint -set_exit_status
|
|
||||||
|
|
||||||
package := "prettier"
|
package := "prettier"
|
||||||
lint.markdown:
|
lint.markdown:
|
||||||
@@ -229,7 +227,7 @@ cluster.clean: ## Remove unused Docker volumes and networks
|
|||||||
docker system prune --volumes --force
|
docker system prune --volumes --force
|
||||||
|
|
||||||
linters:
|
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/v2.7.2:/root/.cache -w /app golangci/golangci-lint:v2.7.2 golangci-lint run --timeout=5m -v
|
||||||
|
|
||||||
workflow: ## Run all github workflow commands here sequentially
|
workflow: ## Run all github workflow commands here sequentially
|
||||||
|
|
||||||
|
|||||||
+23
-1
@@ -75,10 +75,26 @@ type Err struct {
|
|||||||
RootCause []RootCause `json:"root_cause"`
|
RootCause []RootCause `json:"root_cause"`
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
Reason string `json:"reason"`
|
Reason string `json:"reason"`
|
||||||
|
CausedBy *CausedBy `json:"caused_by,omitempty"`
|
||||||
Index string `json:"index,omitempty"`
|
Index string `json:"index,omitempty"`
|
||||||
IndexUUID string `json:"index_uuid,omitempty"`
|
IndexUUID string `json:"index_uuid,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// CausedBy represents the optional caused_by of an API error response. Causes can be nested
|
||||||
|
type CausedBy struct {
|
||||||
|
Type string `json:"type"`
|
||||||
|
Reason string `json:"reason"`
|
||||||
|
CausedBy *CausedBy `json:"caused_by,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// String returns a string representation of CausedBy, handling nested structures
|
||||||
|
func (c *CausedBy) String() string {
|
||||||
|
if c.CausedBy == nil {
|
||||||
|
return fmt.Sprintf("{type: %s, reason: %s}", c.Type, c.Reason)
|
||||||
|
}
|
||||||
|
return fmt.Sprintf("{type: %s, reason: %s, caused_by: %s}", c.Type, c.Reason, c.CausedBy)
|
||||||
|
}
|
||||||
|
|
||||||
// RootCause represents the root_cause of an API error response
|
// RootCause represents the root_cause of an API error response
|
||||||
type RootCause struct {
|
type RootCause struct {
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
@@ -89,7 +105,13 @@ type RootCause struct {
|
|||||||
|
|
||||||
// Error returns a string
|
// Error returns a string
|
||||||
func (e StructError) Error() string {
|
func (e StructError) Error() string {
|
||||||
return fmt.Sprintf("status: %d, type: %s, reason: %s, root_cause: %s", e.Status, e.Err.Type, e.Err.Reason, e.Err.RootCause)
|
result := fmt.Sprintf("status: %d, type: %s, reason: %s, root_cause: %s", e.Status, e.Err.Type, e.Err.Reason, e.Err.RootCause)
|
||||||
|
|
||||||
|
if e.Err.CausedBy != nil {
|
||||||
|
result += fmt.Sprintf(", caused_by: %s", e.Err.CausedBy)
|
||||||
|
}
|
||||||
|
|
||||||
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalJSON is a custom unmarshal function for StructError returning custom errors in special cases
|
// UnmarshalJSON is a custom unmarshal function for StructError returning custom errors in special cases
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -27,4 +27,4 @@
|
|||||||
package version
|
package version
|
||||||
|
|
||||||
// Client returns the client version as a string.
|
// Client returns the client version as a string.
|
||||||
const Client = "4.5.0"
|
const Client = "4.6.0"
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -52,7 +52,7 @@ type AliasesResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r AliasesResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -103,7 +103,7 @@ type BulkRespItem struct {
|
|||||||
} `json:"error,omitempty"`
|
} `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 {
|
func (r BulkResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -55,7 +55,7 @@ type CatAliasResp struct {
|
|||||||
IsWriteIndex string `json:"is_write_index"`
|
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 {
|
func (r CatAliasesResp) Inspect() Inspect {
|
||||||
return Inspect{
|
return Inspect{
|
||||||
Response: r.response,
|
Response: r.response,
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -59,7 +59,7 @@ type CatAllocationResp struct {
|
|||||||
Node string `json:"node"`
|
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 {
|
func (r CatAllocationsResp) Inspect() Inspect {
|
||||||
return Inspect{
|
return Inspect{
|
||||||
Response: r.response,
|
Response: r.response,
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -43,7 +43,7 @@ type CatClusterManagerResp struct {
|
|||||||
Node string `json:"node"`
|
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 {
|
func (r CatClusterManagersResp) Inspect() Inspect {
|
||||||
return Inspect{
|
return Inspect{
|
||||||
Response: r.response,
|
Response: r.response,
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -52,7 +52,7 @@ type CatCountResp struct {
|
|||||||
Count int `json:"count,string"`
|
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 {
|
func (r CatCountsResp) Inspect() Inspect {
|
||||||
return Inspect{
|
return Inspect{
|
||||||
Response: r.response,
|
Response: r.response,
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -55,7 +55,7 @@ type CatFieldDataItemResp struct {
|
|||||||
Size string `json:"size"`
|
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 {
|
func (r CatFieldDataResp) Inspect() Inspect {
|
||||||
return Inspect{
|
return Inspect{
|
||||||
Response: r.response,
|
Response: r.response,
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -55,7 +55,7 @@ type CatHealthItemResp struct {
|
|||||||
ActiveShardsPercent string `json:"active_shards_percent"`
|
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 {
|
func (r CatHealthResp) Inspect() Inspect {
|
||||||
return Inspect{
|
return Inspect{
|
||||||
Response: r.response,
|
Response: r.response,
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -195,7 +195,7 @@ type CatIndexResp struct {
|
|||||||
SearchThrottled bool `json:"search.throttled,string"`
|
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 {
|
func (r CatIndicesResp) Inspect() Inspect {
|
||||||
return Inspect{
|
return Inspect{
|
||||||
Response: r.response,
|
Response: r.response,
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -43,7 +43,7 @@ type CatMasterItemResp struct {
|
|||||||
Node string `json:"node"`
|
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 {
|
func (r CatMasterResp) Inspect() Inspect {
|
||||||
return Inspect{
|
return Inspect{
|
||||||
Response: r.response,
|
Response: r.response,
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -47,7 +47,7 @@ type CatNodeAttrsItemResp struct {
|
|||||||
Value string `json:"value"`
|
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 {
|
func (r CatNodeAttrsResp) Inspect() Inspect {
|
||||||
return Inspect{
|
return Inspect{
|
||||||
Response: r.response,
|
Response: r.response,
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -138,7 +138,7 @@ type CatNodesItemResp struct {
|
|||||||
SuggestTotal *int `json:"suggest.total,string"`
|
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 {
|
func (r CatNodesResp) Inspect() Inspect {
|
||||||
return Inspect{
|
return Inspect{
|
||||||
Response: r.response,
|
Response: r.response,
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -43,7 +43,7 @@ type CatPendingTaskResp struct {
|
|||||||
Source string `json:"source"`
|
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 {
|
func (r CatPendingTasksResp) Inspect() Inspect {
|
||||||
return Inspect{
|
return Inspect{
|
||||||
Response: r.response,
|
Response: r.response,
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -44,7 +44,7 @@ type CatPluginResp struct {
|
|||||||
Description string `json:"description,omitempty"`
|
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 {
|
func (r CatPluginsResp) Inspect() Inspect {
|
||||||
return Inspect{
|
return Inspect{
|
||||||
Response: r.response,
|
Response: r.response,
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -75,7 +75,7 @@ type CatRecoveryItemResp struct {
|
|||||||
TranslogOpsPercent string `json:"translog_ops_percent"`
|
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 {
|
func (r CatRecoveryResp) Inspect() Inspect {
|
||||||
return Inspect{
|
return Inspect{
|
||||||
Response: r.response,
|
Response: r.response,
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -41,7 +41,7 @@ type CatRepositorieResp struct {
|
|||||||
Type string `json:"type"`
|
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 {
|
func (r CatRepositoriesResp) Inspect() Inspect {
|
||||||
return Inspect{
|
return Inspect{
|
||||||
Response: r.response,
|
Response: r.response,
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -64,7 +64,7 @@ type CatSegmentResp struct {
|
|||||||
Compound bool `json:"compound,string"`
|
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 {
|
func (r CatSegmentsResp) Inspect() Inspect {
|
||||||
return Inspect{
|
return Inspect{
|
||||||
Response: r.response,
|
Response: r.response,
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -129,7 +129,7 @@ type CatShardResp struct {
|
|||||||
DocsDeleted *int `json:"docs.deleted,string"`
|
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 {
|
func (r CatShardsResp) Inspect() Inspect {
|
||||||
return Inspect{
|
return Inspect{
|
||||||
Response: r.response,
|
Response: r.response,
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -53,7 +53,7 @@ type CatSnapshotResp struct {
|
|||||||
Reason string `json:"reason"`
|
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 {
|
func (r CatSnapshotsResp) Inspect() Inspect {
|
||||||
return Inspect{
|
return Inspect{
|
||||||
Response: r.response,
|
Response: r.response,
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -54,7 +54,7 @@ type CatTaskResp struct {
|
|||||||
XOpaqueID string `json:"x_opaque_id"`
|
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 {
|
func (r CatTasksResp) Inspect() Inspect {
|
||||||
return Inspect{
|
return Inspect{
|
||||||
Response: r.response,
|
Response: r.response,
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -54,7 +54,7 @@ type CatTemplateResp struct {
|
|||||||
ComposedOf string `json:"composed_of"`
|
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 {
|
func (r CatTemplatesResp) Inspect() Inspect {
|
||||||
return Inspect{
|
return Inspect{
|
||||||
Response: r.response,
|
Response: r.response,
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -70,7 +70,7 @@ type CatThreadPoolItemResp struct {
|
|||||||
TotalWaitTime string `json:"total_wait_time"`
|
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 {
|
func (r CatThreadPoolResp) Inspect() Inspect {
|
||||||
return Inspect{
|
return Inspect{
|
||||||
Response: r.response,
|
Response: r.response,
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -74,7 +74,7 @@ type ClusterAllocationExplainResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r ClusterAllocationExplainResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+3
-3
@@ -46,7 +46,7 @@ type ClusterPutDecommissionResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r ClusterPutDecommissionResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
@@ -74,7 +74,7 @@ type ClusterDeleteDecommissionResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r ClusterDeleteDecommissionResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
@@ -110,7 +110,7 @@ type ClusterGetDecommissionResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r ClusterGetDecommissionResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -63,7 +63,7 @@ type ClusterHealthResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r ClusterHealthResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -35,7 +35,7 @@ type ClusterPendingTasksResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r ClusterPendingTasksResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -35,7 +35,7 @@ type ClusterRemoteInfoResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r ClusterRemoteInfoResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -40,7 +40,7 @@ type ClusterRerouteResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r ClusterRerouteResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+2
-2
@@ -39,7 +39,7 @@ type ClusterGetSettingsResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r ClusterGetSettingsResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
@@ -70,7 +70,7 @@ type ClusterPutSettingsResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r ClusterPutSettingsResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+2
-1
@@ -83,7 +83,7 @@ type ClusterStateResp struct {
|
|||||||
} `json:"restore"`
|
} `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 {
|
func (r ClusterStateResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
@@ -194,6 +194,7 @@ type ClusterStateMetaDataStream struct {
|
|||||||
type ClusterStateRoutingIndex struct {
|
type ClusterStateRoutingIndex struct {
|
||||||
State string `json:"state"`
|
State string `json:"state"`
|
||||||
Primary bool `json:"primary"`
|
Primary bool `json:"primary"`
|
||||||
|
SearchOnly bool `json:"searchOnly"`
|
||||||
Node *string `json:"node"`
|
Node *string `json:"node"`
|
||||||
RelocatingNode *string `json:"relocating_node"`
|
RelocatingNode *string `json:"relocating_node"`
|
||||||
Shard int `json:"shard"`
|
Shard int `json:"shard"`
|
||||||
|
|||||||
Generated
Vendored
+2
-1
@@ -60,7 +60,7 @@ type ClusterStatsResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r ClusterStatsResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
@@ -194,6 +194,7 @@ type ClusterStatsNodes struct {
|
|||||||
Master int `json:"master"`
|
Master int `json:"master"`
|
||||||
RemoteClusterClient int `json:"remote_cluster_client"`
|
RemoteClusterClient int `json:"remote_cluster_client"`
|
||||||
Search int `json:"search"`
|
Search int `json:"search"`
|
||||||
|
Warm int `json:"warm"`
|
||||||
} `json:"count"`
|
} `json:"count"`
|
||||||
Versions []string `json:"versions"`
|
Versions []string `json:"versions"`
|
||||||
Os struct {
|
Os struct {
|
||||||
|
|||||||
vendor/github.com/opensearch-project/opensearch-go/v4/opensearchapi/api_component_template-create.go
Generated
Vendored
+1
-1
@@ -41,7 +41,7 @@ type ComponentTemplateCreateResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r ComponentTemplateCreateResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
vendor/github.com/opensearch-project/opensearch-go/v4/opensearchapi/api_component_template-delete.go
Generated
Vendored
+1
-1
@@ -38,7 +38,7 @@ type ComponentTemplateDeleteResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r ComponentTemplateDeleteResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -47,7 +47,7 @@ type ComponentTemplateGetResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r ComponentTemplateGetResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -38,7 +38,7 @@ type DanglingDeleteResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r DanglingDeleteResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -55,7 +55,7 @@ type DanglingGetResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r DanglingGetResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -38,7 +38,7 @@ type DanglingImportResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r DanglingImportResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -38,7 +38,7 @@ type DataStreamCreateResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r DataStreamCreateResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -38,7 +38,7 @@ type DataStreamDeleteResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r DataStreamDeleteResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -48,7 +48,7 @@ type DataStreamGetResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r DataStreamGetResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -63,7 +63,7 @@ type DataStreamStatsResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r DataStreamStatsResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -60,7 +60,7 @@ type DocumentCreateResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r DocumentCreateResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -56,7 +56,7 @@ type DocumentDeleteResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r DocumentDeleteResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -58,7 +58,7 @@ type DocumentDeleteByQueryResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r DocumentDeleteByQueryResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -91,7 +91,7 @@ type DocumentDeleteByQueryRethrottleResourceInfo struct {
|
|||||||
MemoryInBytes int `json:"memory_in_bytes"`
|
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 {
|
func (r DocumentDeleteByQueryRethrottleResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -46,7 +46,7 @@ type DocumentExplainResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r DocumentExplainResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -48,7 +48,7 @@ type DocumentGetResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r DocumentGetResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -40,7 +40,7 @@ type DocumentSourceResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r DocumentSourceResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -75,7 +75,7 @@ type IndexResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndexResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -41,7 +41,7 @@ type IndexTemplateCreateResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndexTemplateCreateResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -38,7 +38,7 @@ type IndexTemplateDeleteResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndexTemplateDeleteResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -40,7 +40,7 @@ type IndexTemplateGetResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndexTemplateGetResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -50,7 +50,7 @@ type IndexTemplateSimulateResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndexTemplateSimulateResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -50,7 +50,7 @@ type IndexTemplateSimulateIndexResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndexTemplateSimulateIndexResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+3
-3
@@ -98,7 +98,7 @@ type AliasDeleteResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r AliasDeleteResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
@@ -140,7 +140,7 @@ type AliasGetResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r AliasGetResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
@@ -179,7 +179,7 @@ type AliasPutResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r AliasPutResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -73,7 +73,7 @@ type IndicesAnalyzeResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndicesAnalyzeResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -56,7 +56,7 @@ type IndicesBlockResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndicesBlockResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -53,7 +53,7 @@ type IndicesClearCacheResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndicesClearCacheResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -44,7 +44,7 @@ type IndicesCloneResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndicesCloneResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -45,7 +45,7 @@ type IndicesCloseResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndicesCloseResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -56,7 +56,7 @@ type IndicesCountResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndicesCountResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -41,7 +41,7 @@ type IndicesCreateResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndicesCreateResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -38,7 +38,7 @@ type IndicesDeleteResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndicesDeleteResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -56,7 +56,7 @@ type IndicesFieldCapsResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndicesFieldCapsResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -52,7 +52,7 @@ type IndicesFlushResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndicesFlushResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -52,7 +52,7 @@ type IndicesForcemergeResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndicesForcemergeResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -45,7 +45,7 @@ type IndicesGetResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndicesGetResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+3
-3
@@ -103,7 +103,7 @@ type MappingGetResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r MappingGetResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
@@ -142,7 +142,7 @@ type MappingPutResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r MappingPutResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
@@ -186,7 +186,7 @@ type MappingFieldResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r MappingFieldResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -39,7 +39,7 @@ type IndicesOpenResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndicesOpenResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -87,7 +87,7 @@ type IndicesRecoveryResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndicesRecoveryResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -51,7 +51,7 @@ type IndicesRefreshResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndicesRefreshResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -52,7 +52,7 @@ type IndicesResolveResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndicesResolveResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -57,7 +57,7 @@ type IndicesRolloverResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndicesRolloverResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -55,7 +55,7 @@ type IndicesSegmentsResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndicesSegmentsResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+2
-2
@@ -91,7 +91,7 @@ type SettingsGetResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r SettingsGetResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
@@ -130,7 +130,7 @@ type SettingsPutResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r SettingsPutResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -53,7 +53,7 @@ type IndicesShardStoresResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndicesShardStoresResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -44,7 +44,7 @@ type IndicesShrinkResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndicesShrinkResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -44,7 +44,7 @@ type IndicesSplitResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndicesSplitResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -56,7 +56,7 @@ type IndicesStatsResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndicesStatsResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -64,7 +64,7 @@ type IndicesValidateQueryResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IndicesValidateQueryResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -67,7 +67,7 @@ type InfoResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r InfoResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -41,7 +41,7 @@ type IngestCreateResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IngestCreateResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -38,7 +38,7 @@ type IngestDeleteResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IngestDeleteResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -43,7 +43,7 @@ type IngestGetResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IngestGetResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -35,7 +35,7 @@ type IngestGrokResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IngestGrokResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -50,7 +50,7 @@ type IngestSimulateResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r IngestSimulateResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -72,7 +72,7 @@ type MGetResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r MGetResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+15
@@ -33,7 +33,10 @@ import (
|
|||||||
|
|
||||||
// MSearchParams represents possible parameters for the MSearchReq
|
// MSearchParams represents possible parameters for the MSearchReq
|
||||||
type MSearchParams struct {
|
type MSearchParams struct {
|
||||||
|
AllowNoIndices *bool
|
||||||
CcsMinimizeRoundtrips *bool
|
CcsMinimizeRoundtrips *bool
|
||||||
|
ExpandWildcards string
|
||||||
|
IgnoreUnavailable *bool
|
||||||
MaxConcurrentSearches *int
|
MaxConcurrentSearches *int
|
||||||
MaxConcurrentShardRequests *int
|
MaxConcurrentShardRequests *int
|
||||||
PreFilterShardSize *int
|
PreFilterShardSize *int
|
||||||
@@ -50,10 +53,22 @@ type MSearchParams struct {
|
|||||||
func (r MSearchParams) get() map[string]string {
|
func (r MSearchParams) get() map[string]string {
|
||||||
params := make(map[string]string)
|
params := make(map[string]string)
|
||||||
|
|
||||||
|
if r.AllowNoIndices != nil {
|
||||||
|
params["allow_no_indices"] = strconv.FormatBool(*r.AllowNoIndices)
|
||||||
|
}
|
||||||
|
|
||||||
if r.CcsMinimizeRoundtrips != nil {
|
if r.CcsMinimizeRoundtrips != nil {
|
||||||
params["ccs_minimize_roundtrips"] = strconv.FormatBool(*r.CcsMinimizeRoundtrips)
|
params["ccs_minimize_roundtrips"] = strconv.FormatBool(*r.CcsMinimizeRoundtrips)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if r.ExpandWildcards != "" {
|
||||||
|
params["expand_wildcards"] = r.ExpandWildcards
|
||||||
|
}
|
||||||
|
|
||||||
|
if r.IgnoreUnavailable != nil {
|
||||||
|
params["ignore_unavailable"] = strconv.FormatBool(*r.IgnoreUnavailable)
|
||||||
|
}
|
||||||
|
|
||||||
if r.MaxConcurrentSearches != nil {
|
if r.MaxConcurrentSearches != nil {
|
||||||
params["max_concurrent_searches"] = strconv.FormatInt(int64(*r.MaxConcurrentSearches), 10)
|
params["max_concurrent_searches"] = strconv.FormatInt(int64(*r.MaxConcurrentSearches), 10)
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+15
@@ -33,7 +33,10 @@ import (
|
|||||||
|
|
||||||
// MSearchTemplateParams represents possible parameters for the MSearchTemplateReq
|
// MSearchTemplateParams represents possible parameters for the MSearchTemplateReq
|
||||||
type MSearchTemplateParams struct {
|
type MSearchTemplateParams struct {
|
||||||
|
AllowNoIndices *bool
|
||||||
CcsMinimizeRoundtrips *bool
|
CcsMinimizeRoundtrips *bool
|
||||||
|
ExpandWildcards string
|
||||||
|
IgnoreUnavailable *bool
|
||||||
MaxConcurrentSearches *int
|
MaxConcurrentSearches *int
|
||||||
RestTotalHitsAsInt *bool
|
RestTotalHitsAsInt *bool
|
||||||
SearchType string
|
SearchType string
|
||||||
@@ -48,10 +51,22 @@ type MSearchTemplateParams struct {
|
|||||||
func (r MSearchTemplateParams) get() map[string]string {
|
func (r MSearchTemplateParams) get() map[string]string {
|
||||||
params := make(map[string]string)
|
params := make(map[string]string)
|
||||||
|
|
||||||
|
if r.AllowNoIndices != nil {
|
||||||
|
params["allow_no_indices"] = strconv.FormatBool(*r.AllowNoIndices)
|
||||||
|
}
|
||||||
|
|
||||||
if r.CcsMinimizeRoundtrips != nil {
|
if r.CcsMinimizeRoundtrips != nil {
|
||||||
params["ccs_minimize_roundtrips"] = strconv.FormatBool(*r.CcsMinimizeRoundtrips)
|
params["ccs_minimize_roundtrips"] = strconv.FormatBool(*r.CcsMinimizeRoundtrips)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if r.ExpandWildcards != "" {
|
||||||
|
params["expand_wildcards"] = r.ExpandWildcards
|
||||||
|
}
|
||||||
|
|
||||||
|
if r.IgnoreUnavailable != nil {
|
||||||
|
params["ignore_unavailable"] = strconv.FormatBool(*r.IgnoreUnavailable)
|
||||||
|
}
|
||||||
|
|
||||||
if r.MaxConcurrentSearches != nil {
|
if r.MaxConcurrentSearches != nil {
|
||||||
params["max_concurrent_searches"] = strconv.FormatInt(int64(*r.MaxConcurrentSearches), 10)
|
params["max_concurrent_searches"] = strconv.FormatInt(int64(*r.MaxConcurrentSearches), 10)
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
Vendored
+1
-1
@@ -77,7 +77,7 @@ type MSearchTemplateResp struct {
|
|||||||
response *opensearch.Response
|
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 {
|
func (r MSearchTemplateResp) Inspect() Inspect {
|
||||||
return Inspect{Response: r.response}
|
return Inspect{Response: r.response}
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user