Package: presigned-url
Overview
Package presignedurl provides the customizations for API clients to fill in presigned URLs into input parameters.
Type Summary collapse
-
Options
struct
Options provides the set of options needed by the presigned URL middleware.
-
ParameterAccessor
struct
ParameterAccessor provides an collection of accessor to for retrieving and setting the values needed to PresignedURL generation.
Interface Summary collapse
-
URLPresigner
interface
URLPresigner provides the interface to presign the input parameters in to a presigned URL.
Function Summary collapse
-
func AddAsIsPresigingMiddleware(stack *middleware.Stack) error
AddAsIsPresigingMiddleware is an alias for backwards compatibility.
-
func AddAsIsPresigningMiddleware(stack *middleware.Stack) error
AddAsIsPresigningMiddleware adds a middleware to the head of the stack that will update the stack’s context to be flagged as being invoked for the purpose of presigning.
-
func AddMiddleware(stack *middleware.Stack, opts Options) error
AddMiddleware adds the Presign URL middleware to the middleware stack.
-
func GetIsPresigning(ctx context.Context) bool
GetIsPresigning returns if the context contains the isPresigning sentinel value for presigning flows.
-
func RemoveMiddleware(stack *middleware.Stack) error
RemoveMiddleware removes the Presign URL middleware from the stack.
-
func WithIsPresigning(ctx context.Context) context.Context
WithIsPresigning adds the isPresigning sentinel value to a context to signal that the middleware stack is using the presign flow.
Type Details
Options struct
Options provides the set of options needed by the presigned URL middleware.
ParameterAccessor struct
ParameterAccessor provides an collection of accessor to for retrieving and setting the values needed to PresignedURL generation
Function Details
func AddAsIsPresigingMiddleware(stack *middleware.Stack) error
AddAsIsPresigingMiddleware is an alias for backwards compatibility.
Deprecated: This API was released with a typo. Use [AddAsIsPresigningMiddleware] instead.
40 41 42 |
// File 'service/internal/presigned-url/context.go', line 40
|
func AddAsIsPresigningMiddleware(stack *middleware.Stack) error
AddAsIsPresigningMiddleware adds a middleware to the head of the stack that will update the stack’s context to be flagged as being invoked for the purpose of presigning.
32 33 34 |
// File 'service/internal/presigned-url/context.go', line 32
|
func AddMiddleware(stack *middleware.Stack, opts Options) error
AddMiddleware adds the Presign URL middleware to the middleware stack.
48 49 50 |
// File 'service/internal/presigned-url/middleware.go', line 48
|
func GetIsPresigning(ctx context.Context) bool
GetIsPresigning returns if the context contains the isPresigning sentinel value for presigning flows.
Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues to clear all stack values.
22 23 24 25 |
// File 'service/internal/presigned-url/context.go', line 22
|
func RemoveMiddleware(stack *middleware.Stack) error
RemoveMiddleware removes the Presign URL middleware from the stack.
53 54 55 56 |
// File 'service/internal/presigned-url/middleware.go', line 53
|
func WithIsPresigning(ctx context.Context) context.Context
WithIsPresigning adds the isPresigning sentinel value to a context to signal that the middleware stack is using the presign flow.
Scoped to stack values. Use github.com/aws/smithy-go/middleware#ClearStackValues to clear all stack values.
13 14 15 |
// File 'service/internal/presigned-url/context.go', line 13
|