Update vendored deps, including AWS SDK, openpgp, ftp, ...

This commit is contained in:
Andrey Smirnov
2018-04-05 17:46:45 +03:00
parent cef4fefc40
commit 0e6ee35942
1497 changed files with 450721 additions and 68034 deletions
+685 -239
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -60,7 +60,7 @@
//
// Using the Client
//
// To Elastic Load Balancing with the SDK use the New function to create
// To contact Elastic Load Balancing with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently.
//
+14 -2
View File
@@ -26,7 +26,7 @@ import (
// // myFunc uses an SDK service client to make a request to
// // Elastic Load Balancing.
// func myFunc(svc elbv2iface.ELBV2API) bool {
// // Make svc.AddTags request
// // Make svc.AddListenerCertificates request
// }
//
// func main() {
@@ -42,7 +42,7 @@ import (
// type mockELBV2Client struct {
// elbv2iface.ELBV2API
// }
// func (m *mockELBV2Client) AddTags(input *elbv2.AddTagsInput) (*elbv2.AddTagsOutput, error) {
// func (m *mockELBV2Client) AddListenerCertificates(input *elbv2.AddListenerCertificatesInput) (*elbv2.AddListenerCertificatesOutput, error) {
// // mock response/functionality
// }
//
@@ -60,6 +60,10 @@ import (
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type ELBV2API interface {
AddListenerCertificates(*elbv2.AddListenerCertificatesInput) (*elbv2.AddListenerCertificatesOutput, error)
AddListenerCertificatesWithContext(aws.Context, *elbv2.AddListenerCertificatesInput, ...request.Option) (*elbv2.AddListenerCertificatesOutput, error)
AddListenerCertificatesRequest(*elbv2.AddListenerCertificatesInput) (*request.Request, *elbv2.AddListenerCertificatesOutput)
AddTags(*elbv2.AddTagsInput) (*elbv2.AddTagsOutput, error)
AddTagsWithContext(aws.Context, *elbv2.AddTagsInput, ...request.Option) (*elbv2.AddTagsOutput, error)
AddTagsRequest(*elbv2.AddTagsInput) (*request.Request, *elbv2.AddTagsOutput)
@@ -104,6 +108,10 @@ type ELBV2API interface {
DescribeAccountLimitsWithContext(aws.Context, *elbv2.DescribeAccountLimitsInput, ...request.Option) (*elbv2.DescribeAccountLimitsOutput, error)
DescribeAccountLimitsRequest(*elbv2.DescribeAccountLimitsInput) (*request.Request, *elbv2.DescribeAccountLimitsOutput)
DescribeListenerCertificates(*elbv2.DescribeListenerCertificatesInput) (*elbv2.DescribeListenerCertificatesOutput, error)
DescribeListenerCertificatesWithContext(aws.Context, *elbv2.DescribeListenerCertificatesInput, ...request.Option) (*elbv2.DescribeListenerCertificatesOutput, error)
DescribeListenerCertificatesRequest(*elbv2.DescribeListenerCertificatesInput) (*request.Request, *elbv2.DescribeListenerCertificatesOutput)
DescribeListeners(*elbv2.DescribeListenersInput) (*elbv2.DescribeListenersOutput, error)
DescribeListenersWithContext(aws.Context, *elbv2.DescribeListenersInput, ...request.Option) (*elbv2.DescribeListenersOutput, error)
DescribeListenersRequest(*elbv2.DescribeListenersInput) (*request.Request, *elbv2.DescribeListenersOutput)
@@ -173,6 +181,10 @@ type ELBV2API interface {
RegisterTargetsWithContext(aws.Context, *elbv2.RegisterTargetsInput, ...request.Option) (*elbv2.RegisterTargetsOutput, error)
RegisterTargetsRequest(*elbv2.RegisterTargetsInput) (*request.Request, *elbv2.RegisterTargetsOutput)
RemoveListenerCertificates(*elbv2.RemoveListenerCertificatesInput) (*elbv2.RemoveListenerCertificatesOutput, error)
RemoveListenerCertificatesWithContext(aws.Context, *elbv2.RemoveListenerCertificatesInput, ...request.Option) (*elbv2.RemoveListenerCertificatesOutput, error)
RemoveListenerCertificatesRequest(*elbv2.RemoveListenerCertificatesInput) (*request.Request, *elbv2.RemoveListenerCertificatesOutput)
RemoveTags(*elbv2.RemoveTagsInput) (*elbv2.RemoveTagsOutput, error)
RemoveTagsWithContext(aws.Context, *elbv2.RemoveTagsInput, ...request.Option) (*elbv2.RemoveTagsOutput, error)
RemoveTagsRequest(*elbv2.RemoveTagsInput) (*request.Request, *elbv2.RemoveTagsOutput)
+3 -3
View File
@@ -86,8 +86,8 @@ const (
// ErrCodeInvalidTargetException for service response error code
// "InvalidTarget".
//
// The specified target does not exist or is not in the same VPC as the target
// group.
// The specified target does not exist, is not in the same VPC as the target
// group, or has an unsupported instance type.
ErrCodeInvalidTargetException = "InvalidTarget"
// ErrCodeListenerNotFoundException for service response error code
@@ -153,7 +153,7 @@ const (
// ErrCodeTooManyCertificatesException for service response error code
// "TooManyCertificates".
//
// You've reached the limit on the number of certificates per listener.
// You've reached the limit on the number of certificates per load balancer.
ErrCodeTooManyCertificatesException = "TooManyCertificates"
// ErrCodeTooManyListenersException for service response error code
+6
View File
@@ -248,6 +248,8 @@ func ExampleELBV2_CreateLoadBalancer_shared00() {
fmt.Println(elbv2.ErrCodeAllocationIdNotFoundException, aerr.Error())
case elbv2.ErrCodeAvailabilityZoneNotSupportedException:
fmt.Println(elbv2.ErrCodeAvailabilityZoneNotSupportedException, aerr.Error())
case elbv2.ErrCodeOperationNotPermittedException:
fmt.Println(elbv2.ErrCodeOperationNotPermittedException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
@@ -305,6 +307,8 @@ func ExampleELBV2_CreateLoadBalancer_shared01() {
fmt.Println(elbv2.ErrCodeAllocationIdNotFoundException, aerr.Error())
case elbv2.ErrCodeAvailabilityZoneNotSupportedException:
fmt.Println(elbv2.ErrCodeAvailabilityZoneNotSupportedException, aerr.Error())
case elbv2.ErrCodeOperationNotPermittedException:
fmt.Println(elbv2.ErrCodeOperationNotPermittedException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
@@ -465,6 +469,8 @@ func ExampleELBV2_DeleteLoadBalancer_shared00() {
fmt.Println(elbv2.ErrCodeLoadBalancerNotFoundException, aerr.Error())
case elbv2.ErrCodeOperationNotPermittedException:
fmt.Println(elbv2.ErrCodeOperationNotPermittedException, aerr.Error())
case elbv2.ErrCodeResourceInUseException:
fmt.Println(elbv2.ErrCodeResourceInUseException, aerr.Error())
default:
fmt.Println(aerr.Error())
}