diff options
Diffstat (limited to 'vendor/github.com/aws/aws-sdk-go/service/s3/service.go')
-rw-r--r-- | vendor/github.com/aws/aws-sdk-go/service/s3/service.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/service.go b/vendor/github.com/aws/aws-sdk-go/service/s3/service.go index 614e477..20de53f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/service.go | |||
@@ -29,8 +29,9 @@ var initRequest func(*request.Request) | |||
29 | 29 | ||
30 | // Service information constants | 30 | // Service information constants |
31 | const ( | 31 | const ( |
32 | ServiceName = "s3" // Service endpoint prefix API calls made to. | 32 | ServiceName = "s3" // Name of service. |
33 | EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. | 33 | EndpointsID = ServiceName // ID to lookup a service endpoint with. |
34 | ServiceID = "S3" // ServiceID is a unique identifer of a specific service. | ||
34 | ) | 35 | ) |
35 | 36 | ||
36 | // New creates a new instance of the S3 client with a session. | 37 | // New creates a new instance of the S3 client with a session. |
@@ -55,6 +56,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio | |||
55 | cfg, | 56 | cfg, |
56 | metadata.ClientInfo{ | 57 | metadata.ClientInfo{ |
57 | ServiceName: ServiceName, | 58 | ServiceName: ServiceName, |
59 | ServiceID: ServiceID, | ||
58 | SigningName: signingName, | 60 | SigningName: signingName, |
59 | SigningRegion: signingRegion, | 61 | SigningRegion: signingRegion, |
60 | Endpoint: endpoint, | 62 | Endpoint: endpoint, |
@@ -71,6 +73,8 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio | |||
71 | svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) | 73 | svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) |
72 | svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) | 74 | svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) |
73 | 75 | ||
76 | svc.Handlers.UnmarshalStream.PushBackNamed(restxml.UnmarshalHandler) | ||
77 | |||
74 | // Run custom client initialization if present | 78 | // Run custom client initialization if present |
75 | if initClient != nil { | 79 | if initClient != nil { |
76 | initClient(svc.Client) | 80 | initClient(svc.Client) |