Vendor aws-sdk-go (dep ensure) (#178)
This commit is contained in:
2479
vendor/github.com/aws/aws-sdk-go/service/cloudhsmv2/api.go
generated
vendored
Normal file
2479
vendor/github.com/aws/aws-sdk-go/service/cloudhsmv2/api.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
113
vendor/github.com/aws/aws-sdk-go/service/cloudhsmv2/cloudhsmv2iface/interface.go
generated
vendored
Normal file
113
vendor/github.com/aws/aws-sdk-go/service/cloudhsmv2/cloudhsmv2iface/interface.go
generated
vendored
Normal file
@@ -0,0 +1,113 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package cloudhsmv2iface provides an interface to enable mocking the AWS CloudHSM V2 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 cloudhsmv2iface
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/service/cloudhsmv2"
|
||||
)
|
||||
|
||||
// CloudHSMV2API provides an interface to enable mocking the
|
||||
// cloudhsmv2.CloudHSMV2 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 CloudHSM V2.
|
||||
// func myFunc(svc cloudhsmv2iface.CloudHSMV2API) bool {
|
||||
// // Make svc.CreateCluster request
|
||||
// }
|
||||
//
|
||||
// func main() {
|
||||
// sess := session.New()
|
||||
// svc := cloudhsmv2.New(sess)
|
||||
//
|
||||
// myFunc(svc)
|
||||
// }
|
||||
//
|
||||
// In your _test.go file:
|
||||
//
|
||||
// // Define a mock struct to be used in your unit tests of myFunc.
|
||||
// type mockCloudHSMV2Client struct {
|
||||
// cloudhsmv2iface.CloudHSMV2API
|
||||
// }
|
||||
// func (m *mockCloudHSMV2Client) CreateCluster(input *cloudhsmv2.CreateClusterInput) (*cloudhsmv2.CreateClusterOutput, error) {
|
||||
// // mock response/functionality
|
||||
// }
|
||||
//
|
||||
// func TestMyFunc(t *testing.T) {
|
||||
// // Setup Test
|
||||
// mockSvc := &mockCloudHSMV2Client{}
|
||||
//
|
||||
// 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 CloudHSMV2API interface {
|
||||
CreateCluster(*cloudhsmv2.CreateClusterInput) (*cloudhsmv2.CreateClusterOutput, error)
|
||||
CreateClusterWithContext(aws.Context, *cloudhsmv2.CreateClusterInput, ...request.Option) (*cloudhsmv2.CreateClusterOutput, error)
|
||||
CreateClusterRequest(*cloudhsmv2.CreateClusterInput) (*request.Request, *cloudhsmv2.CreateClusterOutput)
|
||||
|
||||
CreateHsm(*cloudhsmv2.CreateHsmInput) (*cloudhsmv2.CreateHsmOutput, error)
|
||||
CreateHsmWithContext(aws.Context, *cloudhsmv2.CreateHsmInput, ...request.Option) (*cloudhsmv2.CreateHsmOutput, error)
|
||||
CreateHsmRequest(*cloudhsmv2.CreateHsmInput) (*request.Request, *cloudhsmv2.CreateHsmOutput)
|
||||
|
||||
DeleteCluster(*cloudhsmv2.DeleteClusterInput) (*cloudhsmv2.DeleteClusterOutput, error)
|
||||
DeleteClusterWithContext(aws.Context, *cloudhsmv2.DeleteClusterInput, ...request.Option) (*cloudhsmv2.DeleteClusterOutput, error)
|
||||
DeleteClusterRequest(*cloudhsmv2.DeleteClusterInput) (*request.Request, *cloudhsmv2.DeleteClusterOutput)
|
||||
|
||||
DeleteHsm(*cloudhsmv2.DeleteHsmInput) (*cloudhsmv2.DeleteHsmOutput, error)
|
||||
DeleteHsmWithContext(aws.Context, *cloudhsmv2.DeleteHsmInput, ...request.Option) (*cloudhsmv2.DeleteHsmOutput, error)
|
||||
DeleteHsmRequest(*cloudhsmv2.DeleteHsmInput) (*request.Request, *cloudhsmv2.DeleteHsmOutput)
|
||||
|
||||
DescribeBackups(*cloudhsmv2.DescribeBackupsInput) (*cloudhsmv2.DescribeBackupsOutput, error)
|
||||
DescribeBackupsWithContext(aws.Context, *cloudhsmv2.DescribeBackupsInput, ...request.Option) (*cloudhsmv2.DescribeBackupsOutput, error)
|
||||
DescribeBackupsRequest(*cloudhsmv2.DescribeBackupsInput) (*request.Request, *cloudhsmv2.DescribeBackupsOutput)
|
||||
|
||||
DescribeBackupsPages(*cloudhsmv2.DescribeBackupsInput, func(*cloudhsmv2.DescribeBackupsOutput, bool) bool) error
|
||||
DescribeBackupsPagesWithContext(aws.Context, *cloudhsmv2.DescribeBackupsInput, func(*cloudhsmv2.DescribeBackupsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
DescribeClusters(*cloudhsmv2.DescribeClustersInput) (*cloudhsmv2.DescribeClustersOutput, error)
|
||||
DescribeClustersWithContext(aws.Context, *cloudhsmv2.DescribeClustersInput, ...request.Option) (*cloudhsmv2.DescribeClustersOutput, error)
|
||||
DescribeClustersRequest(*cloudhsmv2.DescribeClustersInput) (*request.Request, *cloudhsmv2.DescribeClustersOutput)
|
||||
|
||||
DescribeClustersPages(*cloudhsmv2.DescribeClustersInput, func(*cloudhsmv2.DescribeClustersOutput, bool) bool) error
|
||||
DescribeClustersPagesWithContext(aws.Context, *cloudhsmv2.DescribeClustersInput, func(*cloudhsmv2.DescribeClustersOutput, bool) bool, ...request.Option) error
|
||||
|
||||
InitializeCluster(*cloudhsmv2.InitializeClusterInput) (*cloudhsmv2.InitializeClusterOutput, error)
|
||||
InitializeClusterWithContext(aws.Context, *cloudhsmv2.InitializeClusterInput, ...request.Option) (*cloudhsmv2.InitializeClusterOutput, error)
|
||||
InitializeClusterRequest(*cloudhsmv2.InitializeClusterInput) (*request.Request, *cloudhsmv2.InitializeClusterOutput)
|
||||
|
||||
ListTags(*cloudhsmv2.ListTagsInput) (*cloudhsmv2.ListTagsOutput, error)
|
||||
ListTagsWithContext(aws.Context, *cloudhsmv2.ListTagsInput, ...request.Option) (*cloudhsmv2.ListTagsOutput, error)
|
||||
ListTagsRequest(*cloudhsmv2.ListTagsInput) (*request.Request, *cloudhsmv2.ListTagsOutput)
|
||||
|
||||
ListTagsPages(*cloudhsmv2.ListTagsInput, func(*cloudhsmv2.ListTagsOutput, bool) bool) error
|
||||
ListTagsPagesWithContext(aws.Context, *cloudhsmv2.ListTagsInput, func(*cloudhsmv2.ListTagsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
TagResource(*cloudhsmv2.TagResourceInput) (*cloudhsmv2.TagResourceOutput, error)
|
||||
TagResourceWithContext(aws.Context, *cloudhsmv2.TagResourceInput, ...request.Option) (*cloudhsmv2.TagResourceOutput, error)
|
||||
TagResourceRequest(*cloudhsmv2.TagResourceInput) (*request.Request, *cloudhsmv2.TagResourceOutput)
|
||||
|
||||
UntagResource(*cloudhsmv2.UntagResourceInput) (*cloudhsmv2.UntagResourceOutput, error)
|
||||
UntagResourceWithContext(aws.Context, *cloudhsmv2.UntagResourceInput, ...request.Option) (*cloudhsmv2.UntagResourceOutput, error)
|
||||
UntagResourceRequest(*cloudhsmv2.UntagResourceInput) (*request.Request, *cloudhsmv2.UntagResourceOutput)
|
||||
}
|
||||
|
||||
var _ CloudHSMV2API = (*cloudhsmv2.CloudHSMV2)(nil)
|
||||
29
vendor/github.com/aws/aws-sdk-go/service/cloudhsmv2/doc.go
generated
vendored
Normal file
29
vendor/github.com/aws/aws-sdk-go/service/cloudhsmv2/doc.go
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package cloudhsmv2 provides the client and types for making API
|
||||
// requests to AWS CloudHSM V2.
|
||||
//
|
||||
// For more information about AWS CloudHSM, see AWS CloudHSM (http://aws.amazon.com/cloudhsm/)
|
||||
// and the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/).
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28 for more information on this service.
|
||||
//
|
||||
// See cloudhsmv2 package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/cloudhsmv2/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To contact AWS CloudHSM V2 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 CloudHSM V2 client CloudHSMV2 for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/cloudhsmv2/#New
|
||||
package cloudhsmv2
|
||||
38
vendor/github.com/aws/aws-sdk-go/service/cloudhsmv2/errors.go
generated
vendored
Normal file
38
vendor/github.com/aws/aws-sdk-go/service/cloudhsmv2/errors.go
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package cloudhsmv2
|
||||
|
||||
const (
|
||||
|
||||
// ErrCodeCloudHsmAccessDeniedException for service response error code
|
||||
// "CloudHsmAccessDeniedException".
|
||||
//
|
||||
// The request was rejected because the requester does not have permission to
|
||||
// perform the requested operation.
|
||||
ErrCodeCloudHsmAccessDeniedException = "CloudHsmAccessDeniedException"
|
||||
|
||||
// ErrCodeCloudHsmInternalFailureException for service response error code
|
||||
// "CloudHsmInternalFailureException".
|
||||
//
|
||||
// The request was rejected because of an AWS CloudHSM internal failure. The
|
||||
// request can be retried.
|
||||
ErrCodeCloudHsmInternalFailureException = "CloudHsmInternalFailureException"
|
||||
|
||||
// ErrCodeCloudHsmInvalidRequestException for service response error code
|
||||
// "CloudHsmInvalidRequestException".
|
||||
//
|
||||
// The request was rejected because it is not a valid request.
|
||||
ErrCodeCloudHsmInvalidRequestException = "CloudHsmInvalidRequestException"
|
||||
|
||||
// ErrCodeCloudHsmResourceNotFoundException for service response error code
|
||||
// "CloudHsmResourceNotFoundException".
|
||||
//
|
||||
// The request was rejected because it refers to a resource that cannot be found.
|
||||
ErrCodeCloudHsmResourceNotFoundException = "CloudHsmResourceNotFoundException"
|
||||
|
||||
// ErrCodeCloudHsmServiceException for service response error code
|
||||
// "CloudHsmServiceException".
|
||||
//
|
||||
// The request was rejected because an error occurred.
|
||||
ErrCodeCloudHsmServiceException = "CloudHsmServiceException"
|
||||
)
|
||||
98
vendor/github.com/aws/aws-sdk-go/service/cloudhsmv2/service.go
generated
vendored
Normal file
98
vendor/github.com/aws/aws-sdk-go/service/cloudhsmv2/service.go
generated
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package cloudhsmv2
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// CloudHSMV2 provides the API operation methods for making requests to
|
||||
// AWS CloudHSM V2. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// CloudHSMV2 methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type CloudHSMV2 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 = "cloudhsmv2" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
)
|
||||
|
||||
// New creates a new instance of the CloudHSMV2 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 CloudHSMV2 client from just a session.
|
||||
// svc := cloudhsmv2.New(mySession)
|
||||
//
|
||||
// // Create a CloudHSMV2 client with additional configuration
|
||||
// svc := cloudhsmv2.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
|
||||
func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudHSMV2 {
|
||||
c := p.ClientConfig(EndpointsID, cfgs...)
|
||||
if c.SigningNameDerived || len(c.SigningName) == 0 {
|
||||
c.SigningName = "cloudhsm"
|
||||
}
|
||||
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) *CloudHSMV2 {
|
||||
svc := &CloudHSMV2{
|
||||
Client: client.New(
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
APIVersion: "2017-04-28",
|
||||
JSONVersion: "1.1",
|
||||
TargetPrefix: "BaldrApiService",
|
||||
},
|
||||
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 CloudHSMV2 operation and runs any
|
||||
// custom request initialization.
|
||||
func (c *CloudHSMV2) 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