...
1 package http
2
3 import smithy "github.com/aws/smithy-go"
4
5 type (
6 sigV4SigningNameKey struct{}
7 sigV4SigningRegionKey struct{}
8
9 sigV4ASigningNameKey struct{}
10 sigV4ASigningRegionsKey struct{}
11
12 isUnsignedPayloadKey struct{}
13 disableDoubleEncodingKey struct{}
14 )
15
16
17 func GetSigV4SigningName(p *smithy.Properties) (string, bool) {
18 v, ok := p.Get(sigV4SigningNameKey{}).(string)
19 return v, ok
20 }
21
22
23 func SetSigV4SigningName(p *smithy.Properties, name string) {
24 p.Set(sigV4SigningNameKey{}, name)
25 }
26
27
28 func GetSigV4SigningRegion(p *smithy.Properties) (string, bool) {
29 v, ok := p.Get(sigV4SigningRegionKey{}).(string)
30 return v, ok
31 }
32
33
34 func SetSigV4SigningRegion(p *smithy.Properties, region string) {
35 p.Set(sigV4SigningRegionKey{}, region)
36 }
37
38
39 func GetSigV4ASigningName(p *smithy.Properties) (string, bool) {
40 v, ok := p.Get(sigV4ASigningNameKey{}).(string)
41 return v, ok
42 }
43
44
45 func SetSigV4ASigningName(p *smithy.Properties, name string) {
46 p.Set(sigV4ASigningNameKey{}, name)
47 }
48
49
50 func GetSigV4ASigningRegions(p *smithy.Properties) ([]string, bool) {
51 v, ok := p.Get(sigV4ASigningRegionsKey{}).([]string)
52 return v, ok
53 }
54
55
56 func SetSigV4ASigningRegions(p *smithy.Properties, regions []string) {
57 p.Set(sigV4ASigningRegionsKey{}, regions)
58 }
59
60
61 func GetIsUnsignedPayload(p *smithy.Properties) (bool, bool) {
62 v, ok := p.Get(isUnsignedPayloadKey{}).(bool)
63 return v, ok
64 }
65
66
67 func SetIsUnsignedPayload(p *smithy.Properties, isUnsignedPayload bool) {
68 p.Set(isUnsignedPayloadKey{}, isUnsignedPayload)
69 }
70
71
72 func GetDisableDoubleEncoding(p *smithy.Properties) (bool, bool) {
73 v, ok := p.Get(disableDoubleEncodingKey{}).(bool)
74 return v, ok
75 }
76
77
78 func SetDisableDoubleEncoding(p *smithy.Properties, disableDoubleEncoding bool) {
79 p.Set(disableDoubleEncodingKey{}, disableDoubleEncoding)
80 }
81
View as plain text