You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by oc...@apache.org on 2020/10/26 17:50:31 UTC
[trafficcontrol] branch master updated: License go-acme/lego
dependencies (#5187)
This is an automated email from the ASF dual-hosted git repository.
ocket8888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new 6b3cfa0 License go-acme/lego dependencies (#5187)
6b3cfa0 is described below
commit 6b3cfa00155e038d6e4ce195fc9b138479b8fce8
Author: Zach Hoffman <zr...@apache.org>
AuthorDate: Mon Oct 26 11:49:58 2020 -0600
License go-acme/lego dependencies (#5187)
* Move go repositories to traffic_ops_golang vendor directory:
- contrib.go.opencensus.io
- google.golang.org
- go.opencensus.io
- gopkg.in
- go.uber.org
* Remove duplicate packages between github.com/go-acme/lego/vendor and the
rest of the repo
* Move github.com-hosted packages to traffic_ops_golang vendor directory
* Move github.com/dgrijalva/jwt-go to main vendored directory so
traffic_ops_auth can use it, too
* Remove duplicate vendored packages
* Remove unused dependency cloud.google.com/go/compute/metadata
* Do not track the golang standard library
---
LICENSE | 259 +-
.../vendor/github.com/dgrijalva/jwt-go/.gitignore | 4 -
.../vendor/github.com/dgrijalva/jwt-go/.travis.yml | 8 -
.../vendor/github.com/dgrijalva/jwt-go/LICENSE | 8 -
.../vendor/github.com/dgrijalva/jwt-go/README.md | 98 -
.../github.com/dgrijalva/jwt-go/VERSION_HISTORY.md | 81 -
.../github.com/dgrijalva/jwt-go/cmd/jwt/README.md | 13 -
.../github.com/dgrijalva/jwt-go/cmd/jwt/app.go | 246 -
.../vendor/github.com/dgrijalva/jwt-go/doc.go | 4 -
.../vendor/github.com/dgrijalva/jwt-go/ecdsa.go | 147 -
.../github.com/dgrijalva/jwt-go/ecdsa_test.go | 100 -
.../github.com/dgrijalva/jwt-go/ecdsa_utils.go | 67 -
.../vendor/github.com/dgrijalva/jwt-go/errors.go | 51 -
.../github.com/dgrijalva/jwt-go/example_test.go | 52 -
.../vendor/github.com/dgrijalva/jwt-go/hmac.go | 94 -
.../github.com/dgrijalva/jwt-go/hmac_test.go | 91 -
.../vendor/github.com/dgrijalva/jwt-go/none.go | 52 -
.../github.com/dgrijalva/jwt-go/none_test.go | 72 -
.../vendor/github.com/dgrijalva/jwt-go/parser.go | 140 -
.../github.com/dgrijalva/jwt-go/parser_test.go | 275 -
.../vendor/github.com/dgrijalva/jwt-go/rsa.go | 114 -
.../vendor/github.com/dgrijalva/jwt-go/rsa_pss.go | 126 -
.../github.com/dgrijalva/jwt-go/rsa_pss_test.go | 96 -
.../vendor/github.com/dgrijalva/jwt-go/rsa_test.go | 174 -
.../github.com/dgrijalva/jwt-go/rsa_utils.go | 69 -
.../github.com/dgrijalva/jwt-go/signing_method.go | 24 -
.../dgrijalva/jwt-go/test/ec256-private.pem | 5 -
.../dgrijalva/jwt-go/test/ec256-public.pem | 4 -
.../dgrijalva/jwt-go/test/ec384-private.pem | 6 -
.../dgrijalva/jwt-go/test/ec384-public.pem | 5 -
.../dgrijalva/jwt-go/test/ec512-private.pem | 7 -
.../dgrijalva/jwt-go/test/ec512-public.pem | 6 -
.../github.com/dgrijalva/jwt-go/test/hmacTestKey | 1 -
.../github.com/dgrijalva/jwt-go/test/sample_key | 27 -
.../dgrijalva/jwt-go/test/sample_key.pub | 9 -
.../vendor/github.com/dgrijalva/jwt-go/token.go | 126 -
.../vendor/github.com/lib/pq/.gitignore | 4 -
.../vendor/github.com/lib/pq/.travis.yml | 68 -
.../vendor/github.com/lib/pq/CONTRIBUTING.md | 29 -
.../vendor/github.com/lib/pq/LICENSE.md | 8 -
.../vendor/github.com/lib/pq/README.md | 105 -
.../vendor/github.com/lib/pq/bench_test.go | 435 -
.../vendor/github.com/lib/pq/buf.go | 91 -
.../vendor/github.com/lib/pq/certs/README | 3 -
.../vendor/github.com/lib/pq/certs/postgresql.crt | 69 -
.../vendor/github.com/lib/pq/certs/postgresql.key | 15 -
.../vendor/github.com/lib/pq/certs/root.crt | 24 -
.../vendor/github.com/lib/pq/certs/server.crt | 81 -
.../vendor/github.com/lib/pq/certs/server.key | 27 -
.../vendor/github.com/lib/pq/conn.go | 1847 -
.../vendor/github.com/lib/pq/conn_test.go | 1434 -
.../vendor/github.com/lib/pq/copy.go | 267 -
.../vendor/github.com/lib/pq/copy_test.go | 465 -
.../vendor/github.com/lib/pq/doc.go | 212 -
.../vendor/github.com/lib/pq/encode.go | 570 -
.../vendor/github.com/lib/pq/encode_test.go | 727 -
.../vendor/github.com/lib/pq/error.go | 508 -
.../vendor/github.com/lib/pq/hstore/hstore.go | 118 -
.../vendor/github.com/lib/pq/hstore/hstore_test.go | 148 -
.../vendor/github.com/lib/pq/listen_example/doc.go | 102 -
.../vendor/github.com/lib/pq/notify.go | 782 -
.../vendor/github.com/lib/pq/notify_test.go | 574 -
.../vendor/github.com/lib/pq/oid/doc.go | 6 -
.../vendor/github.com/lib/pq/oid/gen.go | 74 -
.../vendor/github.com/lib/pq/oid/types.go | 161 -
.../vendor/github.com/lib/pq/ssl_test.go | 226 -
.../vendor/github.com/lib/pq/url.go | 76 -
.../vendor/github.com/lib/pq/url_test.go | 66 -
.../vendor/github.com/lib/pq/user_posix.go | 24 -
.../vendor/github.com/lib/pq/user_windows.go | 27 -
tools/golang/Dockerfile | 4 +-
tools/golang/unit-tests.sh | 2 +-
traffic_ops/build/build_rpm.sh | 9 +-
.../exporter/ocagent}/LICENSE | 0
.../exporter/ocagent/common.go | 0
.../exporter/ocagent/connection.go | 0
.../exporter/ocagent/nodeinfo.go | 0
.../exporter/ocagent/ocagent.go | 0
.../exporter/ocagent/options.go | 0
.../exporter/ocagent/transform_spans.go | 0
.../exporter/ocagent/transform_stats_to_metrics.go | 0
.../exporter/ocagent/version.go | 0
.../github.com => }/Azure/azure-sdk-for-go/LICENSE | 0
.../github.com => }/Azure/azure-sdk-for-go/NOTICE | 0
.../services/dns/mgmt/2017-09-01/dns/client.go | 0
.../services/dns/mgmt/2017-09-01/dns/models.go | 0
.../services/dns/mgmt/2017-09-01/dns/recordsets.go | 0
.../services/dns/mgmt/2017-09-01/dns/version.go | 0
.../services/dns/mgmt/2017-09-01/dns/zones.go | 0
.../Azure/azure-sdk-for-go/version/version.go | 0
.../github.com => }/Azure/go-autorest/LICENSE | 0
.../Azure/go-autorest/autorest/adal/config.go | 0
.../Azure/go-autorest/autorest/adal/devicetoken.go | 0
.../Azure/go-autorest/autorest/adal/persist.go | 0
.../Azure/go-autorest/autorest/adal/sender.go | 0
.../Azure/go-autorest/autorest/adal/token.go | 0
.../Azure/go-autorest/autorest/adal/version.go | 0
.../Azure/go-autorest/autorest/authorization.go | 0
.../Azure/go-autorest/autorest/autorest.go | 0
.../Azure/go-autorest/autorest/azure/async.go | 0
.../Azure/go-autorest/autorest/azure/auth/auth.go | 0
.../Azure/go-autorest/autorest/azure/azure.go | 0
.../go-autorest/autorest/azure/cli/profile.go | 0
.../Azure/go-autorest/autorest/azure/cli/token.go | 0
.../go-autorest/autorest/azure/environments.go | 0
.../autorest/azure/metadata_environment.go | 0
.../Azure/go-autorest/autorest/azure/rp.go | 0
.../Azure/go-autorest/autorest/client.go | 0
.../Azure/go-autorest/autorest/date/date.go | 0
.../Azure/go-autorest/autorest/date/time.go | 0
.../Azure/go-autorest/autorest/date/timerfc1123.go | 0
.../Azure/go-autorest/autorest/date/unixtime.go | 0
.../Azure/go-autorest/autorest/date/utility.go | 0
.../Azure/go-autorest/autorest/error.go | 0
.../Azure/go-autorest/autorest/preparer.go | 0
.../Azure/go-autorest/autorest/responder.go | 0
.../Azure/go-autorest/autorest/retriablerequest.go | 0
.../go-autorest/autorest/retriablerequest_1.7.go | 0
.../go-autorest/autorest/retriablerequest_1.8.go | 0
.../Azure/go-autorest/autorest/sender.go | 0
.../Azure/go-autorest/autorest/to/convert.go | 0
.../Azure/go-autorest/autorest/utility.go | 0
.../Azure/go-autorest/autorest/validation/error.go | 0
.../go-autorest/autorest/validation/validation.go | 0
.../Azure/go-autorest/autorest/version.go | 0
.../Azure/go-autorest/logger/logger.go | 0
.../Azure/go-autorest/tracing/tracing.go | 0
.../toml/cmd/tomlv => BurntSushi/toml}/COPYING | 0
.../COPYING => BurntSushi/toml/LICENSE} | 0
.../BurntSushi/toml/cmd/toml-test-decoder/COPYING | 0
.../toml/cmd/toml-test-encoder}/COPYING | 0
.../BurntSushi/toml/cmd/tomlv/COPYING | 0
.../github.com => }/BurntSushi/toml/decode.go | 0
.../github.com => }/BurntSushi/toml/decode_meta.go | 0
.../vendor/github.com => }/BurntSushi/toml/doc.go | 0
.../github.com => }/BurntSushi/toml/encode.go | 0
.../BurntSushi/toml/encoding_types.go | 0
.../BurntSushi/toml/encoding_types_1.1.go | 0
.../vendor/github.com => }/BurntSushi/toml/lex.go | 0
.../github.com => }/BurntSushi/toml/parse.go | 0
.../github.com => }/BurntSushi/toml/type_check.go | 0
.../github.com => }/BurntSushi/toml/type_fields.go | 0
.../github.com => }/OpenDNS/vegadns2client/LICENSE | 0
.../OpenDNS/vegadns2client/client.go | 0
.../OpenDNS/vegadns2client/domains.go | 0
.../github.com => }/OpenDNS/vegadns2client/main.go | 0
.../OpenDNS/vegadns2client/records.go | 0
.../OpenDNS/vegadns2client/tokens.go | 0
.../AkamaiOPEN-edgegrid-golang}/LICENSE | 0
.../AkamaiOPEN-edgegrid-golang/client-v1/api.go | 0
.../AkamaiOPEN-edgegrid-golang/client-v1/client.go | 0
.../AkamaiOPEN-edgegrid-golang/client-v1/errors.go | 0
.../configdns-v1/errors.go | 0
.../configdns-v1/record.go | 0
.../configdns-v1/service.go | 0
.../configdns-v1/zone.go | 0
.../AkamaiOPEN-edgegrid-golang/edgegrid/config.go | 0
.../AkamaiOPEN-edgegrid-golang/edgegrid/errors.go | 0
.../AkamaiOPEN-edgegrid-golang/edgegrid/signer.go | 0
.../jsonhooks-v1/errors.go | 0
.../jsonhooks-v1/jsonhooks.go | 0
.../alibaba-cloud-sdk-go}/LICENSE | 0
.../alibaba-cloud-sdk-go/sdk/auth/credential.go | 0
.../sdk/auth/credentials/access_key_credential.go | 0
.../auth/credentials/bearer_token_credential.go | 0
.../sdk/auth/credentials/ecs_ram_role.go | 0
.../sdk/auth/credentials/provider/env.go | 0
.../credentials/provider/instance_credentials.go | 0
.../credentials/provider/profile_credentials.go | 0
.../sdk/auth/credentials/provider/provider.go | 0
.../auth/credentials/provider/provider_chain.go | 0
.../auth/credentials/rsa_key_pair_credential.go | 0
.../sdk/auth/credentials/sts_credential.go | 0
.../auth/credentials/sts_role_arn_credential.go | 0
.../sdk/auth/roa_signature_composer.go | 0
.../sdk/auth/rpc_signature_composer.go | 0
.../aliyun/alibaba-cloud-sdk-go/sdk/auth/signer.go | 0
.../sdk/auth/signers/algorithms.go | 0
.../sdk/auth/signers/credential_updater.go | 0
.../sdk/auth/signers/session_credential.go | 0
.../sdk/auth/signers/signer_access_key.go | 0
.../sdk/auth/signers/signer_bearer_token.go | 0
.../sdk/auth/signers/signer_ecs_ram_role.go | 0
.../sdk/auth/signers/signer_key_pair.go | 0
.../sdk/auth/signers/signer_ram_role_arn.go | 0
.../sdk/auth/signers/signer_sts_token.go | 0
.../sdk/auth/signers/signer_v2.go | 0
.../aliyun/alibaba-cloud-sdk-go/sdk/client.go | 0
.../aliyun/alibaba-cloud-sdk-go/sdk/config.go | 0
.../sdk/endpoints/endpoints_config.go | 0
.../sdk/endpoints/local_global_resolver.go | 0
.../sdk/endpoints/local_regional_resolver.go | 0
.../sdk/endpoints/location_resolver.go | 0
.../sdk/endpoints/mapping_resolver.go | 0
.../alibaba-cloud-sdk-go/sdk/endpoints/resolver.go | 0
.../sdk/endpoints/simple_host_resolver.go | 0
.../sdk/errors/client_error.go | 0
.../alibaba-cloud-sdk-go/sdk/errors/error.go | 0
.../sdk/errors/server_error.go | 0
.../sdk/errors/signature_does_not_match_wrapper.go | 0
.../aliyun/alibaba-cloud-sdk-go/sdk/logger.go | 0
.../sdk/requests/acs_request.go | 0
.../sdk/requests/common_request.go | 0
.../sdk/requests/roa_request.go | 0
.../sdk/requests/rpc_request.go | 0
.../alibaba-cloud-sdk-go/sdk/requests/types.go | 0
.../sdk/responses/json_parser.go | 0
.../alibaba-cloud-sdk-go/sdk/responses/response.go | 0
.../aliyun/alibaba-cloud-sdk-go/sdk/utils/debug.go | 0
.../aliyun/alibaba-cloud-sdk-go/sdk/utils/utils.go | 0
.../services/alidns/add_domain.go | 0
.../services/alidns/add_domain_group.go | 0
.../services/alidns/add_domain_record.go | 0
.../services/alidns/add_gtm_access_strategy.go | 0
.../services/alidns/add_gtm_address_pool.go | 0
.../services/alidns/add_gtm_monitor.go | 0
.../services/alidns/change_domain_group.go | 0
.../alidns/change_domain_of_dns_product.go | 0
.../services/alidns/check_domain_record.go | 0
.../alibaba-cloud-sdk-go/services/alidns/client.go | 0
.../services/alidns/create_instance.go | 0
.../services/alidns/delete_domain.go | 0
.../services/alidns/delete_domain_group.go | 0
.../services/alidns/delete_domain_record.go | 0
.../services/alidns/delete_gtm_access_strategy.go | 0
.../services/alidns/delete_gtm_address_pool.go | 0
.../services/alidns/delete_sub_domain_records.go | 0
.../services/alidns/describe_batch_result_count.go | 0
.../alidns/describe_batch_result_detail.go | 0
.../alidns/describe_dns_product_instance.go | 0
.../alidns/describe_dns_product_instances.go | 0
.../services/alidns/describe_dnsslb_sub_domains.go | 0
.../services/alidns/describe_domain_groups.go | 0
.../services/alidns/describe_domain_info.go | 0
.../services/alidns/describe_domain_logs.go | 0
.../services/alidns/describe_domain_ns.go | 0
.../services/alidns/describe_domain_record_info.go | 0
.../services/alidns/describe_domain_records.go | 0
.../services/alidns/describe_domains.go | 0
.../alidns/describe_gtm_access_strategies.go | 0
.../alidns/describe_gtm_access_strategy.go | 0
...escribe_gtm_access_strategy_available_config.go | 0
.../alidns/describe_gtm_available_alert_group.go | 0
.../services/alidns/describe_gtm_instance.go | 0
.../alidns/describe_gtm_instance_address_pool.go | 0
.../alidns/describe_gtm_instance_address_pools.go | 0
.../alidns/describe_gtm_instance_status.go | 0
.../services/alidns/describe_gtm_instances.go | 0
.../services/alidns/describe_gtm_logs.go | 0
.../describe_gtm_monitor_available_config.go | 0
.../services/alidns/describe_gtm_monitor_config.go | 0
.../services/alidns/describe_record_logs.go | 0
.../services/alidns/describe_sub_domain_records.go | 0
.../services/alidns/describe_support_lines.go | 0
.../services/alidns/get_main_domain_name.go | 0
.../services/alidns/modify_hichina_domain_dns.go | 0
.../services/alidns/operate_batch_domain.go | 0
.../services/alidns/query_create_instance_price.go | 0
.../services/alidns/set_dnsslb_status.go | 0
.../services/alidns/set_domain_record_status.go | 0
.../services/alidns/set_gtm_access_mode.go | 0
.../services/alidns/set_gtm_monitor_status.go | 0
.../services/alidns/struct_addr.go | 0
.../services/alidns/struct_addr_pool.go | 0
...escribe_gtm_access_strategy_available_config.go | 0
...pools_in_describe_gtm_instance_address_pools.go | 0
.../services/alidns/struct_addrs.go | 0
.../services/alidns/struct_available_ttls.go | 0
.../services/alidns/struct_batch_result_detail.go | 0
.../services/alidns/struct_batch_result_details.go | 0
.../services/alidns/struct_dns_product.go | 0
.../services/alidns/struct_dns_products.go | 0
.../alidns/struct_dns_servers_in_add_domain.go | 0
...dns_servers_in_describe_dns_product_instance.go | 0
.../struct_dns_servers_in_describe_domain_info.go | 0
.../struct_dns_servers_in_describe_domain_ns.go | 0
.../struct_dns_servers_in_describe_domains.go | 0
.../services/alidns/struct_domain.go | 0
.../services/alidns/struct_domain_group.go | 0
.../services/alidns/struct_domain_groups.go | 0
.../services/alidns/struct_domain_log.go | 0
.../services/alidns/struct_domain_logs.go | 0
...ct_domain_records_in_describe_domain_records.go | 0
...omain_records_in_describe_sub_domain_records.go | 0
.../services/alidns/struct_domains.go | 0
.../services/alidns/struct_expect_dns_servers.go | 0
.../services/alidns/struct_gtm_instance.go | 0
.../services/alidns/struct_gtm_instances.go | 0
.../services/alidns/struct_isp_city_node.go | 0
...des_in_describe_gtm_monitor_available_config.go | 0
...sp_city_nodes_in_describe_gtm_monitor_config.go | 0
.../services/alidns/struct_line.go | 0
...ruct_lines_in_describe_gtm_access_strategies.go | 0
...struct_lines_in_describe_gtm_access_strategy.go | 0
...escribe_gtm_access_strategy_available_config.go | 0
.../services/alidns/struct_log.go | 0
.../services/alidns/struct_logs.go | 0
.../services/alidns/struct_new_dns_servers.go | 0
.../services/alidns/struct_original_dns_servers.go | 0
.../services/alidns/struct_record.go | 0
.../services/alidns/struct_record_line.go | 0
.../struct_record_lines_in_describe_domain_info.go | 0
...truct_record_lines_in_describe_support_lines.go | 0
.../services/alidns/struct_record_log.go | 0
.../services/alidns/struct_record_logs.go | 0
.../services/alidns/struct_rule.go | 0
.../services/alidns/struct_rules.go | 0
.../services/alidns/struct_slb_sub_domain.go | 0
.../services/alidns/struct_slb_sub_domains.go | 0
.../services/alidns/struct_strategies.go | 0
.../services/alidns/struct_strategy.go | 0
.../services/alidns/update_dnsslb_weight.go | 0
.../services/alidns/update_domain_group.go | 0
.../services/alidns/update_domain_record.go | 0
.../services/alidns/update_gtm_access_strategy.go | 0
.../services/alidns/update_gtm_address_pool.go | 0
.../alidns/update_gtm_instance_global_config.go | 0
.../services/alidns/update_gtm_monitor.go | 0
.../github.com => }/aws/aws-sdk-go/LICENSE.txt | 0
.../github.com => }/aws/aws-sdk-go/NOTICE.txt | 0
.../aws/aws-sdk-go/aws/awserr/error.go | 0
.../aws/aws-sdk-go/aws/awserr/types.go | 0
.../aws/aws-sdk-go/aws/awsutil/copy.go | 0
.../aws/aws-sdk-go/aws/awsutil/equal.go | 0
.../aws/aws-sdk-go/aws/awsutil/path_value.go | 0
.../aws/aws-sdk-go/aws/awsutil/prettify.go | 0
.../aws/aws-sdk-go/aws/awsutil/string_value.go | 0
.../aws/aws-sdk-go/aws/client/client.go | 0
.../aws/aws-sdk-go/aws/client/default_retryer.go | 0
.../aws/aws-sdk-go/aws/client/logger.go | 0
.../aws-sdk-go/aws/client/metadata/client_info.go | 0
.../github.com => }/aws/aws-sdk-go/aws/config.go | 0
.../aws/aws-sdk-go/aws/context_1_5.go | 0
.../aws/aws-sdk-go/aws/context_1_9.go | 0
.../aws/aws-sdk-go/aws/context_background_1_5.go | 0
.../aws/aws-sdk-go/aws/context_background_1_7.go | 0
.../aws/aws-sdk-go/aws/context_sleep.go | 0
.../aws/aws-sdk-go/aws/convert_types.go | 0
.../aws/aws-sdk-go/aws/corehandlers/handlers.go | 0
.../aws-sdk-go/aws/corehandlers/param_validator.go | 0
.../aws/aws-sdk-go/aws/corehandlers/user_agent.go | 0
.../aws-sdk-go/aws/credentials/chain_provider.go | 0
.../aws/aws-sdk-go/aws/credentials/credentials.go | 0
.../credentials/ec2rolecreds/ec2_role_provider.go | 0
.../aws/credentials/endpointcreds/provider.go | 0
.../aws/aws-sdk-go/aws/credentials/env_provider.go | 0
.../aws/credentials/processcreds/provider.go | 0
.../aws/credentials/shared_credentials_provider.go | 0
.../aws-sdk-go/aws/credentials/static_provider.go | 0
.../credentials/stscreds/assume_role_provider.go | 0
.../github.com => }/aws/aws-sdk-go/aws/csm/doc.go | 0
.../aws/aws-sdk-go/aws/csm/enable.go | 0
.../aws/aws-sdk-go/aws/csm/metric.go | 0
.../aws/aws-sdk-go/aws/csm/metric_chan.go | 0
.../aws/aws-sdk-go/aws/csm/metric_exception.go | 0
.../aws/aws-sdk-go/aws/csm/reporter.go | 0
.../aws/aws-sdk-go/aws/defaults/defaults.go | 0
.../aws/aws-sdk-go/aws/defaults/shared_config.go | 0
.../github.com => }/aws/aws-sdk-go/aws/doc.go | 0
.../aws/aws-sdk-go/aws/ec2metadata/api.go | 0
.../aws/aws-sdk-go/aws/ec2metadata/service.go | 0
.../aws/aws-sdk-go/aws/endpoints/decode.go | 0
.../aws/aws-sdk-go/aws/endpoints/defaults.go | 0
.../aws-sdk-go/aws/endpoints/dep_service_ids.go | 0
.../aws/aws-sdk-go/aws/endpoints/doc.go | 0
.../aws/aws-sdk-go/aws/endpoints/endpoints.go | 0
.../aws/aws-sdk-go/aws/endpoints/v3model.go | 0
.../aws-sdk-go/aws/endpoints/v3model_codegen.go | 0
.../github.com => }/aws/aws-sdk-go/aws/errors.go | 0
.../aws/aws-sdk-go/aws/jsonvalue.go | 0
.../github.com => }/aws/aws-sdk-go/aws/logger.go | 0
.../aws/request/connection_reset_error.go | 0
.../aws/aws-sdk-go/aws/request/handlers.go | 0
.../aws/aws-sdk-go/aws/request/http_request.go | 0
.../aws/aws-sdk-go/aws/request/offset_reader.go | 0
.../aws/aws-sdk-go/aws/request/request.go | 0
.../aws/aws-sdk-go/aws/request/request_1_7.go | 0
.../aws/aws-sdk-go/aws/request/request_1_8.go | 0
.../aws/aws-sdk-go/aws/request/request_context.go | 0
.../aws-sdk-go/aws/request/request_context_1_6.go | 0
.../aws-sdk-go/aws/request/request_pagination.go | 0
.../aws/aws-sdk-go/aws/request/retryer.go | 0
.../aws-sdk-go/aws/request/timeout_read_closer.go | 0
.../aws/aws-sdk-go/aws/request/validation.go | 0
.../aws/aws-sdk-go/aws/request/waiter.go | 0
.../aws-sdk-go/aws/session/cabundle_transport.go | 0
.../aws/session/cabundle_transport_1_5.go | 0
.../aws/session/cabundle_transport_1_6.go | 0
.../aws/aws-sdk-go/aws/session/credentials.go | 0
.../aws/aws-sdk-go/aws/session/doc.go | 0
.../aws/aws-sdk-go/aws/session/env_config.go | 0
.../aws/aws-sdk-go/aws/session/session.go | 0
.../aws/aws-sdk-go/aws/session/shared_config.go | 0
.../aws/aws-sdk-go/aws/signer/v4/header_rules.go | 0
.../aws/aws-sdk-go/aws/signer/v4/options.go | 0
.../aws/aws-sdk-go/aws/signer/v4/uri_path.go | 0
.../aws/aws-sdk-go/aws/signer/v4/v4.go | 0
.../github.com => }/aws/aws-sdk-go/aws/types.go | 0
.../github.com => }/aws/aws-sdk-go/aws/url.go | 0
.../github.com => }/aws/aws-sdk-go/aws/url_1_7.go | 0
.../github.com => }/aws/aws-sdk-go/aws/version.go | 0
.../aws/aws-sdk-go/internal/ini/ast.go | 0
.../aws/aws-sdk-go/internal/ini/comma_token.go | 0
.../aws/aws-sdk-go/internal/ini/comment_token.go | 0
.../aws/aws-sdk-go/internal/ini/doc.go | 0
.../aws/aws-sdk-go/internal/ini/empty_token.go | 0
.../aws/aws-sdk-go/internal/ini/expression.go | 0
.../aws/aws-sdk-go/internal/ini/fuzz.go | 0
.../aws/aws-sdk-go/internal/ini/ini.go | 0
.../aws/aws-sdk-go/internal/ini/ini_lexer.go | 0
.../aws/aws-sdk-go/internal/ini/ini_parser.go | 0
.../aws/aws-sdk-go/internal/ini/literal_tokens.go | 0
.../aws/aws-sdk-go/internal/ini/newline_token.go | 0
.../aws/aws-sdk-go/internal/ini/number_helper.go | 0
.../aws/aws-sdk-go/internal/ini/op_tokens.go | 0
.../aws/aws-sdk-go/internal/ini/parse_error.go | 0
.../aws/aws-sdk-go/internal/ini/parse_stack.go | 0
.../aws/aws-sdk-go/internal/ini/sep_tokens.go | 0
.../aws/aws-sdk-go/internal/ini/skipper.go | 0
.../aws/aws-sdk-go/internal/ini/statement.go | 0
.../aws/aws-sdk-go/internal/ini/value_util.go | 0
.../aws/aws-sdk-go/internal/ini/visitor.go | 0
.../aws/aws-sdk-go/internal/ini/walker.go | 0
.../aws/aws-sdk-go/internal/ini/ws_token.go | 0
.../aws/aws-sdk-go/internal/sdkio/io_go1.6.go | 0
.../aws/aws-sdk-go/internal/sdkio/io_go1.7.go | 0
.../aws-sdk-go/internal/sdkrand/locked_source.go | 0
.../aws/aws-sdk-go/internal/sdkuri/path.go | 0
.../internal/shareddefaults/ecs_container.go | 0
.../internal/shareddefaults/shared_config.go | 0
.../aws/aws-sdk-go/private/protocol/host.go | 0
.../aws/aws-sdk-go/private/protocol/host_prefix.go | 0
.../aws/aws-sdk-go/private/protocol/idempotency.go | 0
.../private/protocol/json/jsonutil/build.go | 0
.../private/protocol/json/jsonutil/unmarshal.go | 0
.../aws-sdk-go/private/protocol/jsonrpc/jsonrpc.go | 0
.../aws/aws-sdk-go/private/protocol/jsonvalue.go | 0
.../aws/aws-sdk-go/private/protocol/payload.go | 0
.../aws/aws-sdk-go/private/protocol/query/build.go | 0
.../private/protocol/query/queryutil/queryutil.go | 0
.../aws-sdk-go/private/protocol/query/unmarshal.go | 0
.../private/protocol/query/unmarshal_error.go | 0
.../aws/aws-sdk-go/private/protocol/rest/build.go | 0
.../aws-sdk-go/private/protocol/rest/payload.go | 0
.../aws-sdk-go/private/protocol/rest/unmarshal.go | 0
.../aws-sdk-go/private/protocol/restxml/restxml.go | 0
.../aws/aws-sdk-go/private/protocol/timestamp.go | 0
.../aws/aws-sdk-go/private/protocol/unmarshal.go | 0
.../private/protocol/xml/xmlutil/build.go | 0
.../private/protocol/xml/xmlutil/unmarshal.go | 0
.../private/protocol/xml/xmlutil/xml_to_struct.go | 0
.../aws/aws-sdk-go/service/lightsail/api.go | 0
.../aws/aws-sdk-go/service/lightsail/doc.go | 0
.../aws/aws-sdk-go/service/lightsail/errors.go | 0
.../aws/aws-sdk-go/service/lightsail/service.go | 0
.../aws/aws-sdk-go/service/route53/api.go | 0
.../aws-sdk-go/service/route53/customizations.go | 0
.../aws/aws-sdk-go/service/route53/doc.go | 0
.../aws/aws-sdk-go/service/route53/errors.go | 0
.../aws/aws-sdk-go/service/route53/service.go | 0
.../aws-sdk-go/service/route53/unmarshal_error.go | 0
.../aws/aws-sdk-go/service/route53/waiters.go | 0
.../aws/aws-sdk-go/service/sts/api.go | 0
.../aws/aws-sdk-go/service/sts/doc.go | 0
.../aws/aws-sdk-go/service/sts/errors.go | 0
.../aws/aws-sdk-go/service/sts/service.go | 0
.../github.com => }/cenkalti/backoff/LICENSE | 0
.../github.com => }/cenkalti/backoff/backoff.go | 0
.../github.com => }/cenkalti/backoff/context.go | 0
.../cenkalti/backoff/exponential.go | 0
.../github.com => }/cenkalti/backoff/retry.go | 0
.../github.com => }/cenkalti/backoff/ticker.go | 0
.../github.com => }/cenkalti/backoff/tries.go | 0
.../opencensus-proto/AUTHORS | 0
.../opencensus-proto}/LICENSE | 0
.../gen-go/agent/common/v1/common.pb.go | 0
.../gen-go/agent/metrics/v1/metrics_service.pb.go | 0
.../gen-go/agent/trace/v1/trace_service.pb.go | 0
.../gen-go/agent/trace/v1/trace_service.pb.gw.go | 0
.../gen-go/metrics/v1/metrics.pb.go | 0
.../gen-go/resource/v1/resource.pb.go | 0
.../opencensus-proto/gen-go/trace/v1/trace.pb.go | 0
.../gen-go/trace/v1/trace_config.pb.go | 0
.../cloudflare/cloudflare-go/LICENSE | 0
.../cloudflare/cloudflare-go/access_application.go | 0
.../cloudflare/cloudflare-go/access_policy.go | 0
.../cloudflare/cloudflare-go/account_members.go | 0
.../cloudflare/cloudflare-go/account_roles.go | 0
.../cloudflare/cloudflare-go/accounts.go | 0
.../cloudflare/cloudflare-go/argo.go | 0
.../cloudflare/cloudflare-go/auditlogs.go | 0
.../cloudflare/cloudflare-go/cloudflare.go | 0
.../cloudflare/cloudflare-go/custom_hostname.go | 0
.../cloudflare/cloudflare-go/custom_pages.go | 0
.../cloudflare/cloudflare-go/dns.go | 0
.../cloudflare/cloudflare-go/duration.go | 0
.../cloudflare/cloudflare-go/errors.go | 0
.../cloudflare/cloudflare-go/filter.go | 0
.../cloudflare/cloudflare-go/firewall.go | 0
.../cloudflare/cloudflare-go/firewall_rules.go | 0
.../cloudflare/cloudflare-go/ips.go | 0
.../cloudflare/cloudflare-go/keyless.go | 0
.../cloudflare/cloudflare-go/load_balancing.go | 0
.../cloudflare/cloudflare-go/lockdown.go | 0
.../cloudflare/cloudflare-go/logpush.go | 0
.../cloudflare/cloudflare-go/options.go | 0
.../cloudflare/cloudflare-go/organizations.go | 0
.../cloudflare/cloudflare-go/origin_ca.go | 0
.../cloudflare/cloudflare-go/page_rules.go | 0
.../cloudflare/cloudflare-go/railgun.go | 0
.../cloudflare/cloudflare-go/rate_limiting.go | 0
.../cloudflare/cloudflare-go/registrar.go | 0
.../cloudflare/cloudflare-go/spectrum.go | 0
.../cloudflare/cloudflare-go/ssl.go | 0
.../cloudflare/cloudflare-go/universal_ssl.go | 0
.../cloudflare/cloudflare-go/user.go | 0
.../cloudflare/cloudflare-go/user_agent.go | 0
.../cloudflare/cloudflare-go/virtualdns.go | 0
.../cloudflare/cloudflare-go/waf.go | 0
.../cloudflare/cloudflare-go/workers.go | 0
.../cloudflare/cloudflare-go/workers_kv.go | 0
.../cloudflare/cloudflare-go/zone.go | 0
.../vendor/github.com => }/cpu/goacmedns/LICENSE | 0
.../github.com => }/cpu/goacmedns/account.go | 0
.../vendor/github.com => }/cpu/goacmedns/client.go | 0
.../github.com => }/cpu/goacmedns/storage.go | 0
.../vendor/github.com => }/davecgh/go-spew/LICENSE | 0
.../github.com => }/davecgh/go-spew/spew/bypass.go | 0
.../davecgh/go-spew/spew/bypasssafe.go | 0
.../github.com => }/davecgh/go-spew/spew/common.go | 0
.../github.com => }/davecgh/go-spew/spew/config.go | 0
.../github.com => }/davecgh/go-spew/spew/doc.go | 0
.../github.com => }/davecgh/go-spew/spew/dump.go | 0
.../github.com => }/davecgh/go-spew/spew/format.go | 0
.../github.com => }/davecgh/go-spew/spew/spew.go | 0
.../github.com => }/decker502/dnspod-go/LICENSE | 0
.../github.com => }/decker502/dnspod-go/dnspod.go | 0
.../decker502/dnspod-go/domain_records.go | 0
.../github.com => }/decker502/dnspod-go/domains.go | 0
.../vendor/github.com/dgrijalva/jwt-go/LICENSE | 8 -
.../vendor/github.com/dgrijalva/jwt-go/claims.go | 134 -
.../vendor/github.com/dgrijalva/jwt-go/doc.go | 4 -
.../vendor/github.com/dgrijalva/jwt-go/ecdsa.go | 148 -
.../github.com/dgrijalva/jwt-go/ecdsa_utils.go | 67 -
.../vendor/github.com/dgrijalva/jwt-go/errors.go | 59 -
.../vendor/github.com/dgrijalva/jwt-go/hmac.go | 95 -
.../github.com/dgrijalva/jwt-go/map_claims.go | 94 -
.../vendor/github.com/dgrijalva/jwt-go/none.go | 52 -
.../vendor/github.com/dgrijalva/jwt-go/parser.go | 148 -
.../vendor/github.com/dgrijalva/jwt-go/rsa.go | 101 -
.../vendor/github.com/dgrijalva/jwt-go/rsa_pss.go | 126 -
.../github.com/dgrijalva/jwt-go/rsa_utils.go | 101 -
.../github.com/dgrijalva/jwt-go/signing_method.go | 35 -
.../vendor/github.com/dgrijalva/jwt-go/token.go | 108 -
.../utfbom}/LICENSE | 0
.../github.com => }/dimchansky/utfbom/utfbom.go | 0
.../dnsimple/dnsimple-go/LICENSE.txt | 0
.../dnsimple/dnsimple-go/dnsimple/accounts.go | 0
.../dnsimple-go/dnsimple/authentication.go | 0
.../dnsimple/dnsimple-go/dnsimple/certificates.go | 0
.../dnsimple/dnsimple-go/dnsimple/contacts.go | 0
.../dnsimple/dnsimple-go/dnsimple/dnsimple.go | 0
.../dnsimple/dnsimple-go/dnsimple/domains.go | 0
.../dnsimple-go/dnsimple/domains_collaborators.go | 0
.../dnsimple/domains_delegation_signer_records.go | 0
.../dnsimple-go/dnsimple/domains_dnssec.go | 0
.../dnsimple-go/dnsimple/domains_email_forwards.go | 0
.../dnsimple-go/dnsimple/domains_pushes.go | 0
.../dnsimple/dnsimple-go/dnsimple/identity.go | 0
.../dnsimple/dnsimple-go/dnsimple/oauth.go | 0
.../dnsimple/dnsimple-go/dnsimple/registrar.go | 0
.../dnsimple-go/dnsimple/registrar_auto_renewal.go | 0
.../dnsimple-go/dnsimple/registrar_delegation.go | 0
.../dnsimple/registrar_whois_privacy.go | 0
.../dnsimple/dnsimple-go/dnsimple/services.go | 0
.../dnsimple-go/dnsimple/services_domains.go | 0
.../dnsimple/dnsimple-go/dnsimple/templates.go | 0
.../dnsimple-go/dnsimple/templates_domains.go | 0
.../dnsimple-go/dnsimple/templates_records.go | 0
.../dnsimple/dnsimple-go/dnsimple/tlds.go | 0
.../dnsimple/dnsimple-go/dnsimple/users.go | 0
.../dnsimple-go/dnsimple/vanity_name_server.go | 0
.../dnsimple/dnsimple-go/dnsimple/webhooks.go | 0
.../dnsimple-go/dnsimple/zone_distributions.go | 0
.../dnsimple/dnsimple-go/dnsimple/zones.go | 0
.../dnsimple/dnsimple-go/dnsimple/zones_records.go | 0
.../github.com => }/exoscale/egoscale/AUTHORS | 0
.../github.com => }/exoscale/egoscale/LICENSE | 0
.../github.com => }/exoscale/egoscale/accounts.go | 0
.../exoscale/egoscale/accounts_response.go | 0
.../github.com => }/exoscale/egoscale/addresses.go | 0
.../exoscale/egoscale/affinity_groups.go | 0
.../exoscale/egoscale/affinitygroups_response.go | 0
.../github.com => }/exoscale/egoscale/apis.go | 0
.../exoscale/egoscale/async_jobs.go | 0
.../exoscale/egoscale/asyncjobs_response.go | 0
.../github.com => }/exoscale/egoscale/cidr.go | 0
.../github.com => }/exoscale/egoscale/client.go | 0
.../exoscale/egoscale/cserrorcode_string.go | 0
.../github.com => }/exoscale/egoscale/dns.go | 0
.../github.com => }/exoscale/egoscale/doc.go | 0
.../exoscale/egoscale/errorcode_string.go | 0
.../github.com => }/exoscale/egoscale/events.go | 0
.../exoscale/egoscale/events_response.go | 0
.../exoscale/egoscale/eventtypes_response.go | 0
.../exoscale/egoscale/instance_groups.go | 0
.../exoscale/egoscale/instancegroups_response.go | 0
.../github.com => }/exoscale/egoscale/isos.go | 0
.../exoscale/egoscale/isos_response.go | 0
.../exoscale/egoscale/jobstatustype_string.go | 0
.../exoscale/egoscale/macaddress.go | 0
.../exoscale/egoscale/network_offerings.go | 0
.../exoscale/egoscale/networkofferings_response.go | 0
.../github.com => }/exoscale/egoscale/networks.go | 0
.../exoscale/egoscale/networks_response.go | 0
.../github.com => }/exoscale/egoscale/nics.go | 0
.../exoscale/egoscale/nics_response.go | 0
.../exoscale/egoscale/oscategories_response.go | 0
.../egoscale/publicipaddresses_response.go | 0
.../exoscale/egoscale/record_string.go | 0
.../github.com => }/exoscale/egoscale/request.go | 0
.../exoscale/egoscale/request_type.go | 0
.../exoscale/egoscale/resource_limits.go | 0
.../exoscale/egoscale/resource_metadata.go | 0
.../exoscale/egoscale/resourcedetails_response.go | 0
.../exoscale/egoscale/resourcelimits_response.go | 0
.../exoscale/egoscale/reversedns.go | 0
.../github.com => }/exoscale/egoscale/runstatus.go | 0
.../exoscale/egoscale/runstatus_event.go | 0
.../exoscale/egoscale/runstatus_incident.go | 0
.../exoscale/egoscale/runstatus_maintenance.go | 0
.../exoscale/egoscale/runstatus_page.go | 0
.../exoscale/egoscale/runstatus_service.go | 0
.../exoscale/egoscale/security_groups.go | 0
.../exoscale/egoscale/securitygroups_response.go | 0
.../exoscale/egoscale/serialization.go | 0
.../exoscale/egoscale/service_offerings.go | 0
.../exoscale/egoscale/serviceofferings_response.go | 0
.../github.com => }/exoscale/egoscale/snapshots.go | 0
.../exoscale/egoscale/snapshots_response.go | 0
.../exoscale/egoscale/ssh_keypairs.go | 0
.../exoscale/egoscale/sshkeypairs_response.go | 0
.../github.com => }/exoscale/egoscale/tags.go | 0
.../exoscale/egoscale/tags_response.go | 0
.../github.com => }/exoscale/egoscale/templates.go | 0
.../exoscale/egoscale/templates_response.go | 0
.../github.com => }/exoscale/egoscale/users.go | 0
.../exoscale/egoscale/users_response.go | 0
.../github.com => }/exoscale/egoscale/uuid.go | 0
.../github.com => }/exoscale/egoscale/version.go | 0
.../exoscale/egoscale/virtual_machines.go | 0
.../exoscale/egoscale/virtualmachines_response.go | 0
.../github.com => }/exoscale/egoscale/volumes.go | 0
.../exoscale/egoscale/volumes_response.go | 0
.../github.com => }/exoscale/egoscale/zones.go | 0
.../exoscale/egoscale/zones_response.go | 0
.../vendor/github.com => }/fatih/structs/LICENSE | 0
.../vendor/github.com => }/fatih/structs/field.go | 0
.../github.com => }/fatih/structs/structs.go | 0
.../vendor/github.com => }/fatih/structs/tags.go | 0
.../lego/vendor/cloud.google.com/go/AUTHORS | 15 -
.../lego/vendor/cloud.google.com/go/CONTRIBUTORS | 40 -
.../lego/vendor/cloud.google.com/go/LICENSE | 202 -
.../go/compute/metadata/metadata.go | 503 -
.../exporter/ocagent/LICENSE | 201 -
.../lego/vendor/github.com/golang/protobuf/AUTHORS | 3 -
.../vendor/github.com/golang/protobuf/CONTRIBUTORS | 3 -
.../lego/vendor/github.com/golang/protobuf/LICENSE | 28 -
.../github.com/golang/protobuf/jsonpb/jsonpb.go | 1271 -
.../github.com/golang/protobuf/proto/clone.go | 253 -
.../github.com/golang/protobuf/proto/decode.go | 427 -
.../github.com/golang/protobuf/proto/deprecated.go | 63 -
.../github.com/golang/protobuf/proto/discard.go | 350 -
.../github.com/golang/protobuf/proto/encode.go | 203 -
.../github.com/golang/protobuf/proto/equal.go | 301 -
.../github.com/golang/protobuf/proto/extensions.go | 607 -
.../vendor/github.com/golang/protobuf/proto/lib.go | 965 -
.../golang/protobuf/proto/message_set.go | 181 -
.../golang/protobuf/proto/pointer_reflect.go | 360 -
.../golang/protobuf/proto/pointer_unsafe.go | 313 -
.../github.com/golang/protobuf/proto/properties.go | 545 -
.../golang/protobuf/proto/table_marshal.go | 2776 -
.../golang/protobuf/proto/table_merge.go | 654 -
.../golang/protobuf/proto/table_unmarshal.go | 2053 -
.../github.com/golang/protobuf/proto/text.go | 843 -
.../golang/protobuf/proto/text_parser.go | 880 -
.../protoc-gen-go/descriptor/descriptor.pb.go | 2887 -
.../protobuf/protoc-gen-go/generator/generator.go | 2806 -
.../generator/internal/remap/remap.go | 117 -
.../protobuf/protoc-gen-go/plugin/plugin.pb.go | 369 -
.../github.com/golang/protobuf/ptypes/any.go | 141 -
.../golang/protobuf/ptypes/any/any.pb.go | 200 -
.../github.com/golang/protobuf/ptypes/doc.go | 35 -
.../github.com/golang/protobuf/ptypes/duration.go | 102 -
.../golang/protobuf/ptypes/duration/duration.pb.go | 161 -
.../golang/protobuf/ptypes/struct/struct.pb.go | 336 -
.../github.com/golang/protobuf/ptypes/timestamp.go | 132 -
.../protobuf/ptypes/timestamp/timestamp.pb.go | 179 -
.../golang/protobuf/ptypes/wrappers/wrappers.pb.go | 461 -
.../vendor/github.com/google/uuid/CONTRIBUTORS | 9 -
.../lego/vendor/github.com/google/uuid/LICENSE | 27 -
.../lego/vendor/github.com/google/uuid/dce.go | 80 -
.../lego/vendor/github.com/google/uuid/doc.go | 12 -
.../lego/vendor/github.com/google/uuid/hash.go | 53 -
.../lego/vendor/github.com/google/uuid/marshal.go | 39 -
.../lego/vendor/github.com/google/uuid/node.go | 103 -
.../lego/vendor/github.com/google/uuid/sql.go | 58 -
.../lego/vendor/github.com/google/uuid/time.go | 123 -
.../lego/vendor/github.com/google/uuid/util.go | 43 -
.../lego/vendor/github.com/google/uuid/uuid.go | 191 -
.../lego/vendor/github.com/google/uuid/version1.go | 44 -
.../lego/vendor/github.com/google/uuid/version4.go | 38 -
.../vendor/github.com/json-iterator/go/LICENSE | 21 -
.../vendor/github.com/json-iterator/go/adapter.go | 150 -
.../lego/vendor/github.com/json-iterator/go/any.go | 321 -
.../github.com/json-iterator/go/any_array.go | 278 -
.../vendor/github.com/json-iterator/go/any_bool.go | 137 -
.../github.com/json-iterator/go/any_float.go | 83 -
.../github.com/json-iterator/go/any_int32.go | 74 -
.../github.com/json-iterator/go/any_int64.go | 74 -
.../github.com/json-iterator/go/any_invalid.go | 82 -
.../vendor/github.com/json-iterator/go/any_nil.go | 69 -
.../github.com/json-iterator/go/any_number.go | 123 -
.../github.com/json-iterator/go/any_object.go | 374 -
.../vendor/github.com/json-iterator/go/any_str.go | 166 -
.../github.com/json-iterator/go/any_uint32.go | 74 -
.../github.com/json-iterator/go/any_uint64.go | 74 -
.../vendor/github.com/json-iterator/go/config.go | 375 -
.../vendor/github.com/json-iterator/go/iter.go | 322 -
.../github.com/json-iterator/go/iter_array.go | 58 -
.../github.com/json-iterator/go/iter_float.go | 347 -
.../vendor/github.com/json-iterator/go/iter_int.go | 345 -
.../github.com/json-iterator/go/iter_object.go | 251 -
.../github.com/json-iterator/go/iter_skip.go | 129 -
.../json-iterator/go/iter_skip_sloppy.go | 144 -
.../json-iterator/go/iter_skip_strict.go | 89 -
.../vendor/github.com/json-iterator/go/iter_str.go | 215 -
.../vendor/github.com/json-iterator/go/jsoniter.go | 18 -
.../vendor/github.com/json-iterator/go/pool.go | 42 -
.../vendor/github.com/json-iterator/go/reflect.go | 332 -
.../github.com/json-iterator/go/reflect_array.go | 104 -
.../github.com/json-iterator/go/reflect_dynamic.go | 70 -
.../json-iterator/go/reflect_extension.go | 483 -
.../json-iterator/go/reflect_json_number.go | 112 -
.../json-iterator/go/reflect_json_raw_message.go | 60 -
.../github.com/json-iterator/go/reflect_map.go | 326 -
.../json-iterator/go/reflect_marshaler.go | 218 -
.../github.com/json-iterator/go/reflect_native.go | 451 -
.../json-iterator/go/reflect_optional.go | 133 -
.../github.com/json-iterator/go/reflect_slice.go | 99 -
.../json-iterator/go/reflect_struct_decoder.go | 1048 -
.../json-iterator/go/reflect_struct_encoder.go | 210 -
.../vendor/github.com/json-iterator/go/stream.go | 211 -
.../github.com/json-iterator/go/stream_float.go | 94 -
.../github.com/json-iterator/go/stream_int.go | 190 -
.../github.com/json-iterator/go/stream_str.go | 372 -
.../lego/vendor/github.com/miekg/dns/AUTHORS | 1 -
.../lego/vendor/github.com/miekg/dns/CONTRIBUTORS | 10 -
.../lego/vendor/github.com/miekg/dns/COPYRIGHT | 9 -
.../lego/vendor/github.com/miekg/dns/LICENSE | 32 -
.../lego/vendor/github.com/miekg/dns/acceptfunc.go | 54 -
.../lego/vendor/github.com/miekg/dns/client.go | 415 -
.../vendor/github.com/miekg/dns/clientconfig.go | 135 -
.../lego/vendor/github.com/miekg/dns/dane.go | 43 -
.../lego/vendor/github.com/miekg/dns/defaults.go | 378 -
.../lego/vendor/github.com/miekg/dns/dns.go | 134 -
.../lego/vendor/github.com/miekg/dns/dnssec.go | 794 -
.../vendor/github.com/miekg/dns/dnssec_keygen.go | 140 -
.../vendor/github.com/miekg/dns/dnssec_keyscan.go | 322 -
.../vendor/github.com/miekg/dns/dnssec_privkey.go | 94 -
.../lego/vendor/github.com/miekg/dns/doc.go | 269 -
.../lego/vendor/github.com/miekg/dns/duplicate.go | 38 -
.../github.com/miekg/dns/duplicate_generate.go | 144 -
.../lego/vendor/github.com/miekg/dns/edns.go | 659 -
.../lego/vendor/github.com/miekg/dns/format.go | 93 -
.../lego/vendor/github.com/miekg/dns/fuzz.go | 23 -
.../lego/vendor/github.com/miekg/dns/generate.go | 242 -
.../lego/vendor/github.com/miekg/dns/labels.go | 188 -
.../vendor/github.com/miekg/dns/listen_go111.go | 44 -
.../github.com/miekg/dns/listen_go_not111.go | 23 -
.../lego/vendor/github.com/miekg/dns/msg.go | 1228 -
.../vendor/github.com/miekg/dns/msg_generate.go | 328 -
.../vendor/github.com/miekg/dns/msg_helpers.go | 671 -
.../vendor/github.com/miekg/dns/msg_truncate.go | 111 -
.../lego/vendor/github.com/miekg/dns/nsecx.go | 95 -
.../lego/vendor/github.com/miekg/dns/privaterr.go | 114 -
.../lego/vendor/github.com/miekg/dns/reverse.go | 52 -
.../lego/vendor/github.com/miekg/dns/sanitize.go | 86 -
.../lego/vendor/github.com/miekg/dns/scan.go | 1397 -
.../lego/vendor/github.com/miekg/dns/scan_rr.go | 1698 -
.../lego/vendor/github.com/miekg/dns/serve_mux.go | 147 -
.../lego/vendor/github.com/miekg/dns/server.go | 764 -
.../lego/vendor/github.com/miekg/dns/sig0.go | 209 -
.../vendor/github.com/miekg/dns/singleinflight.go | 61 -
.../lego/vendor/github.com/miekg/dns/smimea.go | 44 -
.../lego/vendor/github.com/miekg/dns/tlsa.go | 44 -
.../lego/vendor/github.com/miekg/dns/tsig.go | 389 -
.../lego/vendor/github.com/miekg/dns/types.go | 1413 -
.../vendor/github.com/miekg/dns/types_generate.go | 285 -
.../lego/vendor/github.com/miekg/dns/udp.go | 102 -
.../vendor/github.com/miekg/dns/udp_windows.go | 35 -
.../lego/vendor/github.com/miekg/dns/update.go | 110 -
.../lego/vendor/github.com/miekg/dns/version.go | 15 -
.../lego/vendor/github.com/miekg/dns/xfr.go | 263 -
.../lego/vendor/github.com/miekg/dns/zduplicate.go | 1140 -
.../lego/vendor/github.com/miekg/dns/zmsg.go | 2722 -
.../lego/vendor/github.com/miekg/dns/ztypes.go | 881 -
.../github.com/modern-go/concurrent/executor.go | 14 -
.../github.com/modern-go/concurrent/go_above_19.go | 15 -
.../github.com/modern-go/concurrent/go_below_19.go | 33 -
.../vendor/github.com/modern-go/concurrent/log.go | 13 -
.../modern-go/concurrent/unbounded_executor.go | 119 -
.../github.com/modern-go/reflect2/go_above_17.go | 8 -
.../github.com/modern-go/reflect2/go_above_19.go | 14 -
.../github.com/modern-go/reflect2/go_below_17.go | 9 -
.../github.com/modern-go/reflect2/go_below_19.go | 14 -
.../github.com/modern-go/reflect2/reflect2.go | 298 -
.../github.com/modern-go/reflect2/reflect2_amd64.s | 0
.../github.com/modern-go/reflect2/reflect2_kind.go | 30 -
.../github.com/modern-go/reflect2/relfect2_386.s | 0
.../modern-go/reflect2/relfect2_amd64p32.s | 0
.../github.com/modern-go/reflect2/relfect2_arm.s | 0
.../github.com/modern-go/reflect2/relfect2_arm64.s | 0
.../modern-go/reflect2/relfect2_mips64x.s | 0
.../github.com/modern-go/reflect2/relfect2_mipsx.s | 0
.../modern-go/reflect2/relfect2_ppc64x.s | 0
.../github.com/modern-go/reflect2/relfect2_s390x.s | 0
.../github.com/modern-go/reflect2/safe_field.go | 58 -
.../github.com/modern-go/reflect2/safe_map.go | 101 -
.../github.com/modern-go/reflect2/safe_slice.go | 92 -
.../github.com/modern-go/reflect2/safe_struct.go | 29 -
.../github.com/modern-go/reflect2/safe_type.go | 78 -
.../github.com/modern-go/reflect2/type_map.go | 103 -
.../github.com/modern-go/reflect2/unsafe_array.go | 65 -
.../github.com/modern-go/reflect2/unsafe_eface.go | 59 -
.../github.com/modern-go/reflect2/unsafe_field.go | 74 -
.../github.com/modern-go/reflect2/unsafe_iface.go | 64 -
.../github.com/modern-go/reflect2/unsafe_link.go | 70 -
.../github.com/modern-go/reflect2/unsafe_map.go | 138 -
.../github.com/modern-go/reflect2/unsafe_ptr.go | 46 -
.../github.com/modern-go/reflect2/unsafe_slice.go | 177 -
.../github.com/modern-go/reflect2/unsafe_struct.go | 59 -
.../github.com/modern-go/reflect2/unsafe_type.go | 85 -
.../lego/vendor/github.com/pkg/errors/LICENSE | 23 -
.../lego/vendor/github.com/pkg/errors/errors.go | 269 -
.../lego/vendor/github.com/pkg/errors/stack.go | 178 -
.../lego/vendor/golang.org/x/crypto/AUTHORS | 3 -
.../lego/vendor/golang.org/x/crypto/CONTRIBUTORS | 3 -
.../lego/vendor/golang.org/x/crypto/LICENSE | 27 -
.../lego/vendor/golang.org/x/crypto/PATENTS | 22 -
.../vendor/golang.org/x/crypto/ed25519/ed25519.go | 217 -
.../crypto/ed25519/internal/edwards25519/const.go | 1422 -
.../ed25519/internal/edwards25519/edwards25519.go | 1793 -
.../lego/vendor/golang.org/x/crypto/ocsp/ocsp.go | 781 -
.../vendor/golang.org/x/crypto/pbkdf2/pbkdf2.go | 77 -
.../golang.org/x/crypto/pkcs12/bmp-string.go | 50 -
.../vendor/golang.org/x/crypto/pkcs12/crypto.go | 131 -
.../vendor/golang.org/x/crypto/pkcs12/errors.go | 23 -
.../golang.org/x/crypto/pkcs12/internal/rc2/rc2.go | 271 -
.../lego/vendor/golang.org/x/crypto/pkcs12/mac.go | 45 -
.../vendor/golang.org/x/crypto/pkcs12/pbkdf.go | 170 -
.../vendor/golang.org/x/crypto/pkcs12/pkcs12.go | 346 -
.../vendor/golang.org/x/crypto/pkcs12/safebags.go | 57 -
.../golang.org/x/crypto/ssh/terminal/terminal.go | 951 -
.../golang.org/x/crypto/ssh/terminal/util.go | 114 -
.../golang.org/x/crypto/ssh/terminal/util_bsd.go | 12 -
.../golang.org/x/crypto/ssh/terminal/util_linux.go | 10 -
.../golang.org/x/crypto/ssh/terminal/util_plan9.go | 58 -
.../x/crypto/ssh/terminal/util_solaris.go | 124 -
.../x/crypto/ssh/terminal/util_windows.go | 103 -
.../go-acme/lego/vendor/golang.org/x/net/AUTHORS | 3 -
.../lego/vendor/golang.org/x/net/CONTRIBUTORS | 3 -
.../go-acme/lego/vendor/golang.org/x/net/LICENSE | 27 -
.../go-acme/lego/vendor/golang.org/x/net/PATENTS | 22 -
.../lego/vendor/golang.org/x/net/bpf/asm.go | 41 -
.../lego/vendor/golang.org/x/net/bpf/constants.go | 218 -
.../lego/vendor/golang.org/x/net/bpf/doc.go | 82 -
.../vendor/golang.org/x/net/bpf/instructions.go | 704 -
.../lego/vendor/golang.org/x/net/bpf/setter.go | 10 -
.../go-acme/lego/vendor/golang.org/x/net/bpf/vm.go | 140 -
.../vendor/golang.org/x/net/bpf/vm_instructions.go | 174 -
.../vendor/golang.org/x/net/context/context.go | 56 -
.../golang.org/x/net/context/ctxhttp/ctxhttp.go | 74 -
.../x/net/context/ctxhttp/ctxhttp_pre17.go | 147 -
.../lego/vendor/golang.org/x/net/context/go17.go | 72 -
.../lego/vendor/golang.org/x/net/context/go19.go | 20 -
.../vendor/golang.org/x/net/context/pre_go17.go | 300 -
.../vendor/golang.org/x/net/context/pre_go19.go | 109 -
.../vendor/golang.org/x/net/http/httpguts/guts.go | 50 -
.../golang.org/x/net/http/httpguts/httplex.go | 346 -
.../lego/vendor/golang.org/x/net/http2/ciphers.go | 641 -
.../golang.org/x/net/http2/client_conn_pool.go | 282 -
.../golang.org/x/net/http2/configure_transport.go | 82 -
.../vendor/golang.org/x/net/http2/databuffer.go | 146 -
.../lego/vendor/golang.org/x/net/http2/errors.go | 133 -
.../lego/vendor/golang.org/x/net/http2/flow.go | 50 -
.../lego/vendor/golang.org/x/net/http2/frame.go | 1614 -
.../lego/vendor/golang.org/x/net/http2/go111.go | 26 -
.../lego/vendor/golang.org/x/net/http2/go16.go | 16 -
.../lego/vendor/golang.org/x/net/http2/go17.go | 121 -
.../vendor/golang.org/x/net/http2/go17_not18.go | 36 -
.../lego/vendor/golang.org/x/net/http2/go18.go | 56 -
.../lego/vendor/golang.org/x/net/http2/go19.go | 16 -
.../lego/vendor/golang.org/x/net/http2/gotrack.go | 170 -
.../vendor/golang.org/x/net/http2/headermap.go | 88 -
.../vendor/golang.org/x/net/http2/hpack/encode.go | 240 -
.../vendor/golang.org/x/net/http2/hpack/hpack.go | 496 -
.../vendor/golang.org/x/net/http2/hpack/huffman.go | 222 -
.../vendor/golang.org/x/net/http2/hpack/tables.go | 479 -
.../lego/vendor/golang.org/x/net/http2/http2.go | 384 -
.../vendor/golang.org/x/net/http2/not_go111.go | 17 -
.../lego/vendor/golang.org/x/net/http2/not_go16.go | 21 -
.../lego/vendor/golang.org/x/net/http2/not_go17.go | 95 -
.../lego/vendor/golang.org/x/net/http2/not_go18.go | 29 -
.../lego/vendor/golang.org/x/net/http2/not_go19.go | 16 -
.../lego/vendor/golang.org/x/net/http2/pipe.go | 163 -
.../lego/vendor/golang.org/x/net/http2/server.go | 2890 -
.../vendor/golang.org/x/net/http2/transport.go | 2453 -
.../lego/vendor/golang.org/x/net/http2/write.go | 365 -
.../vendor/golang.org/x/net/http2/writesched.go | 242 -
.../golang.org/x/net/http2/writesched_priority.go | 452 -
.../golang.org/x/net/http2/writesched_random.go | 72 -
.../lego/vendor/golang.org/x/net/idna/idna.go | 732 -
.../lego/vendor/golang.org/x/net/idna/punycode.go | 203 -
.../lego/vendor/golang.org/x/net/idna/tables.go | 4557 --
.../lego/vendor/golang.org/x/net/idna/trie.go | 72 -
.../lego/vendor/golang.org/x/net/idna/trieval.go | 119 -
.../vendor/golang.org/x/net/internal/iana/const.go | 223 -
.../vendor/golang.org/x/net/internal/iana/gen.go | 383 -
.../golang.org/x/net/internal/socket/cmsghdr.go | 11 -
.../x/net/internal/socket/cmsghdr_bsd.go | 13 -
.../x/net/internal/socket/cmsghdr_linux_32bit.go | 14 -
.../x/net/internal/socket/cmsghdr_linux_64bit.go | 14 -
.../x/net/internal/socket/cmsghdr_solaris_64bit.go | 14 -
.../x/net/internal/socket/cmsghdr_stub.go | 17 -
.../x/net/internal/socket/defs_darwin.go | 44 -
.../x/net/internal/socket/defs_dragonfly.go | 44 -
.../x/net/internal/socket/defs_freebsd.go | 44 -
.../golang.org/x/net/internal/socket/defs_linux.go | 49 -
.../x/net/internal/socket/defs_netbsd.go | 47 -
.../x/net/internal/socket/defs_openbsd.go | 44 -
.../x/net/internal/socket/defs_solaris.go | 44 -
.../golang.org/x/net/internal/socket/error_unix.go | 31 -
.../x/net/internal/socket/error_windows.go | 26 -
.../x/net/internal/socket/iovec_32bit.go | 19 -
.../x/net/internal/socket/iovec_64bit.go | 19 -
.../x/net/internal/socket/iovec_solaris_64bit.go | 19 -
.../golang.org/x/net/internal/socket/iovec_stub.go | 11 -
.../x/net/internal/socket/mmsghdr_stub.go | 21 -
.../x/net/internal/socket/mmsghdr_unix.go | 42 -
.../golang.org/x/net/internal/socket/msghdr_bsd.go | 39 -
.../x/net/internal/socket/msghdr_bsdvar.go | 16 -
.../x/net/internal/socket/msghdr_linux.go | 36 -
.../x/net/internal/socket/msghdr_linux_32bit.go | 24 -
.../x/net/internal/socket/msghdr_linux_64bit.go | 24 -
.../x/net/internal/socket/msghdr_openbsd.go | 14 -
.../x/net/internal/socket/msghdr_solaris_64bit.go | 36 -
.../x/net/internal/socket/msghdr_stub.go | 14 -
.../golang.org/x/net/internal/socket/rawconn.go | 66 -
.../x/net/internal/socket/rawconn_mmsg.go | 74 -
.../x/net/internal/socket/rawconn_msg.go | 77 -
.../x/net/internal/socket/rawconn_nommsg.go | 18 -
.../x/net/internal/socket/rawconn_nomsg.go | 18 -
.../x/net/internal/socket/rawconn_stub.go | 25 -
.../golang.org/x/net/internal/socket/reflect.go | 62 -
.../golang.org/x/net/internal/socket/socket.go | 285 -
.../vendor/golang.org/x/net/internal/socket/sys.go | 33 -
.../golang.org/x/net/internal/socket/sys_bsd.go | 17 -
.../golang.org/x/net/internal/socket/sys_bsdvar.go | 14 -
.../golang.org/x/net/internal/socket/sys_darwin.go | 7 -
.../x/net/internal/socket/sys_dragonfly.go | 7 -
.../golang.org/x/net/internal/socket/sys_linux.go | 27 -
.../x/net/internal/socket/sys_linux_386.go | 55 -
.../x/net/internal/socket/sys_linux_386.s | 11 -
.../x/net/internal/socket/sys_linux_amd64.go | 10 -
.../x/net/internal/socket/sys_linux_arm.go | 10 -
.../x/net/internal/socket/sys_linux_arm64.go | 10 -
.../x/net/internal/socket/sys_linux_mips.go | 10 -
.../x/net/internal/socket/sys_linux_mips64.go | 10 -
.../x/net/internal/socket/sys_linux_mips64le.go | 10 -
.../x/net/internal/socket/sys_linux_mipsle.go | 10 -
.../x/net/internal/socket/sys_linux_ppc64.go | 10 -
.../x/net/internal/socket/sys_linux_ppc64le.go | 10 -
.../x/net/internal/socket/sys_linux_s390x.go | 55 -
.../x/net/internal/socket/sys_linux_s390x.s | 11 -
.../golang.org/x/net/internal/socket/sys_netbsd.go | 25 -
.../golang.org/x/net/internal/socket/sys_posix.go | 168 -
.../x/net/internal/socket/sys_solaris.go | 71 -
.../x/net/internal/socket/sys_solaris_amd64.s | 11 -
.../golang.org/x/net/internal/socket/sys_stub.go | 64 -
.../golang.org/x/net/internal/socket/sys_unix.go | 33 -
.../x/net/internal/socket/sys_windows.go | 70 -
.../x/net/internal/socket/zsys_darwin_386.go | 59 -
.../x/net/internal/socket/zsys_darwin_amd64.go | 61 -
.../x/net/internal/socket/zsys_darwin_arm.go | 59 -
.../x/net/internal/socket/zsys_darwin_arm64.go | 61 -
.../x/net/internal/socket/zsys_dragonfly_amd64.go | 61 -
.../x/net/internal/socket/zsys_freebsd_386.go | 59 -
.../x/net/internal/socket/zsys_freebsd_amd64.go | 61 -
.../x/net/internal/socket/zsys_freebsd_arm.go | 59 -
.../x/net/internal/socket/zsys_linux_386.go | 63 -
.../x/net/internal/socket/zsys_linux_amd64.go | 66 -
.../x/net/internal/socket/zsys_linux_arm.go | 63 -
.../x/net/internal/socket/zsys_linux_arm64.go | 66 -
.../x/net/internal/socket/zsys_linux_mips.go | 63 -
.../x/net/internal/socket/zsys_linux_mips64.go | 66 -
.../x/net/internal/socket/zsys_linux_mips64le.go | 66 -
.../x/net/internal/socket/zsys_linux_mipsle.go | 63 -
.../x/net/internal/socket/zsys_linux_ppc64.go | 66 -
.../x/net/internal/socket/zsys_linux_ppc64le.go | 66 -
.../x/net/internal/socket/zsys_linux_s390x.go | 66 -
.../x/net/internal/socket/zsys_netbsd_386.go | 65 -
.../x/net/internal/socket/zsys_netbsd_amd64.go | 68 -
.../x/net/internal/socket/zsys_netbsd_arm.go | 65 -
.../x/net/internal/socket/zsys_openbsd_386.go | 59 -
.../x/net/internal/socket/zsys_openbsd_amd64.go | 61 -
.../x/net/internal/socket/zsys_openbsd_arm.go | 59 -
.../x/net/internal/socket/zsys_solaris_amd64.go | 60 -
.../x/net/internal/timeseries/timeseries.go | 525 -
.../lego/vendor/golang.org/x/net/ipv4/batch.go | 190 -
.../lego/vendor/golang.org/x/net/ipv4/control.go | 144 -
.../vendor/golang.org/x/net/ipv4/control_bsd.go | 40 -
.../golang.org/x/net/ipv4/control_pktinfo.go | 39 -
.../vendor/golang.org/x/net/ipv4/control_stub.go | 13 -
.../vendor/golang.org/x/net/ipv4/control_unix.go | 73 -
.../golang.org/x/net/ipv4/control_windows.go | 16 -
.../vendor/golang.org/x/net/ipv4/defs_darwin.go | 77 -
.../vendor/golang.org/x/net/ipv4/defs_dragonfly.go | 38 -
.../vendor/golang.org/x/net/ipv4/defs_freebsd.go | 75 -
.../vendor/golang.org/x/net/ipv4/defs_linux.go | 122 -
.../vendor/golang.org/x/net/ipv4/defs_netbsd.go | 37 -
.../vendor/golang.org/x/net/ipv4/defs_openbsd.go | 37 -
.../vendor/golang.org/x/net/ipv4/defs_solaris.go | 84 -
.../lego/vendor/golang.org/x/net/ipv4/dgramopt.go | 264 -
.../lego/vendor/golang.org/x/net/ipv4/doc.go | 244 -
.../lego/vendor/golang.org/x/net/ipv4/endpoint.go | 186 -
.../lego/vendor/golang.org/x/net/ipv4/gen.go | 199 -
.../vendor/golang.org/x/net/ipv4/genericopt.go | 55 -
.../lego/vendor/golang.org/x/net/ipv4/header.go | 170 -
.../lego/vendor/golang.org/x/net/ipv4/helper.go | 64 -
.../lego/vendor/golang.org/x/net/ipv4/iana.go | 38 -
.../lego/vendor/golang.org/x/net/ipv4/icmp.go | 57 -
.../vendor/golang.org/x/net/ipv4/icmp_linux.go | 25 -
.../lego/vendor/golang.org/x/net/ipv4/icmp_stub.go | 25 -
.../lego/vendor/golang.org/x/net/ipv4/packet.go | 68 -
.../vendor/golang.org/x/net/ipv4/packet_go1_8.go | 56 -
.../vendor/golang.org/x/net/ipv4/packet_go1_9.go | 67 -
.../lego/vendor/golang.org/x/net/ipv4/payload.go | 23 -
.../vendor/golang.org/x/net/ipv4/payload_cmsg.go | 33 -
.../golang.org/x/net/ipv4/payload_cmsg_go1_8.go | 59 -
.../golang.org/x/net/ipv4/payload_cmsg_go1_9.go | 67 -
.../vendor/golang.org/x/net/ipv4/payload_nocmsg.go | 39 -
.../lego/vendor/golang.org/x/net/ipv4/sockopt.go | 44 -
.../vendor/golang.org/x/net/ipv4/sockopt_posix.go | 71 -
.../vendor/golang.org/x/net/ipv4/sockopt_stub.go | 42 -
.../vendor/golang.org/x/net/ipv4/sys_asmreq.go | 119 -
.../golang.org/x/net/ipv4/sys_asmreq_stub.go | 25 -
.../vendor/golang.org/x/net/ipv4/sys_asmreqn.go | 42 -
.../golang.org/x/net/ipv4/sys_asmreqn_stub.go | 21 -
.../lego/vendor/golang.org/x/net/ipv4/sys_bpf.go | 23 -
.../vendor/golang.org/x/net/ipv4/sys_bpf_stub.go | 16 -
.../lego/vendor/golang.org/x/net/ipv4/sys_bsd.go | 37 -
.../vendor/golang.org/x/net/ipv4/sys_darwin.go | 93 -
.../vendor/golang.org/x/net/ipv4/sys_dragonfly.go | 35 -
.../vendor/golang.org/x/net/ipv4/sys_freebsd.go | 76 -
.../lego/vendor/golang.org/x/net/ipv4/sys_linux.go | 59 -
.../vendor/golang.org/x/net/ipv4/sys_solaris.go | 57 -
.../vendor/golang.org/x/net/ipv4/sys_ssmreq.go | 54 -
.../golang.org/x/net/ipv4/sys_ssmreq_stub.go | 21 -
.../lego/vendor/golang.org/x/net/ipv4/sys_stub.go | 13 -
.../vendor/golang.org/x/net/ipv4/sys_windows.go | 67 -
.../vendor/golang.org/x/net/ipv4/zsys_darwin.go | 99 -
.../vendor/golang.org/x/net/ipv4/zsys_dragonfly.go | 31 -
.../golang.org/x/net/ipv4/zsys_freebsd_386.go | 93 -
.../golang.org/x/net/ipv4/zsys_freebsd_amd64.go | 95 -
.../golang.org/x/net/ipv4/zsys_freebsd_arm.go | 95 -
.../vendor/golang.org/x/net/ipv4/zsys_linux_386.go | 148 -
.../golang.org/x/net/ipv4/zsys_linux_amd64.go | 150 -
.../vendor/golang.org/x/net/ipv4/zsys_linux_arm.go | 148 -
.../golang.org/x/net/ipv4/zsys_linux_arm64.go | 150 -
.../golang.org/x/net/ipv4/zsys_linux_mips.go | 148 -
.../golang.org/x/net/ipv4/zsys_linux_mips64.go | 150 -
.../golang.org/x/net/ipv4/zsys_linux_mips64le.go | 150 -
.../golang.org/x/net/ipv4/zsys_linux_mipsle.go | 148 -
.../vendor/golang.org/x/net/ipv4/zsys_linux_ppc.go | 148 -
.../golang.org/x/net/ipv4/zsys_linux_ppc64.go | 150 -
.../golang.org/x/net/ipv4/zsys_linux_ppc64le.go | 150 -
.../golang.org/x/net/ipv4/zsys_linux_s390x.go | 150 -
.../vendor/golang.org/x/net/ipv4/zsys_netbsd.go | 30 -
.../vendor/golang.org/x/net/ipv4/zsys_openbsd.go | 30 -
.../vendor/golang.org/x/net/ipv4/zsys_solaris.go | 100 -
.../lego/vendor/golang.org/x/net/ipv6/batch.go | 118 -
.../lego/vendor/golang.org/x/net/ipv6/control.go | 187 -
.../golang.org/x/net/ipv6/control_rfc2292_unix.go | 48 -
.../golang.org/x/net/ipv6/control_rfc3542_unix.go | 94 -
.../vendor/golang.org/x/net/ipv6/control_stub.go | 13 -
.../vendor/golang.org/x/net/ipv6/control_unix.go | 55 -
.../golang.org/x/net/ipv6/control_windows.go | 16 -
.../vendor/golang.org/x/net/ipv6/defs_darwin.go | 112 -
.../vendor/golang.org/x/net/ipv6/defs_dragonfly.go | 84 -
.../vendor/golang.org/x/net/ipv6/defs_freebsd.go | 105 -
.../vendor/golang.org/x/net/ipv6/defs_linux.go | 147 -
.../vendor/golang.org/x/net/ipv6/defs_netbsd.go | 80 -
.../vendor/golang.org/x/net/ipv6/defs_openbsd.go | 89 -
.../vendor/golang.org/x/net/ipv6/defs_solaris.go | 114 -
.../lego/vendor/golang.org/x/net/ipv6/dgramopt.go | 301 -
.../lego/vendor/golang.org/x/net/ipv6/doc.go | 243 -
.../lego/vendor/golang.org/x/net/ipv6/endpoint.go | 127 -
.../lego/vendor/golang.org/x/net/ipv6/gen.go | 199 -
.../vendor/golang.org/x/net/ipv6/genericopt.go | 56 -
.../lego/vendor/golang.org/x/net/ipv6/header.go | 55 -
.../lego/vendor/golang.org/x/net/ipv6/helper.go | 58 -
.../lego/vendor/golang.org/x/net/ipv6/iana.go | 86 -
.../lego/vendor/golang.org/x/net/ipv6/icmp.go | 60 -
.../lego/vendor/golang.org/x/net/ipv6/icmp_bsd.go | 29 -
.../vendor/golang.org/x/net/ipv6/icmp_linux.go | 27 -
.../vendor/golang.org/x/net/ipv6/icmp_solaris.go | 27 -
.../lego/vendor/golang.org/x/net/ipv6/icmp_stub.go | 23 -
.../vendor/golang.org/x/net/ipv6/icmp_windows.go | 22 -
.../lego/vendor/golang.org/x/net/ipv6/payload.go | 23 -
.../vendor/golang.org/x/net/ipv6/payload_cmsg.go | 32 -
.../golang.org/x/net/ipv6/payload_cmsg_go1_8.go | 55 -
.../golang.org/x/net/ipv6/payload_cmsg_go1_9.go | 57 -
.../vendor/golang.org/x/net/ipv6/payload_nocmsg.go | 38 -
.../lego/vendor/golang.org/x/net/ipv6/sockopt.go | 43 -
.../vendor/golang.org/x/net/ipv6/sockopt_posix.go | 87 -
.../vendor/golang.org/x/net/ipv6/sockopt_stub.go | 46 -
.../vendor/golang.org/x/net/ipv6/sys_asmreq.go | 24 -
.../golang.org/x/net/ipv6/sys_asmreq_stub.go | 17 -
.../lego/vendor/golang.org/x/net/ipv6/sys_bpf.go | 23 -
.../vendor/golang.org/x/net/ipv6/sys_bpf_stub.go | 16 -
.../lego/vendor/golang.org/x/net/ipv6/sys_bsd.go | 57 -
.../vendor/golang.org/x/net/ipv6/sys_darwin.go | 106 -
.../vendor/golang.org/x/net/ipv6/sys_freebsd.go | 92 -
.../lego/vendor/golang.org/x/net/ipv6/sys_linux.go | 74 -
.../vendor/golang.org/x/net/ipv6/sys_solaris.go | 74 -
.../vendor/golang.org/x/net/ipv6/sys_ssmreq.go | 54 -
.../golang.org/x/net/ipv6/sys_ssmreq_stub.go | 21 -
.../lego/vendor/golang.org/x/net/ipv6/sys_stub.go | 13 -
.../vendor/golang.org/x/net/ipv6/sys_windows.go | 75 -
.../vendor/golang.org/x/net/ipv6/zsys_darwin.go | 131 -
.../vendor/golang.org/x/net/ipv6/zsys_dragonfly.go | 88 -
.../golang.org/x/net/ipv6/zsys_freebsd_386.go | 122 -
.../golang.org/x/net/ipv6/zsys_freebsd_amd64.go | 124 -
.../golang.org/x/net/ipv6/zsys_freebsd_arm.go | 124 -
.../vendor/golang.org/x/net/ipv6/zsys_linux_386.go | 170 -
.../golang.org/x/net/ipv6/zsys_linux_amd64.go | 172 -
.../vendor/golang.org/x/net/ipv6/zsys_linux_arm.go | 170 -
.../golang.org/x/net/ipv6/zsys_linux_arm64.go | 172 -
.../golang.org/x/net/ipv6/zsys_linux_mips.go | 170 -
.../golang.org/x/net/ipv6/zsys_linux_mips64.go | 172 -
.../golang.org/x/net/ipv6/zsys_linux_mips64le.go | 172 -
.../golang.org/x/net/ipv6/zsys_linux_mipsle.go | 170 -
.../vendor/golang.org/x/net/ipv6/zsys_linux_ppc.go | 170 -
.../golang.org/x/net/ipv6/zsys_linux_ppc64.go | 172 -
.../golang.org/x/net/ipv6/zsys_linux_ppc64le.go | 172 -
.../golang.org/x/net/ipv6/zsys_linux_s390x.go | 172 -
.../vendor/golang.org/x/net/ipv6/zsys_netbsd.go | 84 -
.../vendor/golang.org/x/net/ipv6/zsys_openbsd.go | 93 -
.../vendor/golang.org/x/net/ipv6/zsys_solaris.go | 131 -
.../vendor/golang.org/x/net/publicsuffix/gen.go | 713 -
.../vendor/golang.org/x/net/publicsuffix/list.go | 170 -
.../vendor/golang.org/x/net/publicsuffix/table.go | 9748 ---
.../lego/vendor/golang.org/x/net/trace/events.go | 532 -
.../vendor/golang.org/x/net/trace/histogram.go | 365 -
.../lego/vendor/golang.org/x/net/trace/trace.go | 1111 -
.../vendor/golang.org/x/net/trace/trace_go16.go | 21 -
.../vendor/golang.org/x/net/trace/trace_go17.go | 21 -
.../lego/vendor/golang.org/x/oauth2/AUTHORS | 3 -
.../lego/vendor/golang.org/x/oauth2/CONTRIBUTORS | 3 -
.../lego/vendor/golang.org/x/oauth2/LICENSE | 27 -
.../oauth2/clientcredentials/clientcredentials.go | 109 -
.../vendor/golang.org/x/oauth2/google/appengine.go | 89 -
.../golang.org/x/oauth2/google/appengine_hook.go | 14 -
.../x/oauth2/google/appengineflex_hook.go | 11 -
.../vendor/golang.org/x/oauth2/google/default.go | 115 -
.../vendor/golang.org/x/oauth2/google/doc_go19.go | 42 -
.../golang.org/x/oauth2/google/doc_not_go19.go | 43 -
.../lego/vendor/golang.org/x/oauth2/google/go19.go | 57 -
.../vendor/golang.org/x/oauth2/google/google.go | 192 -
.../lego/vendor/golang.org/x/oauth2/google/jwt.go | 74 -
.../vendor/golang.org/x/oauth2/google/not_go19.go | 54 -
.../lego/vendor/golang.org/x/oauth2/google/sdk.go | 201 -
.../x/oauth2/internal/client_appengine.go | 13 -
.../vendor/golang.org/x/oauth2/internal/doc.go | 6 -
.../vendor/golang.org/x/oauth2/internal/oauth2.go | 37 -
.../vendor/golang.org/x/oauth2/internal/token.go | 272 -
.../golang.org/x/oauth2/internal/transport.go | 34 -
.../lego/vendor/golang.org/x/oauth2/jws/jws.go | 182 -
.../lego/vendor/golang.org/x/oauth2/jwt/jwt.go | 162 -
.../lego/vendor/golang.org/x/oauth2/oauth2.go | 362 -
.../lego/vendor/golang.org/x/oauth2/token.go | 175 -
.../lego/vendor/golang.org/x/oauth2/transport.go | 144 -
.../go-acme/lego/vendor/golang.org/x/sync/AUTHORS | 3 -
.../lego/vendor/golang.org/x/sync/CONTRIBUTORS | 3 -
.../go-acme/lego/vendor/golang.org/x/sync/LICENSE | 27 -
.../go-acme/lego/vendor/golang.org/x/sync/PATENTS | 22 -
.../golang.org/x/sync/semaphore/semaphore.go | 127 -
.../go-acme/lego/vendor/golang.org/x/sys/AUTHORS | 3 -
.../lego/vendor/golang.org/x/sys/CONTRIBUTORS | 3 -
.../go-acme/lego/vendor/golang.org/x/sys/LICENSE | 27 -
.../go-acme/lego/vendor/golang.org/x/sys/PATENTS | 22 -
.../vendor/golang.org/x/sys/unix/affinity_linux.go | 124 -
.../lego/vendor/golang.org/x/sys/unix/aliases.go | 14 -
.../vendor/golang.org/x/sys/unix/asm_darwin_386.s | 29 -
.../golang.org/x/sys/unix/asm_darwin_amd64.s | 29 -
.../vendor/golang.org/x/sys/unix/asm_darwin_arm.s | 30 -
.../golang.org/x/sys/unix/asm_darwin_arm64.s | 30 -
.../golang.org/x/sys/unix/asm_dragonfly_amd64.s | 29 -
.../vendor/golang.org/x/sys/unix/asm_freebsd_386.s | 29 -
.../golang.org/x/sys/unix/asm_freebsd_amd64.s | 29 -
.../vendor/golang.org/x/sys/unix/asm_freebsd_arm.s | 29 -
.../vendor/golang.org/x/sys/unix/asm_linux_386.s | 65 -
.../vendor/golang.org/x/sys/unix/asm_linux_amd64.s | 57 -
.../vendor/golang.org/x/sys/unix/asm_linux_arm.s | 56 -
.../vendor/golang.org/x/sys/unix/asm_linux_arm64.s | 52 -
.../golang.org/x/sys/unix/asm_linux_mips64x.s | 56 -
.../vendor/golang.org/x/sys/unix/asm_linux_mipsx.s | 54 -
.../golang.org/x/sys/unix/asm_linux_ppc64x.s | 56 -
.../vendor/golang.org/x/sys/unix/asm_linux_s390x.s | 56 -
.../vendor/golang.org/x/sys/unix/asm_netbsd_386.s | 29 -
.../golang.org/x/sys/unix/asm_netbsd_amd64.s | 29 -
.../vendor/golang.org/x/sys/unix/asm_netbsd_arm.s | 29 -
.../vendor/golang.org/x/sys/unix/asm_openbsd_386.s | 29 -
.../golang.org/x/sys/unix/asm_openbsd_amd64.s | 29 -
.../vendor/golang.org/x/sys/unix/asm_openbsd_arm.s | 29 -
.../golang.org/x/sys/unix/asm_solaris_amd64.s | 17 -
.../golang.org/x/sys/unix/bluetooth_linux.go | 35 -
.../vendor/golang.org/x/sys/unix/cap_freebsd.go | 195 -
.../lego/vendor/golang.org/x/sys/unix/constants.go | 13 -
.../vendor/golang.org/x/sys/unix/dev_aix_ppc.go | 37 -
.../vendor/golang.org/x/sys/unix/dev_aix_ppc64.go | 39 -
.../vendor/golang.org/x/sys/unix/dev_darwin.go | 24 -
.../vendor/golang.org/x/sys/unix/dev_dragonfly.go | 30 -
.../vendor/golang.org/x/sys/unix/dev_freebsd.go | 30 -
.../lego/vendor/golang.org/x/sys/unix/dev_linux.go | 42 -
.../vendor/golang.org/x/sys/unix/dev_netbsd.go | 29 -
.../vendor/golang.org/x/sys/unix/dev_openbsd.go | 29 -
.../lego/vendor/golang.org/x/sys/unix/dirent.go | 17 -
.../vendor/golang.org/x/sys/unix/endian_big.go | 9 -
.../vendor/golang.org/x/sys/unix/endian_little.go | 9 -
.../lego/vendor/golang.org/x/sys/unix/env_unix.go | 31 -
.../golang.org/x/sys/unix/errors_freebsd_386.go | 227 -
.../golang.org/x/sys/unix/errors_freebsd_amd64.go | 227 -
.../golang.org/x/sys/unix/errors_freebsd_arm.go | 226 -
.../lego/vendor/golang.org/x/sys/unix/fcntl.go | 32 -
.../golang.org/x/sys/unix/fcntl_linux_32bit.go | 13 -
.../lego/vendor/golang.org/x/sys/unix/gccgo.go | 62 -
.../lego/vendor/golang.org/x/sys/unix/gccgo_c.c | 39 -
.../golang.org/x/sys/unix/gccgo_linux_amd64.go | 20 -
.../lego/vendor/golang.org/x/sys/unix/ioctl.go | 30 -
.../lego/vendor/golang.org/x/sys/unix/mkpost.go | 98 -
.../vendor/golang.org/x/sys/unix/openbsd_pledge.go | 95 -
.../vendor/golang.org/x/sys/unix/pagesize_unix.go | 15 -
.../lego/vendor/golang.org/x/sys/unix/race.go | 30 -
.../lego/vendor/golang.org/x/sys/unix/race0.go | 25 -
.../vendor/golang.org/x/sys/unix/sockcmsg_linux.go | 36 -
.../vendor/golang.org/x/sys/unix/sockcmsg_unix.go | 104 -
.../lego/vendor/golang.org/x/sys/unix/str.go | 26 -
.../lego/vendor/golang.org/x/sys/unix/syscall.go | 54 -
.../vendor/golang.org/x/sys/unix/syscall_aix.go | 562 -
.../golang.org/x/sys/unix/syscall_aix_ppc.go | 34 -
.../golang.org/x/sys/unix/syscall_aix_ppc64.go | 34 -
.../vendor/golang.org/x/sys/unix/syscall_bsd.go | 624 -
.../vendor/golang.org/x/sys/unix/syscall_darwin.go | 700 -
.../golang.org/x/sys/unix/syscall_darwin_386.go | 68 -
.../golang.org/x/sys/unix/syscall_darwin_amd64.go | 68 -
.../golang.org/x/sys/unix/syscall_darwin_arm.go | 66 -
.../golang.org/x/sys/unix/syscall_darwin_arm64.go | 68 -
.../golang.org/x/sys/unix/syscall_dragonfly.go | 523 -
.../x/sys/unix/syscall_dragonfly_amd64.go | 52 -
.../golang.org/x/sys/unix/syscall_freebsd.go | 535 -
.../golang.org/x/sys/unix/syscall_freebsd_386.go | 52 -
.../golang.org/x/sys/unix/syscall_freebsd_amd64.go | 52 -
.../golang.org/x/sys/unix/syscall_freebsd_arm.go | 52 -
.../vendor/golang.org/x/sys/unix/syscall_linux.go | 1600 -
.../golang.org/x/sys/unix/syscall_linux_386.go | 385 -
.../golang.org/x/sys/unix/syscall_linux_amd64.go | 162 -
.../x/sys/unix/syscall_linux_amd64_gc.go | 13 -
.../golang.org/x/sys/unix/syscall_linux_arm.go | 259 -
.../golang.org/x/sys/unix/syscall_linux_arm64.go | 212 -
.../golang.org/x/sys/unix/syscall_linux_gc.go | 14 -
.../golang.org/x/sys/unix/syscall_linux_gc_386.go | 16 -
.../x/sys/unix/syscall_linux_gccgo_386.go | 30 -
.../x/sys/unix/syscall_linux_gccgo_arm.go | 20 -
.../golang.org/x/sys/unix/syscall_linux_mips64x.go | 214 -
.../golang.org/x/sys/unix/syscall_linux_mipsx.go | 233 -
.../golang.org/x/sys/unix/syscall_linux_ppc64x.go | 131 -
.../golang.org/x/sys/unix/syscall_linux_s390x.go | 324 -
.../golang.org/x/sys/unix/syscall_linux_sparc64.go | 146 -
.../vendor/golang.org/x/sys/unix/syscall_netbsd.go | 580 -
.../golang.org/x/sys/unix/syscall_netbsd_386.go | 33 -
.../golang.org/x/sys/unix/syscall_netbsd_amd64.go | 33 -
.../golang.org/x/sys/unix/syscall_netbsd_arm.go | 33 -
.../golang.org/x/sys/unix/syscall_openbsd.go | 368 -
.../golang.org/x/sys/unix/syscall_openbsd_386.go | 33 -
.../golang.org/x/sys/unix/syscall_openbsd_amd64.go | 37 -
.../golang.org/x/sys/unix/syscall_openbsd_arm.go | 33 -
.../golang.org/x/sys/unix/syscall_solaris.go | 730 -
.../golang.org/x/sys/unix/syscall_solaris_amd64.go | 23 -
.../vendor/golang.org/x/sys/unix/syscall_unix.go | 394 -
.../golang.org/x/sys/unix/syscall_unix_gc.go | 15 -
.../vendor/golang.org/x/sys/unix/timestruct.go | 82 -
.../lego/vendor/golang.org/x/sys/unix/types_aix.go | 229 -
.../vendor/golang.org/x/sys/unix/types_darwin.go | 277 -
.../golang.org/x/sys/unix/types_dragonfly.go | 263 -
.../vendor/golang.org/x/sys/unix/types_freebsd.go | 385 -
.../vendor/golang.org/x/sys/unix/types_netbsd.go | 281 -
.../vendor/golang.org/x/sys/unix/types_openbsd.go | 265 -
.../vendor/golang.org/x/sys/unix/types_solaris.go | 266 -
.../lego/vendor/golang.org/x/sys/unix/xattr_bsd.go | 231 -
.../golang.org/x/sys/unix/zerrors_aix_ppc.go | 1360 -
.../golang.org/x/sys/unix/zerrors_aix_ppc64.go | 1361 -
.../golang.org/x/sys/unix/zerrors_darwin_386.go | 1783 -
.../golang.org/x/sys/unix/zerrors_darwin_amd64.go | 1783 -
.../golang.org/x/sys/unix/zerrors_darwin_arm.go | 1783 -
.../golang.org/x/sys/unix/zerrors_darwin_arm64.go | 1783 -
.../x/sys/unix/zerrors_dragonfly_amd64.go | 1616 -
.../golang.org/x/sys/unix/zerrors_freebsd_386.go | 1793 -
.../golang.org/x/sys/unix/zerrors_freebsd_amd64.go | 1794 -
.../golang.org/x/sys/unix/zerrors_freebsd_arm.go | 1802 -
.../golang.org/x/sys/unix/zerrors_linux_386.go | 2635 -
.../golang.org/x/sys/unix/zerrors_linux_amd64.go | 2635 -
.../golang.org/x/sys/unix/zerrors_linux_arm.go | 2641 -
.../golang.org/x/sys/unix/zerrors_linux_arm64.go | 2626 -
.../golang.org/x/sys/unix/zerrors_linux_mips.go | 2642 -
.../golang.org/x/sys/unix/zerrors_linux_mips64.go | 2642 -
.../x/sys/unix/zerrors_linux_mips64le.go | 2642 -
.../golang.org/x/sys/unix/zerrors_linux_mipsle.go | 2642 -
.../golang.org/x/sys/unix/zerrors_linux_ppc64.go | 2695 -
.../golang.org/x/sys/unix/zerrors_linux_ppc64le.go | 2695 -
.../golang.org/x/sys/unix/zerrors_linux_s390x.go | 2695 -
.../golang.org/x/sys/unix/zerrors_linux_sparc64.go | 2142 -
.../golang.org/x/sys/unix/zerrors_netbsd_386.go | 1732 -
.../golang.org/x/sys/unix/zerrors_netbsd_amd64.go | 1722 -
.../golang.org/x/sys/unix/zerrors_netbsd_arm.go | 1711 -
.../golang.org/x/sys/unix/zerrors_openbsd_386.go | 1628 -
.../golang.org/x/sys/unix/zerrors_openbsd_amd64.go | 1735 -
.../golang.org/x/sys/unix/zerrors_openbsd_arm.go | 1630 -
.../golang.org/x/sys/unix/zerrors_solaris_amd64.go | 1532 -
.../golang.org/x/sys/unix/zptrace386_linux.go | 80 -
.../golang.org/x/sys/unix/zptracearm_linux.go | 41 -
.../golang.org/x/sys/unix/zptracemips_linux.go | 50 -
.../golang.org/x/sys/unix/zptracemipsle_linux.go | 50 -
.../golang.org/x/sys/unix/zsyscall_aix_ppc.go | 1495 -
.../golang.org/x/sys/unix/zsyscall_aix_ppc64.go | 1495 -
.../golang.org/x/sys/unix/zsyscall_darwin_386.go | 1769 -
.../golang.org/x/sys/unix/zsyscall_darwin_amd64.go | 1769 -
.../golang.org/x/sys/unix/zsyscall_darwin_arm.go | 1769 -
.../golang.org/x/sys/unix/zsyscall_darwin_arm64.go | 1769 -
.../x/sys/unix/zsyscall_dragonfly_amd64.go | 1508 -
.../golang.org/x/sys/unix/zsyscall_freebsd_386.go | 1935 -
.../x/sys/unix/zsyscall_freebsd_amd64.go | 1935 -
.../golang.org/x/sys/unix/zsyscall_freebsd_arm.go | 1935 -
.../golang.org/x/sys/unix/zsyscall_linux_386.go | 2105 -
.../golang.org/x/sys/unix/zsyscall_linux_amd64.go | 2272 -
.../golang.org/x/sys/unix/zsyscall_linux_arm.go | 2207 -
.../golang.org/x/sys/unix/zsyscall_linux_arm64.go | 2114 -
.../golang.org/x/sys/unix/zsyscall_linux_mips.go | 2285 -
.../golang.org/x/sys/unix/zsyscall_linux_mips64.go | 2256 -
.../x/sys/unix/zsyscall_linux_mips64le.go | 2256 -
.../golang.org/x/sys/unix/zsyscall_linux_mipsle.go | 2285 -
.../golang.org/x/sys/unix/zsyscall_linux_ppc64.go | 2319 -
.../x/sys/unix/zsyscall_linux_ppc64le.go | 2319 -
.../golang.org/x/sys/unix/zsyscall_linux_s390x.go | 2089 -
.../x/sys/unix/zsyscall_linux_sparc64.go | 2172 -
.../golang.org/x/sys/unix/zsyscall_netbsd_386.go | 1653 -
.../golang.org/x/sys/unix/zsyscall_netbsd_amd64.go | 1653 -
.../golang.org/x/sys/unix/zsyscall_netbsd_arm.go | 1653 -
.../golang.org/x/sys/unix/zsyscall_openbsd_386.go | 1508 -
.../x/sys/unix/zsyscall_openbsd_amd64.go | 1508 -
.../golang.org/x/sys/unix/zsyscall_openbsd_arm.go | 1508 -
.../x/sys/unix/zsyscall_solaris_amd64.go | 1697 -
.../golang.org/x/sys/unix/zsysctl_openbsd_386.go | 270 -
.../golang.org/x/sys/unix/zsysctl_openbsd_amd64.go | 257 -
.../golang.org/x/sys/unix/zsysctl_openbsd_arm.go | 270 -
.../golang.org/x/sys/unix/zsysnum_darwin_386.go | 436 -
.../golang.org/x/sys/unix/zsysnum_darwin_amd64.go | 436 -
.../golang.org/x/sys/unix/zsysnum_darwin_arm.go | 436 -
.../golang.org/x/sys/unix/zsysnum_darwin_arm64.go | 436 -
.../x/sys/unix/zsysnum_dragonfly_amd64.go | 315 -
.../golang.org/x/sys/unix/zsysnum_freebsd_386.go | 403 -
.../golang.org/x/sys/unix/zsysnum_freebsd_amd64.go | 403 -
.../golang.org/x/sys/unix/zsysnum_freebsd_arm.go | 403 -
.../golang.org/x/sys/unix/zsysnum_linux_386.go | 392 -
.../golang.org/x/sys/unix/zsysnum_linux_amd64.go | 344 -
.../golang.org/x/sys/unix/zsysnum_linux_arm.go | 363 -
.../golang.org/x/sys/unix/zsysnum_linux_arm64.go | 287 -
.../golang.org/x/sys/unix/zsysnum_linux_mips.go | 377 -
.../golang.org/x/sys/unix/zsysnum_linux_mips64.go | 337 -
.../x/sys/unix/zsysnum_linux_mips64le.go | 337 -
.../golang.org/x/sys/unix/zsysnum_linux_mipsle.go | 377 -
.../golang.org/x/sys/unix/zsysnum_linux_ppc64.go | 375 -
.../golang.org/x/sys/unix/zsysnum_linux_ppc64le.go | 375 -
.../golang.org/x/sys/unix/zsysnum_linux_s390x.go | 337 -
.../golang.org/x/sys/unix/zsysnum_linux_sparc64.go | 348 -
.../golang.org/x/sys/unix/zsysnum_netbsd_386.go | 274 -
.../golang.org/x/sys/unix/zsysnum_netbsd_amd64.go | 274 -
.../golang.org/x/sys/unix/zsysnum_netbsd_arm.go | 274 -
.../golang.org/x/sys/unix/zsysnum_openbsd_386.go | 207 -
.../golang.org/x/sys/unix/zsysnum_openbsd_amd64.go | 218 -
.../golang.org/x/sys/unix/zsysnum_openbsd_arm.go | 213 -
.../vendor/golang.org/x/sys/unix/ztypes_aix_ppc.go | 306 -
.../golang.org/x/sys/unix/ztypes_aix_ppc64.go | 313 -
.../golang.org/x/sys/unix/ztypes_darwin_386.go | 489 -
.../golang.org/x/sys/unix/ztypes_darwin_amd64.go | 499 -
.../golang.org/x/sys/unix/ztypes_darwin_arm.go | 490 -
.../golang.org/x/sys/unix/ztypes_darwin_arm64.go | 499 -
.../x/sys/unix/ztypes_dragonfly_amd64.go | 469 -
.../golang.org/x/sys/unix/ztypes_freebsd_386.go | 536 -
.../golang.org/x/sys/unix/ztypes_freebsd_amd64.go | 539 -
.../golang.org/x/sys/unix/ztypes_freebsd_arm.go | 539 -
.../golang.org/x/sys/unix/ztypes_linux_386.go | 1884 -
.../golang.org/x/sys/unix/ztypes_linux_amd64.go | 1906 -
.../golang.org/x/sys/unix/ztypes_linux_arm.go | 1874 -
.../golang.org/x/sys/unix/ztypes_linux_arm64.go | 1885 -
.../golang.org/x/sys/unix/ztypes_linux_mips.go | 1879 -
.../golang.org/x/sys/unix/ztypes_linux_mips64.go | 1887 -
.../golang.org/x/sys/unix/ztypes_linux_mips64le.go | 1887 -
.../golang.org/x/sys/unix/ztypes_linux_mipsle.go | 1879 -
.../golang.org/x/sys/unix/ztypes_linux_ppc64.go | 1895 -
.../golang.org/x/sys/unix/ztypes_linux_ppc64le.go | 1895 -
.../golang.org/x/sys/unix/ztypes_linux_s390x.go | 1912 -
.../golang.org/x/sys/unix/ztypes_linux_sparc64.go | 690 -
.../golang.org/x/sys/unix/ztypes_netbsd_386.go | 448 -
.../golang.org/x/sys/unix/ztypes_netbsd_amd64.go | 455 -
.../golang.org/x/sys/unix/ztypes_netbsd_arm.go | 453 -
.../golang.org/x/sys/unix/ztypes_openbsd_386.go | 467 -
.../golang.org/x/sys/unix/ztypes_openbsd_amd64.go | 467 -
.../golang.org/x/sys/unix/ztypes_openbsd_arm.go | 460 -
.../golang.org/x/sys/unix/ztypes_solaris_amd64.go | 442 -
.../vendor/golang.org/x/sys/windows/aliases.go | 13 -
.../golang.org/x/sys/windows/asm_windows_386.s | 13 -
.../golang.org/x/sys/windows/asm_windows_amd64.s | 13 -
.../vendor/golang.org/x/sys/windows/dll_windows.go | 378 -
.../vendor/golang.org/x/sys/windows/env_windows.go | 29 -
.../vendor/golang.org/x/sys/windows/eventlog.go | 20 -
.../golang.org/x/sys/windows/exec_windows.go | 97 -
.../golang.org/x/sys/windows/memory_windows.go | 26 -
.../vendor/golang.org/x/sys/windows/mksyscall.go | 7 -
.../lego/vendor/golang.org/x/sys/windows/race.go | 30 -
.../lego/vendor/golang.org/x/sys/windows/race0.go | 25 -
.../golang.org/x/sys/windows/security_windows.go | 478 -
.../vendor/golang.org/x/sys/windows/service.go | 183 -
.../lego/vendor/golang.org/x/sys/windows/str.go | 22 -
.../vendor/golang.org/x/sys/windows/syscall.go | 74 -
.../golang.org/x/sys/windows/syscall_windows.go | 1155 -
.../golang.org/x/sys/windows/types_windows.go | 1467 -
.../golang.org/x/sys/windows/types_windows_386.go | 22 -
.../x/sys/windows/types_windows_amd64.go | 22 -
.../golang.org/x/sys/windows/zsyscall_windows.go | 2700 -
.../go-acme/lego/vendor/golang.org/x/text/AUTHORS | 3 -
.../lego/vendor/golang.org/x/text/CONTRIBUTORS | 3 -
.../go-acme/lego/vendor/golang.org/x/text/LICENSE | 27 -
.../go-acme/lego/vendor/golang.org/x/text/PATENTS | 22 -
.../golang.org/x/text/collate/build/builder.go | 702 -
.../golang.org/x/text/collate/build/colelem.go | 294 -
.../golang.org/x/text/collate/build/contract.go | 309 -
.../golang.org/x/text/collate/build/order.go | 393 -
.../golang.org/x/text/collate/build/table.go | 81 -
.../vendor/golang.org/x/text/collate/build/trie.go | 290 -
.../vendor/golang.org/x/text/collate/collate.go | 403 -
.../lego/vendor/golang.org/x/text/collate/index.go | 32 -
.../vendor/golang.org/x/text/collate/maketables.go | 553 -
.../vendor/golang.org/x/text/collate/option.go | 239 -
.../lego/vendor/golang.org/x/text/collate/sort.go | 81 -
.../vendor/golang.org/x/text/collate/tables.go | 73789 -------------------
.../golang.org/x/text/internal/colltab/collelem.go | 371 -
.../golang.org/x/text/internal/colltab/colltab.go | 105 -
.../golang.org/x/text/internal/colltab/contract.go | 145 -
.../golang.org/x/text/internal/colltab/iter.go | 178 -
.../golang.org/x/text/internal/colltab/numeric.go | 236 -
.../golang.org/x/text/internal/colltab/table.go | 275 -
.../golang.org/x/text/internal/colltab/trie.go | 159 -
.../golang.org/x/text/internal/colltab/weighter.go | 31 -
.../vendor/golang.org/x/text/internal/gen/code.go | 369 -
.../vendor/golang.org/x/text/internal/gen/gen.go | 333 -
.../vendor/golang.org/x/text/internal/tag/tag.go | 100 -
.../golang.org/x/text/internal/triegen/compact.go | 58 -
.../golang.org/x/text/internal/triegen/print.go | 251 -
.../golang.org/x/text/internal/triegen/triegen.go | 494 -
.../vendor/golang.org/x/text/internal/ucd/ucd.go | 371 -
.../vendor/golang.org/x/text/language/common.go | 16 -
.../vendor/golang.org/x/text/language/coverage.go | 197 -
.../lego/vendor/golang.org/x/text/language/doc.go | 102 -
.../lego/vendor/golang.org/x/text/language/gen.go | 1712 -
.../golang.org/x/text/language/gen_common.go | 20 -
.../vendor/golang.org/x/text/language/gen_index.go | 162 -
.../vendor/golang.org/x/text/language/go1_1.go | 38 -
.../vendor/golang.org/x/text/language/go1_2.go | 11 -
.../vendor/golang.org/x/text/language/index.go | 783 -
.../vendor/golang.org/x/text/language/language.go | 907 -
.../vendor/golang.org/x/text/language/lookup.go | 396 -
.../vendor/golang.org/x/text/language/match.go | 933 -
.../vendor/golang.org/x/text/language/parse.go | 859 -
.../vendor/golang.org/x/text/language/tables.go | 3686 -
.../lego/vendor/golang.org/x/text/language/tags.go | 143 -
.../golang.org/x/text/secure/bidirule/bidirule.go | 336 -
.../x/text/secure/bidirule/bidirule10.0.0.go | 11 -
.../x/text/secure/bidirule/bidirule9.0.0.go | 14 -
.../golang.org/x/text/transform/transform.go | 705 -
.../vendor/golang.org/x/text/unicode/bidi/bidi.go | 198 -
.../golang.org/x/text/unicode/bidi/bracket.go | 335 -
.../vendor/golang.org/x/text/unicode/bidi/core.go | 1058 -
.../vendor/golang.org/x/text/unicode/bidi/gen.go | 133 -
.../golang.org/x/text/unicode/bidi/gen_ranges.go | 57 -
.../golang.org/x/text/unicode/bidi/gen_trieval.go | 64 -
.../vendor/golang.org/x/text/unicode/bidi/prop.go | 206 -
.../golang.org/x/text/unicode/bidi/tables10.0.0.go | 1815 -
.../golang.org/x/text/unicode/bidi/tables9.0.0.go | 1781 -
.../golang.org/x/text/unicode/bidi/trieval.go | 60 -
.../vendor/golang.org/x/text/unicode/cldr/base.go | 105 -
.../vendor/golang.org/x/text/unicode/cldr/cldr.go | 130 -
.../golang.org/x/text/unicode/cldr/collate.go | 359 -
.../golang.org/x/text/unicode/cldr/decode.go | 171 -
.../golang.org/x/text/unicode/cldr/makexml.go | 400 -
.../golang.org/x/text/unicode/cldr/resolve.go | 602 -
.../vendor/golang.org/x/text/unicode/cldr/slice.go | 144 -
.../vendor/golang.org/x/text/unicode/cldr/xml.go | 1494 -
.../golang.org/x/text/unicode/norm/composition.go | 508 -
.../golang.org/x/text/unicode/norm/forminfo.go | 259 -
.../vendor/golang.org/x/text/unicode/norm/input.go | 109 -
.../vendor/golang.org/x/text/unicode/norm/iter.go | 457 -
.../golang.org/x/text/unicode/norm/maketables.go | 976 -
.../golang.org/x/text/unicode/norm/normalize.go | 609 -
.../golang.org/x/text/unicode/norm/readwriter.go | 125 -
.../golang.org/x/text/unicode/norm/tables10.0.0.go | 7653 --
.../golang.org/x/text/unicode/norm/tables9.0.0.go | 7633 --
.../golang.org/x/text/unicode/norm/transform.go | 88 -
.../vendor/golang.org/x/text/unicode/norm/trie.go | 54 -
.../golang.org/x/text/unicode/norm/triegen.go | 117 -
.../golang.org/x/text/unicode/rangetable/gen.go | 115 -
.../golang.org/x/text/unicode/rangetable/merge.go | 260 -
.../x/text/unicode/rangetable/rangetable.go | 70 -
.../x/text/unicode/rangetable/tables10.0.0.go | 6378 --
.../x/text/unicode/rangetable/tables9.0.0.go | 5737 --
.../go-acme/lego/vendor/golang.org/x/time/AUTHORS | 3 -
.../lego/vendor/golang.org/x/time/CONTRIBUTORS | 3 -
.../go-acme/lego/vendor/golang.org/x/time/LICENSE | 27 -
.../go-acme/lego/vendor/golang.org/x/time/PATENTS | 22 -
.../lego/vendor/golang.org/x/time/rate/rate.go | 384 -
.../vendor/golang.org/x/time/rate/rate_go16.go | 21 -
.../vendor/golang.org/x/time/rate/rate_go17.go | 21 -
.../LICENSE.MIT => go-errors/errors/LICENSE} | 0
.../github.com => }/go-errors/errors/LICENSE.MIT | 0
.../github.com => }/go-errors/errors/error.go | 0
.../go-errors/errors/parse_panic.go | 0
.../github.com => }/go-errors/errors/stackframe.go | 0
.../vendor/gopkg.in/ini.v1 => go-ini/ini}/LICENSE | 0
.../vendor/gopkg.in/ini.v1 => go-ini/ini}/error.go | 0
.../vendor/gopkg.in/ini.v1 => go-ini/ini}/file.go | 0
.../vendor/gopkg.in/ini.v1 => go-ini/ini}/ini.go | 0
.../vendor/gopkg.in/ini.v1 => go-ini/ini}/key.go | 0
.../gopkg.in/ini.v1 => go-ini/ini}/parser.go | 0
.../gopkg.in/ini.v1 => go-ini/ini}/section.go | 0
.../gopkg.in/ini.v1 => go-ini/ini}/struct.go | 0
.../lego/vendor/github.com => }/gofrs/uuid/LICENSE | 0
.../vendor/github.com => }/gofrs/uuid/codec.go | 0
.../lego/vendor/github.com => }/gofrs/uuid/fuzz.go | 0
.../vendor/github.com => }/gofrs/uuid/generator.go | 0
.../lego/vendor/github.com => }/gofrs/uuid/sql.go | 0
.../lego/vendor/github.com => }/gofrs/uuid/uuid.go | 0
.../github.com => }/google/go-querystring/LICENSE | 0
.../google/go-querystring/query/encode.go | 0
.../gophercloud/gophercloud/LICENSE | 0
.../gophercloud/gophercloud/auth_options.go | 0
.../github.com => }/gophercloud/gophercloud/doc.go | 0
.../gophercloud/gophercloud/endpoint_search.go | 0
.../gophercloud/gophercloud/errors.go | 0
.../gophercloud/gophercloud/openstack/auth_env.go | 0
.../gophercloud/gophercloud/openstack/client.go | 0
.../gophercloud/openstack/dns/v2/recordsets/doc.go | 0
.../openstack/dns/v2/recordsets/requests.go | 0
.../openstack/dns/v2/recordsets/results.go | 0
.../openstack/dns/v2/recordsets/urls.go | 0
.../gophercloud/openstack/dns/v2/zones/doc.go | 0
.../gophercloud/openstack/dns/v2/zones/requests.go | 0
.../gophercloud/openstack/dns/v2/zones/results.go | 0
.../gophercloud/openstack/dns/v2/zones/urls.go | 0
.../gophercloud/gophercloud/openstack/doc.go | 0
.../gophercloud/openstack/endpoint_location.go | 0
.../gophercloud/gophercloud/openstack/errors.go | 0
.../openstack/identity/v2/tenants/doc.go | 0
.../openstack/identity/v2/tenants/requests.go | 0
.../openstack/identity/v2/tenants/results.go | 0
.../openstack/identity/v2/tenants/urls.go | 0
.../openstack/identity/v2/tokens/doc.go | 0
.../openstack/identity/v2/tokens/requests.go | 0
.../openstack/identity/v2/tokens/results.go | 0
.../openstack/identity/v2/tokens/urls.go | 0
.../openstack/identity/v3/tokens/doc.go | 0
.../openstack/identity/v3/tokens/requests.go | 0
.../openstack/identity/v3/tokens/results.go | 0
.../openstack/identity/v3/tokens/urls.go | 0
.../gophercloud/openstack/utils/base_endpoint.go | 0
.../gophercloud/openstack/utils/choose_version.go | 0
.../gophercloud/gophercloud/pagination/http.go | 0
.../gophercloud/gophercloud/pagination/linked.go | 0
.../gophercloud/gophercloud/pagination/marker.go | 0
.../gophercloud/gophercloud/pagination/pager.go | 0
.../gophercloud/gophercloud/pagination/pkg.go | 0
.../gophercloud/gophercloud/pagination/single.go | 0
.../gophercloud/gophercloud/params.go | 0
.../gophercloud/gophercloud/provider_client.go | 0
.../gophercloud/gophercloud/results.go | 0
.../gophercloud/gophercloud/service_client.go | 0
.../gophercloud/gophercloud/util.go | 0
.../grpc-ecosystem/grpc-gateway/LICENSE.txt | 0
.../grpc-gateway/internal/stream_chunk.pb.go | 0
.../grpc-ecosystem/grpc-gateway/runtime/context.go | 0
.../grpc-ecosystem/grpc-gateway/runtime/convert.go | 0
.../grpc-ecosystem/grpc-gateway/runtime/doc.go | 0
.../grpc-ecosystem/grpc-gateway/runtime/errors.go | 0
.../grpc-gateway/runtime/fieldmask.go | 0
.../grpc-ecosystem/grpc-gateway/runtime/handler.go | 0
.../grpc-gateway/runtime/marshal_httpbodyproto.go | 0
.../grpc-gateway/runtime/marshal_json.go | 0
.../grpc-gateway/runtime/marshal_jsonpb.go | 0
.../grpc-gateway/runtime/marshal_proto.go | 0
.../grpc-gateway/runtime/marshaler.go | 0
.../grpc-gateway/runtime/marshaler_registry.go | 0
.../grpc-ecosystem/grpc-gateway/runtime/mux.go | 0
.../grpc-ecosystem/grpc-gateway/runtime/pattern.go | 0
.../grpc-gateway/runtime/proto2_convert.go | 0
.../grpc-gateway/runtime/proto_errors.go | 0
.../grpc-ecosystem/grpc-gateway/runtime/query.go | 0
.../grpc-gateway/third_party/googleapis/LICENSE | 0
.../grpc-ecosystem/grpc-gateway/utilities/doc.go | 0
.../grpc-gateway/utilities/pattern.go | 0
.../grpc-gateway/utilities/readerfactory.go | 0
.../grpc-ecosystem/grpc-gateway/utilities/trie.go | 0
.../github.com => }/hashicorp/golang-lru/LICENSE | 0
.../hashicorp/golang-lru/simplelru/lru.go | 0
.../golang-lru/simplelru/lru_interface.go | 0
.../LICENSE => iij/doapi/LICENSE.md} | 0
.../lego/vendor/github.com => }/iij/doapi/api.go | 0
.../lego/vendor/github.com => }/iij/doapi/parse.go | 0
.../github.com => }/iij/doapi/protocol/Commit.go | 0
.../iij/doapi/protocol/RecordAdd.go | 0
.../iij/doapi/protocol/RecordDelete.go | 0
.../iij/doapi/protocol/RecordGet.go | 0
.../iij/doapi/protocol/RecordListGet.go | 0
.../github.com => }/iij/doapi/protocol/Reset.go | 0
.../iij/doapi/protocol/ZoneListGet.go | 0
.../github.com => }/iij/doapi/protocol/common.go | 0
.../github.com => }/jmespath/go-jmespath/LICENSE | 0
.../github.com => }/jmespath/go-jmespath/api.go | 0
.../jmespath/go-jmespath/astnodetype_string.go | 0
.../jmespath/go-jmespath/functions.go | 0
.../jmespath/go-jmespath/interpreter.go | 0
.../github.com => }/jmespath/go-jmespath/lexer.go | 0
.../github.com => }/jmespath/go-jmespath/parser.go | 0
.../jmespath/go-jmespath/toktype_string.go | 0
.../github.com => }/jmespath/go-jmespath/util.go | 0
.../vendor/github.com => }/kolo/xmlrpc/LICENSE | 0
.../vendor/github.com => }/kolo/xmlrpc/client.go | 0
.../vendor/github.com => }/kolo/xmlrpc/decoder.go | 0
.../vendor/github.com => }/kolo/xmlrpc/encoder.go | 0
.../vendor/github.com => }/kolo/xmlrpc/request.go | 0
.../vendor/github.com => }/kolo/xmlrpc/response.go | 0
.../vendor/github.com => }/kolo/xmlrpc/xmlrpc.go | 0
.../labbsr0x/bindman-dns-webhook/LICENSE | 0
.../bindman-dns-webhook/src/client/client.go | 0
.../bindman-dns-webhook/src/types/dnsmanager.go | 0
.../bindman-dns-webhook/src/types/dnsrecord.go | 0
.../bindman-dns-webhook/src/types/error.go | 0
.../vendor/github.com => }/labbsr0x/goh/LICENSE | 0
.../labbsr0x/goh/gohclient/gohclient.go | 0
.../vendor/github.com => }/linode/linodego/LICENSE | 0
.../github.com => }/linode/linodego/account.go | 0
.../linode/linodego/account_events.go | 0
.../linode/linodego/account_invoices.go | 0
.../linode/linodego/account_notifications.go | 0
.../linode/linodego/account_oauth_client.go | 0
.../linode/linodego/account_payments.go | 0
.../linode/linodego/account_settings.go | 0
.../linode/linodego/account_users.go | 0
.../github.com => }/linode/linodego/client.go | 0
.../linode/linodego/domain_records.go | 0
.../github.com => }/linode/linodego/domains.go | 0
.../github.com => }/linode/linodego/errors.go | 0
.../github.com => }/linode/linodego/images.go | 0
.../linode/linodego/instance_configs.go | 0
.../linode/linodego/instance_disks.go | 0
.../linode/linodego/instance_ips.go | 0
.../linode/linodego/instance_snapshots.go | 0
.../linode/linodego/instance_stats.go | 0
.../linode/linodego/instance_volumes.go | 0
.../github.com => }/linode/linodego/instances.go | 0
.../github.com => }/linode/linodego/kernels.go | 0
.../github.com => }/linode/linodego/longview.go | 0
.../linode/linodego/longview_subscriptions.go | 0
.../github.com => }/linode/linodego/managed.go | 0
.../github.com => }/linode/linodego/network_ips.go | 0
.../linode/linodego/network_pools.go | 0
.../linode/linodego/network_ranges.go | 0
.../linode/linodego/nodebalancer.go | 0
.../linode/linodego/nodebalancer_config_nodes.go | 0
.../linode/linodego/nodebalancer_configs.go | 0
.../github.com => }/linode/linodego/pagination.go | 0
.../github.com => }/linode/linodego/profile.go | 0
.../linode/linodego/profile_sshkeys.go | 0
.../linode/linodego/profile_tokens.go | 0
.../github.com => }/linode/linodego/regions.go | 0
.../github.com => }/linode/linodego/resources.go | 0
.../linode/linodego/stackscripts.go | 0
.../github.com => }/linode/linodego/support.go | 0
.../vendor/github.com => }/linode/linodego/tags.go | 0
.../github.com => }/linode/linodego/template.go | 0
.../github.com => }/linode/linodego/types.go | 0
.../vendor/github.com => }/linode/linodego/util.go | 0
.../github.com => }/linode/linodego/volumes.go | 0
.../github.com => }/linode/linodego/waitfor.go | 0
.../mapstructure => mitchellh/go-homedir}/LICENSE | 0
.../mitchellh/go-homedir/homedir.go | 0
.../go-homedir => mitchellh/mapstructure}/LICENSE | 0
.../mitchellh/mapstructure/decode_hooks.go | 0
.../mitchellh/mapstructure/error.go | 0
.../mitchellh/mapstructure/mapstructure.go | 0
.../vendor/github.com => }/namedotcom/go/LICENSE | 0
.../github.com => }/namedotcom/go/namecom/dns.go | 0
.../namedotcom/go/namecom/dnssecs.go | 0
.../namedotcom/go/namecom/domains.go | 0
.../namedotcom/go/namecom/emailforwardings.go | 0
.../github.com => }/namedotcom/go/namecom/hello.go | 0
.../namedotcom/go/namecom/namecom.go | 0
.../namedotcom/go/namecom/transfers.go | 0
.../namedotcom/go/namecom/urlforwardings.go | 0
.../namedotcom/go/namecom/vanitynameservers.go | 0
.../nrdcg/namesilo => nrdcg/auroradns}/LICENSE | 0
.../vendor/github.com => }/nrdcg/auroradns/auth.go | 0
.../github.com => }/nrdcg/auroradns/client.go | 0
.../github.com => }/nrdcg/auroradns/records.go | 0
.../github.com => }/nrdcg/auroradns/zones.go | 0
.../vendor/github.com => }/nrdcg/goinwx/LICENSE | 0
.../vendor/github.com => }/nrdcg/goinwx/account.go | 0
.../vendor/github.com => }/nrdcg/goinwx/contact.go | 0
.../vendor/github.com => }/nrdcg/goinwx/domain.go | 0
.../vendor/github.com => }/nrdcg/goinwx/goinwx.go | 0
.../github.com => }/nrdcg/goinwx/nameserver.go | 0
.../github.com => }/nrdcg/goinwx/response.go | 0
.../nrdcg/auroradns => nrdcg/namesilo}/LICENSE | 0
.../vendor/github.com => }/nrdcg/namesilo/auth.go | 0
.../vendor/github.com => }/nrdcg/namesilo/model.go | 0
.../github.com => }/nrdcg/namesilo/namesilo.go | 0
.../github.com => }/nrdcg/namesilo/params.go | 0
.../nrdcg/namesilo/zz_gen_client.go | 0
.../github.com => }/oracle/oci-go-sdk/LICENSE.txt | 0
.../oracle/oci-go-sdk/common/client.go | 0
.../oracle/oci-go-sdk/common/common.go | 0
.../oracle/oci-go-sdk/common/configuration.go | 0
.../oracle/oci-go-sdk/common/errors.go | 0
.../oracle/oci-go-sdk/common/helpers.go | 0
.../oracle/oci-go-sdk/common/http.go | 0
.../oracle/oci-go-sdk/common/http_signer.go | 0
.../oracle/oci-go-sdk/common/log.go | 0
.../oracle/oci-go-sdk/common/retry.go | 0
.../oracle/oci-go-sdk/common/version.go | 0
.../create_steering_policy_attachment_details.go | 0
..._steering_policy_attachment_request_response.go | 0
.../dns/create_steering_policy_details.go | 0
.../dns/create_steering_policy_request_response.go | 0
.../oracle/oci-go-sdk/dns/create_zone_details.go | 0
.../oci-go-sdk/dns/create_zone_request_response.go | 0
.../dns/delete_domain_records_request_response.go | 0
.../dns/delete_r_r_set_request_response.go | 0
..._steering_policy_attachment_request_response.go | 0
.../dns/delete_steering_policy_request_response.go | 0
.../oci-go-sdk/dns/delete_zone_request_response.go | 0
.../oracle/oci-go-sdk/dns/dns_client.go | 0
.../oracle/oci-go-sdk/dns/external_master.go | 0
.../dns/get_domain_records_request_response.go | 0
.../oci-go-sdk/dns/get_r_r_set_request_response.go | 0
..._steering_policy_attachment_request_response.go | 0
.../dns/get_steering_policy_request_response.go | 0
.../dns/get_zone_records_request_response.go | 0
.../oci-go-sdk/dns/get_zone_request_response.go | 0
.../dns/list_steering_policies_request_response.go | 0
...steering_policy_attachments_request_response.go | 0
.../oci-go-sdk/dns/list_zones_request_response.go | 0
.../oracle/oci-go-sdk/dns/nameserver.go | 0
.../oci-go-sdk/dns/patch_domain_records_details.go | 0
.../dns/patch_domain_records_request_response.go | 0
.../dns/patch_r_r_set_request_response.go | 0
.../oracle/oci-go-sdk/dns/patch_rr_set_details.go | 0
.../oci-go-sdk/dns/patch_zone_records_details.go | 0
.../dns/patch_zone_records_request_response.go | 0
.../oracle/oci-go-sdk/dns/record.go | 0
.../oracle/oci-go-sdk/dns/record_collection.go | 0
.../oracle/oci-go-sdk/dns/record_details.go | 0
.../oracle/oci-go-sdk/dns/record_operation.go | 0
.../oracle/oci-go-sdk/dns/rr_set.go | 0
.../oracle/oci-go-sdk/dns/sort_order.go | 0
.../oracle/oci-go-sdk/dns/steering_policy.go | 0
.../oci-go-sdk/dns/steering_policy_answer.go | 0
.../oci-go-sdk/dns/steering_policy_attachment.go | 0
.../dns/steering_policy_attachment_summary.go | 0
.../dns/steering_policy_filter_answer_data.go | 0
.../oci-go-sdk/dns/steering_policy_filter_rule.go | 0
.../dns/steering_policy_filter_rule_case.go | 0
.../oci-go-sdk/dns/steering_policy_health_rule.go | 0
.../dns/steering_policy_health_rule_case.go | 0
.../oci-go-sdk/dns/steering_policy_limit_rule.go | 0
.../dns/steering_policy_limit_rule_case.go | 0
.../dns/steering_policy_priority_answer_data.go | 0
.../dns/steering_policy_priority_rule.go | 0
.../dns/steering_policy_priority_rule_case.go | 0
.../oracle/oci-go-sdk/dns/steering_policy_rule.go | 0
.../oci-go-sdk/dns/steering_policy_summary.go | 0
.../dns/steering_policy_weighted_answer_data.go | 0
.../dns/steering_policy_weighted_rule.go | 0
.../dns/steering_policy_weighted_rule_case.go | 0
.../github.com => }/oracle/oci-go-sdk/dns/tsig.go | 0
.../dns/update_domain_records_details.go | 0
.../dns/update_domain_records_request_response.go | 0
.../dns/update_r_r_set_request_response.go | 0
.../oracle/oci-go-sdk/dns/update_rr_set_details.go | 0
.../update_steering_policy_attachment_details.go | 0
..._steering_policy_attachment_request_response.go | 0
.../dns/update_steering_policy_details.go | 0
.../dns/update_steering_policy_request_response.go | 0
.../oracle/oci-go-sdk/dns/update_zone_details.go | 0
.../oci-go-sdk/dns/update_zone_records_details.go | 0
.../dns/update_zone_records_request_response.go | 0
.../oci-go-sdk/dns/update_zone_request_response.go | 0
.../github.com => }/oracle/oci-go-sdk/dns/zone.go | 0
.../oracle/oci-go-sdk/dns/zone_summary.go | 0
.../lego/vendor/github.com => }/ovh/go-ovh/LICENSE | 0
.../ovh/go-ovh/ovh/configuration.go | 0
.../github.com => }/ovh/go-ovh/ovh/consumer_key.go | 0
.../vendor/github.com => }/ovh/go-ovh/ovh/error.go | 0
.../github.com => }/ovh/go-ovh/ovh/logger.go | 0
.../vendor/github.com => }/ovh/go-ovh/ovh/ovh.go | 0
.../github.com => }/pmezard/go-difflib/LICENSE | 0
.../pmezard/go-difflib/difflib/difflib.go | 0
.../github.com => }/rainycape/memcache/LICENSE | 0
.../github.com => }/rainycape/memcache/addr.go | 0
.../github.com => }/rainycape/memcache/io.go | 0
.../github.com => }/rainycape/memcache/memcache.go | 0
.../github.com => }/rainycape/memcache/server.go | 0
.../rainycape/memcache/util_safe.go | 0
.../rainycape/memcache/util_unsafe.go | 0
.../github.com => }/sacloud/libsacloud/LICENSE.txt | 0
.../sacloud/libsacloud/api/archive.go | 0
.../sacloud/libsacloud/api/archive_gen.go | 0
.../sacloud/libsacloud/api/auth_status.go | 0
.../sacloud/libsacloud/api/auto_backup.go | 0
.../sacloud/libsacloud/api/auto_backup_gen.go | 0
.../sacloud/libsacloud/api/base_api.go | 0
.../github.com => }/sacloud/libsacloud/api/bill.go | 0
.../sacloud/libsacloud/api/bridge.go | 0
.../sacloud/libsacloud/api/bridge_gen.go | 0
.../sacloud/libsacloud/api/cdrom.go | 0
.../sacloud/libsacloud/api/cdrom_gen.go | 0
.../sacloud/libsacloud/api/client.go | 0
.../sacloud/libsacloud/api/coupon.go | 0
.../sacloud/libsacloud/api/database.go | 0
.../sacloud/libsacloud/api/database_gen.go | 0
.../github.com => }/sacloud/libsacloud/api/disk.go | 0
.../sacloud/libsacloud/api/disk_gen.go | 0
.../github.com => }/sacloud/libsacloud/api/dns.go | 0
.../sacloud/libsacloud/api/dns_gen.go | 0
.../github.com => }/sacloud/libsacloud/api/doc.go | 0
.../sacloud/libsacloud/api/error.go | 0
.../github.com => }/sacloud/libsacloud/api/gslb.go | 0
.../sacloud/libsacloud/api/gslb_gen.go | 0
.../github.com => }/sacloud/libsacloud/api/icon.go | 0
.../sacloud/libsacloud/api/icon_gen.go | 0
.../sacloud/libsacloud/api/interface.go | 0
.../sacloud/libsacloud/api/interface_gen.go | 0
.../sacloud/libsacloud/api/internet.go | 0
.../sacloud/libsacloud/api/internet_gen.go | 0
.../sacloud/libsacloud/api/ipaddress.go | 0
.../sacloud/libsacloud/api/ipaddress_gen.go | 0
.../sacloud/libsacloud/api/ipv6addr.go | 0
.../sacloud/libsacloud/api/ipv6addr_gen.go | 0
.../sacloud/libsacloud/api/ipv6net.go | 0
.../sacloud/libsacloud/api/ipv6net_gen.go | 0
.../sacloud/libsacloud/api/license.go | 0
.../sacloud/libsacloud/api/license_gen.go | 0
.../sacloud/libsacloud/api/load_balancer.go | 0
.../sacloud/libsacloud/api/load_balancer_gen.go | 0
.../sacloud/libsacloud/api/mobile_gateway.go | 0
.../sacloud/libsacloud/api/mobile_gateway_gen.go | 0
.../sacloud/libsacloud/api/newsfeed.go | 0
.../github.com => }/sacloud/libsacloud/api/nfs.go | 0
.../sacloud/libsacloud/api/nfs_gen.go | 0
.../github.com => }/sacloud/libsacloud/api/note.go | 0
.../sacloud/libsacloud/api/note_gen.go | 0
.../sacloud/libsacloud/api/packet_filter.go | 0
.../sacloud/libsacloud/api/packet_filter_gen.go | 0
.../sacloud/libsacloud/api/polling.go | 0
.../sacloud/libsacloud/api/private_host.go | 0
.../sacloud/libsacloud/api/private_host_gen.go | 0
.../sacloud/libsacloud/api/product_disk.go | 0
.../sacloud/libsacloud/api/product_disk_gen.go | 0
.../sacloud/libsacloud/api/product_internet.go | 0
.../sacloud/libsacloud/api/product_internet_gen.go | 0
.../sacloud/libsacloud/api/product_license.go | 0
.../sacloud/libsacloud/api/product_license_gen.go | 0
.../sacloud/libsacloud/api/product_private_host.go | 0
.../libsacloud/api/product_private_host_gen.go | 0
.../sacloud/libsacloud/api/product_server.go | 0
.../sacloud/libsacloud/api/product_server_gen.go | 0
.../sacloud/libsacloud/api/proxylb.go | 0
.../sacloud/libsacloud/api/proxylb_gen.go | 0
.../sacloud/libsacloud/api/public_price.go | 0
.../sacloud/libsacloud/api/public_price_gen.go | 0
.../sacloud/libsacloud/api/rate_limit_transport.go | 0
.../sacloud/libsacloud/api/region.go | 0
.../sacloud/libsacloud/api/region_gen.go | 0
.../sacloud/libsacloud/api/server.go | 0
.../sacloud/libsacloud/api/server_gen.go | 0
.../github.com => }/sacloud/libsacloud/api/sim.go | 0
.../sacloud/libsacloud/api/sim_gen.go | 0
.../sacloud/libsacloud/api/simple_monitor.go | 0
.../sacloud/libsacloud/api/simple_monitor_gen.go | 0
.../sacloud/libsacloud/api/ssh_key.go | 0
.../sacloud/libsacloud/api/ssh_key_gen.go | 0
.../sacloud/libsacloud/api/subnet.go | 0
.../sacloud/libsacloud/api/subnet_gen.go | 0
.../sacloud/libsacloud/api/switch.go | 0
.../sacloud/libsacloud/api/switch_gen.go | 0
.../sacloud/libsacloud/api/vpc_router.go | 0
.../sacloud/libsacloud/api/vpc_router_gen.go | 0
.../sacloud/libsacloud/api/webaccel.go | 0
.../sacloud/libsacloud/api/webaccel_search.go | 0
.../github.com => }/sacloud/libsacloud/api/zone.go | 0
.../sacloud/libsacloud/api/zone_gen.go | 0
.../sacloud/libsacloud/libsacloud.go | 0
.../sacloud/libsacloud/sacloud/account.go | 0
.../sacloud/libsacloud/sacloud/appliance.go | 0
.../sacloud/libsacloud/sacloud/archive.go | 0
.../sacloud/libsacloud/sacloud/auth_status.go | 0
.../sacloud/libsacloud/sacloud/auto_backup.go | 0
.../sacloud/libsacloud/sacloud/bill.go | 0
.../sacloud/libsacloud/sacloud/bridge.go | 0
.../sacloud/libsacloud/sacloud/cdrom.go | 0
.../sacloud/libsacloud/sacloud/common_types.go | 0
.../sacloud/libsacloud/sacloud/coupon.go | 0
.../sacloud/libsacloud/sacloud/database.go | 0
.../sacloud/libsacloud/sacloud/database_status.go | 0
.../libsacloud/sacloud/delete_cache_result.go | 0
.../sacloud/libsacloud/sacloud/disk.go | 0
.../sacloud/libsacloud/sacloud/dns.go | 0
.../sacloud/libsacloud/sacloud/doc.go | 0
.../sacloud/libsacloud/sacloud/feed.go | 0
.../sacloud/libsacloud/sacloud/ftp_server.go | 0
.../sacloud/libsacloud/sacloud/gslb.go | 0
.../sacloud/libsacloud/sacloud/host.go | 0
.../sacloud/libsacloud/sacloud/icon.go | 0
.../sacloud/libsacloud/sacloud/instance.go | 0
.../sacloud/libsacloud/sacloud/interface.go | 0
.../sacloud/libsacloud/sacloud/internet.go | 0
.../sacloud/libsacloud/sacloud/ipaddress.go | 0
.../sacloud/libsacloud/sacloud/ipv6addr.go | 0
.../sacloud/libsacloud/sacloud/ipv6net.go | 0
.../sacloud/libsacloud/sacloud/license.go | 0
.../sacloud/libsacloud/sacloud/loadbalancer.go | 0
.../sacloud/libsacloud/sacloud/lock.go | 0
.../sacloud/libsacloud/sacloud/member.go | 0
.../sacloud/libsacloud/sacloud/mobile_gateway.go | 0
.../sacloud/libsacloud/sacloud/monitor.go | 0
.../sacloud/libsacloud/sacloud/nfs.go | 0
.../sacloud/libsacloud/sacloud/note.go | 0
.../libsacloud/sacloud/ostype/archive_ostype.go | 0
.../sacloud/ostype/archiveostypes_string.go | 0
.../sacloud/libsacloud/sacloud/packet_filter.go | 0
.../sacloud/libsacloud/sacloud/private_host.go | 0
.../sacloud/libsacloud/sacloud/product_disk.go | 0
.../sacloud/libsacloud/sacloud/product_internet.go | 0
.../sacloud/libsacloud/sacloud/product_license.go | 0
.../libsacloud/sacloud/product_privatehost.go | 0
.../sacloud/libsacloud/sacloud/product_server.go | 0
.../libsacloud/sacloud/prop_assigned_cpu.go | 0
.../libsacloud/sacloud/prop_assigned_memory.go | 0
.../libsacloud/sacloud/prop_availability.go | 0
.../sacloud/libsacloud/sacloud/prop_bundle_info.go | 0
.../sacloud/libsacloud/sacloud/prop_class.go | 0
.../libsacloud/sacloud/prop_connected_switches.go | 0
.../sacloud/libsacloud/sacloud/prop_copy_source.go | 0
.../sacloud/libsacloud/sacloud/prop_cpu.go | 0
.../sacloud/libsacloud/sacloud/prop_description.go | 0
.../libsacloud/sacloud/prop_disk_connection.go | 0
.../sacloud/libsacloud/sacloud/prop_disk_size.go | 0
.../sacloud/libsacloud/sacloud/prop_disks.go | 0
.../libsacloud/sacloud/prop_distant_from.go | 0
.../sacloud/libsacloud/sacloud/prop_host.go | 0
.../sacloud/libsacloud/sacloud/prop_host_name.go | 0
.../sacloud/libsacloud/sacloud/prop_icon.go | 0
.../sacloud/libsacloud/sacloud/prop_instance.go | 0
.../libsacloud/sacloud/prop_interface_driver.go | 0
.../sacloud/libsacloud/sacloud/prop_interfaces.go | 0
.../sacloud/libsacloud/sacloud/prop_job_status.go | 0
.../sacloud/libsacloud/sacloud/prop_memory.go | 0
.../sacloud/libsacloud/sacloud/prop_name.go | 0
.../sacloud/libsacloud/sacloud/prop_note_class.go | 0
.../libsacloud/sacloud/prop_original_archive_id.go | 0
.../sacloud/libsacloud/sacloud/prop_plan_id.go | 0
.../libsacloud/sacloud/prop_private_host.go | 0
.../libsacloud/sacloud/prop_private_host_plan.go | 0
.../sacloud/libsacloud/sacloud/prop_region.go | 0
.../sacloud/libsacloud/sacloud/prop_scope.go | 0
.../sacloud/libsacloud/sacloud/prop_server.go | 0
.../sacloud/libsacloud/sacloud/prop_server_plan.go | 0
.../libsacloud/sacloud/prop_service_class.go | 0
.../sacloud/libsacloud/sacloud/prop_storage.go | 0
.../libsacloud/sacloud/prop_storage_class.go | 0
.../sacloud/libsacloud/sacloud/prop_switch.go | 0
.../sacloud/libsacloud/sacloud/prop_tags.go | 0
.../sacloud/libsacloud/sacloud/prop_timestamp.go | 0
.../libsacloud/sacloud/prop_wait_disk_migration.go | 0
.../sacloud/libsacloud/sacloud/prop_zone.go | 0
.../sacloud/libsacloud/sacloud/proxylb.go | 0
.../sacloud/libsacloud/sacloud/public_price.go | 0
.../sacloud/libsacloud/sacloud/region.go | 0
.../sacloud/libsacloud/sacloud/server.go | 0
.../sacloud/libsacloud/sacloud/sim.go | 0
.../sacloud/libsacloud/sacloud/simple_monitor.go | 0
.../sacloud/sitetosite_connection_detail.go | 0
.../sacloud/libsacloud/sacloud/ssh_key.go | 0
.../sacloud/libsacloud/sacloud/storage.go | 0
.../sacloud/libsacloud/sacloud/subnet.go | 0
.../sacloud/libsacloud/sacloud/switch.go | 0
.../sacloud/libsacloud/sacloud/vpc_router.go | 0
.../libsacloud/sacloud/vpc_router_setting.go | 0
.../libsacloud/sacloud/vpc_router_status.go | 0
.../sacloud/libsacloud/sacloud/webaccel.go | 0
.../sacloud/libsacloud/sacloud/zone.go | 0
.../sacloud/libsacloud/utils/mutexkv/mutexkv.go | 0
.../vendor/github.com => }/sirupsen/logrus/LICENSE | 0
.../github.com => }/sirupsen/logrus/alt_exit.go | 0
.../vendor/github.com => }/sirupsen/logrus/doc.go | 0
.../github.com => }/sirupsen/logrus/entry.go | 0
.../github.com => }/sirupsen/logrus/exported.go | 0
.../github.com => }/sirupsen/logrus/formatter.go | 0
.../github.com => }/sirupsen/logrus/hooks.go | 0
.../sirupsen/logrus/json_formatter.go | 0
.../github.com => }/sirupsen/logrus/logger.go | 0
.../github.com => }/sirupsen/logrus/logrus.go | 0
.../sirupsen/logrus/terminal_bsd.go | 0
.../sirupsen/logrus/terminal_check_appengine.go | 0
.../sirupsen/logrus/terminal_check_notappengine.go | 0
.../sirupsen/logrus/terminal_linux.go | 0
.../sirupsen/logrus/text_formatter.go | 0
.../github.com => }/sirupsen/logrus/writer.go | 0
.../vendor/github.com => }/stretchr/objx/LICENSE | 0
.../github.com => }/stretchr/objx/accessors.go | 0
.../github.com => }/stretchr/objx/constants.go | 0
.../github.com => }/stretchr/objx/conversions.go | 0
.../vendor/github.com => }/stretchr/objx/doc.go | 0
.../vendor/github.com => }/stretchr/objx/map.go | 0
.../github.com => }/stretchr/objx/mutations.go | 0
.../github.com => }/stretchr/objx/security.go | 0
.../vendor/github.com => }/stretchr/objx/tests.go | 0
.../stretchr/objx/type_specific_codegen.go | 0
.../vendor/github.com => }/stretchr/objx/value.go | 0
.../github.com => }/stretchr/testify/LICENSE | 0
.../stretchr/testify/assert/assertion_format.go | 0
.../stretchr/testify/assert/assertion_forward.go | 0
.../stretchr/testify/assert/assertions.go | 0
.../github.com => }/stretchr/testify/assert/doc.go | 0
.../stretchr/testify/assert/errors.go | 0
.../stretchr/testify/assert/forward_assertions.go | 0
.../stretchr/testify/assert/http_assertions.go | 0
.../github.com => }/stretchr/testify/mock/doc.go | 0
.../github.com => }/stretchr/testify/mock/mock.go | 0
.../stretchr/testify/require/doc.go | 0
.../testify/require/forward_requirements.go | 0
.../stretchr/testify/require/require.go | 0
.../stretchr/testify/require/require_forward.go | 0
.../stretchr/testify/require/requirements.go | 0
.../github.com => }/stretchr/testify/suite/doc.go | 0
.../stretchr/testify/suite/interfaces.go | 0
.../stretchr/testify/suite/suite.go | 0
.../github.com => }/timewasted/linode/LICENSE | 0
.../github.com => }/timewasted/linode/dns/dns.go | 0
.../timewasted/linode/dns/domain.go | 0
.../timewasted/linode/dns/resource.go | 0
.../github.com => }/timewasted/linode/errors.go | 0
.../github.com => }/timewasted/linode/linode.go | 0
.../timewasted/linode/parameters.go | 0
.../github.com => }/transip/gotransip/LICENSE | 0
.../github.com => }/transip/gotransip/api.go | 0
.../github.com => }/transip/gotransip/client.go | 0
.../transip/gotransip/domain/api.go | 0
.../transip/gotransip/domain/domain.go | 0
.../github.com => }/transip/gotransip/sign.go | 0
.../github.com => }/transip/gotransip/soap.go | 0
.../github.com => }/transip/gotransip/util/util.go | 0
.../lego/vendor/github.com => }/urfave/cli/LICENSE | 0
.../lego/vendor/github.com => }/urfave/cli/app.go | 0
.../vendor/github.com => }/urfave/cli/category.go | 0
.../lego/vendor/github.com => }/urfave/cli/cli.go | 0
.../vendor/github.com => }/urfave/cli/command.go | 0
.../vendor/github.com => }/urfave/cli/context.go | 0
.../vendor/github.com => }/urfave/cli/errors.go | 0
.../lego/vendor/github.com => }/urfave/cli/flag.go | 0
.../github.com => }/urfave/cli/flag_generated.go | 0
.../vendor/github.com => }/urfave/cli/funcs.go | 0
.../lego/vendor/github.com => }/urfave/cli/help.go | 0
.../vendor/github.com => }/vultr/govultr/LICENSE | 0
.../github.com => }/vultr/govultr/account.go | 0
.../vendor/github.com => }/vultr/govultr/api.go | 0
.../github.com => }/vultr/govultr/application.go | 0
.../vendor/github.com => }/vultr/govultr/backup.go | 0
.../vultr/govultr/bare_metal_server.go | 0
.../github.com => }/vultr/govultr/block_storage.go | 0
.../github.com => }/vultr/govultr/dns_domains.go | 0
.../github.com => }/vultr/govultr/dns_records.go | 0
.../vultr/govultr/firewall_group.go | 0
.../github.com => }/vultr/govultr/firewall_rule.go | 0
.../github.com => }/vultr/govultr/govultr.go | 0
.../vendor/github.com => }/vultr/govultr/iso.go | 0
.../github.com => }/vultr/govultr/network.go | 0
.../vendor/github.com => }/vultr/govultr/os.go | 0
.../vendor/github.com => }/vultr/govultr/plans.go | 0
.../github.com => }/vultr/govultr/regions.go | 0
.../github.com => }/vultr/govultr/reserved_ip.go | 0
.../vendor/github.com => }/vultr/govultr/server.go | 0
.../github.com => }/vultr/govultr/snapshot.go | 0
.../github.com => }/vultr/govultr/ssh_key.go | 0
.../vultr/govultr/startup_script.go | 0
.../vendor/github.com => }/vultr/govultr/user.go | 0
.../grpc => go.opencensus.io}/AUTHORS | 0
.../lego/vendor => }/go.opencensus.io/LICENSE | 0
.../go.opencensus.io/internal/internal.go | 0
.../go.opencensus.io/internal/sanitize.go | 0
.../internal/tagencoding/tagencoding.go | 0
.../go.opencensus.io/internal/traceinternals.go | 0
.../go.opencensus.io/metric/metricdata/doc.go | 0
.../go.opencensus.io/metric/metricdata/exemplar.go | 0
.../go.opencensus.io/metric/metricdata/label.go | 0
.../go.opencensus.io/metric/metricdata/metric.go | 0
.../go.opencensus.io/metric/metricdata/point.go | 0
.../metric/metricdata/type_string.go | 0
.../go.opencensus.io/metric/metricdata/unit.go | 0
.../metric/metricproducer/manager.go | 0
.../metric/metricproducer/producer.go | 0
.../vendor => }/go.opencensus.io/opencensus.go | 0
.../go.opencensus.io/plugin/ocgrpc/client.go | 0
.../plugin/ocgrpc/client_metrics.go | 0
.../plugin/ocgrpc/client_stats_handler.go | 0
.../go.opencensus.io/plugin/ocgrpc/doc.go | 0
.../go.opencensus.io/plugin/ocgrpc/server.go | 0
.../plugin/ocgrpc/server_metrics.go | 0
.../plugin/ocgrpc/server_stats_handler.go | 0
.../go.opencensus.io/plugin/ocgrpc/stats_common.go | 0
.../go.opencensus.io/plugin/ocgrpc/trace_common.go | 0
.../go.opencensus.io/plugin/ochttp/client.go | 0
.../go.opencensus.io/plugin/ochttp/client_stats.go | 0
.../go.opencensus.io/plugin/ochttp/doc.go | 0
.../plugin/ochttp/propagation/b3/b3.go | 0
.../ochttp/propagation/tracecontext/propagation.go | 0
.../go.opencensus.io/plugin/ochttp/route.go | 0
.../go.opencensus.io/plugin/ochttp/server.go | 0
.../plugin/ochttp/span_annotating_client_trace.go | 0
.../go.opencensus.io/plugin/ochttp/stats.go | 0
.../go.opencensus.io/plugin/ochttp/trace.go | 0
.../go.opencensus.io/plugin/ochttp/wrapped_body.go | 0
.../go.opencensus.io/resource/resource.go | 0
.../lego/vendor => }/go.opencensus.io/stats/doc.go | 0
.../go.opencensus.io/stats/internal/record.go | 0
.../vendor => }/go.opencensus.io/stats/measure.go | 0
.../go.opencensus.io/stats/measure_float64.go | 0
.../go.opencensus.io/stats/measure_int64.go | 0
.../vendor => }/go.opencensus.io/stats/record.go | 0
.../vendor => }/go.opencensus.io/stats/units.go | 0
.../go.opencensus.io/stats/view/aggregation.go | 0
.../stats/view/aggregation_data.go | 0
.../go.opencensus.io/stats/view/collector.go | 0
.../vendor => }/go.opencensus.io/stats/view/doc.go | 0
.../go.opencensus.io/stats/view/export.go | 0
.../go.opencensus.io/stats/view/view.go | 0
.../go.opencensus.io/stats/view/view_to_metric.go | 0
.../go.opencensus.io/stats/view/worker.go | 0
.../go.opencensus.io/stats/view/worker_commands.go | 0
.../vendor => }/go.opencensus.io/tag/context.go | 0
.../lego/vendor => }/go.opencensus.io/tag/doc.go | 0
.../lego/vendor => }/go.opencensus.io/tag/key.go | 0
.../lego/vendor => }/go.opencensus.io/tag/map.go | 0
.../vendor => }/go.opencensus.io/tag/map_codec.go | 0
.../vendor => }/go.opencensus.io/tag/profile_19.go | 0
.../go.opencensus.io/tag/profile_not19.go | 0
.../vendor => }/go.opencensus.io/tag/validate.go | 0
.../go.opencensus.io/trace/basetypes.go | 0
.../vendor => }/go.opencensus.io/trace/config.go | 0
.../lego/vendor => }/go.opencensus.io/trace/doc.go | 0
.../go.opencensus.io/trace/evictedqueue.go | 0
.../vendor => }/go.opencensus.io/trace/export.go | 0
.../go.opencensus.io/trace/internal/internal.go | 0
.../vendor => }/go.opencensus.io/trace/lrumap.go | 0
.../trace/propagation/propagation.go | 0
.../vendor => }/go.opencensus.io/trace/sampling.go | 0
.../go.opencensus.io/trace/spanbucket.go | 0
.../go.opencensus.io/trace/spanstore.go | 0
.../go.opencensus.io/trace/status_codes.go | 0
.../vendor => }/go.opencensus.io/trace/trace.go | 0
.../go.opencensus.io/trace/trace_go11.go | 0
.../go.opencensus.io/trace/trace_nongo11.go | 0
.../trace/tracestate/tracestate.go | 0
.../lego/vendor => }/go.uber.org/ratelimit/LICENSE | 0
.../go.uber.org/ratelimit/internal/clock/clock.go | 0
.../ratelimit/internal/clock/interface.go | 0
.../go.uber.org/ratelimit/internal/clock/real.go | 0
.../go.uber.org/ratelimit/internal/clock/timers.go | 0
.../vendor => }/go.uber.org/ratelimit/ratelimit.go | 0
.../lego/vendor => }/google.golang.org/api/AUTHORS | 0
.../vendor => }/google.golang.org/api/CONTRIBUTORS | 0
.../lego/vendor => }/google.golang.org/api/LICENSE | 0
.../google.golang.org/api/dns/v1/dns-gen.go | 0
.../google.golang.org/api/gensupport/backoff.go | 0
.../google.golang.org/api/gensupport/buffer.go | 0
.../google.golang.org/api/gensupport/doc.go | 0
.../google.golang.org/api/gensupport/header.go | 0
.../google.golang.org/api/gensupport/json.go | 0
.../google.golang.org/api/gensupport/jsonfloat.go | 0
.../google.golang.org/api/gensupport/media.go | 0
.../google.golang.org/api/gensupport/params.go | 0
.../google.golang.org/api/gensupport/resumable.go | 0
.../google.golang.org/api/gensupport/retry.go | 0
.../google.golang.org/api/gensupport/send.go | 0
.../google.golang.org/api/googleapi/googleapi.go | 0
.../api/googleapi/internal/uritemplates/LICENSE | 0
.../internal/uritemplates/uritemplates.go | 0
.../api/googleapi/internal/uritemplates/utils.go | 0
.../api/googleapi/transport/apikey.go | 0
.../google.golang.org/api/googleapi/types.go | 0
.../google.golang.org/api/internal/creds.go | 0
.../google.golang.org/api/internal/pool.go | 0
.../google.golang.org/api/internal/settings.go | 0
.../api/option/credentials_go19.go | 0
.../api/option/credentials_notgo19.go | 0
.../google.golang.org/api/option/option.go | 0
.../api/support/bundler/bundler.go | 0
.../google.golang.org/api/transport/http/dial.go | 0
.../api/transport/http/dial_appengine.go | 0
.../transport/http/internal/propagation/http.go | 0
.../grpc => google.golang.org/appengine}/LICENSE | 0
.../google.golang.org/appengine/appengine.go | 0
.../google.golang.org/appengine/appengine_vm.go | 0
.../google.golang.org/appengine/errors.go | 0
.../google.golang.org/appengine/identity.go | 0
.../google.golang.org/appengine/internal/api.go | 0
.../appengine/internal/api_classic.go | 0
.../appengine/internal/api_common.go | 0
.../appengine/internal/api_pre17.go | 0
.../google.golang.org/appengine/internal/app_id.go | 0
.../app_identity/app_identity_service.pb.go | 0
.../appengine/internal/base/api_base.pb.go | 0
.../internal/datastore/datastore_v3.pb.go | 0
.../appengine/internal/identity.go | 0
.../appengine/internal/identity_classic.go | 0
.../appengine/internal/identity_vm.go | 0
.../appengine/internal/internal.go | 0
.../appengine/internal/log/log_service.pb.go | 0
.../google.golang.org/appengine/internal/main.go | 0
.../appengine/internal/main_vm.go | 0
.../appengine/internal/metadata.go | 0
.../internal/modules/modules_service.pb.go | 0
.../google.golang.org/appengine/internal/net.go | 0
.../appengine/internal/remote_api/remote_api.pb.go | 0
.../appengine/internal/transaction.go | 0
.../internal/urlfetch/urlfetch_service.pb.go | 0
.../google.golang.org/appengine/namespace.go | 0
.../google.golang.org/appengine/timeout.go | 0
.../appengine/urlfetch/urlfetch.go | 0
.../vendor => }/google.golang.org/genproto/LICENSE | 0
.../googleapis/api/httpbody/httpbody.pb.go | 0
.../genproto/googleapis/rpc/status/status.pb.go | 0
.../genproto/protobuf/field_mask/field_mask.pb.go | 0
.../grpc}/AUTHORS | 0
.../appengine => google.golang.org/grpc}/LICENSE | 0
.../vendor => }/google.golang.org/grpc/backoff.go | 0
.../vendor => }/google.golang.org/grpc/balancer.go | 0
.../google.golang.org/grpc/balancer/balancer.go | 0
.../grpc/balancer/base/balancer.go | 0
.../google.golang.org/grpc/balancer/base/base.go | 0
.../grpc/balancer/roundrobin/roundrobin.go | 0
.../grpc/balancer_conn_wrappers.go | 0
.../google.golang.org/grpc/balancer_v1_wrapper.go | 0
.../binarylog/grpc_binarylog_v1/binarylog.pb.go | 0
.../vendor => }/google.golang.org/grpc/call.go | 0
.../google.golang.org/grpc/clientconn.go | 0
.../vendor => }/google.golang.org/grpc/codec.go | 0
.../google.golang.org/grpc/codes/code_string.go | 0
.../google.golang.org/grpc/codes/codes.go | 0
.../grpc/connectivity/connectivity.go | 0
.../grpc/credentials/credentials.go | 0
.../grpc/credentials/internal/syscallconn.go | 0
.../credentials/internal/syscallconn_appengine.go | 0
.../google.golang.org/grpc/credentials/tls13.go | 0
.../google.golang.org/grpc/dialoptions.go | 0
.../lego/vendor => }/google.golang.org/grpc/doc.go | 0
.../google.golang.org/grpc/encoding/encoding.go | 0
.../google.golang.org/grpc/encoding/proto/proto.go | 0
.../google.golang.org/grpc/grpclog/grpclog.go | 0
.../google.golang.org/grpc/grpclog/logger.go | 0
.../google.golang.org/grpc/grpclog/loggerv2.go | 0
.../google.golang.org/grpc/interceptor.go | 0
.../grpc/internal/backoff/backoff.go | 0
.../grpc/internal/binarylog/binarylog.go | 0
.../grpc/internal/binarylog/binarylog_testutil.go | 0
.../grpc/internal/binarylog/env_config.go | 0
.../grpc/internal/binarylog/method_logger.go | 0
.../grpc/internal/binarylog/sink.go | 0
.../grpc/internal/binarylog/util.go | 0
.../grpc/internal/channelz/funcs.go | 0
.../grpc/internal/channelz/types.go | 0
.../grpc/internal/channelz/types_linux.go | 0
.../grpc/internal/channelz/types_nonlinux.go | 0
.../grpc/internal/channelz/util_linux.go | 0
.../grpc/internal/channelz/util_nonlinux.go | 0
.../grpc/internal/envconfig/envconfig.go | 0
.../grpc/internal/grpcrand/grpcrand.go | 0
.../grpc/internal/grpcsync/event.go | 0
.../google.golang.org/grpc/internal/internal.go | 0
.../grpc/internal/syscall/syscall_linux.go | 0
.../grpc/internal/syscall/syscall_nonlinux.go | 0
.../grpc/internal/transport/bdp_estimator.go | 0
.../grpc/internal/transport/controlbuf.go | 0
.../grpc/internal/transport/defaults.go | 0
.../grpc/internal/transport/flowcontrol.go | 0
.../grpc/internal/transport/handler_server.go | 0
.../grpc/internal/transport/http2_client.go | 0
.../grpc/internal/transport/http2_server.go | 0
.../grpc/internal/transport/http_util.go | 0
.../grpc/internal/transport/log.go | 0
.../grpc/internal/transport/transport.go | 0
.../google.golang.org/grpc/keepalive/keepalive.go | 0
.../google.golang.org/grpc/metadata/metadata.go | 0
.../google.golang.org/grpc/naming/dns_resolver.go | 0
.../google.golang.org/grpc/naming/naming.go | 0
.../google.golang.org/grpc/peer/peer.go | 0
.../google.golang.org/grpc/picker_wrapper.go | 0
.../google.golang.org/grpc/pickfirst.go | 0
.../vendor => }/google.golang.org/grpc/proxy.go | 0
.../grpc/resolver/dns/dns_resolver.go | 0
.../grpc/resolver/passthrough/passthrough.go | 0
.../google.golang.org/grpc/resolver/resolver.go | 0
.../grpc/resolver_conn_wrapper.go | 0
.../vendor => }/google.golang.org/grpc/rpc_util.go | 0
.../vendor => }/google.golang.org/grpc/server.go | 0
.../google.golang.org/grpc/service_config.go | 0
.../google.golang.org/grpc/stats/handlers.go | 0
.../google.golang.org/grpc/stats/stats.go | 0
.../google.golang.org/grpc/status/status.go | 0
.../vendor => }/google.golang.org/grpc/stream.go | 0
.../vendor => }/google.golang.org/grpc/tap/tap.go | 0
.../vendor => }/google.golang.org/grpc/trace.go | 0
.../vendor => }/google.golang.org/grpc/version.go | 0
.../go-ini/ini => gopkg.in/ini.v1}/LICENSE | 0
.../go-ini/ini => gopkg.in/ini.v1}/error.go | 0
.../go-ini/ini => gopkg.in/ini.v1}/file.go | 0
.../go-ini/ini => gopkg.in/ini.v1}/ini.go | 0
.../go-ini/ini => gopkg.in/ini.v1}/key.go | 0
.../go-ini/ini => gopkg.in/ini.v1}/parser.go | 0
.../go-ini/ini => gopkg.in/ini.v1}/section.go | 0
.../go-ini/ini => gopkg.in/ini.v1}/struct.go | 0
.../vendor => }/gopkg.in/ns1/ns1-go.v2/LICENSE.txt | 0
.../gopkg.in/ns1/ns1-go.v2/rest/account_apikey.go | 0
.../gopkg.in/ns1/ns1-go.v2/rest/account_setting.go | 0
.../gopkg.in/ns1/ns1-go.v2/rest/account_team.go | 0
.../gopkg.in/ns1/ns1-go.v2/rest/account_user.go | 0
.../gopkg.in/ns1/ns1-go.v2/rest/account_warning.go | 0
.../gopkg.in/ns1/ns1-go.v2/rest/client.go | 0
.../gopkg.in/ns1/ns1-go.v2/rest/data_feed.go | 0
.../gopkg.in/ns1/ns1-go.v2/rest/data_source.go | 0
.../vendor => }/gopkg.in/ns1/ns1-go.v2/rest/doc.go | 0
.../ns1/ns1-go.v2/rest/model/account/apikey.go | 0
.../ns1/ns1-go.v2/rest/model/account/doc.go | 0
.../ns1-go.v2/rest/model/account/permissions.go | 0
.../ns1/ns1-go.v2/rest/model/account/settings.go | 0
.../ns1/ns1-go.v2/rest/model/account/team.go | 0
.../ns1/ns1-go.v2/rest/model/account/user.go | 0
.../ns1/ns1-go.v2/rest/model/account/warning.go | 0
.../gopkg.in/ns1/ns1-go.v2/rest/model/data/doc.go | 0
.../gopkg.in/ns1/ns1-go.v2/rest/model/data/feed.go | 0
.../gopkg.in/ns1/ns1-go.v2/rest/model/data/meta.go | 0
.../ns1/ns1-go.v2/rest/model/data/region.go | 0
.../ns1/ns1-go.v2/rest/model/data/source.go | 0
.../ns1/ns1-go.v2/rest/model/data/string.go | 0
.../ns1/ns1-go.v2/rest/model/dns/answer.go | 0
.../gopkg.in/ns1/ns1-go.v2/rest/model/dns/doc.go | 0
.../ns1/ns1-go.v2/rest/model/dns/record.go | 0
.../gopkg.in/ns1/ns1-go.v2/rest/model/dns/zone.go | 0
.../ns1/ns1-go.v2/rest/model/filter/doc.go | 0
.../ns1/ns1-go.v2/rest/model/filter/filter.go | 0
.../ns1/ns1-go.v2/rest/model/monitor/config.go | 0
.../ns1/ns1-go.v2/rest/model/monitor/doc.go | 0
.../ns1/ns1-go.v2/rest/model/monitor/job.go | 0
.../ns1/ns1-go.v2/rest/model/monitor/notify.go | 0
.../gopkg.in/ns1/ns1-go.v2/rest/monitor_job.go | 0
.../gopkg.in/ns1/ns1-go.v2/rest/monitor_notify.go | 0
.../gopkg.in/ns1/ns1-go.v2/rest/record.go | 0
.../gopkg.in/ns1/ns1-go.v2/rest/stat.go | 0
.../gopkg.in/ns1/ns1-go.v2/rest/util.go | 0
.../gopkg.in/ns1/ns1-go.v2/rest/zone.go | 0
.../lego/vendor => }/gopkg.in/resty.v1/LICENSE | 0
.../lego/vendor => }/gopkg.in/resty.v1/client.go | 0
.../lego/vendor => }/gopkg.in/resty.v1/default.go | 0
.../vendor => }/gopkg.in/resty.v1/middleware.go | 0
.../lego/vendor => }/gopkg.in/resty.v1/redirect.go | 0
.../lego/vendor => }/gopkg.in/resty.v1/request.go | 0
.../vendor => }/gopkg.in/resty.v1/request16.go | 0
.../vendor => }/gopkg.in/resty.v1/request17.go | 0
.../lego/vendor => }/gopkg.in/resty.v1/response.go | 0
.../lego/vendor => }/gopkg.in/resty.v1/resty.go | 0
.../lego/vendor => }/gopkg.in/resty.v1/retry.go | 0
.../lego/vendor => }/gopkg.in/resty.v1/util.go | 0
.../square/go-jose.v2}/LICENSE | 0
.../gopkg.in/square/go-jose.v2/asymmetric.go | 0
.../gopkg.in/square/go-jose.v2/cipher/cbc_hmac.go | 0
.../square/go-jose.v2/cipher/concat_kdf.go | 0
.../gopkg.in/square/go-jose.v2/cipher/ecdh_es.go | 0
.../gopkg.in/square/go-jose.v2/cipher/key_wrap.go | 0
.../gopkg.in/square/go-jose.v2/crypter.go | 0
.../vendor => }/gopkg.in/square/go-jose.v2/doc.go | 0
.../gopkg.in/square/go-jose.v2/encoding.go | 0
.../gopkg.in/square/go-jose.v2/json/LICENSE | 0
.../gopkg.in/square/go-jose.v2/json/decode.go | 0
.../gopkg.in/square/go-jose.v2/json/encode.go | 0
.../gopkg.in/square/go-jose.v2/json/indent.go | 0
.../gopkg.in/square/go-jose.v2/json/scanner.go | 0
.../gopkg.in/square/go-jose.v2/json/stream.go | 0
.../gopkg.in/square/go-jose.v2/json/tags.go | 0
.../vendor => }/gopkg.in/square/go-jose.v2/jwe.go | 0
.../vendor => }/gopkg.in/square/go-jose.v2/jwk.go | 0
.../vendor => }/gopkg.in/square/go-jose.v2/jws.go | 0
.../gopkg.in/square/go-jose.v2/opaque.go | 0
.../gopkg.in/square/go-jose.v2/shared.go | 0
.../gopkg.in/square/go-jose.v2/signing.go | 0
.../gopkg.in/square/go-jose.v2/symmetric.go | 0
.../vendor/github.com/pkg/errors/.gitignore | 24 -
.../vendor/github.com/pkg/errors/.travis.yml | 11 -
traffic_stats/vendor/github.com/pkg/errors/LICENSE | 23 -
.../vendor/github.com/pkg/errors/README.md | 52 -
.../vendor/github.com/pkg/errors/appveyor.yml | 32 -
.../vendor/github.com/pkg/errors/errors.go | 269 -
.../vendor/github.com/pkg/errors/stack.go | 178 -
.../github.com/dgrijalva/jwt-go/.travis.yml | 0
.../github.com/dgrijalva/jwt-go/LICENSE | 0
.../github.com/dgrijalva/jwt-go/MIGRATION_GUIDE.md | 0
.../github.com/dgrijalva/jwt-go/README.md | 0
.../github.com/dgrijalva/jwt-go/VERSION_HISTORY.md | 0
.../github.com/dgrijalva/jwt-go/claims.go | 0
.../github.com/dgrijalva/jwt-go/cmd/jwt/README.md | 0
.../github.com/dgrijalva/jwt-go/cmd/jwt/app.go | 0
.../github.com/dgrijalva/jwt-go/cmd/jwt/args.go | 0
.../github.com/dgrijalva/jwt-go/doc.go | 0
.../github.com/dgrijalva/jwt-go/ecdsa.go | 0
.../github.com/dgrijalva/jwt-go/ecdsa_test.go | 0
.../github.com/dgrijalva/jwt-go/ecdsa_utils.go | 0
.../github.com/dgrijalva/jwt-go/errors.go | 0
.../github.com/dgrijalva/jwt-go/example_test.go | 0
.../github.com/dgrijalva/jwt-go/hmac.go | 0
.../dgrijalva/jwt-go/hmac_example_test.go | 0
.../github.com/dgrijalva/jwt-go/hmac_test.go | 0
.../dgrijalva/jwt-go/http_example_test.go | 0
.../github.com/dgrijalva/jwt-go/map_claims.go | 0
.../github.com/dgrijalva/jwt-go/none.go | 0
.../github.com/dgrijalva/jwt-go/none_test.go | 0
.../github.com/dgrijalva/jwt-go/parser.go | 0
.../github.com/dgrijalva/jwt-go/parser_test.go | 0
.../github.com/dgrijalva/jwt-go/request/doc.go | 0
.../dgrijalva/jwt-go/request/extractor.go | 0
.../jwt-go/request/extractor_example_test.go | 0
.../dgrijalva/jwt-go/request/extractor_test.go | 0
.../github.com/dgrijalva/jwt-go/request/oauth2.go | 0
.../github.com/dgrijalva/jwt-go/request/request.go | 0
.../dgrijalva/jwt-go/request/request_test.go | 0
.../github.com/dgrijalva/jwt-go/rsa.go | 0
.../github.com/dgrijalva/jwt-go/rsa_pss.go | 0
.../github.com/dgrijalva/jwt-go/rsa_pss_test.go | 0
.../github.com/dgrijalva/jwt-go/rsa_test.go | 0
.../github.com/dgrijalva/jwt-go/rsa_utils.go | 0
.../github.com/dgrijalva/jwt-go/signing_method.go | 0
.../dgrijalva/jwt-go/test/ec256-private.pem | 0
.../dgrijalva/jwt-go/test/ec256-public.pem | 0
.../dgrijalva/jwt-go/test/ec384-private.pem | 0
.../dgrijalva/jwt-go/test/ec384-public.pem | 0
.../dgrijalva/jwt-go/test/ec512-private.pem | 0
.../dgrijalva/jwt-go/test/ec512-public.pem | 0
.../github.com/dgrijalva/jwt-go/test/helpers.go | 0
.../github.com/dgrijalva/jwt-go/test/hmacTestKey | 0
.../dgrijalva/jwt-go/test/privateSecure.pem | 0
.../github.com/dgrijalva/jwt-go/test/sample_key | 0
.../dgrijalva/jwt-go/test/sample_key.pub | 0
.../github.com/dgrijalva/jwt-go/token.go | 0
2489 files changed, 259 insertions(+), 434943 deletions(-)
diff --git a/LICENSE b/LICENSE
index 3127d6b..d9b62a3 100644
--- a/LICENSE
+++ b/LICENSE
@@ -315,12 +315,7 @@ For the yaml component:
./vendor/gopkg.in/yaml.v2/LICENSE
./vendor/gopkg.in/yaml.v2/LICENSE.libyaml
-For the jwt-go component:
-@experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/*
-./experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/LICENSE
-
For the pq component:
-@experimental/traffic_ops_auth/vendor/github.com/lib/pq/*
@vendor/github.com/lib/pq/*
./vendor/github.com/lib/pq/LICENSE.md
@@ -329,10 +324,6 @@ For the influxdb component:
./vendor/github.com/influxdata/influxdb/LICENSE
./vendor/github.com/influxdata/influxdb/LICENSE_OF_DEPENDENCIES.md
-For the errors component:
-@traffic_stats/vendor/github.com/pkg/errors/*
-./traffic_stats/vendor/github.com/pkg/errors/LICENSE
-
For the MaxMind DB GeoLite2 Database:
@traffic_router/core/src/test/resources/geo/GeoLite2-City.mmdb.gz
./licenses/CC_A_SA_4-maxmind
@@ -446,9 +437,9 @@ For the lestrrat-go/jwx (commit e35178a) component:
@traffic_ops/traffic_ops_golang/vendor/github.com/lestrrat-go/jwx/*
./traffic_ops/traffic_ops_golang/vendor/github.com/lestrrat-go/jwx/LICENSE
-For the dgrijalva/jwt-go (commit 5e25c22) component:
-@traffic_ops/traffic_ops_golang/vendor/github.com/dgrijalva/jwt-go/*
-./traffic_ops/traffic_ops_golang/vendor/github.com/dgrijalva/jwt-go/LICENSE
+For the dgrijalva/jwt-go component:
+@vendor/github.com/dgrijalva/jwt-go/*
+./vendor/github.com/dgrijalva/jwt-go/LICENSE
For the ogier/pflag (commit 45c278a) component:
@vendor/github.com/ogier/pflag/*
@@ -477,3 +468,247 @@ For the gofrs/flock component:
For the pborman/getopt component:
@traffic_ops_ort/vendor/github.com/pborman/getopt/*
./traffic_ops_ort/vendor/github.com/pborman/getopt/LICENSE
+
+For the contrib.go.opencensus.io/exporter/ocagent component:
+@traffic_ops/traffic_ops_golang/vendor/contrib.go.opencensus.io/exporter/ocagent/*
+@traffic_ops/traffic_ops_golang/vendor/contrib.go.opencensus.io/exporter/ocagent/LICENSE
+
+For the google.golang.org/api/googleapi/internal/uritemplates component:
+@traffic_ops/traffic_ops_golang/vendor/google.golang.org/api/googleapi/internal/uritemplates/*
+@traffic_ops/traffic_ops_golang/vendor/google.golang.org/api/googleapi/internal/uritemplates/LICENSE
+
+For the google.golang.org/api component:
+@traffic_ops/traffic_ops_golang/vendor/google.golang.org/api/*
+@traffic_ops/traffic_ops_golang/vendor/google.golang.org/api/LICENSE
+
+For the google.golang.org/appengine component:
+@traffic_ops/traffic_ops_golang/vendor/google.golang.org/appengine/*
+@traffic_ops/traffic_ops_golang/vendor/google.golang.org/appengine/LICENSE
+
+For the google.golang.org/genproto component:
+@traffic_ops/traffic_ops_golang/vendor/google.golang.org/genproto/*
+@traffic_ops/traffic_ops_golang/vendor/google.golang.org/genproto/LICENSE
+
+For the google.golang.org/grpc component:
+@traffic_ops/traffic_ops_golang/vendor/google.golang.org/grpc/*
+@traffic_ops/traffic_ops_golang/vendor/google.golang.org/grpc/LICENSE
+
+For the go.opencensus.io component:
+@traffic_ops/traffic_ops_golang/vendor/go.opencensus.io/*
+@traffic_ops/traffic_ops_golang/vendor/go.opencensus.io/LICENSE
+
+For the gopkg.in/ini.v1 component:
+@traffic_ops/traffic_ops_golang/vendor/gopkg.in/ini.v1/*
+@traffic_ops/traffic_ops_golang/vendor/gopkg.in/ini.v1/LICENSE
+
+For the gopkg.in/ns1/ns1-go.v2 component:
+@traffic_ops/traffic_ops_golang/vendor/gopkg.in/ns1/ns1-go.v2/*
+@traffic_ops/traffic_ops_golang/vendor/gopkg.in/ns1/ns1-go.v2/LICENSE.txt
+
+For the gopkg.in/resty.v1 component:
+@traffic_ops/traffic_ops_golang/vendor/gopkg.in/resty.v1/*
+@traffic_ops/traffic_ops_golang/vendor/gopkg.in/resty.v1/LICENSE
+
+For the gopkg.in/square/go-jose.v2/json component:
+@traffic_ops/traffic_ops_golang/vendor/gopkg.in/square/go-jose.v2/json/*
+@traffic_ops/traffic_ops_golang/vendor/gopkg.in/square/go-jose.v2/json/LICENSE
+
+For the gopkg.in/square/go-jose.v2 component:
+@traffic_ops/traffic_ops_golang/vendor/gopkg.in/square/go-jose.v2/*
+@traffic_ops/traffic_ops_golang/vendor/gopkg.in/square/go-jose.v2/LICENSE
+
+For the go.uber.org/ratelimit component:
+@traffic_ops/traffic_ops_golang/vendor/go.uber.org/ratelimit/*
+@traffic_ops/traffic_ops_golang/vendor/go.uber.org/ratelimit/LICENSE
+
+For the akamai/AkamaiOPEN-edgegrid-golang component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/akamai/AkamaiOPEN-edgegrid-golang/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/akamai/AkamaiOPEN-edgegrid-golang/LICENSE
+
+For the aliyun/alibaba-cloud-sdk-go component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/aliyun/alibaba-cloud-sdk-go/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/aliyun/alibaba-cloud-sdk-go/LICENSE
+
+For the aws/aws-sdk-go component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/aws/aws-sdk-go/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/aws/aws-sdk-go/LICENSE.txt
+
+For the Azure/azure-sdk-for-go component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/Azure/azure-sdk-for-go/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/Azure/azure-sdk-for-go/LICENSE
+
+For the Azure/go-autorest component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/Azure/go-autorest/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/Azure/go-autorest/LICENSE
+
+For the BurntSushi/toml component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/BurntSushi/toml/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/BurntSushi/toml/COPYING
+
+For the cenkalti/backoff component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/cenkalti/backoff/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/cenkalti/backoff/LICENSE
+
+For the census-instrumentation/opencensus-proto component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/census-instrumentation/opencensus-proto/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/census-instrumentation/opencensus-proto/LICENSE
+
+For the cloudflare/cloudflare-go component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/cloudflare/cloudflare-go/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/cloudflare/cloudflare-go/LICENSE
+
+For the cpu/goacmedns component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/cpu/goacmedns/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/cpu/goacmedns/LICENSE
+
+For the davecgh/go-spew component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/davecgh/go-spew/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/davecgh/go-spew/LICENSE
+
+For the decker502/dnspod-go component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/decker502/dnspod-go/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/decker502/dnspod-go/LICENSE
+
+For the dimchansky/utfbom component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/dimchansky/utfbom/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/dimchansky/utfbom/LICENSE
+
+For the dnsimple/dnsimple-go component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/dnsimple/dnsimple-go/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/dnsimple/dnsimple-go/LICENSE.txt
+
+For the exoscale/egoscale component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/exoscale/egoscale/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/exoscale/egoscale/LICENSE
+
+For the fatih/structs component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/fatih/structs/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/fatih/structs/LICENSE
+
+For the go-errors/errors component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/go-errors/errors/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/go-errors/errors/LICENSE.MIT
+
+For the gofrs/uuid component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/gofrs/uuid/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/gofrs/uuid/LICENSE
+
+For the go-ini/ini component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/go-ini/ini/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/go-ini/ini/LICENSE
+
+For the google/google component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/google/go-querystring/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/google/go-querystring/LICENSE
+
+For the gophercloud/gophercloud component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/gophercloud/gophercloud/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/gophercloud/gophercloud/LICENSE
+
+For the grpc-ecosystem/grpc-gateway component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/grpc-ecosystem/grpc-gateway/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/grpc-ecosystem/grpc-gateway/LICENSE.txt
+
+For the hashicorp/golang-lru component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/hashicorp/golang-lru/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/hashicorp/golang-lru/LICENSE
+
+For the iij/doapi component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/iij/doapi/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/iij/doapi/LICENSE.md
+
+For the jmespath/go-jmespath component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/jmespath/go-jmespath/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/jmespath/go-jmespath/LICENSE
+
+For the kolo/xmlrpc component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/kolo/xmlrpc/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/kolo/xmlrpc/LICENSE
+
+For the labbsr0x/bindman-dns-webhook component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/labbsr0x/bindman-dns-webhook/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/labbsr0x/bindman-dns-webhook/LICENSE
+
+For the labbsr0x/goh component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/labbsr0x/goh/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/labbsr0x/goh/LICENSE
+
+For the linode/linodego component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/linode/linodego/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/linode/linodego/LICENSE
+
+For the mitchellh/go-homedir component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/mitchellh/go-homedir/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/mitchellh/go-homedir/LICENSE
+
+For the mitchellh/mapstructure component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/mitchellh/mapstructure/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/mitchellh/mapstructure/LICENSE
+
+For the namedotcom/go component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/namedotcom/go/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/namedotcom/go/LICENSE
+
+For the nrdcg/auroradns component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/nrdcg/auroradns/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/nrdcg/auroradns/LICENSE
+
+For the nrdcg/goinwx component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/nrdcg/goinwx/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/nrdcg/goinwx/LICENSE
+
+For the nrdcg/namesilo component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/nrdcg/namesilo/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/nrdcg/namesilo/LICENSE
+
+For the OpenDNS/vegadns2client component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/OpenDNS/vegadns2client/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/OpenDNS/vegadns2client/LICENSE
+
+For the oracle/oci-go-sdk component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/oracle/oci-go-sdk/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/oracle/oci-go-sdk/LICENSE.txt
+
+For the ovh/go-ovh component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/ovh/go-ovh/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/ovh/go-ovh/LICENSE
+
+For the pmezard/go-difflib component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/pmezard/go-difflib/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/pmezard/go-difflib/LICENSE
+
+For the rainycape/memcache component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/rainycape/memcache/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/rainycape/memcache/LICENSE
+
+For the sacloud/libsacloud component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/sacloud/libsacloud/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/sacloud/libsacloud/LICENSE.txt
+
+For the sirupsen/logrus component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/sirupsen/logrus/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/sirupsen/logrus/LICENSE
+
+For the stretchr/objx component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/stretchr/objx/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/stretchr/objx/LICENSE
+
+For the stretchr/testify component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/stretchr/testify/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/stretchr/testify/LICENSE
+
+For the timewasted/linode component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/timewasted/linode/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/timewasted/linode/LICENSE
+
+For the transip/gotransip component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/transip/gotransip/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/transip/gotransip/LICENSE
+
+For the urfave/cli component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/urfave/cli/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/urfave/cli/LICENSE
+
+For the vultr/govultr component:
+@traffic_ops/traffic_ops_golang/vendor/github.com/vultr/govultr/*
+./traffic_ops/traffic_ops_golang/vendor/github.com/vultr/govultr/LICENSE
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/.gitignore b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/.gitignore
deleted file mode 100644
index 80bed65..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-.DS_Store
-bin
-
-
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/.travis.yml b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/.travis.yml
deleted file mode 100644
index bde823d..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/.travis.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-language: go
-
-go:
- - 1.3
- - 1.4
- - 1.5
- - 1.6
- - tip
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/LICENSE b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/LICENSE
deleted file mode 100644
index df83a9c..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/LICENSE
+++ /dev/null
@@ -1,8 +0,0 @@
-Copyright (c) 2012 Dave Grijalva
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/README.md b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/README.md
deleted file mode 100644
index bf0100f..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/README.md
+++ /dev/null
@@ -1,98 +0,0 @@
-A [go](http://www.golang.org) (or 'golang' for search engine friendliness) implementation of [JSON Web Tokens](http://self-issued.info/docs/draft-jones-json-web-token.html)
-
-[](https://travis-ci.org/dgrijalva/jwt-go)
-
-**NOTICE:** A vulnerability in JWT was [recently published](https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries/). As this library doesn't force users to validate the `alg` is what they expected, it's possible your usage is effected. There will be an update soon to remedy this, and it will likey require backwards-incompatible changes to the API. In the short term, please make sure your implementation verifies the `alg` is what you expect.
-
-## What the heck is a JWT?
-
-In short, it's a signed JSON object that does something useful (for example, authentication). It's commonly used for `Bearer` tokens in Oauth 2. A token is made of three parts, separated by `.`'s. The first two parts are JSON objects, that have been [base64url](http://tools.ietf.org/html/rfc4648) encoded. The last part is the signature, encoded the same way.
-
-The first part is called the header. It contains the necessary information for verifying the last part, the signature. For example, which encryption method was used for signing and what key was used.
-
-The part in the middle is the interesting bit. It's called the Claims and contains the actual stuff you care about. Refer to [the RFC](http://self-issued.info/docs/draft-jones-json-web-token.html) for information about reserved keys and the proper way to add your own.
-
-## What's in the box?
-
-This library supports the parsing and verification as well as the generation and signing of JWTs. Current supported signing algorithms are HMAC SHA, RSA, RSA-PSS, and ECDSA, though hooks are present for adding your own.
-
-## Parse and Verify
-
-Parsing and verifying tokens is pretty straight forward. You pass in the token and a function for looking up the key. This is done as a callback since you may need to parse the token to find out what signing method and key was used.
-
-```go
- token, err := jwt.Parse(myToken, func(token *jwt.Token) (interface{}, error) {
- // Don't forget to validate the alg is what you expect:
- if _, ok := token.Method.(*jwt.SigningMethodRSA); !ok {
- return nil, fmt.Errorf("Unexpected signing method: %v", token.Header["alg"])
- }
- return myLookupKey(token.Header["kid"]), nil
- })
-
- if err == nil && token.Valid {
- deliverGoodness("!")
- } else {
- deliverUtterRejection(":(")
- }
-```
-
-## Create a token
-
-```go
- // Create the token
- token := jwt.New(jwt.SigningMethodHS256)
- // Set some claims
- token.Claims["foo"] = "bar"
- token.Claims["exp"] = time.Now().Add(time.Hour * 72).Unix()
- // Sign and get the complete encoded token as a string
- tokenString, err := token.SignedString(mySigningKey)
-```
-
-## Extensions
-
-This library publishes all the necessary components for adding your own signing methods. Simply implement the `SigningMethod` interface and register a factory method using `RegisterSigningMethod`.
-
-Here's an example of an extension that integrates with the Google App Engine signing tools: https://github.com/someone1/gcp-jwt-go
-
-## Project Status & Versioning
-
-This library is considered production ready. Feedback and feature requests are appreciated. The API should be considered stable. There should be very few backwards-incompatible changes outside of major version updates (and only with good reason).
-
-This project uses [Semantic Versioning 2.0.0](http://semver.org). Accepted pull requests will land on `master`. Periodically, versions will be tagged from `master`. You can find all the releases on [the project releases page](https://github.com/dgrijalva/jwt-go/releases).
-
-While we try to make it obvious when we make breaking changes, there isn't a great mechanism for pushing announcements out to users. You may want to use this alternative package include: `gopkg.in/dgrijalva/jwt-go.v2`. It will do the right thing WRT semantic versioning.
-
-## Usage Tips
-
-### Signing vs Encryption
-
-A token is simply a JSON object that is signed by its author. this tells you exactly two things about the data:
-
-* The author of the token was in the possession of the signing secret
-* The data has not been modified since it was signed
-
-It's important to know that JWT does not provide encryption, which means anyone who has access to the token can read its contents. If you need to protect (encrypt) the data, there is a companion spec, `JWE`, that provides this functionality. JWE is currently outside the scope of this library.
-
-### Choosing a Signing Method
-
-There are several signing methods available, and you should probably take the time to learn about the various options before choosing one. The principal design decision is most likely going to be symmetric vs asymmetric.
-
-Symmetric signing methods, such as HSA, use only a single secret. This is probably the simplest signing method to use since any `[]byte` can be used as a valid secret. They are also slightly computationally faster to use, though this rarely is enough to matter. Symmetric signing methods work the best when both producers and consumers of tokens are trusted, or even the same system. Since the same secret is used to both sign and validate tokens, you can't easily distribute the key for validation.
-
-Asymmetric signing methods, such as RSA, use different keys for signing and verifying tokens. This makes it possible to produce tokens with a private key, and allow any consumer to access the public key for verification.
-
-### JWT and OAuth
-
-It's worth mentioning that OAuth and JWT are not the same thing. A JWT token is simply a signed JSON object. It can be used anywhere such a thing is useful. There is some confusion, though, as JWT is the most common type of bearer token used in OAuth2 authentication.
-
-Without going too far down the rabbit hole, here's a description of the interaction of these technologies:
-
-* OAuth is a protocol for allowing an identity provider to be separate from the service a user is logging in to. For example, whenever you use Facebook to log into a different service (Yelp, Spotify, etc), you are using OAuth.
-* OAuth defines several options for passing around authentication data. One popular method is called a "bearer token". A bearer token is simply a string that _should_ only be held by an authenticated user. Thus, simply presenting this token proves your identity. You can probably derive from here why a JWT might make a good bearer token.
-* Because bearer tokens are used for authentication, it's important they're kept secret. This is why transactions that use bearer tokens typically happen over SSL.
-
-## More
-
-Documentation can be found [on godoc.org](http://godoc.org/github.com/dgrijalva/jwt-go).
-
-The command line utility included in this project (cmd/jwt) provides a straightforward example of token creation and parsing as well as a useful tool for debugging your own integration. For a more http centric example, see [this gist](https://gist.github.com/cryptix/45c33ecf0ae54828e63b).
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/VERSION_HISTORY.md b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/VERSION_HISTORY.md
deleted file mode 100644
index 3918734..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/VERSION_HISTORY.md
+++ /dev/null
@@ -1,81 +0,0 @@
-## `jwt-go` Version History
-
-#### 2.6.0
-
-This will likely be the last backwards compatible release before 3.0.0.
-
-* Exposed inner error within ValidationError
-* Fixed validation errors when using UseJSONNumber flag
-* Added several unit tests
-
-#### 2.5.0
-
-* Added support for signing method none. You shouldn't use this. The API tries to make this clear.
-* Updated/fixed some documentation
-* Added more helpful error message when trying to parse tokens that begin with `BEARER `
-
-#### 2.4.0
-
-* Added new type, Parser, to allow for configuration of various parsing parameters
- * You can now specify a list of valid signing methods. Anything outside this set will be rejected.
- * You can now opt to use the `json.Number` type instead of `float64` when parsing token JSON
-* Added support for [Travis CI](https://travis-ci.org/dgrijalva/jwt-go)
-* Fixed some bugs with ECDSA parsing
-
-#### 2.3.0
-
-* Added support for ECDSA signing methods
-* Added support for RSA PSS signing methods (requires go v1.4)
-
-#### 2.2.0
-
-* Gracefully handle a `nil` `Keyfunc` being passed to `Parse`. Result will now be the parsed token and an error, instead of a panic.
-
-#### 2.1.0
-
-Backwards compatible API change that was missed in 2.0.0.
-
-* The `SignedString` method on `Token` now takes `interface{}` instead of `[]byte`
-
-#### 2.0.0
-
-There were two major reasons for breaking backwards compatibility with this update. The first was a refactor required to expand the width of the RSA and HMAC-SHA signing implementations. There will likely be no required code changes to support this change.
-
-The second update, while unfortunately requiring a small change in integration, is required to open up this library to other signing methods. Not all keys used for all signing methods have a single standard on-disk representation. Requiring `[]byte` as the type for all keys proved too limiting. Additionally, this implementation allows for pre-parsed tokens to be reused, which might matter in an application that parses a high volume of tokens with a small set of keys. Backwards compat [...]
-
-It is likely the only integration change required here will be to change `func(t *jwt.Token) ([]byte, error)` to `func(t *jwt.Token) (interface{}, error)` when calling `Parse`.
-
-* **Compatibility Breaking Changes**
- * `SigningMethodHS256` is now `*SigningMethodHMAC` instead of `type struct`
- * `SigningMethodRS256` is now `*SigningMethodRSA` instead of `type struct`
- * `KeyFunc` now returns `interface{}` instead of `[]byte`
- * `SigningMethod.Sign` now takes `interface{}` instead of `[]byte` for the key
- * `SigningMethod.Verify` now takes `interface{}` instead of `[]byte` for the key
-* Renamed type `SigningMethodHS256` to `SigningMethodHMAC`. Specific sizes are now just instances of this type.
- * Added public package global `SigningMethodHS256`
- * Added public package global `SigningMethodHS384`
- * Added public package global `SigningMethodHS512`
-* Renamed type `SigningMethodRS256` to `SigningMethodRSA`. Specific sizes are now just instances of this type.
- * Added public package global `SigningMethodRS256`
- * Added public package global `SigningMethodRS384`
- * Added public package global `SigningMethodRS512`
-* Moved sample private key for HMAC tests from an inline value to a file on disk. Value is unchanged.
-* Refactored the RSA implementation to be easier to read
-* Exposed helper methods `ParseRSAPrivateKeyFromPEM` and `ParseRSAPublicKeyFromPEM`
-
-#### 1.0.2
-
-* Fixed bug in parsing public keys from certificates
-* Added more tests around the parsing of keys for RS256
-* Code refactoring in RS256 implementation. No functional changes
-
-#### 1.0.1
-
-* Fixed panic if RS256 signing method was passed an invalid key
-
-#### 1.0.0
-
-* First versioned release
-* API stabilized
-* Supports creating, signing, parsing, and validating JWT tokens
-* Supports RS256 and HS256 signing methods
\ No newline at end of file
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/cmd/jwt/README.md b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/cmd/jwt/README.md
deleted file mode 100644
index 4a68ba4..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/cmd/jwt/README.md
+++ /dev/null
@@ -1,13 +0,0 @@
-`jwt` command-line tool
-=======================
-
-This is a simple tool to sign, verify and show JSON Web Tokens from
-the command line.
-
-The following will create and sign a token, then verify it and output the original claims:
-
- echo {\"foo\":\"bar\"} | bin/jwt -key test/sample_key -alg RS256 -sign - | bin/jwt -key test/sample_key.pub -verify -
-
-To simply display a token, use:
-
- echo $JWT | jwt -show -
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/cmd/jwt/app.go b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/cmd/jwt/app.go
deleted file mode 100644
index e8bc336..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/cmd/jwt/app.go
+++ /dev/null
@@ -1,246 +0,0 @@
-// A useful example app. You can use this to debug your tokens on the command line.
-// This is also a great place to look at how you might use this library.
-//
-// Example usage:
-// The following will create and sign a token, then verify it and output the original claims.
-// echo {\"foo\":\"bar\"} | bin/jwt -key test/sample_key -alg RS256 -sign - | bin/jwt -key test/sample_key.pub -verify -
-package main
-
-import (
- "encoding/json"
- "flag"
- "fmt"
- "io"
- "io/ioutil"
- "os"
- "regexp"
- "strings"
-
- jwt "github.com/dgrijalva/jwt-go"
-)
-
-var (
- // Options
- flagAlg = flag.String("alg", "", "signing algorithm identifier")
- flagKey = flag.String("key", "", "path to key file or '-' to read from stdin")
- flagCompact = flag.Bool("compact", false, "output compact JSON")
- flagDebug = flag.Bool("debug", false, "print out all kinds of debug data")
-
- // Modes - exactly one of these is required
- flagSign = flag.String("sign", "", "path to claims object to sign or '-' to read from stdin")
- flagVerify = flag.String("verify", "", "path to JWT token to verify or '-' to read from stdin")
- flagShow = flag.String("show", "", "path to JWT file or '-' to read from stdin")
-)
-
-func main() {
- // Usage message if you ask for -help or if you mess up inputs.
- flag.Usage = func() {
- fmt.Fprintf(os.Stderr, "Usage of %s:\n", os.Args[0])
- fmt.Fprintf(os.Stderr, " One of the following flags is required: sign, verify\n")
- flag.PrintDefaults()
- }
-
- // Parse command line options
- flag.Parse()
-
- // Do the thing. If something goes wrong, print error to stderr
- // and exit with a non-zero status code
- if err := start(); err != nil {
- fmt.Fprintf(os.Stderr, "Error: %v\n", err)
- os.Exit(1)
- }
-}
-
-// Figure out which thing to do and then do that
-func start() error {
- if *flagSign != "" {
- return signToken()
- } else if *flagVerify != "" {
- return verifyToken()
- } else if *flagShow != "" {
- return showToken()
- } else {
- flag.Usage()
- return fmt.Errorf("None of the required flags are present. What do you want me to do?")
- }
-}
-
-// Helper func: Read input from specified file or stdin
-func loadData(p string) ([]byte, error) {
- if p == "" {
- return nil, fmt.Errorf("No path specified")
- }
-
- var rdr io.Reader
- if p == "-" {
- rdr = os.Stdin
- } else {
- if f, err := os.Open(p); err == nil {
- rdr = f
- defer f.Close()
- } else {
- return nil, err
- }
- }
- return ioutil.ReadAll(rdr)
-}
-
-// Print a json object in accordance with the prophecy (or the command line options)
-func printJSON(j interface{}) error {
- var out []byte
- var err error
-
- if *flagCompact == false {
- out, err = json.MarshalIndent(j, "", " ")
- } else {
- out, err = json.Marshal(j)
- }
-
- if err == nil {
- fmt.Println(string(out))
- }
-
- return err
-}
-
-// Verify a token and output the claims. This is a great example
-// of how to verify and view a token.
-func verifyToken() error {
- // get the token
- tokData, err := loadData(*flagVerify)
- if err != nil {
- return fmt.Errorf("Couldn't read token: %v", err)
- }
-
- // trim possible whitespace from token
- tokData = regexp.MustCompile(`\s*$`).ReplaceAll(tokData, []byte{})
- if *flagDebug {
- fmt.Fprintf(os.Stderr, "Token len: %v bytes\n", len(tokData))
- }
-
- // Parse the token. Load the key from command line option
- token, err := jwt.Parse(string(tokData), func(t *jwt.Token) (interface{}, error) {
- data, err := loadData(*flagKey)
- if err != nil {
- return nil, err
- }
- if isEs() {
- return jwt.ParseECPublicKeyFromPEM(data)
- }
- return data, nil
- })
-
- // Print some debug data
- if *flagDebug && token != nil {
- fmt.Fprintf(os.Stderr, "Header:\n%v\n", token.Header)
- fmt.Fprintf(os.Stderr, "Claims:\n%v\n", token.Claims)
- }
-
- // Print an error if we can't parse for some reason
- if err != nil {
- return fmt.Errorf("Couldn't parse token: %v", err)
- }
-
- // Is token invalid?
- if !token.Valid {
- return fmt.Errorf("Token is invalid")
- }
-
- // Print the token details
- if err := printJSON(token.Claims); err != nil {
- return fmt.Errorf("Failed to output claims: %v", err)
- }
-
- return nil
-}
-
-// Create, sign, and output a token. This is a great, simple example of
-// how to use this library to create and sign a token.
-func signToken() error {
- // get the token data from command line arguments
- tokData, err := loadData(*flagSign)
- if err != nil {
- return fmt.Errorf("Couldn't read token: %v", err)
- } else if *flagDebug {
- fmt.Fprintf(os.Stderr, "Token: %v bytes", len(tokData))
- }
-
- // parse the JSON of the claims
- var claims map[string]interface{}
- if err := json.Unmarshal(tokData, &claims); err != nil {
- return fmt.Errorf("Couldn't parse claims JSON: %v", err)
- }
-
- // get the key
- var key interface{}
- key, err = loadData(*flagKey)
- if err != nil {
- return fmt.Errorf("Couldn't read key: %v", err)
- }
-
- // get the signing alg
- alg := jwt.GetSigningMethod(*flagAlg)
- if alg == nil {
- return fmt.Errorf("Couldn't find signing method: %v", *flagAlg)
- }
-
- // create a new token
- token := jwt.New(alg)
- token.Claims = claims
-
- if isEs() {
- if k, ok := key.([]byte); !ok {
- return fmt.Errorf("Couldn't convert key data to key")
- } else {
- key, err = jwt.ParseECPrivateKeyFromPEM(k)
- if err != nil {
- return err
- }
- }
- }
-
- if out, err := token.SignedString(key); err == nil {
- fmt.Println(out)
- } else {
- return fmt.Errorf("Error signing token: %v", err)
- }
-
- return nil
-}
-
-// showToken pretty-prints the token on the command line.
-func showToken() error {
- // get the token
- tokData, err := loadData(*flagShow)
- if err != nil {
- return fmt.Errorf("Couldn't read token: %v", err)
- }
-
- // trim possible whitespace from token
- tokData = regexp.MustCompile(`\s*$`).ReplaceAll(tokData, []byte{})
- if *flagDebug {
- fmt.Fprintf(os.Stderr, "Token len: %v bytes\n", len(tokData))
- }
-
- token, err := jwt.Parse(string(tokData), nil)
- if token == nil {
- return fmt.Errorf("malformed token: %v", err)
- }
-
- // Print the token details
- fmt.Println("Header:")
- if err := printJSON(token.Header); err != nil {
- return fmt.Errorf("Failed to output header: %v", err)
- }
-
- fmt.Println("Claims:")
- if err := printJSON(token.Claims); err != nil {
- return fmt.Errorf("Failed to output claims: %v", err)
- }
-
- return nil
-}
-
-func isEs() bool {
- return strings.HasPrefix(*flagAlg, "ES")
-}
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/doc.go b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/doc.go
deleted file mode 100644
index a86dc1a..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/doc.go
+++ /dev/null
@@ -1,4 +0,0 @@
-// Package jwt is a Go implementation of JSON Web Tokens: http://self-issued.info/docs/draft-jones-json-web-token.html
-//
-// See README.md for more info.
-package jwt
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/ecdsa.go b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/ecdsa.go
deleted file mode 100644
index 0518ed1..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/ecdsa.go
+++ /dev/null
@@ -1,147 +0,0 @@
-package jwt
-
-import (
- "crypto"
- "crypto/ecdsa"
- "crypto/rand"
- "errors"
- "math/big"
-)
-
-var (
- // Sadly this is missing from crypto/ecdsa compared to crypto/rsa
- ErrECDSAVerification = errors.New("crypto/ecdsa: verification error")
-)
-
-// Implements the ECDSA family of signing methods signing methods
-type SigningMethodECDSA struct {
- Name string
- Hash crypto.Hash
- KeySize int
- CurveBits int
-}
-
-// Specific instances for EC256 and company
-var (
- SigningMethodES256 *SigningMethodECDSA
- SigningMethodES384 *SigningMethodECDSA
- SigningMethodES512 *SigningMethodECDSA
-)
-
-func init() {
- // ES256
- SigningMethodES256 = &SigningMethodECDSA{"ES256", crypto.SHA256, 32, 256}
- RegisterSigningMethod(SigningMethodES256.Alg(), func() SigningMethod {
- return SigningMethodES256
- })
-
- // ES384
- SigningMethodES384 = &SigningMethodECDSA{"ES384", crypto.SHA384, 48, 384}
- RegisterSigningMethod(SigningMethodES384.Alg(), func() SigningMethod {
- return SigningMethodES384
- })
-
- // ES512
- SigningMethodES512 = &SigningMethodECDSA{"ES512", crypto.SHA512, 66, 521}
- RegisterSigningMethod(SigningMethodES512.Alg(), func() SigningMethod {
- return SigningMethodES512
- })
-}
-
-func (m *SigningMethodECDSA) Alg() string {
- return m.Name
-}
-
-// Implements the Verify method from SigningMethod
-// For this verify method, key must be an ecdsa.PublicKey struct
-func (m *SigningMethodECDSA) Verify(signingString, signature string, key interface{}) error {
- var err error
-
- // Decode the signature
- var sig []byte
- if sig, err = DecodeSegment(signature); err != nil {
- return err
- }
-
- // Get the key
- var ecdsaKey *ecdsa.PublicKey
- switch k := key.(type) {
- case *ecdsa.PublicKey:
- ecdsaKey = k
- default:
- return ErrInvalidKey
- }
-
- if len(sig) != 2*m.KeySize {
- return ErrECDSAVerification
- }
-
- r := big.NewInt(0).SetBytes(sig[:m.KeySize])
- s := big.NewInt(0).SetBytes(sig[m.KeySize:])
-
- // Create hasher
- if !m.Hash.Available() {
- return ErrHashUnavailable
- }
- hasher := m.Hash.New()
- hasher.Write([]byte(signingString))
-
- // Verify the signature
- if verifystatus := ecdsa.Verify(ecdsaKey, hasher.Sum(nil), r, s); verifystatus == true {
- return nil
- } else {
- return ErrECDSAVerification
- }
-}
-
-// Implements the Sign method from SigningMethod
-// For this signing method, key must be an ecdsa.PrivateKey struct
-func (m *SigningMethodECDSA) Sign(signingString string, key interface{}) (string, error) {
- // Get the key
- var ecdsaKey *ecdsa.PrivateKey
- switch k := key.(type) {
- case *ecdsa.PrivateKey:
- ecdsaKey = k
- default:
- return "", ErrInvalidKey
- }
-
- // Create the hasher
- if !m.Hash.Available() {
- return "", ErrHashUnavailable
- }
-
- hasher := m.Hash.New()
- hasher.Write([]byte(signingString))
-
- // Sign the string and return r, s
- if r, s, err := ecdsa.Sign(rand.Reader, ecdsaKey, hasher.Sum(nil)); err == nil {
- curveBits := ecdsaKey.Curve.Params().BitSize
-
- if m.CurveBits != curveBits {
- return "", ErrInvalidKey
- }
-
- keyBytes := curveBits / 8
- if curveBits%8 > 0 {
- keyBytes += 1
- }
-
- // We serialize the outpus (r and s) into big-endian byte arrays and pad
- // them with zeros on the left to make sure the sizes work out. Both arrays
- // must be keyBytes long, and the output must be 2*keyBytes long.
- rBytes := r.Bytes()
- rBytesPadded := make([]byte, keyBytes)
- copy(rBytesPadded[keyBytes-len(rBytes):], rBytes)
-
- sBytes := s.Bytes()
- sBytesPadded := make([]byte, keyBytes)
- copy(sBytesPadded[keyBytes-len(sBytes):], sBytes)
-
- out := append(rBytesPadded, sBytesPadded...)
-
- return EncodeSegment(out), nil
- } else {
- return "", err
- }
-}
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/ecdsa_test.go b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/ecdsa_test.go
deleted file mode 100644
index 753047b..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/ecdsa_test.go
+++ /dev/null
@@ -1,100 +0,0 @@
-package jwt_test
-
-import (
- "crypto/ecdsa"
- "io/ioutil"
- "strings"
- "testing"
-
- "github.com/dgrijalva/jwt-go"
-)
-
-var ecdsaTestData = []struct {
- name string
- keys map[string]string
- tokenString string
- alg string
- claims map[string]interface{}
- valid bool
-}{
- {
- "Basic ES256",
- map[string]string{"private": "test/ec256-private.pem", "public": "test/ec256-public.pem"},
- "eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJmb28iOiJiYXIifQ.feG39E-bn8HXAKhzDZq7yEAPWYDhZlwTn3sePJnU9VrGMmwdXAIEyoOnrjreYlVM_Z4N13eK9-TmMTWyfKJtHQ",
- "ES256",
- map[string]interface{}{"foo": "bar"},
- true,
- },
- {
- "Basic ES384",
- map[string]string{"private": "test/ec384-private.pem", "public": "test/ec384-public.pem"},
- "eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzM4NCJ9.eyJmb28iOiJiYXIifQ.ngAfKMbJUh0WWubSIYe5GMsA-aHNKwFbJk_wq3lq23aPp8H2anb1rRILIzVR0gUf4a8WzDtrzmiikuPWyCS6CN4-PwdgTk-5nehC7JXqlaBZU05p3toM3nWCwm_LXcld",
- "ES384",
- map[string]interface{}{"foo": "bar"},
- true,
- },
- {
- "Basic ES512",
- map[string]string{"private": "test/ec512-private.pem", "public": "test/ec512-public.pem"},
- "eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzUxMiJ9.eyJmb28iOiJiYXIifQ.AAU0TvGQOcdg2OvrwY73NHKgfk26UDekh9Prz-L_iWuTBIBqOFCWwwLsRiHB1JOddfKAls5do1W0jR_F30JpVd-6AJeTjGKA4C1A1H6gIKwRY0o_tFDIydZCl_lMBMeG5VNFAjO86-WCSKwc3hqaGkq1MugPRq_qrF9AVbuEB4JPLyL5",
- "ES512",
- map[string]interface{}{"foo": "bar"},
- true,
- },
- {
- "basic ES256 invalid: foo => bar",
- map[string]string{"private": "test/ec256-private.pem", "public": "test/ec256-public.pem"},
- "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJmb28iOiJiYXIifQ.MEQCIHoSJnmGlPaVQDqacx_2XlXEhhqtWceVopjomc2PJLtdAiAUTeGPoNYxZw0z8mgOnnIcjoxRuNDVZvybRZF3wR1l8W",
- "ES256",
- map[string]interface{}{"foo": "bar"},
- false,
- },
-}
-
-func TestECDSAVerify(t *testing.T) {
- for _, data := range ecdsaTestData {
- var err error
-
- key, _ := ioutil.ReadFile(data.keys["public"])
-
- var ecdsaKey *ecdsa.PublicKey
- if ecdsaKey, err = jwt.ParseECPublicKeyFromPEM(key); err != nil {
- t.Errorf("Unable to parse ECDSA public key: %v", err)
- }
-
- parts := strings.Split(data.tokenString, ".")
-
- method := jwt.GetSigningMethod(data.alg)
- err = method.Verify(strings.Join(parts[0:2], "."), parts[2], ecdsaKey)
- if data.valid && err != nil {
- t.Errorf("[%v] Error while verifying key: %v", data.name, err)
- }
- if !data.valid && err == nil {
- t.Errorf("[%v] Invalid key passed validation", data.name)
- }
- }
-}
-
-func TestECDSASign(t *testing.T) {
- for _, data := range ecdsaTestData {
- var err error
- key, _ := ioutil.ReadFile(data.keys["private"])
-
- var ecdsaKey *ecdsa.PrivateKey
- if ecdsaKey, err = jwt.ParseECPrivateKeyFromPEM(key); err != nil {
- t.Errorf("Unable to parse ECDSA private key: %v", err)
- }
-
- if data.valid {
- parts := strings.Split(data.tokenString, ".")
- method := jwt.GetSigningMethod(data.alg)
- sig, err := method.Sign(strings.Join(parts[0:2], "."), ecdsaKey)
- if err != nil {
- t.Errorf("[%v] Error signing token: %v", data.name, err)
- }
- if sig == parts[2] {
- t.Errorf("[%v] Identical signatures\nbefore:\n%v\nafter:\n%v", data.name, parts[2], sig)
- }
- }
- }
-}
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/ecdsa_utils.go b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/ecdsa_utils.go
deleted file mode 100644
index d19624b..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/ecdsa_utils.go
+++ /dev/null
@@ -1,67 +0,0 @@
-package jwt
-
-import (
- "crypto/ecdsa"
- "crypto/x509"
- "encoding/pem"
- "errors"
-)
-
-var (
- ErrNotECPublicKey = errors.New("Key is not a valid ECDSA public key")
- ErrNotECPrivateKey = errors.New("Key is not a valid ECDSA private key")
-)
-
-// Parse PEM encoded Elliptic Curve Private Key Structure
-func ParseECPrivateKeyFromPEM(key []byte) (*ecdsa.PrivateKey, error) {
- var err error
-
- // Parse PEM block
- var block *pem.Block
- if block, _ = pem.Decode(key); block == nil {
- return nil, ErrKeyMustBePEMEncoded
- }
-
- // Parse the key
- var parsedKey interface{}
- if parsedKey, err = x509.ParseECPrivateKey(block.Bytes); err != nil {
- return nil, err
- }
-
- var pkey *ecdsa.PrivateKey
- var ok bool
- if pkey, ok = parsedKey.(*ecdsa.PrivateKey); !ok {
- return nil, ErrNotECPrivateKey
- }
-
- return pkey, nil
-}
-
-// Parse PEM encoded PKCS1 or PKCS8 public key
-func ParseECPublicKeyFromPEM(key []byte) (*ecdsa.PublicKey, error) {
- var err error
-
- // Parse PEM block
- var block *pem.Block
- if block, _ = pem.Decode(key); block == nil {
- return nil, ErrKeyMustBePEMEncoded
- }
-
- // Parse the key
- var parsedKey interface{}
- if parsedKey, err = x509.ParsePKIXPublicKey(block.Bytes); err != nil {
- if cert, err := x509.ParseCertificate(block.Bytes); err == nil {
- parsedKey = cert.PublicKey
- } else {
- return nil, err
- }
- }
-
- var pkey *ecdsa.PublicKey
- var ok bool
- if pkey, ok = parsedKey.(*ecdsa.PublicKey); !ok {
- return nil, ErrNotECPublicKey
- }
-
- return pkey, nil
-}
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/errors.go b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/errors.go
deleted file mode 100644
index a6b60a3..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/errors.go
+++ /dev/null
@@ -1,51 +0,0 @@
-package jwt
-
-import (
- "errors"
-)
-
-// Error constants
-var (
- ErrInvalidKey = errors.New("key is invalid or of invalid type")
- ErrHashUnavailable = errors.New("the requested hash function is unavailable")
- ErrNoTokenInRequest = errors.New("no token present in request")
-)
-
-// The errors that might occur when parsing and validating a token
-const (
- ValidationErrorMalformed uint32 = 1 << iota // Token is malformed
- ValidationErrorUnverifiable // Token could not be verified because of signing problems
- ValidationErrorSignatureInvalid // Signature validation failed
- ValidationErrorExpired // Exp validation failed
- ValidationErrorNotValidYet // NBF validation failed
-)
-
-// Helper for constructing a ValidationError with a string error message
-func NewValidationError(errorText string, errorFlags uint32) *ValidationError {
- return &ValidationError{
- Inner: errors.New(errorText),
- Errors: errorFlags,
- }
-}
-
-// The error from Parse if token is not valid
-type ValidationError struct {
- Inner error // stores the error returned by external dependencies, i.e.: KeyFunc
- Errors uint32 // bitfield. see ValidationError... constants
-}
-
-// Validation error is an error type
-func (e ValidationError) Error() string {
- if e.Inner == nil {
- return "token is invalid"
- }
- return e.Inner.Error()
-}
-
-// No errors
-func (e *ValidationError) valid() bool {
- if e.Errors > 0 {
- return false
- }
- return true
-}
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/example_test.go b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/example_test.go
deleted file mode 100644
index edb48e4..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/example_test.go
+++ /dev/null
@@ -1,52 +0,0 @@
-package jwt_test
-
-import (
- "fmt"
- "github.com/dgrijalva/jwt-go"
- "time"
-)
-
-func ExampleParse(myToken string, myLookupKey func(interface{}) (interface{}, error)) {
- token, err := jwt.Parse(myToken, func(token *jwt.Token) (interface{}, error) {
- return myLookupKey(token.Header["kid"])
- })
-
- if err == nil && token.Valid {
- fmt.Println("Your token is valid. I like your style.")
- } else {
- fmt.Println("This token is terrible! I cannot accept this.")
- }
-}
-
-func ExampleNew(mySigningKey []byte) (string, error) {
- // Create the token
- token := jwt.New(jwt.SigningMethodHS256)
- // Set some claims
- token.Claims["foo"] = "bar"
- token.Claims["exp"] = time.Now().Add(time.Hour * 72).Unix()
- // Sign and get the complete encoded token as a string
- tokenString, err := token.SignedString(mySigningKey)
- return tokenString, err
-}
-
-func ExampleParse_errorChecking(myToken string, myLookupKey func(interface{}) (interface{}, error)) {
- token, err := jwt.Parse(myToken, func(token *jwt.Token) (interface{}, error) {
- return myLookupKey(token.Header["kid"])
- })
-
- if token.Valid {
- fmt.Println("You look nice today")
- } else if ve, ok := err.(*jwt.ValidationError); ok {
- if ve.Errors&jwt.ValidationErrorMalformed != 0 {
- fmt.Println("That's not even a token")
- } else if ve.Errors&(jwt.ValidationErrorExpired|jwt.ValidationErrorNotValidYet) != 0 {
- // Token is either expired or not active yet
- fmt.Println("Timing is everything")
- } else {
- fmt.Println("Couldn't handle this token:", err)
- }
- } else {
- fmt.Println("Couldn't handle this token:", err)
- }
-
-}
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/hmac.go b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/hmac.go
deleted file mode 100644
index 192e625..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/hmac.go
+++ /dev/null
@@ -1,94 +0,0 @@
-package jwt
-
-import (
- "crypto"
- "crypto/hmac"
- "errors"
-)
-
-// Implements the HMAC-SHA family of signing methods signing methods
-type SigningMethodHMAC struct {
- Name string
- Hash crypto.Hash
-}
-
-// Specific instances for HS256 and company
-var (
- SigningMethodHS256 *SigningMethodHMAC
- SigningMethodHS384 *SigningMethodHMAC
- SigningMethodHS512 *SigningMethodHMAC
- ErrSignatureInvalid = errors.New("signature is invalid")
-)
-
-func init() {
- // HS256
- SigningMethodHS256 = &SigningMethodHMAC{"HS256", crypto.SHA256}
- RegisterSigningMethod(SigningMethodHS256.Alg(), func() SigningMethod {
- return SigningMethodHS256
- })
-
- // HS384
- SigningMethodHS384 = &SigningMethodHMAC{"HS384", crypto.SHA384}
- RegisterSigningMethod(SigningMethodHS384.Alg(), func() SigningMethod {
- return SigningMethodHS384
- })
-
- // HS512
- SigningMethodHS512 = &SigningMethodHMAC{"HS512", crypto.SHA512}
- RegisterSigningMethod(SigningMethodHS512.Alg(), func() SigningMethod {
- return SigningMethodHS512
- })
-}
-
-func (m *SigningMethodHMAC) Alg() string {
- return m.Name
-}
-
-// Verify the signature of HSXXX tokens. Returns nil if the signature is valid.
-func (m *SigningMethodHMAC) Verify(signingString, signature string, key interface{}) error {
- // Verify the key is the right type
- keyBytes, ok := key.([]byte)
- if !ok {
- return ErrInvalidKey
- }
-
- // Decode signature, for comparison
- sig, err := DecodeSegment(signature)
- if err != nil {
- return err
- }
-
- // Can we use the specified hashing method?
- if !m.Hash.Available() {
- return ErrHashUnavailable
- }
-
- // This signing method is symmetric, so we validate the signature
- // by reproducing the signature from the signing string and key, then
- // comparing that against the provided signature.
- hasher := hmac.New(m.Hash.New, keyBytes)
- hasher.Write([]byte(signingString))
- if !hmac.Equal(sig, hasher.Sum(nil)) {
- return ErrSignatureInvalid
- }
-
- // No validation errors. Signature is good.
- return nil
-}
-
-// Implements the Sign method from SigningMethod for this signing method.
-// Key must be []byte
-func (m *SigningMethodHMAC) Sign(signingString string, key interface{}) (string, error) {
- if keyBytes, ok := key.([]byte); ok {
- if !m.Hash.Available() {
- return "", ErrHashUnavailable
- }
-
- hasher := hmac.New(m.Hash.New, keyBytes)
- hasher.Write([]byte(signingString))
-
- return EncodeSegment(hasher.Sum(nil)), nil
- }
-
- return "", ErrInvalidKey
-}
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/hmac_test.go b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/hmac_test.go
deleted file mode 100644
index c7e114f..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/hmac_test.go
+++ /dev/null
@@ -1,91 +0,0 @@
-package jwt_test
-
-import (
- "github.com/dgrijalva/jwt-go"
- "io/ioutil"
- "strings"
- "testing"
-)
-
-var hmacTestData = []struct {
- name string
- tokenString string
- alg string
- claims map[string]interface{}
- valid bool
-}{
- {
- "web sample",
- "eyJ0eXAiOiJKV1QiLA0KICJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJqb2UiLA0KICJleHAiOjEzMDA4MTkzODAsDQogImh0dHA6Ly9leGFtcGxlLmNvbS9pc19yb290Ijp0cnVlfQ.dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk",
- "HS256",
- map[string]interface{}{"iss": "joe", "exp": 1300819380, "http://example.com/is_root": true},
- true,
- },
- {
- "HS384",
- "eyJhbGciOiJIUzM4NCIsInR5cCI6IkpXVCJ9.eyJleHAiOjEuMzAwODE5MzhlKzA5LCJodHRwOi8vZXhhbXBsZS5jb20vaXNfcm9vdCI6dHJ1ZSwiaXNzIjoiam9lIn0.KWZEuOD5lbBxZ34g7F-SlVLAQ_r5KApWNWlZIIMyQVz5Zs58a7XdNzj5_0EcNoOy",
- "HS384",
- map[string]interface{}{"iss": "joe", "exp": 1300819380, "http://example.com/is_root": true},
- true,
- },
- {
- "HS512",
- "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJleHAiOjEuMzAwODE5MzhlKzA5LCJodHRwOi8vZXhhbXBsZS5jb20vaXNfcm9vdCI6dHJ1ZSwiaXNzIjoiam9lIn0.CN7YijRX6Aw1n2jyI2Id1w90ja-DEMYiWixhYCyHnrZ1VfJRaFQz1bEbjjA5Fn4CLYaUG432dEYmSbS4Saokmw",
- "HS512",
- map[string]interface{}{"iss": "joe", "exp": 1300819380, "http://example.com/is_root": true},
- true,
- },
- {
- "web sample: invalid",
- "eyJ0eXAiOiJKV1QiLA0KICJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJqb2UiLA0KICJleHAiOjEzMDA4MTkzODAsDQogImh0dHA6Ly9leGFtcGxlLmNvbS9pc19yb290Ijp0cnVlfQ.dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXo",
- "HS256",
- map[string]interface{}{"iss": "joe", "exp": 1300819380, "http://example.com/is_root": true},
- false,
- },
-}
-
-// Sample data from http://tools.ietf.org/html/draft-jones-json-web-signature-04#appendix-A.1
-var hmacTestKey, _ = ioutil.ReadFile("test/hmacTestKey")
-
-func TestHMACVerify(t *testing.T) {
- for _, data := range hmacTestData {
- parts := strings.Split(data.tokenString, ".")
-
- method := jwt.GetSigningMethod(data.alg)
- err := method.Verify(strings.Join(parts[0:2], "."), parts[2], hmacTestKey)
- if data.valid && err != nil {
- t.Errorf("[%v] Error while verifying key: %v", data.name, err)
- }
- if !data.valid && err == nil {
- t.Errorf("[%v] Invalid key passed validation", data.name)
- }
- }
-}
-
-func TestHMACSign(t *testing.T) {
- for _, data := range hmacTestData {
- if data.valid {
- parts := strings.Split(data.tokenString, ".")
- method := jwt.GetSigningMethod(data.alg)
- sig, err := method.Sign(strings.Join(parts[0:2], "."), hmacTestKey)
- if err != nil {
- t.Errorf("[%v] Error signing token: %v", data.name, err)
- }
- if sig != parts[2] {
- t.Errorf("[%v] Incorrect signature.\nwas:\n%v\nexpecting:\n%v", data.name, sig, parts[2])
- }
- }
- }
-}
-
-func BenchmarkHS256Signing(b *testing.B) {
- benchmarkSigning(b, jwt.SigningMethodHS256, hmacTestKey)
-}
-
-func BenchmarkHS384Signing(b *testing.B) {
- benchmarkSigning(b, jwt.SigningMethodHS384, hmacTestKey)
-}
-
-func BenchmarkHS512Signing(b *testing.B) {
- benchmarkSigning(b, jwt.SigningMethodHS512, hmacTestKey)
-}
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/none.go b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/none.go
deleted file mode 100644
index f04d189..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/none.go
+++ /dev/null
@@ -1,52 +0,0 @@
-package jwt
-
-// Implements the none signing method. This is required by the spec
-// but you probably should never use it.
-var SigningMethodNone *signingMethodNone
-
-const UnsafeAllowNoneSignatureType unsafeNoneMagicConstant = "none signing method allowed"
-
-var NoneSignatureTypeDisallowedError error
-
-type signingMethodNone struct{}
-type unsafeNoneMagicConstant string
-
-func init() {
- SigningMethodNone = &signingMethodNone{}
- NoneSignatureTypeDisallowedError = NewValidationError("'none' signature type is not allowed", ValidationErrorSignatureInvalid)
-
- RegisterSigningMethod(SigningMethodNone.Alg(), func() SigningMethod {
- return SigningMethodNone
- })
-}
-
-func (m *signingMethodNone) Alg() string {
- return "none"
-}
-
-// Only allow 'none' alg type if UnsafeAllowNoneSignatureType is specified as the key
-func (m *signingMethodNone) Verify(signingString, signature string, key interface{}) (err error) {
- // Key must be UnsafeAllowNoneSignatureType to prevent accidentally
- // accepting 'none' signing method
- if _, ok := key.(unsafeNoneMagicConstant); !ok {
- return NoneSignatureTypeDisallowedError
- }
- // If signing method is none, signature must be an empty string
- if signature != "" {
- return NewValidationError(
- "'none' signing method with non-empty signature",
- ValidationErrorSignatureInvalid,
- )
- }
-
- // Accept 'none' signing method.
- return nil
-}
-
-// Only allow 'none' signing if UnsafeAllowNoneSignatureType is specified as the key
-func (m *signingMethodNone) Sign(signingString string, key interface{}) (string, error) {
- if _, ok := key.(unsafeNoneMagicConstant); ok {
- return "", nil
- }
- return "", NoneSignatureTypeDisallowedError
-}
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/none_test.go b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/none_test.go
deleted file mode 100644
index 29a69ef..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/none_test.go
+++ /dev/null
@@ -1,72 +0,0 @@
-package jwt_test
-
-import (
- "github.com/dgrijalva/jwt-go"
- "strings"
- "testing"
-)
-
-var noneTestData = []struct {
- name string
- tokenString string
- alg string
- key interface{}
- claims map[string]interface{}
- valid bool
-}{
- {
- "Basic",
- "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJmb28iOiJiYXIifQ.",
- "none",
- jwt.UnsafeAllowNoneSignatureType,
- map[string]interface{}{"foo": "bar"},
- true,
- },
- {
- "Basic - no key",
- "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJmb28iOiJiYXIifQ.",
- "none",
- nil,
- map[string]interface{}{"foo": "bar"},
- false,
- },
- {
- "Signed",
- "eyJhbGciOiJSUzM4NCIsInR5cCI6IkpXVCJ9.eyJmb28iOiJiYXIifQ.W-jEzRfBigtCWsinvVVuldiuilzVdU5ty0MvpLaSaqK9PlAWWlDQ1VIQ_qSKzwL5IXaZkvZFJXT3yL3n7OUVu7zCNJzdwznbC8Z-b0z2lYvcklJYi2VOFRcGbJtXUqgjk2oGsiqUMUMOLP70TTefkpsgqDxbRh9CDUfpOJgW-dU7cmgaoswe3wjUAUi6B6G2YEaiuXC0XScQYSYVKIzgKXJV8Zw-7AN_DBUI4GkTpsvQ9fVVjZM9csQiEXhYekyrKu1nu_POpQonGd8yqkIyXPECNmmqH5jH4sFiF67XhD7_JpkvLziBpI-uh86evBUadmHhb9Otqw3uV3NTaXLzJw",
- "none",
- jwt.UnsafeAllowNoneSignatureType,
- map[string]interface{}{"foo": "bar"},
- false,
- },
-}
-
-func TestNoneVerify(t *testing.T) {
- for _, data := range noneTestData {
- parts := strings.Split(data.tokenString, ".")
-
- method := jwt.GetSigningMethod(data.alg)
- err := method.Verify(strings.Join(parts[0:2], "."), parts[2], data.key)
- if data.valid && err != nil {
- t.Errorf("[%v] Error while verifying key: %v", data.name, err)
- }
- if !data.valid && err == nil {
- t.Errorf("[%v] Invalid key passed validation", data.name)
- }
- }
-}
-
-func TestNoneSign(t *testing.T) {
- for _, data := range noneTestData {
- if data.valid {
- parts := strings.Split(data.tokenString, ".")
- method := jwt.GetSigningMethod(data.alg)
- sig, err := method.Sign(strings.Join(parts[0:2], "."), data.key)
- if err != nil {
- t.Errorf("[%v] Error signing token: %v", data.name, err)
- }
- if sig != parts[2] {
- t.Errorf("[%v] Incorrect signature.\nwas:\n%v\nexpecting:\n%v", data.name, sig, parts[2])
- }
- }
- }
-}
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/parser.go b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/parser.go
deleted file mode 100644
index fbde9cb..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/parser.go
+++ /dev/null
@@ -1,140 +0,0 @@
-package jwt
-
-import (
- "bytes"
- "encoding/json"
- "fmt"
- "strings"
- "time"
-)
-
-type Parser struct {
- ValidMethods []string // If populated, only these methods will be considered valid
- UseJSONNumber bool // Use JSON Number format in JSON decoder
-}
-
-// Parse, validate, and return a token.
-// keyFunc will receive the parsed token and should return the key for validating.
-// If everything is kosher, err will be nil
-func (p *Parser) Parse(tokenString string, keyFunc Keyfunc) (*Token, error) {
- parts := strings.Split(tokenString, ".")
- if len(parts) != 3 {
- return nil, NewValidationError("token contains an invalid number of segments", ValidationErrorMalformed)
- }
-
- var err error
- token := &Token{Raw: tokenString}
- // parse Header
- var headerBytes []byte
- if headerBytes, err = DecodeSegment(parts[0]); err != nil {
- if strings.HasPrefix(strings.ToLower(tokenString), "bearer ") {
- return token, NewValidationError("tokenstring should not contain 'bearer '", ValidationErrorMalformed)
- }
- return token, &ValidationError{Inner: err, Errors: ValidationErrorMalformed}
- }
- if err = json.Unmarshal(headerBytes, &token.Header); err != nil {
- return token, &ValidationError{Inner: err, Errors: ValidationErrorMalformed}
- }
-
- // parse Claims
- var claimBytes []byte
- if claimBytes, err = DecodeSegment(parts[1]); err != nil {
- return token, &ValidationError{Inner: err, Errors: ValidationErrorMalformed}
- }
- dec := json.NewDecoder(bytes.NewBuffer(claimBytes))
- if p.UseJSONNumber {
- dec.UseNumber()
- }
- if err = dec.Decode(&token.Claims); err != nil {
- return token, &ValidationError{Inner: err, Errors: ValidationErrorMalformed}
- }
-
- // Lookup signature method
- if method, ok := token.Header["alg"].(string); ok {
- if token.Method = GetSigningMethod(method); token.Method == nil {
- return token, NewValidationError("signing method (alg) is unavailable.", ValidationErrorUnverifiable)
- }
- } else {
- return token, NewValidationError("signing method (alg) is unspecified.", ValidationErrorUnverifiable)
- }
-
- // Verify signing method is in the required set
- if p.ValidMethods != nil {
- var signingMethodValid = false
- var alg = token.Method.Alg()
- for _, m := range p.ValidMethods {
- if m == alg {
- signingMethodValid = true
- break
- }
- }
- if !signingMethodValid {
- // signing method is not in the listed set
- return token, NewValidationError(fmt.Sprintf("signing method %v is invalid", alg), ValidationErrorSignatureInvalid)
- }
- }
-
- // Lookup key
- var key interface{}
- if keyFunc == nil {
- // keyFunc was not provided. short circuiting validation
- return token, NewValidationError("no Keyfunc was provided.", ValidationErrorUnverifiable)
- }
- if key, err = keyFunc(token); err != nil {
- // keyFunc returned an error
- return token, &ValidationError{Inner: err, Errors: ValidationErrorUnverifiable}
- }
-
- // Check expiration times
- vErr := &ValidationError{}
- now := TimeFunc().Unix()
- var exp, nbf int64
- var vexp, vnbf bool
-
- // Parse 'exp' claim
- switch num := token.Claims["exp"].(type) {
- case json.Number:
- if exp, err = num.Int64(); err == nil {
- vexp = true
- }
- case float64:
- vexp = true
- exp = int64(num)
- }
-
- // Parse 'nbf' claim
- switch num := token.Claims["nbf"].(type) {
- case json.Number:
- if nbf, err = num.Int64(); err == nil {
- vnbf = true
- }
- case float64:
- vnbf = true
- nbf = int64(num)
- }
-
- if vexp && now > exp {
- delta := time.Unix(now, 0).Sub(time.Unix(exp, 0))
- vErr.Inner = fmt.Errorf("token is expired by %v", delta)
- vErr.Errors |= ValidationErrorExpired
- }
-
- if vnbf && now < nbf {
- vErr.Inner = fmt.Errorf("token is not valid yet")
- vErr.Errors |= ValidationErrorNotValidYet
- }
-
- // Perform validation
- token.Signature = parts[2]
- if err = token.Method.Verify(strings.Join(parts[0:2], "."), token.Signature, key); err != nil {
- vErr.Inner = err
- vErr.Errors |= ValidationErrorSignatureInvalid
- }
-
- if vErr.valid() {
- token.Valid = true
- return token, nil
- }
-
- return token, vErr
-}
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/parser_test.go b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/parser_test.go
deleted file mode 100644
index f1b7d2a..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/parser_test.go
+++ /dev/null
@@ -1,275 +0,0 @@
-package jwt_test
-
-import (
- "encoding/json"
- "fmt"
- "io/ioutil"
- "net/http"
- "reflect"
- "testing"
- "time"
-
- "github.com/dgrijalva/jwt-go"
-)
-
-var keyFuncError error = fmt.Errorf("error loading key")
-
-var (
- jwtTestDefaultKey []byte
- defaultKeyFunc jwt.Keyfunc = func(t *jwt.Token) (interface{}, error) { return jwtTestDefaultKey, nil }
- emptyKeyFunc jwt.Keyfunc = func(t *jwt.Token) (interface{}, error) { return nil, nil }
- errorKeyFunc jwt.Keyfunc = func(t *jwt.Token) (interface{}, error) { return nil, keyFuncError }
- nilKeyFunc jwt.Keyfunc = nil
-)
-
-var jwtTestData = []struct {
- name string
- tokenString string
- keyfunc jwt.Keyfunc
- claims map[string]interface{}
- valid bool
- errors uint32
- parser *jwt.Parser
-}{
- {
- "basic",
- "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJmb28iOiJiYXIifQ.FhkiHkoESI_cG3NPigFrxEk9Z60_oXrOT2vGm9Pn6RDgYNovYORQmmA0zs1AoAOf09ly2Nx2YAg6ABqAYga1AcMFkJljwxTT5fYphTuqpWdy4BELeSYJx5Ty2gmr8e7RonuUztrdD5WfPqLKMm1Ozp_T6zALpRmwTIW0QPnaBXaQD90FplAg46Iy1UlDKr-Eupy0i5SLch5Q-p2ZpaL_5fnTIUDlxC3pWhJTyx_71qDI-mAA_5lE_VdroOeflG56sSmDxopPEG3bFlSu1eowyBfxtu0_CuVd-M42RU75Zc4Gsj6uV77MBtbMrf4_7M_NUTSgoIF3fRqxrj0NzihIBg",
- defaultKeyFunc,
- map[string]interface{}{"foo": "bar"},
- true,
- 0,
- nil,
- },
- {
- "basic expired",
- "", // autogen
- defaultKeyFunc,
- map[string]interface{}{"foo": "bar", "exp": float64(time.Now().Unix() - 100)},
- false,
- jwt.ValidationErrorExpired,
- nil,
- },
- {
- "basic nbf",
- "", // autogen
- defaultKeyFunc,
- map[string]interface{}{"foo": "bar", "nbf": float64(time.Now().Unix() + 100)},
- false,
- jwt.ValidationErrorNotValidYet,
- nil,
- },
- {
- "expired and nbf",
- "", // autogen
- defaultKeyFunc,
- map[string]interface{}{"foo": "bar", "nbf": float64(time.Now().Unix() + 100), "exp": float64(time.Now().Unix() - 100)},
- false,
- jwt.ValidationErrorNotValidYet | jwt.ValidationErrorExpired,
- nil,
- },
- {
- "basic invalid",
- "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJmb28iOiJiYXIifQ.EhkiHkoESI_cG3NPigFrxEk9Z60_oXrOT2vGm9Pn6RDgYNovYORQmmA0zs1AoAOf09ly2Nx2YAg6ABqAYga1AcMFkJljwxTT5fYphTuqpWdy4BELeSYJx5Ty2gmr8e7RonuUztrdD5WfPqLKMm1Ozp_T6zALpRmwTIW0QPnaBXaQD90FplAg46Iy1UlDKr-Eupy0i5SLch5Q-p2ZpaL_5fnTIUDlxC3pWhJTyx_71qDI-mAA_5lE_VdroOeflG56sSmDxopPEG3bFlSu1eowyBfxtu0_CuVd-M42RU75Zc4Gsj6uV77MBtbMrf4_7M_NUTSgoIF3fRqxrj0NzihIBg",
- defaultKeyFunc,
- map[string]interface{}{"foo": "bar"},
- false,
- jwt.ValidationErrorSignatureInvalid,
- nil,
- },
- {
- "basic nokeyfunc",
- "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJmb28iOiJiYXIifQ.FhkiHkoESI_cG3NPigFrxEk9Z60_oXrOT2vGm9Pn6RDgYNovYORQmmA0zs1AoAOf09ly2Nx2YAg6ABqAYga1AcMFkJljwxTT5fYphTuqpWdy4BELeSYJx5Ty2gmr8e7RonuUztrdD5WfPqLKMm1Ozp_T6zALpRmwTIW0QPnaBXaQD90FplAg46Iy1UlDKr-Eupy0i5SLch5Q-p2ZpaL_5fnTIUDlxC3pWhJTyx_71qDI-mAA_5lE_VdroOeflG56sSmDxopPEG3bFlSu1eowyBfxtu0_CuVd-M42RU75Zc4Gsj6uV77MBtbMrf4_7M_NUTSgoIF3fRqxrj0NzihIBg",
- nilKeyFunc,
- map[string]interface{}{"foo": "bar"},
- false,
- jwt.ValidationErrorUnverifiable,
- nil,
- },
- {
- "basic nokey",
- "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJmb28iOiJiYXIifQ.FhkiHkoESI_cG3NPigFrxEk9Z60_oXrOT2vGm9Pn6RDgYNovYORQmmA0zs1AoAOf09ly2Nx2YAg6ABqAYga1AcMFkJljwxTT5fYphTuqpWdy4BELeSYJx5Ty2gmr8e7RonuUztrdD5WfPqLKMm1Ozp_T6zALpRmwTIW0QPnaBXaQD90FplAg46Iy1UlDKr-Eupy0i5SLch5Q-p2ZpaL_5fnTIUDlxC3pWhJTyx_71qDI-mAA_5lE_VdroOeflG56sSmDxopPEG3bFlSu1eowyBfxtu0_CuVd-M42RU75Zc4Gsj6uV77MBtbMrf4_7M_NUTSgoIF3fRqxrj0NzihIBg",
- emptyKeyFunc,
- map[string]interface{}{"foo": "bar"},
- false,
- jwt.ValidationErrorSignatureInvalid,
- nil,
- },
- {
- "basic errorkey",
- "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJmb28iOiJiYXIifQ.FhkiHkoESI_cG3NPigFrxEk9Z60_oXrOT2vGm9Pn6RDgYNovYORQmmA0zs1AoAOf09ly2Nx2YAg6ABqAYga1AcMFkJljwxTT5fYphTuqpWdy4BELeSYJx5Ty2gmr8e7RonuUztrdD5WfPqLKMm1Ozp_T6zALpRmwTIW0QPnaBXaQD90FplAg46Iy1UlDKr-Eupy0i5SLch5Q-p2ZpaL_5fnTIUDlxC3pWhJTyx_71qDI-mAA_5lE_VdroOeflG56sSmDxopPEG3bFlSu1eowyBfxtu0_CuVd-M42RU75Zc4Gsj6uV77MBtbMrf4_7M_NUTSgoIF3fRqxrj0NzihIBg",
- errorKeyFunc,
- map[string]interface{}{"foo": "bar"},
- false,
- jwt.ValidationErrorUnverifiable,
- nil,
- },
- {
- "invalid signing method",
- "",
- defaultKeyFunc,
- map[string]interface{}{"foo": "bar"},
- false,
- jwt.ValidationErrorSignatureInvalid,
- &jwt.Parser{ValidMethods: []string{"HS256"}},
- },
- {
- "valid signing method",
- "",
- defaultKeyFunc,
- map[string]interface{}{"foo": "bar"},
- true,
- 0,
- &jwt.Parser{ValidMethods: []string{"RS256", "HS256"}},
- },
- {
- "JSON Number",
- "",
- defaultKeyFunc,
- map[string]interface{}{"foo": json.Number("123.4")},
- true,
- 0,
- &jwt.Parser{UseJSONNumber: true},
- },
- {
- "JSON Number - basic expired",
- "", // autogen
- defaultKeyFunc,
- map[string]interface{}{"foo": "bar", "exp": json.Number(fmt.Sprintf("%v", time.Now().Unix()-100))},
- false,
- jwt.ValidationErrorExpired,
- &jwt.Parser{UseJSONNumber: true},
- },
- {
- "JSON Number - basic nbf",
- "", // autogen
- defaultKeyFunc,
- map[string]interface{}{"foo": "bar", "nbf": json.Number(fmt.Sprintf("%v", time.Now().Unix()+100))},
- false,
- jwt.ValidationErrorNotValidYet,
- &jwt.Parser{UseJSONNumber: true},
- },
- {
- "JSON Number - expired and nbf",
- "", // autogen
- defaultKeyFunc,
- map[string]interface{}{"foo": "bar", "nbf": json.Number(fmt.Sprintf("%v", time.Now().Unix()+100)), "exp": json.Number(fmt.Sprintf("%v", time.Now().Unix()-100))},
- false,
- jwt.ValidationErrorNotValidYet | jwt.ValidationErrorExpired,
- &jwt.Parser{UseJSONNumber: true},
- },
-}
-
-func init() {
- var e error
- if jwtTestDefaultKey, e = ioutil.ReadFile("test/sample_key.pub"); e != nil {
- panic(e)
- }
-}
-
-func makeSample(c map[string]interface{}) string {
- key, e := ioutil.ReadFile("test/sample_key")
- if e != nil {
- panic(e.Error())
- }
-
- token := jwt.New(jwt.SigningMethodRS256)
- token.Claims = c
- s, e := token.SignedString(key)
-
- if e != nil {
- panic(e.Error())
- }
-
- return s
-}
-
-func TestParser_Parse(t *testing.T) {
- for _, data := range jwtTestData {
- if data.tokenString == "" {
- data.tokenString = makeSample(data.claims)
- }
-
- var token *jwt.Token
- var err error
- if data.parser != nil {
- token, err = data.parser.Parse(data.tokenString, data.keyfunc)
- } else {
- token, err = jwt.Parse(data.tokenString, data.keyfunc)
- }
-
- if !reflect.DeepEqual(data.claims, token.Claims) {
- t.Errorf("[%v] Claims mismatch. Expecting: %v Got: %v", data.name, data.claims, token.Claims)
- }
- if data.valid && err != nil {
- t.Errorf("[%v] Error while verifying token: %T:%v", data.name, err, err)
- }
- if !data.valid && err == nil {
- t.Errorf("[%v] Invalid token passed validation", data.name)
- }
- if data.errors != 0 {
- if err == nil {
- t.Errorf("[%v] Expecting error. Didn't get one.", data.name)
- } else {
-
- ve := err.(*jwt.ValidationError)
- // compare the bitfield part of the error
- if e := ve.Errors; e != data.errors {
- t.Errorf("[%v] Errors don't match expectation. %v != %v", data.name, e, data.errors)
- }
-
- if err.Error() == keyFuncError.Error() && ve.Inner != keyFuncError {
- t.Errorf("[%v] Inner error does not match expectation. %v != %v", data.name, ve.Inner, keyFuncError)
- }
- }
- }
- if data.valid && token.Signature == "" {
- t.Errorf("[%v] Signature is left unpopulated after parsing", data.name)
- }
- }
-}
-
-func TestParseRequest(t *testing.T) {
- // Bearer token request
- for _, data := range jwtTestData {
- // FIXME: custom parsers are not supported by this helper. skip tests that require them
- if data.parser != nil {
- t.Logf("Skipping [%v]. Custom parsers are not supported by ParseRequest", data.name)
- continue
- }
-
- if data.tokenString == "" {
- data.tokenString = makeSample(data.claims)
- }
-
- r, _ := http.NewRequest("GET", "/", nil)
- r.Header.Set("Authorization", fmt.Sprintf("Bearer %v", data.tokenString))
- token, err := jwt.ParseFromRequest(r, data.keyfunc)
-
- if token == nil {
- t.Errorf("[%v] Token was not found: %v", data.name, err)
- continue
- }
- if !reflect.DeepEqual(data.claims, token.Claims) {
- t.Errorf("[%v] Claims mismatch. Expecting: %v Got: %v", data.name, data.claims, token.Claims)
- }
- if data.valid && err != nil {
- t.Errorf("[%v] Error while verifying token: %v", data.name, err)
- }
- if !data.valid && err == nil {
- t.Errorf("[%v] Invalid token passed validation", data.name)
- }
- }
-}
-
-// Helper method for benchmarking various methods
-func benchmarkSigning(b *testing.B, method jwt.SigningMethod, key interface{}) {
- t := jwt.New(method)
- b.RunParallel(func(pb *testing.PB) {
- for pb.Next() {
- if _, err := t.SignedString(key); err != nil {
- b.Fatal(err)
- }
- }
- })
-
-}
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/rsa.go b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/rsa.go
deleted file mode 100644
index cddffce..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/rsa.go
+++ /dev/null
@@ -1,114 +0,0 @@
-package jwt
-
-import (
- "crypto"
- "crypto/rand"
- "crypto/rsa"
-)
-
-// Implements the RSA family of signing methods signing methods
-type SigningMethodRSA struct {
- Name string
- Hash crypto.Hash
-}
-
-// Specific instances for RS256 and company
-var (
- SigningMethodRS256 *SigningMethodRSA
- SigningMethodRS384 *SigningMethodRSA
- SigningMethodRS512 *SigningMethodRSA
-)
-
-func init() {
- // RS256
- SigningMethodRS256 = &SigningMethodRSA{"RS256", crypto.SHA256}
- RegisterSigningMethod(SigningMethodRS256.Alg(), func() SigningMethod {
- return SigningMethodRS256
- })
-
- // RS384
- SigningMethodRS384 = &SigningMethodRSA{"RS384", crypto.SHA384}
- RegisterSigningMethod(SigningMethodRS384.Alg(), func() SigningMethod {
- return SigningMethodRS384
- })
-
- // RS512
- SigningMethodRS512 = &SigningMethodRSA{"RS512", crypto.SHA512}
- RegisterSigningMethod(SigningMethodRS512.Alg(), func() SigningMethod {
- return SigningMethodRS512
- })
-}
-
-func (m *SigningMethodRSA) Alg() string {
- return m.Name
-}
-
-// Implements the Verify method from SigningMethod
-// For this signing method, must be either a PEM encoded PKCS1 or PKCS8 RSA public key as
-// []byte, or an rsa.PublicKey structure.
-func (m *SigningMethodRSA) Verify(signingString, signature string, key interface{}) error {
- var err error
-
- // Decode the signature
- var sig []byte
- if sig, err = DecodeSegment(signature); err != nil {
- return err
- }
-
- var rsaKey *rsa.PublicKey
-
- switch k := key.(type) {
- case []byte:
- if rsaKey, err = ParseRSAPublicKeyFromPEM(k); err != nil {
- return err
- }
- case *rsa.PublicKey:
- rsaKey = k
- default:
- return ErrInvalidKey
- }
-
- // Create hasher
- if !m.Hash.Available() {
- return ErrHashUnavailable
- }
- hasher := m.Hash.New()
- hasher.Write([]byte(signingString))
-
- // Verify the signature
- return rsa.VerifyPKCS1v15(rsaKey, m.Hash, hasher.Sum(nil), sig)
-}
-
-// Implements the Sign method from SigningMethod
-// For this signing method, must be either a PEM encoded PKCS1 or PKCS8 RSA private key as
-// []byte, or an rsa.PrivateKey structure.
-func (m *SigningMethodRSA) Sign(signingString string, key interface{}) (string, error) {
- var err error
- var rsaKey *rsa.PrivateKey
-
- switch k := key.(type) {
- case []byte:
- if rsaKey, err = ParseRSAPrivateKeyFromPEM(k); err != nil {
- return "", err
- }
- case *rsa.PrivateKey:
- rsaKey = k
- default:
- return "", ErrInvalidKey
- }
-
- // Create the hasher
- if !m.Hash.Available() {
- return "", ErrHashUnavailable
- }
-
- hasher := m.Hash.New()
- hasher.Write([]byte(signingString))
-
- // Sign the string and return the encoded bytes
- if sigBytes, err := rsa.SignPKCS1v15(rand.Reader, rsaKey, m.Hash, hasher.Sum(nil)); err == nil {
- return EncodeSegment(sigBytes), nil
- } else {
- return "", err
- }
-}
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/rsa_pss.go b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/rsa_pss.go
deleted file mode 100644
index b5b7073..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/rsa_pss.go
+++ /dev/null
@@ -1,126 +0,0 @@
-// +build go1.4
-
-package jwt
-
-import (
- "crypto"
- "crypto/rand"
- "crypto/rsa"
-)
-
-// Implements the RSAPSS family of signing methods signing methods
-type SigningMethodRSAPSS struct {
- *SigningMethodRSA
- Options *rsa.PSSOptions
-}
-
-// Specific instances for RS/PS and company
-var (
- SigningMethodPS256 *SigningMethodRSAPSS
- SigningMethodPS384 *SigningMethodRSAPSS
- SigningMethodPS512 *SigningMethodRSAPSS
-)
-
-func init() {
- // PS256
- SigningMethodPS256 = &SigningMethodRSAPSS{
- &SigningMethodRSA{
- Name: "PS256",
- Hash: crypto.SHA256,
- },
- &rsa.PSSOptions{
- SaltLength: rsa.PSSSaltLengthAuto,
- Hash: crypto.SHA256,
- },
- }
- RegisterSigningMethod(SigningMethodPS256.Alg(), func() SigningMethod {
- return SigningMethodPS256
- })
-
- // PS384
- SigningMethodPS384 = &SigningMethodRSAPSS{
- &SigningMethodRSA{
- Name: "PS384",
- Hash: crypto.SHA384,
- },
- &rsa.PSSOptions{
- SaltLength: rsa.PSSSaltLengthAuto,
- Hash: crypto.SHA384,
- },
- }
- RegisterSigningMethod(SigningMethodPS384.Alg(), func() SigningMethod {
- return SigningMethodPS384
- })
-
- // PS512
- SigningMethodPS512 = &SigningMethodRSAPSS{
- &SigningMethodRSA{
- Name: "PS512",
- Hash: crypto.SHA512,
- },
- &rsa.PSSOptions{
- SaltLength: rsa.PSSSaltLengthAuto,
- Hash: crypto.SHA512,
- },
- }
- RegisterSigningMethod(SigningMethodPS512.Alg(), func() SigningMethod {
- return SigningMethodPS512
- })
-}
-
-// Implements the Verify method from SigningMethod
-// For this verify method, key must be an rsa.PublicKey struct
-func (m *SigningMethodRSAPSS) Verify(signingString, signature string, key interface{}) error {
- var err error
-
- // Decode the signature
- var sig []byte
- if sig, err = DecodeSegment(signature); err != nil {
- return err
- }
-
- var rsaKey *rsa.PublicKey
- switch k := key.(type) {
- case *rsa.PublicKey:
- rsaKey = k
- default:
- return ErrInvalidKey
- }
-
- // Create hasher
- if !m.Hash.Available() {
- return ErrHashUnavailable
- }
- hasher := m.Hash.New()
- hasher.Write([]byte(signingString))
-
- return rsa.VerifyPSS(rsaKey, m.Hash, hasher.Sum(nil), sig, m.Options)
-}
-
-// Implements the Sign method from SigningMethod
-// For this signing method, key must be an rsa.PrivateKey struct
-func (m *SigningMethodRSAPSS) Sign(signingString string, key interface{}) (string, error) {
- var rsaKey *rsa.PrivateKey
-
- switch k := key.(type) {
- case *rsa.PrivateKey:
- rsaKey = k
- default:
- return "", ErrInvalidKey
- }
-
- // Create the hasher
- if !m.Hash.Available() {
- return "", ErrHashUnavailable
- }
-
- hasher := m.Hash.New()
- hasher.Write([]byte(signingString))
-
- // Sign the string and return the encoded bytes
- if sigBytes, err := rsa.SignPSS(rand.Reader, rsaKey, m.Hash, hasher.Sum(nil), m.Options); err == nil {
- return EncodeSegment(sigBytes), nil
- } else {
- return "", err
- }
-}
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/rsa_pss_test.go b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/rsa_pss_test.go
deleted file mode 100644
index 9045aaf..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/rsa_pss_test.go
+++ /dev/null
@@ -1,96 +0,0 @@
-// +build go1.4
-
-package jwt_test
-
-import (
- "crypto/rsa"
- "io/ioutil"
- "strings"
- "testing"
-
- "github.com/dgrijalva/jwt-go"
-)
-
-var rsaPSSTestData = []struct {
- name string
- tokenString string
- alg string
- claims map[string]interface{}
- valid bool
-}{
- {
- "Basic PS256",
- "eyJhbGciOiJQUzI1NiIsInR5cCI6IkpXVCJ9.eyJmb28iOiJiYXIifQ.PPG4xyDVY8ffp4CcxofNmsTDXsrVG2npdQuibLhJbv4ClyPTUtR5giNSvuxo03kB6I8VXVr0Y9X7UxhJVEoJOmULAwRWaUsDnIewQa101cVhMa6iR8X37kfFoiZ6NkS-c7henVkkQWu2HtotkEtQvN5hFlk8IevXXPmvZlhQhwzB1sGzGYnoi1zOfuL98d3BIjUjtlwii5w6gYG2AEEzp7HnHCsb3jIwUPdq86Oe6hIFjtBwduIK90ca4UqzARpcfwxHwVLMpatKask00AgGVI0ysdk0BLMjmLutquD03XbThHScC2C2_Pp4cHWgMzvbgLU2RYYZcZRKr46QeNgz9w",
- "PS256",
- map[string]interface{}{"foo": "bar"},
- true,
- },
- {
- "Basic PS384",
- "eyJhbGciOiJQUzM4NCIsInR5cCI6IkpXVCJ9.eyJmb28iOiJiYXIifQ.w7-qqgj97gK4fJsq_DCqdYQiylJjzWONvD0qWWWhqEOFk2P1eDULPnqHRnjgTXoO4HAw4YIWCsZPet7nR3Xxq4ZhMqvKW8b7KlfRTb9cH8zqFvzMmybQ4jv2hKc3bXYqVow3AoR7hN_CWXI3Dv6Kd2X5xhtxRHI6IL39oTVDUQ74LACe-9t4c3QRPuj6Pq1H4FAT2E2kW_0KOc6EQhCLWEhm2Z2__OZskDC8AiPpP8Kv4k2vB7l0IKQu8Pr4RcNBlqJdq8dA5D3hk5TLxP8V5nG1Ib80MOMMqoS3FQvSLyolFX-R_jZ3-zfq6Ebsqr0yEb0AH2CfsECF7935Pa0FKQ",
- "PS384",
- map[string]interface{}{"foo": "bar"},
- true,
- },
- {
- "Basic PS512",
- "eyJhbGciOiJQUzUxMiIsInR5cCI6IkpXVCJ9.eyJmb28iOiJiYXIifQ.GX1HWGzFaJevuSLavqqFYaW8_TpvcjQ8KfC5fXiSDzSiT9UD9nB_ikSmDNyDILNdtjZLSvVKfXxZJqCfefxAtiozEDDdJthZ-F0uO4SPFHlGiXszvKeodh7BuTWRI2wL9-ZO4mFa8nq3GMeQAfo9cx11i7nfN8n2YNQ9SHGovG7_T_AvaMZB_jT6jkDHpwGR9mz7x1sycckEo6teLdHRnH_ZdlHlxqknmyTu8Odr5Xh0sJFOL8BepWbbvIIn-P161rRHHiDWFv6nhlHwZnVzjx7HQrWSGb6-s2cdLie9QL_8XaMcUpjLkfOMKkDOfHo6AvpL7Jbwi83Z2ZTHjJWB-A",
- "PS512",
- map[string]interface{}{"foo": "bar"},
- true,
- },
- {
- "basic PS256 invalid: foo => bar",
- "eyJhbGciOiJQUzI1NiIsInR5cCI6IkpXVCJ9.eyJmb28iOiJiYXIifQ.PPG4xyDVY8ffp4CcxofNmsTDXsrVG2npdQuibLhJbv4ClyPTUtR5giNSvuxo03kB6I8VXVr0Y9X7UxhJVEoJOmULAwRWaUsDnIewQa101cVhMa6iR8X37kfFoiZ6NkS-c7henVkkQWu2HtotkEtQvN5hFlk8IevXXPmvZlhQhwzB1sGzGYnoi1zOfuL98d3BIjUjtlwii5w6gYG2AEEzp7HnHCsb3jIwUPdq86Oe6hIFjtBwduIK90ca4UqzARpcfwxHwVLMpatKask00AgGVI0ysdk0BLMjmLutquD03XbThHScC2C2_Pp4cHWgMzvbgLU2RYYZcZRKr46QeNgz9W",
- "PS256",
- map[string]interface{}{"foo": "bar"},
- false,
- },
-}
-
-func TestRSAPSSVerify(t *testing.T) {
- var err error
-
- key, _ := ioutil.ReadFile("test/sample_key.pub")
- var rsaPSSKey *rsa.PublicKey
- if rsaPSSKey, err = jwt.ParseRSAPublicKeyFromPEM(key); err != nil {
- t.Errorf("Unable to parse RSA public key: %v", err)
- }
-
- for _, data := range rsaPSSTestData {
- parts := strings.Split(data.tokenString, ".")
-
- method := jwt.GetSigningMethod(data.alg)
- err := method.Verify(strings.Join(parts[0:2], "."), parts[2], rsaPSSKey)
- if data.valid && err != nil {
- t.Errorf("[%v] Error while verifying key: %v", data.name, err)
- }
- if !data.valid && err == nil {
- t.Errorf("[%v] Invalid key passed validation", data.name)
- }
- }
-}
-
-func TestRSAPSSSign(t *testing.T) {
- var err error
-
- key, _ := ioutil.ReadFile("test/sample_key")
- var rsaPSSKey *rsa.PrivateKey
- if rsaPSSKey, err = jwt.ParseRSAPrivateKeyFromPEM(key); err != nil {
- t.Errorf("Unable to parse RSA private key: %v", err)
- }
-
- for _, data := range rsaPSSTestData {
- if data.valid {
- parts := strings.Split(data.tokenString, ".")
- method := jwt.GetSigningMethod(data.alg)
- sig, err := method.Sign(strings.Join(parts[0:2], "."), rsaPSSKey)
- if err != nil {
- t.Errorf("[%v] Error signing token: %v", data.name, err)
- }
- if sig == parts[2] {
- t.Errorf("[%v] Signatures shouldn't match\nnew:\n%v\noriginal:\n%v", data.name, sig, parts[2])
- }
- }
- }
-}
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/rsa_test.go b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/rsa_test.go
deleted file mode 100644
index 13ba1fc..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/rsa_test.go
+++ /dev/null
@@ -1,174 +0,0 @@
-package jwt_test
-
-import (
- "github.com/dgrijalva/jwt-go"
- "io/ioutil"
- "strings"
- "testing"
-)
-
-var rsaTestData = []struct {
- name string
- tokenString string
- alg string
- claims map[string]interface{}
- valid bool
-}{
- {
- "Basic RS256",
- "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJmb28iOiJiYXIifQ.FhkiHkoESI_cG3NPigFrxEk9Z60_oXrOT2vGm9Pn6RDgYNovYORQmmA0zs1AoAOf09ly2Nx2YAg6ABqAYga1AcMFkJljwxTT5fYphTuqpWdy4BELeSYJx5Ty2gmr8e7RonuUztrdD5WfPqLKMm1Ozp_T6zALpRmwTIW0QPnaBXaQD90FplAg46Iy1UlDKr-Eupy0i5SLch5Q-p2ZpaL_5fnTIUDlxC3pWhJTyx_71qDI-mAA_5lE_VdroOeflG56sSmDxopPEG3bFlSu1eowyBfxtu0_CuVd-M42RU75Zc4Gsj6uV77MBtbMrf4_7M_NUTSgoIF3fRqxrj0NzihIBg",
- "RS256",
- map[string]interface{}{"foo": "bar"},
- true,
- },
- {
- "Basic RS384",
- "eyJhbGciOiJSUzM4NCIsInR5cCI6IkpXVCJ9.eyJmb28iOiJiYXIifQ.W-jEzRfBigtCWsinvVVuldiuilzVdU5ty0MvpLaSaqK9PlAWWlDQ1VIQ_qSKzwL5IXaZkvZFJXT3yL3n7OUVu7zCNJzdwznbC8Z-b0z2lYvcklJYi2VOFRcGbJtXUqgjk2oGsiqUMUMOLP70TTefkpsgqDxbRh9CDUfpOJgW-dU7cmgaoswe3wjUAUi6B6G2YEaiuXC0XScQYSYVKIzgKXJV8Zw-7AN_DBUI4GkTpsvQ9fVVjZM9csQiEXhYekyrKu1nu_POpQonGd8yqkIyXPECNmmqH5jH4sFiF67XhD7_JpkvLziBpI-uh86evBUadmHhb9Otqw3uV3NTaXLzJw",
- "RS384",
- map[string]interface{}{"foo": "bar"},
- true,
- },
- {
- "Basic RS512",
- "eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCJ9.eyJmb28iOiJiYXIifQ.zBlLlmRrUxx4SJPUbV37Q1joRcI9EW13grnKduK3wtYKmDXbgDpF1cZ6B-2Jsm5RB8REmMiLpGms-EjXhgnyh2TSHE-9W2gA_jvshegLWtwRVDX40ODSkTb7OVuaWgiy9y7llvcknFBTIg-FnVPVpXMmeV_pvwQyhaz1SSwSPrDyxEmksz1hq7YONXhXPpGaNbMMeDTNP_1oj8DZaqTIL9TwV8_1wb2Odt_Fy58Ke2RVFijsOLdnyEAjt2n9Mxihu9i3PhNBkkxa2GbnXBfq3kzvZ_xxGGopLdHhJjcGWXO-NiwI9_tiu14NRv4L2xC0ItD9Yz68v2ZIZEp_DuzwRQ",
- "RS512",
- map[string]interface{}{"foo": "bar"},
- true,
- },
- {
- "basic invalid: foo => bar",
- "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJmb28iOiJiYXIifQ.EhkiHkoESI_cG3NPigFrxEk9Z60_oXrOT2vGm9Pn6RDgYNovYORQmmA0zs1AoAOf09ly2Nx2YAg6ABqAYga1AcMFkJljwxTT5fYphTuqpWdy4BELeSYJx5Ty2gmr8e7RonuUztrdD5WfPqLKMm1Ozp_T6zALpRmwTIW0QPnaBXaQD90FplAg46Iy1UlDKr-Eupy0i5SLch5Q-p2ZpaL_5fnTIUDlxC3pWhJTyx_71qDI-mAA_5lE_VdroOeflG56sSmDxopPEG3bFlSu1eowyBfxtu0_CuVd-M42RU75Zc4Gsj6uV77MBtbMrf4_7M_NUTSgoIF3fRqxrj0NzihIBg",
- "RS256",
- map[string]interface{}{"foo": "bar"},
- false,
- },
-}
-
-func TestRSAVerify(t *testing.T) {
- key, _ := ioutil.ReadFile("test/sample_key.pub")
-
- for _, data := range rsaTestData {
- parts := strings.Split(data.tokenString, ".")
-
- method := jwt.GetSigningMethod(data.alg)
- err := method.Verify(strings.Join(parts[0:2], "."), parts[2], key)
- if data.valid && err != nil {
- t.Errorf("[%v] Error while verifying key: %v", data.name, err)
- }
- if !data.valid && err == nil {
- t.Errorf("[%v] Invalid key passed validation", data.name)
- }
- }
-}
-
-func TestRSASign(t *testing.T) {
- key, _ := ioutil.ReadFile("test/sample_key")
-
- for _, data := range rsaTestData {
- if data.valid {
- parts := strings.Split(data.tokenString, ".")
- method := jwt.GetSigningMethod(data.alg)
- sig, err := method.Sign(strings.Join(parts[0:2], "."), key)
- if err != nil {
- t.Errorf("[%v] Error signing token: %v", data.name, err)
- }
- if sig != parts[2] {
- t.Errorf("[%v] Incorrect signature.\nwas:\n%v\nexpecting:\n%v", data.name, sig, parts[2])
- }
- }
- }
-}
-
-func TestRSAVerifyWithPreParsedPrivateKey(t *testing.T) {
- key, _ := ioutil.ReadFile("test/sample_key.pub")
- parsedKey, err := jwt.ParseRSAPublicKeyFromPEM(key)
- if err != nil {
- t.Fatal(err)
- }
- testData := rsaTestData[0]
- parts := strings.Split(testData.tokenString, ".")
- err = jwt.SigningMethodRS256.Verify(strings.Join(parts[0:2], "."), parts[2], parsedKey)
- if err != nil {
- t.Errorf("[%v] Error while verifying key: %v", testData.name, err)
- }
-}
-
-func TestRSAWithPreParsedPrivateKey(t *testing.T) {
- key, _ := ioutil.ReadFile("test/sample_key")
- parsedKey, err := jwt.ParseRSAPrivateKeyFromPEM(key)
- if err != nil {
- t.Fatal(err)
- }
- testData := rsaTestData[0]
- parts := strings.Split(testData.tokenString, ".")
- sig, err := jwt.SigningMethodRS256.Sign(strings.Join(parts[0:2], "."), parsedKey)
- if err != nil {
- t.Errorf("[%v] Error signing token: %v", testData.name, err)
- }
- if sig != parts[2] {
- t.Errorf("[%v] Incorrect signature.\nwas:\n%v\nexpecting:\n%v", testData.name, sig, parts[2])
- }
-}
-
-func TestRSAKeyParsing(t *testing.T) {
- key, _ := ioutil.ReadFile("test/sample_key")
- pubKey, _ := ioutil.ReadFile("test/sample_key.pub")
- badKey := []byte("All your base are belong to key")
-
- // Test parsePrivateKey
- if _, e := jwt.ParseRSAPrivateKeyFromPEM(key); e != nil {
- t.Errorf("Failed to parse valid private key: %v", e)
- }
-
- if k, e := jwt.ParseRSAPrivateKeyFromPEM(pubKey); e == nil {
- t.Errorf("Parsed public key as valid private key: %v", k)
- }
-
- if k, e := jwt.ParseRSAPrivateKeyFromPEM(badKey); e == nil {
- t.Errorf("Parsed invalid key as valid private key: %v", k)
- }
-
- // Test parsePublicKey
- if _, e := jwt.ParseRSAPublicKeyFromPEM(pubKey); e != nil {
- t.Errorf("Failed to parse valid public key: %v", e)
- }
-
- if k, e := jwt.ParseRSAPublicKeyFromPEM(key); e == nil {
- t.Errorf("Parsed private key as valid public key: %v", k)
- }
-
- if k, e := jwt.ParseRSAPublicKeyFromPEM(badKey); e == nil {
- t.Errorf("Parsed invalid key as valid private key: %v", k)
- }
-
-}
-
-func BenchmarkRS256Signing(b *testing.B) {
- key, _ := ioutil.ReadFile("test/sample_key")
- parsedKey, err := jwt.ParseRSAPrivateKeyFromPEM(key)
- if err != nil {
- b.Fatal(err)
- }
-
- benchmarkSigning(b, jwt.SigningMethodRS256, parsedKey)
-}
-
-func BenchmarkRS384Signing(b *testing.B) {
- key, _ := ioutil.ReadFile("test/sample_key")
- parsedKey, err := jwt.ParseRSAPrivateKeyFromPEM(key)
- if err != nil {
- b.Fatal(err)
- }
-
- benchmarkSigning(b, jwt.SigningMethodRS384, parsedKey)
-}
-
-func BenchmarkRS512Signing(b *testing.B) {
- key, _ := ioutil.ReadFile("test/sample_key")
- parsedKey, err := jwt.ParseRSAPrivateKeyFromPEM(key)
- if err != nil {
- b.Fatal(err)
- }
-
- benchmarkSigning(b, jwt.SigningMethodRS512, parsedKey)
-}
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/rsa_utils.go b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/rsa_utils.go
deleted file mode 100644
index 213a90d..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/rsa_utils.go
+++ /dev/null
@@ -1,69 +0,0 @@
-package jwt
-
-import (
- "crypto/rsa"
- "crypto/x509"
- "encoding/pem"
- "errors"
-)
-
-var (
- ErrKeyMustBePEMEncoded = errors.New("Invalid Key: Key must be PEM encoded PKCS1 or PKCS8 private key")
- ErrNotRSAPrivateKey = errors.New("Key is not a valid RSA private key")
- ErrNotRSAPublicKey = errors.New("Key is not a valid RSA public key")
-)
-
-// Parse PEM encoded PKCS1 or PKCS8 private key
-func ParseRSAPrivateKeyFromPEM(key []byte) (*rsa.PrivateKey, error) {
- var err error
-
- // Parse PEM block
- var block *pem.Block
- if block, _ = pem.Decode(key); block == nil {
- return nil, ErrKeyMustBePEMEncoded
- }
-
- var parsedKey interface{}
- if parsedKey, err = x509.ParsePKCS1PrivateKey(block.Bytes); err != nil {
- if parsedKey, err = x509.ParsePKCS8PrivateKey(block.Bytes); err != nil {
- return nil, err
- }
- }
-
- var pkey *rsa.PrivateKey
- var ok bool
- if pkey, ok = parsedKey.(*rsa.PrivateKey); !ok {
- return nil, ErrNotRSAPrivateKey
- }
-
- return pkey, nil
-}
-
-// Parse PEM encoded PKCS1 or PKCS8 public key
-func ParseRSAPublicKeyFromPEM(key []byte) (*rsa.PublicKey, error) {
- var err error
-
- // Parse PEM block
- var block *pem.Block
- if block, _ = pem.Decode(key); block == nil {
- return nil, ErrKeyMustBePEMEncoded
- }
-
- // Parse the key
- var parsedKey interface{}
- if parsedKey, err = x509.ParsePKIXPublicKey(block.Bytes); err != nil {
- if cert, err := x509.ParseCertificate(block.Bytes); err == nil {
- parsedKey = cert.PublicKey
- } else {
- return nil, err
- }
- }
-
- var pkey *rsa.PublicKey
- var ok bool
- if pkey, ok = parsedKey.(*rsa.PublicKey); !ok {
- return nil, ErrNotRSAPublicKey
- }
-
- return pkey, nil
-}
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/signing_method.go b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/signing_method.go
deleted file mode 100644
index 12cf0f3..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/signing_method.go
+++ /dev/null
@@ -1,24 +0,0 @@
-package jwt
-
-var signingMethods = map[string]func() SigningMethod{}
-
-// Implement SigningMethod to add new methods for signing or verifying tokens.
-type SigningMethod interface {
- Verify(signingString, signature string, key interface{}) error // Returns nil if signature is valid
- Sign(signingString string, key interface{}) (string, error) // Returns encoded signature or error
- Alg() string // returns the alg identifier for this method (example: 'HS256')
-}
-
-// Register the "alg" name and a factory function for signing method.
-// This is typically done during init() in the method's implementation
-func RegisterSigningMethod(alg string, f func() SigningMethod) {
- signingMethods[alg] = f
-}
-
-// Get a signing method from an "alg" string
-func GetSigningMethod(alg string) (method SigningMethod) {
- if methodF, ok := signingMethods[alg]; ok {
- method = methodF()
- }
- return
-}
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/ec256-private.pem b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/ec256-private.pem
deleted file mode 100644
index a6882b3..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/ec256-private.pem
+++ /dev/null
@@ -1,5 +0,0 @@
------BEGIN EC PRIVATE KEY-----
-MHcCAQEEIAh5qA3rmqQQuu0vbKV/+zouz/y/Iy2pLpIcWUSyImSwoAoGCCqGSM49
-AwEHoUQDQgAEYD54V/vp+54P9DXarYqx4MPcm+HKRIQzNasYSoRQHQ/6S6Ps8tpM
-cT+KvIIC8W/e9k0W7Cm72M1P9jU7SLf/vg==
------END EC PRIVATE KEY-----
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/ec256-public.pem b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/ec256-public.pem
deleted file mode 100644
index 7191361..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/ec256-public.pem
+++ /dev/null
@@ -1,4 +0,0 @@
------BEGIN PUBLIC KEY-----
-MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEYD54V/vp+54P9DXarYqx4MPcm+HK
-RIQzNasYSoRQHQ/6S6Ps8tpMcT+KvIIC8W/e9k0W7Cm72M1P9jU7SLf/vg==
------END PUBLIC KEY-----
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/ec384-private.pem b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/ec384-private.pem
deleted file mode 100644
index a86c823..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/ec384-private.pem
+++ /dev/null
@@ -1,6 +0,0 @@
------BEGIN EC PRIVATE KEY-----
-MIGkAgEBBDCaCvMHKhcG/qT7xsNLYnDT7sE/D+TtWIol1ROdaK1a564vx5pHbsRy
-SEKcIxISi1igBwYFK4EEACKhZANiAATYa7rJaU7feLMqrAx6adZFNQOpaUH/Uylb
-ZLriOLON5YFVwtVUpO1FfEXZUIQpptRPtc5ixIPY658yhBSb6irfIJUSP9aYTflJ
-GKk/mDkK4t8mWBzhiD5B6jg9cEGhGgA=
------END EC PRIVATE KEY-----
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/ec384-public.pem b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/ec384-public.pem
deleted file mode 100644
index e80d005..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/ec384-public.pem
+++ /dev/null
@@ -1,5 +0,0 @@
------BEGIN PUBLIC KEY-----
-MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE2Gu6yWlO33izKqwMemnWRTUDqWlB/1Mp
-W2S64jizjeWBVcLVVKTtRXxF2VCEKabUT7XOYsSD2OufMoQUm+oq3yCVEj/WmE35
-SRipP5g5CuLfJlgc4Yg+Qeo4PXBBoRoA
------END PUBLIC KEY-----
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/ec512-private.pem b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/ec512-private.pem
deleted file mode 100644
index 213afaf..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/ec512-private.pem
+++ /dev/null
@@ -1,7 +0,0 @@
------BEGIN EC PRIVATE KEY-----
-MIHcAgEBBEIB0pE4uFaWRx7t03BsYlYvF1YvKaBGyvoakxnodm9ou0R9wC+sJAjH
-QZZJikOg4SwNqgQ/hyrOuDK2oAVHhgVGcYmgBwYFK4EEACOhgYkDgYYABAAJXIuw
-12MUzpHggia9POBFYXSxaOGKGbMjIyDI+6q7wi7LMw3HgbaOmgIqFG72o8JBQwYN
-4IbXHf+f86CRY1AA2wHzbHvt6IhkCXTNxBEffa1yMUgu8n9cKKF2iLgyQKcKqW33
-8fGOw/n3Rm2Yd/EB56u2rnD29qS+nOM9eGS+gy39OQ==
------END EC PRIVATE KEY-----
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/ec512-public.pem b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/ec512-public.pem
deleted file mode 100644
index 02ea022..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/ec512-public.pem
+++ /dev/null
@@ -1,6 +0,0 @@
------BEGIN PUBLIC KEY-----
-MIGbMBAGByqGSM49AgEGBSuBBAAjA4GGAAQACVyLsNdjFM6R4IImvTzgRWF0sWjh
-ihmzIyMgyPuqu8IuyzMNx4G2jpoCKhRu9qPCQUMGDeCG1x3/n/OgkWNQANsB82x7
-7eiIZAl0zcQRH32tcjFILvJ/XCihdoi4MkCnCqlt9/HxjsP590ZtmHfxAeertq5w
-9vakvpzjPXhkvoMt/Tk=
------END PUBLIC KEY-----
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/hmacTestKey b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/hmacTestKey
deleted file mode 100644
index 435b8dd..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/hmacTestKey
+++ /dev/null
@@ -1 +0,0 @@
-#5K+���~ew{��Z�(��T�(����P.���Z��G��wb="=.!r.O�͚�gЀ�
\ No newline at end of file
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/sample_key b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/sample_key
deleted file mode 100644
index abdbade..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/sample_key
+++ /dev/null
@@ -1,27 +0,0 @@
------BEGIN RSA PRIVATE KEY-----
-MIIEowIBAAKCAQEA4f5wg5l2hKsTeNem/V41fGnJm6gOdrj8ym3rFkEU/wT8RDtn
-SgFEZOQpHEgQ7JL38xUfU0Y3g6aYw9QT0hJ7mCpz9Er5qLaMXJwZxzHzAahlfA0i
-cqabvJOMvQtzD6uQv6wPEyZtDTWiQi9AXwBpHssPnpYGIn20ZZuNlX2BrClciHhC
-PUIIZOQn/MmqTD31jSyjoQoV7MhhMTATKJx2XrHhR+1DcKJzQBSTAGnpYVaqpsAR
-ap+nwRipr3nUTuxyGohBTSmjJ2usSeQXHI3bODIRe1AuTyHceAbewn8b462yEWKA
-Rdpd9AjQW5SIVPfdsz5B6GlYQ5LdYKtznTuy7wIDAQABAoIBAQCwia1k7+2oZ2d3
-n6agCAbqIE1QXfCmh41ZqJHbOY3oRQG3X1wpcGH4Gk+O+zDVTV2JszdcOt7E5dAy
-MaomETAhRxB7hlIOnEN7WKm+dGNrKRvV0wDU5ReFMRHg31/Lnu8c+5BvGjZX+ky9
-POIhFFYJqwCRlopGSUIxmVj5rSgtzk3iWOQXr+ah1bjEXvlxDOWkHN6YfpV5ThdE
-KdBIPGEVqa63r9n2h+qazKrtiRqJqGnOrHzOECYbRFYhexsNFz7YT02xdfSHn7gM
-IvabDDP/Qp0PjE1jdouiMaFHYnLBbgvlnZW9yuVf/rpXTUq/njxIXMmvmEyyvSDn
-FcFikB8pAoGBAPF77hK4m3/rdGT7X8a/gwvZ2R121aBcdPwEaUhvj/36dx596zvY
-mEOjrWfZhF083/nYWE2kVquj2wjs+otCLfifEEgXcVPTnEOPO9Zg3uNSL0nNQghj
-FuD3iGLTUBCtM66oTe0jLSslHe8gLGEQqyMzHOzYxNqibxcOZIe8Qt0NAoGBAO+U
-I5+XWjWEgDmvyC3TrOSf/KCGjtu0TSv30ipv27bDLMrpvPmD/5lpptTFwcxvVhCs
-2b+chCjlghFSWFbBULBrfci2FtliClOVMYrlNBdUSJhf3aYSG2Doe6Bgt1n2CpNn
-/iu37Y3NfemZBJA7hNl4dYe+f+uzM87cdQ214+jrAoGAXA0XxX8ll2+ToOLJsaNT
-OvNB9h9Uc5qK5X5w+7G7O998BN2PC/MWp8H+2fVqpXgNENpNXttkRm1hk1dych86
-EunfdPuqsX+as44oCyJGFHVBnWpm33eWQw9YqANRI+pCJzP08I5WK3osnPiwshd+
-hR54yjgfYhBFNI7B95PmEQkCgYBzFSz7h1+s34Ycr8SvxsOBWxymG5zaCsUbPsL0
-4aCgLScCHb9J+E86aVbbVFdglYa5Id7DPTL61ixhl7WZjujspeXZGSbmq0Kcnckb
-mDgqkLECiOJW2NHP/j0McAkDLL4tysF8TLDO8gvuvzNC+WQ6drO2ThrypLVZQ+ry
-eBIPmwKBgEZxhqa0gVvHQG/7Od69KWj4eJP28kq13RhKay8JOoN0vPmspXJo1HY3
-CKuHRG+AP579dncdUnOMvfXOtkdM4vk0+hWASBQzM9xzVcztCa+koAugjVaLS9A+
-9uQoqEeVNTckxx0S2bYevRy7hGQmUJTyQm3j1zEUR5jpdbL83Fbq
------END RSA PRIVATE KEY-----
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/sample_key.pub b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/sample_key.pub
deleted file mode 100644
index 03dc982..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/test/sample_key.pub
+++ /dev/null
@@ -1,9 +0,0 @@
------BEGIN PUBLIC KEY-----
-MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4f5wg5l2hKsTeNem/V41
-fGnJm6gOdrj8ym3rFkEU/wT8RDtnSgFEZOQpHEgQ7JL38xUfU0Y3g6aYw9QT0hJ7
-mCpz9Er5qLaMXJwZxzHzAahlfA0icqabvJOMvQtzD6uQv6wPEyZtDTWiQi9AXwBp
-HssPnpYGIn20ZZuNlX2BrClciHhCPUIIZOQn/MmqTD31jSyjoQoV7MhhMTATKJx2
-XrHhR+1DcKJzQBSTAGnpYVaqpsARap+nwRipr3nUTuxyGohBTSmjJ2usSeQXHI3b
-ODIRe1AuTyHceAbewn8b462yEWKARdpd9AjQW5SIVPfdsz5B6GlYQ5LdYKtznTuy
-7wIDAQAB
------END PUBLIC KEY-----
diff --git a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/token.go b/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/token.go
deleted file mode 100644
index 1cf267d..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/dgrijalva/jwt-go/token.go
+++ /dev/null
@@ -1,126 +0,0 @@
-package jwt
-
-import (
- "encoding/base64"
- "encoding/json"
- "net/http"
- "strings"
- "time"
-)
-
-// TimeFunc provides the current time when parsing token to validate "exp" claim (expiration time).
-// You can override it to use another time value. This is useful for testing or if your
-// server uses a different time zone than your tokens.
-var TimeFunc = time.Now
-
-// Parse methods use this callback function to supply
-// the key for verification. The function receives the parsed,
-// but unverified Token. This allows you to use propries in the
-// Header of the token (such as `kid`) to identify which key to use.
-type Keyfunc func(*Token) (interface{}, error)
-
-// A JWT Token. Different fields will be used depending on whether you're
-// creating or parsing/verifying a token.
-type Token struct {
- Raw string // The raw token. Populated when you Parse a token
- Method SigningMethod // The signing method used or to be used
- Header map[string]interface{} // The first segment of the token
- Claims map[string]interface{} // The second segment of the token
- Signature string // The third segment of the token. Populated when you Parse a token
- Valid bool // Is the token valid? Populated when you Parse/Verify a token
-}
-
-// Create a new Token. Takes a signing method
-func New(method SigningMethod) *Token {
- return &Token{
- Header: map[string]interface{}{
- "typ": "JWT",
- "alg": method.Alg(),
- },
- Claims: make(map[string]interface{}),
- Method: method,
- }
-}
-
-// Get the complete, signed token
-func (t *Token) SignedString(key interface{}) (string, error) {
- var sig, sstr string
- var err error
- if sstr, err = t.SigningString(); err != nil {
- return "", err
- }
- if sig, err = t.Method.Sign(sstr, key); err != nil {
- return "", err
- }
- return strings.Join([]string{sstr, sig}, "."), nil
-}
-
-// Generate the signing string. This is the
-// most expensive part of the whole deal. Unless you
-// need this for something special, just go straight for
-// the SignedString.
-func (t *Token) SigningString() (string, error) {
- var err error
- parts := make([]string, 2)
- for i, _ := range parts {
- var source map[string]interface{}
- if i == 0 {
- source = t.Header
- } else {
- source = t.Claims
- }
-
- var jsonValue []byte
- if jsonValue, err = json.Marshal(source); err != nil {
- return "", err
- }
-
- parts[i] = EncodeSegment(jsonValue)
- }
- return strings.Join(parts, "."), nil
-}
-
-// Parse, validate, and return a token.
-// keyFunc will receive the parsed token and should return the key for validating.
-// If everything is kosher, err will be nil
-func Parse(tokenString string, keyFunc Keyfunc) (*Token, error) {
- return new(Parser).Parse(tokenString, keyFunc)
-}
-
-// Try to find the token in an http.Request.
-// This method will call ParseMultipartForm if there's no token in the header.
-// Currently, it looks in the Authorization header as well as
-// looking for an 'access_token' request parameter in req.Form.
-func ParseFromRequest(req *http.Request, keyFunc Keyfunc) (token *Token, err error) {
-
- // Look for an Authorization header
- if ah := req.Header.Get("Authorization"); ah != "" {
- // Should be a bearer token
- if len(ah) > 6 && strings.ToUpper(ah[0:7]) == "BEARER " {
- return Parse(ah[7:], keyFunc)
- }
- }
-
- // Look for "access_token" parameter
- req.ParseMultipartForm(10e6)
- if tokStr := req.Form.Get("access_token"); tokStr != "" {
- return Parse(tokStr, keyFunc)
- }
-
- return nil, ErrNoTokenInRequest
-
-}
-
-// Encode JWT specific base64url encoding with padding stripped
-func EncodeSegment(seg []byte) string {
- return strings.TrimRight(base64.URLEncoding.EncodeToString(seg), "=")
-}
-
-// Decode JWT specific base64url encoding with padding stripped
-func DecodeSegment(seg string) ([]byte, error) {
- if l := len(seg) % 4; l > 0 {
- seg += strings.Repeat("=", 4-l)
- }
-
- return base64.URLEncoding.DecodeString(seg)
-}
diff --git a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/.gitignore b/experimental/traffic_ops_auth/vendor/github.com/lib/pq/.gitignore
deleted file mode 100644
index 0f1d00e..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-.db
-*.test
-*~
-*.swp
diff --git a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/.travis.yml b/experimental/traffic_ops_auth/vendor/github.com/lib/pq/.travis.yml
deleted file mode 100644
index d63afcb..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/.travis.yml
+++ /dev/null
@@ -1,68 +0,0 @@
-language: go
-
-go:
- - 1.4
- - 1.5
- - 1.6
- - tip
-
-before_install:
- - psql --version
- - sudo /etc/init.d/postgresql stop
- - sudo apt-get -y --purge remove postgresql libpq-dev libpq5 postgresql-client-common postgresql-common
- - sudo rm -rf /var/lib/postgresql
- - wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
- - sudo sh -c "echo deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main $PGVERSION >> /etc/apt/sources.list.d/postgresql.list"
- - sudo apt-get update -qq
- - sudo apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::="--force-confnew" install postgresql-$PGVERSION postgresql-server-dev-$PGVERSION postgresql-contrib-$PGVERSION
- - sudo chmod 777 /etc/postgresql/$PGVERSION/main/pg_hba.conf
- - echo "local all postgres trust" > /etc/postgresql/$PGVERSION/main/pg_hba.conf
- - echo "local all all trust" >> /etc/postgresql/$PGVERSION/main/pg_hba.conf
- - echo "hostnossl all pqgossltest 127.0.0.1/32 reject" >> /etc/postgresql/$PGVERSION/main/pg_hba.conf
- - echo "hostnossl all pqgosslcert 127.0.0.1/32 reject" >> /etc/postgresql/$PGVERSION/main/pg_hba.conf
- - echo "hostssl all pqgossltest 127.0.0.1/32 trust" >> /etc/postgresql/$PGVERSION/main/pg_hba.conf
- - echo "hostssl all pqgosslcert 127.0.0.1/32 cert" >> /etc/postgresql/$PGVERSION/main/pg_hba.conf
- - echo "host all all 127.0.0.1/32 trust" >> /etc/postgresql/$PGVERSION/main/pg_hba.conf
- - echo "hostnossl all pqgossltest ::1/128 reject" >> /etc/postgresql/$PGVERSION/main/pg_hba.conf
- - echo "hostnossl all pqgosslcert ::1/128 reject" >> /etc/postgresql/$PGVERSION/main/pg_hba.conf
- - echo "hostssl all pqgossltest ::1/128 trust" >> /etc/postgresql/$PGVERSION/main/pg_hba.conf
- - echo "hostssl all pqgosslcert ::1/128 cert" >> /etc/postgresql/$PGVERSION/main/pg_hba.conf
- - echo "host all all ::1/128 trust" >> /etc/postgresql/$PGVERSION/main/pg_hba.conf
- - sudo install -o postgres -g postgres -m 600 -t /var/lib/postgresql/$PGVERSION/main/ certs/server.key certs/server.crt certs/root.crt
- - sudo bash -c "[[ '${PGVERSION}' < '9.2' ]] || (echo \"ssl_cert_file = 'server.crt'\" >> /etc/postgresql/$PGVERSION/main/postgresql.conf)"
- - sudo bash -c "[[ '${PGVERSION}' < '9.2' ]] || (echo \"ssl_key_file = 'server.key'\" >> /etc/postgresql/$PGVERSION/main/postgresql.conf)"
- - sudo bash -c "[[ '${PGVERSION}' < '9.2' ]] || (echo \"ssl_ca_file = 'root.crt'\" >> /etc/postgresql/$PGVERSION/main/postgresql.conf)"
- - sudo sh -c "echo 127.0.0.1 postgres >> /etc/hosts"
- - sudo ls -l /var/lib/postgresql/$PGVERSION/main/
- - sudo cat /etc/postgresql/$PGVERSION/main/postgresql.conf
- - sudo chmod 600 $PQSSLCERTTEST_PATH/postgresql.key
- - sudo /etc/init.d/postgresql restart
- - go get golang.org/x/tools/cmd/goimports
-
-env:
- global:
- - PGUSER=postgres
- - PQGOSSLTESTS=1
- - PQSSLCERTTEST_PATH=$PWD/certs
- - PGHOST=127.0.0.1
- matrix:
- - PGVERSION=9.5 PQTEST_BINARY_PARAMETERS=yes
- - PGVERSION=9.4 PQTEST_BINARY_PARAMETERS=yes
- - PGVERSION=9.3 PQTEST_BINARY_PARAMETERS=yes
- - PGVERSION=9.2 PQTEST_BINARY_PARAMETERS=yes
- - PGVERSION=9.1 PQTEST_BINARY_PARAMETERS=yes
- - PGVERSION=9.0 PQTEST_BINARY_PARAMETERS=yes
- - PGVERSION=9.5 PQTEST_BINARY_PARAMETERS=no
- - PGVERSION=9.4 PQTEST_BINARY_PARAMETERS=no
- - PGVERSION=9.3 PQTEST_BINARY_PARAMETERS=no
- - PGVERSION=9.2 PQTEST_BINARY_PARAMETERS=no
- - PGVERSION=9.1 PQTEST_BINARY_PARAMETERS=no
- - PGVERSION=9.0 PQTEST_BINARY_PARAMETERS=no
-
-script:
- - result=$(goimports -d -e $(find -name \*.go)); test -z "$result" || (echo "$result" && false) && go vet ./... && go test -v ./...
-
-before_script:
- - psql -c 'create database pqgotest' -U postgres
- - psql -c 'create user pqgossltest' -U postgres
- - psql -c 'create user pqgosslcert' -U postgres
diff --git a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/CONTRIBUTING.md b/experimental/traffic_ops_auth/vendor/github.com/lib/pq/CONTRIBUTING.md
deleted file mode 100644
index 84c937f..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/CONTRIBUTING.md
+++ /dev/null
@@ -1,29 +0,0 @@
-## Contributing to pq
-
-`pq` has a backlog of pull requests, but contributions are still very
-much welcome. You can help with patch review, submitting bug reports,
-or adding new functionality. There is no formal style guide, but
-please conform to the style of existing code and general Go formatting
-conventions when submitting patches.
-
-### Patch review
-
-Help review existing open pull requests by commenting on the code or
-proposed functionality.
-
-### Bug reports
-
-We appreciate any bug reports, but especially ones with self-contained
-(doesn't depend on code outside of pq), minimal (can't be simplified
-further) test cases. It's especially helpful if you can submit a pull
-request with just the failing test case (you'll probably want to
-pattern it after the tests in
-[conn_test.go](https://github.com/lib/pq/blob/master/conn_test.go).
-
-### New functionality
-
-There are a number of pending patches for new functionality, so
-additional feature patches will take a while to merge. Still, patches
-are generally reviewed based on usefulness and complexity in addition
-to time-in-queue, so if you have a knockout idea, take a shot. Feel
-free to open an issue discussion your proposed patch beforehand.
diff --git a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/LICENSE.md b/experimental/traffic_ops_auth/vendor/github.com/lib/pq/LICENSE.md
deleted file mode 100644
index 5773904..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/LICENSE.md
+++ /dev/null
@@ -1,8 +0,0 @@
-Copyright (c) 2011-2013, 'pq' Contributors
-Portions Copyright (C) 2011 Blake Mizerany
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/README.md b/experimental/traffic_ops_auth/vendor/github.com/lib/pq/README.md
deleted file mode 100644
index 148451e..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/README.md
+++ /dev/null
@@ -1,105 +0,0 @@
-# pq - A pure Go postgres driver for Go's database/sql package
-
-[](https://travis-ci.org/lib/pq)
-
-## Install
-
- go get github.com/lib/pq
-
-## Docs
-
-For detailed documentation and basic usage examples, please see the package
-documentation at <http://godoc.org/github.com/lib/pq>.
-
-## Tests
-
-`go test` is used for testing. A running PostgreSQL server is
-required, with the ability to log in. The default database to connect
-to test with is "pqgotest," but it can be overridden using environment
-variables.
-
-Example:
-
- PGHOST=/run/postgresql go test github.com/lib/pq
-
-Optionally, a benchmark suite can be run as part of the tests:
-
- PGHOST=/run/postgresql go test -bench .
-
-## Features
-
-* SSL
-* Handles bad connections for `database/sql`
-* Scan `time.Time` correctly (i.e. `timestamp[tz]`, `time[tz]`, `date`)
-* Scan binary blobs correctly (i.e. `bytea`)
-* Package for `hstore` support
-* COPY FROM support
-* pq.ParseURL for converting urls to connection strings for sql.Open.
-* Many libpq compatible environment variables
-* Unix socket support
-* Notifications: `LISTEN`/`NOTIFY`
-* pgpass support
-
-## Future / Things you can help with
-
-* Better COPY FROM / COPY TO (see discussion in #181)
-
-## Thank you (alphabetical)
-
-Some of these contributors are from the original library `bmizerany/pq.go` whose
-code still exists in here.
-
-* Andy Balholm (andybalholm)
-* Ben Berkert (benburkert)
-* Benjamin Heatwole (bheatwole)
-* Bill Mill (llimllib)
-* Bjørn Madsen (aeons)
-* Blake Gentry (bgentry)
-* Brad Fitzpatrick (bradfitz)
-* Charlie Melbye (cmelbye)
-* Chris Bandy (cbandy)
-* Chris Gilling (cgilling)
-* Chris Walsh (cwds)
-* Dan Sosedoff (sosedoff)
-* Daniel Farina (fdr)
-* Eric Chlebek (echlebek)
-* Eric Garrido (minusnine)
-* Eric Urban (hydrogen18)
-* Everyone at The Go Team
-* Evan Shaw (edsrzf)
-* Ewan Chou (coocood)
-* Fazal Majid (fazalmajid)
-* Federico Romero (federomero)
-* Fumin (fumin)
-* Gary Burd (garyburd)
-* Heroku (heroku)
-* James Pozdena (jpoz)
-* Jason McVetta (jmcvetta)
-* Jeremy Jay (pbnjay)
-* Joakim Sernbrant (serbaut)
-* John Gallagher (jgallagher)
-* Jonathan Rudenberg (titanous)
-* Joël Stemmer (jstemmer)
-* Kamil Kisiel (kisielk)
-* Kelly Dunn (kellydunn)
-* Keith Rarick (kr)
-* Kir Shatrov (kirs)
-* Lann Martin (lann)
-* Maciek Sakrejda (deafbybeheading)
-* Marc Brinkmann (mbr)
-* Marko Tiikkaja (johto)
-* Matt Newberry (MattNewberry)
-* Matt Robenolt (mattrobenolt)
-* Martin Olsen (martinolsen)
-* Mike Lewis (mikelikespie)
-* Nicolas Patry (Narsil)
-* Oliver Tonnhofer (olt)
-* Patrick Hayes (phayes)
-* Paul Hammond (paulhammond)
-* Ryan Smith (ryandotsmith)
-* Samuel Stauffer (samuel)
-* Timothée Peignier (cyberdelia)
-* Travis Cline (tmc)
-* TruongSinh Tran-Nguyen (truongsinh)
-* Yaismel Miranda (ympons)
-* notedit (notedit)
diff --git a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/bench_test.go b/experimental/traffic_ops_auth/vendor/github.com/lib/pq/bench_test.go
deleted file mode 100644
index e71f41d..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/bench_test.go
+++ /dev/null
@@ -1,435 +0,0 @@
-// +build go1.1
-
-package pq
-
-import (
- "bufio"
- "bytes"
- "database/sql"
- "database/sql/driver"
- "io"
- "math/rand"
- "net"
- "runtime"
- "strconv"
- "strings"
- "sync"
- "testing"
- "time"
-
- "github.com/lib/pq/oid"
-)
-
-var (
- selectStringQuery = "SELECT '" + strings.Repeat("0123456789", 10) + "'"
- selectSeriesQuery = "SELECT generate_series(1, 100)"
-)
-
-func BenchmarkSelectString(b *testing.B) {
- var result string
- benchQuery(b, selectStringQuery, &result)
-}
-
-func BenchmarkSelectSeries(b *testing.B) {
- var result int
- benchQuery(b, selectSeriesQuery, &result)
-}
-
-func benchQuery(b *testing.B, query string, result interface{}) {
- b.StopTimer()
- db := openTestConn(b)
- defer db.Close()
- b.StartTimer()
-
- for i := 0; i < b.N; i++ {
- benchQueryLoop(b, db, query, result)
- }
-}
-
-func benchQueryLoop(b *testing.B, db *sql.DB, query string, result interface{}) {
- rows, err := db.Query(query)
- if err != nil {
- b.Fatal(err)
- }
- defer rows.Close()
- for rows.Next() {
- err = rows.Scan(result)
- if err != nil {
- b.Fatal("failed to scan", err)
- }
- }
-}
-
-// reading from circularConn yields content[:prefixLen] once, followed by
-// content[prefixLen:] over and over again. It never returns EOF.
-type circularConn struct {
- content string
- prefixLen int
- pos int
- net.Conn // for all other net.Conn methods that will never be called
-}
-
-func (r *circularConn) Read(b []byte) (n int, err error) {
- n = copy(b, r.content[r.pos:])
- r.pos += n
- if r.pos >= len(r.content) {
- r.pos = r.prefixLen
- }
- return
-}
-
-func (r *circularConn) Write(b []byte) (n int, err error) { return len(b), nil }
-
-func (r *circularConn) Close() error { return nil }
-
-func fakeConn(content string, prefixLen int) *conn {
- c := &circularConn{content: content, prefixLen: prefixLen}
- return &conn{buf: bufio.NewReader(c), c: c}
-}
-
-// This benchmark is meant to be the same as BenchmarkSelectString, but takes
-// out some of the factors this package can't control. The numbers are less noisy,
-// but also the costs of network communication aren't accurately represented.
-func BenchmarkMockSelectString(b *testing.B) {
- b.StopTimer()
- // taken from a recorded run of BenchmarkSelectString
- // See: http://www.postgresql.org/docs/current/static/protocol-message-formats.html
- const response = "1\x00\x00\x00\x04" +
- "t\x00\x00\x00\x06\x00\x00" +
- "T\x00\x00\x00!\x00\x01?column?\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\xc1\xff\xfe\xff\xff\xff\xff\x00\x00" +
- "Z\x00\x00\x00\x05I" +
- "2\x00\x00\x00\x04" +
- "D\x00\x00\x00n\x00\x01\x00\x00\x00d0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" +
- "C\x00\x00\x00\rSELECT 1\x00" +
- "Z\x00\x00\x00\x05I" +
- "3\x00\x00\x00\x04" +
- "Z\x00\x00\x00\x05I"
- c := fakeConn(response, 0)
- b.StartTimer()
-
- for i := 0; i < b.N; i++ {
- benchMockQuery(b, c, selectStringQuery)
- }
-}
-
-var seriesRowData = func() string {
- var buf bytes.Buffer
- for i := 1; i <= 100; i++ {
- digits := byte(2)
- if i >= 100 {
- digits = 3
- } else if i < 10 {
- digits = 1
- }
- buf.WriteString("D\x00\x00\x00")
- buf.WriteByte(10 + digits)
- buf.WriteString("\x00\x01\x00\x00\x00")
- buf.WriteByte(digits)
- buf.WriteString(strconv.Itoa(i))
- }
- return buf.String()
-}()
-
-func BenchmarkMockSelectSeries(b *testing.B) {
- b.StopTimer()
- var response = "1\x00\x00\x00\x04" +
- "t\x00\x00\x00\x06\x00\x00" +
- "T\x00\x00\x00!\x00\x01?column?\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\xc1\xff\xfe\xff\xff\xff\xff\x00\x00" +
- "Z\x00\x00\x00\x05I" +
- "2\x00\x00\x00\x04" +
- seriesRowData +
- "C\x00\x00\x00\x0fSELECT 100\x00" +
- "Z\x00\x00\x00\x05I" +
- "3\x00\x00\x00\x04" +
- "Z\x00\x00\x00\x05I"
- c := fakeConn(response, 0)
- b.StartTimer()
-
- for i := 0; i < b.N; i++ {
- benchMockQuery(b, c, selectSeriesQuery)
- }
-}
-
-func benchMockQuery(b *testing.B, c *conn, query string) {
- stmt, err := c.Prepare(query)
- if err != nil {
- b.Fatal(err)
- }
- defer stmt.Close()
- rows, err := stmt.Query(nil)
- if err != nil {
- b.Fatal(err)
- }
- defer rows.Close()
- var dest [1]driver.Value
- for {
- if err := rows.Next(dest[:]); err != nil {
- if err == io.EOF {
- break
- }
- b.Fatal(err)
- }
- }
-}
-
-func BenchmarkPreparedSelectString(b *testing.B) {
- var result string
- benchPreparedQuery(b, selectStringQuery, &result)
-}
-
-func BenchmarkPreparedSelectSeries(b *testing.B) {
- var result int
- benchPreparedQuery(b, selectSeriesQuery, &result)
-}
-
-func benchPreparedQuery(b *testing.B, query string, result interface{}) {
- b.StopTimer()
- db := openTestConn(b)
- defer db.Close()
- stmt, err := db.Prepare(query)
- if err != nil {
- b.Fatal(err)
- }
- defer stmt.Close()
- b.StartTimer()
-
- for i := 0; i < b.N; i++ {
- benchPreparedQueryLoop(b, db, stmt, result)
- }
-}
-
-func benchPreparedQueryLoop(b *testing.B, db *sql.DB, stmt *sql.Stmt, result interface{}) {
- rows, err := stmt.Query()
- if err != nil {
- b.Fatal(err)
- }
- if !rows.Next() {
- rows.Close()
- b.Fatal("no rows")
- }
- defer rows.Close()
- for rows.Next() {
- err = rows.Scan(&result)
- if err != nil {
- b.Fatal("failed to scan")
- }
- }
-}
-
-// See the comment for BenchmarkMockSelectString.
-func BenchmarkMockPreparedSelectString(b *testing.B) {
- b.StopTimer()
- const parseResponse = "1\x00\x00\x00\x04" +
- "t\x00\x00\x00\x06\x00\x00" +
- "T\x00\x00\x00!\x00\x01?column?\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\xc1\xff\xfe\xff\xff\xff\xff\x00\x00" +
- "Z\x00\x00\x00\x05I"
- const responses = parseResponse +
- "2\x00\x00\x00\x04" +
- "D\x00\x00\x00n\x00\x01\x00\x00\x00d0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" +
- "C\x00\x00\x00\rSELECT 1\x00" +
- "Z\x00\x00\x00\x05I"
- c := fakeConn(responses, len(parseResponse))
-
- stmt, err := c.Prepare(selectStringQuery)
- if err != nil {
- b.Fatal(err)
- }
- b.StartTimer()
-
- for i := 0; i < b.N; i++ {
- benchPreparedMockQuery(b, c, stmt)
- }
-}
-
-func BenchmarkMockPreparedSelectSeries(b *testing.B) {
- b.StopTimer()
- const parseResponse = "1\x00\x00\x00\x04" +
- "t\x00\x00\x00\x06\x00\x00" +
- "T\x00\x00\x00!\x00\x01?column?\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\xc1\xff\xfe\xff\xff\xff\xff\x00\x00" +
- "Z\x00\x00\x00\x05I"
- var responses = parseResponse +
- "2\x00\x00\x00\x04" +
- seriesRowData +
- "C\x00\x00\x00\x0fSELECT 100\x00" +
- "Z\x00\x00\x00\x05I"
- c := fakeConn(responses, len(parseResponse))
-
- stmt, err := c.Prepare(selectSeriesQuery)
- if err != nil {
- b.Fatal(err)
- }
- b.StartTimer()
-
- for i := 0; i < b.N; i++ {
- benchPreparedMockQuery(b, c, stmt)
- }
-}
-
-func benchPreparedMockQuery(b *testing.B, c *conn, stmt driver.Stmt) {
- rows, err := stmt.Query(nil)
- if err != nil {
- b.Fatal(err)
- }
- defer rows.Close()
- var dest [1]driver.Value
- for {
- if err := rows.Next(dest[:]); err != nil {
- if err == io.EOF {
- break
- }
- b.Fatal(err)
- }
- }
-}
-
-func BenchmarkEncodeInt64(b *testing.B) {
- for i := 0; i < b.N; i++ {
- encode(¶meterStatus{}, int64(1234), oid.T_int8)
- }
-}
-
-func BenchmarkEncodeFloat64(b *testing.B) {
- for i := 0; i < b.N; i++ {
- encode(¶meterStatus{}, 3.14159, oid.T_float8)
- }
-}
-
-var testByteString = []byte("abcdefghijklmnopqrstuvwxyz")
-
-func BenchmarkEncodeByteaHex(b *testing.B) {
- for i := 0; i < b.N; i++ {
- encode(¶meterStatus{serverVersion: 90000}, testByteString, oid.T_bytea)
- }
-}
-func BenchmarkEncodeByteaEscape(b *testing.B) {
- for i := 0; i < b.N; i++ {
- encode(¶meterStatus{serverVersion: 84000}, testByteString, oid.T_bytea)
- }
-}
-
-func BenchmarkEncodeBool(b *testing.B) {
- for i := 0; i < b.N; i++ {
- encode(¶meterStatus{}, true, oid.T_bool)
- }
-}
-
-var testTimestamptz = time.Date(2001, time.January, 1, 0, 0, 0, 0, time.Local)
-
-func BenchmarkEncodeTimestamptz(b *testing.B) {
- for i := 0; i < b.N; i++ {
- encode(¶meterStatus{}, testTimestamptz, oid.T_timestamptz)
- }
-}
-
-var testIntBytes = []byte("1234")
-
-func BenchmarkDecodeInt64(b *testing.B) {
- for i := 0; i < b.N; i++ {
- decode(¶meterStatus{}, testIntBytes, oid.T_int8, formatText)
- }
-}
-
-var testFloatBytes = []byte("3.14159")
-
-func BenchmarkDecodeFloat64(b *testing.B) {
- for i := 0; i < b.N; i++ {
- decode(¶meterStatus{}, testFloatBytes, oid.T_float8, formatText)
- }
-}
-
-var testBoolBytes = []byte{'t'}
-
-func BenchmarkDecodeBool(b *testing.B) {
- for i := 0; i < b.N; i++ {
- decode(¶meterStatus{}, testBoolBytes, oid.T_bool, formatText)
- }
-}
-
-func TestDecodeBool(t *testing.T) {
- db := openTestConn(t)
- rows, err := db.Query("select true")
- if err != nil {
- t.Fatal(err)
- }
- rows.Close()
-}
-
-var testTimestamptzBytes = []byte("2013-09-17 22:15:32.360754-07")
-
-func BenchmarkDecodeTimestamptz(b *testing.B) {
- for i := 0; i < b.N; i++ {
- decode(¶meterStatus{}, testTimestamptzBytes, oid.T_timestamptz, formatText)
- }
-}
-
-func BenchmarkDecodeTimestamptzMultiThread(b *testing.B) {
- oldProcs := runtime.GOMAXPROCS(0)
- defer runtime.GOMAXPROCS(oldProcs)
- runtime.GOMAXPROCS(runtime.NumCPU())
- globalLocationCache = newLocationCache()
-
- f := func(wg *sync.WaitGroup, loops int) {
- defer wg.Done()
- for i := 0; i < loops; i++ {
- decode(¶meterStatus{}, testTimestamptzBytes, oid.T_timestamptz, formatText)
- }
- }
-
- wg := &sync.WaitGroup{}
- b.ResetTimer()
- for j := 0; j < 10; j++ {
- wg.Add(1)
- go f(wg, b.N/10)
- }
- wg.Wait()
-}
-
-func BenchmarkLocationCache(b *testing.B) {
- globalLocationCache = newLocationCache()
- for i := 0; i < b.N; i++ {
- globalLocationCache.getLocation(rand.Intn(10000))
- }
-}
-
-func BenchmarkLocationCacheMultiThread(b *testing.B) {
- oldProcs := runtime.GOMAXPROCS(0)
- defer runtime.GOMAXPROCS(oldProcs)
- runtime.GOMAXPROCS(runtime.NumCPU())
- globalLocationCache = newLocationCache()
-
- f := func(wg *sync.WaitGroup, loops int) {
- defer wg.Done()
- for i := 0; i < loops; i++ {
- globalLocationCache.getLocation(rand.Intn(10000))
- }
- }
-
- wg := &sync.WaitGroup{}
- b.ResetTimer()
- for j := 0; j < 10; j++ {
- wg.Add(1)
- go f(wg, b.N/10)
- }
- wg.Wait()
-}
-
-// Stress test the performance of parsing results from the wire.
-func BenchmarkResultParsing(b *testing.B) {
- b.StopTimer()
-
- db := openTestConn(b)
- defer db.Close()
- _, err := db.Exec("BEGIN")
- if err != nil {
- b.Fatal(err)
- }
-
- b.StartTimer()
- for i := 0; i < b.N; i++ {
- res, err := db.Query("SELECT generate_series(1, 50000)")
- if err != nil {
- b.Fatal(err)
- }
- res.Close()
- }
-}
diff --git a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/buf.go b/experimental/traffic_ops_auth/vendor/github.com/lib/pq/buf.go
deleted file mode 100644
index 666b001..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/buf.go
+++ /dev/null
@@ -1,91 +0,0 @@
-package pq
-
-import (
- "bytes"
- "encoding/binary"
-
- "github.com/lib/pq/oid"
-)
-
-type readBuf []byte
-
-func (b *readBuf) int32() (n int) {
- n = int(int32(binary.BigEndian.Uint32(*b)))
- *b = (*b)[4:]
- return
-}
-
-func (b *readBuf) oid() (n oid.Oid) {
- n = oid.Oid(binary.BigEndian.Uint32(*b))
- *b = (*b)[4:]
- return
-}
-
-// N.B: this is actually an unsigned 16-bit integer, unlike int32
-func (b *readBuf) int16() (n int) {
- n = int(binary.BigEndian.Uint16(*b))
- *b = (*b)[2:]
- return
-}
-
-func (b *readBuf) string() string {
- i := bytes.IndexByte(*b, 0)
- if i < 0 {
- errorf("invalid message format; expected string terminator")
- }
- s := (*b)[:i]
- *b = (*b)[i+1:]
- return string(s)
-}
-
-func (b *readBuf) next(n int) (v []byte) {
- v = (*b)[:n]
- *b = (*b)[n:]
- return
-}
-
-func (b *readBuf) byte() byte {
- return b.next(1)[0]
-}
-
-type writeBuf struct {
- buf []byte
- pos int
-}
-
-func (b *writeBuf) int32(n int) {
- x := make([]byte, 4)
- binary.BigEndian.PutUint32(x, uint32(n))
- b.buf = append(b.buf, x...)
-}
-
-func (b *writeBuf) int16(n int) {
- x := make([]byte, 2)
- binary.BigEndian.PutUint16(x, uint16(n))
- b.buf = append(b.buf, x...)
-}
-
-func (b *writeBuf) string(s string) {
- b.buf = append(b.buf, (s + "\000")...)
-}
-
-func (b *writeBuf) byte(c byte) {
- b.buf = append(b.buf, c)
-}
-
-func (b *writeBuf) bytes(v []byte) {
- b.buf = append(b.buf, v...)
-}
-
-func (b *writeBuf) wrap() []byte {
- p := b.buf[b.pos:]
- binary.BigEndian.PutUint32(p, uint32(len(p)))
- return b.buf
-}
-
-func (b *writeBuf) next(c byte) {
- p := b.buf[b.pos:]
- binary.BigEndian.PutUint32(p, uint32(len(p)))
- b.pos = len(b.buf) + 1
- b.buf = append(b.buf, c, 0, 0, 0, 0)
-}
diff --git a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/certs/README b/experimental/traffic_ops_auth/vendor/github.com/lib/pq/certs/README
deleted file mode 100644
index 24ab7b2..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/certs/README
+++ /dev/null
@@ -1,3 +0,0 @@
-This directory contains certificates and private keys for testing some
-SSL-related functionality in Travis. Do NOT use these certificates for
-anything other than testing.
diff --git a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/certs/postgresql.crt b/experimental/traffic_ops_auth/vendor/github.com/lib/pq/certs/postgresql.crt
deleted file mode 100644
index 6e6b428..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/certs/postgresql.crt
+++ /dev/null
@@ -1,69 +0,0 @@
-Certificate:
- Data:
- Version: 3 (0x2)
- Serial Number: 2 (0x2)
- Signature Algorithm: sha256WithRSAEncryption
- Issuer: C=US, ST=Nevada, L=Las Vegas, O=github.com/lib/pq, CN=pq CA
- Validity
- Not Before: Oct 11 15:10:11 2014 GMT
- Not After : Oct 8 15:10:11 2024 GMT
- Subject: C=US, ST=Nevada, L=Las Vegas, O=github.com/lib/pq, CN=pqgosslcert
- Subject Public Key Info:
- Public Key Algorithm: rsaEncryption
- RSA Public Key: (1024 bit)
- Modulus (1024 bit):
- 00:e3:8c:06:9a:70:54:51:d1:34:34:83:39:cd:a2:
- 59:0f:05:ed:8d:d8:0e:34:d0:92:f4:09:4d:ee:8c:
- 78:55:49:24:f8:3c:e0:34:58:02:b2:e7:94:58:c1:
- e8:e5:bb:d1:af:f6:54:c1:40:b1:90:70:79:0d:35:
- 54:9c:8f:16:e9:c2:f0:92:e6:64:49:38:c1:76:f8:
- 47:66:c4:5b:4a:b6:a9:43:ce:c8:be:6c:4d:2b:94:
- 97:3c:55:bc:d1:d0:6e:b7:53:ae:89:5c:4b:6b:86:
- 40:be:c1:ae:1e:64:ce:9c:ae:87:0a:69:e5:c8:21:
- 12:be:ae:1d:f6:45:df:16:a7
- Exponent: 65537 (0x10001)
- X509v3 extensions:
- X509v3 Subject Key Identifier:
- 9B:25:31:63:A2:D8:06:FF:CB:E3:E9:96:FF:0D:BA:DC:12:7D:04:CF
- X509v3 Authority Key Identifier:
- keyid:52:93:ED:1E:76:0A:9F:65:4F:DE:19:66:C1:D5:22:40:35:CB:A0:72
-
- X509v3 Basic Constraints:
- CA:FALSE
- X509v3 Key Usage:
- Digital Signature, Non Repudiation, Key Encipherment
- Signature Algorithm: sha256WithRSAEncryption
- 3e:f5:f8:0b:4e:11:bd:00:86:1f:ce:dc:97:02:98:91:11:f5:
- 65:f6:f2:8a:b2:3e:47:92:05:69:28:c9:e9:b4:f7:cf:93:d1:
- 2d:81:5d:00:3c:23:be:da:70:ea:59:e1:2c:d3:25:49:ae:a6:
- 95:54:c1:10:df:23:e3:fe:d6:e4:76:c7:6b:73:ad:1b:34:7c:
- e2:56:cc:c0:37:ae:c5:7a:11:20:6c:3d:05:0e:99:cd:22:6c:
- cf:59:a1:da:28:d4:65:ba:7d:2f:2b:3d:69:6d:a6:c1:ae:57:
- bf:56:64:13:79:f8:48:46:65:eb:81:67:28:0b:7b:de:47:10:
- b3:80:3c:31:d1:58:94:01:51:4a:c7:c8:1a:01:a8:af:c4:cd:
- bb:84:a5:d9:8b:b4:b9:a1:64:3e:95:d9:90:1d:d5:3f:67:cc:
- 3b:ba:f5:b4:d1:33:77:ee:c2:d2:3e:7e:c5:66:6e:b7:35:4c:
- 60:57:b0:b8:be:36:c8:f3:d3:95:8c:28:4a:c9:f7:27:a4:0d:
- e5:96:99:eb:f5:c8:bd:f3:84:6d:ef:02:f9:8a:36:7d:6b:5f:
- 36:68:37:41:d9:74:ae:c6:78:2e:44:86:a1:ad:43:ca:fb:b5:
- 3e:ba:10:23:09:02:ac:62:d1:d0:83:c8:95:b9:e3:5e:30:ff:
- 5b:2b:38:fa
------BEGIN CERTIFICATE-----
-MIIDEzCCAfugAwIBAgIBAjANBgkqhkiG9w0BAQsFADBeMQswCQYDVQQGEwJVUzEP
-MA0GA1UECBMGTmV2YWRhMRIwEAYDVQQHEwlMYXMgVmVnYXMxGjAYBgNVBAoTEWdp
-dGh1Yi5jb20vbGliL3BxMQ4wDAYDVQQDEwVwcSBDQTAeFw0xNDEwMTExNTEwMTFa
-Fw0yNDEwMDgxNTEwMTFaMGQxCzAJBgNVBAYTAlVTMQ8wDQYDVQQIEwZOZXZhZGEx
-EjAQBgNVBAcTCUxhcyBWZWdhczEaMBgGA1UEChMRZ2l0aHViLmNvbS9saWIvcHEx
-FDASBgNVBAMTC3BxZ29zc2xjZXJ0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB
-gQDjjAaacFRR0TQ0gznNolkPBe2N2A400JL0CU3ujHhVSST4POA0WAKy55RYwejl
-u9Gv9lTBQLGQcHkNNVScjxbpwvCS5mRJOMF2+EdmxFtKtqlDzsi+bE0rlJc8VbzR
-0G63U66JXEtrhkC+wa4eZM6crocKaeXIIRK+rh32Rd8WpwIDAQABo1owWDAdBgNV
-HQ4EFgQUmyUxY6LYBv/L4+mW/w263BJ9BM8wHwYDVR0jBBgwFoAUUpPtHnYKn2VP
-3hlmwdUiQDXLoHIwCQYDVR0TBAIwADALBgNVHQ8EBAMCBeAwDQYJKoZIhvcNAQEL
-BQADggEBAD71+AtOEb0Ahh/O3JcCmJER9WX28oqyPkeSBWkoyem098+T0S2BXQA8
-I77acOpZ4SzTJUmuppVUwRDfI+P+1uR2x2tzrRs0fOJWzMA3rsV6ESBsPQUOmc0i
-bM9Zodoo1GW6fS8rPWltpsGuV79WZBN5+EhGZeuBZygLe95HELOAPDHRWJQBUUrH
-yBoBqK/EzbuEpdmLtLmhZD6V2ZAd1T9nzDu69bTRM3fuwtI+fsVmbrc1TGBXsLi+
-Nsjz05WMKErJ9yekDeWWmev1yL3zhG3vAvmKNn1rXzZoN0HZdK7GeC5EhqGtQ8r7
-tT66ECMJAqxi0dCDyJW5414w/1srOPo=
------END CERTIFICATE-----
diff --git a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/certs/postgresql.key b/experimental/traffic_ops_auth/vendor/github.com/lib/pq/certs/postgresql.key
deleted file mode 100644
index eb8b20b..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/certs/postgresql.key
+++ /dev/null
@@ -1,15 +0,0 @@
------BEGIN RSA PRIVATE KEY-----
-MIICWwIBAAKBgQDjjAaacFRR0TQ0gznNolkPBe2N2A400JL0CU3ujHhVSST4POA0
-WAKy55RYwejlu9Gv9lTBQLGQcHkNNVScjxbpwvCS5mRJOMF2+EdmxFtKtqlDzsi+
-bE0rlJc8VbzR0G63U66JXEtrhkC+wa4eZM6crocKaeXIIRK+rh32Rd8WpwIDAQAB
-AoGAM5dM6/kp9P700i8qjOgRPym96Zoh5nGfz/rIE5z/r36NBkdvIg8OVZfR96nH
-b0b9TOMR5lsPp0sI9yivTWvX6qyvLJRWy2vvx17hXK9NxXUNTAm0PYZUTvCtcPeX
-RnJpzQKNZQPkFzF0uXBc4CtPK2Vz0+FGvAelrhYAxnw1dIkCQQD+9qaW5QhXjsjb
-Nl85CmXgxPmGROcgLQCO+omfrjf9UXrituU9Dz6auym5lDGEdMFnkzfr+wpasEy9
-mf5ZZOhDAkEA5HjXfVGaCtpydOt6hDon/uZsyssCK2lQ7NSuE3vP+sUsYMzIpEoy
-t3VWXqKbo+g9KNDTP4WEliqp1aiSIylzzQJANPeqzihQnlgEdD4MdD4rwhFJwVIp
-Le8Lcais1KaN7StzOwxB/XhgSibd2TbnPpw+3bSg5n5lvUdo+e62/31OHwJAU1jS
-I+F09KikQIr28u3UUWT2IzTT4cpVv1AHAQyV3sG3YsjSGT0IK20eyP9BEBZU2WL0
-7aNjrvR5aHxKc5FXsQJABsFtyGpgI5X4xufkJZVZ+Mklz2n7iXa+XPatMAHFxAtb
-EEMt60rngwMjXAzBSC6OYuYogRRAY3UCacNC5VhLYQ==
------END RSA PRIVATE KEY-----
diff --git a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/certs/root.crt b/experimental/traffic_ops_auth/vendor/github.com/lib/pq/certs/root.crt
deleted file mode 100644
index aecf8f6..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/certs/root.crt
+++ /dev/null
@@ -1,24 +0,0 @@
------BEGIN CERTIFICATE-----
-MIIEAzCCAuugAwIBAgIJANmheROCdW1NMA0GCSqGSIb3DQEBBQUAMF4xCzAJBgNV
-BAYTAlVTMQ8wDQYDVQQIEwZOZXZhZGExEjAQBgNVBAcTCUxhcyBWZWdhczEaMBgG
-A1UEChMRZ2l0aHViLmNvbS9saWIvcHExDjAMBgNVBAMTBXBxIENBMB4XDTE0MTAx
-MTE1MDQyOVoXDTI0MTAwODE1MDQyOVowXjELMAkGA1UEBhMCVVMxDzANBgNVBAgT
-Bk5ldmFkYTESMBAGA1UEBxMJTGFzIFZlZ2FzMRowGAYDVQQKExFnaXRodWIuY29t
-L2xpYi9wcTEOMAwGA1UEAxMFcHEgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw
-ggEKAoIBAQCV4PxP7ShzWBzUCThcKk3qZtOLtHmszQVtbqhvgTpm1kTRtKBdVMu0
-pLAHQ3JgJCnAYgH0iZxVGoMP16T3irdgsdC48+nNTFM2T0cCdkfDURGIhSFN47cb
-Pgy306BcDUD2q7ucW33+dlFSRuGVewocoh4BWM/vMtMvvWzdi4Ag/L/jhb+5wZxZ
-sWymsadOVSDePEMKOvlCa3EdVwVFV40TVyDb+iWBUivDAYsS2a3KajuJrO6MbZiE
-Sp2RCIkZS2zFmzWxVRi9ZhzIZhh7EVF9JAaNC3T52jhGUdlRq3YpBTMnd89iOh74
-6jWXG7wSuPj3haFzyNhmJ0ZUh+2Ynoh1AgMBAAGjgcMwgcAwHQYDVR0OBBYEFFKT
-7R52Cp9lT94ZZsHVIkA1y6ByMIGQBgNVHSMEgYgwgYWAFFKT7R52Cp9lT94ZZsHV
-IkA1y6ByoWKkYDBeMQswCQYDVQQGEwJVUzEPMA0GA1UECBMGTmV2YWRhMRIwEAYD
-VQQHEwlMYXMgVmVnYXMxGjAYBgNVBAoTEWdpdGh1Yi5jb20vbGliL3BxMQ4wDAYD
-VQQDEwVwcSBDQYIJANmheROCdW1NMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEF
-BQADggEBAAEhCLWkqJNMI8b4gkbmj5fqQ/4+oO83bZ3w2Oqf6eZ8I8BC4f2NOyE6
-tRUlq5+aU7eqC1cOAvGjO+YHN/bF/DFpwLlzvUSXt+JP/pYcUjL7v+pIvwqec9hD
-ndvM4iIbkD/H/OYQ3L+N3W+G1x7AcFIX+bGCb3PzYVQAjxreV6//wgKBosMGFbZo
-HPxT9RPMun61SViF04H5TNs0derVn1+5eiiYENeAhJzQNyZoOOUuX1X/Inx9bEPh
-C5vFBtSMgIytPgieRJVWAiMLYsfpIAStrHztRAbBs2DU01LmMgRvHdxgFEKinC/d
-UHZZQDP+6pT+zADrGhQGXe4eThaO6f0=
------END CERTIFICATE-----
diff --git a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/certs/server.crt b/experimental/traffic_ops_auth/vendor/github.com/lib/pq/certs/server.crt
deleted file mode 100644
index ddc995a..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/certs/server.crt
+++ /dev/null
@@ -1,81 +0,0 @@
-Certificate:
- Data:
- Version: 3 (0x2)
- Serial Number: 1 (0x1)
- Signature Algorithm: sha256WithRSAEncryption
- Issuer: C=US, ST=Nevada, L=Las Vegas, O=github.com/lib/pq, CN=pq CA
- Validity
- Not Before: Oct 11 15:05:15 2014 GMT
- Not After : Oct 8 15:05:15 2024 GMT
- Subject: C=US, ST=Nevada, L=Las Vegas, O=github.com/lib/pq, CN=postgres
- Subject Public Key Info:
- Public Key Algorithm: rsaEncryption
- RSA Public Key: (2048 bit)
- Modulus (2048 bit):
- 00:d7:8a:4c:85:fb:17:a5:3c:8f:e0:72:11:29:ce:
- 3f:b0:1f:3f:7d:c6:ee:7f:a7:fc:02:2b:35:47:08:
- a6:3d:90:df:5c:56:14:94:00:c7:6d:d1:d2:e2:61:
- 95:77:b8:e3:a6:66:31:f9:1f:21:7d:62:e1:27:da:
- 94:37:61:4a:ea:63:53:a0:61:b8:9c:bb:a5:e2:e7:
- b7:a6:d8:0f:05:04:c7:29:e2:ea:49:2b:7f:de:15:
- 00:a6:18:70:50:c7:0c:de:9a:f9:5a:96:b0:e1:94:
- 06:c6:6d:4a:21:3b:b4:0f:a5:6d:92:86:34:b2:4e:
- d7:0e:a7:19:c0:77:0b:7b:87:c8:92:de:42:ff:86:
- d2:b7:9a:a4:d4:15:23:ca:ad:a5:69:21:b8:ce:7e:
- 66:cb:85:5d:b9:ed:8b:2d:09:8d:94:e4:04:1e:72:
- ec:ef:d0:76:90:15:5a:a4:f7:91:4b:e9:ce:4e:9d:
- 5d:9a:70:17:9c:d8:e9:73:83:ea:3d:61:99:a6:cd:
- ac:91:40:5a:88:77:e5:4e:2a:8e:3d:13:f3:f9:38:
- 6f:81:6b:8a:95:ca:0e:07:ab:6f:da:b4:8c:d9:ff:
- aa:78:03:aa:c7:c2:cf:6f:64:92:d3:d8:83:d5:af:
- f1:23:18:a7:2e:7b:17:0b:e7:7d:f1:fa:a8:41:a3:
- 04:57
- Exponent: 65537 (0x10001)
- X509v3 extensions:
- X509v3 Subject Key Identifier:
- EE:F0:B3:46:DC:C7:09:EB:0E:B6:2F:E5:FE:62:60:45:44:9F:59:CC
- X509v3 Authority Key Identifier:
- keyid:52:93:ED:1E:76:0A:9F:65:4F:DE:19:66:C1:D5:22:40:35:CB:A0:72
-
- X509v3 Basic Constraints:
- CA:FALSE
- X509v3 Key Usage:
- Digital Signature, Non Repudiation, Key Encipherment
- Signature Algorithm: sha256WithRSAEncryption
- 7e:5a:6e:be:bf:d2:6c:c1:d6:fa:b6:fb:3f:06:53:36:08:87:
- 9d:95:b1:39:af:9e:f6:47:38:17:39:da:25:7c:f2:ad:0c:e3:
- ab:74:19:ca:fb:8c:a0:50:c0:1d:19:8a:9c:21:ed:0f:3a:d1:
- 96:54:2e:10:09:4f:b8:70:f7:2b:99:43:d2:c6:15:bc:3f:24:
- 7d:28:39:32:3f:8d:a4:4f:40:75:7f:3e:0d:1c:d1:69:f2:4e:
- 98:83:47:97:d2:25:ac:c9:36:86:2f:04:a6:c4:86:c7:c4:00:
- 5f:7f:b9:ad:fc:bf:e9:f5:78:d7:82:1a:51:0d:fc:ab:9e:92:
- 1d:5f:0c:18:d1:82:e0:14:c9:ce:91:89:71:ff:49:49:ff:35:
- bf:7b:44:78:42:c1:d0:66:65:bb:28:2e:60:ca:9b:20:12:a9:
- 90:61:b1:96:ec:15:46:c9:37:f7:07:90:8a:89:45:2a:3f:37:
- ec:dc:e3:e5:8f:c3:3a:57:80:a5:54:60:0c:e1:b2:26:99:2b:
- 40:7e:36:d1:9a:70:02:ec:63:f4:3b:72:ae:81:fb:30:20:6d:
- cb:48:46:c6:b5:8f:39:b1:84:05:25:55:8d:f5:62:f6:1b:46:
- 2e:da:a3:4c:26:12:44:d7:56:b6:b8:a9:ca:d3:ab:71:45:7c:
- 9f:48:6d:1e
------BEGIN CERTIFICATE-----
-MIIDlDCCAnygAwIBAgIBATANBgkqhkiG9w0BAQsFADBeMQswCQYDVQQGEwJVUzEP
-MA0GA1UECBMGTmV2YWRhMRIwEAYDVQQHEwlMYXMgVmVnYXMxGjAYBgNVBAoTEWdp
-dGh1Yi5jb20vbGliL3BxMQ4wDAYDVQQDEwVwcSBDQTAeFw0xNDEwMTExNTA1MTVa
-Fw0yNDEwMDgxNTA1MTVaMGExCzAJBgNVBAYTAlVTMQ8wDQYDVQQIEwZOZXZhZGEx
-EjAQBgNVBAcTCUxhcyBWZWdhczEaMBgGA1UEChMRZ2l0aHViLmNvbS9saWIvcHEx
-ETAPBgNVBAMTCHBvc3RncmVzMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC
-AQEA14pMhfsXpTyP4HIRKc4/sB8/fcbuf6f8Ais1RwimPZDfXFYUlADHbdHS4mGV
-d7jjpmYx+R8hfWLhJ9qUN2FK6mNToGG4nLul4ue3ptgPBQTHKeLqSSt/3hUAphhw
-UMcM3pr5Wpaw4ZQGxm1KITu0D6VtkoY0sk7XDqcZwHcLe4fIkt5C/4bSt5qk1BUj
-yq2laSG4zn5my4Vdue2LLQmNlOQEHnLs79B2kBVapPeRS+nOTp1dmnAXnNjpc4Pq
-PWGZps2skUBaiHflTiqOPRPz+ThvgWuKlcoOB6tv2rSM2f+qeAOqx8LPb2SS09iD
-1a/xIxinLnsXC+d98fqoQaMEVwIDAQABo1owWDAdBgNVHQ4EFgQU7vCzRtzHCesO
-ti/l/mJgRUSfWcwwHwYDVR0jBBgwFoAUUpPtHnYKn2VP3hlmwdUiQDXLoHIwCQYD
-VR0TBAIwADALBgNVHQ8EBAMCBeAwDQYJKoZIhvcNAQELBQADggEBAH5abr6/0mzB
-1vq2+z8GUzYIh52VsTmvnvZHOBc52iV88q0M46t0Gcr7jKBQwB0Zipwh7Q860ZZU
-LhAJT7hw9yuZQ9LGFbw/JH0oOTI/jaRPQHV/Pg0c0WnyTpiDR5fSJazJNoYvBKbE
-hsfEAF9/ua38v+n1eNeCGlEN/Kuekh1fDBjRguAUyc6RiXH/SUn/Nb97RHhCwdBm
-ZbsoLmDKmyASqZBhsZbsFUbJN/cHkIqJRSo/N+zc4+WPwzpXgKVUYAzhsiaZK0B+
-NtGacALsY/Q7cq6B+zAgbctIRsa1jzmxhAUlVY31YvYbRi7ao0wmEkTXVra4qcrT
-q3FFfJ9IbR4=
------END CERTIFICATE-----
diff --git a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/certs/server.key b/experimental/traffic_ops_auth/vendor/github.com/lib/pq/certs/server.key
deleted file mode 100644
index bd7b019..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/certs/server.key
+++ /dev/null
@@ -1,27 +0,0 @@
------BEGIN RSA PRIVATE KEY-----
-MIIEogIBAAKCAQEA14pMhfsXpTyP4HIRKc4/sB8/fcbuf6f8Ais1RwimPZDfXFYU
-lADHbdHS4mGVd7jjpmYx+R8hfWLhJ9qUN2FK6mNToGG4nLul4ue3ptgPBQTHKeLq
-SSt/3hUAphhwUMcM3pr5Wpaw4ZQGxm1KITu0D6VtkoY0sk7XDqcZwHcLe4fIkt5C
-/4bSt5qk1BUjyq2laSG4zn5my4Vdue2LLQmNlOQEHnLs79B2kBVapPeRS+nOTp1d
-mnAXnNjpc4PqPWGZps2skUBaiHflTiqOPRPz+ThvgWuKlcoOB6tv2rSM2f+qeAOq
-x8LPb2SS09iD1a/xIxinLnsXC+d98fqoQaMEVwIDAQABAoIBAF3ZoihUhJ82F4+r
-Gz4QyDpv4L1reT2sb1aiabhcU8ZK5nbWJG+tRyjSS/i2dNaEcttpdCj9HR/zhgZM
-bm0OuAgG58rVwgS80CZUruq++Qs+YVojq8/gWPTiQD4SNhV2Fmx3HkwLgUk3oxuT
-SsvdqzGE3okGVrutCIcgy126eA147VPMoej1Bb3fO6npqK0pFPhZfAc0YoqJuM+k
-obRm5pAnGUipyLCFXjA9HYPKwYZw2RtfdA3CiImHeanSdqS+ctrC9y8BV40Th7gZ
-haXdKUNdjmIxV695QQ1mkGqpKLZFqhzKioGQ2/Ly2d1iaKN9fZltTusu8unepWJ2
-tlT9qMECgYEA9uHaF1t2CqE+AJvWTihHhPIIuLxoOQXYea1qvxfcH/UMtaLKzCNm
-lQ5pqCGsPvp+10f36yttO1ZehIvlVNXuJsjt0zJmPtIolNuJY76yeussfQ9jHheB
-5uPEzCFlHzxYbBUyqgWaF6W74okRGzEGJXjYSP0yHPPdU4ep2q3bGiUCgYEA34Af
-wBSuQSK7uLxArWHvQhyuvi43ZGXls6oRGl+Ysj54s8BP6XGkq9hEJ6G4yxgyV+BR
-DUOs5X8/TLT8POuIMYvKTQthQyCk0eLv2FLdESDuuKx0kBVY3s8lK3/z5HhrdOiN
-VMNZU+xDKgKc3hN9ypkk8vcZe6EtH7Y14e0rVcsCgYBTgxi8F/M5K0wG9rAqphNz
-VFBA9XKn/2M33cKjO5X5tXIEKzpAjaUQvNxexG04rJGljzG8+mar0M6ONahw5yD1
-O7i/XWgazgpuOEkkVYiYbd8RutfDgR4vFVMn3hAP3eDnRtBplRWH9Ec3HTiNIys6
-F8PKBOQjyRZQQC7jyzW3hQKBgACe5HeuFwXLSOYsb6mLmhR+6+VPT4wR1F95W27N
-USk9jyxAnngxfpmTkiziABdgS9N+pfr5cyN4BP77ia/Jn6kzkC5Cl9SN5KdIkA3z
-vPVtN/x/ThuQU5zaymmig1ThGLtMYggYOslG4LDfLPxY5YKIhle+Y+259twdr2yf
-Mf2dAoGAaGv3tWMgnIdGRk6EQL/yb9PKHo7ShN+tKNlGaK7WwzBdKs+Fe8jkgcr7
-pz4Ne887CmxejdISzOCcdT+Zm9Bx6I/uZwWOtDvWpIgIxVX9a9URj/+D1MxTE/y4
-d6H+c89yDY62I2+drMpdjCd3EtCaTlxpTbRS+s1eAHMH7aEkcCE=
------END RSA PRIVATE KEY-----
diff --git a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/conn.go b/experimental/traffic_ops_auth/vendor/github.com/lib/pq/conn.go
deleted file mode 100644
index 336c894..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/conn.go
+++ /dev/null
@@ -1,1847 +0,0 @@
-package pq
-
-import (
- "bufio"
- "crypto/md5"
- "crypto/tls"
- "crypto/x509"
- "database/sql"
- "database/sql/driver"
- "encoding/binary"
- "errors"
- "fmt"
- "io"
- "io/ioutil"
- "net"
- "os"
- "os/user"
- "path"
- "path/filepath"
- "strconv"
- "strings"
- "time"
- "unicode"
-
- "github.com/lib/pq/oid"
-)
-
-// Common error types
-var (
- ErrNotSupported = errors.New("pq: Unsupported command")
- ErrInFailedTransaction = errors.New("pq: Could not complete operation in a failed transaction")
- ErrSSLNotSupported = errors.New("pq: SSL is not enabled on the server")
- ErrSSLKeyHasWorldPermissions = errors.New("pq: Private key file has group or world access. Permissions should be u=rw (0600) or less.")
- ErrCouldNotDetectUsername = errors.New("pq: Could not detect default username. Please provide one explicitly.")
-)
-
-type drv struct{}
-
-func (d *drv) Open(name string) (driver.Conn, error) {
- return Open(name)
-}
-
-func init() {
- sql.Register("postgres", &drv{})
-}
-
-type parameterStatus struct {
- // server version in the same format as server_version_num, or 0 if
- // unavailable
- serverVersion int
-
- // the current location based on the TimeZone value of the session, if
- // available
- currentLocation *time.Location
-}
-
-type transactionStatus byte
-
-const (
- txnStatusIdle transactionStatus = 'I'
- txnStatusIdleInTransaction transactionStatus = 'T'
- txnStatusInFailedTransaction transactionStatus = 'E'
-)
-
-func (s transactionStatus) String() string {
- switch s {
- case txnStatusIdle:
- return "idle"
- case txnStatusIdleInTransaction:
- return "idle in transaction"
- case txnStatusInFailedTransaction:
- return "in a failed transaction"
- default:
- errorf("unknown transactionStatus %d", s)
- }
-
- panic("not reached")
-}
-
-type Dialer interface {
- Dial(network, address string) (net.Conn, error)
- DialTimeout(network, address string, timeout time.Duration) (net.Conn, error)
-}
-
-type defaultDialer struct{}
-
-func (d defaultDialer) Dial(ntw, addr string) (net.Conn, error) {
- return net.Dial(ntw, addr)
-}
-func (d defaultDialer) DialTimeout(ntw, addr string, timeout time.Duration) (net.Conn, error) {
- return net.DialTimeout(ntw, addr, timeout)
-}
-
-type conn struct {
- c net.Conn
- buf *bufio.Reader
- namei int
- scratch [512]byte
- txnStatus transactionStatus
-
- parameterStatus parameterStatus
-
- saveMessageType byte
- saveMessageBuffer []byte
-
- // If true, this connection is bad and all public-facing functions should
- // return ErrBadConn.
- bad bool
-
- // If set, this connection should never use the binary format when
- // receiving query results from prepared statements. Only provided for
- // debugging.
- disablePreparedBinaryResult bool
-
- // Whether to always send []byte parameters over as binary. Enables single
- // round-trip mode for non-prepared Query calls.
- binaryParameters bool
-}
-
-// Handle driver-side settings in parsed connection string.
-func (c *conn) handleDriverSettings(o values) (err error) {
- boolSetting := func(key string, val *bool) error {
- if value := o.Get(key); value != "" {
- if value == "yes" {
- *val = true
- } else if value == "no" {
- *val = false
- } else {
- return fmt.Errorf("unrecognized value %q for %s", value, key)
- }
- }
- return nil
- }
-
- err = boolSetting("disable_prepared_binary_result", &c.disablePreparedBinaryResult)
- if err != nil {
- return err
- }
- err = boolSetting("binary_parameters", &c.binaryParameters)
- if err != nil {
- return err
- }
- return nil
-}
-
-func (c *conn) handlePgpass(o values) {
- // if a password was supplied, do not process .pgpass
- _, ok := o["password"]
- if ok {
- return
- }
- filename := os.Getenv("PGPASSFILE")
- if filename == "" {
- // XXX this code doesn't work on Windows where the default filename is
- // XXX %APPDATA%\postgresql\pgpass.conf
- user, err := user.Current()
- if err != nil {
- return
- }
- filename = filepath.Join(user.HomeDir, ".pgpass")
- }
- fileinfo, err := os.Stat(filename)
- if err != nil {
- return
- }
- mode := fileinfo.Mode()
- if mode&(0x77) != 0 {
- // XXX should warn about incorrect .pgpass permissions as psql does
- return
- }
- file, err := os.Open(filename)
- if err != nil {
- return
- }
- defer file.Close()
- scanner := bufio.NewScanner(io.Reader(file))
- hostname := o.Get("host")
- ntw, _ := network(o)
- port := o.Get("port")
- db := o.Get("dbname")
- username := o.Get("user")
- // From: https://github.com/tg/pgpass/blob/master/reader.go
- getFields := func(s string) []string {
- fs := make([]string, 0, 5)
- f := make([]rune, 0, len(s))
-
- var esc bool
- for _, c := range s {
- switch {
- case esc:
- f = append(f, c)
- esc = false
- case c == '\\':
- esc = true
- case c == ':':
- fs = append(fs, string(f))
- f = f[:0]
- default:
- f = append(f, c)
- }
- }
- return append(fs, string(f))
- }
- for scanner.Scan() {
- line := scanner.Text()
- if len(line) == 0 || line[0] == '#' {
- continue
- }
- split := getFields(line)
- if len(split) != 5 {
- continue
- }
- if (split[0] == "*" || split[0] == hostname || (split[0] == "localhost" && (hostname == "" || ntw == "unix"))) && (split[1] == "*" || split[1] == port) && (split[2] == "*" || split[2] == db) && (split[3] == "*" || split[3] == username) {
- o["password"] = split[4]
- return
- }
- }
-}
-
-func (c *conn) writeBuf(b byte) *writeBuf {
- c.scratch[0] = b
- return &writeBuf{
- buf: c.scratch[:5],
- pos: 1,
- }
-}
-
-func Open(name string) (_ driver.Conn, err error) {
- return DialOpen(defaultDialer{}, name)
-}
-
-func DialOpen(d Dialer, name string) (_ driver.Conn, err error) {
- // Handle any panics during connection initialization. Note that we
- // specifically do *not* want to use errRecover(), as that would turn any
- // connection errors into ErrBadConns, hiding the real error message from
- // the user.
- defer errRecoverNoErrBadConn(&err)
-
- o := make(values)
-
- // A number of defaults are applied here, in this order:
- //
- // * Very low precedence defaults applied in every situation
- // * Environment variables
- // * Explicitly passed connection information
- o.Set("host", "localhost")
- o.Set("port", "5432")
- // N.B.: Extra float digits should be set to 3, but that breaks
- // Postgres 8.4 and older, where the max is 2.
- o.Set("extra_float_digits", "2")
- for k, v := range parseEnviron(os.Environ()) {
- o.Set(k, v)
- }
-
- if strings.HasPrefix(name, "postgres://") || strings.HasPrefix(name, "postgresql://") {
- name, err = ParseURL(name)
- if err != nil {
- return nil, err
- }
- }
-
- if err := parseOpts(name, o); err != nil {
- return nil, err
- }
-
- // Use the "fallback" application name if necessary
- if fallback := o.Get("fallback_application_name"); fallback != "" {
- if !o.Isset("application_name") {
- o.Set("application_name", fallback)
- }
- }
-
- // We can't work with any client_encoding other than UTF-8 currently.
- // However, we have historically allowed the user to set it to UTF-8
- // explicitly, and there's no reason to break such programs, so allow that.
- // Note that the "options" setting could also set client_encoding, but
- // parsing its value is not worth it. Instead, we always explicitly send
- // client_encoding as a separate run-time parameter, which should override
- // anything set in options.
- if enc := o.Get("client_encoding"); enc != "" && !isUTF8(enc) {
- return nil, errors.New("client_encoding must be absent or 'UTF8'")
- }
- o.Set("client_encoding", "UTF8")
- // DateStyle needs a similar treatment.
- if datestyle := o.Get("datestyle"); datestyle != "" {
- if datestyle != "ISO, MDY" {
- panic(fmt.Sprintf("setting datestyle must be absent or %v; got %v",
- "ISO, MDY", datestyle))
- }
- } else {
- o.Set("datestyle", "ISO, MDY")
- }
-
- // If a user is not provided by any other means, the last
- // resort is to use the current operating system provided user
- // name.
- if o.Get("user") == "" {
- u, err := userCurrent()
- if err != nil {
- return nil, err
- } else {
- o.Set("user", u)
- }
- }
-
- cn := &conn{}
- err = cn.handleDriverSettings(o)
- if err != nil {
- return nil, err
- }
- cn.handlePgpass(o)
-
- cn.c, err = dial(d, o)
- if err != nil {
- return nil, err
- }
- cn.ssl(o)
- cn.buf = bufio.NewReader(cn.c)
- cn.startup(o)
-
- // reset the deadline, in case one was set (see dial)
- if timeout := o.Get("connect_timeout"); timeout != "" && timeout != "0" {
- err = cn.c.SetDeadline(time.Time{})
- }
- return cn, err
-}
-
-func dial(d Dialer, o values) (net.Conn, error) {
- ntw, addr := network(o)
- // SSL is not necessary or supported over UNIX domain sockets
- if ntw == "unix" {
- o["sslmode"] = "disable"
- }
-
- // Zero or not specified means wait indefinitely.
- if timeout := o.Get("connect_timeout"); timeout != "" && timeout != "0" {
- seconds, err := strconv.ParseInt(timeout, 10, 0)
- if err != nil {
- return nil, fmt.Errorf("invalid value for parameter connect_timeout: %s", err)
- }
- duration := time.Duration(seconds) * time.Second
- // connect_timeout should apply to the entire connection establishment
- // procedure, so we both use a timeout for the TCP connection
- // establishment and set a deadline for doing the initial handshake.
- // The deadline is then reset after startup() is done.
- deadline := time.Now().Add(duration)
- conn, err := d.DialTimeout(ntw, addr, duration)
- if err != nil {
- return nil, err
- }
- err = conn.SetDeadline(deadline)
- return conn, err
- }
- return d.Dial(ntw, addr)
-}
-
-func network(o values) (string, string) {
- host := o.Get("host")
-
- if strings.HasPrefix(host, "/") {
- sockPath := path.Join(host, ".s.PGSQL."+o.Get("port"))
- return "unix", sockPath
- }
-
- return "tcp", net.JoinHostPort(host, o.Get("port"))
-}
-
-type values map[string]string
-
-func (vs values) Set(k, v string) {
- vs[k] = v
-}
-
-func (vs values) Get(k string) (v string) {
- return vs[k]
-}
-
-func (vs values) Isset(k string) bool {
- _, ok := vs[k]
- return ok
-}
-
-// scanner implements a tokenizer for libpq-style option strings.
-type scanner struct {
- s []rune
- i int
-}
-
-// newScanner returns a new scanner initialized with the option string s.
-func newScanner(s string) *scanner {
- return &scanner{[]rune(s), 0}
-}
-
-// Next returns the next rune.
-// It returns 0, false if the end of the text has been reached.
-func (s *scanner) Next() (rune, bool) {
- if s.i >= len(s.s) {
- return 0, false
- }
- r := s.s[s.i]
- s.i++
- return r, true
-}
-
-// SkipSpaces returns the next non-whitespace rune.
-// It returns 0, false if the end of the text has been reached.
-func (s *scanner) SkipSpaces() (rune, bool) {
- r, ok := s.Next()
- for unicode.IsSpace(r) && ok {
- r, ok = s.Next()
- }
- return r, ok
-}
-
-// parseOpts parses the options from name and adds them to the values.
-//
-// The parsing code is based on conninfo_parse from libpq's fe-connect.c
-func parseOpts(name string, o values) error {
- s := newScanner(name)
-
- for {
- var (
- keyRunes, valRunes []rune
- r rune
- ok bool
- )
-
- if r, ok = s.SkipSpaces(); !ok {
- break
- }
-
- // Scan the key
- for !unicode.IsSpace(r) && r != '=' {
- keyRunes = append(keyRunes, r)
- if r, ok = s.Next(); !ok {
- break
- }
- }
-
- // Skip any whitespace if we're not at the = yet
- if r != '=' {
- r, ok = s.SkipSpaces()
- }
-
- // The current character should be =
- if r != '=' || !ok {
- return fmt.Errorf(`missing "=" after %q in connection info string"`, string(keyRunes))
- }
-
- // Skip any whitespace after the =
- if r, ok = s.SkipSpaces(); !ok {
- // If we reach the end here, the last value is just an empty string as per libpq.
- o.Set(string(keyRunes), "")
- break
- }
-
- if r != '\'' {
- for !unicode.IsSpace(r) {
- if r == '\\' {
- if r, ok = s.Next(); !ok {
- return fmt.Errorf(`missing character after backslash`)
- }
- }
- valRunes = append(valRunes, r)
-
- if r, ok = s.Next(); !ok {
- break
- }
- }
- } else {
- quote:
- for {
- if r, ok = s.Next(); !ok {
- return fmt.Errorf(`unterminated quoted string literal in connection string`)
- }
- switch r {
- case '\'':
- break quote
- case '\\':
- r, _ = s.Next()
- fallthrough
- default:
- valRunes = append(valRunes, r)
- }
- }
- }
-
- o.Set(string(keyRunes), string(valRunes))
- }
-
- return nil
-}
-
-func (cn *conn) isInTransaction() bool {
- return cn.txnStatus == txnStatusIdleInTransaction ||
- cn.txnStatus == txnStatusInFailedTransaction
-}
-
-func (cn *conn) checkIsInTransaction(intxn bool) {
- if cn.isInTransaction() != intxn {
- cn.bad = true
- errorf("unexpected transaction status %v", cn.txnStatus)
- }
-}
-
-func (cn *conn) Begin() (_ driver.Tx, err error) {
- if cn.bad {
- return nil, driver.ErrBadConn
- }
- defer cn.errRecover(&err)
-
- cn.checkIsInTransaction(false)
- _, commandTag, err := cn.simpleExec("BEGIN")
- if err != nil {
- return nil, err
- }
- if commandTag != "BEGIN" {
- cn.bad = true
- return nil, fmt.Errorf("unexpected command tag %s", commandTag)
- }
- if cn.txnStatus != txnStatusIdleInTransaction {
- cn.bad = true
- return nil, fmt.Errorf("unexpected transaction status %v", cn.txnStatus)
- }
- return cn, nil
-}
-
-func (cn *conn) Commit() (err error) {
- if cn.bad {
- return driver.ErrBadConn
- }
- defer cn.errRecover(&err)
-
- cn.checkIsInTransaction(true)
- // We don't want the client to think that everything is okay if it tries
- // to commit a failed transaction. However, no matter what we return,
- // database/sql will release this connection back into the free connection
- // pool so we have to abort the current transaction here. Note that you
- // would get the same behaviour if you issued a COMMIT in a failed
- // transaction, so it's also the least surprising thing to do here.
- if cn.txnStatus == txnStatusInFailedTransaction {
- if err := cn.Rollback(); err != nil {
- return err
- }
- return ErrInFailedTransaction
- }
-
- _, commandTag, err := cn.simpleExec("COMMIT")
- if err != nil {
- if cn.isInTransaction() {
- cn.bad = true
- }
- return err
- }
- if commandTag != "COMMIT" {
- cn.bad = true
- return fmt.Errorf("unexpected command tag %s", commandTag)
- }
- cn.checkIsInTransaction(false)
- return nil
-}
-
-func (cn *conn) Rollback() (err error) {
- if cn.bad {
- return driver.ErrBadConn
- }
- defer cn.errRecover(&err)
-
- cn.checkIsInTransaction(true)
- _, commandTag, err := cn.simpleExec("ROLLBACK")
- if err != nil {
- if cn.isInTransaction() {
- cn.bad = true
- }
- return err
- }
- if commandTag != "ROLLBACK" {
- return fmt.Errorf("unexpected command tag %s", commandTag)
- }
- cn.checkIsInTransaction(false)
- return nil
-}
-
-func (cn *conn) gname() string {
- cn.namei++
- return strconv.FormatInt(int64(cn.namei), 10)
-}
-
-func (cn *conn) simpleExec(q string) (res driver.Result, commandTag string, err error) {
- b := cn.writeBuf('Q')
- b.string(q)
- cn.send(b)
-
- for {
- t, r := cn.recv1()
- switch t {
- case 'C':
- res, commandTag = cn.parseComplete(r.string())
- case 'Z':
- cn.processReadyForQuery(r)
- // done
- return
- case 'E':
- err = parseError(r)
- case 'T', 'D', 'I':
- // ignore any results
- default:
- cn.bad = true
- errorf("unknown response for simple query: %q", t)
- }
- }
-}
-
-func (cn *conn) simpleQuery(q string) (res *rows, err error) {
- defer cn.errRecover(&err)
-
- b := cn.writeBuf('Q')
- b.string(q)
- cn.send(b)
-
- for {
- t, r := cn.recv1()
- switch t {
- case 'C', 'I':
- // We allow queries which don't return any results through Query as
- // well as Exec. We still have to give database/sql a rows object
- // the user can close, though, to avoid connections from being
- // leaked. A "rows" with done=true works fine for that purpose.
- if err != nil {
- cn.bad = true
- errorf("unexpected message %q in simple query execution", t)
- }
- if res == nil {
- res = &rows{
- cn: cn,
- }
- }
- res.done = true
- case 'Z':
- cn.processReadyForQuery(r)
- // done
- return
- case 'E':
- res = nil
- err = parseError(r)
- case 'D':
- if res == nil {
- cn.bad = true
- errorf("unexpected DataRow in simple query execution")
- }
- // the query didn't fail; kick off to Next
- cn.saveMessage(t, r)
- return
- case 'T':
- // res might be non-nil here if we received a previous
- // CommandComplete, but that's fine; just overwrite it
- res = &rows{cn: cn}
- res.colNames, res.colFmts, res.colTyps = parsePortalRowDescribe(r)
-
- // To work around a bug in QueryRow in Go 1.2 and earlier, wait
- // until the first DataRow has been received.
- default:
- cn.bad = true
- errorf("unknown response for simple query: %q", t)
- }
- }
-}
-
-// Decides which column formats to use for a prepared statement. The input is
-// an array of type oids, one element per result column.
-func decideColumnFormats(colTyps []oid.Oid, forceText bool) (colFmts []format, colFmtData []byte) {
- if len(colTyps) == 0 {
- return nil, colFmtDataAllText
- }
-
- colFmts = make([]format, len(colTyps))
- if forceText {
- return colFmts, colFmtDataAllText
- }
-
- allBinary := true
- allText := true
- for i, o := range colTyps {
- switch o {
- // This is the list of types to use binary mode for when receiving them
- // through a prepared statement. If a type appears in this list, it
- // must also be implemented in binaryDecode in encode.go.
- case oid.T_bytea:
- fallthrough
- case oid.T_int8:
- fallthrough
- case oid.T_int4:
- fallthrough
- case oid.T_int2:
- colFmts[i] = formatBinary
- allText = false
-
- default:
- allBinary = false
- }
- }
-
- if allBinary {
- return colFmts, colFmtDataAllBinary
- } else if allText {
- return colFmts, colFmtDataAllText
- } else {
- colFmtData = make([]byte, 2+len(colFmts)*2)
- binary.BigEndian.PutUint16(colFmtData, uint16(len(colFmts)))
- for i, v := range colFmts {
- binary.BigEndian.PutUint16(colFmtData[2+i*2:], uint16(v))
- }
- return colFmts, colFmtData
- }
-}
-
-func (cn *conn) prepareTo(q, stmtName string) *stmt {
- st := &stmt{cn: cn, name: stmtName}
-
- b := cn.writeBuf('P')
- b.string(st.name)
- b.string(q)
- b.int16(0)
-
- b.next('D')
- b.byte('S')
- b.string(st.name)
-
- b.next('S')
- cn.send(b)
-
- cn.readParseResponse()
- st.paramTyps, st.colNames, st.colTyps = cn.readStatementDescribeResponse()
- st.colFmts, st.colFmtData = decideColumnFormats(st.colTyps, cn.disablePreparedBinaryResult)
- cn.readReadyForQuery()
- return st
-}
-
-func (cn *conn) Prepare(q string) (_ driver.Stmt, err error) {
- if cn.bad {
- return nil, driver.ErrBadConn
- }
- defer cn.errRecover(&err)
-
- if len(q) >= 4 && strings.EqualFold(q[:4], "COPY") {
- return cn.prepareCopyIn(q)
- }
- return cn.prepareTo(q, cn.gname()), nil
-}
-
-func (cn *conn) Close() (err error) {
- if cn.bad {
- return driver.ErrBadConn
- }
- defer cn.errRecover(&err)
-
- // Don't go through send(); ListenerConn relies on us not scribbling on the
- // scratch buffer of this connection.
- err = cn.sendSimpleMessage('X')
- if err != nil {
- return err
- }
-
- return cn.c.Close()
-}
-
-// Implement the "Queryer" interface
-func (cn *conn) Query(query string, args []driver.Value) (_ driver.Rows, err error) {
- if cn.bad {
- return nil, driver.ErrBadConn
- }
- defer cn.errRecover(&err)
-
- // Check to see if we can use the "simpleQuery" interface, which is
- // *much* faster than going through prepare/exec
- if len(args) == 0 {
- return cn.simpleQuery(query)
- }
-
- if cn.binaryParameters {
- cn.sendBinaryModeQuery(query, args)
-
- cn.readParseResponse()
- cn.readBindResponse()
- rows := &rows{cn: cn}
- rows.colNames, rows.colFmts, rows.colTyps = cn.readPortalDescribeResponse()
- cn.postExecuteWorkaround()
- return rows, nil
- } else {
- st := cn.prepareTo(query, "")
- st.exec(args)
- return &rows{
- cn: cn,
- colNames: st.colNames,
- colTyps: st.colTyps,
- colFmts: st.colFmts,
- }, nil
- }
-}
-
-// Implement the optional "Execer" interface for one-shot queries
-func (cn *conn) Exec(query string, args []driver.Value) (res driver.Result, err error) {
- if cn.bad {
- return nil, driver.ErrBadConn
- }
- defer cn.errRecover(&err)
-
- // Check to see if we can use the "simpleExec" interface, which is
- // *much* faster than going through prepare/exec
- if len(args) == 0 {
- // ignore commandTag, our caller doesn't care
- r, _, err := cn.simpleExec(query)
- return r, err
- }
-
- if cn.binaryParameters {
- cn.sendBinaryModeQuery(query, args)
-
- cn.readParseResponse()
- cn.readBindResponse()
- cn.readPortalDescribeResponse()
- cn.postExecuteWorkaround()
- res, _, err = cn.readExecuteResponse("Execute")
- return res, err
- } else {
- // Use the unnamed statement to defer planning until bind
- // time, or else value-based selectivity estimates cannot be
- // used.
- st := cn.prepareTo(query, "")
- r, err := st.Exec(args)
- if err != nil {
- panic(err)
- }
- return r, err
- }
-}
-
-func (cn *conn) send(m *writeBuf) {
- _, err := cn.c.Write(m.wrap())
- if err != nil {
- panic(err)
- }
-}
-
-func (cn *conn) sendStartupPacket(m *writeBuf) {
- // sanity check
- if m.buf[0] != 0 {
- panic("oops")
- }
-
- _, err := cn.c.Write((m.wrap())[1:])
- if err != nil {
- panic(err)
- }
-}
-
-// Send a message of type typ to the server on the other end of cn. The
-// message should have no payload. This method does not use the scratch
-// buffer.
-func (cn *conn) sendSimpleMessage(typ byte) (err error) {
- _, err = cn.c.Write([]byte{typ, '\x00', '\x00', '\x00', '\x04'})
- return err
-}
-
-// saveMessage memorizes a message and its buffer in the conn struct.
-// recvMessage will then return these values on the next call to it. This
-// method is useful in cases where you have to see what the next message is
-// going to be (e.g. to see whether it's an error or not) but you can't handle
-// the message yourself.
-func (cn *conn) saveMessage(typ byte, buf *readBuf) {
- if cn.saveMessageType != 0 {
- cn.bad = true
- errorf("unexpected saveMessageType %d", cn.saveMessageType)
- }
- cn.saveMessageType = typ
- cn.saveMessageBuffer = *buf
-}
-
-// recvMessage receives any message from the backend, or returns an error if
-// a problem occurred while reading the message.
-func (cn *conn) recvMessage(r *readBuf) (byte, error) {
- // workaround for a QueryRow bug, see exec
- if cn.saveMessageType != 0 {
- t := cn.saveMessageType
- *r = cn.saveMessageBuffer
- cn.saveMessageType = 0
- cn.saveMessageBuffer = nil
- return t, nil
- }
-
- x := cn.scratch[:5]
- _, err := io.ReadFull(cn.buf, x)
- if err != nil {
- return 0, err
- }
-
- // read the type and length of the message that follows
- t := x[0]
- n := int(binary.BigEndian.Uint32(x[1:])) - 4
- var y []byte
- if n <= len(cn.scratch) {
- y = cn.scratch[:n]
- } else {
- y = make([]byte, n)
- }
- _, err = io.ReadFull(cn.buf, y)
- if err != nil {
- return 0, err
- }
- *r = y
- return t, nil
-}
-
-// recv receives a message from the backend, but if an error happened while
-// reading the message or the received message was an ErrorResponse, it panics.
-// NoticeResponses are ignored. This function should generally be used only
-// during the startup sequence.
-func (cn *conn) recv() (t byte, r *readBuf) {
- for {
- var err error
- r = &readBuf{}
- t, err = cn.recvMessage(r)
- if err != nil {
- panic(err)
- }
-
- switch t {
- case 'E':
- panic(parseError(r))
- case 'N':
- // ignore
- default:
- return
- }
- }
-}
-
-// recv1Buf is exactly equivalent to recv1, except it uses a buffer supplied by
-// the caller to avoid an allocation.
-func (cn *conn) recv1Buf(r *readBuf) byte {
- for {
- t, err := cn.recvMessage(r)
- if err != nil {
- panic(err)
- }
-
- switch t {
- case 'A', 'N':
- // ignore
- case 'S':
- cn.processParameterStatus(r)
- default:
- return t
- }
- }
-}
-
-// recv1 receives a message from the backend, panicking if an error occurs
-// while attempting to read it. All asynchronous messages are ignored, with
-// the exception of ErrorResponse.
-func (cn *conn) recv1() (t byte, r *readBuf) {
- r = &readBuf{}
- t = cn.recv1Buf(r)
- return t, r
-}
-
-func (cn *conn) ssl(o values) {
- verifyCaOnly := false
- tlsConf := tls.Config{}
- switch mode := o.Get("sslmode"); mode {
- case "require", "":
- tlsConf.InsecureSkipVerify = true
- case "verify-ca":
- // We must skip TLS's own verification since it requires full
- // verification since Go 1.3.
- tlsConf.InsecureSkipVerify = true
- verifyCaOnly = true
- case "verify-full":
- tlsConf.ServerName = o.Get("host")
- case "disable":
- return
- default:
- errorf(`unsupported sslmode %q; only "require" (default), "verify-full", "verify-ca", and "disable" supported`, mode)
- }
-
- cn.setupSSLClientCertificates(&tlsConf, o)
- cn.setupSSLCA(&tlsConf, o)
-
- w := cn.writeBuf(0)
- w.int32(80877103)
- cn.sendStartupPacket(w)
-
- b := cn.scratch[:1]
- _, err := io.ReadFull(cn.c, b)
- if err != nil {
- panic(err)
- }
-
- if b[0] != 'S' {
- panic(ErrSSLNotSupported)
- }
-
- client := tls.Client(cn.c, &tlsConf)
- if verifyCaOnly {
- cn.verifyCA(client, &tlsConf)
- }
- cn.c = client
-}
-
-// verifyCA carries out a TLS handshake to the server and verifies the
-// presented certificate against the effective CA, i.e. the one specified in
-// sslrootcert or the system CA if sslrootcert was not specified.
-func (cn *conn) verifyCA(client *tls.Conn, tlsConf *tls.Config) {
- err := client.Handshake()
- if err != nil {
- panic(err)
- }
- certs := client.ConnectionState().PeerCertificates
- opts := x509.VerifyOptions{
- DNSName: client.ConnectionState().ServerName,
- Intermediates: x509.NewCertPool(),
- Roots: tlsConf.RootCAs,
- }
- for i, cert := range certs {
- if i == 0 {
- continue
- }
- opts.Intermediates.AddCert(cert)
- }
- _, err = certs[0].Verify(opts)
- if err != nil {
- panic(err)
- }
-}
-
-// This function sets up SSL client certificates based on either the "sslkey"
-// and "sslcert" settings (possibly set via the environment variables PGSSLKEY
-// and PGSSLCERT, respectively), or if they aren't set, from the .postgresql
-// directory in the user's home directory. If the file paths are set
-// explicitly, the files must exist. The key file must also not be
-// world-readable, or this function will panic with
-// ErrSSLKeyHasWorldPermissions.
-func (cn *conn) setupSSLClientCertificates(tlsConf *tls.Config, o values) {
- var missingOk bool
-
- sslkey := o.Get("sslkey")
- sslcert := o.Get("sslcert")
- if sslkey != "" && sslcert != "" {
- // If the user has set an sslkey and sslcert, they *must* exist.
- missingOk = false
- } else {
- // Automatically load certificates from ~/.postgresql.
- user, err := user.Current()
- if err != nil {
- // user.Current() might fail when cross-compiling. We have to
- // ignore the error and continue without client certificates, since
- // we wouldn't know where to load them from.
- return
- }
-
- sslkey = filepath.Join(user.HomeDir, ".postgresql", "postgresql.key")
- sslcert = filepath.Join(user.HomeDir, ".postgresql", "postgresql.crt")
- missingOk = true
- }
-
- // Check that both files exist, and report the error or stop, depending on
- // which behaviour we want. Note that we don't do any more extensive
- // checks than this (such as checking that the paths aren't directories);
- // LoadX509KeyPair() will take care of the rest.
- keyfinfo, err := os.Stat(sslkey)
- if err != nil && missingOk {
- return
- } else if err != nil {
- panic(err)
- }
- _, err = os.Stat(sslcert)
- if err != nil && missingOk {
- return
- } else if err != nil {
- panic(err)
- }
-
- // If we got this far, the key file must also have the correct permissions
- kmode := keyfinfo.Mode()
- if kmode != kmode&0600 {
- panic(ErrSSLKeyHasWorldPermissions)
- }
-
- cert, err := tls.LoadX509KeyPair(sslcert, sslkey)
- if err != nil {
- panic(err)
- }
- tlsConf.Certificates = []tls.Certificate{cert}
-}
-
-// Sets up RootCAs in the TLS configuration if sslrootcert is set.
-func (cn *conn) setupSSLCA(tlsConf *tls.Config, o values) {
- if sslrootcert := o.Get("sslrootcert"); sslrootcert != "" {
- tlsConf.RootCAs = x509.NewCertPool()
-
- cert, err := ioutil.ReadFile(sslrootcert)
- if err != nil {
- panic(err)
- }
-
- ok := tlsConf.RootCAs.AppendCertsFromPEM(cert)
- if !ok {
- errorf("couldn't parse pem in sslrootcert")
- }
- }
-}
-
-// isDriverSetting returns true iff a setting is purely for configuring the
-// driver's options and should not be sent to the server in the connection
-// startup packet.
-func isDriverSetting(key string) bool {
- switch key {
- case "host", "port":
- return true
- case "password":
- return true
- case "sslmode", "sslcert", "sslkey", "sslrootcert":
- return true
- case "fallback_application_name":
- return true
- case "connect_timeout":
- return true
- case "disable_prepared_binary_result":
- return true
- case "binary_parameters":
- return true
-
- default:
- return false
- }
-}
-
-func (cn *conn) startup(o values) {
- w := cn.writeBuf(0)
- w.int32(196608)
- // Send the backend the name of the database we want to connect to, and the
- // user we want to connect as. Additionally, we send over any run-time
- // parameters potentially included in the connection string. If the server
- // doesn't recognize any of them, it will reply with an error.
- for k, v := range o {
- if isDriverSetting(k) {
- // skip options which can't be run-time parameters
- continue
- }
- // The protocol requires us to supply the database name as "database"
- // instead of "dbname".
- if k == "dbname" {
- k = "database"
- }
- w.string(k)
- w.string(v)
- }
- w.string("")
- cn.sendStartupPacket(w)
-
- for {
- t, r := cn.recv()
- switch t {
- case 'K':
- case 'S':
- cn.processParameterStatus(r)
- case 'R':
- cn.auth(r, o)
- case 'Z':
- cn.processReadyForQuery(r)
- return
- default:
- errorf("unknown response for startup: %q", t)
- }
- }
-}
-
-func (cn *conn) auth(r *readBuf, o values) {
- switch code := r.int32(); code {
- case 0:
- // OK
- case 3:
- w := cn.writeBuf('p')
- w.string(o.Get("password"))
- cn.send(w)
-
- t, r := cn.recv()
- if t != 'R' {
- errorf("unexpected password response: %q", t)
- }
-
- if r.int32() != 0 {
- errorf("unexpected authentication response: %q", t)
- }
- case 5:
- s := string(r.next(4))
- w := cn.writeBuf('p')
- w.string("md5" + md5s(md5s(o.Get("password")+o.Get("user"))+s))
- cn.send(w)
-
- t, r := cn.recv()
- if t != 'R' {
- errorf("unexpected password response: %q", t)
- }
-
- if r.int32() != 0 {
- errorf("unexpected authentication response: %q", t)
- }
- default:
- errorf("unknown authentication response: %d", code)
- }
-}
-
-type format int
-
-const formatText format = 0
-const formatBinary format = 1
-
-// One result-column format code with the value 1 (i.e. all binary).
-var colFmtDataAllBinary []byte = []byte{0, 1, 0, 1}
-
-// No result-column format codes (i.e. all text).
-var colFmtDataAllText []byte = []byte{0, 0}
-
-type stmt struct {
- cn *conn
- name string
- colNames []string
- colFmts []format
- colFmtData []byte
- colTyps []oid.Oid
- paramTyps []oid.Oid
- closed bool
-}
-
-func (st *stmt) Close() (err error) {
- if st.closed {
- return nil
- }
- if st.cn.bad {
- return driver.ErrBadConn
- }
- defer st.cn.errRecover(&err)
-
- w := st.cn.writeBuf('C')
- w.byte('S')
- w.string(st.name)
- st.cn.send(w)
-
- st.cn.send(st.cn.writeBuf('S'))
-
- t, _ := st.cn.recv1()
- if t != '3' {
- st.cn.bad = true
- errorf("unexpected close response: %q", t)
- }
- st.closed = true
-
- t, r := st.cn.recv1()
- if t != 'Z' {
- st.cn.bad = true
- errorf("expected ready for query, but got: %q", t)
- }
- st.cn.processReadyForQuery(r)
-
- return nil
-}
-
-func (st *stmt) Query(v []driver.Value) (r driver.Rows, err error) {
- if st.cn.bad {
- return nil, driver.ErrBadConn
- }
- defer st.cn.errRecover(&err)
-
- st.exec(v)
- return &rows{
- cn: st.cn,
- colNames: st.colNames,
- colTyps: st.colTyps,
- colFmts: st.colFmts,
- }, nil
-}
-
-func (st *stmt) Exec(v []driver.Value) (res driver.Result, err error) {
- if st.cn.bad {
- return nil, driver.ErrBadConn
- }
- defer st.cn.errRecover(&err)
-
- st.exec(v)
- res, _, err = st.cn.readExecuteResponse("simple query")
- return res, err
-}
-
-func (st *stmt) exec(v []driver.Value) {
- if len(v) >= 65536 {
- errorf("got %d parameters but PostgreSQL only supports 65535 parameters", len(v))
- }
- if len(v) != len(st.paramTyps) {
- errorf("got %d parameters but the statement requires %d", len(v), len(st.paramTyps))
- }
-
- cn := st.cn
- w := cn.writeBuf('B')
- w.byte(0) // unnamed portal
- w.string(st.name)
-
- if cn.binaryParameters {
- cn.sendBinaryParameters(w, v)
- } else {
- w.int16(0)
- w.int16(len(v))
- for i, x := range v {
- if x == nil {
- w.int32(-1)
- } else {
- b := encode(&cn.parameterStatus, x, st.paramTyps[i])
- w.int32(len(b))
- w.bytes(b)
- }
- }
- }
- w.bytes(st.colFmtData)
-
- w.next('E')
- w.byte(0)
- w.int32(0)
-
- w.next('S')
- cn.send(w)
-
- cn.readBindResponse()
- cn.postExecuteWorkaround()
-
-}
-
-func (st *stmt) NumInput() int {
- return len(st.paramTyps)
-}
-
-// parseComplete parses the "command tag" from a CommandComplete message, and
-// returns the number of rows affected (if applicable) and a string
-// identifying only the command that was executed, e.g. "ALTER TABLE". If the
-// command tag could not be parsed, parseComplete panics.
-func (cn *conn) parseComplete(commandTag string) (driver.Result, string) {
- commandsWithAffectedRows := []string{
- "SELECT ",
- // INSERT is handled below
- "UPDATE ",
- "DELETE ",
- "FETCH ",
- "MOVE ",
- "COPY ",
- }
-
- var affectedRows *string
- for _, tag := range commandsWithAffectedRows {
- if strings.HasPrefix(commandTag, tag) {
- t := commandTag[len(tag):]
- affectedRows = &t
- commandTag = tag[:len(tag)-1]
- break
- }
- }
- // INSERT also includes the oid of the inserted row in its command tag.
- // Oids in user tables are deprecated, and the oid is only returned when
- // exactly one row is inserted, so it's unlikely to be of value to any
- // real-world application and we can ignore it.
- if affectedRows == nil && strings.HasPrefix(commandTag, "INSERT ") {
- parts := strings.Split(commandTag, " ")
- if len(parts) != 3 {
- cn.bad = true
- errorf("unexpected INSERT command tag %s", commandTag)
- }
- affectedRows = &parts[len(parts)-1]
- commandTag = "INSERT"
- }
- // There should be no affected rows attached to the tag, just return it
- if affectedRows == nil {
- return driver.RowsAffected(0), commandTag
- }
- n, err := strconv.ParseInt(*affectedRows, 10, 64)
- if err != nil {
- cn.bad = true
- errorf("could not parse commandTag: %s", err)
- }
- return driver.RowsAffected(n), commandTag
-}
-
-type rows struct {
- cn *conn
- colNames []string
- colTyps []oid.Oid
- colFmts []format
- done bool
- rb readBuf
-}
-
-func (rs *rows) Close() error {
- // no need to look at cn.bad as Next() will
- for {
- err := rs.Next(nil)
- switch err {
- case nil:
- case io.EOF:
- return nil
- default:
- return err
- }
- }
-}
-
-func (rs *rows) Columns() []string {
- return rs.colNames
-}
-
-func (rs *rows) Next(dest []driver.Value) (err error) {
- if rs.done {
- return io.EOF
- }
-
- conn := rs.cn
- if conn.bad {
- return driver.ErrBadConn
- }
- defer conn.errRecover(&err)
-
- for {
- t := conn.recv1Buf(&rs.rb)
- switch t {
- case 'E':
- err = parseError(&rs.rb)
- case 'C', 'I':
- continue
- case 'Z':
- conn.processReadyForQuery(&rs.rb)
- rs.done = true
- if err != nil {
- return err
- }
- return io.EOF
- case 'D':
- n := rs.rb.int16()
- if err != nil {
- conn.bad = true
- errorf("unexpected DataRow after error %s", err)
- }
- if n < len(dest) {
- dest = dest[:n]
- }
- for i := range dest {
- l := rs.rb.int32()
- if l == -1 {
- dest[i] = nil
- continue
- }
- dest[i] = decode(&conn.parameterStatus, rs.rb.next(l), rs.colTyps[i], rs.colFmts[i])
- }
- return
- default:
- errorf("unexpected message after execute: %q", t)
- }
- }
-}
-
-// QuoteIdentifier quotes an "identifier" (e.g. a table or a column name) to be
-// used as part of an SQL statement. For example:
-//
-// tblname := "my_table"
-// data := "my_data"
-// err = db.Exec(fmt.Sprintf("INSERT INTO %s VALUES ($1)", pq.QuoteIdentifier(tblname)), data)
-//
-// Any double quotes in name will be escaped. The quoted identifier will be
-// case sensitive when used in a query. If the input string contains a zero
-// byte, the result will be truncated immediately before it.
-func QuoteIdentifier(name string) string {
- end := strings.IndexRune(name, 0)
- if end > -1 {
- name = name[:end]
- }
- return `"` + strings.Replace(name, `"`, `""`, -1) + `"`
-}
-
-func md5s(s string) string {
- h := md5.New()
- h.Write([]byte(s))
- return fmt.Sprintf("%x", h.Sum(nil))
-}
-
-func (cn *conn) sendBinaryParameters(b *writeBuf, args []driver.Value) {
- // Do one pass over the parameters to see if we're going to send any of
- // them over in binary. If we are, create a paramFormats array at the
- // same time.
- var paramFormats []int
- for i, x := range args {
- _, ok := x.([]byte)
- if ok {
- if paramFormats == nil {
- paramFormats = make([]int, len(args))
- }
- paramFormats[i] = 1
- }
- }
- if paramFormats == nil {
- b.int16(0)
- } else {
- b.int16(len(paramFormats))
- for _, x := range paramFormats {
- b.int16(x)
- }
- }
-
- b.int16(len(args))
- for _, x := range args {
- if x == nil {
- b.int32(-1)
- } else {
- datum := binaryEncode(&cn.parameterStatus, x)
- b.int32(len(datum))
- b.bytes(datum)
- }
- }
-}
-
-func (cn *conn) sendBinaryModeQuery(query string, args []driver.Value) {
- if len(args) >= 65536 {
- errorf("got %d parameters but PostgreSQL only supports 65535 parameters", len(args))
- }
-
- b := cn.writeBuf('P')
- b.byte(0) // unnamed statement
- b.string(query)
- b.int16(0)
-
- b.next('B')
- b.int16(0) // unnamed portal and statement
- cn.sendBinaryParameters(b, args)
- b.bytes(colFmtDataAllText)
-
- b.next('D')
- b.byte('P')
- b.byte(0) // unnamed portal
-
- b.next('E')
- b.byte(0)
- b.int32(0)
-
- b.next('S')
- cn.send(b)
-}
-
-func (c *conn) processParameterStatus(r *readBuf) {
- var err error
-
- param := r.string()
- switch param {
- case "server_version":
- var major1 int
- var major2 int
- var minor int
- _, err = fmt.Sscanf(r.string(), "%d.%d.%d", &major1, &major2, &minor)
- if err == nil {
- c.parameterStatus.serverVersion = major1*10000 + major2*100 + minor
- }
-
- case "TimeZone":
- c.parameterStatus.currentLocation, err = time.LoadLocation(r.string())
- if err != nil {
- c.parameterStatus.currentLocation = nil
- }
-
- default:
- // ignore
- }
-}
-
-func (c *conn) processReadyForQuery(r *readBuf) {
- c.txnStatus = transactionStatus(r.byte())
-}
-
-func (cn *conn) readReadyForQuery() {
- t, r := cn.recv1()
- switch t {
- case 'Z':
- cn.processReadyForQuery(r)
- return
- default:
- cn.bad = true
- errorf("unexpected message %q; expected ReadyForQuery", t)
- }
-}
-
-func (cn *conn) readParseResponse() {
- t, r := cn.recv1()
- switch t {
- case '1':
- return
- case 'E':
- err := parseError(r)
- cn.readReadyForQuery()
- panic(err)
- default:
- cn.bad = true
- errorf("unexpected Parse response %q", t)
- }
-}
-
-func (cn *conn) readStatementDescribeResponse() (paramTyps []oid.Oid, colNames []string, colTyps []oid.Oid) {
- for {
- t, r := cn.recv1()
- switch t {
- case 't':
- nparams := r.int16()
- paramTyps = make([]oid.Oid, nparams)
- for i := range paramTyps {
- paramTyps[i] = r.oid()
- }
- case 'n':
- return paramTyps, nil, nil
- case 'T':
- colNames, colTyps = parseStatementRowDescribe(r)
- return paramTyps, colNames, colTyps
- case 'E':
- err := parseError(r)
- cn.readReadyForQuery()
- panic(err)
- default:
- cn.bad = true
- errorf("unexpected Describe statement response %q", t)
- }
- }
-}
-
-func (cn *conn) readPortalDescribeResponse() (colNames []string, colFmts []format, colTyps []oid.Oid) {
- t, r := cn.recv1()
- switch t {
- case 'T':
- return parsePortalRowDescribe(r)
- case 'n':
- return nil, nil, nil
- case 'E':
- err := parseError(r)
- cn.readReadyForQuery()
- panic(err)
- default:
- cn.bad = true
- errorf("unexpected Describe response %q", t)
- }
- panic("not reached")
-}
-
-func (cn *conn) readBindResponse() {
- t, r := cn.recv1()
- switch t {
- case '2':
- return
- case 'E':
- err := parseError(r)
- cn.readReadyForQuery()
- panic(err)
- default:
- cn.bad = true
- errorf("unexpected Bind response %q", t)
- }
-}
-
-func (cn *conn) postExecuteWorkaround() {
- // Work around a bug in sql.DB.QueryRow: in Go 1.2 and earlier it ignores
- // any errors from rows.Next, which masks errors that happened during the
- // execution of the query. To avoid the problem in common cases, we wait
- // here for one more message from the database. If it's not an error the
- // query will likely succeed (or perhaps has already, if it's a
- // CommandComplete), so we push the message into the conn struct; recv1
- // will return it as the next message for rows.Next or rows.Close.
- // However, if it's an error, we wait until ReadyForQuery and then return
- // the error to our caller.
- for {
- t, r := cn.recv1()
- switch t {
- case 'E':
- err := parseError(r)
- cn.readReadyForQuery()
- panic(err)
- case 'C', 'D', 'I':
- // the query didn't fail, but we can't process this message
- cn.saveMessage(t, r)
- return
- default:
- cn.bad = true
- errorf("unexpected message during extended query execution: %q", t)
- }
- }
-}
-
-// Only for Exec(), since we ignore the returned data
-func (cn *conn) readExecuteResponse(protocolState string) (res driver.Result, commandTag string, err error) {
- for {
- t, r := cn.recv1()
- switch t {
- case 'C':
- if err != nil {
- cn.bad = true
- errorf("unexpected CommandComplete after error %s", err)
- }
- res, commandTag = cn.parseComplete(r.string())
- case 'Z':
- cn.processReadyForQuery(r)
- return res, commandTag, err
- case 'E':
- err = parseError(r)
- case 'T', 'D', 'I':
- if err != nil {
- cn.bad = true
- errorf("unexpected %q after error %s", t, err)
- }
- // ignore any results
- default:
- cn.bad = true
- errorf("unknown %s response: %q", protocolState, t)
- }
- }
-}
-
-func parseStatementRowDescribe(r *readBuf) (colNames []string, colTyps []oid.Oid) {
- n := r.int16()
- colNames = make([]string, n)
- colTyps = make([]oid.Oid, n)
- for i := range colNames {
- colNames[i] = r.string()
- r.next(6)
- colTyps[i] = r.oid()
- r.next(6)
- // format code not known when describing a statement; always 0
- r.next(2)
- }
- return
-}
-
-func parsePortalRowDescribe(r *readBuf) (colNames []string, colFmts []format, colTyps []oid.Oid) {
- n := r.int16()
- colNames = make([]string, n)
- colFmts = make([]format, n)
- colTyps = make([]oid.Oid, n)
- for i := range colNames {
- colNames[i] = r.string()
- r.next(6)
- colTyps[i] = r.oid()
- r.next(6)
- colFmts[i] = format(r.int16())
- }
- return
-}
-
-// parseEnviron tries to mimic some of libpq's environment handling
-//
-// To ease testing, it does not directly reference os.Environ, but is
-// designed to accept its output.
-//
-// Environment-set connection information is intended to have a higher
-// precedence than a library default but lower than any explicitly
-// passed information (such as in the URL or connection string).
-func parseEnviron(env []string) (out map[string]string) {
- out = make(map[string]string)
-
- for _, v := range env {
- parts := strings.SplitN(v, "=", 2)
-
- accrue := func(keyname string) {
- out[keyname] = parts[1]
- }
- unsupported := func() {
- panic(fmt.Sprintf("setting %v not supported", parts[0]))
- }
-
- // The order of these is the same as is seen in the
- // PostgreSQL 9.1 manual. Unsupported but well-defined
- // keys cause a panic; these should be unset prior to
- // execution. Options which pq expects to be set to a
- // certain value are allowed, but must be set to that
- // value if present (they can, of course, be absent).
- switch parts[0] {
- case "PGHOST":
- accrue("host")
- case "PGHOSTADDR":
- unsupported()
- case "PGPORT":
- accrue("port")
- case "PGDATABASE":
- accrue("dbname")
- case "PGUSER":
- accrue("user")
- case "PGPASSWORD":
- accrue("password")
- case "PGSERVICE", "PGSERVICEFILE", "PGREALM":
- unsupported()
- case "PGOPTIONS":
- accrue("options")
- case "PGAPPNAME":
- accrue("application_name")
- case "PGSSLMODE":
- accrue("sslmode")
- case "PGSSLCERT":
- accrue("sslcert")
- case "PGSSLKEY":
- accrue("sslkey")
- case "PGSSLROOTCERT":
- accrue("sslrootcert")
- case "PGREQUIRESSL", "PGSSLCRL":
- unsupported()
- case "PGREQUIREPEER":
- unsupported()
- case "PGKRBSRVNAME", "PGGSSLIB":
- unsupported()
- case "PGCONNECT_TIMEOUT":
- accrue("connect_timeout")
- case "PGCLIENTENCODING":
- accrue("client_encoding")
- case "PGDATESTYLE":
- accrue("datestyle")
- case "PGTZ":
- accrue("timezone")
- case "PGGEQO":
- accrue("geqo")
- case "PGSYSCONFDIR", "PGLOCALEDIR":
- unsupported()
- }
- }
-
- return out
-}
-
-// isUTF8 returns whether name is a fuzzy variation of the string "UTF-8".
-func isUTF8(name string) bool {
- // Recognize all sorts of silly things as "UTF-8", like Postgres does
- s := strings.Map(alnumLowerASCII, name)
- return s == "utf8" || s == "unicode"
-}
-
-func alnumLowerASCII(ch rune) rune {
- if 'A' <= ch && ch <= 'Z' {
- return ch + ('a' - 'A')
- }
- if 'a' <= ch && ch <= 'z' || '0' <= ch && ch <= '9' {
- return ch
- }
- return -1 // discard
-}
diff --git a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/conn_test.go b/experimental/traffic_ops_auth/vendor/github.com/lib/pq/conn_test.go
deleted file mode 100644
index 274147c..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/conn_test.go
+++ /dev/null
@@ -1,1434 +0,0 @@
-package pq
-
-import (
- "database/sql"
- "database/sql/driver"
- "fmt"
- "io"
- "os"
- "reflect"
- "strings"
- "testing"
- "time"
-)
-
-type Fatalistic interface {
- Fatal(args ...interface{})
-}
-
-func forceBinaryParameters() bool {
- bp := os.Getenv("PQTEST_BINARY_PARAMETERS")
- if bp == "yes" {
- return true
- } else if bp == "" || bp == "no" {
- return false
- } else {
- panic("unexpected value for PQTEST_BINARY_PARAMETERS")
- }
-}
-
-func openTestConnConninfo(conninfo string) (*sql.DB, error) {
- defaultTo := func(envvar string, value string) {
- if os.Getenv(envvar) == "" {
- os.Setenv(envvar, value)
- }
- }
- defaultTo("PGDATABASE", "pqgotest")
- defaultTo("PGSSLMODE", "disable")
- defaultTo("PGCONNECT_TIMEOUT", "20")
-
- if forceBinaryParameters() &&
- !strings.HasPrefix(conninfo, "postgres://") &&
- !strings.HasPrefix(conninfo, "postgresql://") {
- conninfo = conninfo + " binary_parameters=yes"
- }
-
- return sql.Open("postgres", conninfo)
-}
-
-func openTestConn(t Fatalistic) *sql.DB {
- conn, err := openTestConnConninfo("")
- if err != nil {
- t.Fatal(err)
- }
-
- return conn
-}
-
-func getServerVersion(t *testing.T, db *sql.DB) int {
- var version int
- err := db.QueryRow("SHOW server_version_num").Scan(&version)
- if err != nil {
- t.Fatal(err)
- }
- return version
-}
-
-func TestReconnect(t *testing.T) {
- db1 := openTestConn(t)
- defer db1.Close()
- tx, err := db1.Begin()
- if err != nil {
- t.Fatal(err)
- }
- var pid1 int
- err = tx.QueryRow("SELECT pg_backend_pid()").Scan(&pid1)
- if err != nil {
- t.Fatal(err)
- }
- db2 := openTestConn(t)
- defer db2.Close()
- _, err = db2.Exec("SELECT pg_terminate_backend($1)", pid1)
- if err != nil {
- t.Fatal(err)
- }
- // The rollback will probably "fail" because we just killed
- // its connection above
- _ = tx.Rollback()
-
- const expected int = 42
- var result int
- err = db1.QueryRow(fmt.Sprintf("SELECT %d", expected)).Scan(&result)
- if err != nil {
- t.Fatal(err)
- }
- if result != expected {
- t.Errorf("got %v; expected %v", result, expected)
- }
-}
-
-func TestCommitInFailedTransaction(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- txn, err := db.Begin()
- if err != nil {
- t.Fatal(err)
- }
- rows, err := txn.Query("SELECT error")
- if err == nil {
- rows.Close()
- t.Fatal("expected failure")
- }
- err = txn.Commit()
- if err != ErrInFailedTransaction {
- t.Fatalf("expected ErrInFailedTransaction; got %#v", err)
- }
-}
-
-func TestOpenURL(t *testing.T) {
- testURL := func(url string) {
- db, err := openTestConnConninfo(url)
- if err != nil {
- t.Fatal(err)
- }
- defer db.Close()
- // database/sql might not call our Open at all unless we do something with
- // the connection
- txn, err := db.Begin()
- if err != nil {
- t.Fatal(err)
- }
- txn.Rollback()
- }
- testURL("postgres://")
- testURL("postgresql://")
-}
-
-const pgpass_file = "/tmp/pqgotest_pgpass"
-
-func TestPgpass(t *testing.T) {
- testAssert := func(conninfo string, expected string, reason string) {
- conn, err := openTestConnConninfo(conninfo)
- if err != nil {
- t.Fatal(err)
- }
- defer conn.Close()
-
- txn, err := conn.Begin()
- if err != nil {
- if expected != "fail" {
- t.Fatalf(reason, err)
- }
- return
- }
- rows, err := txn.Query("SELECT USER")
- if err != nil {
- txn.Rollback()
- rows.Close()
- if expected != "fail" {
- t.Fatalf(reason, err)
- }
- } else {
- if expected != "ok" {
- t.Fatalf(reason, err)
- }
- }
- txn.Rollback()
- }
- testAssert("", "ok", "missing .pgpass, unexpected error %#v")
- os.Setenv("PGPASSFILE", pgpass_file)
- testAssert("host=/tmp", "fail", ", unexpected error %#v")
- os.Remove(pgpass_file)
- pgpass, err := os.OpenFile(pgpass_file, os.O_RDWR|os.O_CREATE, 0644)
- if err != nil {
- t.Fatalf("Unexpected error writing pgpass file %#v", err)
- }
- _, err = pgpass.WriteString(`# comment
-server:5432:some_db:some_user:pass_A
-*:5432:some_db:some_user:pass_B
-localhost:*:*:*:pass_C
-*:*:*:*:pass_fallback
-`)
- if err != nil {
- t.Fatalf("Unexpected error writing pgpass file %#v", err)
- }
- pgpass.Close()
-
- assertPassword := func(extra values, expected string) {
- o := &values{"host": "localhost", "sslmode": "disable", "connect_timeout": "20", "user": "majid", "port": "5432", "extra_float_digits": "2", "dbname": "pqgotest", "client_encoding": "UTF8", "datestyle": "ISO, MDY"}
- for k, v := range extra {
- (*o)[k] = v
- }
- (&conn{}).handlePgpass(*o)
- if o.Get("password") != expected {
- t.Fatalf("For %v expected %s got %s", extra, expected, o.Get("password"))
- }
- }
- // wrong permissions for the pgpass file means it should be ignored
- assertPassword(values{"host": "example.com", "user": "foo"}, "")
- // fix the permissions and check if it has taken effect
- os.Chmod(pgpass_file, 0600)
- assertPassword(values{"host": "server", "dbname": "some_db", "user": "some_user"}, "pass_A")
- assertPassword(values{"host": "example.com", "user": "foo"}, "pass_fallback")
- assertPassword(values{"host": "example.com", "dbname": "some_db", "user": "some_user"}, "pass_B")
- // localhost also matches the default "" and UNIX sockets
- assertPassword(values{"host": "", "user": "some_user"}, "pass_C")
- assertPassword(values{"host": "/tmp", "user": "some_user"}, "pass_C")
- // cleanup
- os.Remove(pgpass_file)
- os.Setenv("PGPASSFILE", "")
-}
-
-func TestExec(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- _, err := db.Exec("CREATE TEMP TABLE temp (a int)")
- if err != nil {
- t.Fatal(err)
- }
-
- r, err := db.Exec("INSERT INTO temp VALUES (1)")
- if err != nil {
- t.Fatal(err)
- }
-
- if n, _ := r.RowsAffected(); n != 1 {
- t.Fatalf("expected 1 row affected, not %d", n)
- }
-
- r, err = db.Exec("INSERT INTO temp VALUES ($1), ($2), ($3)", 1, 2, 3)
- if err != nil {
- t.Fatal(err)
- }
-
- if n, _ := r.RowsAffected(); n != 3 {
- t.Fatalf("expected 3 rows affected, not %d", n)
- }
-
- // SELECT doesn't send the number of returned rows in the command tag
- // before 9.0
- if getServerVersion(t, db) >= 90000 {
- r, err = db.Exec("SELECT g FROM generate_series(1, 2) g")
- if err != nil {
- t.Fatal(err)
- }
- if n, _ := r.RowsAffected(); n != 2 {
- t.Fatalf("expected 2 rows affected, not %d", n)
- }
-
- r, err = db.Exec("SELECT g FROM generate_series(1, $1) g", 3)
- if err != nil {
- t.Fatal(err)
- }
- if n, _ := r.RowsAffected(); n != 3 {
- t.Fatalf("expected 3 rows affected, not %d", n)
- }
- }
-}
-
-func TestStatment(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- st, err := db.Prepare("SELECT 1")
- if err != nil {
- t.Fatal(err)
- }
-
- st1, err := db.Prepare("SELECT 2")
- if err != nil {
- t.Fatal(err)
- }
-
- r, err := st.Query()
- if err != nil {
- t.Fatal(err)
- }
- defer r.Close()
-
- if !r.Next() {
- t.Fatal("expected row")
- }
-
- var i int
- err = r.Scan(&i)
- if err != nil {
- t.Fatal(err)
- }
-
- if i != 1 {
- t.Fatalf("expected 1, got %d", i)
- }
-
- // st1
-
- r1, err := st1.Query()
- if err != nil {
- t.Fatal(err)
- }
- defer r1.Close()
-
- if !r1.Next() {
- if r.Err() != nil {
- t.Fatal(r1.Err())
- }
- t.Fatal("expected row")
- }
-
- err = r1.Scan(&i)
- if err != nil {
- t.Fatal(err)
- }
-
- if i != 2 {
- t.Fatalf("expected 2, got %d", i)
- }
-}
-
-func TestRowsCloseBeforeDone(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- r, err := db.Query("SELECT 1")
- if err != nil {
- t.Fatal(err)
- }
-
- err = r.Close()
- if err != nil {
- t.Fatal(err)
- }
-
- if r.Next() {
- t.Fatal("unexpected row")
- }
-
- if r.Err() != nil {
- t.Fatal(r.Err())
- }
-}
-
-func TestParameterCountMismatch(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- var notused int
- err := db.QueryRow("SELECT false", 1).Scan(¬used)
- if err == nil {
- t.Fatal("expected err")
- }
- // make sure we clean up correctly
- err = db.QueryRow("SELECT 1").Scan(¬used)
- if err != nil {
- t.Fatal(err)
- }
-
- err = db.QueryRow("SELECT $1").Scan(¬used)
- if err == nil {
- t.Fatal("expected err")
- }
- // make sure we clean up correctly
- err = db.QueryRow("SELECT 1").Scan(¬used)
- if err != nil {
- t.Fatal(err)
- }
-}
-
-// Test that EmptyQueryResponses are handled correctly.
-func TestEmptyQuery(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- _, err := db.Exec("")
- if err != nil {
- t.Fatal(err)
- }
- rows, err := db.Query("")
- if err != nil {
- t.Fatal(err)
- }
- cols, err := rows.Columns()
- if err != nil {
- t.Fatal(err)
- }
- if len(cols) != 0 {
- t.Fatalf("unexpected number of columns %d in response to an empty query", len(cols))
- }
- if rows.Next() {
- t.Fatal("unexpected row")
- }
- if rows.Err() != nil {
- t.Fatal(rows.Err())
- }
-
- stmt, err := db.Prepare("")
- if err != nil {
- t.Fatal(err)
- }
- _, err = stmt.Exec()
- if err != nil {
- t.Fatal(err)
- }
- rows, err = stmt.Query()
- if err != nil {
- t.Fatal(err)
- }
- cols, err = rows.Columns()
- if err != nil {
- t.Fatal(err)
- }
- if len(cols) != 0 {
- t.Fatalf("unexpected number of columns %d in response to an empty query", len(cols))
- }
- if rows.Next() {
- t.Fatal("unexpected row")
- }
- if rows.Err() != nil {
- t.Fatal(rows.Err())
- }
-}
-
-// Test that rows.Columns() is correct even if there are no result rows.
-func TestEmptyResultSetColumns(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- rows, err := db.Query("SELECT 1 AS a, text 'bar' AS bar WHERE FALSE")
- if err != nil {
- t.Fatal(err)
- }
- cols, err := rows.Columns()
- if err != nil {
- t.Fatal(err)
- }
- if len(cols) != 2 {
- t.Fatalf("unexpected number of columns %d in response to an empty query", len(cols))
- }
- if rows.Next() {
- t.Fatal("unexpected row")
- }
- if rows.Err() != nil {
- t.Fatal(rows.Err())
- }
- if cols[0] != "a" || cols[1] != "bar" {
- t.Fatalf("unexpected Columns result %v", cols)
- }
-
- stmt, err := db.Prepare("SELECT $1::int AS a, text 'bar' AS bar WHERE FALSE")
- if err != nil {
- t.Fatal(err)
- }
- rows, err = stmt.Query(1)
- if err != nil {
- t.Fatal(err)
- }
- cols, err = rows.Columns()
- if err != nil {
- t.Fatal(err)
- }
- if len(cols) != 2 {
- t.Fatalf("unexpected number of columns %d in response to an empty query", len(cols))
- }
- if rows.Next() {
- t.Fatal("unexpected row")
- }
- if rows.Err() != nil {
- t.Fatal(rows.Err())
- }
- if cols[0] != "a" || cols[1] != "bar" {
- t.Fatalf("unexpected Columns result %v", cols)
- }
-
-}
-
-func TestEncodeDecode(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- q := `
- SELECT
- E'\\000\\001\\002'::bytea,
- 'foobar'::text,
- NULL::integer,
- '2000-1-1 01:02:03.04-7'::timestamptz,
- 0::boolean,
- 123,
- -321,
- 3.14::float8
- WHERE
- E'\\000\\001\\002'::bytea = $1
- AND 'foobar'::text = $2
- AND $3::integer is NULL
- `
- // AND '2000-1-1 12:00:00.000000-7'::timestamp = $3
-
- exp1 := []byte{0, 1, 2}
- exp2 := "foobar"
-
- r, err := db.Query(q, exp1, exp2, nil)
- if err != nil {
- t.Fatal(err)
- }
- defer r.Close()
-
- if !r.Next() {
- if r.Err() != nil {
- t.Fatal(r.Err())
- }
- t.Fatal("expected row")
- }
-
- var got1 []byte
- var got2 string
- var got3 = sql.NullInt64{Valid: true}
- var got4 time.Time
- var got5, got6, got7, got8 interface{}
-
- err = r.Scan(&got1, &got2, &got3, &got4, &got5, &got6, &got7, &got8)
- if err != nil {
- t.Fatal(err)
- }
-
- if !reflect.DeepEqual(exp1, got1) {
- t.Errorf("expected %q byte: %q", exp1, got1)
- }
-
- if !reflect.DeepEqual(exp2, got2) {
- t.Errorf("expected %q byte: %q", exp2, got2)
- }
-
- if got3.Valid {
- t.Fatal("expected invalid")
- }
-
- if got4.Year() != 2000 {
- t.Fatal("wrong year")
- }
-
- if got5 != false {
- t.Fatalf("expected false, got %q", got5)
- }
-
- if got6 != int64(123) {
- t.Fatalf("expected 123, got %d", got6)
- }
-
- if got7 != int64(-321) {
- t.Fatalf("expected -321, got %d", got7)
- }
-
- if got8 != float64(3.14) {
- t.Fatalf("expected 3.14, got %f", got8)
- }
-}
-
-func TestNoData(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- st, err := db.Prepare("SELECT 1 WHERE true = false")
- if err != nil {
- t.Fatal(err)
- }
- defer st.Close()
-
- r, err := st.Query()
- if err != nil {
- t.Fatal(err)
- }
- defer r.Close()
-
- if r.Next() {
- if r.Err() != nil {
- t.Fatal(r.Err())
- }
- t.Fatal("unexpected row")
- }
-
- _, err = db.Query("SELECT * FROM nonexistenttable WHERE age=$1", 20)
- if err == nil {
- t.Fatal("Should have raised an error on non existent table")
- }
-
- _, err = db.Query("SELECT * FROM nonexistenttable")
- if err == nil {
- t.Fatal("Should have raised an error on non existent table")
- }
-}
-
-func TestErrorDuringStartup(t *testing.T) {
- // Don't use the normal connection setup, this is intended to
- // blow up in the startup packet from a non-existent user.
- db, err := openTestConnConninfo("user=thisuserreallydoesntexist")
- if err != nil {
- t.Fatal(err)
- }
- defer db.Close()
-
- _, err = db.Begin()
- if err == nil {
- t.Fatal("expected error")
- }
-
- e, ok := err.(*Error)
- if !ok {
- t.Fatalf("expected Error, got %#v", err)
- } else if e.Code.Name() != "invalid_authorization_specification" && e.Code.Name() != "invalid_password" {
- t.Fatalf("expected invalid_authorization_specification or invalid_password, got %s (%+v)", e.Code.Name(), err)
- }
-}
-
-func TestBadConn(t *testing.T) {
- var err error
-
- cn := conn{}
- func() {
- defer cn.errRecover(&err)
- panic(io.EOF)
- }()
- if err != driver.ErrBadConn {
- t.Fatalf("expected driver.ErrBadConn, got: %#v", err)
- }
- if !cn.bad {
- t.Fatalf("expected cn.bad")
- }
-
- cn = conn{}
- func() {
- defer cn.errRecover(&err)
- e := &Error{Severity: Efatal}
- panic(e)
- }()
- if err != driver.ErrBadConn {
- t.Fatalf("expected driver.ErrBadConn, got: %#v", err)
- }
- if !cn.bad {
- t.Fatalf("expected cn.bad")
- }
-}
-
-func TestErrorOnExec(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- txn, err := db.Begin()
- if err != nil {
- t.Fatal(err)
- }
- defer txn.Rollback()
-
- _, err = txn.Exec("CREATE TEMPORARY TABLE foo(f1 int PRIMARY KEY)")
- if err != nil {
- t.Fatal(err)
- }
-
- _, err = txn.Exec("INSERT INTO foo VALUES (0), (0)")
- if err == nil {
- t.Fatal("Should have raised error")
- }
-
- e, ok := err.(*Error)
- if !ok {
- t.Fatalf("expected Error, got %#v", err)
- } else if e.Code.Name() != "unique_violation" {
- t.Fatalf("expected unique_violation, got %s (%+v)", e.Code.Name(), err)
- }
-}
-
-func TestErrorOnQuery(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- txn, err := db.Begin()
- if err != nil {
- t.Fatal(err)
- }
- defer txn.Rollback()
-
- _, err = txn.Exec("CREATE TEMPORARY TABLE foo(f1 int PRIMARY KEY)")
- if err != nil {
- t.Fatal(err)
- }
-
- _, err = txn.Query("INSERT INTO foo VALUES (0), (0)")
- if err == nil {
- t.Fatal("Should have raised error")
- }
-
- e, ok := err.(*Error)
- if !ok {
- t.Fatalf("expected Error, got %#v", err)
- } else if e.Code.Name() != "unique_violation" {
- t.Fatalf("expected unique_violation, got %s (%+v)", e.Code.Name(), err)
- }
-}
-
-func TestErrorOnQueryRowSimpleQuery(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- txn, err := db.Begin()
- if err != nil {
- t.Fatal(err)
- }
- defer txn.Rollback()
-
- _, err = txn.Exec("CREATE TEMPORARY TABLE foo(f1 int PRIMARY KEY)")
- if err != nil {
- t.Fatal(err)
- }
-
- var v int
- err = txn.QueryRow("INSERT INTO foo VALUES (0), (0)").Scan(&v)
- if err == nil {
- t.Fatal("Should have raised error")
- }
-
- e, ok := err.(*Error)
- if !ok {
- t.Fatalf("expected Error, got %#v", err)
- } else if e.Code.Name() != "unique_violation" {
- t.Fatalf("expected unique_violation, got %s (%+v)", e.Code.Name(), err)
- }
-}
-
-// Test the QueryRow bug workarounds in stmt.exec() and simpleQuery()
-func TestQueryRowBugWorkaround(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- // stmt.exec()
- _, err := db.Exec("CREATE TEMP TABLE notnulltemp (a varchar(10) not null)")
- if err != nil {
- t.Fatal(err)
- }
-
- var a string
- err = db.QueryRow("INSERT INTO notnulltemp(a) values($1) RETURNING a", nil).Scan(&a)
- if err == sql.ErrNoRows {
- t.Fatalf("expected constraint violation error; got: %v", err)
- }
- pge, ok := err.(*Error)
- if !ok {
- t.Fatalf("expected *Error; got: %#v", err)
- }
- if pge.Code.Name() != "not_null_violation" {
- t.Fatalf("expected not_null_violation; got: %s (%+v)", pge.Code.Name(), err)
- }
-
- // Test workaround in simpleQuery()
- tx, err := db.Begin()
- if err != nil {
- t.Fatalf("unexpected error %s in Begin", err)
- }
- defer tx.Rollback()
-
- _, err = tx.Exec("SET LOCAL check_function_bodies TO FALSE")
- if err != nil {
- t.Fatalf("could not disable check_function_bodies: %s", err)
- }
- _, err = tx.Exec(`
-CREATE OR REPLACE FUNCTION bad_function()
-RETURNS integer
--- hack to prevent the function from being inlined
-SET check_function_bodies TO TRUE
-AS $$
- SELECT text 'bad'
-$$ LANGUAGE sql`)
- if err != nil {
- t.Fatalf("could not create function: %s", err)
- }
-
- err = tx.QueryRow("SELECT * FROM bad_function()").Scan(&a)
- if err == nil {
- t.Fatalf("expected error")
- }
- pge, ok = err.(*Error)
- if !ok {
- t.Fatalf("expected *Error; got: %#v", err)
- }
- if pge.Code.Name() != "invalid_function_definition" {
- t.Fatalf("expected invalid_function_definition; got: %s (%+v)", pge.Code.Name(), err)
- }
-
- err = tx.Rollback()
- if err != nil {
- t.Fatalf("unexpected error %s in Rollback", err)
- }
-
- // Also test that simpleQuery()'s workaround works when the query fails
- // after a row has been received.
- rows, err := db.Query(`
-select
- (select generate_series(1, ss.i))
-from (select gs.i
- from generate_series(1, 2) gs(i)
- order by gs.i limit 2) ss`)
- if err != nil {
- t.Fatalf("query failed: %s", err)
- }
- if !rows.Next() {
- t.Fatalf("expected at least one result row; got %s", rows.Err())
- }
- var i int
- err = rows.Scan(&i)
- if err != nil {
- t.Fatalf("rows.Scan() failed: %s", err)
- }
- if i != 1 {
- t.Fatalf("unexpected value for i: %d", i)
- }
- if rows.Next() {
- t.Fatalf("unexpected row")
- }
- pge, ok = rows.Err().(*Error)
- if !ok {
- t.Fatalf("expected *Error; got: %#v", err)
- }
- if pge.Code.Name() != "cardinality_violation" {
- t.Fatalf("expected cardinality_violation; got: %s (%+v)", pge.Code.Name(), rows.Err())
- }
-}
-
-func TestSimpleQuery(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- r, err := db.Query("select 1")
- if err != nil {
- t.Fatal(err)
- }
- defer r.Close()
-
- if !r.Next() {
- t.Fatal("expected row")
- }
-}
-
-func TestBindError(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- _, err := db.Exec("create temp table test (i integer)")
- if err != nil {
- t.Fatal(err)
- }
-
- _, err = db.Query("select * from test where i=$1", "hhh")
- if err == nil {
- t.Fatal("expected an error")
- }
-
- // Should not get error here
- r, err := db.Query("select * from test where i=$1", 1)
- if err != nil {
- t.Fatal(err)
- }
- defer r.Close()
-}
-
-func TestParseErrorInExtendedQuery(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- rows, err := db.Query("PARSE_ERROR $1", 1)
- if err == nil {
- t.Fatal("expected error")
- }
-
- rows, err = db.Query("SELECT 1")
- if err != nil {
- t.Fatal(err)
- }
- rows.Close()
-}
-
-// TestReturning tests that an INSERT query using the RETURNING clause returns a row.
-func TestReturning(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- _, err := db.Exec("CREATE TEMP TABLE distributors (did integer default 0, dname text)")
- if err != nil {
- t.Fatal(err)
- }
-
- rows, err := db.Query("INSERT INTO distributors (did, dname) VALUES (DEFAULT, 'XYZ Widgets') " +
- "RETURNING did;")
- if err != nil {
- t.Fatal(err)
- }
- if !rows.Next() {
- t.Fatal("no rows")
- }
- var did int
- err = rows.Scan(&did)
- if err != nil {
- t.Fatal(err)
- }
- if did != 0 {
- t.Fatalf("bad value for did: got %d, want %d", did, 0)
- }
-
- if rows.Next() {
- t.Fatal("unexpected next row")
- }
- err = rows.Err()
- if err != nil {
- t.Fatal(err)
- }
-}
-
-func TestIssue186(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- // Exec() a query which returns results
- _, err := db.Exec("VALUES (1), (2), (3)")
- if err != nil {
- t.Fatal(err)
- }
-
- _, err = db.Exec("VALUES ($1), ($2), ($3)", 1, 2, 3)
- if err != nil {
- t.Fatal(err)
- }
-
- // Query() a query which doesn't return any results
- txn, err := db.Begin()
- if err != nil {
- t.Fatal(err)
- }
- defer txn.Rollback()
-
- rows, err := txn.Query("CREATE TEMP TABLE foo(f1 int)")
- if err != nil {
- t.Fatal(err)
- }
- if err = rows.Close(); err != nil {
- t.Fatal(err)
- }
-
- // small trick to get NoData from a parameterized query
- _, err = txn.Exec("CREATE RULE nodata AS ON INSERT TO foo DO INSTEAD NOTHING")
- if err != nil {
- t.Fatal(err)
- }
- rows, err = txn.Query("INSERT INTO foo VALUES ($1)", 1)
- if err != nil {
- t.Fatal(err)
- }
- if err = rows.Close(); err != nil {
- t.Fatal(err)
- }
-}
-
-func TestIssue196(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- row := db.QueryRow("SELECT float4 '0.10000122' = $1, float8 '35.03554004971999' = $2",
- float32(0.10000122), float64(35.03554004971999))
-
- var float4match, float8match bool
- err := row.Scan(&float4match, &float8match)
- if err != nil {
- t.Fatal(err)
- }
- if !float4match {
- t.Errorf("Expected float4 fidelity to be maintained; got no match")
- }
- if !float8match {
- t.Errorf("Expected float8 fidelity to be maintained; got no match")
- }
-}
-
-// Test that any CommandComplete messages sent before the query results are
-// ignored.
-func TestIssue282(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- var search_path string
- err := db.QueryRow(`
- SET LOCAL search_path TO pg_catalog;
- SET LOCAL search_path TO pg_catalog;
- SHOW search_path`).Scan(&search_path)
- if err != nil {
- t.Fatal(err)
- }
- if search_path != "pg_catalog" {
- t.Fatalf("unexpected search_path %s", search_path)
- }
-}
-
-func TestReadFloatPrecision(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- row := db.QueryRow("SELECT float4 '0.10000122', float8 '35.03554004971999'")
- var float4val float32
- var float8val float64
- err := row.Scan(&float4val, &float8val)
- if err != nil {
- t.Fatal(err)
- }
- if float4val != float32(0.10000122) {
- t.Errorf("Expected float4 fidelity to be maintained; got no match")
- }
- if float8val != float64(35.03554004971999) {
- t.Errorf("Expected float8 fidelity to be maintained; got no match")
- }
-}
-
-func TestXactMultiStmt(t *testing.T) {
- // minified test case based on bug reports from
- // pico303@gmail.com and rangelspam@gmail.com
- t.Skip("Skipping failing test")
- db := openTestConn(t)
- defer db.Close()
-
- tx, err := db.Begin()
- if err != nil {
- t.Fatal(err)
- }
- defer tx.Commit()
-
- rows, err := tx.Query("select 1")
- if err != nil {
- t.Fatal(err)
- }
-
- if rows.Next() {
- var val int32
- if err = rows.Scan(&val); err != nil {
- t.Fatal(err)
- }
- } else {
- t.Fatal("Expected at least one row in first query in xact")
- }
-
- rows2, err := tx.Query("select 2")
- if err != nil {
- t.Fatal(err)
- }
-
- if rows2.Next() {
- var val2 int32
- if err := rows2.Scan(&val2); err != nil {
- t.Fatal(err)
- }
- } else {
- t.Fatal("Expected at least one row in second query in xact")
- }
-
- if err = rows.Err(); err != nil {
- t.Fatal(err)
- }
-
- if err = rows2.Err(); err != nil {
- t.Fatal(err)
- }
-
- if err = tx.Commit(); err != nil {
- t.Fatal(err)
- }
-}
-
-var envParseTests = []struct {
- Expected map[string]string
- Env []string
-}{
- {
- Env: []string{"PGDATABASE=hello", "PGUSER=goodbye"},
- Expected: map[string]string{"dbname": "hello", "user": "goodbye"},
- },
- {
- Env: []string{"PGDATESTYLE=ISO, MDY"},
- Expected: map[string]string{"datestyle": "ISO, MDY"},
- },
- {
- Env: []string{"PGCONNECT_TIMEOUT=30"},
- Expected: map[string]string{"connect_timeout": "30"},
- },
-}
-
-func TestParseEnviron(t *testing.T) {
- for i, tt := range envParseTests {
- results := parseEnviron(tt.Env)
- if !reflect.DeepEqual(tt.Expected, results) {
- t.Errorf("%d: Expected: %#v Got: %#v", i, tt.Expected, results)
- }
- }
-}
-
-func TestParseComplete(t *testing.T) {
- tpc := func(commandTag string, command string, affectedRows int64, shouldFail bool) {
- defer func() {
- if p := recover(); p != nil {
- if !shouldFail {
- t.Error(p)
- }
- }
- }()
- cn := &conn{}
- res, c := cn.parseComplete(commandTag)
- if c != command {
- t.Errorf("Expected %v, got %v", command, c)
- }
- n, err := res.RowsAffected()
- if err != nil {
- t.Fatal(err)
- }
- if n != affectedRows {
- t.Errorf("Expected %d, got %d", affectedRows, n)
- }
- }
-
- tpc("ALTER TABLE", "ALTER TABLE", 0, false)
- tpc("INSERT 0 1", "INSERT", 1, false)
- tpc("UPDATE 100", "UPDATE", 100, false)
- tpc("SELECT 100", "SELECT", 100, false)
- tpc("FETCH 100", "FETCH", 100, false)
- // allow COPY (and others) without row count
- tpc("COPY", "COPY", 0, false)
- // don't fail on command tags we don't recognize
- tpc("UNKNOWNCOMMANDTAG", "UNKNOWNCOMMANDTAG", 0, false)
-
- // failure cases
- tpc("INSERT 1", "", 0, true) // missing oid
- tpc("UPDATE 0 1", "", 0, true) // too many numbers
- tpc("SELECT foo", "", 0, true) // invalid row count
-}
-
-func TestExecerInterface(t *testing.T) {
- // Gin up a straw man private struct just for the type check
- cn := &conn{c: nil}
- var cni interface{} = cn
-
- _, ok := cni.(driver.Execer)
- if !ok {
- t.Fatal("Driver doesn't implement Execer")
- }
-}
-
-func TestNullAfterNonNull(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- r, err := db.Query("SELECT 9::integer UNION SELECT NULL::integer")
- if err != nil {
- t.Fatal(err)
- }
-
- var n sql.NullInt64
-
- if !r.Next() {
- if r.Err() != nil {
- t.Fatal(err)
- }
- t.Fatal("expected row")
- }
-
- if err := r.Scan(&n); err != nil {
- t.Fatal(err)
- }
-
- if n.Int64 != 9 {
- t.Fatalf("expected 2, not %d", n.Int64)
- }
-
- if !r.Next() {
- if r.Err() != nil {
- t.Fatal(err)
- }
- t.Fatal("expected row")
- }
-
- if err := r.Scan(&n); err != nil {
- t.Fatal(err)
- }
-
- if n.Valid {
- t.Fatal("expected n to be invalid")
- }
-
- if n.Int64 != 0 {
- t.Fatalf("expected n to 2, not %d", n.Int64)
- }
-}
-
-func Test64BitErrorChecking(t *testing.T) {
- defer func() {
- if err := recover(); err != nil {
- t.Fatal("panic due to 0xFFFFFFFF != -1 " +
- "when int is 64 bits")
- }
- }()
-
- db := openTestConn(t)
- defer db.Close()
-
- r, err := db.Query(`SELECT *
-FROM (VALUES (0::integer, NULL::text), (1, 'test string')) AS t;`)
-
- if err != nil {
- t.Fatal(err)
- }
-
- defer r.Close()
-
- for r.Next() {
- }
-}
-
-func TestCommit(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- _, err := db.Exec("CREATE TEMP TABLE temp (a int)")
- if err != nil {
- t.Fatal(err)
- }
- sqlInsert := "INSERT INTO temp VALUES (1)"
- sqlSelect := "SELECT * FROM temp"
- tx, err := db.Begin()
- if err != nil {
- t.Fatal(err)
- }
- _, err = tx.Exec(sqlInsert)
- if err != nil {
- t.Fatal(err)
- }
- err = tx.Commit()
- if err != nil {
- t.Fatal(err)
- }
- var i int
- err = db.QueryRow(sqlSelect).Scan(&i)
- if err != nil {
- t.Fatal(err)
- }
- if i != 1 {
- t.Fatalf("expected 1, got %d", i)
- }
-}
-
-func TestErrorClass(t *testing.T) {
- db := openTestConn(t)
- defer db.Close()
-
- _, err := db.Query("SELECT int 'notint'")
- if err == nil {
- t.Fatal("expected error")
- }
- pge, ok := err.(*Error)
- if !ok {
- t.Fatalf("expected *pq.Error, got %#+v", err)
- }
- if pge.Code.Class() != "22" {
- t.Fatalf("expected class 28, got %v", pge.Code.Class())
- }
- if pge.Code.Class().Name() != "data_exception" {
- t.Fatalf("expected data_exception, got %v", pge.Code.Class().Name())
- }
-}
-
-func TestParseOpts(t *testing.T) {
- tests := []struct {
- in string
- expected values
- valid bool
- }{
- {"dbname=hello user=goodbye", values{"dbname": "hello", "user": "goodbye"}, true},
- {"dbname=hello user=goodbye ", values{"dbname": "hello", "user": "goodbye"}, true},
- {"dbname = hello user=goodbye", values{"dbname": "hello", "user": "goodbye"}, true},
- {"dbname=hello user =goodbye", values{"dbname": "hello", "user": "goodbye"}, true},
- {"dbname=hello user= goodbye", values{"dbname": "hello", "user": "goodbye"}, true},
- {"host=localhost password='correct horse battery staple'", values{"host": "localhost", "password": "correct horse battery staple"}, true},
- {"dbname=データベース password=パスワード", values{"dbname": "データベース", "password": "パスワード"}, true},
- {"dbname=hello user=''", values{"dbname": "hello", "user": ""}, true},
- {"user='' dbname=hello", values{"dbname": "hello", "user": ""}, true},
- // The last option value is an empty string if there's no non-whitespace after its =
- {"dbname=hello user= ", values{"dbname": "hello", "user": ""}, true},
-
- // The parser ignores spaces after = and interprets the next set of non-whitespace characters as the value.
- {"user= password=foo", values{"user": "password=foo"}, true},
-
- // Backslash escapes next char
- {`user=a\ \'\\b`, values{"user": `a '\b`}, true},
- {`user='a \'b'`, values{"user": `a 'b`}, true},
-
- // Incomplete escape
- {`user=x\`, values{}, false},
-
- // No '=' after the key
- {"postgre://marko@internet", values{}, false},
- {"dbname user=goodbye", values{}, false},
- {"user=foo blah", values{}, false},
- {"user=foo blah ", values{}, false},
-
- // Unterminated quoted value
- {"dbname=hello user='unterminated", values{}, false},
- }
-
- for _, test := range tests {
- o := make(values)
- err := parseOpts(test.in, o)
-
- switch {
- case err != nil && test.valid:
- t.Errorf("%q got unexpected error: %s", test.in, err)
- case err == nil && test.valid && !reflect.DeepEqual(test.expected, o):
- t.Errorf("%q got: %#v want: %#v", test.in, o, test.expected)
- case err == nil && !test.valid:
- t.Errorf("%q expected an error", test.in)
- }
- }
-}
-
-func TestRuntimeParameters(t *testing.T) {
- type RuntimeTestResult int
- const (
- ResultUnknown RuntimeTestResult = iota
- ResultSuccess
- ResultError // other error
- )
-
- tests := []struct {
- conninfo string
- param string
- expected string
- expectedOutcome RuntimeTestResult
- }{
- // invalid parameter
- {"DOESNOTEXIST=foo", "", "", ResultError},
- // we can only work with a specific value for these two
- {"client_encoding=SQL_ASCII", "", "", ResultError},
- {"datestyle='ISO, YDM'", "", "", ResultError},
- // "options" should work exactly as it does in libpq
- {"options='-c search_path=pqgotest'", "search_path", "pqgotest", ResultSuccess},
- // pq should override client_encoding in this case
- {"options='-c client_encoding=SQL_ASCII'", "client_encoding", "UTF8", ResultSuccess},
- // allow client_encoding to be set explicitly
- {"client_encoding=UTF8", "client_encoding", "UTF8", ResultSuccess},
- // test a runtime parameter not supported by libpq
- {"work_mem='139kB'", "work_mem", "139kB", ResultSuccess},
- // test fallback_application_name
- {"application_name=foo fallback_application_name=bar", "application_name", "foo", ResultSuccess},
- {"application_name='' fallback_application_name=bar", "application_name", "", ResultSuccess},
- {"fallback_application_name=bar", "application_name", "bar", ResultSuccess},
- }
-
- for _, test := range tests {
- db, err := openTestConnConninfo(test.conninfo)
- if err != nil {
- t.Fatal(err)
- }
-
- // application_name didn't exist before 9.0
- if test.param == "application_name" && getServerVersion(t, db) < 90000 {
- db.Close()
- continue
- }
-
- tryGetParameterValue := func() (value string, outcome RuntimeTestResult) {
- defer db.Close()
- row := db.QueryRow("SELECT current_setting($1)", test.param)
- err = row.Scan(&value)
- if err != nil {
- return "", ResultError
- }
- return value, ResultSuccess
- }
-
- value, outcome := tryGetParameterValue()
- if outcome != test.expectedOutcome && outcome == ResultError {
- t.Fatalf("%v: unexpected error: %v", test.conninfo, err)
- }
- if outcome != test.expectedOutcome {
- t.Fatalf("unexpected outcome %v (was expecting %v) for conninfo \"%s\"",
- outcome, test.expectedOutcome, test.conninfo)
- }
- if value != test.expected {
- t.Fatalf("bad value for %s: got %s, want %s with conninfo \"%s\"",
- test.param, value, test.expected, test.conninfo)
- }
- }
-}
-
-func TestIsUTF8(t *testing.T) {
- var cases = []struct {
- name string
- want bool
- }{
- {"unicode", true},
- {"utf-8", true},
- {"utf_8", true},
- {"UTF-8", true},
- {"UTF8", true},
- {"utf8", true},
- {"u n ic_ode", true},
- {"ut_f%8", true},
- {"ubf8", false},
- {"punycode", false},
- }
-
- for _, test := range cases {
- if g := isUTF8(test.name); g != test.want {
- t.Errorf("isUTF8(%q) = %v want %v", test.name, g, test.want)
- }
- }
-}
-
-func TestQuoteIdentifier(t *testing.T) {
- var cases = []struct {
- input string
- want string
- }{
- {`foo`, `"foo"`},
- {`foo bar baz`, `"foo bar baz"`},
- {`foo"bar`, `"foo""bar"`},
- {"foo\x00bar", `"foo"`},
- {"\x00foo", `""`},
- }
-
- for _, test := range cases {
- got := QuoteIdentifier(test.input)
- if got != test.want {
- t.Errorf("QuoteIdentifier(%q) = %v want %v", test.input, got, test.want)
- }
- }
-}
diff --git a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/copy.go b/experimental/traffic_ops_auth/vendor/github.com/lib/pq/copy.go
deleted file mode 100644
index 101f111..0000000
--- a/experimental/traffic_ops_auth/vendor/github.com/lib/pq/copy.go
+++ /dev/null
@@ -1,267 +0,0 @@
-package pq
-
-import (
- "database/sql/driver"
- "encoding/binary"
- "errors"
- "fmt"
- "sync"
-)
-
-var (
- errCopyInClosed = errors.New("pq: copyin statement has already been closed")
- errBinaryCopyNotSupported = errors.New("pq: only text format supported for COPY")
- errCopyToNotSupported = errors.New("pq: COPY TO is not supported")
- errCopyNotSupportedOutsideTxn = errors.New("pq: COPY is only allowed inside a transaction")
-)
-
-// CopyIn creates a COPY FROM statement which can be prepared with
-// Tx.Prepare(). The target table should be visible in search_path.
-func CopyIn(table string, columns ...string) string {
- stmt := "COPY " + QuoteIdentifier(table) + " ("
- for i, col := range columns {
- if i != 0 {
- stmt += ", "
- }
- stmt += QuoteIdentifier(col)
- }
- stmt += ") FROM STDIN"
- return stmt
-}
-
-// CopyInSchema creates a COPY FROM statement which can be prepared with
-// Tx.Prepare().
-func CopyInSchema(schema, table string, columns ...string) string {
- stmt := "COPY " + QuoteIdentifier(schema) + "." + QuoteIdentifier(table) + " ("
- for i, col := range columns {
- if i != 0 {
- stmt += ", "
- }
- stmt += QuoteIdentifier(col)
- }
- stmt += ") FROM STDIN"
- return stmt
-}
-
-type copyin struct {
- cn *conn
- buffer []byte
- rowData chan []byte
- done chan bool
-
- closed bool
-
- sync.Mutex // guards err
- err error
-}
-
-const ciBufferSize = 64 * 1024
-
-// flush buffer before the buffer is filled up and needs reallocation
-const ciBufferFlushSize = 63 * 1024
-
-func (cn *conn) prepareCopyIn(q string) (_ driver.Stmt, err error) {
- if !cn.isInTransaction() {
- return nil, errCopyNotSupportedOutsideTxn
- }
-
- ci := ©in{
- cn: cn,
- buffer: make([]byte, 0, ciBufferSize),
- rowData: make(chan []byte),
- done: make(chan bool, 1),
- }
- // add CopyData identifier + 4 bytes for message length
- ci.buffer = append(ci.buffer, 'd', 0, 0, 0, 0)
-
- b := cn.writeBuf('Q')
- b.string(q)
- cn.send(b)
-
-awaitCopyInResponse:
- for {
- t, r := cn.recv1()
- switch t {
- case 'G':
- if r.byte() != 0 {
- err = errBinaryCopyNotSupported
- break awaitCopyInResponse
- }
- go ci.resploop()
- return ci, nil
- case 'H':
- err = errCopyToNotSupported
- break awaitCopyInResponse
- case 'E':
- err = parseError(r)
- case 'Z':
- if err == nil {
- cn.bad = true
- errorf("unexpected ReadyForQuery in response to COPY")
- }
- cn.processReadyForQuery(r)
- return nil, err
- default:
- cn.bad = true
- errorf("unknown response for copy query: %q", t)
- }
- }
-
- // something went wrong, abort COPY before we return
- b = cn.writeBuf('f')
- b.string(err.Error())
- cn.send(b)
-
- for {
- t, r := cn.recv1()
- switch t {
- case 'c', 'C', 'E':
- case 'Z':
- // correctly aborted, we're done
- cn.processReadyForQuery(r)
- return nil, err
- default:
- cn.bad = true
- errorf("unknown response for CopyFail: %q", t)
- }
- }
-}
-
-func (ci *copyin) flush(buf []byte) {
- // set message length (without message identifier)
- binary.BigEndian.PutUint32(buf[1:], uint32(len(buf)-1))
-
- _, err := ci.cn.c.Write(buf)
- if err != nil {
- panic(err)
- }
-}
-
-func (ci *copyin) resploop() {
- for {
- var r readBuf
- t, err := ci.cn.recvMessage(&r)
- if err != nil {
- ci.cn.bad = true
- ci.setError(err)
- ci.done <- true
- return
- }
- switch t {
- case 'C':
- // complete
- case 'N':
- // NoticeResponse
- case 'Z':
- ci.cn.processReadyForQuery(&r)
- ci.done <- true
- return
- case 'E':
- err := parseError(&r)
- ci.setError(err)
- default:
- ci.cn.bad = true
- ci.setError(fmt.Errorf("unknown response during CopyIn: %q", t))
- ci.done <- true
- return
- }
- }
-}
-
-func (ci *copyin) isErrorSet() bool {
- ci.Lock()
- isSet := (ci.err != nil)
- ci.Unlock()
- return isSet
-}
-
-// setError() sets ci.err if one has not been set already. Caller must not be
-// holding ci.Mutex.
-func (ci *copyin) setError(err error) {
- ci.Lock()
- if ci.err == nil {
- ci.err = err
- }
- ci.Unlock()
-}
-
-func (ci *copyin) NumInput() int {
- return -1
-}
-
-func (ci *copyin) Query(v []driver.Value) (r driver.Rows, err error) {
- return nil, ErrNotSupported
-}
-
-// Exec inserts values into the COPY stream. The insert is asynchronous
-// and Exec can return errors from previous Exec calls to the same
-// COPY stmt.
-//
-// You need to call Exec(nil) to sync the COPY stream and to get any
-// errors from pending data, since Stmt.Close() doesn't return errors
-// to the user.
-func (ci *copyin) Exec(v []driver.Value) (r driver.Result, err error) {
- if ci.closed {
- return nil, errCopyInClosed
- }
-
- if ci.cn.bad {
- return nil, driver.ErrBadConn
- }
- defer ci.cn.errRecover(&err)
-
- if ci.isErrorSet() {
- return nil, ci.err
- }
-
- if len(v) == 0 {
- return nil, ci.Close()
- }
-
- numValues := len(v)
- for i, value := range v {
- ci.buffer = appendEncodedText(&ci.cn.parameterStatus, ci.buffer, value)
- if i < numValues-1 {
- ci.buffer = append(ci.buffer, '\t')
- }
- }
-
- ci.buffer = append(ci.buffer, '\n')
-
- if len(ci.buffer) > ciBufferFlushSize {
- ci.flush(ci.buffer)
- // reset buffer, keep bytes for message identifier and length
- ci.buffer = ci.buffer[:5]
- }
-
- return driver.RowsAffected(0), nil
-}
-
... 439654 lines suppressed ...