intergrate opensearch v1 (#5135)
opensearchv1 Signed-off-by: chengdehao <dehaocheng@kubesphere.io> Signed-off-by: chengdehao <dehaocheng@kubesphere.io> Co-authored-by: chengdehao <dehaocheng@kubesphere.io>
This commit is contained in:
59
vendor/github.com/opensearch-project/opensearch-go/opensearchtransport/doc.go
generated
vendored
Normal file
59
vendor/github.com/opensearch-project/opensearch-go/opensearchtransport/doc.go
generated
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// The OpenSearch Contributors require contributions made to
|
||||
// this file be licensed under the Apache-2.0 license or a
|
||||
// compatible open source license.
|
||||
//
|
||||
// Modifications Copyright OpenSearch Contributors. See
|
||||
// GitHub history for details.
|
||||
|
||||
// Licensed to Elasticsearch B.V. under one or more contributor
|
||||
// license agreements. See the NOTICE file distributed with
|
||||
// this work for additional information regarding copyright
|
||||
// ownership. Elasticsearch B.V. licenses this file to you under
|
||||
// the Apache License, Version 2.0 (the "License"); you may
|
||||
// not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing,
|
||||
// software distributed under the License is distributed on an
|
||||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
// KIND, either express or implied. See the License for the
|
||||
// specific language governing permissions and limitations
|
||||
// under the License.
|
||||
|
||||
/*
|
||||
Package opensearchtransport provides the transport layer for the OpenSearch client.
|
||||
|
||||
It is automatically included in the client provided by the github.com/opensearch-project/opensearch-go package
|
||||
and is not intended for direct use: to configure the client, use the opensearch.Config struct.
|
||||
|
||||
The default HTTP transport of the client is http.Transport; use the Transport option to customize it;
|
||||
|
||||
The package will automatically retry requests on network-related errors, and on specific
|
||||
response status codes (by default 502, 503, 504). Use the RetryOnStatus option to customize the list.
|
||||
The transport will not retry a timeout network error, unless enabled by setting EnableRetryOnTimeout to true.
|
||||
|
||||
Use the MaxRetries option to configure the number of retries, and set DisableRetry to true
|
||||
to disable the retry behaviour altogether.
|
||||
|
||||
By default, the retry will be performed without any delay; to configure a backoff interval,
|
||||
implement the RetryBackoff option function; see an example in the package unit tests for information.
|
||||
|
||||
When multiple addresses are passed in configuration, the package will use them in a round-robin fashion,
|
||||
and will keep track of live and dead nodes. The status of dead nodes is checked periodically.
|
||||
|
||||
To customize the node selection behaviour, provide a Selector implementation in the configuration.
|
||||
To replace the connection pool entirely, provide a custom ConnectionPool implementation via
|
||||
the ConnectionPoolFunc option.
|
||||
|
||||
The package defines the Logger interface for logging information about request and response.
|
||||
It comes with several bundled loggers for logging in text and JSON.
|
||||
|
||||
Use the EnableDebugLogger option to enable the debugging logger for connection management.
|
||||
|
||||
Use the EnableMetrics option to enable metric collection and export.
|
||||
*/
|
||||
package opensearchtransport
|
||||
Reference in New Issue
Block a user