mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 02:43:36 +00:00
rebase: bump github.com/IBM/keyprotect-go-client from 0.9.1 to 0.9.2
Bumps [github.com/IBM/keyprotect-go-client](https://github.com/IBM/keyprotect-go-client) from 0.9.1 to 0.9.2. - [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.9.1...v0.9.2) --- updated-dependencies: - dependency-name: github.com/IBM/keyprotect-go-client dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
committed by
mergify[bot]
parent
911bc6eabc
commit
bbcb0eb83e
21
vendor/github.com/IBM/keyprotect-go-client/kp.go
generated
vendored
21
vendor/github.com/IBM/keyprotect-go-client/kp.go
generated
vendored
@ -71,13 +71,14 @@ type ctxKey string
|
||||
// ClientConfig ...
|
||||
type ClientConfig struct {
|
||||
BaseURL string
|
||||
Authorization string // The IBM Cloud (Bluemix) access token
|
||||
APIKey string // Service ID API key, can be used instead of an access token
|
||||
TokenURL string // The URL used to get an access token from the API key
|
||||
InstanceID string // The IBM Cloud (Bluemix) instance ID that identifies your Key Protect service instance.
|
||||
KeyRing string // The ID of the target Key Ring the key is associated with. It is optional but recommended for better performance.
|
||||
Verbose int // See verbose values above
|
||||
Timeout float64 // KP request timeout in seconds.
|
||||
Authorization string // The IBM Cloud (Bluemix) access token
|
||||
APIKey string // Service ID API key, can be used instead of an access token
|
||||
TokenURL string // The URL used to get an access token from the API key
|
||||
InstanceID string // The IBM Cloud (Bluemix) instance ID that identifies your Key Protect service instance.
|
||||
KeyRing string // The ID of the target Key Ring the key is associated with. It is optional but recommended for better performance.
|
||||
Verbose int // See verbose values above
|
||||
Timeout float64 // KP request timeout in seconds.
|
||||
Headers http.Header // Support for Custom Header
|
||||
}
|
||||
|
||||
// DefaultTransport ...
|
||||
@ -255,6 +256,12 @@ func (c *Client) do(ctx context.Context, req *http.Request, res interface{}) (*h
|
||||
if c.Config.KeyRing != "" {
|
||||
req.Header.Set("x-kms-key-ring", c.Config.KeyRing)
|
||||
}
|
||||
// Adding check for Custom Header Input
|
||||
if c.Config.Headers != nil {
|
||||
for key, value := range c.Config.Headers {
|
||||
req.Header.Set(key, strings.Join(value, ","))
|
||||
}
|
||||
}
|
||||
|
||||
// set request up to be retryable on 500-level http codes and client errors
|
||||
retryableClient := getRetryableClient(&c.HttpClient)
|
||||
|
Reference in New Issue
Block a user