Switch to using the dep tool and update all the dependencies

This commit is contained in:
Nick Craig-Wood 2017-05-11 15:39:54 +01:00
parent 5135ff73cb
commit 98c2d2c41b
5321 changed files with 4483201 additions and 5922 deletions

View file

@ -0,0 +1,107 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package acmiface provides an interface to enable mocking the AWS Certificate Manager 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 acmiface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/acm"
)
// ACMAPI provides an interface to enable mocking the
// acm.ACM 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 the SDK's request pipeline.
//
// // myFunc uses an SDK service client to make a request to
// // AWS Certificate Manager.
// func myFunc(svc acmiface.ACMAPI) bool {
// // Make svc.AddTagsToCertificate request
// }
//
// func main() {
// sess := session.New()
// svc := acm.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockACMClient struct {
// acmiface.ACMAPI
// }
// func (m *mockACMClient) AddTagsToCertificate(input *acm.AddTagsToCertificateInput) (*acm.AddTagsToCertificateOutput, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockACMClient{}
//
// 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 ACMAPI interface {
AddTagsToCertificate(*acm.AddTagsToCertificateInput) (*acm.AddTagsToCertificateOutput, error)
AddTagsToCertificateWithContext(aws.Context, *acm.AddTagsToCertificateInput, ...request.Option) (*acm.AddTagsToCertificateOutput, error)
AddTagsToCertificateRequest(*acm.AddTagsToCertificateInput) (*request.Request, *acm.AddTagsToCertificateOutput)
DeleteCertificate(*acm.DeleteCertificateInput) (*acm.DeleteCertificateOutput, error)
DeleteCertificateWithContext(aws.Context, *acm.DeleteCertificateInput, ...request.Option) (*acm.DeleteCertificateOutput, error)
DeleteCertificateRequest(*acm.DeleteCertificateInput) (*request.Request, *acm.DeleteCertificateOutput)
DescribeCertificate(*acm.DescribeCertificateInput) (*acm.DescribeCertificateOutput, error)
DescribeCertificateWithContext(aws.Context, *acm.DescribeCertificateInput, ...request.Option) (*acm.DescribeCertificateOutput, error)
DescribeCertificateRequest(*acm.DescribeCertificateInput) (*request.Request, *acm.DescribeCertificateOutput)
GetCertificate(*acm.GetCertificateInput) (*acm.GetCertificateOutput, error)
GetCertificateWithContext(aws.Context, *acm.GetCertificateInput, ...request.Option) (*acm.GetCertificateOutput, error)
GetCertificateRequest(*acm.GetCertificateInput) (*request.Request, *acm.GetCertificateOutput)
ImportCertificate(*acm.ImportCertificateInput) (*acm.ImportCertificateOutput, error)
ImportCertificateWithContext(aws.Context, *acm.ImportCertificateInput, ...request.Option) (*acm.ImportCertificateOutput, error)
ImportCertificateRequest(*acm.ImportCertificateInput) (*request.Request, *acm.ImportCertificateOutput)
ListCertificates(*acm.ListCertificatesInput) (*acm.ListCertificatesOutput, error)
ListCertificatesWithContext(aws.Context, *acm.ListCertificatesInput, ...request.Option) (*acm.ListCertificatesOutput, error)
ListCertificatesRequest(*acm.ListCertificatesInput) (*request.Request, *acm.ListCertificatesOutput)
ListCertificatesPages(*acm.ListCertificatesInput, func(*acm.ListCertificatesOutput, bool) bool) error
ListCertificatesPagesWithContext(aws.Context, *acm.ListCertificatesInput, func(*acm.ListCertificatesOutput, bool) bool, ...request.Option) error
ListTagsForCertificate(*acm.ListTagsForCertificateInput) (*acm.ListTagsForCertificateOutput, error)
ListTagsForCertificateWithContext(aws.Context, *acm.ListTagsForCertificateInput, ...request.Option) (*acm.ListTagsForCertificateOutput, error)
ListTagsForCertificateRequest(*acm.ListTagsForCertificateInput) (*request.Request, *acm.ListTagsForCertificateOutput)
RemoveTagsFromCertificate(*acm.RemoveTagsFromCertificateInput) (*acm.RemoveTagsFromCertificateOutput, error)
RemoveTagsFromCertificateWithContext(aws.Context, *acm.RemoveTagsFromCertificateInput, ...request.Option) (*acm.RemoveTagsFromCertificateOutput, error)
RemoveTagsFromCertificateRequest(*acm.RemoveTagsFromCertificateInput) (*request.Request, *acm.RemoveTagsFromCertificateOutput)
RequestCertificate(*acm.RequestCertificateInput) (*acm.RequestCertificateOutput, error)
RequestCertificateWithContext(aws.Context, *acm.RequestCertificateInput, ...request.Option) (*acm.RequestCertificateOutput, error)
RequestCertificateRequest(*acm.RequestCertificateInput) (*request.Request, *acm.RequestCertificateOutput)
ResendValidationEmail(*acm.ResendValidationEmailInput) (*acm.ResendValidationEmailOutput, error)
ResendValidationEmailWithContext(aws.Context, *acm.ResendValidationEmailInput, ...request.Option) (*acm.ResendValidationEmailOutput, error)
ResendValidationEmailRequest(*acm.ResendValidationEmailInput) (*request.Request, *acm.ResendValidationEmailOutput)
}
var _ ACMAPI = (*acm.ACM)(nil)

2582
vendor/github.com/aws/aws-sdk-go/service/acm/api.go generated vendored Normal file

File diff suppressed because it is too large Load diff

84
vendor/github.com/aws/aws-sdk-go/service/acm/doc.go generated vendored Normal file
View file

@ -0,0 +1,84 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package acm provides the client and types for making API
// requests to AWS Certificate Manager.
//
// Welcome to the AWS Certificate Manager (ACM) API documentation.
//
// You can use ACM to manage SSL/TLS certificates for your AWS-based websites
// and applications. For general information about using ACM, see the AWS Certificate
// Manager User Guide (http://docs.aws.amazon.com/acm/latest/userguide/).
//
// See https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08 for more information on this service.
//
// See acm package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/acm/
//
// Using the Client
//
// To use the client for AWS Certificate Manager you will first need
// to create a new instance of it.
//
// When creating a client for an AWS service you'll first need to have a Session
// already created. The Session provides configuration that can be shared
// between multiple service clients. Additional configuration can be applied to
// the Session and service's client when they are constructed. The aws package's
// Config type contains several fields such as Region for the AWS Region the
// client should make API requests too. The optional Config value can be provided
// as the variadic argument for Sessions and client creation.
//
// Once the service's client is created you can use it to make API requests the
// AWS service. These clients are safe to use concurrently.
//
// // Create a session to share configuration, and load external configuration.
// sess := session.Must(session.NewSession())
//
// // Create the service's client with the session.
// svc := acm.New(sess)
//
// See the SDK's documentation for more information on how to use service clients.
// https://docs.aws.amazon.com/sdk-for-go/api/
//
// See aws package's Config type for more information on configuration options.
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
//
// See the AWS Certificate Manager client ACM for more
// information on creating the service's client.
// https://docs.aws.amazon.com/sdk-for-go/api/service/acm/#New
//
// Once the client is created you can make an API request to the service.
// Each API method takes a input parameter, and returns the service response
// and an error.
//
// The API method will document which error codes the service can be returned
// by the operation if the service models the API operation's errors. These
// errors will also be available as const strings prefixed with "ErrCode".
//
// result, err := svc.AddTagsToCertificate(params)
// if err != nil {
// // Cast err to awserr.Error to handle specific error codes.
// aerr, ok := err.(awserr.Error)
// if ok && aerr.Code() == <error code to check for> {
// // Specific error code handling
// }
// return err
// }
//
// fmt.Println("AddTagsToCertificate result:")
// fmt.Println(result)
//
// Using the Client with Context
//
// The service's client also provides methods to make API requests with a Context
// value. This allows you to control the timeout, and cancellation of pending
// requests. These methods also take request Option as variadic parameter to apply
// additional configuration to the API request.
//
// ctx := context.Background()
//
// result, err := svc.AddTagsToCertificateWithContext(ctx, params)
//
// See the request package documentation for more information on using Context pattern
// with the SDK.
// https://docs.aws.amazon.com/sdk-for-go/api/aws/request/
package acm

71
vendor/github.com/aws/aws-sdk-go/service/acm/errors.go generated vendored Normal file
View file

@ -0,0 +1,71 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package acm
const (
// ErrCodeInvalidArnException for service response error code
// "InvalidArnException".
//
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
ErrCodeInvalidArnException = "InvalidArnException"
// ErrCodeInvalidDomainValidationOptionsException for service response error code
// "InvalidDomainValidationOptionsException".
//
// One or more values in the DomainValidationOption structure is incorrect.
ErrCodeInvalidDomainValidationOptionsException = "InvalidDomainValidationOptionsException"
// ErrCodeInvalidStateException for service response error code
// "InvalidStateException".
//
// Processing has reached an invalid state. For example, this exception can
// occur if the specified domain is not using email validation, or the current
// certificate status does not permit the requested operation. See the exception
// message returned by ACM to determine which state is not valid.
ErrCodeInvalidStateException = "InvalidStateException"
// ErrCodeInvalidTagException for service response error code
// "InvalidTagException".
//
// One or both of the values that make up the key-value pair is not valid. For
// example, you cannot specify a tag value that begins with aws:.
ErrCodeInvalidTagException = "InvalidTagException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// An ACM limit has been exceeded. For example, you may have input more domains
// than are allowed or you've requested too many certificates for your account.
// See the exception message returned by ACM to determine which limit you have
// violated. For more information about ACM limits, see the Limits (http://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html)
// topic.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeRequestInProgressException for service response error code
// "RequestInProgressException".
//
// The certificate request is in process and the certificate in your account
// has not yet been issued.
ErrCodeRequestInProgressException = "RequestInProgressException"
// ErrCodeResourceInUseException for service response error code
// "ResourceInUseException".
//
// The certificate is in use by another AWS service in the caller's account.
// Remove the association and try again.
ErrCodeResourceInUseException = "ResourceInUseException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// The specified certificate cannot be found in the caller's account, or the
// caller's account cannot be found.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeTooManyTagsException for service response error code
// "TooManyTagsException".
//
// The request contains too many tags. Try the request again with fewer tags.
ErrCodeTooManyTagsException = "TooManyTagsException"
)

