mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-12-01 17:04:59 -05:00
deps: update Go dependencies (#3967)
* deps: update Go dependencies * deps: hold back terraform-plugin deps * deps: keep google.golang.org/grpc at v1.74 * fix tests --------- Signed-off-by: Daniel Weiße <dw@edgeless.systems> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
2360d627aa
commit
d119e1f44d
28 changed files with 611 additions and 548 deletions
|
|
@ -15,7 +15,6 @@ go_library(
|
|||
"//internal/attestation/variant",
|
||||
"//internal/sigstore",
|
||||
"//internal/staticupload",
|
||||
"@com_github_aws_aws_sdk_go//aws",
|
||||
"@com_github_aws_aws_sdk_go_v2_service_s3//:s3",
|
||||
],
|
||||
)
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/aws/aws-sdk-go-v2/service/s3"
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/edgelesssys/constellation/v2/internal/api/attestationconfigapi"
|
||||
apiclient "github.com/edgelesssys/constellation/v2/internal/api/client"
|
||||
"github.com/edgelesssys/constellation/v2/internal/attestation/variant"
|
||||
|
|
@ -112,8 +111,8 @@ func (c Client) deleteVersion(versions attestationconfigapi.List, versionStr str
|
|||
|
||||
func (c Client) listCachedVersions(ctx context.Context, attestation variant.Variant) ([]string, error) {
|
||||
list, err := c.s3Client.ListObjectsV2(ctx, &s3.ListObjectsV2Input{
|
||||
Bucket: aws.String(c.bucketID),
|
||||
Prefix: aws.String(reportVersionDir(attestation)),
|
||||
Bucket: toPtr(c.bucketID),
|
||||
Prefix: toPtr(reportVersionDir(attestation)),
|
||||
})
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("list objects: %w", err)
|
||||
|
|
@ -176,3 +175,7 @@ func executeAllCmds(ctx context.Context, client *apiclient.Client, cmds []crudCm
|
|||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func toPtr(s string) *string {
|
||||
return &s
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue