Vendor aws-sdk-go (dep ensure) (#178)
This commit is contained in:
1973
vendor/github.com/aws/aws-sdk-go/service/mobile/api.go
generated
vendored
Normal file
1973
vendor/github.com/aws/aws-sdk-go/service/mobile/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/mobile/doc.go
generated
vendored
Normal file
31
vendor/github.com/aws/aws-sdk-go/service/mobile/doc.go
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package mobile provides the client and types for making API
|
||||
// requests to AWS Mobile.
|
||||
//
|
||||
// AWS Mobile Service provides mobile app and website developers with capabilities
|
||||
// required to configure AWS resources and bootstrap their developer desktop
|
||||
// projects with the necessary SDKs, constants, tools and samples to make use
|
||||
// of those resources.
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01 for more information on this service.
|
||||
//
|
||||
// See mobile package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/mobile/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To contact AWS Mobile 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 AWS Mobile client Mobile for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/mobile/#New
|
||||
package mobile
|
||||
61
vendor/github.com/aws/aws-sdk-go/service/mobile/errors.go
generated
vendored
Normal file
61
vendor/github.com/aws/aws-sdk-go/service/mobile/errors.go
generated
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package mobile
|
||||
|
||||
const (
|
||||
|
||||
// ErrCodeAccountActionRequiredException for service response error code
|
||||
// "AccountActionRequiredException".
|
||||
//
|
||||
// Account Action is required in order to continue the request.
|
||||
ErrCodeAccountActionRequiredException = "AccountActionRequiredException"
|
||||
|
||||
// ErrCodeBadRequestException for service response error code
|
||||
// "BadRequestException".
|
||||
//
|
||||
// The request cannot be processed because some parameter is not valid or the
|
||||
// project state prevents the operation from being performed.
|
||||
ErrCodeBadRequestException = "BadRequestException"
|
||||
|
||||
// ErrCodeInternalFailureException for service response error code
|
||||
// "InternalFailureException".
|
||||
//
|
||||
// The service has encountered an unexpected error condition which prevents
|
||||
// it from servicing the request.
|
||||
ErrCodeInternalFailureException = "InternalFailureException"
|
||||
|
||||
// ErrCodeLimitExceededException for service response error code
|
||||
// "LimitExceededException".
|
||||
//
|
||||
// There are too many AWS Mobile Hub projects in the account or the account
|
||||
// has exceeded the maximum number of resources in some AWS service. You should
|
||||
// create another sub-account using AWS Organizations or remove some resources
|
||||
// and retry your request.
|
||||
ErrCodeLimitExceededException = "LimitExceededException"
|
||||
|
||||
// ErrCodeNotFoundException for service response error code
|
||||
// "NotFoundException".
|
||||
//
|
||||
// No entity can be found with the specified identifier.
|
||||
ErrCodeNotFoundException = "NotFoundException"
|
||||
|
||||
// ErrCodeServiceUnavailableException for service response error code
|
||||
// "ServiceUnavailableException".
|
||||
//
|
||||
// The service is temporarily unavailable. The request should be retried after
|
||||
// some time delay.
|
||||
ErrCodeServiceUnavailableException = "ServiceUnavailableException"
|
||||
|
||||
// ErrCodeTooManyRequestsException for service response error code
|
||||
// "TooManyRequestsException".
|
||||
//
|
||||
// Too many requests have been received for this AWS account in too short a
|
||||
// time. The request should be retried after some time delay.
|
||||
ErrCodeTooManyRequestsException = "TooManyRequestsException"
|
||||
|
||||
// ErrCodeUnauthorizedException for service response error code
|
||||
// "UnauthorizedException".
|
||||
//
|
||||
// Credentials of the caller are insufficient to authorize the request.
|
||||
ErrCodeUnauthorizedException = "UnauthorizedException"
|
||||
)
|
||||
106
vendor/github.com/aws/aws-sdk-go/service/mobile/mobileiface/interface.go
generated
vendored
Normal file
106
vendor/github.com/aws/aws-sdk-go/service/mobile/mobileiface/interface.go
generated
vendored
Normal file
@@ -0,0 +1,106 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package mobileiface provides an interface to enable mocking the AWS Mobile 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 mobileiface
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/service/mobile"
|
||||
)
|
||||
|
||||
// MobileAPI provides an interface to enable mocking the
|
||||
// mobile.Mobile 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
|
||||
// // AWS Mobile.
|
||||
// func myFunc(svc mobileiface.MobileAPI) bool {
|
||||
// // Make svc.CreateProject request
|
||||
// }
|
||||
//
|
||||
// func main() {
|
||||
// sess := session.New()
|
||||
// svc := mobile.New(sess)
|
||||
//
|
||||
// myFunc(svc)
|
||||
// }
|
||||
//
|
||||
// In your _test.go file:
|
||||
//
|
||||
// // Define a mock struct to be used in your unit tests of myFunc.
|
||||
// type mockMobileClient struct {
|
||||
// mobileiface.MobileAPI
|
||||
// }
|
||||
// func (m *mockMobileClient) CreateProject(input *mobile.CreateProjectInput) (*mobile.CreateProjectOutput, error) {
|
||||
// // mock response/functionality
|
||||
// }
|
||||
//
|
||||
// func TestMyFunc(t *testing.T) {
|
||||
// // Setup Test
|
||||
// mockSvc := &mockMobileClient{}
|
||||
//
|
||||
// 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 MobileAPI interface {
|
||||
CreateProject(*mobile.CreateProjectInput) (*mobile.CreateProjectOutput, error)
|
||||
CreateProjectWithContext(aws.Context, *mobile.CreateProjectInput, ...request.Option) (*mobile.CreateProjectOutput, error)
|
||||
CreateProjectRequest(*mobile.CreateProjectInput) (*request.Request, *mobile.CreateProjectOutput)
|
||||
|
||||
DeleteProject(*mobile.DeleteProjectInput) (*mobile.DeleteProjectOutput, error)
|
||||
DeleteProjectWithContext(aws.Context, *mobile.DeleteProjectInput, ...request.Option) (*mobile.DeleteProjectOutput, error)
|
||||
DeleteProjectRequest(*mobile.DeleteProjectInput) (*request.Request, *mobile.DeleteProjectOutput)
|
||||
|
||||
DescribeBundle(*mobile.DescribeBundleInput) (*mobile.DescribeBundleOutput, error)
|
||||
DescribeBundleWithContext(aws.Context, *mobile.DescribeBundleInput, ...request.Option) (*mobile.DescribeBundleOutput, error)
|
||||
DescribeBundleRequest(*mobile.DescribeBundleInput) (*request.Request, *mobile.DescribeBundleOutput)
|
||||
|
||||
DescribeProject(*mobile.DescribeProjectInput) (*mobile.DescribeProjectOutput, error)
|
||||
DescribeProjectWithContext(aws.Context, *mobile.DescribeProjectInput, ...request.Option) (*mobile.DescribeProjectOutput, error)
|
||||
DescribeProjectRequest(*mobile.DescribeProjectInput) (*request.Request, *mobile.DescribeProjectOutput)
|
||||
|
||||
ExportBundle(*mobile.ExportBundleInput) (*mobile.ExportBundleOutput, error)
|
||||
ExportBundleWithContext(aws.Context, *mobile.ExportBundleInput, ...request.Option) (*mobile.ExportBundleOutput, error)
|
||||
ExportBundleRequest(*mobile.ExportBundleInput) (*request.Request, *mobile.ExportBundleOutput)
|
||||
|
||||
ExportProject(*mobile.ExportProjectInput) (*mobile.ExportProjectOutput, error)
|
||||
ExportProjectWithContext(aws.Context, *mobile.ExportProjectInput, ...request.Option) (*mobile.ExportProjectOutput, error)
|
||||
ExportProjectRequest(*mobile.ExportProjectInput) (*request.Request, *mobile.ExportProjectOutput)
|
||||
|
||||
ListBundles(*mobile.ListBundlesInput) (*mobile.ListBundlesOutput, error)
|
||||
ListBundlesWithContext(aws.Context, *mobile.ListBundlesInput, ...request.Option) (*mobile.ListBundlesOutput, error)
|
||||
ListBundlesRequest(*mobile.ListBundlesInput) (*request.Request, *mobile.ListBundlesOutput)
|
||||
|
||||
ListBundlesPages(*mobile.ListBundlesInput, func(*mobile.ListBundlesOutput, bool) bool) error
|
||||
ListBundlesPagesWithContext(aws.Context, *mobile.ListBundlesInput, func(*mobile.ListBundlesOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListProjects(*mobile.ListProjectsInput) (*mobile.ListProjectsOutput, error)
|
||||
ListProjectsWithContext(aws.Context, *mobile.ListProjectsInput, ...request.Option) (*mobile.ListProjectsOutput, error)
|
||||
ListProjectsRequest(*mobile.ListProjectsInput) (*request.Request, *mobile.ListProjectsOutput)
|
||||
|
||||
ListProjectsPages(*mobile.ListProjectsInput, func(*mobile.ListProjectsOutput, bool) bool) error
|
||||
ListProjectsPagesWithContext(aws.Context, *mobile.ListProjectsInput, func(*mobile.ListProjectsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
UpdateProject(*mobile.UpdateProjectInput) (*mobile.UpdateProjectOutput, error)
|
||||
UpdateProjectWithContext(aws.Context, *mobile.UpdateProjectInput, ...request.Option) (*mobile.UpdateProjectOutput, error)
|
||||
UpdateProjectRequest(*mobile.UpdateProjectInput) (*request.Request, *mobile.UpdateProjectOutput)
|
||||
}
|
||||
|
||||
var _ MobileAPI = (*mobile.Mobile)(nil)
|
||||
97
vendor/github.com/aws/aws-sdk-go/service/mobile/service.go
generated
vendored
Normal file
97
vendor/github.com/aws/aws-sdk-go/service/mobile/service.go
generated
vendored
Normal file
@@ -0,0 +1,97 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package mobile
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// Mobile provides the API operation methods for making requests to
|
||||
// AWS Mobile. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// Mobile methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type Mobile 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 = "mobile" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
)
|
||||
|
||||
// New creates a new instance of the Mobile 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 Mobile client from just a session.
|
||||
// svc := mobile.New(mySession)
|
||||
//
|
||||
// // Create a Mobile client with additional configuration
|
||||
// svc := mobile.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
|
||||
func New(p client.ConfigProvider, cfgs ...*aws.Config) *Mobile {
|
||||
c := p.ClientConfig(EndpointsID, cfgs...)
|
||||
if c.SigningNameDerived || len(c.SigningName) == 0 {
|
||||
c.SigningName = "AWSMobileHubService"
|
||||
}
|
||||
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) *Mobile {
|
||||
svc := &Mobile{
|
||||
Client: client.New(
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
APIVersion: "2017-07-01",
|
||||
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 Mobile operation and runs any
|
||||
// custom request initialization.
|
||||
func (c *Mobile) 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
|
||||
}
|
||||
Reference in New Issue
Block a user