AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

SignSDKRequestWithCurrentTime

import "github.com/aws/aws-sdk-go/aws/signer/v4"

func SignSDKRequestWithCurrentTime(req *request.Request, curTimeFn func() time.Time, opts ...func(*Signer))

SignSDKRequestWithCurrentTime will sign the SDK's request using the time function passed in. Behaves the same as SignSDKRequest with the exception the request is signed with the value returned by the current time function.

req

Type: *request.Request

curTimeFn

Type: func() time.Time

opts

Signer applies AWS v4 signing to given request. Use this to sign requests that need to be signed with AWS V4 Signatures.

On this page: