mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-23 22:29:59 -05:00
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:
2
go.mod
2
go.mod
@@ -65,7 +65,7 @@ require (
|
||||
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/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/pkg/errors v0.9.1
|
||||
github.com/pkg/xattr v0.4.12
|
||||
|
||||
4
go.sum
4
go.sum
@@ -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/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJwooC2xJA040=
|
||||
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.5.0/go.mod h1:VmFc7dqOEM3ZtLhrpleOzeq+cqUgNabqQG5gX0xId64=
|
||||
github.com/opensearch-project/opensearch-go/v4 v4.6.0 h1:Ac8aLtDSmLEyOmv0r1qhQLw3b4vcUhE42NE9k+Z4cRc=
|
||||
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.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs=
|
||||
github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc=
|
||||
|
||||
214
vendor/github.com/opensearch-project/opensearch-go/v4/.golangci.yml
generated
vendored
214
vendor/github.com/opensearch-project/opensearch-go/v4/.golangci.yml
generated
vendored
@@ -1,59 +1,8 @@
|
||||
version: "2"
|
||||
run:
|
||||
timeout: 10m
|
||||
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:
|
||||
disable-all: true
|
||||
default: none
|
||||
enable:
|
||||
- asasalint
|
||||
- asciicheck
|
||||
@@ -70,10 +19,7 @@ linters:
|
||||
- errchkjson
|
||||
- errname
|
||||
- errorlint
|
||||
- execinquery
|
||||
- exhaustive
|
||||
- exportloopref
|
||||
- gci
|
||||
- ginkgolinter
|
||||
- gocheckcompilerdirectives
|
||||
- gochecknoglobals
|
||||
@@ -81,15 +27,11 @@ linters:
|
||||
- goconst
|
||||
- gocritic
|
||||
- godox
|
||||
- gofmt
|
||||
- gofumpt
|
||||
- goheader
|
||||
- goimports
|
||||
- gomoddirectives
|
||||
- gomodguard
|
||||
- goprintffuncname
|
||||
- gosec
|
||||
- gosimple
|
||||
- govet
|
||||
- grouper
|
||||
- importas
|
||||
@@ -117,12 +59,10 @@ linters:
|
||||
- rowserrcheck
|
||||
- sqlclosecheck
|
||||
- staticcheck
|
||||
- stylecheck
|
||||
- tagalign
|
||||
- testpackage
|
||||
- thelper
|
||||
- tparallel
|
||||
- typecheck
|
||||
- unconvert
|
||||
- unparam
|
||||
- unused
|
||||
@@ -130,46 +70,110 @@ linters:
|
||||
- wastedassign
|
||||
- whitespace
|
||||
- zerologlint
|
||||
|
||||
issues:
|
||||
include:
|
||||
- EXC0012
|
||||
- EXC0014
|
||||
exclude-rules:
|
||||
- path: (_test\.go|internal/)
|
||||
linters:
|
||||
- cyclop
|
||||
- dupl
|
||||
- errcheck
|
||||
- gochecknoglobals
|
||||
- gochecknoinits
|
||||
- goconst
|
||||
- noctx
|
||||
- linters:
|
||||
- gosec
|
||||
text: "math/rand"
|
||||
path: _test\.go
|
||||
- linters:
|
||||
- gosec
|
||||
text: "TLS InsecureSkipVerify set true"
|
||||
path: (_test\.go|internal/)
|
||||
- linters:
|
||||
- gosec
|
||||
text: "G108: Profiling endpoint is automatically exposed on /debug/pprof"
|
||||
path: _test\.go
|
||||
- linters:
|
||||
- goconst
|
||||
path: opensearchapi\/api_
|
||||
- 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)
|
||||
settings:
|
||||
errcheck:
|
||||
check-type-assertions: false
|
||||
check-blank: true
|
||||
exhaustive:
|
||||
default-signifies-exhaustive: false
|
||||
goconst:
|
||||
min-len: 3
|
||||
min-occurrences: 3
|
||||
godox:
|
||||
keywords:
|
||||
- BUG
|
||||
- FIXME
|
||||
- HACK
|
||||
lll:
|
||||
line-length: 140
|
||||
misspell:
|
||||
locale: US
|
||||
ignore-rules:
|
||||
- expect
|
||||
- cancelled
|
||||
nolintlint:
|
||||
require-explanation: true
|
||||
require-specific: true
|
||||
prealloc:
|
||||
simple: true
|
||||
range-loops: true
|
||||
for-loops: false
|
||||
revive:
|
||||
rules:
|
||||
- name: exported
|
||||
arguments:
|
||||
- checkPrivateReceivers
|
||||
- sayRepetitiveInsteadOfStutters
|
||||
severity: error
|
||||
disabled: false
|
||||
unparam:
|
||||
check-exported: true
|
||||
exclusions:
|
||||
generated: lax
|
||||
presets:
|
||||
- common-false-positives
|
||||
- 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$
|
||||
|
||||
38
vendor/github.com/opensearch-project/opensearch-go/v4/CHANGELOG.md
generated
vendored
38
vendor/github.com/opensearch-project/opensearch-go/v4/CHANGELOG.md
generated
vendored
@@ -2,6 +2,41 @@
|
||||
|
||||
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]
|
||||
|
||||
### 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))
|
||||
- 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
|
||||
|
||||
@@ -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/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.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
|
||||
|
||||
2
vendor/github.com/opensearch-project/opensearch-go/v4/COMPATIBILITY.md
generated
vendored
2
vendor/github.com/opensearch-project/opensearch-go/v4/COMPATIBILITY.md
generated
vendored
@@ -9,6 +9,8 @@ The below matrix shows the compatibility of the [`opensearch-go`](https://pkg.go
|
||||
| -------------- | ------------------ |
|
||||
| 1.x.0 | 1.x |
|
||||
| 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
|
||||
|
||||
|
||||
6
vendor/github.com/opensearch-project/opensearch-go/v4/DEVELOPER_GUIDE.md
generated
vendored
6
vendor/github.com/opensearch-project/opensearch-go/v4/DEVELOPER_GUIDE.md
generated
vendored
@@ -2,7 +2,7 @@
|
||||
- [Getting Started](#getting-started)
|
||||
- [Git Clone OpenSearch Go Client Repository](#git-clone-opensearch-go-client-repository)
|
||||
- [Install Prerequisites](#install-prerequisites)
|
||||
- [Go 1.21](#go-121)
|
||||
- [Go 1.24](#go-124)
|
||||
- [Docker](#docker)
|
||||
- [Windows](#windows)
|
||||
- [Unit Testing](#unit-testing)
|
||||
@@ -29,9 +29,9 @@ Fork [opensearch-project/opensearch-go](https://github.com/opensearch-project/op
|
||||
|
||||
### 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
|
||||
|
||||
|
||||
2
vendor/github.com/opensearch-project/opensearch-go/v4/MAINTAINERS.md
generated
vendored
2
vendor/github.com/opensearch-project/opensearch-go/v4/MAINTAINERS.md
generated
vendored
@@ -6,7 +6,6 @@ This document contains a list of maintainers in this repo. See [opensearch-proje
|
||||
|
||||
| Maintainer | GitHub ID | Affiliation |
|
||||
| ----------------------- | ----------------------------------------- | ------------------- |
|
||||
| Daniel Doubrovkine | [dblock](https://github.com/dblock) | Independent |
|
||||
| Jakob Hahn | [Jakob3xD](https://github.com/Jakob3xD) | Hetzner Online GmbH |
|
||||
| Vacha Shah | [VachaShah](https://github.com/VachaShah) | 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 |
|
||||
| ---------------------- | ------------------------------------------- | ----------- |
|
||||
| Daniel Doubrovkine | [dblock](https://github.com/dblock) | Independent |
|
||||
| Jack Mazanec | [jmazanec15](https://github.com/jmazanec15) | Amazon |
|
||||
| Rob Cowart | [robcowart](https://github.com/robcowart) | ElastiFlow |
|
||||
| Sven Cowart | [svencowart](https://github.com/svencowart) | |
|
||||
|
||||
6
vendor/github.com/opensearch-project/opensearch-go/v4/Makefile
generated
vendored
6
vendor/github.com/opensearch-project/opensearch-go/v4/Makefile
generated
vendored
@@ -80,9 +80,7 @@ build-coverage:
|
||||
|
||||
##@ Development
|
||||
lint: ## Run lint on the package
|
||||
@printf "\033[2m→ Running lint...\033[0m\n"
|
||||
go vet github.com/opensearch-project/opensearch-go/...
|
||||
go list github.com/opensearch-project/opensearch-go/... | 'grep' -v internal | xargs golint -set_exit_status
|
||||
@make linters
|
||||
|
||||
package := "prettier"
|
||||
lint.markdown:
|
||||
@@ -229,7 +227,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/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
|
||||
|
||||
|
||||
24
vendor/github.com/opensearch-project/opensearch-go/v4/error.go
generated
vendored
24
vendor/github.com/opensearch-project/opensearch-go/v4/error.go
generated
vendored
@@ -75,10 +75,26 @@ type Err struct {
|
||||
RootCause []RootCause `json:"root_cause"`
|
||||
Type string `json:"type"`
|
||||
Reason string `json:"reason"`
|
||||
CausedBy *CausedBy `json:"caused_by,omitempty"`
|
||||
Index string `json:"index,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
|
||||
type RootCause struct {
|
||||
Type string `json:"type"`
|
||||
@@ -89,7 +105,13 @@ type RootCause struct {
|
||||
|
||||
// Error returns a 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
|
||||
|
||||
2
vendor/github.com/opensearch-project/opensearch-go/v4/internal/version/version.go
generated
vendored
2
vendor/github.com/opensearch-project/opensearch-go/v4/internal/version/version.go
generated
vendored
@@ -27,4 +27,4 @@
|
||||
package version
|
||||
|
||||
// Client returns the client version as a string.
|
||||
const Client = "4.5.0"
|
||||
const Client = "4.6.0"
|
||||
|
||||
2
vendor/github.com/opensearch-project/opensearch-go/v4/opensearchapi/api_aliases.go
generated
vendored
2
vendor/github.com/opensearch-project/opensearch-go/v4/opensearchapi/api_aliases.go
generated
vendored
@@ -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}
|
||||
}
|
||||
|
||||
2
vendor/github.com/opensearch-project/opensearch-go/v4/opensearchapi/api_bulk.go
generated
vendored
2
vendor/github.com/opensearch-project/opensearch-go/v4/opensearchapi/api_bulk.go
generated
vendored
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
2
vendor/github.com/opensearch-project/opensearch-go/v4/opensearchapi/api_cat-count.go
generated
vendored
2
vendor/github.com/opensearch-project/opensearch-go/v4/opensearchapi/api_cat-count.go
generated
vendored
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
2
vendor/github.com/opensearch-project/opensearch-go/v4/opensearchapi/api_cat-nodes.go
generated
vendored
2
vendor/github.com/opensearch-project/opensearch-go/v4/opensearchapi/api_cat-nodes.go
generated
vendored
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
2
vendor/github.com/opensearch-project/opensearch-go/v4/opensearchapi/api_cat-tasks.go
generated
vendored
2
vendor/github.com/opensearch-project/opensearch-go/v4/opensearchapi/api_cat-tasks.go
generated
vendored
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
@@ -194,6 +194,7 @@ type ClusterStateMetaDataStream struct {
|
||||
type ClusterStateRoutingIndex struct {
|
||||
State string `json:"state"`
|
||||
Primary bool `json:"primary"`
|
||||
SearchOnly bool `json:"searchOnly"`
|
||||
Node *string `json:"node"`
|
||||
RelocatingNode *string `json:"relocating_node"`
|
||||
Shard int `json:"shard"`
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
@@ -194,6 +194,7 @@ type ClusterStatsNodes struct {
|
||||
Master int `json:"master"`
|
||||
RemoteClusterClient int `json:"remote_cluster_client"`
|
||||
Search int `json:"search"`
|
||||
Warm int `json:"warm"`
|
||||
} `json:"count"`
|
||||
Versions []string `json:"versions"`
|
||||
Os struct {
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
2
vendor/github.com/opensearch-project/opensearch-go/v4/opensearchapi/api_index.go
generated
vendored
2
vendor/github.com/opensearch-project/opensearch-go/v4/opensearchapi/api_index.go
generated
vendored
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
2
vendor/github.com/opensearch-project/opensearch-go/v4/opensearchapi/api_info.go
generated
vendored
2
vendor/github.com/opensearch-project/opensearch-go/v4/opensearchapi/api_info.go
generated
vendored
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
2
vendor/github.com/opensearch-project/opensearch-go/v4/opensearchapi/api_mget.go
generated
vendored
2
vendor/github.com/opensearch-project/opensearch-go/v4/opensearchapi/api_mget.go
generated
vendored
@@ -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}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,10 @@ import (
|
||||
|
||||
// MSearchParams represents possible parameters for the MSearchReq
|
||||
type MSearchParams struct {
|
||||
AllowNoIndices *bool
|
||||
CcsMinimizeRoundtrips *bool
|
||||
ExpandWildcards string
|
||||
IgnoreUnavailable *bool
|
||||
MaxConcurrentSearches *int
|
||||
MaxConcurrentShardRequests *int
|
||||
PreFilterShardSize *int
|
||||
@@ -50,10 +53,22 @@ type MSearchParams struct {
|
||||
func (r MSearchParams) get() map[string]string {
|
||||
params := make(map[string]string)
|
||||
|
||||
if r.AllowNoIndices != nil {
|
||||
params["allow_no_indices"] = strconv.FormatBool(*r.AllowNoIndices)
|
||||
}
|
||||
|
||||
if r.CcsMinimizeRoundtrips != nil {
|
||||
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 {
|
||||
params["max_concurrent_searches"] = strconv.FormatInt(int64(*r.MaxConcurrentSearches), 10)
|
||||
}
|
||||
|
||||
@@ -33,7 +33,10 @@ import (
|
||||
|
||||
// MSearchTemplateParams represents possible parameters for the MSearchTemplateReq
|
||||
type MSearchTemplateParams struct {
|
||||
AllowNoIndices *bool
|
||||
CcsMinimizeRoundtrips *bool
|
||||
ExpandWildcards string
|
||||
IgnoreUnavailable *bool
|
||||
MaxConcurrentSearches *int
|
||||
RestTotalHitsAsInt *bool
|
||||
SearchType string
|
||||
@@ -48,10 +51,22 @@ type MSearchTemplateParams struct {
|
||||
func (r MSearchTemplateParams) get() map[string]string {
|
||||
params := make(map[string]string)
|
||||
|
||||
if r.AllowNoIndices != nil {
|
||||
params["allow_no_indices"] = strconv.FormatBool(*r.AllowNoIndices)
|
||||
}
|
||||
|
||||
if r.CcsMinimizeRoundtrips != nil {
|
||||
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 {
|
||||
params["max_concurrent_searches"] = strconv.FormatInt(int64(*r.MaxConcurrentSearches), 10)
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user