View file

@ -0,0 +1,262 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package acm_test
import (
"bytes"
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/acm"
)
var _ time.Duration
var _ bytes.Buffer
func ExampleACM_AddTagsToCertificate() {
sess := session.Must(session.NewSession())
svc := acm.New(sess)
params := &acm.AddTagsToCertificateInput{
CertificateArn: aws.String("Arn"), // Required
Tags: []*acm.Tag{ // Required
{ // Required
Key: aws.String("TagKey"), // Required
Value: aws.String("TagValue"),
},
// More values...
},
}
resp, err := svc.AddTagsToCertificate(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleACM_DeleteCertificate() {
sess := session.Must(session.NewSession())
svc := acm.New(sess)
params := &acm.DeleteCertificateInput{
CertificateArn: aws.String("Arn"), // Required
}
resp, err := svc.DeleteCertificate(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleACM_DescribeCertificate() {
sess := session.Must(session.NewSession())
svc := acm.New(sess)
params := &acm.DescribeCertificateInput{
CertificateArn: aws.String("Arn"), // Required
}
resp, err := svc.DescribeCertificate(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleACM_GetCertificate() {
sess := session.Must(session.NewSession())
svc := acm.New(sess)
params := &acm.GetCertificateInput{
CertificateArn: aws.String("Arn"), // Required
}
resp, err := svc.GetCertificate(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleACM_ImportCertificate() {
sess := session.Must(session.NewSession())
svc := acm.New(sess)
params := &acm.ImportCertificateInput{
Certificate: []byte("PAYLOAD"), // Required
PrivateKey: []byte("PAYLOAD"), // Required
CertificateArn: aws.String("Arn"),
CertificateChain: []byte("PAYLOAD"),
}
resp, err := svc.ImportCertificate(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleACM_ListCertificates() {
sess := session.Must(session.NewSession())
svc := acm.New(sess)
params := &acm.ListCertificatesInput{
CertificateStatuses: []*string{
aws.String("CertificateStatus"), // Required
// More values...
},
MaxItems: aws.Int64(1),
NextToken: aws.String("NextToken"),
}
resp, err := svc.ListCertificates(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleACM_ListTagsForCertificate() {
sess := session.Must(session.NewSession())
svc := acm.New(sess)
params := &acm.ListTagsForCertificateInput{
CertificateArn: aws.String("Arn"), // Required
}
resp, err := svc.ListTagsForCertificate(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleACM_RemoveTagsFromCertificate() {
sess := session.Must(session.NewSession())
svc := acm.New(sess)
params := &acm.RemoveTagsFromCertificateInput{
CertificateArn: aws.String("Arn"), // Required
Tags: []*acm.Tag{ // Required
{ // Required
Key: aws.String("TagKey"), // Required
Value: aws.String("TagValue"),
},
// More values...
},
}
resp, err := svc.RemoveTagsFromCertificate(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleACM_RequestCertificate() {
sess := session.Must(session.NewSession())
svc := acm.New(sess)
params := &acm.RequestCertificateInput{
DomainName: aws.String("DomainNameString"), // Required
DomainValidationOptions: []*acm.DomainValidationOption{
{ // Required
DomainName: aws.String("DomainNameString"), // Required
ValidationDomain: aws.String("DomainNameString"), // Required
},
// More values...
},
IdempotencyToken: aws.String("IdempotencyToken"),
SubjectAlternativeNames: []*string{
aws.String("DomainNameString"), // Required
// More values...
},
}
resp, err := svc.RequestCertificate(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleACM_ResendValidationEmail() {
sess := session.Must(session.NewSession())
svc := acm.New(sess)
params := &acm.ResendValidationEmailInput{
CertificateArn: aws.String("Arn"), // Required
Domain: aws.String("DomainNameString"), // Required
ValidationDomain: aws.String("DomainNameString"), // Required
}
resp, err := svc.ResendValidationEmail(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}

View file

@ -0,0 +1,95 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package acm
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"
)
// ACM provides the API operation methods for making requests to
// AWS Certificate Manager. See this package's package overview docs
// for details on the service.
//
// ACM methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type ACM 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 = "acm" // Service endpoint prefix API calls made to.
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
)
// New creates a new instance of the ACM 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 ACM client from just a session.
// svc := acm.New(mySession)
//
// // Create a ACM client with additional configuration
// svc := acm.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *ACM {
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) *ACM {
svc := &ACM{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
SigningName: signingName,
SigningRegion: signingRegion,
Endpoint: endpoint,
APIVersion: "2015-12-08",
JSONVersion: "1.1",
TargetPrefix: "CertificateManager",
},
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 ACM operation and runs any
// custom request initialization.
func (c *ACM) 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
}