mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
rebase: Bump the github-dependencies group with 3 updates
Bumps the github-dependencies group with 3 updates: [github.com/IBM/keyprotect-go-client](https://github.com/IBM/keyprotect-go-client), [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) and [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2). Updates `github.com/IBM/keyprotect-go-client` from 0.14.1 to 0.14.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.14.1...v0.14.2) Updates `github.com/aws/aws-sdk-go` from 1.54.6 to 1.54.12 - [Release notes](https://github.com/aws/aws-sdk-go/releases) - [Commits](https://github.com/aws/aws-sdk-go/compare/v1.54.6...v1.54.12) Updates `github.com/aws/aws-sdk-go-v2/service/sts` from 1.29.1 to 1.30.1 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.29.1...v1.30.1) --- updated-dependencies: - dependency-name: github.com/IBM/keyprotect-go-client dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-dependencies - dependency-name: github.com/aws/aws-sdk-go dependency-type: direct:production update-type: version-update:semver-patch 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 ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
committed by
mergify[bot]
parent
1f192ac3da
commit
d5849a4801
6
vendor/github.com/IBM/keyprotect-go-client/key_rings.go
generated
vendored
6
vendor/github.com/IBM/keyprotect-go-client/key_rings.go
generated
vendored
@ -59,9 +59,9 @@ func (c *Client) GetKeyRings(ctx context.Context) (*KeyRings, error) {
|
||||
return &rings, nil
|
||||
}
|
||||
|
||||
type DeleteKeyRingQueryOption func(*http.Request)
|
||||
type RequestOpt func(*http.Request)
|
||||
|
||||
func WithForce(force bool) DeleteKeyRingQueryOption {
|
||||
func WithForce(force bool) RequestOpt {
|
||||
return func(req *http.Request) {
|
||||
query := req.URL.Query()
|
||||
query.Add("force", strconv.FormatBool(force))
|
||||
@ -72,7 +72,7 @@ func WithForce(force bool) DeleteKeyRingQueryOption {
|
||||
// DeleteRing method deletes the key ring with the provided name in the instance
|
||||
// For information please refer to the link below:
|
||||
// https://cloud.ibm.com/docs/key-protect?topic=key-protect-managing-key-rings#delete-key-ring-api
|
||||
func (c *Client) DeleteKeyRing(ctx context.Context, id string, opts ...DeleteKeyRingQueryOption) error {
|
||||
func (c *Client) DeleteKeyRing(ctx context.Context, id string, opts ...RequestOpt) error {
|
||||
req, err := c.newRequest("DELETE", fmt.Sprintf(keyRingPath+"/%s", id), nil)
|
||||
for _, opt := range opts {
|
||||
opt(req)
|
||||
|
6
vendor/github.com/IBM/keyprotect-go-client/kmip_mgmt_objects.go
generated
vendored
6
vendor/github.com/IBM/keyprotect-go-client/kmip_mgmt_objects.go
generated
vendored
@ -92,13 +92,17 @@ func (c *Client) GetKMIPObject(ctx context.Context, adapter_id, object_id string
|
||||
return unwrapKMIPObject(objects), nil
|
||||
}
|
||||
|
||||
func (c *Client) DeleteKMIPObject(ctx context.Context, adapter_id, object_id string) error {
|
||||
func (c *Client) DeleteKMIPObject(ctx context.Context, adapter_id, object_id string, opts ...RequestOpt) error {
|
||||
req, err := c.newRequest("DELETE", fmt.Sprintf("%s/%s/%s/%s",
|
||||
kmipAdapterPath, adapter_id, kmipObjectSubPath, object_id), nil)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
for _, opt := range opts {
|
||||
opt(req)
|
||||
}
|
||||
|
||||
_, err = c.do(ctx, req, nil)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user