mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-12-15 08:05:19 -05:00
ci: use aws s3 client that invalidates cloudfront cache for places that modify Constellation api (#1839)
This commit is contained in:
parent
93569ff54c
commit
e1d3afe8d4
29 changed files with 398 additions and 186 deletions
|
|
@ -12,7 +12,16 @@ import (
|
|||
"github.com/aws/aws-sdk-go-v2/service/s3"
|
||||
)
|
||||
|
||||
// GetObject returns an object from from AWS S3 Storage.
|
||||
func (s *Client) GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error) {
|
||||
return s.s3Client.GetObject(ctx, params, optFns...)
|
||||
// GetObject retrieves objects from Amazon S3.
|
||||
func (c *Client) GetObject(
|
||||
ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options),
|
||||
) (*s3.GetObjectOutput, error) {
|
||||
return c.s3Client.GetObject(ctx, params, optFns...)
|
||||
}
|
||||
|
||||
// ListObjectsV2 returns some or all (up to 1,000) of the objects in a bucket.
|
||||
func (c *Client) ListObjectsV2(
|
||||
ctx context.Context, params *s3.ListObjectsV2Input, optFns ...func(*s3.Options),
|
||||
) (*s3.ListObjectsV2Output, error) {
|
||||
return c.s3Client.ListObjectsV2(ctx, params, optFns...)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue