Vendor aws-sdk-go (dep ensure) (#178)
This commit is contained in:
5325
vendor/github.com/aws/aws-sdk-go/service/servicediscovery/api.go
generated
vendored
Normal file
5325
vendor/github.com/aws/aws-sdk-go/service/servicediscovery/api.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
33
vendor/github.com/aws/aws-sdk-go/service/servicediscovery/doc.go
generated
vendored
Normal file
33
vendor/github.com/aws/aws-sdk-go/service/servicediscovery/doc.go
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package servicediscovery provides the client and types for making API
|
||||
// requests to Amazon Route 53 Auto Naming.
|
||||
//
|
||||
// Amazon Route 53 auto naming lets you configure public or private namespaces
|
||||
// that your microservice applications run in. When instances of the service
|
||||
// become available, you can call the auto naming API to register the instance,
|
||||
// and Route 53 automatically creates up to five DNS records and an optional
|
||||
// health check. Clients that submit DNS queries for the service receive an
|
||||
// answer that contains up to eight healthy records.
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14 for more information on this service.
|
||||
//
|
||||
// See servicediscovery package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/servicediscovery/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To contact Amazon Route 53 Auto Naming 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 Amazon Route 53 Auto Naming client ServiceDiscovery for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/servicediscovery/#New
|
||||
package servicediscovery
|
||||
75
vendor/github.com/aws/aws-sdk-go/service/servicediscovery/errors.go
generated
vendored
Normal file
75
vendor/github.com/aws/aws-sdk-go/service/servicediscovery/errors.go
generated
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package servicediscovery
|
||||
|
||||
const (
|
||||
|
||||
// ErrCodeCustomHealthNotFound for service response error code
|
||||
// "CustomHealthNotFound".
|
||||
ErrCodeCustomHealthNotFound = "CustomHealthNotFound"
|
||||
|
||||
// ErrCodeDuplicateRequest for service response error code
|
||||
// "DuplicateRequest".
|
||||
//
|
||||
// The operation is already in progress.
|
||||
ErrCodeDuplicateRequest = "DuplicateRequest"
|
||||
|
||||
// ErrCodeInstanceNotFound for service response error code
|
||||
// "InstanceNotFound".
|
||||
//
|
||||
// No instance exists with the specified ID, or the instance was recently registered,
|
||||
// and information about the instance hasn't propagated yet.
|
||||
ErrCodeInstanceNotFound = "InstanceNotFound"
|
||||
|
||||
// ErrCodeInvalidInput for service response error code
|
||||
// "InvalidInput".
|
||||
//
|
||||
// One or more specified values aren't valid. For example, when you're creating
|
||||
// a namespace, the value of Name might not be a valid DNS name.
|
||||
ErrCodeInvalidInput = "InvalidInput"
|
||||
|
||||
// ErrCodeNamespaceAlreadyExists for service response error code
|
||||
// "NamespaceAlreadyExists".
|
||||
//
|
||||
// The namespace that you're trying to create already exists.
|
||||
ErrCodeNamespaceAlreadyExists = "NamespaceAlreadyExists"
|
||||
|
||||
// ErrCodeNamespaceNotFound for service response error code
|
||||
// "NamespaceNotFound".
|
||||
//
|
||||
// No namespace exists with the specified ID.
|
||||
ErrCodeNamespaceNotFound = "NamespaceNotFound"
|
||||
|
||||
// ErrCodeOperationNotFound for service response error code
|
||||
// "OperationNotFound".
|
||||
//
|
||||
// No operation exists with the specified ID.
|
||||
ErrCodeOperationNotFound = "OperationNotFound"
|
||||
|
||||
// ErrCodeResourceInUse for service response error code
|
||||
// "ResourceInUse".
|
||||
//
|
||||
// The specified resource can't be deleted because it contains other resources.
|
||||
// For example, you can't delete a service that contains any instances.
|
||||
ErrCodeResourceInUse = "ResourceInUse"
|
||||
|
||||
// ErrCodeResourceLimitExceeded for service response error code
|
||||
// "ResourceLimitExceeded".
|
||||
//
|
||||
// The resource can't be created because you've reached the limit on the number
|
||||
// of resources.
|
||||
ErrCodeResourceLimitExceeded = "ResourceLimitExceeded"
|
||||
|
||||
// ErrCodeServiceAlreadyExists for service response error code
|
||||
// "ServiceAlreadyExists".
|
||||
//
|
||||
// The service can't be created because a service with the same name already
|
||||
// exists.
|
||||
ErrCodeServiceAlreadyExists = "ServiceAlreadyExists"
|
||||
|
||||
// ErrCodeServiceNotFound for service response error code
|
||||
// "ServiceNotFound".
|
||||
//
|
||||
// No service exists with the specified ID.
|
||||
ErrCodeServiceNotFound = "ServiceNotFound"
|
||||
)
|
||||
95
vendor/github.com/aws/aws-sdk-go/service/servicediscovery/service.go
generated
vendored
Normal file
95
vendor/github.com/aws/aws-sdk-go/service/servicediscovery/service.go
generated
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package servicediscovery
|
||||
|
||||
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/jsonrpc"
|
||||
)
|
||||
|
||||
// ServiceDiscovery provides the API operation methods for making requests to
|
||||
// Amazon Route 53 Auto Naming. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// ServiceDiscovery methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type ServiceDiscovery 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 = "servicediscovery" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
)
|
||||
|
||||
// New creates a new instance of the ServiceDiscovery 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 ServiceDiscovery client from just a session.
|
||||
// svc := servicediscovery.New(mySession)
|
||||
//
|
||||
// // Create a ServiceDiscovery client with additional configuration
|
||||
// svc := servicediscovery.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
|
||||
func New(p client.ConfigProvider, cfgs ...*aws.Config) *ServiceDiscovery {
|
||||
c := p.ClientConfig(EndpointsID, cfgs...)
|
||||
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) *ServiceDiscovery {
|
||||
svc := &ServiceDiscovery{
|
||||
Client: client.New(
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
APIVersion: "2017-03-14",
|
||||
JSONVersion: "1.1",
|
||||
TargetPrefix: "Route53AutoNaming_v20170314",
|
||||
},
|
||||
handlers,
|
||||
),
|
||||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
|
||||
|
||||
// Run custom client initialization if present
|
||||
if initClient != nil {
|
||||
initClient(svc.Client)
|
||||
}
|
||||
|
||||
return svc
|
||||
}
|
||||
|
||||
// newRequest creates a new request for a ServiceDiscovery operation and runs any
|
||||
// custom request initialization.
|
||||
func (c *ServiceDiscovery) 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
|
||||
}
|
||||
151
vendor/github.com/aws/aws-sdk-go/service/servicediscovery/servicediscoveryiface/interface.go
generated
vendored
Normal file
151
vendor/github.com/aws/aws-sdk-go/service/servicediscovery/servicediscoveryiface/interface.go
generated
vendored
Normal file
@@ -0,0 +1,151 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package servicediscoveryiface provides an interface to enable mocking the Amazon Route 53 Auto Naming 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 servicediscoveryiface
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/service/servicediscovery"
|
||||
)
|
||||
|
||||
// ServiceDiscoveryAPI provides an interface to enable mocking the
|
||||
// servicediscovery.ServiceDiscovery 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
|
||||
// // Amazon Route 53 Auto Naming.
|
||||
// func myFunc(svc servicediscoveryiface.ServiceDiscoveryAPI) bool {
|
||||
// // Make svc.CreatePrivateDnsNamespace request
|
||||
// }
|
||||
//
|
||||
// func main() {
|
||||
// sess := session.New()
|
||||
// svc := servicediscovery.New(sess)
|
||||
//
|
||||
// myFunc(svc)
|
||||
// }
|
||||
//
|
||||
// In your _test.go file:
|
||||
//
|
||||
// // Define a mock struct to be used in your unit tests of myFunc.
|
||||
// type mockServiceDiscoveryClient struct {
|
||||
// servicediscoveryiface.ServiceDiscoveryAPI
|
||||
// }
|
||||
// func (m *mockServiceDiscoveryClient) CreatePrivateDnsNamespace(input *servicediscovery.CreatePrivateDnsNamespaceInput) (*servicediscovery.CreatePrivateDnsNamespaceOutput, error) {
|
||||
// // mock response/functionality
|
||||
// }
|
||||
//
|
||||
// func TestMyFunc(t *testing.T) {
|
||||
// // Setup Test
|
||||
// mockSvc := &mockServiceDiscoveryClient{}
|
||||
//
|
||||
// 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 ServiceDiscoveryAPI interface {
|
||||
CreatePrivateDnsNamespace(*servicediscovery.CreatePrivateDnsNamespaceInput) (*servicediscovery.CreatePrivateDnsNamespaceOutput, error)
|
||||
CreatePrivateDnsNamespaceWithContext(aws.Context, *servicediscovery.CreatePrivateDnsNamespaceInput, ...request.Option) (*servicediscovery.CreatePrivateDnsNamespaceOutput, error)
|
||||
CreatePrivateDnsNamespaceRequest(*servicediscovery.CreatePrivateDnsNamespaceInput) (*request.Request, *servicediscovery.CreatePrivateDnsNamespaceOutput)
|
||||
|
||||
CreatePublicDnsNamespace(*servicediscovery.CreatePublicDnsNamespaceInput) (*servicediscovery.CreatePublicDnsNamespaceOutput, error)
|
||||
CreatePublicDnsNamespaceWithContext(aws.Context, *servicediscovery.CreatePublicDnsNamespaceInput, ...request.Option) (*servicediscovery.CreatePublicDnsNamespaceOutput, error)
|
||||
CreatePublicDnsNamespaceRequest(*servicediscovery.CreatePublicDnsNamespaceInput) (*request.Request, *servicediscovery.CreatePublicDnsNamespaceOutput)
|
||||
|
||||
CreateService(*servicediscovery.CreateServiceInput) (*servicediscovery.CreateServiceOutput, error)
|
||||
CreateServiceWithContext(aws.Context, *servicediscovery.CreateServiceInput, ...request.Option) (*servicediscovery.CreateServiceOutput, error)
|
||||
CreateServiceRequest(*servicediscovery.CreateServiceInput) (*request.Request, *servicediscovery.CreateServiceOutput)
|
||||
|
||||
DeleteNamespace(*servicediscovery.DeleteNamespaceInput) (*servicediscovery.DeleteNamespaceOutput, error)
|
||||
DeleteNamespaceWithContext(aws.Context, *servicediscovery.DeleteNamespaceInput, ...request.Option) (*servicediscovery.DeleteNamespaceOutput, error)
|
||||
DeleteNamespaceRequest(*servicediscovery.DeleteNamespaceInput) (*request.Request, *servicediscovery.DeleteNamespaceOutput)
|
||||
|
||||
DeleteService(*servicediscovery.DeleteServiceInput) (*servicediscovery.DeleteServiceOutput, error)
|
||||
DeleteServiceWithContext(aws.Context, *servicediscovery.DeleteServiceInput, ...request.Option) (*servicediscovery.DeleteServiceOutput, error)
|
||||
DeleteServiceRequest(*servicediscovery.DeleteServiceInput) (*request.Request, *servicediscovery.DeleteServiceOutput)
|
||||
|
||||
DeregisterInstance(*servicediscovery.DeregisterInstanceInput) (*servicediscovery.DeregisterInstanceOutput, error)
|
||||
DeregisterInstanceWithContext(aws.Context, *servicediscovery.DeregisterInstanceInput, ...request.Option) (*servicediscovery.DeregisterInstanceOutput, error)
|
||||
DeregisterInstanceRequest(*servicediscovery.DeregisterInstanceInput) (*request.Request, *servicediscovery.DeregisterInstanceOutput)
|
||||
|
||||
GetInstance(*servicediscovery.GetInstanceInput) (*servicediscovery.GetInstanceOutput, error)
|
||||
GetInstanceWithContext(aws.Context, *servicediscovery.GetInstanceInput, ...request.Option) (*servicediscovery.GetInstanceOutput, error)
|
||||
GetInstanceRequest(*servicediscovery.GetInstanceInput) (*request.Request, *servicediscovery.GetInstanceOutput)
|
||||
|
||||
GetInstancesHealthStatus(*servicediscovery.GetInstancesHealthStatusInput) (*servicediscovery.GetInstancesHealthStatusOutput, error)
|
||||
GetInstancesHealthStatusWithContext(aws.Context, *servicediscovery.GetInstancesHealthStatusInput, ...request.Option) (*servicediscovery.GetInstancesHealthStatusOutput, error)
|
||||
GetInstancesHealthStatusRequest(*servicediscovery.GetInstancesHealthStatusInput) (*request.Request, *servicediscovery.GetInstancesHealthStatusOutput)
|
||||
|
||||
GetInstancesHealthStatusPages(*servicediscovery.GetInstancesHealthStatusInput, func(*servicediscovery.GetInstancesHealthStatusOutput, bool) bool) error
|
||||
GetInstancesHealthStatusPagesWithContext(aws.Context, *servicediscovery.GetInstancesHealthStatusInput, func(*servicediscovery.GetInstancesHealthStatusOutput, bool) bool, ...request.Option) error
|
||||
|
||||
GetNamespace(*servicediscovery.GetNamespaceInput) (*servicediscovery.GetNamespaceOutput, error)
|
||||
GetNamespaceWithContext(aws.Context, *servicediscovery.GetNamespaceInput, ...request.Option) (*servicediscovery.GetNamespaceOutput, error)
|
||||
GetNamespaceRequest(*servicediscovery.GetNamespaceInput) (*request.Request, *servicediscovery.GetNamespaceOutput)
|
||||
|
||||
GetOperation(*servicediscovery.GetOperationInput) (*servicediscovery.GetOperationOutput, error)
|
||||
GetOperationWithContext(aws.Context, *servicediscovery.GetOperationInput, ...request.Option) (*servicediscovery.GetOperationOutput, error)
|
||||
GetOperationRequest(*servicediscovery.GetOperationInput) (*request.Request, *servicediscovery.GetOperationOutput)
|
||||
|
||||
GetService(*servicediscovery.GetServiceInput) (*servicediscovery.GetServiceOutput, error)
|
||||
GetServiceWithContext(aws.Context, *servicediscovery.GetServiceInput, ...request.Option) (*servicediscovery.GetServiceOutput, error)
|
||||
GetServiceRequest(*servicediscovery.GetServiceInput) (*request.Request, *servicediscovery.GetServiceOutput)
|
||||
|
||||
ListInstances(*servicediscovery.ListInstancesInput) (*servicediscovery.ListInstancesOutput, error)
|
||||
ListInstancesWithContext(aws.Context, *servicediscovery.ListInstancesInput, ...request.Option) (*servicediscovery.ListInstancesOutput, error)
|
||||
ListInstancesRequest(*servicediscovery.ListInstancesInput) (*request.Request, *servicediscovery.ListInstancesOutput)
|
||||
|
||||
ListInstancesPages(*servicediscovery.ListInstancesInput, func(*servicediscovery.ListInstancesOutput, bool) bool) error
|
||||
ListInstancesPagesWithContext(aws.Context, *servicediscovery.ListInstancesInput, func(*servicediscovery.ListInstancesOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListNamespaces(*servicediscovery.ListNamespacesInput) (*servicediscovery.ListNamespacesOutput, error)
|
||||
ListNamespacesWithContext(aws.Context, *servicediscovery.ListNamespacesInput, ...request.Option) (*servicediscovery.ListNamespacesOutput, error)
|
||||
ListNamespacesRequest(*servicediscovery.ListNamespacesInput) (*request.Request, *servicediscovery.ListNamespacesOutput)
|
||||
|
||||
ListNamespacesPages(*servicediscovery.ListNamespacesInput, func(*servicediscovery.ListNamespacesOutput, bool) bool) error
|
||||
ListNamespacesPagesWithContext(aws.Context, *servicediscovery.ListNamespacesInput, func(*servicediscovery.ListNamespacesOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListOperations(*servicediscovery.ListOperationsInput) (*servicediscovery.ListOperationsOutput, error)
|
||||
ListOperationsWithContext(aws.Context, *servicediscovery.ListOperationsInput, ...request.Option) (*servicediscovery.ListOperationsOutput, error)
|
||||
ListOperationsRequest(*servicediscovery.ListOperationsInput) (*request.Request, *servicediscovery.ListOperationsOutput)
|
||||
|
||||
ListOperationsPages(*servicediscovery.ListOperationsInput, func(*servicediscovery.ListOperationsOutput, bool) bool) error
|
||||
ListOperationsPagesWithContext(aws.Context, *servicediscovery.ListOperationsInput, func(*servicediscovery.ListOperationsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListServices(*servicediscovery.ListServicesInput) (*servicediscovery.ListServicesOutput, error)
|
||||
ListServicesWithContext(aws.Context, *servicediscovery.ListServicesInput, ...request.Option) (*servicediscovery.ListServicesOutput, error)
|
||||
ListServicesRequest(*servicediscovery.ListServicesInput) (*request.Request, *servicediscovery.ListServicesOutput)
|
||||
|
||||
ListServicesPages(*servicediscovery.ListServicesInput, func(*servicediscovery.ListServicesOutput, bool) bool) error
|
||||
ListServicesPagesWithContext(aws.Context, *servicediscovery.ListServicesInput, func(*servicediscovery.ListServicesOutput, bool) bool, ...request.Option) error
|
||||
|
||||
RegisterInstance(*servicediscovery.RegisterInstanceInput) (*servicediscovery.RegisterInstanceOutput, error)
|
||||
RegisterInstanceWithContext(aws.Context, *servicediscovery.RegisterInstanceInput, ...request.Option) (*servicediscovery.RegisterInstanceOutput, error)
|
||||
RegisterInstanceRequest(*servicediscovery.RegisterInstanceInput) (*request.Request, *servicediscovery.RegisterInstanceOutput)
|
||||
|
||||
UpdateInstanceCustomHealthStatus(*servicediscovery.UpdateInstanceCustomHealthStatusInput) (*servicediscovery.UpdateInstanceCustomHealthStatusOutput, error)
|
||||
UpdateInstanceCustomHealthStatusWithContext(aws.Context, *servicediscovery.UpdateInstanceCustomHealthStatusInput, ...request.Option) (*servicediscovery.UpdateInstanceCustomHealthStatusOutput, error)
|
||||
UpdateInstanceCustomHealthStatusRequest(*servicediscovery.UpdateInstanceCustomHealthStatusInput) (*request.Request, *servicediscovery.UpdateInstanceCustomHealthStatusOutput)
|
||||
|
||||
UpdateService(*servicediscovery.UpdateServiceInput) (*servicediscovery.UpdateServiceOutput, error)
|
||||
UpdateServiceWithContext(aws.Context, *servicediscovery.UpdateServiceInput, ...request.Option) (*servicediscovery.UpdateServiceOutput, error)
|
||||
UpdateServiceRequest(*servicediscovery.UpdateServiceInput) (*request.Request, *servicediscovery.UpdateServiceOutput)
|
||||
}
|
||||
|
||||
var _ ServiceDiscoveryAPI = (*servicediscovery.ServiceDiscovery)(nil)
|
||||
Reference in New Issue
Block a user