mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-24 07:10:20 +00:00
171ba6a65d
Bumps the github-dependencies group with 8 updates in the / directory: | Package | From | To | | --- | --- | --- | | [github.com/IBM/keyprotect-go-client](https://github.com/IBM/keyprotect-go-client) | `0.12.2` | `0.14.1` | | [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) | `1.53.14` | `1.54.6` | | [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2) | `1.28.1` | `1.29.1` | | [github.com/hashicorp/vault/api](https://github.com/hashicorp/vault) | `1.12.0` | `1.14.0` | | [github.com/kubernetes-csi/csi-lib-utils](https://github.com/kubernetes-csi/csi-lib-utils) | `0.17.0` | `0.18.1` | | [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) | `2.17.1` | `2.19.0` | | [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) | `1.18.0` | `1.19.1` | | [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go) | `1.6.0` | `1.7.0` | Updates `github.com/IBM/keyprotect-go-client` from 0.12.2 to 0.14.1 - [Release notes](https://github.com/IBM/keyprotect-go-client/releases) - [Changelog](https://github.com/IBM/keyprotect-go-client/blob/master/CHANGELOG.md) - [Commits](https://github.com/IBM/keyprotect-go-client/compare/v0.12.2...v0.14.1) Updates `github.com/aws/aws-sdk-go` from 1.53.14 to 1.54.6 - [Release notes](https://github.com/aws/aws-sdk-go/releases) - [Commits](https://github.com/aws/aws-sdk-go/compare/v1.53.14...v1.54.6) Updates `github.com/aws/aws-sdk-go-v2/service/sts` from 1.28.1 to 1.29.1 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ecr/v1.28.1...service/s3/v1.29.1) Updates `github.com/hashicorp/vault/api` from 1.12.0 to 1.14.0 - [Release notes](https://github.com/hashicorp/vault/releases) - [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md) - [Commits](https://github.com/hashicorp/vault/compare/v1.12.0...v1.14.0) Updates `github.com/kubernetes-csi/csi-lib-utils` from 0.17.0 to 0.18.1 - [Release notes](https://github.com/kubernetes-csi/csi-lib-utils/releases) - [Commits](https://github.com/kubernetes-csi/csi-lib-utils/compare/v0.17.0...v0.18.1) Updates `github.com/onsi/ginkgo/v2` from 2.17.1 to 2.19.0 - [Release notes](https://github.com/onsi/ginkgo/releases) - [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/ginkgo/compare/v2.17.1...v2.19.0) Updates `github.com/onsi/gomega` from 1.32.0 to 1.33.1 - [Release notes](https://github.com/onsi/gomega/releases) - [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/gomega/compare/v1.32.0...v1.33.1) Updates `github.com/prometheus/client_golang` from 1.18.0 to 1.19.1 - [Release notes](https://github.com/prometheus/client_golang/releases) - [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md) - [Commits](https://github.com/prometheus/client_golang/compare/v1.18.0...v1.19.1) Updates `github.com/Azure/azure-sdk-for-go/sdk/azidentity` from 1.6.0 to 1.7.0 - [Release notes](https://github.com/Azure/azure-sdk-for-go/releases) - [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md) - [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/azcore/v1.6.0...sdk/azcore/v1.7.0) --- updated-dependencies: - dependency-name: github.com/IBM/keyprotect-go-client dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-dependencies - dependency-name: github.com/aws/aws-sdk-go dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-dependencies - dependency-name: github.com/aws/aws-sdk-go-v2/service/sts dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-dependencies - dependency-name: github.com/hashicorp/vault/api dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-dependencies - dependency-name: github.com/kubernetes-csi/csi-lib-utils dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-dependencies - dependency-name: github.com/onsi/ginkgo/v2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-dependencies - dependency-name: github.com/onsi/gomega dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-dependencies - dependency-name: github.com/prometheus/client_golang dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-dependencies - dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
212 lines
8.8 KiB
Go
212 lines
8.8 KiB
Go
package aws
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
smithybearer "github.com/aws/smithy-go/auth/bearer"
|
|
"github.com/aws/smithy-go/logging"
|
|
"github.com/aws/smithy-go/middleware"
|
|
)
|
|
|
|
// HTTPClient provides the interface to provide custom HTTPClients. Generally
|
|
// *http.Client is sufficient for most use cases. The HTTPClient should not
|
|
// follow 301 or 302 redirects.
|
|
type HTTPClient interface {
|
|
Do(*http.Request) (*http.Response, error)
|
|
}
|
|
|
|
// A Config provides service configuration for service clients.
|
|
type Config struct {
|
|
// The region to send requests to. This parameter is required and must
|
|
// be configured globally or on a per-client basis unless otherwise
|
|
// noted. A full list of regions is found in the "Regions and Endpoints"
|
|
// document.
|
|
//
|
|
// See http://docs.aws.amazon.com/general/latest/gr/rande.html for
|
|
// information on AWS regions.
|
|
Region string
|
|
|
|
// The credentials object to use when signing requests.
|
|
// Use the LoadDefaultConfig to load configuration from all the SDK's supported
|
|
// sources, and resolve credentials using the SDK's default credential chain.
|
|
Credentials CredentialsProvider
|
|
|
|
// The Bearer Authentication token provider to use for authenticating API
|
|
// operation calls with a Bearer Authentication token. The API clients and
|
|
// operation must support Bearer Authentication scheme in order for the
|
|
// token provider to be used. API clients created with NewFromConfig will
|
|
// automatically be configured with this option, if the API client support
|
|
// Bearer Authentication.
|
|
//
|
|
// The SDK's config.LoadDefaultConfig can automatically populate this
|
|
// option for external configuration options such as SSO session.
|
|
// https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html
|
|
BearerAuthTokenProvider smithybearer.TokenProvider
|
|
|
|
// The HTTP Client the SDK's API clients will use to invoke HTTP requests.
|
|
// The SDK defaults to a BuildableClient allowing API clients to create
|
|
// copies of the HTTP Client for service specific customizations.
|
|
//
|
|
// Use a (*http.Client) for custom behavior. Using a custom http.Client
|
|
// will prevent the SDK from modifying the HTTP client.
|
|
HTTPClient HTTPClient
|
|
|
|
// An endpoint resolver that can be used to provide or override an endpoint
|
|
// for the given service and region.
|
|
//
|
|
// See the `aws.EndpointResolver` documentation for additional usage
|
|
// information.
|
|
//
|
|
// Deprecated: See Config.EndpointResolverWithOptions
|
|
EndpointResolver EndpointResolver
|
|
|
|
// An endpoint resolver that can be used to provide or override an endpoint
|
|
// for the given service and region.
|
|
//
|
|
// When EndpointResolverWithOptions is specified, it will be used by a
|
|
// service client rather than using EndpointResolver if also specified.
|
|
//
|
|
// See the `aws.EndpointResolverWithOptions` documentation for additional
|
|
// usage information.
|
|
//
|
|
// Deprecated: with the release of endpoint resolution v2 in API clients,
|
|
// EndpointResolver and EndpointResolverWithOptions are deprecated.
|
|
// Providing a value for this field will likely prevent you from using
|
|
// newer endpoint-related service features. See API client options
|
|
// EndpointResolverV2 and BaseEndpoint.
|
|
EndpointResolverWithOptions EndpointResolverWithOptions
|
|
|
|
// RetryMaxAttempts specifies the maximum number attempts an API client
|
|
// will call an operation that fails with a retryable error.
|
|
//
|
|
// API Clients will only use this value to construct a retryer if the
|
|
// Config.Retryer member is not nil. This value will be ignored if
|
|
// Retryer is not nil.
|
|
RetryMaxAttempts int
|
|
|
|
// RetryMode specifies the retry model the API client will be created with.
|
|
//
|
|
// API Clients will only use this value to construct a retryer if the
|
|
// Config.Retryer member is not nil. This value will be ignored if
|
|
// Retryer is not nil.
|
|
RetryMode RetryMode
|
|
|
|
// Retryer is a function that provides a Retryer implementation. A Retryer
|
|
// guides how HTTP requests should be retried in case of recoverable
|
|
// failures. When nil the API client will use a default retryer.
|
|
//
|
|
// In general, the provider function should return a new instance of a
|
|
// Retryer if you are attempting to provide a consistent Retryer
|
|
// configuration across all clients. This will ensure that each client will
|
|
// be provided a new instance of the Retryer implementation, and will avoid
|
|
// issues such as sharing the same retry token bucket across services.
|
|
//
|
|
// If not nil, RetryMaxAttempts, and RetryMode will be ignored by API
|
|
// clients.
|
|
Retryer func() Retryer
|
|
|
|
// ConfigSources are the sources that were used to construct the Config.
|
|
// Allows for additional configuration to be loaded by clients.
|
|
ConfigSources []interface{}
|
|
|
|
// APIOptions provides the set of middleware mutations modify how the API
|
|
// client requests will be handled. This is useful for adding additional
|
|
// tracing data to a request, or changing behavior of the SDK's client.
|
|
APIOptions []func(*middleware.Stack) error
|
|
|
|
// The logger writer interface to write logging messages to. Defaults to
|
|
// standard error.
|
|
Logger logging.Logger
|
|
|
|
// Configures the events that will be sent to the configured logger. This
|
|
// can be used to configure the logging of signing, retries, request, and
|
|
// responses of the SDK clients.
|
|
//
|
|
// See the ClientLogMode type documentation for the complete set of logging
|
|
// modes and available configuration.
|
|
ClientLogMode ClientLogMode
|
|
|
|
// The configured DefaultsMode. If not specified, service clients will
|
|
// default to legacy.
|
|
//
|
|
// Supported modes are: auto, cross-region, in-region, legacy, mobile,
|
|
// standard
|
|
DefaultsMode DefaultsMode
|
|
|
|
// The RuntimeEnvironment configuration, only populated if the DefaultsMode
|
|
// is set to DefaultsModeAuto and is initialized by
|
|
// `config.LoadDefaultConfig`. You should not populate this structure
|
|
// programmatically, or rely on the values here within your applications.
|
|
RuntimeEnvironment RuntimeEnvironment
|
|
|
|
// AppId is an optional application specific identifier that can be set.
|
|
// When set it will be appended to the User-Agent header of every request
|
|
// in the form of App/{AppId}. This variable is sourced from environment
|
|
// variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id.
|
|
// See https://docs.aws.amazon.com/sdkref/latest/guide/settings-reference.html for
|
|
// more information on environment variables and shared config settings.
|
|
AppID string
|
|
|
|
// BaseEndpoint is an intermediary transfer location to a service specific
|
|
// BaseEndpoint on a service's Options.
|
|
BaseEndpoint *string
|
|
|
|
// DisableRequestCompression toggles if an operation request could be
|
|
// compressed or not. Will be set to false by default. This variable is sourced from
|
|
// environment variable AWS_DISABLE_REQUEST_COMPRESSION or the shared config profile attribute
|
|
// disable_request_compression
|
|
DisableRequestCompression bool
|
|
|
|
// RequestMinCompressSizeBytes sets the inclusive min bytes of a request body that could be
|
|
// compressed. Will be set to 10240 by default and must be within 0 and 10485760 bytes inclusively.
|
|
// This variable is sourced from environment variable AWS_REQUEST_MIN_COMPRESSION_SIZE_BYTES or
|
|
// the shared config profile attribute request_min_compression_size_bytes
|
|
RequestMinCompressSizeBytes int64
|
|
|
|
// Controls how a resolved AWS account ID is handled for endpoint routing.
|
|
AccountIDEndpointMode AccountIDEndpointMode
|
|
}
|
|
|
|
// NewConfig returns a new Config pointer that can be chained with builder
|
|
// methods to set multiple configuration values inline without using pointers.
|
|
func NewConfig() *Config {
|
|
return &Config{}
|
|
}
|
|
|
|
// Copy will return a shallow copy of the Config object.
|
|
func (c Config) Copy() Config {
|
|
cp := c
|
|
return cp
|
|
}
|
|
|
|
// EndpointDiscoveryEnableState indicates if endpoint discovery is
|
|
// enabled, disabled, auto or unset state.
|
|
//
|
|
// Default behavior (Auto or Unset) indicates operations that require endpoint
|
|
// discovery will use Endpoint Discovery by default. Operations that
|
|
// optionally use Endpoint Discovery will not use Endpoint Discovery
|
|
// unless EndpointDiscovery is explicitly enabled.
|
|
type EndpointDiscoveryEnableState uint
|
|
|
|
// Enumeration values for EndpointDiscoveryEnableState
|
|
const (
|
|
// EndpointDiscoveryUnset represents EndpointDiscoveryEnableState is unset.
|
|
// Users do not need to use this value explicitly. The behavior for unset
|
|
// is the same as for EndpointDiscoveryAuto.
|
|
EndpointDiscoveryUnset EndpointDiscoveryEnableState = iota
|
|
|
|
// EndpointDiscoveryAuto represents an AUTO state that allows endpoint
|
|
// discovery only when required by the api. This is the default
|
|
// configuration resolved by the client if endpoint discovery is neither
|
|
// enabled or disabled.
|
|
EndpointDiscoveryAuto // default state
|
|
|
|
// EndpointDiscoveryDisabled indicates client MUST not perform endpoint
|
|
// discovery even when required.
|
|
EndpointDiscoveryDisabled
|
|
|
|
// EndpointDiscoveryEnabled indicates client MUST always perform endpoint
|
|
// discovery if supported for the operation.
|
|
EndpointDiscoveryEnabled
|
|
)
|