├── .gitignore ├── .repo-runner.yaml ├── CONTRIBUTING.md ├── Gopkg.lock ├── Gopkg.toml ├── History.md ├── LICENSE ├── Makefile ├── README.md ├── cmdAdd.go ├── cmdChangePassword.go ├── cmdConsole.go ├── cmdDelete.go ├── cmdGet.go ├── cmdList.go ├── cmdLock.go ├── cmdPrompt.go ├── cmdRun.go ├── cmdShell.go ├── cmdUnlock.go ├── cmdVersion.go ├── config.go ├── credentials ├── credentialStore.go └── federatedLogin.go ├── lockagent.go ├── main.go ├── security.md ├── security ├── databasePassword.go └── databasePassword_test.go ├── shellsupport ├── bash │ └── bash.go ├── fish │ └── fish.go └── shellsupport.go └── vendor ├── github.com ├── Luzifer │ └── go-openssl │ │ ├── .travis.yml │ │ ├── History.md │ │ ├── README.md │ │ ├── examples_test.go │ │ ├── openssl.go │ │ └── openssl_test.go ├── Sirupsen │ └── logrus │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── doc.go │ │ ├── entry.go │ │ ├── entry_test.go │ │ ├── examples │ │ ├── basic │ │ │ └── basic.go │ │ └── hook │ │ │ └── hook.go │ │ ├── exported.go │ │ ├── formatter.go │ │ ├── formatter_bench_test.go │ │ ├── formatters │ │ └── logstash │ │ │ ├── logstash.go │ │ │ └── logstash_test.go │ │ ├── hook_test.go │ │ ├── hooks.go │ │ ├── hooks │ │ ├── airbrake │ │ │ ├── airbrake.go │ │ │ └── airbrake_test.go │ │ ├── bugsnag │ │ │ ├── bugsnag.go │ │ │ └── bugsnag_test.go │ │ ├── papertrail │ │ │ ├── README.md │ │ │ ├── papertrail.go │ │ │ └── papertrail_test.go │ │ ├── sentry │ │ │ ├── README.md │ │ │ ├── sentry.go │ │ │ └── sentry_test.go │ │ └── syslog │ │ │ ├── README.md │ │ │ ├── syslog.go │ │ │ └── syslog_test.go │ │ ├── json_formatter.go │ │ ├── json_formatter_test.go │ │ ├── logger.go │ │ ├── logrus.go │ │ ├── logrus_test.go │ │ ├── terminal_bsd.go │ │ ├── terminal_linux.go │ │ ├── terminal_notwindows.go │ │ ├── terminal_windows.go │ │ ├── text_formatter.go │ │ ├── text_formatter_test.go │ │ └── writer.go ├── aws │ └── aws-sdk-go │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── .yardopts │ │ ├── Gemfile │ │ ├── LICENSE.txt │ │ ├── Makefile │ │ ├── NOTICE.txt │ │ ├── README.md │ │ ├── aws │ │ ├── awserr │ │ │ ├── error.go │ │ │ └── types.go │ │ ├── awsutil │ │ │ ├── copy.go │ │ │ ├── copy_test.go │ │ │ ├── path_value.go │ │ │ ├── path_value_test.go │ │ │ └── prettify.go │ │ ├── config.go │ │ ├── config_test.go │ │ ├── convert_types.go │ │ ├── convert_types_test.go │ │ ├── corehandlers │ │ │ ├── handlers.go │ │ │ ├── handlers_test.go │ │ │ ├── param_validator.go │ │ │ └── param_validator_test.go │ │ ├── credentials │ │ │ ├── chain_provider.go │ │ │ ├── chain_provider_test.go │ │ │ ├── credentials.go │ │ │ ├── credentials_test.go │ │ │ ├── ec2rolecreds │ │ │ │ ├── ec2_role_provider.go │ │ │ │ └── ec2_role_provider_test.go │ │ │ ├── env_provider.go │ │ │ ├── env_provider_test.go │ │ │ ├── example.ini │ │ │ ├── shared_credentials_provider.go │ │ │ ├── shared_credentials_provider_test.go │ │ │ ├── static_provider.go │ │ │ ├── static_provider_test.go │ │ │ └── stscreds │ │ │ │ ├── assume_role_provider.go │ │ │ │ └── assume_role_provider_test.go │ │ ├── defaults │ │ │ └── defaults.go │ │ ├── ec2metadata │ │ │ ├── api.go │ │ │ ├── api_test.go │ │ │ └── service.go │ │ ├── errors.go │ │ ├── logger.go │ │ ├── request │ │ │ ├── handlers.go │ │ │ ├── handlers_test.go │ │ │ ├── request.go │ │ │ ├── request_pagination_test.go │ │ │ ├── request_test.go │ │ │ └── retryer.go │ │ ├── service │ │ │ ├── default_retryer.go │ │ │ ├── service.go │ │ │ └── serviceinfo │ │ │ │ └── service_info.go │ │ ├── types.go │ │ ├── types_test.go │ │ └── version.go │ │ ├── awsmigrate │ │ └── awsmigrate-renamer │ │ │ ├── gen │ │ │ └── gen.go │ │ │ ├── rename │ │ │ ├── rename.go │ │ │ └── renames.go │ │ │ └── renamer.go │ │ ├── awstesting │ │ ├── assert.go │ │ ├── assert_test.go │ │ ├── integration │ │ │ ├── integration.go │ │ │ ├── s3 │ │ │ │ ├── integration_test.go │ │ │ │ ├── s3manager │ │ │ │ │ ├── integration_test.go │ │ │ │ │ └── stub.go │ │ │ │ └── stub.go │ │ │ └── smoke │ │ │ │ ├── apigateway │ │ │ │ ├── apigateway.feature │ │ │ │ └── client.go │ │ │ │ ├── autoscaling │ │ │ │ ├── autoscaling.feature │ │ │ │ └── client.go │ │ │ │ ├── cloudformation │ │ │ │ ├── client.go │ │ │ │ └── cloudformation.feature │ │ │ │ ├── cloudfront │ │ │ │ ├── client.go │ │ │ │ └── cloudfront.feature │ │ │ │ ├── cloudhsm │ │ │ │ ├── client.go │ │ │ │ └── cloudhsm.feature │ │ │ │ ├── cloudsearch │ │ │ │ ├── client.go │ │ │ │ └── cloudsearch.feature │ │ │ │ ├── cloudtrail │ │ │ │ ├── client.go │ │ │ │ └── cloudtrail.feature │ │ │ │ ├── cloudwatch │ │ │ │ ├── client.go │ │ │ │ └── cloudwatch.feature │ │ │ │ ├── cloudwatchlogs │ │ │ │ ├── client.go │ │ │ │ └── cloudwatchlogs.feature │ │ │ │ ├── codecommit │ │ │ │ ├── client.go │ │ │ │ └── codecommit.feature │ │ │ │ ├── codedeploy │ │ │ │ ├── client.go │ │ │ │ └── codedeploy.feature │ │ │ │ ├── codepipeline │ │ │ │ ├── client.go │ │ │ │ └── codepipeline.feature │ │ │ │ ├── cognitoidentity │ │ │ │ ├── client.go │ │ │ │ └── cognitoidentity.feature │ │ │ │ ├── cognitosync │ │ │ │ ├── client.go │ │ │ │ └── cognitosync.feature │ │ │ │ ├── configservice │ │ │ │ ├── client.go │ │ │ │ └── configservice.feature │ │ │ │ ├── datapipeline │ │ │ │ ├── client.go │ │ │ │ └── datapipeline.feature │ │ │ │ ├── devicefarm │ │ │ │ ├── client.go │ │ │ │ └── devicefarm.feature │ │ │ │ ├── directconnect │ │ │ │ ├── client.go │ │ │ │ └── directconnect.feature │ │ │ │ ├── directoryservice │ │ │ │ ├── client.go │ │ │ │ └── directoryservice.feature │ │ │ │ ├── dynamodb │ │ │ │ ├── client.go │ │ │ │ └── dynamodb.feature │ │ │ │ ├── dynamodbstreams │ │ │ │ ├── client.go │ │ │ │ └── dynamodbstreams.feature │ │ │ │ ├── ec2 │ │ │ │ ├── client.go │ │ │ │ └── ec2.feature │ │ │ │ ├── ecs │ │ │ │ ├── client.go │ │ │ │ └── ecs.feature │ │ │ │ ├── efs │ │ │ │ ├── client.go │ │ │ │ └── efs.feature │ │ │ │ ├── elasticache │ │ │ │ ├── client.go │ │ │ │ └── elasticache.feature │ │ │ │ ├── elasticbeanstalk │ │ │ │ ├── client.go │ │ │ │ └── elasticbeanstalk.feature │ │ │ │ ├── elasticloadbalancing │ │ │ │ ├── client.go │ │ │ │ └── elasticloadbalancing.feature │ │ │ │ ├── elastictranscoder │ │ │ │ ├── client.go │ │ │ │ └── elastictranscoder.feature │ │ │ │ ├── emr │ │ │ │ ├── client.go │ │ │ │ └── emr.feature │ │ │ │ ├── es │ │ │ │ ├── client.go │ │ │ │ └── es.feature │ │ │ │ ├── glacier │ │ │ │ ├── client.go │ │ │ │ └── glacier.feature │ │ │ │ ├── iam │ │ │ │ ├── client.go │ │ │ │ └── iam.feature │ │ │ │ ├── iotdataplane │ │ │ │ ├── client.go │ │ │ │ └── iotdataplane.feature │ │ │ │ ├── kinesis │ │ │ │ ├── client.go │ │ │ │ └── kinesis.feature │ │ │ │ ├── kms │ │ │ │ ├── client.go │ │ │ │ └── kms.feature │ │ │ │ ├── lambda │ │ │ │ ├── client.go │ │ │ │ └── lambda.feature │ │ │ │ ├── machinelearning │ │ │ │ ├── client.go │ │ │ │ └── machinelearning.feature │ │ │ │ ├── opsworks │ │ │ │ ├── client.go │ │ │ │ └── opsworks.feature │ │ │ │ ├── rds │ │ │ │ ├── client.go │ │ │ │ └── rds.feature │ │ │ │ ├── redshift │ │ │ │ ├── client.go │ │ │ │ └── redshift.feature │ │ │ │ ├── route53 │ │ │ │ ├── client.go │ │ │ │ └── route53.feature │ │ │ │ ├── route53domains │ │ │ │ ├── client.go │ │ │ │ └── route53domains.feature │ │ │ │ ├── ses │ │ │ │ ├── client.go │ │ │ │ └── ses.feature │ │ │ │ ├── shared.go │ │ │ │ ├── simpledb │ │ │ │ ├── client.go │ │ │ │ └── simpledb.feature │ │ │ │ ├── sns │ │ │ │ ├── client.go │ │ │ │ └── sns.feature │ │ │ │ ├── sqs │ │ │ │ ├── client.go │ │ │ │ └── sqs.feature │ │ │ │ ├── ssm │ │ │ │ ├── client.go │ │ │ │ └── ssm.feature │ │ │ │ ├── storagegateway │ │ │ │ ├── client.go │ │ │ │ └── storagegateway.feature │ │ │ │ ├── sts │ │ │ │ ├── client.go │ │ │ │ └── sts.feature │ │ │ │ ├── support │ │ │ │ ├── client.go │ │ │ │ └── support.feature │ │ │ │ ├── swf │ │ │ │ ├── client.go │ │ │ │ └── swf.feature │ │ │ │ └── workspaces │ │ │ │ ├── client.go │ │ │ │ └── workspaces.feature │ │ ├── param_filler.go │ │ ├── sort_keys.go │ │ └── unit │ │ │ └── unit.go │ │ ├── doc-src │ │ └── plugin │ │ │ ├── plugin.rb │ │ │ └── templates │ │ │ └── default │ │ │ ├── layout │ │ │ └── html │ │ │ │ └── footer.erb │ │ │ ├── module │ │ │ └── html │ │ │ │ ├── client.erb │ │ │ │ ├── item_summary.erb │ │ │ │ └── setup.rb │ │ │ ├── package │ │ │ └── html │ │ │ │ └── setup.rb │ │ │ └── struct │ │ │ └── html │ │ │ ├── paginators.erb │ │ │ ├── request_methods.erb │ │ │ └── setup.rb │ │ ├── models │ │ ├── apis │ │ │ ├── apigateway │ │ │ │ └── 2015-07-09 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── autoscaling │ │ │ │ └── 2011-01-01 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── cloudformation │ │ │ │ └── 2010-05-15 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ ├── paginators-1.json │ │ │ │ │ └── waiters-2.json │ │ │ ├── cloudfront │ │ │ │ ├── 2015-04-17 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ ├── paginators-1.json │ │ │ │ │ └── waiters-2.json │ │ │ │ └── 2015-07-27 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ ├── paginators-1.json │ │ │ │ │ └── waiters-2.json │ │ │ ├── cloudhsm │ │ │ │ └── 2014-05-30 │ │ │ │ │ ├── api-2.json │ │ │ │ │ └── docs-2.json │ │ │ ├── cloudsearch │ │ │ │ └── 2013-01-01 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── cloudsearchdomain │ │ │ │ └── 2013-01-01 │ │ │ │ │ ├── api-2.json │ │ │ │ │ └── docs-2.json │ │ │ ├── cloudtrail │ │ │ │ └── 2013-11-01 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── codecommit │ │ │ │ └── 2015-04-13 │ │ │ │ │ ├── api-2.json │ │ │ │ │ └── docs-2.json │ │ │ ├── codedeploy │ │ │ │ └── 2014-10-06 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── codepipeline │ │ │ │ └── 2015-07-09 │ │ │ │ │ ├── api-2.json │ │ │ │ │ └── docs-2.json │ │ │ ├── cognito-identity │ │ │ │ └── 2014-06-30 │ │ │ │ │ ├── api-2.json │ │ │ │ │ └── docs-2.json │ │ │ ├── cognito-sync │ │ │ │ └── 2014-06-30 │ │ │ │ │ ├── api-2.json │ │ │ │ │ └── docs-2.json │ │ │ ├── config │ │ │ │ └── 2014-11-12 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── datapipeline │ │ │ │ └── 2012-10-29 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── devicefarm │ │ │ │ └── 2015-06-23 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── directconnect │ │ │ │ └── 2012-10-25 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── ds │ │ │ │ └── 2015-04-16 │ │ │ │ │ ├── api-2.json │ │ │ │ │ └── docs-2.json │ │ │ ├── dynamodb │ │ │ │ └── 2012-08-10 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ ├── paginators-1.json │ │ │ │ │ └── waiters-2.json │ │ │ ├── ec2 │ │ │ │ ├── 2015-04-15 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ ├── paginators-1.json │ │ │ │ │ └── waiters-2.json │ │ │ │ └── 2015-10-01 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ ├── paginators-1.json │ │ │ │ │ └── waiters-2.json │ │ │ ├── ecs │ │ │ │ └── 2014-11-13 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ ├── paginators-1.json │ │ │ │ │ └── waiters-2.json │ │ │ ├── elasticache │ │ │ │ └── 2015-02-02 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ ├── paginators-1.json │ │ │ │ │ └── waiters-2.json │ │ │ ├── elasticbeanstalk │ │ │ │ └── 2010-12-01 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── elasticfilesystem │ │ │ │ └── 2015-02-01 │ │ │ │ │ ├── api-2.json │ │ │ │ │ └── docs-2.json │ │ │ ├── elasticloadbalancing │ │ │ │ └── 2012-06-01 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ ├── paginators-1.json │ │ │ │ │ └── waiters-2.json │ │ │ ├── elasticmapreduce │ │ │ │ └── 2009-03-31 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ ├── paginators-1.json │ │ │ │ │ └── waiters-2.json │ │ │ ├── elastictranscoder │ │ │ │ └── 2012-09-25 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ ├── paginators-1.json │ │ │ │ │ └── waiters-2.json │ │ │ ├── email │ │ │ │ └── 2010-12-01 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ ├── paginators-1.json │ │ │ │ │ └── waiters-2.json │ │ │ ├── es │ │ │ │ └── 2015-01-01 │ │ │ │ │ ├── api-2.json │ │ │ │ │ └── docs-2.json │ │ │ ├── firehose │ │ │ │ └── 2015-08-04 │ │ │ │ │ ├── api-2.json │ │ │ │ │ └── docs-2.json │ │ │ ├── glacier │ │ │ │ └── 2012-06-01 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ ├── paginators-1.json │ │ │ │ │ └── waiters-2.json │ │ │ ├── iam │ │ │ │ └── 2010-05-08 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ ├── paginators-1.json │ │ │ │ │ └── waiters-2.json │ │ │ ├── importexport │ │ │ │ └── 2010-06-01 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── inspector │ │ │ │ └── 2015-08-18 │ │ │ │ │ ├── api-2.json │ │ │ │ │ └── docs-2.json │ │ │ ├── iot-data │ │ │ │ └── 2015-05-28 │ │ │ │ │ ├── api-2.json │ │ │ │ │ └── docs-2.json │ │ │ ├── iot │ │ │ │ └── 2015-05-28 │ │ │ │ │ ├── api-2.json │ │ │ │ │ └── docs-2.json │ │ │ ├── kinesis │ │ │ │ └── 2013-12-02 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ ├── paginators-1.json │ │ │ │ │ └── waiters-2.json │ │ │ ├── kms │ │ │ │ └── 2014-11-01 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── lambda │ │ │ │ ├── 2014-11-11 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ │ └── 2015-03-31 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── logs │ │ │ │ └── 2014-03-28 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── machinelearning │ │ │ │ └── 2014-12-12 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── marketplacecommerceanalytics │ │ │ │ └── 2015-07-01 │ │ │ │ │ ├── api-2.json │ │ │ │ │ └── docs-2.json │ │ │ ├── mobileanalytics │ │ │ │ └── 2014-06-05 │ │ │ │ │ ├── api-2.json │ │ │ │ │ └── docs-2.json │ │ │ ├── monitoring │ │ │ │ └── 2010-08-01 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── opsworks │ │ │ │ └── 2013-02-18 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ ├── paginators-1.json │ │ │ │ │ └── waiters-2.json │ │ │ ├── rds │ │ │ │ ├── 2013-01-10 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ │ ├── 2013-02-12 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ │ ├── 2013-09-09 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ ├── paginators-1.json │ │ │ │ │ └── waiters-2.json │ │ │ │ ├── 2014-09-01 │ │ │ │ │ ├── api-2.json │ │ │ │ │ └── docs-2.json │ │ │ │ └── 2014-10-31 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ ├── paginators-1.json │ │ │ │ │ └── waiters-2.json │ │ │ ├── redshift │ │ │ │ └── 2012-12-01 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ ├── paginators-1.json │ │ │ │ │ └── waiters-2.json │ │ │ ├── route53 │ │ │ │ └── 2013-04-01 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── route53domains │ │ │ │ └── 2014-05-15 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── s3 │ │ │ │ └── 2006-03-01 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ ├── paginators-1.json │ │ │ │ │ └── waiters-2.json │ │ │ ├── sdb │ │ │ │ └── 2009-04-15 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── sns │ │ │ │ └── 2010-03-31 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── sqs │ │ │ │ └── 2012-11-05 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── ssm │ │ │ │ └── 2014-11-06 │ │ │ │ │ ├── api-2.json │ │ │ │ │ └── docs-2.json │ │ │ ├── storagegateway │ │ │ │ └── 2013-06-30 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── streams.dynamodb │ │ │ │ └── 2012-08-10 │ │ │ │ │ ├── api-2.json │ │ │ │ │ └── docs-2.json │ │ │ ├── sts │ │ │ │ └── 2011-06-15 │ │ │ │ │ ├── api-2.json │ │ │ │ │ └── docs-2.json │ │ │ ├── support │ │ │ │ └── 2013-04-15 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── swf │ │ │ │ └── 2012-01-25 │ │ │ │ │ ├── api-2.json │ │ │ │ │ ├── docs-2.json │ │ │ │ │ └── paginators-1.json │ │ │ ├── waf │ │ │ │ └── 2015-08-24 │ │ │ │ │ ├── api-2.json │ │ │ │ │ └── docs-2.json │ │ │ └── workspaces │ │ │ │ └── 2015-04-08 │ │ │ │ ├── api-2.json │ │ │ │ ├── docs-2.json │ │ │ │ └── paginators-1.json │ │ └── protocol_tests │ │ │ ├── generate.go │ │ │ ├── input │ │ │ ├── ec2.json │ │ │ ├── json.json │ │ │ ├── query.json │ │ │ ├── rest-json.json │ │ │ └── rest-xml.json │ │ │ └── output │ │ │ ├── ec2.json │ │ │ ├── json.json │ │ │ ├── query.json │ │ │ ├── rest-json.json │ │ │ └── rest-xml.json │ │ ├── private │ │ ├── README.md │ │ ├── endpoints │ │ │ ├── endpoints.go │ │ │ ├── endpoints.json │ │ │ ├── endpoints_map.go │ │ │ └── endpoints_test.go │ │ ├── model │ │ │ ├── api │ │ │ │ ├── api.go │ │ │ │ ├── api_test.go │ │ │ │ ├── customization_passes.go │ │ │ │ ├── docstring.go │ │ │ │ ├── exportable_name.go │ │ │ │ ├── load.go │ │ │ │ ├── load_test.go │ │ │ │ ├── operation.go │ │ │ │ ├── pagination.go │ │ │ │ ├── passes.go │ │ │ │ └── shape.go │ │ │ ├── cli │ │ │ │ ├── api-info │ │ │ │ │ └── api-info.go │ │ │ │ ├── gen-api │ │ │ │ │ └── main.go │ │ │ │ └── gen-endpoints │ │ │ │ │ └── main.go │ │ │ └── endpoints.go │ │ ├── protocol │ │ │ ├── ec2query │ │ │ │ ├── build.go │ │ │ │ ├── build_bench_test.go │ │ │ │ ├── build_test.go │ │ │ │ ├── unmarshal.go │ │ │ │ └── unmarshal_test.go │ │ │ ├── json │ │ │ │ └── jsonutil │ │ │ │ │ ├── build.go │ │ │ │ │ ├── build_test.go │ │ │ │ │ └── unmarshal.go │ │ │ ├── jsonrpc │ │ │ │ ├── build_bench_test.go │ │ │ │ ├── build_test.go │ │ │ │ ├── jsonrpc.go │ │ │ │ └── unmarshal_test.go │ │ │ ├── query │ │ │ │ ├── build.go │ │ │ │ ├── build_test.go │ │ │ │ ├── queryutil │ │ │ │ │ └── queryutil.go │ │ │ │ ├── unmarshal.go │ │ │ │ ├── unmarshal_error.go │ │ │ │ └── unmarshal_test.go │ │ │ ├── rest │ │ │ │ ├── build.go │ │ │ │ ├── payload.go │ │ │ │ └── unmarshal.go │ │ │ ├── restjson │ │ │ │ ├── build_bench_test.go │ │ │ │ ├── build_test.go │ │ │ │ ├── restjson.go │ │ │ │ └── unmarshal_test.go │ │ │ ├── restxml │ │ │ │ ├── build_bench_test.go │ │ │ │ ├── build_test.go │ │ │ │ ├── restxml.go │ │ │ │ └── unmarshal_test.go │ │ │ └── xml │ │ │ │ └── xmlutil │ │ │ │ ├── build.go │ │ │ │ ├── unmarshal.go │ │ │ │ └── xml_to_struct.go │ │ ├── signer │ │ │ ├── v2 │ │ │ │ ├── v2.go │ │ │ │ └── v2_test.go │ │ │ └── v4 │ │ │ │ ├── functional_test.go │ │ │ │ ├── v4.go │ │ │ │ └── v4_test.go │ │ └── util │ │ │ └── util.go │ │ ├── sdk.go │ │ └── service │ │ ├── apigateway │ │ ├── api.go │ │ ├── apigatewayiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── customization.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── autoscaling │ │ ├── api.go │ │ ├── autoscalingiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── cloudformation │ │ ├── api.go │ │ ├── cloudformationiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── cloudfront │ │ ├── api.go │ │ ├── cloudfrontiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ ├── service.go │ │ └── sign │ │ │ ├── policy.go │ │ │ ├── policy_test.go │ │ │ ├── privkey.go │ │ │ ├── privkey_test.go │ │ │ ├── randomreader.go │ │ │ ├── sign_url.go │ │ │ └── sign_url_test.go │ │ ├── cloudhsm │ │ ├── api.go │ │ ├── cloudhsmiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── cloudsearch │ │ ├── api.go │ │ ├── cloudsearchiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── cloudsearchdomain │ │ ├── api.go │ │ ├── cloudsearchdomainiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── customizations_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── cloudtrail │ │ ├── api.go │ │ ├── cloudtrailiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── cloudwatch │ │ ├── api.go │ │ ├── cloudwatchiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── cloudwatchlogs │ │ ├── api.go │ │ ├── cloudwatchlogsiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── codecommit │ │ ├── api.go │ │ ├── codecommitiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── codedeploy │ │ ├── api.go │ │ ├── codedeployiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── codepipeline │ │ ├── api.go │ │ ├── codepipelineiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── cognitoidentity │ │ ├── api.go │ │ ├── cognitoidentityiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── customizations.go │ │ ├── customizations_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── cognitosync │ │ ├── api.go │ │ ├── cognitosynciface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── configservice │ │ ├── api.go │ │ ├── configserviceiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── datapipeline │ │ ├── api.go │ │ ├── datapipelineiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── devicefarm │ │ ├── api.go │ │ ├── devicefarmiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── directconnect │ │ ├── api.go │ │ ├── directconnectiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── directoryservice │ │ ├── api.go │ │ ├── directoryserviceiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── dynamodb │ │ ├── api.go │ │ ├── customizations.go │ │ ├── customizations_test.go │ │ ├── dynamodbattribute │ │ │ ├── converter.go │ │ │ ├── converter_test.go │ │ │ └── examples_test.go │ │ ├── dynamodbiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── dynamodbstreams │ │ ├── api.go │ │ ├── dynamodbstreamsiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── ec2 │ │ ├── api.go │ │ ├── customizations.go │ │ ├── customizations_test.go │ │ ├── ec2iface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── ecs │ │ ├── api.go │ │ ├── ecsiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── efs │ │ ├── api.go │ │ ├── efsiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── elasticache │ │ ├── api.go │ │ ├── elasticacheiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── elasticbeanstalk │ │ ├── api.go │ │ ├── elasticbeanstalkiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── elasticsearchservice │ │ ├── api.go │ │ ├── elasticsearchserviceiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── elastictranscoder │ │ ├── api.go │ │ ├── elastictranscoderiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── elb │ │ ├── api.go │ │ ├── elbiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── emr │ │ ├── api.go │ │ ├── emriface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── examples_test.go │ │ └── service.go │ │ ├── firehose │ │ ├── api.go │ │ ├── examples_test.go │ │ ├── firehoseiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ └── service.go │ │ ├── generate.go │ │ ├── glacier │ │ ├── api.go │ │ ├── customizations.go │ │ ├── customizations_test.go │ │ ├── examples_test.go │ │ ├── glacieriface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── service.go │ │ ├── treehash.go │ │ └── treehash_test.go │ │ ├── iam │ │ ├── api.go │ │ ├── examples_test.go │ │ ├── iamiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ └── service.go │ │ ├── inspector │ │ ├── api.go │ │ ├── examples_test.go │ │ ├── inspectoriface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ └── service.go │ │ ├── iot │ │ ├── api.go │ │ ├── examples_test.go │ │ ├── iotiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ └── service.go │ │ ├── iotdataplane │ │ ├── api.go │ │ ├── customizations.go │ │ ├── customizations_test.go │ │ ├── examples_test.go │ │ ├── iotdataplaneiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ └── service.go │ │ ├── kinesis │ │ ├── api.go │ │ ├── examples_test.go │ │ ├── kinesisiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ └── service.go │ │ ├── kms │ │ ├── api.go │ │ ├── examples_test.go │ │ ├── kmsiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ └── service.go │ │ ├── lambda │ │ ├── api.go │ │ ├── examples_test.go │ │ ├── lambdaiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ └── service.go │ │ ├── machinelearning │ │ ├── api.go │ │ ├── customizations.go │ │ ├── customizations_test.go │ │ ├── examples_test.go │ │ ├── machinelearningiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ └── service.go │ │ ├── marketplacecommerceanalytics │ │ ├── api.go │ │ ├── examples_test.go │ │ ├── marketplacecommerceanalyticsiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ └── service.go │ │ ├── mobileanalytics │ │ ├── api.go │ │ ├── examples_test.go │ │ ├── mobileanalyticsiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ └── service.go │ │ ├── opsworks │ │ ├── api.go │ │ ├── examples_test.go │ │ ├── opsworksiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ └── service.go │ │ ├── rds │ │ ├── api.go │ │ ├── examples_test.go │ │ ├── rdsiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ └── service.go │ │ ├── redshift │ │ ├── api.go │ │ ├── examples_test.go │ │ ├── redshiftiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ └── service.go │ │ ├── route53 │ │ ├── api.go │ │ ├── customizations.go │ │ ├── customizations_test.go │ │ ├── examples_test.go │ │ ├── route53iface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ └── service.go │ │ ├── route53domains │ │ ├── api.go │ │ ├── examples_test.go │ │ ├── route53domainsiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ └── service.go │ │ ├── s3 │ │ ├── api.go │ │ ├── bucket_location.go │ │ ├── bucket_location_test.go │ │ ├── content_md5.go │ │ ├── customizations.go │ │ ├── customizations_test.go │ │ ├── examples_test.go │ │ ├── host_style_bucket.go │ │ ├── host_style_bucket_test.go │ │ ├── s3iface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── s3manager │ │ │ ├── download.go │ │ │ ├── download_test.go │ │ │ ├── upload.go │ │ │ └── upload_test.go │ │ ├── service.go │ │ ├── sse.go │ │ ├── sse_test.go │ │ ├── statusok_error.go │ │ ├── statusok_error_test.go │ │ ├── unmarshal_error.go │ │ └── unmarshal_error_test.go │ │ ├── ses │ │ ├── api.go │ │ ├── examples_test.go │ │ ├── service.go │ │ └── sesiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── simpledb │ │ ├── api.go │ │ ├── customizations.go │ │ ├── examples_test.go │ │ ├── service.go │ │ ├── simpledbiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── unmarshall_error.go │ │ └── unmarshall_error_test.go │ │ ├── sns │ │ ├── api.go │ │ ├── examples_test.go │ │ ├── service.go │ │ └── snsiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── sqs │ │ ├── api.go │ │ ├── api_test.go │ │ ├── checksums.go │ │ ├── checksums_test.go │ │ ├── customizations.go │ │ ├── examples_test.go │ │ ├── service.go │ │ └── sqsiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── ssm │ │ ├── api.go │ │ ├── examples_test.go │ │ ├── service.go │ │ └── ssmiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── storagegateway │ │ ├── api.go │ │ ├── examples_test.go │ │ ├── service.go │ │ └── storagegatewayiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── sts │ │ ├── api.go │ │ ├── customizations.go │ │ ├── customizations_test.go │ │ ├── examples_test.go │ │ ├── service.go │ │ └── stsiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── support │ │ ├── api.go │ │ ├── examples_test.go │ │ ├── service.go │ │ └── supportiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── swf │ │ ├── api.go │ │ ├── examples_test.go │ │ ├── service.go │ │ └── swfiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ ├── waf │ │ ├── api.go │ │ ├── examples_test.go │ │ ├── service.go │ │ └── wafiface │ │ │ ├── interface.go │ │ │ └── interface_test.go │ │ └── workspaces │ │ ├── api.go │ │ ├── examples_test.go │ │ ├── service.go │ │ └── workspacesiface │ │ ├── interface.go │ │ └── interface_test.go ├── bgentry │ └── speakeasy │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── LICENSE_WINDOWS │ │ ├── Readme.md │ │ ├── example │ │ └── main.go │ │ ├── speakeasy.go │ │ ├── speakeasy_unix.go │ │ └── speakeasy_windows.go ├── gorilla │ ├── context │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── context.go │ │ ├── context_test.go │ │ └── doc.go │ └── mux │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── bench_test.go │ │ ├── context_gorilla.go │ │ ├── context_gorilla_test.go │ │ ├── context_native.go │ │ ├── context_native_test.go │ │ ├── doc.go │ │ ├── mux.go │ │ ├── mux_test.go │ │ ├── old_test.go │ │ ├── regexp.go │ │ └── route.go ├── inconshreveable │ └── mousetrap │ │ ├── LICENSE │ │ ├── README.md │ │ ├── trap_others.go │ │ ├── trap_windows.go │ │ └── trap_windows_1.4.go ├── satori │ └── go.uuid │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── benchmarks_test.go │ │ ├── uuid.go │ │ └── uuid_test.go ├── spf13 │ ├── cobra │ │ ├── .gitignore │ │ ├── .mailmap │ │ ├── .travis.yml │ │ ├── LICENSE.txt │ │ ├── README.md │ │ ├── args.go │ │ ├── bash_completions.go │ │ ├── bash_completions.md │ │ ├── bash_completions_test.go │ │ ├── cobra.go │ │ ├── cobra │ │ │ ├── README.md │ │ │ ├── cmd │ │ │ │ ├── add.go │ │ │ │ ├── add_test.go │ │ │ │ ├── golden_test.go │ │ │ │ ├── helpers.go │ │ │ │ ├── init.go │ │ │ │ ├── init_test.go │ │ │ │ ├── license_agpl.go │ │ │ │ ├── license_apache_2.go │ │ │ │ ├── license_bsd_clause_2.go │ │ │ │ ├── license_bsd_clause_3.go │ │ │ │ ├── license_gpl_2.go │ │ │ │ ├── license_gpl_3.go │ │ │ │ ├── license_lgpl.go │ │ │ │ ├── license_mit.go │ │ │ │ ├── licenses.go │ │ │ │ ├── project.go │ │ │ │ ├── project_test.go │ │ │ │ ├── root.go │ │ │ │ └── testdata │ │ │ │ │ ├── LICENSE.golden │ │ │ │ │ ├── main.go.golden │ │ │ │ │ ├── root.go.golden │ │ │ │ │ └── test.go.golden │ │ │ └── main.go │ │ ├── cobra_test.go │ │ ├── command.go │ │ ├── command_notwin.go │ │ ├── command_test.go │ │ ├── command_win.go │ │ ├── doc │ │ │ ├── cmd_test.go │ │ │ ├── man_docs.go │ │ │ ├── man_docs.md │ │ │ ├── man_docs_test.go │ │ │ ├── man_examples_test.go │ │ │ ├── md_docs.go │ │ │ ├── md_docs.md │ │ │ ├── md_docs_test.go │ │ │ ├── rest_docs.go │ │ │ ├── rest_docs.md │ │ │ ├── rest_docs_test.go │ │ │ ├── util.go │ │ │ ├── yaml_docs.go │ │ │ ├── yaml_docs.md │ │ │ └── yaml_docs_test.go │ │ ├── zsh_completions.go │ │ └── zsh_completions_test.go │ └── pflag │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── bool.go │ │ ├── bool_slice.go │ │ ├── bool_slice_test.go │ │ ├── bool_test.go │ │ ├── count.go │ │ ├── count_test.go │ │ ├── duration.go │ │ ├── example_test.go │ │ ├── export_test.go │ │ ├── flag.go │ │ ├── flag_test.go │ │ ├── float32.go │ │ ├── float64.go │ │ ├── golangflag.go │ │ ├── golangflag_test.go │ │ ├── int.go │ │ ├── int32.go │ │ ├── int64.go │ │ ├── int8.go │ │ ├── int_slice.go │ │ ├── int_slice_test.go │ │ ├── ip.go │ │ ├── ip_slice.go │ │ ├── ip_slice_test.go │ │ ├── ip_test.go │ │ ├── ipmask.go │ │ ├── ipnet.go │ │ ├── ipnet_test.go │ │ ├── string.go │ │ ├── string_array.go │ │ ├── string_array_test.go │ │ ├── string_slice.go │ │ ├── string_slice_test.go │ │ ├── uint.go │ │ ├── uint16.go │ │ ├── uint32.go │ │ ├── uint64.go │ │ ├── uint8.go │ │ ├── uint_slice.go │ │ ├── uint_slice_test.go │ │ └── verify │ │ ├── all.sh │ │ ├── gofmt.sh │ │ └── golint.sh └── vaughan0 │ └── go-ini │ ├── LICENSE │ ├── README.md │ ├── ini.go │ ├── ini_linux_test.go │ ├── ini_test.go │ └── test.ini └── gopkg.in └── yaml.v2 ├── .travis.yml ├── LICENSE ├── LICENSE.libyaml ├── README.md ├── apic.go ├── decode.go ├── decode_test.go ├── emitterc.go ├── encode.go ├── encode_test.go ├── example_embedded_test.go ├── parserc.go ├── readerc.go ├── resolve.go ├── scannerc.go ├── sorter.go ├── suite_test.go ├── writerc.go ├── yaml.go ├── yamlh.go └── yamlprivateh.go /.gitignore: -------------------------------------------------------------------------------- 1 | Godeps/_workspace/ 2 | awsenv 3 | -------------------------------------------------------------------------------- /.repo-runner.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | image: "quay.io/luzifer/repo-runner-image" 4 | checkout_dir: /go/src/github.com/Luzifer/awsenv 5 | 6 | commands: 7 | - make publish 8 | 9 | environment: 10 | CGO_ENABLED: 0 11 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to this project 2 | 3 | Contributions are encouraged and welcome. Thank you very much for taking your time to contribute! 4 | 5 | ## Code of Conduct 6 | This project adheres to the [Contributor Covenant code of conduct](http://contributor-covenant.org/version/1/4/). By participating, you are expected to uphold this code. Please report unacceptable behavior to the [project maintainer](mailto:help@luzifer.io). 7 | 8 | ## Developer Certificate of Origin 9 | Please also review the [Developer Certificate of Origin](https://developercertificate.org/). All commits must be signed off using `git commit -s` to indicate you've read the document and your contribution meets the criteria defined in it. 10 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | default: 2 | go build -ldflags "-X main.version=$(shell git describe --tags || git rev-parse --short HEAD || echo dev)" 3 | 4 | publish: 5 | curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh 6 | bash golang.sh 7 | -------------------------------------------------------------------------------- /cmdChangePassword.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | log "github.com/Sirupsen/logrus" 5 | "github.com/bgentry/speakeasy" 6 | "github.com/spf13/cobra" 7 | ) 8 | 9 | func getCmdChangePassword() *cobra.Command { 10 | cmd := cobra.Command{ 11 | Use: "passwd", 12 | Short: "change the password of the database", 13 | Run: actionCmdChangePassword, 14 | } 15 | 16 | return &cmd 17 | } 18 | 19 | func actionCmdChangePassword(cmd *cobra.Command, args []string) { 20 | passwd, err := speakeasy.Ask("New Password: ") 21 | if err != nil { 22 | log.Errorf("Unable to read password: %s", err) 23 | } 24 | repeatPasswd, err := speakeasy.Ask("Please repeat: ") 25 | if err != nil { 26 | log.Errorf("Unable to read password: %s", err) 27 | } 28 | 29 | if passwd != repeatPasswd { 30 | log.Errorln("Passwords does not match. Not executing change.") 31 | return 32 | } 33 | 34 | if err := awsCredentials.UpdatePassword(passwd); err != nil { 35 | log.Error("Unable to change the password.") 36 | return 37 | } 38 | 39 | log.Println("Password has been changed, locking database now.") 40 | actionCmdLock(cmd, args) 41 | } 42 | -------------------------------------------------------------------------------- /cmdDelete.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "os" 5 | 6 | log "github.com/Sirupsen/logrus" 7 | "github.com/spf13/cobra" 8 | ) 9 | 10 | func getCmdDelete() *cobra.Command { 11 | cmd := cobra.Command{ 12 | Use: "delete [environment]", 13 | Short: "delete an AWS environment", 14 | Run: actionCmdDelete, 15 | } 16 | 17 | return &cmd 18 | } 19 | 20 | func actionCmdDelete(cmd *cobra.Command, args []string) { 21 | if len(args) < 1 { 22 | cmd.Usage() 23 | log.Error("Please specify the name of the environment to delete") 24 | os.Exit(1) 25 | } 26 | 27 | if _, ok := awsCredentials.Credentials[args[0]]; ok { 28 | delete(awsCredentials.Credentials, args[0]) 29 | awsCredentials.SaveToFile() 30 | log.Infof("AWS environment '%s' was successfully deleted.", args[0]) 31 | } else { 32 | log.Errorf("AWS environment '%s' was not found.", args[0]) 33 | os.Exit(1) 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /cmdGet.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | 7 | log "github.com/Sirupsen/logrus" 8 | "github.com/spf13/cobra" 9 | ) 10 | 11 | func getCmdGet() *cobra.Command { 12 | cmd := cobra.Command{ 13 | Use: "get [environment]", 14 | Short: "print the AWS crentitals in human readable format", 15 | Run: actionCmdGet, 16 | } 17 | return &cmd 18 | } 19 | 20 | func actionCmdGet(cmd *cobra.Command, args []string) { 21 | if len(args) < 1 { 22 | cmd.Usage() 23 | log.Error("Please specify the name of the environment to get") 24 | os.Exit(1) 25 | } 26 | 27 | if a, ok := awsCredentials.Credentials[args[0]]; ok { 28 | fmt.Printf("Credentials for the '%s' environment:\n", args[0]) 29 | fmt.Printf(" AWS Access-Key: %s\n", a.AWSAccessKeyID) 30 | fmt.Printf(" AWS Secret-Access-Key: %s\n", a.AWSSecretAccessKey) 31 | fmt.Printf(" AWS EC2-Region: %s\n", a.AWSRegion) 32 | os.Exit(0) 33 | } 34 | 35 | log.Errorf("Could not find environment '%s'", args[0]) 36 | os.Exit(1) 37 | } 38 | -------------------------------------------------------------------------------- /cmdList.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/spf13/cobra" 7 | ) 8 | 9 | func getCmdList() *cobra.Command { 10 | cmd := cobra.Command{ 11 | Use: "list", 12 | Aliases: []string{"l", "ls"}, 13 | Short: "list available AWS environments", 14 | Run: actionCmdList, 15 | } 16 | return &cmd 17 | } 18 | 19 | func actionCmdList(cmd *cobra.Command, args []string) { 20 | for k := range awsCredentials.Credentials { 21 | fmt.Println(k) 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /cmdLock.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | 6 | log "github.com/Sirupsen/logrus" 7 | "github.com/spf13/cobra" 8 | ) 9 | 10 | func getCmdLock() *cobra.Command { 11 | cmd := cobra.Command{ 12 | Use: "lock", 13 | Short: "lock the database", 14 | Run: actionCmdLock, 15 | } 16 | 17 | return &cmd 18 | } 19 | 20 | func actionCmdLock(cmd *cobra.Command, args []string) { 21 | err := password.KillLockAgent(fmt.Sprintf("%s.lock", cfg.Database)) 22 | if err != nil { 23 | log.Error("Unable to kill the lock agent. Is it running?") 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /cmdPrompt.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | 7 | "github.com/spf13/cobra" 8 | ) 9 | 10 | func getCmdPrompt() *cobra.Command { 11 | cmd := cobra.Command{ 12 | Use: "prompt", 13 | Short: "echos the name of the currently set env for use in prompts", 14 | Run: actionCmdPrompt, 15 | } 16 | return &cmd 17 | } 18 | 19 | func actionCmdPrompt(cmd *cobra.Command, args []string) { 20 | for k, v := range awsCredentials.Credentials { 21 | if v.AWSAccessKeyID == os.Getenv("AWS_ACCESS_KEY") { 22 | fmt.Printf(k) 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /cmdVersion.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/spf13/cobra" 7 | ) 8 | 9 | func getCmdVersion() *cobra.Command { 10 | cmd := cobra.Command{ 11 | Use: "version", 12 | Aliases: []string{"v"}, 13 | Short: "prints the current version of awsenv", 14 | Run: actionCmdVersion, 15 | } 16 | 17 | return &cmd 18 | } 19 | 20 | func actionCmdVersion(cmd *cobra.Command, args []string) { 21 | fmt.Printf("awsenv version %s\n", version) 22 | } 23 | -------------------------------------------------------------------------------- /config.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | type config struct { 4 | Debug bool 5 | Database string 6 | Password string 7 | 8 | Add struct { 9 | AccessKey string 10 | SecretAccessKey string 11 | Region string 12 | } 13 | 14 | Console struct { 15 | Duration int 16 | } 17 | 18 | Shell struct { 19 | Shell string 20 | Export bool 21 | } 22 | 23 | LockAgent struct { 24 | Timeout string 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /shellsupport/bash/bash.go: -------------------------------------------------------------------------------- 1 | package bash // import "github.com/Luzifer/awsenv/shellsupport/bash" 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/Luzifer/awsenv/credentials" 7 | "github.com/Luzifer/awsenv/shellsupport" 8 | ) 9 | 10 | func init() { 11 | shellsupport.RegisterShellHandler("bash", bashShellHandler) 12 | shellsupport.RegisterShellHandler("zsh", bashShellHandler) 13 | } 14 | 15 | func bashShellHandler(c credentials.AWSCredential, export bool) []string { 16 | flags := "" 17 | if export { 18 | flags = "export" 19 | } 20 | 21 | return []string{ 22 | fmt.Sprintf("%s AWS_ACCESS_KEY=%s;", flags, c.AWSAccessKeyID), 23 | fmt.Sprintf("%s AWS_ACCESS_KEY_ID=%s;", flags, c.AWSAccessKeyID), 24 | fmt.Sprintf("%s AWS_SECRET_KEY=%s;", flags, c.AWSSecretAccessKey), 25 | fmt.Sprintf("%s AWS_SECRET_ACCESS_KEY=%s;", flags, c.AWSSecretAccessKey), 26 | fmt.Sprintf("%s EC2_REGION=%s;", flags, c.AWSRegion), 27 | fmt.Sprintf("%s AWS_REGION=%s;", flags, c.AWSRegion), 28 | fmt.Sprintf("%s AWS_DEFAULT_REGION=%s;", flags, c.AWSRegion), 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /shellsupport/fish/fish.go: -------------------------------------------------------------------------------- 1 | package fish // import "github.com/Luzifer/awsenv/shellsupport/fish" 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/Luzifer/awsenv/credentials" 7 | "github.com/Luzifer/awsenv/shellsupport" 8 | ) 9 | 10 | func init() { 11 | shellsupport.RegisterShellHandler("fish", fishShellHandler) 12 | } 13 | 14 | func fishShellHandler(c credentials.AWSCredential, export bool) []string { 15 | flags := "-g" 16 | if export { 17 | flags = "-gx" 18 | } 19 | 20 | return []string{ 21 | fmt.Sprintf("set %s AWS_ACCESS_KEY %s;", flags, c.AWSAccessKeyID), 22 | fmt.Sprintf("set %s AWS_ACCESS_KEY_ID %s;", flags, c.AWSAccessKeyID), 23 | fmt.Sprintf("set %s AWS_SECRET_KEY %s;", flags, c.AWSSecretAccessKey), 24 | fmt.Sprintf("set %s AWS_SECRET_ACCESS_KEY %s;", flags, c.AWSSecretAccessKey), 25 | fmt.Sprintf("set %s EC2_REGION %s;", flags, c.AWSRegion), 26 | fmt.Sprintf("set %s AWS_REGION %s;", flags, c.AWSRegion), 27 | fmt.Sprintf("set %s AWS_DEFAULT_REGION %s;", flags, c.AWSRegion), 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/Luzifer/go-openssl/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.7.x 5 | - 1.8.x 6 | - tip 7 | 8 | script: 9 | - go vet 10 | - go test 11 | -------------------------------------------------------------------------------- /vendor/github.com/Luzifer/go-openssl/History.md: -------------------------------------------------------------------------------- 1 | # 1.1.0 / 2017-09-18 2 | 3 | * Add salt validation and improve comments 4 | * Added ability to pass custom salt to everyencrypt call (thanks @VojtechBartos) 5 | -------------------------------------------------------------------------------- /vendor/github.com/Luzifer/go-openssl/examples_test.go: -------------------------------------------------------------------------------- 1 | package openssl 2 | 3 | import "fmt" 4 | 5 | func ExampleOpenSSL_EncryptString() { 6 | plaintext := "Hello World!" 7 | passphrase := "z4yH36a6zerhfE5427ZV" 8 | 9 | o := New() 10 | 11 | enc, err := o.EncryptString(passphrase, plaintext) 12 | if err != nil { 13 | fmt.Printf("An error occurred: %s\n", err) 14 | } 15 | 16 | fmt.Printf("Encrypted text: %s\n", string(enc)) 17 | } 18 | 19 | func ExampleOpenSSL_DecryptString() { 20 | opensslEncrypted := "U2FsdGVkX19ZM5qQJGe/d5A/4pccgH+arBGTp+QnWPU=" 21 | passphrase := "z4yH36a6zerhfE5427ZV" 22 | 23 | o := New() 24 | 25 | dec, err := o.DecryptString(passphrase, opensslEncrypted) 26 | if err != nil { 27 | fmt.Printf("An error occurred: %s\n", err) 28 | } 29 | 30 | fmt.Printf("Decrypted text: %s\n", string(dec)) 31 | 32 | // Output: 33 | // Decrypted text: hallowelt 34 | } 35 | -------------------------------------------------------------------------------- /vendor/github.com/Sirupsen/logrus/.gitignore: -------------------------------------------------------------------------------- 1 | logrus 2 | -------------------------------------------------------------------------------- /vendor/github.com/Sirupsen/logrus/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.2 4 | - 1.3 5 | - 1.4 6 | - tip 7 | install: 8 | - go get -t ./... 9 | -------------------------------------------------------------------------------- /vendor/github.com/Sirupsen/logrus/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 0.8.7 2 | 3 | * logrus/core: fix possible race (#216) 4 | * logrus/doc: small typo fixes and doc improvements 5 | 6 | 7 | # 0.8.6 8 | 9 | * hooks/raven: allow passing an initialized client 10 | 11 | # 0.8.5 12 | 13 | * logrus/core: revert #208 14 | 15 | # 0.8.4 16 | 17 | * formatter/text: fix data race (#218) 18 | 19 | # 0.8.3 20 | 21 | * logrus/core: fix entry log level (#208) 22 | * logrus/core: improve performance of text formatter by 40% 23 | * logrus/core: expose `LevelHooks` type 24 | * logrus/core: add support for DragonflyBSD and NetBSD 25 | * formatter/text: print structs more verbosely 26 | 27 | # 0.8.2 28 | 29 | * logrus: fix more Fatal family functions 30 | 31 | # 0.8.1 32 | 33 | * logrus: fix not exiting on `Fatalf` and `Fatalln` 34 | 35 | # 0.8.0 36 | 37 | * logrus: defaults to stderr instead of stdout 38 | * hooks/sentry: add special field for `*http.Request` 39 | * formatter/text: ignore Windows for colors 40 | 41 | # 0.7.3 42 | 43 | * formatter/\*: allow configuration of timestamp layout 44 | 45 | # 0.7.2 46 | 47 | * formatter/text: Add configuration option for time format (#158) 48 | -------------------------------------------------------------------------------- /vendor/github.com/Sirupsen/logrus/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package logrus is a structured logger for Go, completely API compatible with the standard library logger. 3 | 4 | 5 | The simplest way to use Logrus is simply the package-level exported logger: 6 | 7 | package main 8 | 9 | import ( 10 | log "github.com/Sirupsen/logrus" 11 | ) 12 | 13 | func main() { 14 | log.WithFields(log.Fields{ 15 | "animal": "walrus", 16 | "number": 1, 17 | "size": 10, 18 | }).Info("A walrus appears") 19 | } 20 | 21 | Output: 22 | time="2015-09-07T08:48:33Z" level=info msg="A walrus appears" animal=walrus number=1 size=10 23 | 24 | For a full guide visit https://github.com/Sirupsen/logrus 25 | */ 26 | package logrus 27 | -------------------------------------------------------------------------------- /vendor/github.com/Sirupsen/logrus/examples/hook/hook.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/Sirupsen/logrus" 5 | "github.com/Sirupsen/logrus/hooks/airbrake" 6 | ) 7 | 8 | var log = logrus.New() 9 | 10 | func init() { 11 | log.Formatter = new(logrus.TextFormatter) // default 12 | log.Hooks.Add(airbrake.NewHook("https://example.com", "xyz", "development")) 13 | } 14 | 15 | func main() { 16 | log.WithFields(logrus.Fields{ 17 | "animal": "walrus", 18 | "size": 10, 19 | }).Info("A group of walrus emerges from the ocean") 20 | 21 | log.WithFields(logrus.Fields{ 22 | "omg": true, 23 | "number": 122, 24 | }).Warn("The group's number increased tremendously!") 25 | 26 | log.WithFields(logrus.Fields{ 27 | "omg": true, 28 | "number": 100, 29 | }).Fatal("The ice breaks!") 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/Sirupsen/logrus/hooks/papertrail/papertrail_test.go: -------------------------------------------------------------------------------- 1 | package logrus_papertrail 2 | 3 | import ( 4 | "fmt" 5 | "testing" 6 | 7 | "github.com/Sirupsen/logrus" 8 | "github.com/stvp/go-udp-testing" 9 | ) 10 | 11 | func TestWritingToUDP(t *testing.T) { 12 | port := 16661 13 | udp.SetAddr(fmt.Sprintf(":%d", port)) 14 | 15 | hook, err := NewPapertrailHook("localhost", port, "test") 16 | if err != nil { 17 | t.Errorf("Unable to connect to local UDP server.") 18 | } 19 | 20 | log := logrus.New() 21 | log.Hooks.Add(hook) 22 | 23 | udp.ShouldReceive(t, "foo", func() { 24 | log.Info("foo") 25 | }) 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/Sirupsen/logrus/hooks/syslog/README.md: -------------------------------------------------------------------------------- 1 | # Syslog Hooks for Logrus :walrus: 2 | 3 | ## Usage 4 | 5 | ```go 6 | import ( 7 | "log/syslog" 8 | "github.com/Sirupsen/logrus" 9 | logrus_syslog "github.com/Sirupsen/logrus/hooks/syslog" 10 | ) 11 | 12 | func main() { 13 | log := logrus.New() 14 | hook, err := logrus_syslog.NewSyslogHook("udp", "localhost:514", syslog.LOG_INFO, "") 15 | 16 | if err == nil { 17 | log.Hooks.Add(hook) 18 | } 19 | } 20 | ``` 21 | -------------------------------------------------------------------------------- /vendor/github.com/Sirupsen/logrus/hooks/syslog/syslog_test.go: -------------------------------------------------------------------------------- 1 | package logrus_syslog 2 | 3 | import ( 4 | "github.com/Sirupsen/logrus" 5 | "log/syslog" 6 | "testing" 7 | ) 8 | 9 | func TestLocalhostAddAndPrint(t *testing.T) { 10 | log := logrus.New() 11 | hook, err := NewSyslogHook("udp", "localhost:514", syslog.LOG_INFO, "") 12 | 13 | if err != nil { 14 | t.Errorf("Unable to connect to local syslog.") 15 | } 16 | 17 | log.Hooks.Add(hook) 18 | 19 | for _, level := range hook.Levels() { 20 | if len(log.Hooks[level]) != 1 { 21 | t.Errorf("SyslogHook was not added. The length of log.Hooks[%v]: %v", level, len(log.Hooks[level])) 22 | } 23 | } 24 | 25 | log.Info("Congratulations!") 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/Sirupsen/logrus/json_formatter.go: -------------------------------------------------------------------------------- 1 | package logrus 2 | 3 | import ( 4 | "encoding/json" 5 | "fmt" 6 | ) 7 | 8 | type JSONFormatter struct { 9 | // TimestampFormat sets the format used for marshaling timestamps. 10 | TimestampFormat string 11 | } 12 | 13 | func (f *JSONFormatter) Format(entry *Entry) ([]byte, error) { 14 | data := make(Fields, len(entry.Data)+3) 15 | for k, v := range entry.Data { 16 | switch v := v.(type) { 17 | case error: 18 | // Otherwise errors are ignored by `encoding/json` 19 | // https://github.com/Sirupsen/logrus/issues/137 20 | data[k] = v.Error() 21 | default: 22 | data[k] = v 23 | } 24 | } 25 | prefixFieldClashes(data) 26 | 27 | timestampFormat := f.TimestampFormat 28 | if timestampFormat == "" { 29 | timestampFormat = DefaultTimestampFormat 30 | } 31 | 32 | data["time"] = entry.Time.Format(timestampFormat) 33 | data["msg"] = entry.Message 34 | data["level"] = entry.Level.String() 35 | 36 | serialized, err := json.Marshal(data) 37 | if err != nil { 38 | return nil, fmt.Errorf("Failed to marshal fields to JSON, %v", err) 39 | } 40 | return append(serialized, '\n'), nil 41 | } 42 | -------------------------------------------------------------------------------- /vendor/github.com/Sirupsen/logrus/terminal_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd openbsd netbsd dragonfly 2 | 3 | package logrus 4 | 5 | import "syscall" 6 | 7 | const ioctlReadTermios = syscall.TIOCGETA 8 | 9 | type Termios syscall.Termios 10 | -------------------------------------------------------------------------------- /vendor/github.com/Sirupsen/logrus/terminal_linux.go: -------------------------------------------------------------------------------- 1 | // Based on ssh/terminal: 2 | // Copyright 2013 The Go Authors. All rights reserved. 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | package logrus 7 | 8 | import "syscall" 9 | 10 | const ioctlReadTermios = syscall.TCGETS 11 | 12 | type Termios syscall.Termios 13 | -------------------------------------------------------------------------------- /vendor/github.com/Sirupsen/logrus/terminal_notwindows.go: -------------------------------------------------------------------------------- 1 | // Based on ssh/terminal: 2 | // Copyright 2011 The Go Authors. All rights reserved. 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | // +build linux darwin freebsd openbsd netbsd dragonfly 7 | 8 | package logrus 9 | 10 | import ( 11 | "syscall" 12 | "unsafe" 13 | ) 14 | 15 | // IsTerminal returns true if the given file descriptor is a terminal. 16 | func IsTerminal() bool { 17 | fd := syscall.Stdout 18 | var termios Termios 19 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, uintptr(fd), ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 20 | return err == 0 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/Sirupsen/logrus/terminal_windows.go: -------------------------------------------------------------------------------- 1 | // Based on ssh/terminal: 2 | // Copyright 2011 The Go Authors. All rights reserved. 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | // +build windows 7 | 8 | package logrus 9 | 10 | import ( 11 | "syscall" 12 | "unsafe" 13 | ) 14 | 15 | var kernel32 = syscall.NewLazyDLL("kernel32.dll") 16 | 17 | var ( 18 | procGetConsoleMode = kernel32.NewProc("GetConsoleMode") 19 | ) 20 | 21 | // IsTerminal returns true if the given file descriptor is a terminal. 22 | func IsTerminal() bool { 23 | fd := syscall.Stdout 24 | var st uint32 25 | r, _, e := syscall.Syscall(procGetConsoleMode.Addr(), 2, uintptr(fd), uintptr(unsafe.Pointer(&st)), 0) 26 | return r != 0 && e == 0 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/Sirupsen/logrus/writer.go: -------------------------------------------------------------------------------- 1 | package logrus 2 | 3 | import ( 4 | "bufio" 5 | "io" 6 | "runtime" 7 | ) 8 | 9 | func (logger *Logger) Writer() *io.PipeWriter { 10 | reader, writer := io.Pipe() 11 | 12 | go logger.writerScanner(reader) 13 | runtime.SetFinalizer(writer, writerFinalizer) 14 | 15 | return writer 16 | } 17 | 18 | func (logger *Logger) writerScanner(reader *io.PipeReader) { 19 | scanner := bufio.NewScanner(reader) 20 | for scanner.Scan() { 21 | logger.Print(scanner.Text()) 22 | } 23 | if err := scanner.Err(); err != nil { 24 | logger.Errorf("Error while reading from Writer: %s", err) 25 | } 26 | reader.Close() 27 | } 28 | 29 | func writerFinalizer(writer *io.PipeWriter) { 30 | writer.Close() 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/.gitignore: -------------------------------------------------------------------------------- 1 | vendor 2 | doc 3 | .yardoc 4 | Gemfile.lock 5 | private/features/smoke/**/importmarker__.go 6 | private/features/smoke/_test/ 7 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | sudo: false 4 | 5 | go: 6 | - 1.4 7 | - 1.5 8 | - tip 9 | 10 | install: "go get -v -t ./... && make deps" 11 | script: make unit 12 | 13 | matrix: 14 | allow_failures: 15 | - go: tip 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/.yardopts: -------------------------------------------------------------------------------- 1 | --plugin go 2 | -e doc-src/plugin/plugin.rb 3 | -m markdown 4 | -o doc/api 5 | --title "AWS SDK for Go" 6 | aws/**/*.go 7 | service/**/*.go 8 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | gem 'yard', git: 'git://github.com/lsegal/yard' 4 | gem 'yard-go', git: 'git://github.com/lsegal/yard-go' 5 | gem 'rdiscount' 6 | 7 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/NOTICE.txt: -------------------------------------------------------------------------------- 1 | AWS SDK for Go 2 | Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | Copyright 2014-2015 Stripe, Inc. 4 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/credentials/example.ini: -------------------------------------------------------------------------------- 1 | [default] 2 | aws_access_key_id = accessKey 3 | aws_secret_access_key = secret 4 | aws_session_token = token 5 | 6 | [no_token] 7 | aws_access_key_id = accessKey 8 | aws_secret_access_key = secret 9 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/credentials/static_provider_test.go: -------------------------------------------------------------------------------- 1 | package credentials 2 | 3 | import ( 4 | "github.com/stretchr/testify/assert" 5 | "testing" 6 | ) 7 | 8 | func TestStaticProviderGet(t *testing.T) { 9 | s := StaticProvider{ 10 | Value: Value{ 11 | AccessKeyID: "AKID", 12 | SecretAccessKey: "SECRET", 13 | SessionToken: "", 14 | }, 15 | } 16 | 17 | creds, err := s.Retrieve() 18 | assert.Nil(t, err, "Expect no error") 19 | assert.Equal(t, "AKID", creds.AccessKeyID, "Expect access key ID to match") 20 | assert.Equal(t, "SECRET", creds.SecretAccessKey, "Expect secret access key to match") 21 | assert.Empty(t, creds.SessionToken, "Expect no session token") 22 | } 23 | 24 | func TestStaticProviderIsExpired(t *testing.T) { 25 | s := StaticProvider{ 26 | Value: Value{ 27 | AccessKeyID: "AKID", 28 | SecretAccessKey: "SECRET", 29 | SessionToken: "", 30 | }, 31 | } 32 | 33 | assert.False(t, s.IsExpired(), "Expect static credentials to never expire") 34 | } 35 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/errors.go: -------------------------------------------------------------------------------- 1 | package aws 2 | 3 | import "github.com/aws/aws-sdk-go/aws/awserr" 4 | 5 | var ( 6 | // ErrMissingRegion is an error that is returned if region configuration is 7 | // not found. 8 | // 9 | // @readonly 10 | ErrMissingRegion error = awserr.New("MissingRegion", "could not find region configuration", nil) 11 | 12 | // ErrMissingEndpoint is an error that is returned if an endpoint cannot be 13 | // resolved for a service. 14 | // 15 | // @readonly 16 | ErrMissingEndpoint error = awserr.New("MissingEndpoint", "'Endpoint' configuration is required for this service", nil) 17 | ) 18 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/service/serviceinfo/service_info.go: -------------------------------------------------------------------------------- 1 | package serviceinfo 2 | 3 | import "github.com/aws/aws-sdk-go/aws" 4 | 5 | // ServiceInfo wraps immutable data from the service.Service structure. 6 | type ServiceInfo struct { 7 | Config *aws.Config 8 | ServiceName string 9 | APIVersion string 10 | Endpoint string 11 | SigningName string 12 | SigningRegion string 13 | JSONVersion string 14 | TargetPrefix string 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/version.go: -------------------------------------------------------------------------------- 1 | // Package aws provides core functionality for making requests to AWS services. 2 | package aws 3 | 4 | // SDKName is the name of this AWS SDK 5 | const SDKName = "aws-sdk-go" 6 | 7 | // SDKVersion is the version of this SDK 8 | const SDKVersion = "0.9.17" 9 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/renamer.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | //go:generate go run gen/gen.go 4 | 5 | import ( 6 | "os" 7 | "os/exec" 8 | "path/filepath" 9 | "strings" 10 | 11 | "github.com/aws/aws-sdk-go/awsmigrate/awsmigrate-renamer/rename" 12 | ) 13 | 14 | var safeTag = "4e554f77f00d527b452c68a46f2e68595284121b" 15 | 16 | func main() { 17 | gopath := os.Getenv("GOPATH") 18 | if gopath == "" { 19 | panic("GOPATH not set!") 20 | } 21 | gopath = strings.Split(gopath, ":")[0] 22 | 23 | // change directory to SDK 24 | err := os.Chdir(filepath.Join(gopath, "src", "github.com", "aws", "aws-sdk-go")) 25 | if err != nil { 26 | panic("Cannot find SDK repository") 27 | } 28 | 29 | // store orig HEAD 30 | head, err := exec.Command("git", "rev-parse", "--abbrev-ref", "HEAD").Output() 31 | if err != nil { 32 | panic("Cannot find SDK repository") 33 | } 34 | origHEAD := strings.Trim(string(head), " \r\n") 35 | 36 | // checkout to safe tag and run conversion 37 | exec.Command("git", "checkout", safeTag).Run() 38 | defer func() { 39 | exec.Command("git", "checkout", origHEAD).Run() 40 | }() 41 | 42 | rename.ParsePathsFromArgs() 43 | } 44 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/s3/s3manager/stub.go: -------------------------------------------------------------------------------- 1 | package s3manager 2 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/s3/stub.go: -------------------------------------------------------------------------------- 1 | package s3 2 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/apigateway/apigateway.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @apigateway @client 3 | Feature: Amazon API Gateway 4 | 5 | Scenario: Making a request 6 | When I call the "GetAccountRequest" API 7 | Then the request should be successful 8 | 9 | Scenario: Handing errors 10 | When I attempt to call the "GetRestApi" API with: 11 | | RestApiId | api123 | 12 | Then I expect the response error code to be "NotFoundException" 13 | And I expect the response error message to include: 14 | """ 15 | Invalid REST API identifier specified 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/apigateway/client.go: -------------------------------------------------------------------------------- 1 | //Package apigateway provides gucumber integration tests support. 2 | package apigateway 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/apigateway" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@apigateway", func() { 14 | World["client"] = apigateway.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/autoscaling/autoscaling.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @autoscaling @client 3 | Feature: Auto Scaling 4 | 5 | Scenario: Making a request 6 | When I call the "DescribeScalingProcessTypes" API 7 | Then the value at "Processes" should be a list 8 | 9 | Scenario: Handing errors 10 | When I attempt to call the "CreateLaunchConfiguration" API with: 11 | | LaunchConfigurationName | | 12 | | ImageId | ami-12345678 | 13 | | InstanceType | m1.small | 14 | Then I expect the response error code to be "InvalidParameter" 15 | And I expect the response error message to include: 16 | """ 17 | LaunchConfigurationName 18 | """ 19 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/autoscaling/client.go: -------------------------------------------------------------------------------- 1 | //Package autoscaling provides gucumber integration tests support. 2 | package autoscaling 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/autoscaling" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@autoscaling", func() { 14 | World["client"] = autoscaling.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudformation/client.go: -------------------------------------------------------------------------------- 1 | //Package cloudformation provides gucumber integration tests support. 2 | package cloudformation 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/cloudformation" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@cloudformation", func() { 14 | World["client"] = cloudformation.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudformation/cloudformation.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @cloudformation @client 3 | Feature: AWS CloudFormation 4 | 5 | Scenario: Making a request 6 | When I call the "ListStacks" API 7 | Then the value at "StackSummaries" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "CreateStack" API with: 11 | | StackName | fakestack | 12 | | TemplateURL | http://s3.amazonaws.com/foo/bar | 13 | Then I expect the response error code to be "ValidationError" 14 | And I expect the response error message to include: 15 | """ 16 | TemplateURL must reference a valid S3 object to which you have access. 17 | """ 18 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudfront/client.go: -------------------------------------------------------------------------------- 1 | //Package cloudfront provides gucumber integration tests support. 2 | package cloudfront 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/cloudfront" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@cloudfront", func() { 14 | World["client"] = cloudfront.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudfront/cloudfront.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @cloudfront @client 3 | Feature: Amazon CloudFront 4 | 5 | Scenario: Making a basic request 6 | When I call the "ListDistributions" API with: 7 | | MaxItems | 1 | 8 | Then the value at "DistributionList.Items" should be a list 9 | 10 | Scenario: Error handling 11 | When I attempt to call the "GetDistribution" API with: 12 | | Id | fake-id | 13 | Then I expect the response error code to be "NoSuchDistribution" 14 | And I expect the response error message to include: 15 | """ 16 | The specified distribution does not exist. 17 | """ 18 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudhsm/client.go: -------------------------------------------------------------------------------- 1 | //Package cloudhsm provides gucumber integration tests support. 2 | package cloudhsm 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/cloudhsm" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@cloudhsm", func() { 14 | World["client"] = cloudhsm.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudhsm/cloudhsm.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @cloudhsm @client 3 | Feature: Amazon CloudHSM 4 | 5 | Scenario: Making a request 6 | When I call the "ListHapgs" API 7 | Then the value at "HapgList" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "DescribeHapg" API with: 11 | | HapgArn | bogus-arn | 12 | Then I expect the response error code to be "ValidationException" 13 | And I expect the response error message to include: 14 | """ 15 | Value 'bogus-arn' at 'hapgArn' failed to satisfy constraint 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudsearch/client.go: -------------------------------------------------------------------------------- 1 | //Package cloudsearch provides gucumber integration tests support. 2 | package cloudsearch 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/cloudsearch" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@cloudsearch", func() { 14 | World["client"] = cloudsearch.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudsearch/cloudsearch.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @cloudsearch @client 3 | Feature: Amazon CloudSearch 4 | 5 | Scenario: Making a request 6 | When I call the "DescribeDomains" API 7 | Then the response should contain a "DomainStatusList" 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "DescribeIndexFields" API with: 11 | | DomainName | fakedomain | 12 | Then I expect the response error code to be "ResourceNotFound" 13 | And I expect the response error message to include: 14 | """ 15 | Domain not found: fakedomain 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudtrail/client.go: -------------------------------------------------------------------------------- 1 | //Package cloudtrail provides gucumber integration tests support. 2 | package cloudtrail 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/cloudtrail" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@cloudtrail", func() { 14 | World["client"] = cloudtrail.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudtrail/cloudtrail.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @cloudtrail @client 3 | Feature: AWS CloudTrail 4 | 5 | Scenario: Making a request 6 | When I call the "DescribeTrails" API 7 | Then the response should contain a "trailList" 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "DeleteTrail" API with: 11 | | Name | faketrail | 12 | Then I expect the response error code to be "TrailNotFoundException" 13 | And I expect the response error message to include: 14 | """ 15 | Unknown trail 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatch/client.go: -------------------------------------------------------------------------------- 1 | //Package cloudwatch provides gucumber integration tests support. 2 | package cloudwatch 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/cloudwatch" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@cloudwatch", func() { 14 | World["client"] = cloudwatch.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatch/cloudwatch.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @cloudwatch @monitoring @client 3 | Feature: Amazon CloudWatch 4 | 5 | Scenario: Making a request 6 | When I call the "ListMetrics" API with: 7 | | Namespace | AWS/EC2 | 8 | Then the value at "Metrics" should be a list 9 | 10 | Scenario: Handling errors 11 | When I attempt to call the "SetAlarmState" API with: 12 | | AlarmName | abc | 13 | | StateValue | mno | 14 | | StateReason | xyz | 15 | Then I expect the response error code to be "ValidationError" 16 | And I expect the response error message to include: 17 | """ 18 | failed to satisfy constraint 19 | """ 20 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatchlogs/client.go: -------------------------------------------------------------------------------- 1 | //Package cloudwatchlogs provides gucumber integration tests support. 2 | package cloudwatchlogs 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/cloudwatchlogs" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@cloudwatchlogs", func() { 14 | World["client"] = cloudwatchlogs.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatchlogs/cloudwatchlogs.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @cloudwatchlogs @logs 3 | Feature: Amazon CloudWatch Logs 4 | 5 | Scenario: Making a request 6 | When I call the "DescribeLogGroups" API 7 | Then the value at "logGroups" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "GetLogEvents" API with: 11 | | logGroupName | fakegroup | 12 | | logStreamName | fakestream | 13 | Then I expect the response error code to be "ResourceNotFoundException" 14 | And I expect the response error message to include: 15 | """ 16 | The specified log group does not exist. 17 | """ 18 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codecommit/client.go: -------------------------------------------------------------------------------- 1 | //Package codecommit provides gucumber integration tests support. 2 | package codecommit 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/codecommit" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@codecommit", func() { 14 | World["client"] = codecommit.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codecommit/codecommit.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @codecommit @client 3 | Feature: Amazon CodeCommit 4 | 5 | Scenario: Making a request 6 | When I call the "ListRepositories" API 7 | Then the value at "repositories" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "ListBranches" API with: 11 | | repositoryName | fake-repo | 12 | Then I expect the response error code to be "RepositoryDoesNotExistException" 13 | And I expect the response error message to include: 14 | """ 15 | fake-repo does not exist 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codedeploy/client.go: -------------------------------------------------------------------------------- 1 | //Package codedeploy provides gucumber integration tests support. 2 | package codedeploy 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/codedeploy" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@codedeploy", func() { 14 | World["client"] = codedeploy.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codedeploy/codedeploy.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @codedeploy @client 3 | Feature: Amazon CodeDeploy 4 | 5 | Scenario: Making a request 6 | When I call the "ListApplications" API 7 | Then the value at "applications" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "GetDeployment" API with: 11 | | deploymentId | d-USUAELQEX | 12 | Then I expect the response error code to be "DeploymentDoesNotExistException" 13 | And I expect the response error message to include: 14 | """ 15 | The deployment d-USUAELQEX could not be found 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codepipeline/client.go: -------------------------------------------------------------------------------- 1 | //Package codepipeline provides gucumber integration tests support. 2 | package codepipeline 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/codepipeline" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@codepipeline", func() { 14 | World["client"] = codepipeline.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codepipeline/codepipeline.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @codepipeline @client 3 | Feature: Amazon CodePipeline 4 | 5 | Scenario: Making a request 6 | When I call the "ListPipelines" API 7 | Then the value at "pipelines" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "GetPipeline" API with: 11 | | name | fake-pipeline | 12 | Then I expect the response error code to be "PipelineNotFoundException" 13 | And I expect the response error message to include: 14 | """ 15 | does not have a pipeline with name 'fake-pipeline' 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitoidentity/client.go: -------------------------------------------------------------------------------- 1 | //Package cognitoidentity provides gucumber integration tests support. 2 | package cognitoidentity 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/cognitoidentity" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@cognitoidentity", func() { 14 | World["client"] = cognitoidentity.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitoidentity/cognitoidentity.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @cognitoidentity @client 3 | Feature: Amazon Cognito Idenity 4 | 5 | Scenario: Making a request 6 | When I call the "ListIdentityPools" API with JSON: 7 | """ 8 | {"MaxResults": 10} 9 | """ 10 | Then the value at "IdentityPools" should be a list 11 | 12 | Scenario: Handling errors 13 | When I attempt to call the "DescribeIdentityPool" API with: 14 | | IdentityPoolId | us-east-1:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee | 15 | Then I expect the response error code to be "ResourceNotFoundException" 16 | And I expect the response error message to include: 17 | """ 18 | IdentityPool 'us-east-1:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee' not found 19 | """ 20 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitosync/client.go: -------------------------------------------------------------------------------- 1 | //Package cognitosync provides gucumber integration tests support. 2 | package cognitosync 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/cognitosync" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@cognitosync", func() { 14 | World["client"] = cognitosync.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitosync/cognitosync.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @cognitosync @client 3 | Feature: Amazon Cognito Sync 4 | 5 | Scenario: Making a request 6 | When I call the "ListIdentityPoolUsage" API 7 | Then the value at "IdentityPoolUsages" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "DescribeIdentityPoolUsage" API with: 11 | | IdentityPoolId | us-east-1:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee | 12 | Then I expect the response error code to be "ResourceNotFoundException" 13 | And I expect the response error message to include: 14 | """ 15 | IdentityPool 'us-east-1:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee' not found 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/configservice/client.go: -------------------------------------------------------------------------------- 1 | //Package configservice provides gucumber integration tests support. 2 | package configservice 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/configservice" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@configservice", func() { 14 | World["client"] = configservice.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/configservice/configservice.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @configservice @config @client 3 | Feature: AWS Config 4 | 5 | Scenario: Making a request 6 | When I call the "DescribeConfigurationRecorders" API 7 | Then the value at "ConfigurationRecorders" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "GetResourceConfigHistory" API with: 11 | | resourceType | fake-type | 12 | | resourceId | fake-id | 13 | Then I expect the response error code to be "ValidationException" 14 | And I expect the response error message to include: 15 | """ 16 | failed to satisfy constraint 17 | """ 18 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/datapipeline/client.go: -------------------------------------------------------------------------------- 1 | //Package datapipeline provides gucumber integration tests support. 2 | package datapipeline 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/datapipeline" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@datapipeline", func() { 14 | World["client"] = datapipeline.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/datapipeline/datapipeline.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @datapipeline @client 3 | Feature: AWS Data Pipeline 4 | 5 | Scenario: Making a request 6 | When I call the "ListPipelines" API 7 | Then the response should contain a "pipelineIdList" 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "GetPipelineDefinition" API with: 11 | | pipelineId | fake-id | 12 | Then I expect the response error code to be "PipelineNotFoundException" 13 | And I expect the response error message to include: 14 | """ 15 | does not exist 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/devicefarm/client.go: -------------------------------------------------------------------------------- 1 | //Package devicefarm provides gucumber integration tests support. 2 | package devicefarm 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/aws" 6 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 7 | "github.com/aws/aws-sdk-go/service/devicefarm" 8 | . "github.com/lsegal/gucumber" 9 | ) 10 | 11 | var _ = smoke.Imported 12 | 13 | func init() { 14 | Before("@devicefarm", func() { 15 | // FIXME remove custom region 16 | World["client"] = devicefarm.New(aws.NewConfig().WithRegion("us-west-2")) 17 | }) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/devicefarm/devicefarm.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @devicefarm @client 3 | Feature: AWS Device Farm 4 | 5 | Scenario: Making a request 6 | When I call the "ListDevices" API 7 | Then the value at "devices" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "GetDevice" API with: 11 | | arn | arn:aws:devicefarm:us-west-2::device:000000000000000000000000fake-arn | 12 | Then I expect the response error code to be "NotFoundException" 13 | And I expect the response error message to include: 14 | """ 15 | No device was found for arn 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directconnect/client.go: -------------------------------------------------------------------------------- 1 | //Package directconnect provides gucumber integration tests support. 2 | package directconnect 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/directconnect" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@directconnect", func() { 14 | World["client"] = directconnect.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directconnect/directconnect.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @directconnect @client 3 | Feature: AWS Direct Connect 4 | 5 | Scenario: Making a request 6 | When I call the "DescribeConnections" API 7 | Then the value at "connections" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "DescribeConnections" API with: 11 | | connectionId | fake-connection | 12 | Then I expect the response error code to be "DirectConnectClientException" 13 | And I expect the response error message to include: 14 | """ 15 | Connection ID fake-connection has an invalid format 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directoryservice/client.go: -------------------------------------------------------------------------------- 1 | //Package directoryservice provides gucumber integration tests support. 2 | package directoryservice 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/directoryservice" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@directoryservice", func() { 14 | World["client"] = directoryservice.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directoryservice/directoryservice.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @directoryservice @ds @client 3 | Feature: AWS Directory Service 4 | 5 | I want to use AWS Directory Service 6 | 7 | Scenario: Making a request 8 | When I call the "DescribeDirectories" API 9 | Then the value at "DirectoryDescriptions" should be a list 10 | 11 | Scenario: Handling errors 12 | When I attempt to call the "CreateDirectory" API with: 13 | | Name | | 14 | | Password | | 15 | | Size | | 16 | Then I expect the response error code to be "ValidationException" 17 | 18 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodb/client.go: -------------------------------------------------------------------------------- 1 | //Package dynamodb provides gucumber integration tests support. 2 | package dynamodb 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/dynamodb" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@dynamodb", func() { 14 | World["client"] = dynamodb.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodb/dynamodb.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @dynamodb @client 3 | Feature: Amazon DynamoDB 4 | 5 | Scenario: Making a request 6 | When I call the "ListTables" API with JSON: 7 | """ 8 | {"Limit": 1} 9 | """ 10 | Then the value at "TableNames" should be a list 11 | 12 | Scenario: Handling errors 13 | When I attempt to call the "DescribeTable" API with: 14 | | TableName | fake-table | 15 | Then I expect the response error code to be "ResourceNotFoundException" 16 | And I expect the response error message to include: 17 | """ 18 | Requested resource not found: Table: fake-table not found 19 | """ 20 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodbstreams/client.go: -------------------------------------------------------------------------------- 1 | //Package dynamodbstreams provides gucumber integration tests support. 2 | package dynamodbstreams 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/dynamodbstreams" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@dynamodbstreams", func() { 14 | World["client"] = dynamodbstreams.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodbstreams/dynamodbstreams.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @dynamodbstreams @client 3 | Feature: Amazon DynamoDB Streams 4 | 5 | Scenario: Making a request 6 | When I call the "ListStreams" API 7 | Then the value at "Streams" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "DescribeStream" API with: 11 | | StreamArn | fake-stream | 12 | Then I expect the response error code to be "InvalidParameter" 13 | And I expect the response error message to include: 14 | """ 15 | StreamArn 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ec2/client.go: -------------------------------------------------------------------------------- 1 | //Package ec2 provides gucumber integration tests support. 2 | package ec2 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/ec2" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@ec2", func() { 14 | World["client"] = ec2.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ec2/ec2.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @ec2 @client 3 | Feature: Amazon Elastic Compute Cloud 4 | 5 | Scenario: Making a request 6 | When I call the "DescribeRegions" API 7 | Then the value at "Regions" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "DescribeInstances" API with JSON: 11 | """ 12 | {"InstanceIds": ["i-12345678"]} 13 | """ 14 | Then I expect the response error code to be "InvalidInstanceID.NotFound" 15 | And I expect the response error message to include: 16 | """ 17 | The instance ID 'i-12345678' does not exist 18 | """ 19 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ecs/client.go: -------------------------------------------------------------------------------- 1 | //Package ecs provides gucumber integration tests support. 2 | package ecs 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/aws" 6 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 7 | "github.com/aws/aws-sdk-go/service/ecs" 8 | . "github.com/lsegal/gucumber" 9 | ) 10 | 11 | var _ = smoke.Imported 12 | 13 | func init() { 14 | Before("@ecs", func() { 15 | // FIXME remove custom region 16 | World["client"] = ecs.New(aws.NewConfig().WithRegion("us-west-2")) 17 | }) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ecs/ecs.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @ecs @client 3 | Feature: Amazon ECS 4 | 5 | I want to use Amazon ECS 6 | 7 | Scenario: Making a request 8 | When I call the "ListClusters" API 9 | Then the value at "clusterArns" should be a list 10 | 11 | Scenario: Handling errors 12 | When I attempt to call the "StopTask" API with: 13 | | task | xxxxxxxxxxx-xxxxxxxxxxxx-xxxxxxxxxxx | 14 | Then the error code should be "ClusterNotFoundException" 15 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/efs/client.go: -------------------------------------------------------------------------------- 1 | //Package efs provides gucumber integration tests support. 2 | package efs 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/aws" 6 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 7 | "github.com/aws/aws-sdk-go/service/efs" 8 | . "github.com/lsegal/gucumber" 9 | ) 10 | 11 | var _ = smoke.Imported 12 | 13 | func init() { 14 | Before("@efs", func() { 15 | // FIXME remove custom region 16 | World["client"] = efs.New(aws.NewConfig().WithRegion("us-west-2")) 17 | }) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/efs/efs.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @efs @elasticfilesystem @client 3 | Feature: Amazon Elastic File System 4 | 5 | I want to use Amazon Elastic File System 6 | 7 | Scenario: Making a request 8 | When I call the "DescribeFileSystems" API 9 | Then the value at "FileSystems" should be a list 10 | 11 | Scenario: Handling errors 12 | When I attempt to call the "DeleteFileSystem" API with: 13 | | FileSystemId | fake-id | 14 | Then the error code should be "BadRequest" 15 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticache/client.go: -------------------------------------------------------------------------------- 1 | //Package elasticache provides gucumber integration tests support. 2 | package elasticache 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/elasticache" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@elasticache", func() { 14 | World["client"] = elasticache.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticache/elasticache.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @elasticache @client 3 | Feature: ElastiCache 4 | 5 | Scenario: Making a request 6 | When I call the "DescribeEvents" API 7 | Then the value at "Events" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "DescribeCacheClusters" API with: 11 | | CacheClusterId | fake_cluster | 12 | Then I expect the response error code to be "InvalidParameterValue" 13 | And I expect the response error message to include: 14 | """ 15 | The parameter CacheClusterIdentifier is not a valid identifier. 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticbeanstalk/client.go: -------------------------------------------------------------------------------- 1 | //Package elasticbeanstalk provides gucumber integration tests support. 2 | package elasticbeanstalk 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/elasticbeanstalk" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@elasticbeanstalk", func() { 14 | World["client"] = elasticbeanstalk.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticbeanstalk/elasticbeanstalk.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @elasticbeanstalk @client 3 | Feature: AWS Elastic Beanstalk 4 | 5 | Scenario: Making a request 6 | When I call the "ListAvailableSolutionStacks" API 7 | Then the value at "SolutionStacks" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "DescribeEnvironmentResources" API with: 11 | | EnvironmentId | fake_environment | 12 | Then I expect the response error code to be "InvalidParameterValue" 13 | And I expect the response error message to include: 14 | """ 15 | No Environment found for EnvironmentId = 'fake_environment'. 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticloadbalancing/client.go: -------------------------------------------------------------------------------- 1 | //Package elasticloadbalancing provides gucumber integration tests support. 2 | package elasticloadbalancing 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/elb" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@elasticloadbalancing", func() { 14 | World["client"] = elb.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticloadbalancing/elasticloadbalancing.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @elasticloadbalancing @client 3 | Feature: Elastic Load Balancing 4 | 5 | Scenario: Making a request 6 | When I call the "DescribeLoadBalancers" API 7 | Then the value at "LoadBalancerDescriptions" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "DescribeLoadBalancers" API with JSON: 11 | """ 12 | {"LoadBalancerNames": ["fake_load_balancer"]} 13 | """ 14 | Then I expect the response error code to be "ValidationError" 15 | And I expect the response error message to include: 16 | """ 17 | LoadBalancer name cannot contain characters that are not letters, or digits or the dash. 18 | """ 19 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elastictranscoder/client.go: -------------------------------------------------------------------------------- 1 | //Package elastictranscoder provides gucumber integration tests support. 2 | package elastictranscoder 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/elastictranscoder" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@elastictranscoder", func() { 14 | World["client"] = elastictranscoder.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elastictranscoder/elastictranscoder.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @elastictranscoder @client 3 | Feature: Amazon Elastic Transcoder 4 | 5 | Scenario: Making a request 6 | When I call the "ListPresets" API 7 | Then the value at "Presets" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "ReadJob" API with: 11 | | Id | fake_job | 12 | Then I expect the response error code to be "ValidationException" 13 | And I expect the response error message to include: 14 | """ 15 | Value 'fake_job' at 'id' failed to satisfy constraint 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/emr/client.go: -------------------------------------------------------------------------------- 1 | //Package emr provides gucumber integration tests support. 2 | package emr 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/emr" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@emr", func() { 14 | World["client"] = emr.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/emr/emr.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @emr @client @elasticmapreduce 3 | Feature: Amazon EMR 4 | 5 | Scenario: Making a request 6 | When I call the "ListClusters" API 7 | Then the value at "Clusters" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "DescribeCluster" API with: 11 | | ClusterId | fake_cluster | 12 | Then I expect the response error code to be "InvalidRequestException" 13 | And I expect the response error message to include: 14 | """ 15 | Cluster id 'fake_cluster' is not valid. 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/es/client.go: -------------------------------------------------------------------------------- 1 | //Package es provides gucumber integration tests support. 2 | package es 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/elasticsearchservice" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@es", func() { 14 | World["client"] = elasticsearchservice.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/es/es.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @es @elasticsearchservice 3 | Feature: Amazon ElasticsearchService 4 | 5 | Scenario: Making a request 6 | When I call the "ListDomainNames" API 7 | Then the value at "DomainNames" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "DescribeElasticsearchDomain" API with: 11 | | DomainName | not-a-domain | 12 | Then the error code should be "ResourceNotFoundException" 13 | And I expect the response error message to include: 14 | """ 15 | Domain not found: not-a-domain 16 | """ -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/glacier/client.go: -------------------------------------------------------------------------------- 1 | //Package glacier provides gucumber integration tests support. 2 | package glacier 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/glacier" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@glacier", func() { 14 | World["client"] = glacier.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/glacier/glacier.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @glacier @client 3 | Feature: Amazon Glacier 4 | 5 | Scenario: Making a request 6 | When I call the "ListVaults" API 7 | Then the response should contain a "VaultList" 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "ListVaults" API with: 11 | | accountId | abcmnoxyz | 12 | Then I expect the response error code to be "UnrecognizedClientException" 13 | And I expect the response error message to include: 14 | """ 15 | No account found for the given parameters 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iam/client.go: -------------------------------------------------------------------------------- 1 | //Package iam provides gucumber integration tests support. 2 | package iam 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/iam" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@iam", func() { 14 | World["client"] = iam.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iam/iam.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @iam @client 3 | Feature: AWS Identity and Access Management 4 | 5 | Scenario: Making a request 6 | When I call the "ListUsers" API 7 | Then the value at "Users" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "GetUser" API with: 11 | | UserName | fake_user | 12 | Then I expect the response error code to be "NoSuchEntity" 13 | And I expect the response error message to include: 14 | """ 15 | The user with name fake_user cannot be found. 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iotdataplane/client.go: -------------------------------------------------------------------------------- 1 | //Package iotdataplane provides gucumber integration tests support. 2 | package iotdataplane 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/aws" 6 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 7 | "github.com/aws/aws-sdk-go/service/iot" 8 | "github.com/aws/aws-sdk-go/service/iotdataplane" 9 | . "github.com/lsegal/gucumber" 10 | ) 11 | 12 | var _ = smoke.Imported 13 | 14 | func init() { 15 | Before("@iotdataplane", func() { 16 | svc := iot.New(nil) 17 | result, err := svc.DescribeEndpoint(&iot.DescribeEndpointInput{}) 18 | if err != nil { 19 | World["error"] = err 20 | return 21 | } 22 | 23 | World["client"] = iotdataplane.New(aws.NewConfig(). 24 | WithEndpoint(*result.EndpointAddress)) 25 | }) 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iotdataplane/iotdataplane.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @iotdataplane @client 3 | Feature: AWS IoT Data Plane 4 | 5 | Scenario: Handling errors 6 | When I attempt to call the "GetThingShadow" API with: 7 | | ThingName | "fake_thing" | 8 | Then I expect the response error code to be "ResourceNotFoundException" 9 | And I expect the response error message to include: 10 | """ 11 | Not Found 12 | """ 13 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kinesis/client.go: -------------------------------------------------------------------------------- 1 | //Package kinesis provides gucumber integration tests support. 2 | package kinesis 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/kinesis" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@kinesis", func() { 14 | World["client"] = kinesis.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kinesis/kinesis.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @kinesis @client 3 | Feature: AWS Kinesis 4 | 5 | Scenario: Making a request 6 | When I call the "ListStreams" API 7 | Then the value at "StreamNames" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "DescribeStream" API with: 11 | | StreamName | bogus-stream-name | 12 | Then I expect the response error code to be "ResourceNotFoundException" 13 | And I expect the response error message to include: 14 | """ 15 | Stream bogus-stream-name under account 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kms/client.go: -------------------------------------------------------------------------------- 1 | //Package kms provides gucumber integration tests support. 2 | package kms 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/kms" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@kms", func() { 14 | World["client"] = kms.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kms/kms.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @kms @client 3 | Feature: Amazon Key Management Service 4 | 5 | Scenario: Making a request 6 | When I call the "ListAliases" API 7 | Then the value at "Aliases" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "GetKeyPolicy" API with: 11 | | KeyId | fake-key | 12 | | PolicyName | fake-policy | 13 | Then I expect the response error code to be "NotFoundException" 14 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/lambda/client.go: -------------------------------------------------------------------------------- 1 | //Package lambda provides gucumber integration tests support. 2 | package lambda 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/lambda" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@lambda", func() { 14 | World["client"] = lambda.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/lambda/lambda.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @lambda @client 3 | Feature: Amazon Lambda 4 | 5 | Scenario: Making a request 6 | When I call the "ListFunctions" API 7 | Then the value at "Functions" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "Invoke" API with: 11 | | FunctionName | bogus-function | 12 | Then I expect the response error code to be "ResourceNotFoundException" 13 | And I expect the response error message to include: 14 | """ 15 | Function not found 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/machinelearning/client.go: -------------------------------------------------------------------------------- 1 | //Package machinelearning provides gucumber integration tests support. 2 | package machinelearning 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/machinelearning" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@machinelearning", func() { 14 | World["client"] = machinelearning.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/machinelearning/machinelearning.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @machinelearning @client 3 | Feature: Amazon Machine Learning 4 | 5 | I want to use Amazon Machine Learning 6 | 7 | Scenario: Making a request 8 | When I call the "DescribeMLModels" API 9 | Then the value at "Results" should be a list 10 | 11 | Scenario: Error handling 12 | When I attempt to call the "GetBatchPrediction" API with: 13 | | BatchPredictionId | fake-id | 14 | Then the error code should be "ResourceNotFoundException" 15 | And the error message should contain: 16 | """ 17 | No BatchPrediction with id fake-id exists 18 | """ 19 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/opsworks/client.go: -------------------------------------------------------------------------------- 1 | //Package opsworks provides gucumber integration tests support. 2 | package opsworks 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/opsworks" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@opsworks", func() { 14 | World["client"] = opsworks.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/opsworks/opsworks.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @opsworks @client 3 | Feature: AWS OpsWorks 4 | 5 | Scenario: Making a request 6 | When I call the "DescribeStacks" API 7 | Then the value at "Stacks" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "DescribeLayers" API with: 11 | | StackId | fake_stack | 12 | Then I expect the response error code to be "ResourceNotFoundException" 13 | And I expect the response error message to include: 14 | """ 15 | Unable to find stack with ID fake_stack 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/rds/client.go: -------------------------------------------------------------------------------- 1 | //Package rds provides gucumber integration tests support. 2 | package rds 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/rds" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@rds", func() { 14 | World["client"] = rds.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/rds/rds.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @rds @client 3 | Feature: Amazon RDS 4 | 5 | Scenario: Making a request 6 | When I call the "DescribeDBEngineVersions" API 7 | Then the value at "DBEngineVersions" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "DescribeDBInstances" API with: 11 | | DBInstanceIdentifier | fake-id | 12 | Then I expect the response error code to be "DBInstanceNotFound" 13 | And I expect the response error message to include: 14 | """ 15 | DBInstance fake-id not found. 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/redshift/client.go: -------------------------------------------------------------------------------- 1 | //Package redshift provides gucumber integration tests support. 2 | package redshift 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/redshift" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@redshift", func() { 14 | World["client"] = redshift.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/redshift/redshift.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @redshift @client 3 | Feature: Amazon Redshift 4 | 5 | Scenario: Making a request 6 | When I call the "DescribeClusterVersions" API 7 | Then the value at "ClusterVersions" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "DescribeClusters" API with: 11 | | ClusterIdentifier | fake-cluster | 12 | Then I expect the response error code to be "ClusterNotFound" 13 | And I expect the response error message to include: 14 | """ 15 | Cluster fake-cluster not found. 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53/client.go: -------------------------------------------------------------------------------- 1 | //Package route53 provides gucumber integration tests support. 2 | package route53 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/route53" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@route53", func() { 14 | World["client"] = route53.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53/route53.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @route53 @client 3 | Feature: Amazon Route 53 4 | 5 | Scenario: Making a request 6 | When I call the "ListHostedZones" API 7 | Then the value at "HostedZones" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "GetHostedZone" API with: 11 | | Id | fake-zone | 12 | Then I expect the response error code to be "NoSuchHostedZone" 13 | And I expect the response error message to include: 14 | """ 15 | No hosted zone found with ID: fake-zone 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53domains/client.go: -------------------------------------------------------------------------------- 1 | //Package route53domains provides gucumber integration tests support. 2 | package route53domains 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/route53domains" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@route53domains", func() { 14 | World["client"] = route53domains.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53domains/route53domains.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @route53domains @client 3 | Feature: Amazon Route53 Domains 4 | 5 | Scenario: Making a request 6 | When I call the "ListDomains" API 7 | Then the value at "Domains" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "GetDomainDetail" API with: 11 | | DomainName | fake-domain-name | 12 | Then I expect the response error code to be "InvalidInput" 13 | And I expect the response error message to include: 14 | """ 15 | domain name must contain more than 1 label 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ses/client.go: -------------------------------------------------------------------------------- 1 | //Package ses provides gucumber integration tests support. 2 | package ses 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/ses" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@ses", func() { 14 | World["client"] = ses.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ses/ses.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @ses @email @client 3 | Feature: Amazon Simple Email Service 4 | 5 | Scenario: Making a request 6 | When I call the "ListIdentities" API 7 | Then the value at "Identities" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "VerifyEmailIdentity" API with: 11 | | EmailAddress | fake_email | 12 | Then I expect the response error code to be "InvalidParameterValue" 13 | And I expect the response error message to include: 14 | """ 15 | Invalid email address. 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/simpledb/client.go: -------------------------------------------------------------------------------- 1 | //Package simpledb provides gucumber integration tests support. 2 | package simpledb 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/simpledb" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@simpledb", func() { 14 | World["client"] = simpledb.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/simpledb/simpledb.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @simpledb @sdb 3 | Feature: Amazon SimpleDB 4 | 5 | I want to use Amazon SimpleDB 6 | 7 | Scenario: Making a request 8 | When I call the "CreateDomain" API with: 9 | | DomainName | sample-domain | 10 | Then the request should be successful 11 | And I call the "ListDomains" API 12 | Then the value at "DomainNames" should be a list 13 | And I call the "DeleteDomain" API with: 14 | | DomainName | sample-domain | 15 | Then the request should be successful 16 | 17 | Scenario: Handling errors 18 | When I attempt to call the "CreateDomain" API with: 19 | | DomainName | | 20 | Then I expect the response error code to be "InvalidParameterValue" 21 | And I expect the response error message to include: 22 | """ 23 | DomainName is invalid 24 | """ 25 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sns/client.go: -------------------------------------------------------------------------------- 1 | //Package sns provides gucumber integration tests support. 2 | package sns 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/sns" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@sns", func() { 14 | World["client"] = sns.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sns/sns.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @sns @client 3 | Feature: Amazon Simple Notification Service 4 | 5 | Scenario: Making a request 6 | When I call the "ListTopics" API 7 | Then the value at "Topics" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "Publish" API with: 11 | | Message | hello | 12 | | TopicArn | fake_topic | 13 | Then I expect the response error code to be "InvalidParameter" 14 | And I expect the response error message to include: 15 | """ 16 | Invalid parameter: TopicArn Reason: fake_topic does not start with arn 17 | """ 18 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sqs/client.go: -------------------------------------------------------------------------------- 1 | //Package sqs provides gucumber integration tests support. 2 | package sqs 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/sqs" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@sqs", func() { 14 | World["client"] = sqs.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sqs/sqs.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @sqs @client 3 | Feature: Amazon Simple Queue Service 4 | 5 | Scenario: Making a request 6 | When I call the "ListQueues" API 7 | Then the value at "QueueUrls" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "GetQueueUrl" API with: 11 | | QueueName | fake_queue | 12 | Then I expect the response error code to be "AWS.SimpleQueueService.NonExistentQueue" 13 | And I expect the response error message to include: 14 | """ 15 | The specified queue does not exist for this wsdl version. 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ssm/client.go: -------------------------------------------------------------------------------- 1 | //Package ssm provides gucumber integration tests support. 2 | package ssm 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/ssm" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@ssm", func() { 14 | World["client"] = ssm.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ssm/ssm.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @ssm @client 3 | Feature: Amazon SSM 4 | 5 | Scenario: Making a request 6 | When I call the "ListDocuments" API 7 | Then the value at "DocumentIdentifiers" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "GetDocument" API with: 11 | | Name | 'fake-name' | 12 | Then I expect the response error code to be "ValidationException" 13 | And I expect the response error message to include: 14 | """ 15 | validation error detected 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/storagegateway/client.go: -------------------------------------------------------------------------------- 1 | //Package storagegateway provides gucumber integration tests support. 2 | package storagegateway 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/storagegateway" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@storagegateway", func() { 14 | World["client"] = storagegateway.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/storagegateway/storagegateway.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @storagegateway @client 3 | Feature: AWS Storage Gateway 4 | 5 | Scenario: Making a request 6 | When I call the "ListGateways" API 7 | Then the value at "Gateways" should be a list 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "ListVolumes" API with: 11 | | GatewayARN | fake_gateway | 12 | Then I expect the response error code to be "InvalidParameter" 13 | And I expect the response error message to include: 14 | """ 15 | GatewayARN 16 | """ 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sts/client.go: -------------------------------------------------------------------------------- 1 | //Package sts provides gucumber integration tests support. 2 | package sts 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/sts" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@sts", func() { 14 | World["client"] = sts.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sts/sts.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @sts @client 3 | Feature: AWS STS 4 | 5 | Scenario: Making a request 6 | When I call the "GetSessionToken" API 7 | Then the response should contain a "Credentials" 8 | 9 | Scenario: Handling errors 10 | When I attempt to call the "GetFederationToken" API with: 11 | | Name | temp | 12 | | Policy | | 13 | Then I expect the response error code to be "InvalidParameter" 14 | And I expect the response error message to include: 15 | """ 16 | Policy 17 | """ 18 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/support/client.go: -------------------------------------------------------------------------------- 1 | //Package support provides gucumber integration tests support. 2 | package support 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/support" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@support", func() { 14 | World["client"] = support.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/support/support.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @support @client 3 | Feature: AWS Support 4 | 5 | I want to use AWS Support 6 | 7 | Scenario: Making a request 8 | When I call the "DescribeServices" API 9 | Then the value at "services" should be a list 10 | 11 | Scenario: Handling errors 12 | When I attempt to call the "CreateCase" API with: 13 | | subject | subject | 14 | | communicationBody | communication | 15 | | categoryCode | category | 16 | | serviceCode | amazon-dynamodb | 17 | | severityCode | low | 18 | Then I expect the response error code to be "InvalidParameterValueException" 19 | And the error message should contain: 20 | """ 21 | Invalid category code 22 | """ 23 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/swf/client.go: -------------------------------------------------------------------------------- 1 | //Package swf provides gucumber integration tests support. 2 | package swf 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/swf" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@swf", func() { 14 | World["client"] = swf.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/swf/swf.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @swf @client 3 | Feature: Amazon Simple Workflow Service 4 | 5 | Scenario: Making a request 6 | When I call the "ListDomains" API with: 7 | | registrationStatus | REGISTERED | 8 | Then the value at "domainInfos" should be a list 9 | 10 | Scenario: Handling errors 11 | When I attempt to call the "DescribeDomain" API with: 12 | | name | fake_domain | 13 | Then I expect the response error code to be "UnknownResourceFault" 14 | And I expect the response error message to include: 15 | """ 16 | Unknown domain: fake_domain 17 | """ 18 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/workspaces/client.go: -------------------------------------------------------------------------------- 1 | //Package workspaces provides gucumber integration tests support. 2 | package workspaces 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/awstesting/integration/smoke" 6 | "github.com/aws/aws-sdk-go/service/workspaces" 7 | . "github.com/lsegal/gucumber" 8 | ) 9 | 10 | var _ = smoke.Imported 11 | 12 | func init() { 13 | Before("@workspaces", func() { 14 | World["client"] = workspaces.New(nil) 15 | }) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/workspaces/workspaces.feature: -------------------------------------------------------------------------------- 1 | # language: en 2 | @workspaces @client 3 | Feature: Amazon WorkSpaces 4 | 5 | I want to use Amazon WorkSpaces 6 | 7 | Scenario: Making a request 8 | When I call the "DescribeWorkspaces" API 9 | Then the value at "Workspaces" should be a list 10 | 11 | Scenario: Handling errors 12 | When I attempt to call the "DescribeWorkspaces" API with: 13 | | DirectoryId | fake-id | 14 | Then I expect the response error code to be "ValidationException" 15 | And I expect the response error message to include: 16 | """ 17 | The Directory ID fake-id in the request is invalid. 18 | """ 19 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/sort_keys.go: -------------------------------------------------------------------------------- 1 | package awstesting 2 | 3 | import "sort" 4 | 5 | // SortedKeys returns a sorted slice of keys of a map. 6 | func SortedKeys(m map[string]interface{}) []string { 7 | i, sorted := 0, make([]string, len(m)) 8 | for k := range m { 9 | sorted[i] = k 10 | i++ 11 | } 12 | sort.Strings(sorted) 13 | return sorted 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/awstesting/unit/unit.go: -------------------------------------------------------------------------------- 1 | // Package unit performs initialization and validation for unit tests 2 | package unit 3 | 4 | import ( 5 | "github.com/aws/aws-sdk-go/aws/credentials" 6 | "github.com/aws/aws-sdk-go/aws/defaults" 7 | ) 8 | 9 | // Imported is a marker to ensure that this package's init() function gets 10 | // executed. 11 | // 12 | // To use this package, import it and add: 13 | // 14 | // var _ = unit.Imported 15 | const Imported = true 16 | 17 | func init() { 18 | // mock region and credentials 19 | defaults.DefaultConfig.Credentials = 20 | credentials.NewStaticCredentials("AKID", "SECRET", "SESSION") 21 | defaults.DefaultConfig.WithRegion("mock-region") 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/doc-src/plugin/templates/default/module/html/client.erb: -------------------------------------------------------------------------------- 1 |

Client Structure collapse

2 | 5 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/doc-src/plugin/templates/default/module/html/setup.rb: -------------------------------------------------------------------------------- 1 | def init 2 | super 3 | sections.place(:client, [:item_summary]).before(:constant_summary) 4 | end 5 | 6 | def client 7 | @client = object.children.find {|c| c.has_tag?(:service) } 8 | erb(:client) if @client 9 | end 10 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/doc-src/plugin/templates/default/package/html/setup.rb: -------------------------------------------------------------------------------- 1 | def type_summary 2 | @items = object.children. 3 | select {|c| c.type == :bare_struct || c.type == :struct || c.type == :enum }. 4 | reject {|c| c.has_tag?(:service) }. 5 | sort_by {|c| c.name.to_s } 6 | @name = "Type" 7 | erb :list_summary 8 | end 9 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/doc-src/plugin/templates/default/struct/html/paginators.erb: -------------------------------------------------------------------------------- 1 |
2 |

Pagination Methods

3 |

<%= @items.map {|pkg| link_object(pkg, pkg.name) }.join(" ") %>

4 |
5 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/doc-src/plugin/templates/default/struct/html/request_methods.erb: -------------------------------------------------------------------------------- 1 |
2 |

Request Methods

3 |

<%= @items.map {|pkg| link_object(pkg, pkg.name) }.join(" ") %>

