Package: signer

import "../ibm-cos-sdk-go/aws/signer"

Sub-Packages

ibmiam, v4

Variables

var SignRequestHandler = writable

SignRequestHandler handler to route the request to a signer according the credential type

Value:

defaultRequestSignerRouter()
var DefaultSignerHandlerForProviderType = writable

DefaultSignerHandlerForProviderType a map with default handlers per credential type

Value:

Function Summary collapse

Function Details

func CustomRequestSignerRouter(opts ...func(*v4.Signer)) request.NamedHandler

CustomRequestSignerRouter routes the request to a signer according to the current credentials type



46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// File 'aws/signer/signer_router.go', line 46

func CustomRequestSignerRouter(opts ...func(*v4.Signer)) request.NamedHandler { router := requestSignerRouter{signers: make(map[string]request.NamedHandler)} for k, v := range DefaultSignerHandlerForProviderType { router.signers[k] = v } customV4Handler := request.NamedHandler{ Name: v4.SignRequestHandler.Name, Fn: func(req *request.Request) { v4.SignSDKRequestWithCurrentTime(req, time.Now, opts...) }, } router.signers[""] = customV4Handler router.signers["v4"] = customV4Handler return request.NamedHandler{ Name: SignRequestHandler.Name, Fn: router.delegateRequestToSigner, } }