summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/goamz/goamz/ec2/export_test.go
blob: 78da91a07d46826bc36a488024a58fc2a6a9e343 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package ec2

import (
	"github.com/goamz/goamz/aws"
	"time"
)

func Sign(auth aws.Auth, method, path string, params map[string]string, host string) {
	sign(auth, method, path, params, host)
}

func fixedTime() time.Time {
	return time.Date(2012, 1, 1, 0, 0, 0, 0, time.UTC)
}

func FakeTime(fakeIt bool) {
	if fakeIt {
		timeNow = fixedTime
	} else {
		timeNow = time.Now
	}
}