change github.com/aws/aws-sdk-go to be the same revision in kubernetes

This commit is contained in:
Jingfang Liu
2018-10-16 09:34:22 -07:00
parent e0958159f3
commit c6a78cee92
462 changed files with 20605 additions and 85780 deletions

View File

@@ -25,8 +25,6 @@ type Operation struct {
Deprecated bool `json:"deprecated"`
AuthType string `json:"authtype"`
imports map[string]bool
EventStreamAPI *EventStreamAPI
}
// A HTTPInfo defines the method of HTTP request for the Operation.
@@ -134,9 +132,6 @@ func (c *{{ .API.StructName }}) {{ .ExportedName }}Request(` +
req.Handlers.Send.Swap(client.LogHTTPResponseHandler.Name, client.LogHTTPResponseHeaderHandler)
req.Handlers.Unmarshal.Swap({{ .API.ProtocolPackage }}.UnmarshalHandler.Name, rest.UnmarshalHandler)
req.Handlers.Unmarshal.PushBack(output.runEventStreamLoop)
{{ if eq .API.Metadata.Protocol "json" -}}
req.Handlers.Unmarshal.PushBack(output.unmarshalInitialResponse)
{{ end -}}
{{ end -}}
return
}
@@ -257,10 +252,9 @@ func (o *Operation) GoCode() string {
var buf bytes.Buffer
if len(o.OutputRef.Shape.EventStreamsMemberName) != 0 {
// TODO need better was of updating protocol unmarshalers
o.API.imports["github.com/aws/aws-sdk-go/aws/client"] = true
o.API.imports["github.com/aws/aws-sdk-go/private/protocol"] = true
o.API.imports["github.com/aws/aws-sdk-go/private/protocol/rest"] = true
o.API.imports["github.com/aws/aws-sdk-go/private/protocol/"+o.API.ProtocolPackage()] = true
}
err := tplOperation.Execute(&buf, o)