mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
rebase: Bump github.com/aws/aws-sdk-go-v2/service/sts
Bumps [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2) from 1.20.0 to 1.21.0. - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.20.0...service/s3/v1.21.0) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go-v2/service/sts 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
mergify[bot]
parent
2acf7fc622
commit
f9310c84f4
4
vendor/github.com/aws/smithy-go/.gitignore
generated
vendored
4
vendor/github.com/aws/smithy-go/.gitignore
generated
vendored
@ -20,3 +20,7 @@ target/
|
||||
build/
|
||||
*/out/
|
||||
*/*/out/
|
||||
|
||||
# VS Code
|
||||
bin/
|
||||
.vscode/
|
||||
|
5
vendor/github.com/aws/smithy-go/CHANGELOG.md
generated
vendored
5
vendor/github.com/aws/smithy-go/CHANGELOG.md
generated
vendored
@ -1,3 +1,8 @@
|
||||
# Release (2023-07-31)
|
||||
|
||||
## General Highlights
|
||||
* **Feature**: Adds support for smithy-modeled endpoint resolution.
|
||||
|
||||
# Release (2022-12-02)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
13
vendor/github.com/aws/smithy-go/encoding/httpbinding/encode.go
generated
vendored
13
vendor/github.com/aws/smithy-go/encoding/httpbinding/encode.go
generated
vendored
@ -26,10 +26,17 @@ type Encoder struct {
|
||||
header http.Header
|
||||
}
|
||||
|
||||
// NewEncoder creates a new encoder from the passed in request. All query and
|
||||
// NewEncoder creates a new encoder from the passed in request. It assumes that
|
||||
// raw path contains no valuable information at this point, so it passes in path
|
||||
// as path and raw path for subsequent trans
|
||||
func NewEncoder(path, query string, headers http.Header) (*Encoder, error) {
|
||||
return NewEncoderWithRawPath(path, path, query, headers)
|
||||
}
|
||||
|
||||
// NewHTTPBindingEncoder creates a new encoder from the passed in request. All query and
|
||||
// header values will be added on top of the request's existing values. Overwriting
|
||||
// duplicate values.
|
||||
func NewEncoder(path, query string, headers http.Header) (*Encoder, error) {
|
||||
func NewEncoderWithRawPath(path, rawPath, query string, headers http.Header) (*Encoder, error) {
|
||||
parseQuery, err := url.ParseQuery(query)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to parse query string: %w", err)
|
||||
@ -37,7 +44,7 @@ func NewEncoder(path, query string, headers http.Header) (*Encoder, error) {
|
||||
|
||||
e := &Encoder{
|
||||
path: []byte(path),
|
||||
rawPath: []byte(path),
|
||||
rawPath: []byte(rawPath),
|
||||
query: parseQuery,
|
||||
header: headers.Clone(),
|
||||
}
|
||||
|
23
vendor/github.com/aws/smithy-go/endpoints/endpoint.go
generated
vendored
Normal file
23
vendor/github.com/aws/smithy-go/endpoints/endpoint.go
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
package transport
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"net/url"
|
||||
|
||||
"github.com/aws/smithy-go"
|
||||
)
|
||||
|
||||
// Endpoint is the endpoint object returned by Endpoint resolution V2
|
||||
type Endpoint struct {
|
||||
// The complete URL minimally specfiying the scheme and host.
|
||||
// May optionally specify the port and base path component.
|
||||
URI url.URL
|
||||
|
||||
// An optional set of headers to be sent using transport layer headers.
|
||||
Headers http.Header
|
||||
|
||||
// A grab-bag property map of endpoint attributes. The
|
||||
// values present here are subject to change, or being add/removed at any
|
||||
// time.
|
||||
Properties smithy.Properties
|
||||
}
|
2
vendor/github.com/aws/smithy-go/go_module_metadata.go
generated
vendored
2
vendor/github.com/aws/smithy-go/go_module_metadata.go
generated
vendored
@ -3,4 +3,4 @@
|
||||
package smithy
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.13.5"
|
||||
const goModuleVersion = "1.14.0"
|
||||
|
52
vendor/github.com/aws/smithy-go/properties.go
generated
vendored
Normal file
52
vendor/github.com/aws/smithy-go/properties.go
generated
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
package smithy
|
||||
|
||||
// PropertiesReader provides an interface for reading metadata from the
|
||||
// underlying metadata container.
|
||||
type PropertiesReader interface {
|
||||
Get(key interface{}) interface{}
|
||||
}
|
||||
|
||||
// Properties provides storing and reading metadata values. Keys may be any
|
||||
// comparable value type. Get and set will panic if key is not a comparable
|
||||
// value type.
|
||||
//
|
||||
// Properties uses lazy initialization, and Set method must be called as an
|
||||
// addressable value, or pointer. Not doing so may cause key/value pair to not
|
||||
// be set.
|
||||
type Properties struct {
|
||||
values map[interface{}]interface{}
|
||||
}
|
||||
|
||||
// Get attempts to retrieve the value the key points to. Returns nil if the
|
||||
// key was not found.
|
||||
//
|
||||
// Panics if key type is not comparable.
|
||||
func (m *Properties) Get(key interface{}) interface{} {
|
||||
return m.values[key]
|
||||
}
|
||||
|
||||
// Set stores the value pointed to by the key. If a value already exists at
|
||||
// that key it will be replaced with the new value.
|
||||
//
|
||||
// Set method must be called as an addressable value, or pointer. If Set is not
|
||||
// called as an addressable value or pointer, the key value pair being set may
|
||||
// be lost.
|
||||
//
|
||||
// Panics if the key type is not comparable.
|
||||
func (m *Properties) Set(key, value interface{}) {
|
||||
if m.values == nil {
|
||||
m.values = map[interface{}]interface{}{}
|
||||
}
|
||||
m.values[key] = value
|
||||
}
|
||||
|
||||
// Has returns whether the key exists in the metadata.
|
||||
//
|
||||
// Panics if the key type is not comparable.
|
||||
func (m *Properties) Has(key interface{}) bool {
|
||||
if m.values == nil {
|
||||
return false
|
||||
}
|
||||
_, ok := m.values[key]
|
||||
return ok
|
||||
}
|
Reference in New Issue
Block a user