Vendor aws-sdk-go (dep ensure) (#178)

This commit is contained in:
Onur Filiz
2018-04-27 18:18:36 -07:00
committed by Robbie Zhang
parent 228a1f7a5f
commit 8d67098d06
2785 changed files with 1973570 additions and 25 deletions

3741
vendor/github.com/aws/aws-sdk-go/service/mq/api.go generated vendored Normal file

File diff suppressed because it is too large Load Diff

31
vendor/github.com/aws/aws-sdk-go/service/mq/doc.go generated vendored Normal file
View File

@@ -0,0 +1,31 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package mq provides the client and types for making API
// requests to AmazonMQ.
//
// Amazon MQ is a managed message broker service for Apache ActiveMQ that makes
// it easy to set up and operate message brokers in the cloud. A message broker
// allows software applications and components to communicate using various
// programming languages, operating systems, and formal messaging protocols.
//
// See https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27 for more information on this service.
//
// See mq package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/mq/
//
// Using the Client
//
// To contact AmazonMQ 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.
//
// See the SDK's documentation for more information on how to use the SDK.
// https://docs.aws.amazon.com/sdk-for-go/api/
//
// See aws.Config documentation for more information on configuring SDK clients.
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
//
// See the AmazonMQ client MQ for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/mq/#New
package mq

42
vendor/github.com/aws/aws-sdk-go/service/mq/errors.go generated vendored Normal file
View File

@@ -0,0 +1,42 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package mq
const (
// ErrCodeBadRequestException for service response error code
// "BadRequestException".
//
// Returns information about an error.
ErrCodeBadRequestException = "BadRequestException"
// ErrCodeConflictException for service response error code
// "ConflictException".
//
// Returns information about an error.
ErrCodeConflictException = "ConflictException"
// ErrCodeForbiddenException for service response error code
// "ForbiddenException".
//
// Returns information about an error.
ErrCodeForbiddenException = "ForbiddenException"
// ErrCodeInternalServerErrorException for service response error code
// "InternalServerErrorException".
//
// Returns information about an error.
ErrCodeInternalServerErrorException = "InternalServerErrorException"
// ErrCodeNotFoundException for service response error code
// "NotFoundException".
//
// Returns information about an error.
ErrCodeNotFoundException = "NotFoundException"
// ErrCodeUnauthorizedException for service response error code
// "UnauthorizedException".
//
// Returns information about an error.
ErrCodeUnauthorizedException = "UnauthorizedException"
)

View File

@@ -0,0 +1,132 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package mqiface provides an interface to enable mocking the AmazonMQ service client
// for testing your code.
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters.
package mqiface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/mq"
)
// MQAPI provides an interface to enable mocking the
// mq.MQ service client's API operation,
// paginators, and waiters. This make unit testing your code that calls out
// to the SDK's service client's calls easier.
//
// The best way to use this interface is so the SDK's service client's calls
// can be stubbed out for unit testing your code with the SDK without needing
// to inject custom request handlers into the SDK's request pipeline.
//
// // myFunc uses an SDK service client to make a request to
// // AmazonMQ.
// func myFunc(svc mqiface.MQAPI) bool {
// // Make svc.CreateBroker request
// }
//
// func main() {
// sess := session.New()
// svc := mq.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockMQClient struct {
// mqiface.MQAPI
// }
// func (m *mockMQClient) CreateBroker(input *mq.CreateBrokerRequest) (*mq.CreateBrokerResponse, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockMQClient{}
//
// myfunc(mockSvc)
//
// // Verify myFunc's functionality
// }
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type MQAPI interface {
CreateBroker(*mq.CreateBrokerRequest) (*mq.CreateBrokerResponse, error)
CreateBrokerWithContext(aws.Context, *mq.CreateBrokerRequest, ...request.Option) (*mq.CreateBrokerResponse, error)
CreateBrokerRequest(*mq.CreateBrokerRequest) (*request.Request, *mq.CreateBrokerResponse)
CreateConfiguration(*mq.CreateConfigurationRequest) (*mq.CreateConfigurationResponse, error)
CreateConfigurationWithContext(aws.Context, *mq.CreateConfigurationRequest, ...request.Option) (*mq.CreateConfigurationResponse, error)
CreateConfigurationRequest(*mq.CreateConfigurationRequest) (*request.Request, *mq.CreateConfigurationResponse)
CreateUser(*mq.CreateUserRequest) (*mq.CreateUserOutput, error)
CreateUserWithContext(aws.Context, *mq.CreateUserRequest, ...request.Option) (*mq.CreateUserOutput, error)
CreateUserRequest(*mq.CreateUserRequest) (*request.Request, *mq.CreateUserOutput)
DeleteBroker(*mq.DeleteBrokerInput) (*mq.DeleteBrokerResponse, error)
DeleteBrokerWithContext(aws.Context, *mq.DeleteBrokerInput, ...request.Option) (*mq.DeleteBrokerResponse, error)
DeleteBrokerRequest(*mq.DeleteBrokerInput) (*request.Request, *mq.DeleteBrokerResponse)
DeleteUser(*mq.DeleteUserInput) (*mq.DeleteUserOutput, error)
DeleteUserWithContext(aws.Context, *mq.DeleteUserInput, ...request.Option) (*mq.DeleteUserOutput, error)
DeleteUserRequest(*mq.DeleteUserInput) (*request.Request, *mq.DeleteUserOutput)
DescribeBroker(*mq.DescribeBrokerInput) (*mq.DescribeBrokerResponse, error)
DescribeBrokerWithContext(aws.Context, *mq.DescribeBrokerInput, ...request.Option) (*mq.DescribeBrokerResponse, error)
DescribeBrokerRequest(*mq.DescribeBrokerInput) (*request.Request, *mq.DescribeBrokerResponse)
DescribeConfiguration(*mq.DescribeConfigurationInput) (*mq.DescribeConfigurationOutput, error)
DescribeConfigurationWithContext(aws.Context, *mq.DescribeConfigurationInput, ...request.Option) (*mq.DescribeConfigurationOutput, error)
DescribeConfigurationRequest(*mq.DescribeConfigurationInput) (*request.Request, *mq.DescribeConfigurationOutput)
DescribeConfigurationRevision(*mq.DescribeConfigurationRevisionInput) (*mq.DescribeConfigurationRevisionResponse, error)
DescribeConfigurationRevisionWithContext(aws.Context, *mq.DescribeConfigurationRevisionInput, ...request.Option) (*mq.DescribeConfigurationRevisionResponse, error)
DescribeConfigurationRevisionRequest(*mq.DescribeConfigurationRevisionInput) (*request.Request, *mq.DescribeConfigurationRevisionResponse)
DescribeUser(*mq.DescribeUserInput) (*mq.DescribeUserResponse, error)
DescribeUserWithContext(aws.Context, *mq.DescribeUserInput, ...request.Option) (*mq.DescribeUserResponse, error)
DescribeUserRequest(*mq.DescribeUserInput) (*request.Request, *mq.DescribeUserResponse)
ListBrokers(*mq.ListBrokersInput) (*mq.ListBrokersResponse, error)
ListBrokersWithContext(aws.Context, *mq.ListBrokersInput, ...request.Option) (*mq.ListBrokersResponse, error)
ListBrokersRequest(*mq.ListBrokersInput) (*request.Request, *mq.ListBrokersResponse)
ListConfigurationRevisions(*mq.ListConfigurationRevisionsInput) (*mq.ListConfigurationRevisionsResponse, error)
ListConfigurationRevisionsWithContext(aws.Context, *mq.ListConfigurationRevisionsInput, ...request.Option) (*mq.ListConfigurationRevisionsResponse, error)
ListConfigurationRevisionsRequest(*mq.ListConfigurationRevisionsInput) (*request.Request, *mq.ListConfigurationRevisionsResponse)
ListConfigurations(*mq.ListConfigurationsInput) (*mq.ListConfigurationsResponse, error)
ListConfigurationsWithContext(aws.Context, *mq.ListConfigurationsInput, ...request.Option) (*mq.ListConfigurationsResponse, error)
ListConfigurationsRequest(*mq.ListConfigurationsInput) (*request.Request, *mq.ListConfigurationsResponse)
ListUsers(*mq.ListUsersInput) (*mq.ListUsersResponse, error)
ListUsersWithContext(aws.Context, *mq.ListUsersInput, ...request.Option) (*mq.ListUsersResponse, error)
ListUsersRequest(*mq.ListUsersInput) (*request.Request, *mq.ListUsersResponse)
RebootBroker(*mq.RebootBrokerInput) (*mq.RebootBrokerOutput, error)
RebootBrokerWithContext(aws.Context, *mq.RebootBrokerInput, ...request.Option) (*mq.RebootBrokerOutput, error)
RebootBrokerRequest(*mq.RebootBrokerInput) (*request.Request, *mq.RebootBrokerOutput)
UpdateBroker(*mq.UpdateBrokerRequest) (*mq.UpdateBrokerResponse, error)
UpdateBrokerWithContext(aws.Context, *mq.UpdateBrokerRequest, ...request.Option) (*mq.UpdateBrokerResponse, error)
UpdateBrokerRequest(*mq.UpdateBrokerRequest) (*request.Request, *mq.UpdateBrokerResponse)
UpdateConfiguration(*mq.UpdateConfigurationRequest) (*mq.UpdateConfigurationResponse, error)
UpdateConfigurationWithContext(aws.Context, *mq.UpdateConfigurationRequest, ...request.Option) (*mq.UpdateConfigurationResponse, error)
UpdateConfigurationRequest(*mq.UpdateConfigurationRequest) (*request.Request, *mq.UpdateConfigurationResponse)
UpdateUser(*mq.UpdateUserRequest) (*mq.UpdateUserOutput, error)
UpdateUserWithContext(aws.Context, *mq.UpdateUserRequest, ...request.Option) (*mq.UpdateUserOutput, error)
UpdateUserRequest(*mq.UpdateUserRequest) (*request.Request, *mq.UpdateUserOutput)
}
var _ MQAPI = (*mq.MQ)(nil)

97
vendor/github.com/aws/aws-sdk-go/service/mq/service.go generated vendored Normal file
View File

@@ -0,0 +1,97 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package mq
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
// MQ provides the API operation methods for making requests to
// AmazonMQ. See this package's package overview docs
// for details on the service.
//
// MQ methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type MQ struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "mq" // Service endpoint prefix API calls made to.
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
)
// New creates a new instance of the MQ client with a session.
// If additional configuration is needed for the client instance use the optional
// aws.Config parameter to add your extra config.
//
// Example:
// // Create a MQ client from just a session.
// svc := mq.New(mySession)
//
// // Create a MQ client with additional configuration
// svc := mq.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *MQ {
c := p.ClientConfig(EndpointsID, cfgs...)
if c.SigningNameDerived || len(c.SigningName) == 0 {
c.SigningName = "mq"
}
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *MQ {
svc := &MQ{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
SigningName: signingName,
SigningRegion: signingRegion,
Endpoint: endpoint,
APIVersion: "2017-11-27",
JSONVersion: "1.1",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a MQ operation and runs any
// custom request initialization.
func (c *MQ) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}