File: export_test.go

package info (click to toggle)
golang-github-adroll-goamz 0.0~git20150909.0.74fd457-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,476 kB
  • ctags: 2,443
  • sloc: makefile: 41
file content (29 lines) | stat: -rw-r--r-- 624 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package aws

import (
	"net/http"
	"time"
)

// V4Signer:
// Exporting methods for testing

func (s *V4Signer) RequestTime(req *http.Request) time.Time {
	return s.requestTime(req)
}

func (s *V4Signer) CanonicalRequest(req *http.Request) string {
	return s.canonicalRequest(req, "")
}

func (s *V4Signer) StringToSign(t time.Time, creq string) string {
	return s.stringToSign(t, creq)
}

func (s *V4Signer) Signature(t time.Time, sts string) string {
	return s.signature(t, sts)
}

func (s *V4Signer) Authorization(header http.Header, t time.Time, signature string) string {
	return s.authorization(header, t, signature)
}