Package: customizations
Variables
-
var _ (smithyhttp.Signer) = writable
-
Value:
(*ExpressSigner)(nil)
Type Summary collapse
-
AddExpiresOnPresignedURL
struct
AddExpiresOnPresignedURL represents a build middleware used to assign expiration on a presigned URL.
-
ExpressIdentityResolver
struct
ExpressIdentityResolver retrieves identity for the S3Express storage class.
-
ExpressSigner
struct
ExpressSigner signs requests for the sigv4-s3express auth scheme.
-
PresignHTTPRequestMiddleware
struct
PresignHTTPRequestMiddleware provides the Finalize middleware for creating a presigned URL for an HTTP request.
-
PresignHTTPRequestMiddlewareOptions
struct
PresignHTTPRequestMiddlewareOptions is the options for the PresignHTTPRequestMiddleware middleware.
-
S3ExpressSignHTTPRequestMiddleware
struct
S3ExpressSignHTTPRequestMiddleware signs S3 S3Express requests.
-
SignHTTPRequestMiddleware
struct
SignHTTPRequestMiddleware is a
FinalizeMiddlewareimplementation to select HTTP Signing method. -
SignHTTPRequestMiddlewareOptions
struct
SignHTTPRequestMiddlewareOptions is the configuration options for the SignHTTPRequestMiddleware middleware.
-
UpdateEndpointOptions
struct
UpdateEndpointOptions provides the options for the UpdateEndpoint middleware setup.
-
UpdateEndpointParameterAccessor
struct
UpdateEndpointParameterAccessor represents accessor functions used by the middleware.
Interface Summary collapse
-
EndpointResolver
interface
EndpointResolver interface for resolving service endpoints.
-
S3ExpressCredentialsProvider
interface
S3ExpressCredentialsProvider retrieves credentials for the S3Express storage class.
Function Summary collapse
-
func AddExpressDefaultChecksumMiddleware(s *middleware.Stack) error
AddExpressDefaultChecksumMiddleware appends a step to default to CRC32 for S3Express requests.
-
func GetBucket(ctx context.Context) string
GetBucket retrieves a stored bucket name within a context.
-
func GetIdentityPropertiesBucket(ip *smithy.Properties) (string, bool)
GetIdentityPropertiesBucket returns the S3 bucket from identity properties.
-
func GetPropertiesBackend(p *smithy.Properties) string
GetPropertiesBackend returns a resolved endpoint backend from the property set.
-
func GetSignerVersion(ctx context.Context) (v string)
GetSignerVersion retrieves the signer version to use for signing.
-
func HandleResponseErrorWith200Status(stack *middleware.Stack) error
HandleResponseErrorWith200Status check for S3 200 error response.
-
func RegisterPreSigningMiddleware(stack *middleware.Stack, signingMiddleware *PresignHTTPRequestMiddleware) (err error)
RegisterPreSigningMiddleware registers the wrapper pre-signing middleware to the stack.
-
func RegisterSigningMiddleware(stack *middleware.Stack, signingMiddleware *SignHTTPRequestMiddleware) (err error)
RegisterSigningMiddleware registers the wrapper signing middleware to the stack.
-
func ResolveDisableExpressAuth(configs []interface{}) (value bool, exists bool)
ResolveDisableExpressAuth pulls S3DisableExpressAuth setting from config sources.
-
func SetBucket(ctx context.Context, bucket string) context.Context
SetBucket stores a bucket name within the request context, which is required for a variety of custom S3 behaviors.
-
func SetIdentityPropertiesBucket(ip *smithy.Properties, bucket string)
SetIdentityPropertiesBucket sets the S3 bucket to identity properties.
-
func SetSignerVersion(ctx context.Context, version string) context.Context
SetSignerVersion sets the signer version to be used for signing the request.
-
func UpdateEndpoint(stack *middleware.Stack, options UpdateEndpointOptions) (err error)
UpdateEndpoint adds the middleware to the middleware stack based on the UpdateEndpointOptions.
Type Details
AddExpiresOnPresignedURL struct
AddExpiresOnPresignedURL represents a build middleware used to assign expiration on a presigned URL.
ExpressIdentityResolver struct
ExpressIdentityResolver retrieves identity for the S3Express storage class.
PresignHTTPRequestMiddlewareOptions struct
PresignHTTPRequestMiddlewareOptions is the options for the PresignHTTPRequestMiddleware middleware.
SignHTTPRequestMiddlewareOptions struct
SignHTTPRequestMiddlewareOptions is the configuration options for the SignHTTPRequestMiddleware middleware.
UpdateEndpointOptions struct
UpdateEndpointOptions provides the options for the UpdateEndpoint middleware setup.
UpdateEndpointParameterAccessor struct
UpdateEndpointParameterAccessor represents accessor functions used by the middleware
Function Details
func AddExpressDefaultChecksumMiddleware(s *middleware.Stack) error
AddExpressDefaultChecksumMiddleware appends a step to default to CRC32 for S3Express requests. This should only be applied to operations where a checksum is required (e.g. DeleteObject).
31 32 33 34 35 36 37 38 39 40 41 |
// File 'service/s3/internal/customizations/express_default_checksum.go', line 31
|
func GetBucket(ctx context.Context) string
GetBucket retrieves a stored bucket name within a context.
17 18 19 20 |
// File 'service/s3/internal/customizations/context.go', line 17
|
func GetIdentityPropertiesBucket(ip *smithy.Properties) (string, bool)
GetIdentityPropertiesBucket returns the S3 bucket from identity properties.
12 13 14 15 |
// File 'service/s3/internal/customizations/express_properties.go', line 12
|
func GetPropertiesBackend(p *smithy.Properties) string
GetPropertiesBackend returns a resolved endpoint backend from the property set.
6 7 8 9 |
// File 'service/s3/internal/customizations/express_properties.go', line 6
|
func GetSignerVersion(ctx context.Context) (v string)
GetSignerVersion retrieves the signer version to use for signing
Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues to clear all stack values.
19 20 21 22 |
// File 'service/s3/internal/customizations/signer_wrapper.go', line 19
|
func HandleResponseErrorWith200Status(stack *middleware.Stack) error
HandleResponseErrorWith200Status check for S3 200 error response. If an s3 200 error is found, status code for the response is modified temporarily to 5xx response status code.
20 21 22 |
// File 'service/s3/internal/customizations/handle_200_error.go', line 20
|
func RegisterPreSigningMiddleware(stack *middleware.Stack, signingMiddleware *PresignHTTPRequestMiddleware) (err error)
RegisterPreSigningMiddleware registers the wrapper pre-signing middleware to the stack. If a pre-signing middleware is already present, this provided middleware will be swapped. Otherwise the middleware will be added at the tail of the finalize step.
217 218 219 220 221 222 223 224 225 226 |
// File 'service/s3/internal/customizations/signer_wrapper.go', line 217
|
func RegisterSigningMiddleware(stack *middleware.Stack, signingMiddleware *SignHTTPRequestMiddleware) (err error)
RegisterSigningMiddleware registers the wrapper signing middleware to the stack. If a signing middleware is already present, this provided middleware will be swapped. Otherwise the middleware will be added at the tail of the finalize step.
113 114 115 116 117 118 119 120 121 122 |
// File 'service/s3/internal/customizations/signer_wrapper.go', line 113
|
func ResolveDisableExpressAuth(configs []interface{}) (value bool, exists bool)
ResolveDisableExpressAuth pulls S3DisableExpressAuth setting from config sources.
8 9 10 11 12 13 14 15 16 17 |
// File 'service/s3/internal/customizations/express_config.go', line 8
|
func SetBucket(ctx context.Context, bucket string) context.Context
SetBucket stores a bucket name within the request context, which is required for a variety of custom S3 behaviors.
12 13 14 |
// File 'service/s3/internal/customizations/context.go', line 12
|
func SetIdentityPropertiesBucket(ip *smithy.Properties, bucket string)
SetIdentityPropertiesBucket sets the S3 bucket to identity properties.
18 19 20 |
// File 'service/s3/internal/customizations/express_properties.go', line 18
|
func SetSignerVersion(ctx context.Context, version string) context.Context
SetSignerVersion sets the signer version to be used for signing the request
Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues to clear all stack values.
28 29 30 |
// File 'service/s3/internal/customizations/signer_wrapper.go', line 28
|
func UpdateEndpoint(stack *middleware.Stack, options UpdateEndpointOptions) (err error)
UpdateEndpoint adds the middleware to the middleware stack based on the UpdateEndpointOptions.
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 |
// File 'service/s3/internal/customizations/update_endpoint.go', line 67
|