4 |
5 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/doc-src/plugin/templates/default/struct/html/setup.rb: -------------------------------------------------------------------------------- 1 | def init 2 | super 3 | sections.place(:request_methods, :paginators).after(:method_summary) 4 | end 5 | 6 | def groups(list, type = "Method") 7 | super(list.reject {|o| o.has_tag?(:paginator) || o.has_tag?(:request_method) }, type) 8 | end 9 | 10 | def paginators 11 | @items = object.children.select {|o| o.has_tag?(:paginator) } 12 | return if @items.size == 0 13 | erb(:paginators) 14 | end 15 | 16 | def request_methods 17 | @items = object.children.select {|o| o.has_tag?(:request_method) } 18 | return if @items.size == 0 19 | erb(:request_methods) 20 | end 21 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "DescribeStackEvents": { 4 | "input_token": "NextToken", 5 | "output_token": "NextToken", 6 | "result_key": "StackEvents" 7 | }, 8 | "DescribeStackResources": { 9 | "result_key": "StackResources" 10 | }, 11 | "DescribeStacks": { 12 | "input_token": "NextToken", 13 | "output_token": "NextToken", 14 | "result_key": "Stacks" 15 | }, 16 | "ListStackResources": { 17 | "input_token": "NextToken", 18 | "output_token": "NextToken", 19 | "result_key": "StackResourceSummaries" 20 | }, 21 | "ListStacks": { 22 | "input_token": "NextToken", 23 | "output_token": "NextToken", 24 | "result_key": "StackSummaries" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/cloudsearch/2013-01-01/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "DescribeAnalysisSchemes": { 4 | "result_key": "AnalysisSchemes" 5 | }, 6 | "DescribeDomains": { 7 | "result_key": "DomainStatusList" 8 | }, 9 | "DescribeExpressions": { 10 | "result_key": "Expressions" 11 | }, 12 | "DescribeIndexFields": { 13 | "result_key": "IndexFields" 14 | }, 15 | "DescribeSuggesters": { 16 | "result_key": "Suggesters" 17 | } 18 | } 19 | } 20 | 21 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "DescribeTrails": { 4 | "result_key": "trailList" 5 | } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/codedeploy/2014-10-06/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "ListApplicationRevisions": { 4 | "input_token": "nextToken", 5 | "output_token": "nextToken", 6 | "result_key": "revisions" 7 | }, 8 | "ListApplications": { 9 | "input_token": "nextToken", 10 | "output_token": "nextToken", 11 | "result_key": "applications" 12 | }, 13 | "ListDeploymentConfigs": { 14 | "input_token": "nextToken", 15 | "output_token": "nextToken", 16 | "result_key": "deploymentConfigsList" 17 | }, 18 | "ListDeploymentGroups": { 19 | "input_token": "nextToken", 20 | "output_token": "nextToken", 21 | "result_key": "deploymentGroups" 22 | }, 23 | "ListDeploymentInstances": { 24 | "input_token": "nextToken", 25 | "output_token": "nextToken", 26 | "result_key": "instancesList" 27 | }, 28 | "ListDeployments": { 29 | "input_token": "nextToken", 30 | "output_token": "nextToken", 31 | "result_key": "deployments" 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/config/2014-11-12/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "GetResourceConfigHistory": { 4 | "input_token": "nextToken", 5 | "output_token": "nextToken", 6 | "limit_key": "limit", 7 | "result_key": "configurationItems" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/datapipeline/2012-10-29/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "ListPipelines": { 4 | "input_token": "marker", 5 | "output_token": "marker", 6 | "more_results": "hasMoreResults", 7 | "result_key": "pipelineIdList" 8 | }, 9 | "DescribeObjects": { 10 | "input_token": "marker", 11 | "output_token": "marker", 12 | "more_results": "hasMoreResults", 13 | "result_key": "pipelineObjects" 14 | }, 15 | "DescribePipelines": { 16 | "result_key": "pipelineDescriptionList" 17 | }, 18 | "QueryObjects": { 19 | "input_token": "marker", 20 | "output_token": "marker", 21 | "more_results": "hasMoreResults", 22 | "limit_key": "limit", 23 | "result_key": "ids" 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "DescribeConnections": { 4 | "result_key": "connections" 5 | }, 6 | "DescribeConnectionsOnInterconnect": { 7 | "result_key": "connections" 8 | }, 9 | "DescribeInterconnects": { 10 | "result_key": "interconnects" 11 | }, 12 | "DescribeLocations": { 13 | "result_key": "locations" 14 | }, 15 | "DescribeVirtualGateways": { 16 | "result_key": "virtualGateways" 17 | }, 18 | "DescribeVirtualInterfaces": { 19 | "result_key": "virtualInterfaces" 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "BatchGetItem": { 4 | "input_token": "RequestItems", 5 | "output_token": "UnprocessedKeys" 6 | }, 7 | "ListTables": { 8 | "input_token": "ExclusiveStartTableName", 9 | "output_token": "LastEvaluatedTableName", 10 | "limit_key": "Limit", 11 | "result_key": "TableNames" 12 | }, 13 | "Query": { 14 | "input_token": "ExclusiveStartKey", 15 | "output_token": "LastEvaluatedKey", 16 | "limit_key": "Limit", 17 | "result_key": "Items" 18 | }, 19 | "Scan": { 20 | "input_token": "ExclusiveStartKey", 21 | "output_token": "LastEvaluatedKey", 22 | "limit_key": "Limit", 23 | "result_key": "Items" 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/dynamodb/2012-08-10/waiters-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "waiters": { 4 | "TableExists": { 5 | "delay": 20, 6 | "operation": "DescribeTable", 7 | "maxAttempts": 25, 8 | "acceptors": [ 9 | { 10 | "expected": "ACTIVE", 11 | "matcher": "path", 12 | "state": "success", 13 | "argument": "Table.TableStatus" 14 | }, 15 | { 16 | "expected": "ResourceNotFoundException", 17 | "matcher": "error", 18 | "state": "retry" 19 | } 20 | ] 21 | }, 22 | "TableNotExists": { 23 | "delay": 20, 24 | "operation": "DescribeTable", 25 | "maxAttempts": 25, 26 | "acceptors": [ 27 | { 28 | "expected": "ResourceNotFoundException", 29 | "matcher": "error", 30 | "state": "success" 31 | } 32 | ] 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/elasticbeanstalk/2010-12-01/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "DescribeApplicationVersions": { 4 | "result_key": "ApplicationVersions" 5 | }, 6 | "DescribeApplications": { 7 | "result_key": "Applications" 8 | }, 9 | "DescribeConfigurationOptions": { 10 | "result_key": "Options" 11 | }, 12 | "DescribeEnvironments": { 13 | "result_key": "Environments" 14 | }, 15 | "DescribeEvents": { 16 | "input_token": "NextToken", 17 | "output_token": "NextToken", 18 | "limit_key": "MaxRecords", 19 | "result_key": "Events" 20 | }, 21 | "ListAvailableSolutionStacks": { 22 | "result_key": "SolutionStacks" 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancing/2012-06-01/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "DescribeInstanceHealth": { 4 | "result_key": "InstanceStates" 5 | }, 6 | "DescribeLoadBalancerPolicies": { 7 | "result_key": "PolicyDescriptions" 8 | }, 9 | "DescribeLoadBalancerPolicyTypes": { 10 | "result_key": "PolicyTypeDescriptions" 11 | }, 12 | "DescribeLoadBalancers": { 13 | "input_token": "Marker", 14 | "output_token": "NextMarker", 15 | "result_key": "LoadBalancerDescriptions" 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/elasticloadbalancing/2012-06-01/waiters-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "waiters": { 4 | "InstanceInService": { 5 | "delay": 15, 6 | "operation": "DescribeInstanceHealth", 7 | "maxAttempts": 40, 8 | "acceptors": [ 9 | { 10 | "expected": "InService", 11 | "matcher": "pathAll", 12 | "state": "success", 13 | "argument": "InstanceStates[].State" 14 | } 15 | ] 16 | }, 17 | "AnyInstanceInService": { 18 | "delay": 15, 19 | "operation": "DescribeInstanceHealth", 20 | "maxAttempts": 40, 21 | "acceptors": [ 22 | { 23 | "expected": "InService", 24 | "matcher": "pathAny", 25 | "state": "success", 26 | "argument": "InstanceStates[].State" 27 | } 28 | ] 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/elasticmapreduce/2009-03-31/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "DescribeJobFlows": { 4 | "result_key": "JobFlows" 5 | }, 6 | "ListBootstrapActions": { 7 | "input_token": "Marker", 8 | "output_token": "Marker", 9 | "result_key": "BootstrapActions" 10 | }, 11 | "ListClusters": { 12 | "input_token": "Marker", 13 | "output_token": "Marker", 14 | "result_key": "Clusters" 15 | }, 16 | "ListInstanceGroups": { 17 | "input_token": "Marker", 18 | "output_token": "Marker", 19 | "result_key": "InstanceGroups" 20 | }, 21 | "ListInstances": { 22 | "input_token": "Marker", 23 | "output_token": "Marker", 24 | "result_key": "Instances" 25 | }, 26 | "ListSteps": { 27 | "input_token": "Marker", 28 | "output_token": "Marker", 29 | "result_key": "Steps" 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "ListJobsByPipeline": { 4 | "input_token": "PageToken", 5 | "output_token": "NextPageToken", 6 | "result_key": "Jobs" 7 | }, 8 | "ListJobsByStatus": { 9 | "input_token": "PageToken", 10 | "output_token": "NextPageToken", 11 | "result_key": "Jobs" 12 | }, 13 | "ListPipelines": { 14 | "input_token": "PageToken", 15 | "output_token": "NextPageToken", 16 | "result_key": "Pipelines" 17 | }, 18 | "ListPresets": { 19 | "input_token": "PageToken", 20 | "output_token": "NextPageToken", 21 | "result_key": "Presets" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/waiters-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "waiters": { 4 | "JobComplete": { 5 | "delay": 30, 6 | "operation": "ReadJob", 7 | "maxAttempts": 120, 8 | "acceptors": [ 9 | { 10 | "expected": "Complete", 11 | "matcher": "path", 12 | "state": "success", 13 | "argument": "Job.Status" 14 | }, 15 | { 16 | "expected": "Canceled", 17 | "matcher": "path", 18 | "state": "failure", 19 | "argument": "Job.Status" 20 | }, 21 | { 22 | "expected": "Error", 23 | "matcher": "path", 24 | "state": "failure", 25 | "argument": "Job.Status" 26 | } 27 | ] 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "ListIdentities": { 4 | "input_token": "NextToken", 5 | "output_token": "NextToken", 6 | "limit_key": "MaxItems", 7 | "result_key": "Identities" 8 | }, 9 | "ListVerifiedEmailAddresses": { 10 | "result_key": "VerifiedEmailAddresses" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/email/2010-12-01/waiters-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "waiters": { 4 | "IdentityExists": { 5 | "delay": 3, 6 | "operation": "GetIdentityVerificationAttributes", 7 | "maxAttempts": 20, 8 | "acceptors": [ 9 | { 10 | "expected": "Success", 11 | "matcher": "pathAll", 12 | "state": "success", 13 | "argument": "VerificationAttributes.*.VerificationStatus" 14 | } 15 | ] 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "ListJobs": { 4 | "input_token": "marker", 5 | "output_token": "Marker", 6 | "limit_key": "limit", 7 | "result_key": "JobList" 8 | }, 9 | "ListMultipartUploads": { 10 | "input_token": "marker", 11 | "output_token": "Marker", 12 | "limit_key": "limit", 13 | "result_key": "UploadsList" 14 | }, 15 | "ListParts": { 16 | "input_token": "marker", 17 | "output_token": "Marker", 18 | "limit_key": "limit", 19 | "result_key": "Parts" 20 | }, 21 | "ListVaults": { 22 | "input_token": "marker", 23 | "output_token": "Marker", 24 | "limit_key": "limit", 25 | "result_key": "VaultList" 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/glacier/2012-06-01/waiters-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "waiters": { 4 | "VaultExists": { 5 | "operation": "DescribeVault", 6 | "delay": 3, 7 | "maxAttempts": 15, 8 | "acceptors": [ 9 | { 10 | "state": "success", 11 | "matcher": "status", 12 | "expected": 200 13 | }, 14 | { 15 | "state": "retry", 16 | "matcher": "error", 17 | "expected": "ResourceNotFoundException" 18 | } 19 | ] 20 | }, 21 | "VaultNotExists": { 22 | "operation": "DescribeVault", 23 | "delay": 3, 24 | "maxAttempts": 15, 25 | "acceptors": [ 26 | { 27 | "state": "retry", 28 | "matcher": "status", 29 | "expected": 200 30 | }, 31 | { 32 | "state": "success", 33 | "matcher": "error", 34 | "expected": "ResourceNotFoundException" 35 | } 36 | ] 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/iam/2010-05-08/waiters-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "waiters": { 4 | "InstanceProfileExists": { 5 | "delay": 1, 6 | "operation": "GetInstanceProfile", 7 | "maxAttempts": 40, 8 | "acceptors": [ 9 | { 10 | "expected": 200, 11 | "matcher": "status", 12 | "state": "success" 13 | }, 14 | { 15 | "state": "retry", 16 | "matcher": "status", 17 | "expected": 404 18 | } 19 | ] 20 | }, 21 | "UserExists": { 22 | "delay": 1, 23 | "operation": "GetUser", 24 | "maxAttempts": 20, 25 | "acceptors": [ 26 | { 27 | "state": "success", 28 | "matcher": "status", 29 | "expected": 200 30 | }, 31 | { 32 | "state": "retry", 33 | "matcher": "error", 34 | "expected": "NoSuchEntity" 35 | } 36 | ] 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/importexport/2010-06-01/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "ListJobs": { 4 | "input_token": "Marker", 5 | "output_token": "Jobs[-1].JobId", 6 | "more_results": "IsTruncated", 7 | "limit_key": "MaxJobs", 8 | "result_key": "Jobs" 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "DescribeStream": { 4 | "input_token": "ExclusiveStartShardId", 5 | "limit_key": "Limit", 6 | "more_results": "StreamDescription.HasMoreShards", 7 | "output_token": "StreamDescription.Shards[-1].ShardId", 8 | "result_key": "StreamDescription.Shards" 9 | }, 10 | "ListStreams": { 11 | "input_token": "ExclusiveStartStreamName", 12 | "limit_key": "Limit", 13 | "more_results": "HasMoreStreams", 14 | "output_token": "StreamNames[-1]", 15 | "result_key": "StreamNames" 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/kinesis/2013-12-02/waiters-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "waiters": { 4 | "StreamExists": { 5 | "delay": 10, 6 | "operation": "DescribeStream", 7 | "maxAttempts": 18, 8 | "acceptors": [ 9 | { 10 | "expected": "ACTIVE", 11 | "matcher": "path", 12 | "state": "success", 13 | "argument": "StreamDescription.StreamStatus" 14 | } 15 | ] 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/kms/2014-11-01/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "ListAliases": { 4 | "limit_key": "Limit", 5 | "input_token": "Marker", 6 | "output_token": "NextMarker", 7 | "more_results": "Truncated", 8 | "result_key": "Aliases" 9 | }, 10 | "ListGrants": { 11 | "limit_key": "Limit", 12 | "input_token": "Marker", 13 | "output_token": "NextMarker", 14 | "more_results": "Truncated", 15 | "result_key": "Grants" 16 | }, 17 | "ListKeyPolicies": { 18 | "limit_key": "Limit", 19 | "input_token": "Marker", 20 | "output_token": "NextMarker", 21 | "more_results": "Truncated", 22 | "result_key": "PolicyNames" 23 | }, 24 | "ListKeys": { 25 | "limit_key": "Limit", 26 | "input_token": "Marker", 27 | "output_token": "NextMarker", 28 | "more_results": "Truncated", 29 | "result_key": "Keys" 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2014-11-11/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "ListEventSources": { 4 | "input_token": "Marker", 5 | "output_token": "NextMarker", 6 | "limit_key": "MaxItems", 7 | "result_key": "EventSources" 8 | }, 9 | "ListFunctions": { 10 | "input_token": "Marker", 11 | "output_token": "NextMarker", 12 | "limit_key": "MaxItems", 13 | "result_key": "Functions" 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/lambda/2015-03-31/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "ListEventSourceMappings": { 4 | "input_token": "Marker", 5 | "output_token": "NextMarker", 6 | "limit_key": "MaxItems", 7 | "result_key": "EventSourceMappings" 8 | }, 9 | "ListFunctions": { 10 | "input_token": "Marker", 11 | "output_token": "NextMarker", 12 | "limit_key": "MaxItems", 13 | "result_key": "Functions" 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/machinelearning/2014-12-12/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "DescribeBatchPredictions": { 4 | "limit_key": "Limit", 5 | "output_token": "NextToken", 6 | "input_token": "NextToken", 7 | "result_key": "Results" 8 | }, 9 | "DescribeDataSources": { 10 | "limit_key": "Limit", 11 | "output_token": "NextToken", 12 | "input_token": "NextToken", 13 | "result_key": "Results" 14 | }, 15 | "DescribeEvaluations": { 16 | "limit_key": "Limit", 17 | "output_token": "NextToken", 18 | "input_token": "NextToken", 19 | "result_key": "Results" 20 | }, 21 | "DescribeMLModels": { 22 | "limit_key": "Limit", 23 | "output_token": "NextToken", 24 | "input_token": "NextToken", 25 | "result_key": "Results" 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/monitoring/2010-08-01/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "DescribeAlarmHistory": { 4 | "input_token": "NextToken", 5 | "output_token": "NextToken", 6 | "limit_key": "MaxRecords", 7 | "result_key": "AlarmHistoryItems" 8 | }, 9 | "DescribeAlarms": { 10 | "input_token": "NextToken", 11 | "output_token": "NextToken", 12 | "limit_key": "MaxRecords", 13 | "result_key": "MetricAlarms" 14 | }, 15 | "DescribeAlarmsForMetric": { 16 | "result_key": "MetricAlarms" 17 | }, 18 | "ListMetrics": { 19 | "input_token": "NextToken", 20 | "output_token": "NextToken", 21 | "result_key": "Metrics" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/route53/2013-04-01/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "ListHealthChecks": { 4 | "input_token": "Marker", 5 | "output_token": "NextMarker", 6 | "more_results": "IsTruncated", 7 | "limit_key": "MaxItems", 8 | "result_key": "HealthChecks" 9 | }, 10 | "ListHostedZones": { 11 | "input_token": "Marker", 12 | "output_token": "NextMarker", 13 | "more_results": "IsTruncated", 14 | "limit_key": "MaxItems", 15 | "result_key": "HostedZones" 16 | }, 17 | "ListResourceRecordSets": { 18 | "more_results": "IsTruncated", 19 | "limit_key": "MaxItems", 20 | "result_key": "ResourceRecordSets", 21 | "input_token": [ 22 | "StartRecordName", 23 | "StartRecordType", 24 | "StartRecordIdentifier" 25 | ], 26 | "output_token": [ 27 | "NextRecordName", 28 | "NextRecordType", 29 | "NextRecordIdentifier" 30 | ] 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/route53domains/2014-05-15/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0", 3 | "pagination": { 4 | "ListDomains": { 5 | "limit_key": "MaxItems", 6 | "input_token": "Marker", 7 | "output_token": "NextPageMarker", 8 | "result_key": "Domains" 9 | }, 10 | "ListOperations": { 11 | "limit_key": "MaxItems", 12 | "input_token": "Marker", 13 | "output_token": "NextPageMarker", 14 | "result_key": "Operations" 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/sdb/2009-04-15/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "ListDomains": { 4 | "input_token": "NextToken", 5 | "output_token": "NextToken", 6 | "limit_key": "MaxNumberOfDomains", 7 | "result_key": "DomainNames" 8 | }, 9 | "Select": { 10 | "input_token": "NextToken", 11 | "output_token": "NextToken", 12 | "result_key": "Items" 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/sns/2010-03-31/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "ListEndpointsByPlatformApplication": { 4 | "input_token": "NextToken", 5 | "output_token": "NextToken", 6 | "result_key": "Endpoints" 7 | }, 8 | "ListPlatformApplications": { 9 | "input_token": "NextToken", 10 | "output_token": "NextToken", 11 | "result_key": "PlatformApplications" 12 | }, 13 | "ListSubscriptions": { 14 | "input_token": "NextToken", 15 | "output_token": "NextToken", 16 | "result_key": "Subscriptions" 17 | }, 18 | "ListSubscriptionsByTopic": { 19 | "input_token": "NextToken", 20 | "output_token": "NextToken", 21 | "result_key": "Subscriptions" 22 | }, 23 | "ListTopics": { 24 | "input_token": "NextToken", 25 | "output_token": "NextToken", 26 | "result_key": "Topics" 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "ListQueues": { 4 | "result_key": "QueueUrls" 5 | } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/support/2013-04-15/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "DescribeCases": { 4 | "input_token": "nextToken", 5 | "output_token": "nextToken", 6 | "limit_key": "maxResults", 7 | "result_key": "cases" 8 | }, 9 | "DescribeCommunications": { 10 | "input_token": "nextToken", 11 | "output_token": "nextToken", 12 | "limit_key": "maxResults", 13 | "result_key": "communications" 14 | }, 15 | "DescribeServices": { 16 | "result_key": "services" 17 | }, 18 | "DescribeTrustedAdvisorCheckRefreshStatuses": { 19 | "result_key": "statuses" 20 | }, 21 | "DescribeTrustedAdvisorCheckSummaries": { 22 | "result_key": "summaries" 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/models/apis/workspaces/2015-04-08/paginators-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "pagination": { 3 | "DescribeWorkspaceBundles": { 4 | "input_token": "NextToken", 5 | "output_token": "NextToken", 6 | "result_key": "Bundles" 7 | }, 8 | "DescribeWorkspaceDirectories": { 9 | "input_token": "NextToken", 10 | "output_token": "NextToken", 11 | "result_key": "Directories" 12 | }, 13 | "DescribeWorkspaces": { 14 | "limit_key": "Limit", 15 | "input_token": "NextToken", 16 | "output_token": "NextToken", 17 | "result_key": "Workspaces" 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/private/README.md: -------------------------------------------------------------------------------- 1 | ## AWS SDK for Go Private packages ## 2 | `private` is a collection of packages used internally by the SDK, and is subject to have breaking changes. This package is not `internal` so that if you really need to use its functionality, and understand breaking changes will be made, you are able to. 3 | 4 | These packages will be refactored in the future so that the API generator and model parsers are exposed cleanly on their own. Making it easier for you to generate your own code based on the API models. 5 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints.go: -------------------------------------------------------------------------------- 1 | // Package endpoints validates regional endpoints for services. 2 | package endpoints 3 | 4 | //go:generate go run ../model/cli/gen-endpoints/main.go endpoints.json endpoints_map.go 5 | //go:generate gofmt -s -w endpoints_map.go 6 | 7 | import "strings" 8 | 9 | // EndpointForRegion returns an endpoint and its signing region for a service and region. 10 | // if the service and region pair are not found endpoint and signingRegion will be empty. 11 | func EndpointForRegion(svcName, region string) (endpoint, signingRegion string) { 12 | derivedKeys := []string{ 13 | region + "/" + svcName, 14 | region + "/*", 15 | "*/" + svcName, 16 | "*/*", 17 | } 18 | 19 | for _, key := range derivedKeys { 20 | if val, ok := endpointsMap.Endpoints[key]; ok { 21 | ep := val.Endpoint 22 | ep = strings.Replace(ep, "{region}", region, -1) 23 | ep = strings.Replace(ep, "{service}", svcName, -1) 24 | 25 | endpoint = ep 26 | signingRegion = val.SigningRegion 27 | return 28 | } 29 | } 30 | return 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/private/endpoints/endpoints_test.go: -------------------------------------------------------------------------------- 1 | package endpoints 2 | 3 | import ( 4 | "testing" 5 | 6 | "github.com/stretchr/testify/assert" 7 | ) 8 | 9 | func TestGlobalEndpoints(t *testing.T) { 10 | region := "mock-region-1" 11 | svcs := []string{"cloudfront", "iam", "importexport", "route53", "sts"} 12 | 13 | for _, name := range svcs { 14 | ep, sr := EndpointForRegion(name, region) 15 | assert.Equal(t, name+".amazonaws.com", ep) 16 | assert.Equal(t, "us-east-1", sr) 17 | } 18 | } 19 | 20 | func TestServicesInCN(t *testing.T) { 21 | region := "cn-north-1" 22 | svcs := []string{"cloudfront", "iam", "importexport", "route53", "sts", "s3"} 23 | 24 | for _, name := range svcs { 25 | ep, _ := EndpointForRegion(name, region) 26 | assert.Equal(t, name+"."+region+".amazonaws.com.cn", ep) 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/private/model/api/api_test.go: -------------------------------------------------------------------------------- 1 | package api 2 | 3 | import ( 4 | "testing" 5 | 6 | "github.com/stretchr/testify/assert" 7 | ) 8 | 9 | func TestStructNameWithFullName(t *testing.T) { 10 | a := API{ 11 | Metadata: Metadata{ 12 | ServiceFullName: "Amazon Service Name-100", 13 | }, 14 | } 15 | assert.Equal(t, a.StructName(), "ServiceName100") 16 | } 17 | 18 | func TestStructNameWithAbbreviation(t *testing.T) { 19 | a := API{ 20 | Metadata: Metadata{ 21 | ServiceFullName: "AWS Service Name-100", 22 | ServiceAbbreviation: "AWS SN100", 23 | }, 24 | } 25 | assert.Equal(t, a.StructName(), "SN100") 26 | } 27 | 28 | func TestStructNameForExceptions(t *testing.T) { 29 | a := API{ 30 | Metadata: Metadata{ 31 | ServiceFullName: "Elastic Load Balancing", 32 | }, 33 | } 34 | assert.Equal(t, a.StructName(), "ELB") 35 | 36 | a = API{ 37 | Metadata: Metadata{ 38 | ServiceFullName: "AWS Config", 39 | }, 40 | } 41 | assert.Equal(t, a.StructName(), "ConfigService") 42 | } 43 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/private/model/api/exportable_name.go: -------------------------------------------------------------------------------- 1 | package api 2 | 3 | import "strings" 4 | 5 | // ExportableName a name which is exportable as a value or name in Go code 6 | func (a *API) ExportableName(name string) string { 7 | if name == "" { 8 | return name 9 | } 10 | 11 | return strings.ToUpper(name[0:1]) + name[1:] 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/private/model/api/load_test.go: -------------------------------------------------------------------------------- 1 | package api 2 | 3 | import ( 4 | "testing" 5 | 6 | "github.com/stretchr/testify/assert" 7 | ) 8 | 9 | func TestResolvedReferences(t *testing.T) { 10 | json := `{ 11 | "operations": { 12 | "OperationName": { 13 | "input": { "shape": "TestName" } 14 | } 15 | }, 16 | "shapes": { 17 | "TestName": { 18 | "type": "structure", 19 | "members": { 20 | "memberName1": { "shape": "OtherTest" }, 21 | "memberName2": { "shape": "OtherTest" } 22 | } 23 | }, 24 | "OtherTest": { "type": "string" } 25 | } 26 | }` 27 | a := API{} 28 | a.AttachString(json) 29 | assert.Equal(t, len(a.Shapes["OtherTest"].refs), 2) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/private/model/cli/api-info/api-info.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | "path/filepath" 7 | "sort" 8 | 9 | "github.com/aws/aws-sdk-go/private/model/api" 10 | ) 11 | 12 | func main() { 13 | dir, _ := os.Open(filepath.Join("models", "apis")) 14 | names, _ := dir.Readdirnames(0) 15 | for _, name := range names { 16 | m, _ := filepath.Glob(filepath.Join("models", "apis", name, "*", "api-2.json")) 17 | if len(m) == 0 { 18 | continue 19 | } 20 | 21 | sort.Strings(m) 22 | f := m[len(m)-1] 23 | a := api.API{} 24 | a.Attach(f) 25 | fmt.Printf("%s\t%s\n", a.Metadata.ServiceFullName, a.Metadata.APIVersion) 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal.go: -------------------------------------------------------------------------------- 1 | package query 2 | 3 | //go:generate go run ../../../models/protocol_tests/generate.go ../../../models/protocol_tests/output/query.json unmarshal_test.go 4 | 5 | import ( 6 | "encoding/xml" 7 | 8 | "github.com/aws/aws-sdk-go/aws/awserr" 9 | "github.com/aws/aws-sdk-go/aws/request" 10 | "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil" 11 | ) 12 | 13 | // Unmarshal unmarshals a response for an AWS Query service. 14 | func Unmarshal(r *request.Request) { 15 | defer r.HTTPResponse.Body.Close() 16 | if r.DataFilled() { 17 | decoder := xml.NewDecoder(r.HTTPResponse.Body) 18 | err := xmlutil.UnmarshalXML(r.Data, decoder, r.Operation.Name+"Result") 19 | if err != nil { 20 | r.Error = awserr.New("SerializationError", "failed decoding Query response", err) 21 | return 22 | } 23 | } 24 | } 25 | 26 | // UnmarshalMeta unmarshals header response values for an AWS Query service. 27 | func UnmarshalMeta(r *request.Request) { 28 | // TODO implement unmarshaling of request IDs 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal_error.go: -------------------------------------------------------------------------------- 1 | package query 2 | 3 | import ( 4 | "encoding/xml" 5 | "io" 6 | 7 | "github.com/aws/aws-sdk-go/aws/awserr" 8 | "github.com/aws/aws-sdk-go/aws/request" 9 | ) 10 | 11 | type xmlErrorResponse struct { 12 | XMLName xml.Name `xml:"ErrorResponse"` 13 | Code string `xml:"Error>Code"` 14 | Message string `xml:"Error>Message"` 15 | RequestID string `xml:"RequestId"` 16 | } 17 | 18 | // UnmarshalError unmarshals an error response for an AWS Query service. 19 | func UnmarshalError(r *request.Request) { 20 | defer r.HTTPResponse.Body.Close() 21 | 22 | resp := &xmlErrorResponse{} 23 | err := xml.NewDecoder(r.HTTPResponse.Body).Decode(resp) 24 | if err != nil && err != io.EOF { 25 | r.Error = awserr.New("SerializationError", "failed to decode query XML error response", err) 26 | } else { 27 | r.Error = awserr.NewRequestFailure( 28 | awserr.New(resp.Code, resp.Message, nil), 29 | r.HTTPResponse.StatusCode, 30 | resp.RequestID, 31 | ) 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/sdk.go: -------------------------------------------------------------------------------- 1 | // Package sdk is the official AWS SDK for the Go programming language. 2 | // 3 | // See our Developer Guide for information for on getting started and using 4 | // the SDK. 5 | // 6 | // https://github.com/aws/aws-sdk-go/wiki 7 | package sdk 8 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/apigateway/apigatewayiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package apigatewayiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/apigateway" 9 | "github.com/aws/aws-sdk-go/service/apigateway/apigatewayiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*apigatewayiface.APIGatewayAPI)(nil), apigateway.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/apigateway/customization.go: -------------------------------------------------------------------------------- 1 | package apigateway 2 | 3 | import ( 4 | "github.com/aws/aws-sdk-go/aws/request" 5 | "github.com/aws/aws-sdk-go/aws/service" 6 | ) 7 | 8 | func init() { 9 | initService = func(s *service.Service) { 10 | s.Handlers.Build.PushBack(func(r *request.Request) { 11 | r.HTTPRequest.Header.Add("Accept", "application/json") 12 | }) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package autoscalingiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/autoscaling" 9 | "github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*autoscalingiface.AutoScalingAPI)(nil), autoscaling.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package cloudformationiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/cloudformation" 9 | "github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*cloudformationiface.CloudFormationAPI)(nil), cloudformation.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/cloudfront/cloudfrontiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package cloudfrontiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/cloudfront" 9 | "github.com/aws/aws-sdk-go/service/cloudfront/cloudfrontiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*cloudfrontiface.CloudFrontAPI)(nil), cloudfront.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/randomreader.go: -------------------------------------------------------------------------------- 1 | package sign 2 | 3 | import ( 4 | "bytes" 5 | "encoding/binary" 6 | "math/rand" 7 | ) 8 | 9 | // A randomReader wraps a math/rand.Rand within an reader so that it can used 10 | // as a predictable testing replacement for crypto/rand.Reader 11 | type randomReader struct { 12 | b *bytes.Buffer 13 | r *rand.Rand 14 | } 15 | 16 | // newRandomReader returns a new instance of the random reader 17 | func newRandomReader(r *rand.Rand) *randomReader { 18 | return &randomReader{b: &bytes.Buffer{}, r: r} 19 | } 20 | 21 | // Read will read random bytes from up to the length of b. 22 | func (m *randomReader) Read(b []byte) (int, error) { 23 | for i := 0; i < len(b); { 24 | binary.Write(m.b, binary.LittleEndian, m.r.Int63()) 25 | n, _ := m.b.Read(b[i:]) 26 | i += n 27 | } 28 | 29 | return len(b), nil 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/cloudhsm/cloudhsmiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package cloudhsmiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/cloudhsm" 9 | "github.com/aws/aws-sdk-go/service/cloudhsm/cloudhsmiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*cloudhsmiface.CloudHSMAPI)(nil), cloudhsm.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/cloudsearch/cloudsearchiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package cloudsearchiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/cloudsearch" 9 | "github.com/aws/aws-sdk-go/service/cloudsearch/cloudsearchiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*cloudsearchiface.CloudSearchAPI)(nil), cloudsearch.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/cloudsearchdomainiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package cloudsearchdomainiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/cloudsearchdomain" 9 | "github.com/aws/aws-sdk-go/service/cloudsearchdomain/cloudsearchdomainiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*cloudsearchdomainiface.CloudSearchDomainAPI)(nil), cloudsearchdomain.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/cloudtrail/cloudtrailiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package cloudtrailiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/cloudtrail" 9 | "github.com/aws/aws-sdk-go/service/cloudtrail/cloudtrailiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*cloudtrailiface.CloudTrailAPI)(nil), cloudtrail.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/cloudwatch/cloudwatchiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package cloudwatchiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/cloudwatch" 9 | "github.com/aws/aws-sdk-go/service/cloudwatch/cloudwatchiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*cloudwatchiface.CloudWatchAPI)(nil), cloudwatch.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/cloudwatchlogsiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package cloudwatchlogsiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/cloudwatchlogs" 9 | "github.com/aws/aws-sdk-go/service/cloudwatchlogs/cloudwatchlogsiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*cloudwatchlogsiface.CloudWatchLogsAPI)(nil), cloudwatchlogs.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/codecommit/codecommitiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package codecommitiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/codecommit" 9 | "github.com/aws/aws-sdk-go/service/codecommit/codecommitiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*codecommitiface.CodeCommitAPI)(nil), codecommit.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/codedeploy/codedeployiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package codedeployiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/codedeploy" 9 | "github.com/aws/aws-sdk-go/service/codedeploy/codedeployiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*codedeployiface.CodeDeployAPI)(nil), codedeploy.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/codepipeline/codepipelineiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package codepipelineiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/codepipeline" 9 | "github.com/aws/aws-sdk-go/service/codepipeline/codepipelineiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*codepipelineiface.CodePipelineAPI)(nil), codepipeline.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/cognitoidentityiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package cognitoidentityiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/cognitoidentity" 9 | "github.com/aws/aws-sdk-go/service/cognitoidentity/cognitoidentityiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*cognitoidentityiface.CognitoIdentityAPI)(nil), cognitoidentity.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/customizations.go: -------------------------------------------------------------------------------- 1 | package cognitoidentity 2 | 3 | import "github.com/aws/aws-sdk-go/aws/request" 4 | 5 | func init() { 6 | initRequest = func(r *request.Request) { 7 | switch r.Operation.Name { 8 | case opGetOpenIdToken, opGetId, opGetCredentialsForIdentity: 9 | r.Handlers.Sign.Clear() // these operations are unsigned 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/cognitosync/cognitosynciface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package cognitosynciface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/cognitosync" 9 | "github.com/aws/aws-sdk-go/service/cognitosync/cognitosynciface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*cognitosynciface.CognitoSyncAPI)(nil), cognitosync.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/configservice/configserviceiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package configserviceiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/configservice" 9 | "github.com/aws/aws-sdk-go/service/configservice/configserviceiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*configserviceiface.ConfigServiceAPI)(nil), configservice.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/datapipeline/datapipelineiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package datapipelineiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/datapipeline" 9 | "github.com/aws/aws-sdk-go/service/datapipeline/datapipelineiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*datapipelineiface.DataPipelineAPI)(nil), datapipeline.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/devicefarm/devicefarmiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package devicefarmiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/devicefarm" 9 | "github.com/aws/aws-sdk-go/service/devicefarm/devicefarmiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*devicefarmiface.DeviceFarmAPI)(nil), devicefarm.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/directconnect/directconnectiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package directconnectiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/directconnect" 9 | "github.com/aws/aws-sdk-go/service/directconnect/directconnectiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*directconnectiface.DirectConnectAPI)(nil), directconnect.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/directoryservice/directoryserviceiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package directoryserviceiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/directoryservice" 9 | "github.com/aws/aws-sdk-go/service/directoryservice/directoryserviceiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*directoryserviceiface.DirectoryServiceAPI)(nil), directoryservice.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package dynamodbiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/dynamodb" 9 | "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*dynamodbiface.DynamoDBAPI)(nil), dynamodb.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/dynamodbstreamsiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package dynamodbstreamsiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/dynamodbstreams" 9 | "github.com/aws/aws-sdk-go/service/dynamodbstreams/dynamodbstreamsiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*dynamodbstreamsiface.DynamoDBStreamsAPI)(nil), dynamodbstreams.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/ec2/customizations_test.go: -------------------------------------------------------------------------------- 1 | package ec2_test 2 | 3 | import ( 4 | "io/ioutil" 5 | "net/url" 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/aws" 9 | "github.com/aws/aws-sdk-go/awstesting/unit" 10 | "github.com/aws/aws-sdk-go/service/ec2" 11 | "github.com/stretchr/testify/assert" 12 | ) 13 | 14 | var _ = unit.Imported 15 | 16 | func TestCopySnapshotPresignedURL(t *testing.T) { 17 | svc := ec2.New(&aws.Config{Region: aws.String("us-west-2")}) 18 | 19 | assert.NotPanics(t, func() { 20 | // Doesn't panic on nil input 21 | req, _ := svc.CopySnapshotRequest(nil) 22 | req.Sign() 23 | }) 24 | 25 | req, _ := svc.CopySnapshotRequest(&ec2.CopySnapshotInput{ 26 | SourceRegion: aws.String("us-west-1"), 27 | SourceSnapshotId: aws.String("snap-id"), 28 | }) 29 | req.Sign() 30 | 31 | b, _ := ioutil.ReadAll(req.HTTPRequest.Body) 32 | q, _ := url.ParseQuery(string(b)) 33 | url, _ := url.QueryUnescape(q.Get("PresignedUrl")) 34 | assert.Equal(t, "us-west-2", q.Get("DestinationRegion")) 35 | assert.Regexp(t, `^https://ec2\.us-west-1\.amazon.+&DestinationRegion=us-west-2`, url) 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/ec2/ec2iface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package ec2iface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/ec2" 9 | "github.com/aws/aws-sdk-go/service/ec2/ec2iface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*ec2iface.EC2API)(nil), ec2.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/ecs/ecsiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package ecsiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/ecs" 9 | "github.com/aws/aws-sdk-go/service/ecs/ecsiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*ecsiface.ECSAPI)(nil), ecs.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/efs/efsiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package efsiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/efs" 9 | "github.com/aws/aws-sdk-go/service/efs/efsiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*efsiface.EFSAPI)(nil), efs.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package elasticacheiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/elasticache" 9 | "github.com/aws/aws-sdk-go/service/elasticache/elasticacheiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*elasticacheiface.ElastiCacheAPI)(nil), elasticache.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/elasticbeanstalkiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package elasticbeanstalkiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/elasticbeanstalk" 9 | "github.com/aws/aws-sdk-go/service/elasticbeanstalk/elasticbeanstalkiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*elasticbeanstalkiface.ElasticBeanstalkAPI)(nil), elasticbeanstalk.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/elasticsearchserviceiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package elasticsearchserviceiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/elasticsearchservice" 9 | "github.com/aws/aws-sdk-go/service/elasticsearchservice/elasticsearchserviceiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*elasticsearchserviceiface.ElasticsearchServiceAPI)(nil), elasticsearchservice.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/elastictranscoderiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package elastictranscoderiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/elastictranscoder" 9 | "github.com/aws/aws-sdk-go/service/elastictranscoder/elastictranscoderiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*elastictranscoderiface.ElasticTranscoderAPI)(nil), elastictranscoder.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/elb/elbiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package elbiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/elb" 9 | "github.com/aws/aws-sdk-go/service/elb/elbiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*elbiface.ELBAPI)(nil), elb.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/emr/emriface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package emriface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/emr" 9 | "github.com/aws/aws-sdk-go/service/emr/emriface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*emriface.EMRAPI)(nil), emr.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/firehose/firehoseiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package firehoseiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/firehose" 9 | "github.com/aws/aws-sdk-go/service/firehose/firehoseiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*firehoseiface.FirehoseAPI)(nil), firehose.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/generate.go: -------------------------------------------------------------------------------- 1 | // Package service contains automatically generated AWS clients. 2 | package service 3 | 4 | //go:generate go run ../private/model/cli/gen-api/main.go -path=../service ../models/apis/*/*/api-2.json 5 | //go:generate gofmt -s -w ../service 6 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/glacier/glacieriface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package glacieriface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/glacier" 9 | "github.com/aws/aws-sdk-go/service/glacier/glacieriface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*glacieriface.GlacierAPI)(nil), glacier.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/glacier/treehash_test.go: -------------------------------------------------------------------------------- 1 | package glacier_test 2 | 3 | import ( 4 | "bytes" 5 | "fmt" 6 | 7 | "github.com/aws/aws-sdk-go/service/glacier" 8 | ) 9 | 10 | func ExampleComputeHashes() { 11 | buf := make([]byte, 5767168) // 5.5MB buffer 12 | for i := range buf { 13 | buf[i] = '0' // Fill with zero characters 14 | } 15 | 16 | r := bytes.NewReader(buf) 17 | h := glacier.ComputeHashes(r) 18 | n, _ := r.Seek(0, 1) // Check position after checksumming 19 | 20 | fmt.Printf("linear: %x\n", h.LinearHash) 21 | fmt.Printf("tree: %x\n", h.TreeHash) 22 | fmt.Printf("pos: %d\n", n) 23 | 24 | // Output: 25 | // linear: 68aff0c5a91aa0491752bfb96e3fef33eb74953804f6a2f7b708d5bcefa8ff6b 26 | // tree: 154e26c78fd74d0c2c9b3cc4644191619dc4f2cd539ae2a74d5fd07957a3ee6a 27 | // pos: 0 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/iam/iamiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package iamiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/iam" 9 | "github.com/aws/aws-sdk-go/service/iam/iamiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*iamiface.IAMAPI)(nil), iam.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/inspector/inspectoriface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package inspectoriface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/inspector" 9 | "github.com/aws/aws-sdk-go/service/inspector/inspectoriface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*inspectoriface.InspectorAPI)(nil), inspector.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/iot/iotiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package iotiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/iot" 9 | "github.com/aws/aws-sdk-go/service/iot/iotiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*iotiface.IoTAPI)(nil), iot.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/iotdataplane/customizations.go: -------------------------------------------------------------------------------- 1 | package iotdataplane 2 | 3 | import ( 4 | // "github.com/aws/aws-sdk-go/aws" 5 | "github.com/aws/aws-sdk-go/aws/service" 6 | ) 7 | 8 | func init() { 9 | initService = func(svc *service.Service) { 10 | // // AWS IoT Dataplane requires a custom endpoint to be provided to the 11 | // // to the service client when it is created. It is an error if no endpoint 12 | // // is provided. 13 | // if aws.StringValue(svc.Config.Endpoint) == "" { 14 | // svc.Endpoint = "" 15 | // } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/iotdataplane/iotdataplaneiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package iotdataplaneiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/iotdataplane" 9 | "github.com/aws/aws-sdk-go/service/iotdataplane/iotdataplaneiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*iotdataplaneiface.IoTDataPlaneAPI)(nil), iotdataplane.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/kinesis/kinesisiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package kinesisiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/kinesis" 9 | "github.com/aws/aws-sdk-go/service/kinesis/kinesisiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*kinesisiface.KinesisAPI)(nil), kinesis.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/kms/kmsiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package kmsiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/kms" 9 | "github.com/aws/aws-sdk-go/service/kms/kmsiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*kmsiface.KMSAPI)(nil), kms.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/lambda/lambdaiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package lambdaiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/lambda" 9 | "github.com/aws/aws-sdk-go/service/lambda/lambdaiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*lambdaiface.LambdaAPI)(nil), lambda.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/machinelearning/customizations.go: -------------------------------------------------------------------------------- 1 | package machinelearning 2 | 3 | import ( 4 | "net/url" 5 | 6 | "github.com/aws/aws-sdk-go/aws/request" 7 | ) 8 | 9 | func init() { 10 | initRequest = func(r *request.Request) { 11 | switch r.Operation.Name { 12 | case opPredict: 13 | r.Handlers.Build.PushBack(updatePredictEndpoint) 14 | } 15 | } 16 | } 17 | 18 | // updatePredictEndpoint rewrites the request endpoint to use the 19 | // "PredictEndpoint" parameter of the Predict operation. 20 | func updatePredictEndpoint(r *request.Request) { 21 | if !r.ParamsFilled() { 22 | return 23 | } 24 | 25 | r.Service.Endpoint = *r.Params.(*PredictInput).PredictEndpoint 26 | 27 | uri, err := url.Parse(r.Service.Endpoint) 28 | if err != nil { 29 | r.Error = err 30 | return 31 | } 32 | r.HTTPRequest.URL = uri 33 | } 34 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/machinelearning/customizations_test.go: -------------------------------------------------------------------------------- 1 | package machinelearning_test 2 | 3 | import ( 4 | "bytes" 5 | "io/ioutil" 6 | "net/http" 7 | "testing" 8 | 9 | "github.com/aws/aws-sdk-go/aws" 10 | "github.com/aws/aws-sdk-go/aws/request" 11 | "github.com/aws/aws-sdk-go/awstesting/unit" 12 | "github.com/aws/aws-sdk-go/service/machinelearning" 13 | "github.com/stretchr/testify/assert" 14 | ) 15 | 16 | var _ = unit.Imported 17 | 18 | func TestPredictEndpoint(t *testing.T) { 19 | ml := machinelearning.New(nil) 20 | ml.Handlers.Send.Clear() 21 | ml.Handlers.Send.PushBack(func(r *request.Request) { 22 | r.HTTPResponse = &http.Response{ 23 | StatusCode: 200, 24 | Header: http.Header{}, 25 | Body: ioutil.NopCloser(bytes.NewReader([]byte("{}"))), 26 | } 27 | }) 28 | 29 | req, _ := ml.PredictRequest(&machinelearning.PredictInput{ 30 | PredictEndpoint: aws.String("https://localhost/endpoint"), 31 | MLModelId: aws.String("id"), 32 | Record: map[string]*string{}, 33 | }) 34 | err := req.Send() 35 | 36 | assert.Nil(t, err) 37 | assert.Equal(t, "https://localhost/endpoint", req.HTTPRequest.URL.String()) 38 | } 39 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/machinelearning/machinelearningiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package machinelearningiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/machinelearning" 9 | "github.com/aws/aws-sdk-go/service/machinelearning/machinelearningiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*machinelearningiface.MachineLearningAPI)(nil), machinelearning.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/marketplacecommerceanalyticsiface/interface.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | // Package marketplacecommerceanalyticsiface provides an interface for the AWS Marketplace Commerce Analytics. 4 | package marketplacecommerceanalyticsiface 5 | 6 | import ( 7 | "github.com/aws/aws-sdk-go/aws/request" 8 | "github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics" 9 | ) 10 | 11 | // MarketplaceCommerceAnalyticsAPI is the interface type for marketplacecommerceanalytics.MarketplaceCommerceAnalytics. 12 | type MarketplaceCommerceAnalyticsAPI interface { 13 | GenerateDataSetRequest(*marketplacecommerceanalytics.GenerateDataSetInput) (*request.Request, *marketplacecommerceanalytics.GenerateDataSetOutput) 14 | 15 | GenerateDataSet(*marketplacecommerceanalytics.GenerateDataSetInput) (*marketplacecommerceanalytics.GenerateDataSetOutput, error) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/marketplacecommerceanalyticsiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package marketplacecommerceanalyticsiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics" 9 | "github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics/marketplacecommerceanalyticsiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*marketplacecommerceanalyticsiface.MarketplaceCommerceAnalyticsAPI)(nil), marketplacecommerceanalytics.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/mobileanalyticsiface/interface.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | // Package mobileanalyticsiface provides an interface for the Amazon Mobile Analytics. 4 | package mobileanalyticsiface 5 | 6 | import ( 7 | "github.com/aws/aws-sdk-go/aws/request" 8 | "github.com/aws/aws-sdk-go/service/mobileanalytics" 9 | ) 10 | 11 | // MobileAnalyticsAPI is the interface type for mobileanalytics.MobileAnalytics. 12 | type MobileAnalyticsAPI interface { 13 | PutEventsRequest(*mobileanalytics.PutEventsInput) (*request.Request, *mobileanalytics.PutEventsOutput) 14 | 15 | PutEvents(*mobileanalytics.PutEventsInput) (*mobileanalytics.PutEventsOutput, error) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/mobileanalytics/mobileanalyticsiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package mobileanalyticsiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/mobileanalytics" 9 | "github.com/aws/aws-sdk-go/service/mobileanalytics/mobileanalyticsiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*mobileanalyticsiface.MobileAnalyticsAPI)(nil), mobileanalytics.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/opsworks/opsworksiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package opsworksiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/opsworks" 9 | "github.com/aws/aws-sdk-go/service/opsworks/opsworksiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*opsworksiface.OpsWorksAPI)(nil), opsworks.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/rds/rdsiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package rdsiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/rds" 9 | "github.com/aws/aws-sdk-go/service/rds/rdsiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*rdsiface.RDSAPI)(nil), rds.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/redshift/redshiftiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package redshiftiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/redshift" 9 | "github.com/aws/aws-sdk-go/service/redshift/redshiftiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*redshiftiface.RedshiftAPI)(nil), redshift.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/route53/customizations.go: -------------------------------------------------------------------------------- 1 | package route53 2 | 3 | import ( 4 | "regexp" 5 | 6 | "github.com/aws/aws-sdk-go/aws/request" 7 | "github.com/aws/aws-sdk-go/aws/service" 8 | ) 9 | 10 | func init() { 11 | initService = func(s *service.Service) { 12 | s.Handlers.Build.PushBack(sanitizeURL) 13 | } 14 | } 15 | 16 | var reSanitizeURL = regexp.MustCompile(`\/%2F\w+%2F`) 17 | 18 | func sanitizeURL(r *request.Request) { 19 | r.HTTPRequest.URL.Opaque = 20 | reSanitizeURL.ReplaceAllString(r.HTTPRequest.URL.Opaque, "/") 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/route53/customizations_test.go: -------------------------------------------------------------------------------- 1 | package route53_test 2 | 3 | import ( 4 | "testing" 5 | 6 | "github.com/aws/aws-sdk-go/aws" 7 | "github.com/aws/aws-sdk-go/awstesting" 8 | "github.com/aws/aws-sdk-go/service/route53" 9 | ) 10 | 11 | func TestBuildCorrectURI(t *testing.T) { 12 | svc := route53.New(nil) 13 | svc.Handlers.Validate.Clear() 14 | req, _ := svc.GetHostedZoneRequest(&route53.GetHostedZoneInput{ 15 | Id: aws.String("/hostedzone/ABCDEFG"), 16 | }) 17 | 18 | req.Build() 19 | 20 | awstesting.Match(t, `\/hostedzone\/ABCDEFG$`, req.HTTPRequest.URL.String()) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/route53/route53iface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package route53iface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/route53" 9 | "github.com/aws/aws-sdk-go/service/route53/route53iface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*route53iface.Route53API)(nil), route53.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/route53domains/route53domainsiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package route53domainsiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/route53domains" 9 | "github.com/aws/aws-sdk-go/service/route53domains/route53domainsiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*route53domainsiface.Route53DomainsAPI)(nil), route53domains.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/s3/content_md5.go: -------------------------------------------------------------------------------- 1 | package s3 2 | 3 | import ( 4 | "crypto/md5" 5 | "encoding/base64" 6 | "io" 7 | 8 | "github.com/aws/aws-sdk-go/aws/awserr" 9 | "github.com/aws/aws-sdk-go/aws/request" 10 | ) 11 | 12 | // contentMD5 computes and sets the HTTP Content-MD5 header for requests that 13 | // require it. 14 | func contentMD5(r *request.Request) { 15 | h := md5.New() 16 | 17 | // hash the body. seek back to the first position after reading to reset 18 | // the body for transmission. copy errors may be assumed to be from the 19 | // body. 20 | _, err := io.Copy(h, r.Body) 21 | if err != nil { 22 | r.Error = awserr.New("ContentMD5", "failed to read body", err) 23 | return 24 | } 25 | _, err = r.Body.Seek(0, 0) 26 | if err != nil { 27 | r.Error = awserr.New("ContentMD5", "failed to seek body", err) 28 | return 29 | } 30 | 31 | // encode the md5 checksum in base64 and set the request header. 32 | sum := h.Sum(nil) 33 | sum64 := make([]byte, base64.StdEncoding.EncodedLen(len(sum))) 34 | base64.StdEncoding.Encode(sum64, sum) 35 | r.HTTPRequest.Header.Set("Content-MD5", string(sum64)) 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/s3/s3iface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package s3iface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/s3" 9 | "github.com/aws/aws-sdk-go/service/s3/s3iface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*s3iface.S3API)(nil), s3.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/s3/statusok_error.go: -------------------------------------------------------------------------------- 1 | package s3 2 | 3 | import ( 4 | "bytes" 5 | "io/ioutil" 6 | "net/http" 7 | 8 | "github.com/aws/aws-sdk-go/aws" 9 | "github.com/aws/aws-sdk-go/aws/awserr" 10 | "github.com/aws/aws-sdk-go/aws/request" 11 | ) 12 | 13 | func copyMultipartStatusOKUnmarhsalError(r *request.Request) { 14 | b, err := ioutil.ReadAll(r.HTTPResponse.Body) 15 | if err != nil { 16 | r.Error = awserr.New("SerializationError", "unable to read response body", err) 17 | return 18 | } 19 | body := bytes.NewReader(b) 20 | r.HTTPResponse.Body = aws.ReadSeekCloser(body) 21 | defer r.HTTPResponse.Body.(aws.ReaderSeekerCloser).Seek(0, 0) 22 | 23 | if body.Len() == 0 { 24 | // If there is no body don't attempt to parse the body. 25 | return 26 | } 27 | 28 | unmarshalError(r) 29 | if err, ok := r.Error.(awserr.Error); ok && err != nil { 30 | if err.Code() == "SerializationError" { 31 | r.Error = nil 32 | return 33 | } 34 | r.HTTPResponse.StatusCode = http.StatusServiceUnavailable 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/ses/sesiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package sesiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/ses" 9 | "github.com/aws/aws-sdk-go/service/ses/sesiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*sesiface.SESAPI)(nil), ses.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/simpledb/customizations.go: -------------------------------------------------------------------------------- 1 | package simpledb 2 | 3 | import "github.com/aws/aws-sdk-go/aws/service" 4 | 5 | func init() { 6 | initService = func(s *service.Service) { 7 | // SimpleDB uses custom error unmarshaling logic 8 | s.Handlers.UnmarshalError.Clear() 9 | s.Handlers.UnmarshalError.PushBack(unmarshalError) 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/simpledb/simpledbiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package simpledbiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/simpledb" 9 | "github.com/aws/aws-sdk-go/service/simpledb/simpledbiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*simpledbiface.SimpleDBAPI)(nil), simpledb.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/sns/snsiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package snsiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/sns" 9 | "github.com/aws/aws-sdk-go/service/sns/snsiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*snsiface.SNSAPI)(nil), sns.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/sqs/api_test.go: -------------------------------------------------------------------------------- 1 | // +build integration 2 | 3 | package sqs_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/aws" 9 | "github.com/aws/aws-sdk-go/service/sqs" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestFlattenedTraits(t *testing.T) { 14 | s := sqs.New(nil) 15 | _, err := s.DeleteMessageBatch(&sqs.DeleteMessageBatchInput{ 16 | QueueURL: aws.String("QUEUE"), 17 | Entries: []*sqs.DeleteMessageBatchRequestEntry{ 18 | { 19 | ID: aws.String("TEST"), 20 | ReceiptHandle: aws.String("RECEIPT"), 21 | }, 22 | }, 23 | }) 24 | 25 | assert.Error(t, err) 26 | assert.Equal(t, "InvalidAddress", err.Code()) 27 | assert.Equal(t, "The address QUEUE is not valid for this endpoint.", err.Message()) 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/sqs/customizations.go: -------------------------------------------------------------------------------- 1 | package sqs 2 | 3 | import "github.com/aws/aws-sdk-go/aws/request" 4 | 5 | func init() { 6 | initRequest = func(r *request.Request) { 7 | setupChecksumValidation(r) 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/sqs/sqsiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package sqsiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/sqs" 9 | "github.com/aws/aws-sdk-go/service/sqs/sqsiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*sqsiface.SQSAPI)(nil), sqs.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/ssm/ssmiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package ssmiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/ssm" 9 | "github.com/aws/aws-sdk-go/service/ssm/ssmiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*ssmiface.SSMAPI)(nil), ssm.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/storagegateway/storagegatewayiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package storagegatewayiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/storagegateway" 9 | "github.com/aws/aws-sdk-go/service/storagegateway/storagegatewayiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*storagegatewayiface.StorageGatewayAPI)(nil), storagegateway.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/sts/customizations.go: -------------------------------------------------------------------------------- 1 | package sts 2 | 3 | import "github.com/aws/aws-sdk-go/aws/request" 4 | 5 | func init() { 6 | initRequest = func(r *request.Request) { 7 | switch r.Operation.Name { 8 | case opAssumeRoleWithSAML, opAssumeRoleWithWebIdentity: 9 | r.Handlers.Sign.Clear() // these operations are unsigned 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/sts/stsiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package stsiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/sts" 9 | "github.com/aws/aws-sdk-go/service/sts/stsiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*stsiface.STSAPI)(nil), sts.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/support/supportiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package supportiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/support" 9 | "github.com/aws/aws-sdk-go/service/support/supportiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*supportiface.SupportAPI)(nil), support.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/swf/swfiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package swfiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/swf" 9 | "github.com/aws/aws-sdk-go/service/swf/swfiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*swfiface.SWFAPI)(nil), swf.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/waf/wafiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package wafiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/waf" 9 | "github.com/aws/aws-sdk-go/service/waf/wafiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*wafiface.WAFAPI)(nil), waf.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/workspaces/workspacesiface/interface_test.go: -------------------------------------------------------------------------------- 1 | // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. 2 | 3 | package workspacesiface_test 4 | 5 | import ( 6 | "testing" 7 | 8 | "github.com/aws/aws-sdk-go/service/workspaces" 9 | "github.com/aws/aws-sdk-go/service/workspaces/workspacesiface" 10 | "github.com/stretchr/testify/assert" 11 | ) 12 | 13 | func TestInterface(t *testing.T) { 14 | assert.Implements(t, (*workspacesiface.WorkSpacesAPI)(nil), workspaces.New(nil)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/bgentry/speakeasy/.gitignore: -------------------------------------------------------------------------------- 1 | example/example 2 | example/example.exe 3 | -------------------------------------------------------------------------------- /vendor/github.com/bgentry/speakeasy/example/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | 7 | "github.com/bgentry/speakeasy" 8 | ) 9 | 10 | func main() { 11 | password, err := speakeasy.Ask("Please enter a password: ") 12 | if err != nil { 13 | fmt.Println(err) 14 | os.Exit(1) 15 | } 16 | fmt.Printf("Password result: %q\n", password) 17 | fmt.Printf("Password len: %d\n", len(password)) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/bgentry/speakeasy/speakeasy_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package speakeasy 4 | 5 | import ( 6 | "syscall" 7 | ) 8 | 9 | // SetConsoleMode function can be used to change value of ENABLE_ECHO_INPUT: 10 | // http://msdn.microsoft.com/en-us/library/windows/desktop/ms686033(v=vs.85).aspx 11 | const ENABLE_ECHO_INPUT = 0x0004 12 | 13 | func getPassword() (password string, err error) { 14 | var oldMode uint32 15 | 16 | err = syscall.GetConsoleMode(syscall.Stdin, &oldMode) 17 | if err != nil { 18 | return 19 | } 20 | 21 | var newMode uint32 = (oldMode &^ ENABLE_ECHO_INPUT) 22 | 23 | err = setConsoleMode(syscall.Stdin, newMode) 24 | defer setConsoleMode(syscall.Stdin, oldMode) 25 | if err != nil { 26 | return 27 | } 28 | 29 | return readline() 30 | } 31 | 32 | func setConsoleMode(console syscall.Handle, mode uint32) (err error) { 33 | dll := syscall.MustLoadDLL("kernel32") 34 | proc := dll.MustFindProc("SetConsoleMode") 35 | r, _, err := proc.Call(uintptr(console), uintptr(mode)) 36 | 37 | if r == 0 { 38 | return err 39 | } 40 | return nil 41 | } 42 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/context/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | 4 | matrix: 5 | include: 6 | - go: 1.3 7 | - go: 1.4 8 | - go: 1.5 9 | - go: 1.6 10 | - go: tip 11 | 12 | install: 13 | - go get golang.org/x/tools/cmd/vet 14 | 15 | script: 16 | - go get -t -v ./... 17 | - diff -u <(echo -n) <(gofmt -d .) 18 | - go tool vet . 19 | - go test -v -race ./... 20 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/context/README.md: -------------------------------------------------------------------------------- 1 | context 2 | ======= 3 | [![Build Status](https://travis-ci.org/gorilla/context.png?branch=master)](https://travis-ci.org/gorilla/context) 4 | 5 | gorilla/context is a general purpose registry for global request variables. 6 | 7 | Read the full documentation here: http://www.gorillatoolkit.org/pkg/context 8 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/mux/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | 4 | matrix: 5 | include: 6 | - go: 1.2 7 | - go: 1.3 8 | - go: 1.4 9 | - go: 1.5 10 | - go: 1.6 11 | - go: 1.7 12 | - go: 1.8 13 | - go: tip 14 | 15 | install: 16 | - # Skip 17 | 18 | script: 19 | - go get -t -v ./... 20 | - diff -u <(echo -n) <(gofmt -d .) 21 | - go tool vet . 22 | - go test -v -race ./... 23 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/mux/context_gorilla.go: -------------------------------------------------------------------------------- 1 | // +build !go1.7 2 | 3 | package mux 4 | 5 | import ( 6 | "net/http" 7 | 8 | "github.com/gorilla/context" 9 | ) 10 | 11 | func contextGet(r *http.Request, key interface{}) interface{} { 12 | return context.Get(r, key) 13 | } 14 | 15 | func contextSet(r *http.Request, key, val interface{}) *http.Request { 16 | if val == nil { 17 | return r 18 | } 19 | 20 | context.Set(r, key, val) 21 | return r 22 | } 23 | 24 | func contextClear(r *http.Request) { 25 | context.Clear(r) 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/mux/context_gorilla_test.go: -------------------------------------------------------------------------------- 1 | // +build !go1.7 2 | 3 | package mux 4 | 5 | import ( 6 | "net/http" 7 | "testing" 8 | 9 | "github.com/gorilla/context" 10 | ) 11 | 12 | // Tests that the context is cleared or not cleared properly depending on 13 | // the configuration of the router 14 | func TestKeepContext(t *testing.T) { 15 | func1 := func(w http.ResponseWriter, r *http.Request) {} 16 | 17 | r := NewRouter() 18 | r.HandleFunc("/", func1).Name("func1") 19 | 20 | req, _ := http.NewRequest("GET", "http://localhost/", nil) 21 | context.Set(req, "t", 1) 22 | 23 | res := new(http.ResponseWriter) 24 | r.ServeHTTP(*res, req) 25 | 26 | if _, ok := context.GetOk(req, "t"); ok { 27 | t.Error("Context should have been cleared at end of request") 28 | } 29 | 30 | r.KeepContext = true 31 | 32 | req, _ = http.NewRequest("GET", "http://localhost/", nil) 33 | context.Set(req, "t", 1) 34 | 35 | r.ServeHTTP(*res, req) 36 | if _, ok := context.GetOk(req, "t"); !ok { 37 | t.Error("Context should NOT have been cleared at end of request") 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/mux/context_native.go: -------------------------------------------------------------------------------- 1 | // +build go1.7 2 | 3 | package mux 4 | 5 | import ( 6 | "context" 7 | "net/http" 8 | ) 9 | 10 | func contextGet(r *http.Request, key interface{}) interface{} { 11 | return r.Context().Value(key) 12 | } 13 | 14 | func contextSet(r *http.Request, key, val interface{}) *http.Request { 15 | if val == nil { 16 | return r 17 | } 18 | 19 | return r.WithContext(context.WithValue(r.Context(), key, val)) 20 | } 21 | 22 | func contextClear(r *http.Request) { 23 | return 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/mux/context_native_test.go: -------------------------------------------------------------------------------- 1 | // +build go1.7 2 | 3 | package mux 4 | 5 | import ( 6 | "context" 7 | "net/http" 8 | "testing" 9 | "time" 10 | ) 11 | 12 | func TestNativeContextMiddleware(t *testing.T) { 13 | withTimeout := func(h http.Handler) http.Handler { 14 | return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { 15 | ctx, cancel := context.WithTimeout(r.Context(), time.Minute) 16 | defer cancel() 17 | h.ServeHTTP(w, r.WithContext(ctx)) 18 | }) 19 | } 20 | 21 | r := NewRouter() 22 | r.Handle("/path/{foo}", withTimeout(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { 23 | vars := Vars(r) 24 | if vars["foo"] != "bar" { 25 | t.Fatal("Expected foo var to be set") 26 | } 27 | }))) 28 | 29 | rec := NewRecorder() 30 | req := newRequest("GET", "/path/bar") 31 | r.ServeHTTP(rec, req) 32 | } 33 | -------------------------------------------------------------------------------- /vendor/github.com/inconshreveable/mousetrap/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2014 Alan Shreve 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/github.com/inconshreveable/mousetrap/README.md: -------------------------------------------------------------------------------- 1 | # mousetrap 2 | 3 | mousetrap is a tiny library that answers a single question. 4 | 5 | On a Windows machine, was the process invoked by someone double clicking on 6 | the executable file while browsing in explorer? 7 | 8 | ### Motivation 9 | 10 | Windows developers unfamiliar with command line tools will often "double-click" 11 | the executable for a tool. Because most CLI tools print the help and then exit 12 | when invoked without arguments, this is often very frustrating for those users. 13 | 14 | mousetrap provides a way to detect these invocations so that you can provide 15 | more helpful behavior and instructions on how to run the CLI tool. To see what 16 | this looks like, both from an organizational and a technical perspective, see 17 | https://inconshreveable.com/09-09-2014/sweat-the-small-stuff/ 18 | 19 | ### The interface 20 | 21 | The library exposes a single interface: 22 | 23 | func StartedByExplorer() (bool) 24 | -------------------------------------------------------------------------------- /vendor/github.com/inconshreveable/mousetrap/trap_others.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package mousetrap 4 | 5 | // StartedByExplorer returns true if the program was invoked by the user 6 | // double-clicking on the executable from explorer.exe 7 | // 8 | // It is conservative and returns false if any of the internal calls fail. 9 | // It does not guarantee that the program was run from a terminal. It only can tell you 10 | // whether it was launched from explorer.exe 11 | // 12 | // On non-Windows platforms, it always returns false. 13 | func StartedByExplorer() bool { 14 | return false 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/satori/go.uuid/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.2 5 | - 1.3 6 | - 1.4 7 | - 1.5 8 | - 1.6 9 | before_install: 10 | - go get github.com/mattn/goveralls 11 | - go get golang.org/x/tools/cmd/cover 12 | script: 13 | - $HOME/gopath/bin/goveralls -service=travis-ci 14 | notifications: 15 | email: false 16 | -------------------------------------------------------------------------------- /vendor/github.com/satori/go.uuid/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2013-2016 by Maxim Bublis 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | # Vim files https://github.com/github/gitignore/blob/master/Global/Vim.gitignore 23 | # swap 24 | [._]*.s[a-w][a-z] 25 | [._]s[a-w][a-z] 26 | # session 27 | Session.vim 28 | # temporary 29 | .netrwhist 30 | *~ 31 | # auto-generated tag files 32 | tags 33 | 34 | *.exe 35 | 36 | cobra.test 37 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/.mailmap: -------------------------------------------------------------------------------- 1 | Steve Francia 2 | Bjørn Erik Pedersen 3 | Fabiano Franz 4 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | matrix: 4 | include: 5 | - go: 1.7.6 6 | - go: 1.8.3 7 | - go: tip 8 | allow_failures: 9 | - go: tip 10 | 11 | before_install: 12 | - mkdir -p bin 13 | - curl -Lso bin/shellcheck https://github.com/caarlos0/shellcheck-docker/releases/download/v0.4.3/shellcheck 14 | - chmod +x bin/shellcheck 15 | script: 16 | - PATH=$PATH:$PWD/bin go test -v ./... 17 | - go build 18 | - diff -u <(echo -n) <(gofmt -d -s .) 19 | - if [ -z $NOVET ]; then 20 | diff -u <(echo -n) <(go tool vet . 2>&1 | grep -vE 'ExampleCommand|bash_completions.*Fprint'); 21 | fi 22 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/cobra/cmd/project_test.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "testing" 5 | ) 6 | 7 | func TestFindExistingPackage(t *testing.T) { 8 | path := findPackage("github.com/spf13/cobra") 9 | if path == "" { 10 | t.Fatal("findPackage didn't find the existing package") 11 | } 12 | if !hasGoPathPrefix(path) { 13 | t.Fatalf("%q is not in GOPATH, but must be", path) 14 | } 15 | } 16 | 17 | func hasGoPathPrefix(path string) bool { 18 | for _, srcPath := range srcPaths { 19 | if filepathHasPrefix(path, srcPath) { 20 | return true 21 | } 22 | } 23 | return false 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/cobra/cmd/testdata/main.go.golden: -------------------------------------------------------------------------------- 1 | // Copyright © 2017 NAME HERE 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | package main 16 | 17 | import "github.com/spf13/testproject/cmd" 18 | 19 | func main() { 20 | cmd.Execute() 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/cobra/main.go: -------------------------------------------------------------------------------- 1 | // Copyright © 2015 Steve Francia . 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // http://www.apache.org/licenses/LICENSE-2.0 7 | // 8 | // Unless required by applicable law or agreed to in writing, software 9 | // distributed under the License is distributed on an "AS IS" BASIS, 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | // See the License for the specific language governing permissions and 12 | // limitations under the License. 13 | 14 | package main 15 | 16 | import "github.com/spf13/cobra/cobra/cmd" 17 | 18 | func main() { 19 | cmd.Execute() 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/command_notwin.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package cobra 4 | 5 | var preExecHookFn func(*Command) 6 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/command_win.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package cobra 4 | 5 | import ( 6 | "os" 7 | "time" 8 | 9 | "github.com/inconshreveable/mousetrap" 10 | ) 11 | 12 | var preExecHookFn = preExecHook 13 | 14 | func preExecHook(c *Command) { 15 | if MousetrapHelpText != "" && mousetrap.StartedByExplorer() { 16 | c.Print(MousetrapHelpText) 17 | time.Sleep(5 * time.Second) 18 | os.Exit(1) 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/doc/man_docs.md: -------------------------------------------------------------------------------- 1 | # Generating Man Pages For Your Own cobra.Command 2 | 3 | Generating man pages from a cobra command is incredibly easy. An example is as follows: 4 | 5 | ```go 6 | package main 7 | 8 | import ( 9 | "log" 10 | 11 | "github.com/spf13/cobra" 12 | "github.com/spf13/cobra/doc" 13 | ) 14 | 15 | func main() { 16 | cmd := &cobra.Command{ 17 | Use: "test", 18 | Short: "my test program", 19 | } 20 | header := &doc.GenManHeader{ 21 | Title: "MINE", 22 | Section: "3", 23 | } 24 | err := doc.GenManTree(cmd, header, "/tmp") 25 | if err != nil { 26 | log.Fatal(err) 27 | } 28 | } 29 | ``` 30 | 31 | That will get you a man page `/tmp/test.3` 32 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/cobra/doc/man_examples_test.go: -------------------------------------------------------------------------------- 1 | package doc_test 2 | 3 | import ( 4 | "bytes" 5 | "fmt" 6 | 7 | "github.com/spf13/cobra" 8 | "github.com/spf13/cobra/doc" 9 | ) 10 | 11 | func ExampleGenManTree() { 12 | cmd := &cobra.Command{ 13 | Use: "test", 14 | Short: "my test program", 15 | } 16 | header := &doc.GenManHeader{ 17 | Title: "MINE", 18 | Section: "3", 19 | } 20 | doc.GenManTree(cmd, header, "/tmp") 21 | } 22 | 23 | func ExampleGenMan() { 24 | cmd := &cobra.Command{ 25 | Use: "test", 26 | Short: "my test program", 27 | } 28 | header := &doc.GenManHeader{ 29 | Title: "MINE", 30 | Section: "3", 31 | } 32 | out := new(bytes.Buffer) 33 | doc.GenMan(cmd, header, out) 34 | fmt.Print(out.String()) 35 | } 36 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/* 2 | 3 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | language: go 4 | 5 | go: 6 | - 1.7.3 7 | - 1.8.1 8 | - tip 9 | 10 | matrix: 11 | allow_failures: 12 | - go: tip 13 | 14 | install: 15 | - go get github.com/golang/lint/golint 16 | - export PATH=$GOPATH/bin:$PATH 17 | - go install ./... 18 | 19 | script: 20 | - verify/all.sh -v 21 | - go test ./... 22 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/example_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package pflag_test 6 | 7 | import ( 8 | "fmt" 9 | 10 | "github.com/spf13/pflag" 11 | ) 12 | 13 | func ExampleShorthandLookup() { 14 | name := "verbose" 15 | short := name[:1] 16 | 17 | pflag.BoolP(name, short, false, "verbose output") 18 | 19 | // len(short) must be == 1 20 | flag := pflag.ShorthandLookup(short) 21 | 22 | fmt.Println(flag.Name) 23 | } 24 | 25 | func ExampleFlagSet_ShorthandLookup() { 26 | name := "verbose" 27 | short := name[:1] 28 | 29 | fs := pflag.NewFlagSet("Example", pflag.ContinueOnError) 30 | fs.BoolP(name, short, false, "verbose output") 31 | 32 | // len(short) must be == 1 33 | flag := fs.ShorthandLookup(short) 34 | 35 | fmt.Println(flag.Name) 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/export_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package pflag 6 | 7 | import ( 8 | "io/ioutil" 9 | "os" 10 | ) 11 | 12 | // Additional routines compiled into the package only during testing. 13 | 14 | // ResetForTesting clears all flag state and sets the usage function as directed. 15 | // After calling ResetForTesting, parse errors in flag handling will not 16 | // exit the program. 17 | func ResetForTesting(usage func()) { 18 | CommandLine = &FlagSet{ 19 | name: os.Args[0], 20 | errorHandling: ContinueOnError, 21 | output: ioutil.Discard, 22 | } 23 | Usage = usage 24 | } 25 | 26 | // GetCommandLine returns the default FlagSet. 27 | func GetCommandLine() *FlagSet { 28 | return CommandLine 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/golangflag_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package pflag 6 | 7 | import ( 8 | goflag "flag" 9 | "testing" 10 | ) 11 | 12 | func TestGoflags(t *testing.T) { 13 | goflag.String("stringFlag", "stringFlag", "stringFlag") 14 | goflag.Bool("boolFlag", false, "boolFlag") 15 | 16 | f := NewFlagSet("test", ContinueOnError) 17 | 18 | f.AddGoFlagSet(goflag.CommandLine) 19 | err := f.Parse([]string{"--stringFlag=bob", "--boolFlag"}) 20 | if err != nil { 21 | t.Fatal("expected no error; get", err) 22 | } 23 | 24 | getString, err := f.GetString("stringFlag") 25 | if err != nil { 26 | t.Fatal("expected no error; get", err) 27 | } 28 | if getString != "bob" { 29 | t.Fatalf("expected getString=bob but got getString=%s", getString) 30 | } 31 | 32 | getBool, err := f.GetBool("boolFlag") 33 | if err != nil { 34 | t.Fatal("expected no error; get", err) 35 | } 36 | if getBool != true { 37 | t.Fatalf("expected getBool=true but got getBool=%v", getBool) 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/verify/gofmt.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -o errexit 4 | set -o nounset 5 | set -o pipefail 6 | 7 | ROOT=$(dirname "${BASH_SOURCE}")/.. 8 | 9 | pushd "${ROOT}" > /dev/null 10 | 11 | GOFMT=${GOFMT:-"gofmt"} 12 | bad_files=$(find . -name '*.go' | xargs $GOFMT -s -l) 13 | if [[ -n "${bad_files}" ]]; then 14 | echo "!!! '$GOFMT' needs to be run on the following files: " 15 | echo "${bad_files}" 16 | exit 1 17 | fi 18 | 19 | # ex: ts=2 sw=2 et filetype=sh 20 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/verify/golint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ROOT=$(dirname "${BASH_SOURCE}")/.. 4 | GOLINT=${GOLINT:-"golint"} 5 | 6 | pushd "${ROOT}" > /dev/null 7 | bad_files=$($GOLINT -min_confidence=0.9 ./...) 8 | if [[ -n "${bad_files}" ]]; then 9 | echo "!!! '$GOLINT' problems: " 10 | echo "${bad_files}" 11 | exit 1 12 | fi 13 | popd > /dev/null 14 | 15 | # ex: ts=2 sw=2 et filetype=sh 16 | -------------------------------------------------------------------------------- /vendor/github.com/vaughan0/go-ini/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 Vaughan Newton 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 4 | documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 5 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 6 | persons to whom the Software is furnished to do so, subject to the following conditions: 7 | 8 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 9 | Software. 10 | 11 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 12 | WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 13 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 14 | OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 15 | -------------------------------------------------------------------------------- /vendor/github.com/vaughan0/go-ini/ini_linux_test.go: -------------------------------------------------------------------------------- 1 | package ini 2 | 3 | import ( 4 | "reflect" 5 | "syscall" 6 | "testing" 7 | ) 8 | 9 | func TestLoadFile(t *testing.T) { 10 | originalOpenFiles := numFilesOpen(t) 11 | 12 | file, err := LoadFile("test.ini") 13 | if err != nil { 14 | t.Fatal(err) 15 | } 16 | 17 | if originalOpenFiles != numFilesOpen(t) { 18 | t.Error("test.ini not closed") 19 | } 20 | 21 | if !reflect.DeepEqual(file, File{"default": {"stuff": "things"}}) { 22 | t.Error("file not read correctly") 23 | } 24 | } 25 | 26 | func numFilesOpen(t *testing.T) (num uint64) { 27 | var rlimit syscall.Rlimit 28 | err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &rlimit) 29 | if err != nil { 30 | t.Fatal(err) 31 | } 32 | maxFds := int(rlimit.Cur) 33 | 34 | var stat syscall.Stat_t 35 | for i := 0; i < maxFds; i++ { 36 | if syscall.Fstat(i, &stat) == nil { 37 | num++ 38 | } else { 39 | return 40 | } 41 | } 42 | return 43 | } 44 | -------------------------------------------------------------------------------- /vendor/github.com/vaughan0/go-ini/test.ini: -------------------------------------------------------------------------------- 1 | [default] 2 | stuff = things 3 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.4 5 | - 1.5 6 | - 1.6 7 | - tip 8 | 9 | go_import_path: gopkg.in/yaml.v2 10 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/example_embedded_test.go: -------------------------------------------------------------------------------- 1 | package yaml_test 2 | 3 | import ( 4 | "fmt" 5 | "log" 6 | 7 | "gopkg.in/yaml.v2" 8 | ) 9 | 10 | // An example showing how to unmarshal embedded 11 | // structs from YAML. 12 | 13 | type StructA struct { 14 | A string `yaml:"a"` 15 | } 16 | 17 | type StructB struct { 18 | // Embedded structs are not treated as embedded in YAML by default. To do that, 19 | // add the ",inline" annotation below 20 | StructA `yaml:",inline"` 21 | B string `yaml:"b"` 22 | } 23 | 24 | var data = ` 25 | a: a string from struct A 26 | b: a string from struct B 27 | ` 28 | 29 | func ExampleUnmarshal_embedded() { 30 | var b StructB 31 | 32 | err := yaml.Unmarshal([]byte(data), &b) 33 | if err != nil { 34 | log.Fatal("cannot unmarshal data: %v", err) 35 | } 36 | fmt.Println(b.A) 37 | fmt.Println(b.B) 38 | // Output: 39 | // a string from struct A 40 | // a string from struct B 41 | } 42 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/suite_test.go: -------------------------------------------------------------------------------- 1 | package yaml_test 2 | 3 | import ( 4 | . "gopkg.in/check.v1" 5 | "testing" 6 | ) 7 | 8 | func Test(t *testing.T) { TestingT(t) } 9 | 10 | type S struct{} 11 | 12 | var _ = Suite(&S{}) 13 | --------------------------------------------------------------------------------