├── .github ├── CODE_OF_CONDUCT.md ├── ISSUE_TEMPLATE.md ├── SUPPORT.md └── workflows │ └── release.yml ├── .gitignore ├── .go-version ├── .goreleaser.yml ├── .travis.yml ├── CHANGELOG.md ├── GNUmakefile ├── LICENSE ├── README.md ├── go.mod ├── go.sum ├── main.go ├── mysql ├── data_source_tables.go ├── data_source_tables_test.go ├── provider.go ├── provider_test.go ├── resource_database.go ├── resource_database_test.go ├── resource_grant.go ├── resource_grant_test.go ├── resource_role.go ├── resource_role_test.go ├── resource_sql.go ├── resource_user.go ├── resource_user_password.go ├── resource_user_password_test.go ├── resource_user_test.go └── utils.go ├── scripts ├── changelog-links.sh ├── errcheck.sh ├── gofmtcheck.sh └── gogetcookie.sh ├── vendor ├── cloud.google.com │ └── go │ │ ├── LICENSE │ │ ├── compute │ │ └── metadata │ │ │ └── metadata.go │ │ ├── iam │ │ └── iam.go │ │ ├── internal │ │ ├── annotate.go │ │ ├── optional │ │ │ └── optional.go │ │ ├── retry.go │ │ ├── trace │ │ │ └── trace.go │ │ └── version │ │ │ ├── update_version.sh │ │ │ └── version.go │ │ └── storage │ │ ├── README.md │ │ ├── acl.go │ │ ├── bucket.go │ │ ├── copy.go │ │ ├── doc.go │ │ ├── go110.go │ │ ├── hmac.go │ │ ├── iam.go │ │ ├── invoke.go │ │ ├── not_go110.go │ │ ├── notifications.go │ │ ├── reader.go │ │ ├── storage.go │ │ ├── storage.replay │ │ └── writer.go ├── github.com │ ├── agext │ │ └── levenshtein │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── DCO │ │ │ ├── LICENSE │ │ │ ├── MAINTAINERS │ │ │ ├── NOTICE │ │ │ ├── README.md │ │ │ ├── go.mod │ │ │ ├── levenshtein.go │ │ │ ├── params.go │ │ │ └── test.sh │ ├── apparentlymart │ │ ├── go-cidr │ │ │ ├── LICENSE │ │ │ └── cidr │ │ │ │ ├── cidr.go │ │ │ │ └── wrangling.go │ │ └── go-textseg │ │ │ ├── LICENSE │ │ │ └── textseg │ │ │ ├── all_tokens.go │ │ │ ├── generate.go │ │ │ ├── grapheme_clusters.go │ │ │ ├── grapheme_clusters.rl │ │ │ ├── grapheme_clusters_table.rl │ │ │ ├── tables.go │ │ │ ├── unicode2ragel.rb │ │ │ └── utf8_seqs.go │ ├── armon │ │ └── go-radix │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── go.mod │ │ │ └── radix.go │ ├── aws │ │ └── aws-sdk-go │ │ │ ├── LICENSE.txt │ │ │ ├── NOTICE.txt │ │ │ ├── aws │ │ │ ├── awserr │ │ │ │ ├── error.go │ │ │ │ └── types.go │ │ │ ├── awsutil │ │ │ │ ├── copy.go │ │ │ │ ├── equal.go │ │ │ │ ├── path_value.go │ │ │ │ ├── prettify.go │ │ │ │ └── string_value.go │ │ │ ├── client │ │ │ │ ├── client.go │ │ │ │ ├── default_retryer.go │ │ │ │ ├── logger.go │ │ │ │ └── metadata │ │ │ │ │ └── client_info.go │ │ │ ├── config.go │ │ │ ├── context_1_5.go │ │ │ ├── context_1_9.go │ │ │ ├── context_background_1_5.go │ │ │ ├── context_background_1_7.go │ │ │ ├── context_sleep.go │ │ │ ├── convert_types.go │ │ │ ├── corehandlers │ │ │ │ ├── handlers.go │ │ │ │ ├── param_validator.go │ │ │ │ └── user_agent.go │ │ │ ├── credentials │ │ │ │ ├── chain_provider.go │ │ │ │ ├── credentials.go │ │ │ │ ├── ec2rolecreds │ │ │ │ │ └── ec2_role_provider.go │ │ │ │ ├── endpointcreds │ │ │ │ │ └── provider.go │ │ │ │ ├── env_provider.go │ │ │ │ ├── example.ini │ │ │ │ ├── processcreds │ │ │ │ │ └── provider.go │ │ │ │ ├── shared_credentials_provider.go │ │ │ │ ├── static_provider.go │ │ │ │ └── stscreds │ │ │ │ │ └── assume_role_provider.go │ │ │ ├── csm │ │ │ │ ├── doc.go │ │ │ │ ├── enable.go │ │ │ │ ├── metric.go │ │ │ │ ├── metric_chan.go │ │ │ │ ├── metric_exception.go │ │ │ │ └── reporter.go │ │ │ ├── defaults │ │ │ │ ├── defaults.go │ │ │ │ └── shared_config.go │ │ │ ├── doc.go │ │ │ ├── ec2metadata │ │ │ │ ├── api.go │ │ │ │ └── service.go │ │ │ ├── endpoints │ │ │ │ ├── decode.go │ │ │ │ ├── defaults.go │ │ │ │ ├── dep_service_ids.go │ │ │ │ ├── doc.go │ │ │ │ ├── endpoints.go │ │ │ │ ├── v3model.go │ │ │ │ └── v3model_codegen.go │ │ │ ├── errors.go │ │ │ ├── jsonvalue.go │ │ │ ├── logger.go │ │ │ ├── request │ │ │ │ ├── connection_reset_error.go │ │ │ │ ├── connection_reset_error_other.go │ │ │ │ ├── handlers.go │ │ │ │ ├── http_request.go │ │ │ │ ├── offset_reader.go │ │ │ │ ├── request.go │ │ │ │ ├── request_1_7.go │ │ │ │ ├── request_1_8.go │ │ │ │ ├── request_context.go │ │ │ │ ├── request_context_1_6.go │ │ │ │ ├── request_pagination.go │ │ │ │ ├── retryer.go │ │ │ │ ├── timeout_read_closer.go │ │ │ │ ├── validation.go │ │ │ │ └── waiter.go │ │ │ ├── session │ │ │ │ ├── cabundle_transport.go │ │ │ │ ├── cabundle_transport_1_5.go │ │ │ │ ├── cabundle_transport_1_6.go │ │ │ │ ├── doc.go │ │ │ │ ├── env_config.go │ │ │ │ ├── session.go │ │ │ │ └── shared_config.go │ │ │ ├── signer │ │ │ │ └── v4 │ │ │ │ │ ├── header_rules.go │ │ │ │ │ ├── options.go │ │ │ │ │ ├── uri_path.go │ │ │ │ │ └── v4.go │ │ │ ├── types.go │ │ │ ├── url.go │ │ │ ├── url_1_7.go │ │ │ └── version.go │ │ │ ├── internal │ │ │ ├── ini │ │ │ │ ├── ast.go │ │ │ │ ├── comma_token.go │ │ │ │ ├── comment_token.go │ │ │ │ ├── doc.go │ │ │ │ ├── empty_token.go │ │ │ │ ├── expression.go │ │ │ │ ├── fuzz.go │ │ │ │ ├── ini.go │ │ │ │ ├── ini_lexer.go │ │ │ │ ├── ini_parser.go │ │ │ │ ├── literal_tokens.go │ │ │ │ ├── newline_token.go │ │ │ │ ├── number_helper.go │ │ │ │ ├── op_tokens.go │ │ │ │ ├── parse_error.go │ │ │ │ ├── parse_stack.go │ │ │ │ ├── sep_tokens.go │ │ │ │ ├── skipper.go │ │ │ │ ├── statement.go │ │ │ │ ├── value_util.go │ │ │ │ ├── visitor.go │ │ │ │ ├── walker.go │ │ │ │ └── ws_token.go │ │ │ ├── s3err │ │ │ │ └── error.go │ │ │ ├── sdkio │ │ │ │ ├── io_go1.6.go │ │ │ │ └── io_go1.7.go │ │ │ ├── sdkrand │ │ │ │ └── locked_source.go │ │ │ ├── sdkuri │ │ │ │ └── path.go │ │ │ └── shareddefaults │ │ │ │ ├── ecs_container.go │ │ │ │ └── shared_config.go │ │ │ ├── private │ │ │ └── protocol │ │ │ │ ├── eventstream │ │ │ │ ├── debug.go │ │ │ │ ├── decode.go │ │ │ │ ├── encode.go │ │ │ │ ├── error.go │ │ │ │ ├── eventstreamapi │ │ │ │ │ ├── api.go │ │ │ │ │ └── error.go │ │ │ │ ├── header.go │ │ │ │ ├── header_value.go │ │ │ │ └── message.go │ │ │ │ ├── host.go │ │ │ │ ├── host_prefix.go │ │ │ │ ├── idempotency.go │ │ │ │ ├── json │ │ │ │ └── jsonutil │ │ │ │ │ ├── build.go │ │ │ │ │ └── unmarshal.go │ │ │ │ ├── jsonvalue.go │ │ │ │ ├── payload.go │ │ │ │ ├── query │ │ │ │ ├── build.go │ │ │ │ ├── queryutil │ │ │ │ │ └── queryutil.go │ │ │ │ ├── unmarshal.go │ │ │ │ └── unmarshal_error.go │ │ │ │ ├── rest │ │ │ │ ├── build.go │ │ │ │ ├── payload.go │ │ │ │ └── unmarshal.go │ │ │ │ ├── restxml │ │ │ │ └── restxml.go │ │ │ │ ├── timestamp.go │ │ │ │ ├── unmarshal.go │ │ │ │ └── xml │ │ │ │ └── xmlutil │ │ │ │ ├── build.go │ │ │ │ ├── unmarshal.go │ │ │ │ └── xml_to_struct.go │ │ │ └── service │ │ │ ├── s3 │ │ │ ├── api.go │ │ │ ├── body_hash.go │ │ │ ├── bucket_location.go │ │ │ ├── customizations.go │ │ │ ├── doc.go │ │ │ ├── doc_custom.go │ │ │ ├── errors.go │ │ │ ├── host_style_bucket.go │ │ │ ├── platform_handlers.go │ │ │ ├── platform_handlers_go1.6.go │ │ │ ├── service.go │ │ │ ├── sse.go │ │ │ ├── statusok_error.go │ │ │ ├── unmarshal_error.go │ │ │ └── waiters.go │ │ │ └── sts │ │ │ ├── api.go │ │ │ ├── doc.go │ │ │ ├── errors.go │ │ │ └── service.go │ ├── bgentry │ │ ├── go-netrc │ │ │ ├── LICENSE │ │ │ └── netrc │ │ │ │ └── netrc.go │ │ └── speakeasy │ │ │ ├── .gitignore │ │ │ ├── LICENSE │ │ │ ├── LICENSE_WINDOWS │ │ │ ├── Readme.md │ │ │ ├── speakeasy.go │ │ │ ├── speakeasy_unix.go │ │ │ └── speakeasy_windows.go │ ├── davecgh │ │ └── go-spew │ │ │ ├── LICENSE │ │ │ └── spew │ │ │ ├── bypass.go │ │ │ ├── bypasssafe.go │ │ │ ├── common.go │ │ │ ├── config.go │ │ │ ├── doc.go │ │ │ ├── dump.go │ │ │ ├── format.go │ │ │ └── spew.go │ ├── fatih │ │ └── color │ │ │ ├── .travis.yml │ │ │ ├── Gopkg.lock │ │ │ ├── Gopkg.toml │ │ │ ├── LICENSE.md │ │ │ ├── README.md │ │ │ ├── color.go │ │ │ └── doc.go │ ├── go-sql-driver │ │ └── mysql │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── AUTHORS │ │ │ ├── CHANGELOG.md │ │ │ ├── CONTRIBUTING.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── appengine.go │ │ │ ├── auth.go │ │ │ ├── buffer.go │ │ │ ├── collations.go │ │ │ ├── connection.go │ │ │ ├── connection_go18.go │ │ │ ├── const.go │ │ │ ├── driver.go │ │ │ ├── dsn.go │ │ │ ├── errors.go │ │ │ ├── fields.go │ │ │ ├── infile.go │ │ │ ├── packets.go │ │ │ ├── result.go │ │ │ ├── rows.go │ │ │ ├── statement.go │ │ │ ├── transaction.go │ │ │ ├── utils.go │ │ │ ├── utils_go17.go │ │ │ └── utils_go18.go │ ├── gofrs │ │ └── uuid │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── codec.go │ │ │ ├── fuzz.go │ │ │ ├── generator.go │ │ │ ├── sql.go │ │ │ └── uuid.go │ ├── golang │ │ ├── protobuf │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ ├── LICENSE │ │ │ ├── proto │ │ │ │ ├── clone.go │ │ │ │ ├── decode.go │ │ │ │ ├── deprecated.go │ │ │ │ ├── discard.go │ │ │ │ ├── encode.go │ │ │ │ ├── equal.go │ │ │ │ ├── extensions.go │ │ │ │ ├── lib.go │ │ │ │ ├── message_set.go │ │ │ │ ├── pointer_reflect.go │ │ │ │ ├── pointer_unsafe.go │ │ │ │ ├── properties.go │ │ │ │ ├── table_marshal.go │ │ │ │ ├── table_merge.go │ │ │ │ ├── table_unmarshal.go │ │ │ │ ├── text.go │ │ │ │ └── text_parser.go │ │ │ ├── protoc-gen-go │ │ │ │ └── descriptor │ │ │ │ │ ├── descriptor.pb.go │ │ │ │ │ └── descriptor.proto │ │ │ └── ptypes │ │ │ │ ├── any.go │ │ │ │ ├── any │ │ │ │ ├── any.pb.go │ │ │ │ └── any.proto │ │ │ │ ├── doc.go │ │ │ │ ├── duration.go │ │ │ │ ├── duration │ │ │ │ ├── duration.pb.go │ │ │ │ └── duration.proto │ │ │ │ ├── timestamp.go │ │ │ │ └── timestamp │ │ │ │ ├── timestamp.pb.go │ │ │ │ └── timestamp.proto │ │ └── snappy │ │ │ ├── .gitignore │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ ├── LICENSE │ │ │ ├── README │ │ │ ├── decode.go │ │ │ ├── decode_amd64.go │ │ │ ├── decode_amd64.s │ │ │ ├── decode_other.go │ │ │ ├── encode.go │ │ │ ├── encode_amd64.go │ │ │ ├── encode_amd64.s │ │ │ ├── encode_other.go │ │ │ ├── go.mod │ │ │ └── snappy.go │ ├── google │ │ ├── go-cmp │ │ │ ├── LICENSE │ │ │ └── cmp │ │ │ │ ├── compare.go │ │ │ │ ├── export_panic.go │ │ │ │ ├── export_unsafe.go │ │ │ │ ├── internal │ │ │ │ ├── diff │ │ │ │ │ ├── debug_disable.go │ │ │ │ │ ├── debug_enable.go │ │ │ │ │ └── diff.go │ │ │ │ ├── flags │ │ │ │ │ ├── flags.go │ │ │ │ │ ├── toolchain_legacy.go │ │ │ │ │ └── toolchain_recent.go │ │ │ │ ├── function │ │ │ │ │ └── func.go │ │ │ │ └── value │ │ │ │ │ ├── pointer_purego.go │ │ │ │ │ ├── pointer_unsafe.go │ │ │ │ │ ├── sort.go │ │ │ │ │ └── zero.go │ │ │ │ ├── options.go │ │ │ │ ├── path.go │ │ │ │ ├── report.go │ │ │ │ ├── report_compare.go │ │ │ │ ├── report_reflect.go │ │ │ │ ├── report_slices.go │ │ │ │ ├── report_text.go │ │ │ │ └── report_value.go │ │ └── uuid │ │ │ ├── .travis.yml │ │ │ ├── CONTRIBUTING.md │ │ │ ├── CONTRIBUTORS │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── dce.go │ │ │ ├── doc.go │ │ │ ├── go.mod │ │ │ ├── hash.go │ │ │ ├── marshal.go │ │ │ ├── node.go │ │ │ ├── node_js.go │ │ │ ├── node_net.go │ │ │ ├── sql.go │ │ │ ├── time.go │ │ │ ├── util.go │ │ │ ├── uuid.go │ │ │ ├── version1.go │ │ │ └── version4.go │ ├── googleapis │ │ └── gax-go │ │ │ └── v2 │ │ │ ├── LICENSE │ │ │ ├── call_option.go │ │ │ ├── gax.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── header.go │ │ │ └── invoke.go │ ├── hashicorp │ │ ├── errwrap │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── errwrap.go │ │ │ └── go.mod │ │ ├── go-cleanhttp │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── cleanhttp.go │ │ │ ├── doc.go │ │ │ ├── go.mod │ │ │ └── handlers.go │ │ ├── go-getter │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── appveyor.yml │ │ │ ├── checksum.go │ │ │ ├── client.go │ │ │ ├── client_mode.go │ │ │ ├── client_option.go │ │ │ ├── client_option_progress.go │ │ │ ├── common.go │ │ │ ├── copy_dir.go │ │ │ ├── decompress.go │ │ │ ├── decompress_bzip2.go │ │ │ ├── decompress_gzip.go │ │ │ ├── decompress_tar.go │ │ │ ├── decompress_tbz2.go │ │ │ ├── decompress_testing.go │ │ │ ├── decompress_tgz.go │ │ │ ├── decompress_txz.go │ │ │ ├── decompress_xz.go │ │ │ ├── decompress_zip.go │ │ │ ├── detect.go │ │ │ ├── detect_bitbucket.go │ │ │ ├── detect_file.go │ │ │ ├── detect_gcs.go │ │ │ ├── detect_git.go │ │ │ ├── detect_github.go │ │ │ ├── detect_s3.go │ │ │ ├── detect_ssh.go │ │ │ ├── folder_storage.go │ │ │ ├── get.go │ │ │ ├── get_base.go │ │ │ ├── get_file.go │ │ │ ├── get_file_copy.go │ │ │ ├── get_file_unix.go │ │ │ ├── get_file_windows.go │ │ │ ├── get_gcs.go │ │ │ ├── get_git.go │ │ │ ├── get_hg.go │ │ │ ├── get_http.go │ │ │ ├── get_mock.go │ │ │ ├── get_s3.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── helper │ │ │ │ └── url │ │ │ │ │ ├── url.go │ │ │ │ │ ├── url_unix.go │ │ │ │ │ └── url_windows.go │ │ │ ├── netrc.go │ │ │ ├── source.go │ │ │ └── storage.go │ │ ├── go-hclog │ │ │ ├── .gitignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── context.go │ │ │ ├── global.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── intlogger.go │ │ │ ├── logger.go │ │ │ ├── nulllogger.go │ │ │ ├── stacktrace.go │ │ │ ├── stdlog.go │ │ │ └── writer.go │ │ ├── go-multierror │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── append.go │ │ │ ├── flatten.go │ │ │ ├── format.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── multierror.go │ │ │ ├── prefix.go │ │ │ └── sort.go │ │ ├── go-plugin │ │ │ ├── .gitignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── client.go │ │ │ ├── discover.go │ │ │ ├── error.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── grpc_broker.go │ │ │ ├── grpc_client.go │ │ │ ├── grpc_controller.go │ │ │ ├── grpc_server.go │ │ │ ├── internal │ │ │ │ └── plugin │ │ │ │ │ ├── gen.go │ │ │ │ │ ├── grpc_broker.pb.go │ │ │ │ │ ├── grpc_broker.proto │ │ │ │ │ ├── grpc_controller.pb.go │ │ │ │ │ └── grpc_controller.proto │ │ │ ├── log_entry.go │ │ │ ├── mtls.go │ │ │ ├── mux_broker.go │ │ │ ├── plugin.go │ │ │ ├── process.go │ │ │ ├── process_posix.go │ │ │ ├── process_windows.go │ │ │ ├── protocol.go │ │ │ ├── rpc_client.go │ │ │ ├── rpc_server.go │ │ │ ├── server.go │ │ │ ├── server_mux.go │ │ │ ├── stream.go │ │ │ └── testing.go │ │ ├── go-safetemp │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── go.mod │ │ │ └── safetemp.go │ │ ├── go-uuid │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── go.mod │ │ │ └── uuid.go │ │ ├── go-version │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── constraint.go │ │ │ ├── go.mod │ │ │ ├── version.go │ │ │ └── version_collection.go │ │ ├── golang-lru │ │ │ ├── LICENSE │ │ │ └── simplelru │ │ │ │ ├── lru.go │ │ │ │ └── lru_interface.go │ │ ├── hcl │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── appveyor.yml │ │ │ ├── decoder.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── hcl.go │ │ │ ├── hcl │ │ │ │ ├── ast │ │ │ │ │ ├── ast.go │ │ │ │ │ └── walk.go │ │ │ │ ├── parser │ │ │ │ │ ├── error.go │ │ │ │ │ └── parser.go │ │ │ │ ├── scanner │ │ │ │ │ └── scanner.go │ │ │ │ ├── strconv │ │ │ │ │ └── quote.go │ │ │ │ └── token │ │ │ │ │ ├── position.go │ │ │ │ │ └── token.go │ │ │ ├── json │ │ │ │ ├── parser │ │ │ │ │ ├── flatten.go │ │ │ │ │ └── parser.go │ │ │ │ ├── scanner │ │ │ │ │ └── scanner.go │ │ │ │ └── token │ │ │ │ │ ├── position.go │ │ │ │ │ └── token.go │ │ │ ├── lex.go │ │ │ └── parse.go │ │ ├── hcl2 │ │ │ ├── LICENSE │ │ │ ├── ext │ │ │ │ ├── dynblock │ │ │ │ │ ├── README.md │ │ │ │ │ ├── expand_body.go │ │ │ │ │ ├── expand_spec.go │ │ │ │ │ ├── expr_wrap.go │ │ │ │ │ ├── iteration.go │ │ │ │ │ ├── public.go │ │ │ │ │ ├── schema.go │ │ │ │ │ ├── unknown_body.go │ │ │ │ │ ├── variables.go │ │ │ │ │ └── variables_hcldec.go │ │ │ │ └── typeexpr │ │ │ │ │ ├── README.md │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── get_type.go │ │ │ │ │ └── public.go │ │ │ ├── gohcl │ │ │ │ ├── decode.go │ │ │ │ ├── doc.go │ │ │ │ ├── encode.go │ │ │ │ ├── schema.go │ │ │ │ └── types.go │ │ │ ├── hcl │ │ │ │ ├── diagnostic.go │ │ │ │ ├── diagnostic_text.go │ │ │ │ ├── didyoumean.go │ │ │ │ ├── doc.go │ │ │ │ ├── eval_context.go │ │ │ │ ├── expr_call.go │ │ │ │ ├── expr_list.go │ │ │ │ ├── expr_map.go │ │ │ │ ├── expr_unwrap.go │ │ │ │ ├── hclsyntax │ │ │ │ │ ├── diagnostics.go │ │ │ │ │ ├── didyoumean.go │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── expression.go │ │ │ │ │ ├── expression_ops.go │ │ │ │ │ ├── expression_template.go │ │ │ │ │ ├── expression_vars.go │ │ │ │ │ ├── file.go │ │ │ │ │ ├── generate.go │ │ │ │ │ ├── keywords.go │ │ │ │ │ ├── navigation.go │ │ │ │ │ ├── node.go │ │ │ │ │ ├── parser.go │ │ │ │ │ ├── parser_template.go │ │ │ │ │ ├── parser_traversal.go │ │ │ │ │ ├── peeker.go │ │ │ │ │ ├── public.go │ │ │ │ │ ├── scan_string_lit.go │ │ │ │ │ ├── scan_string_lit.rl │ │ │ │ │ ├── scan_tokens.go │ │ │ │ │ ├── scan_tokens.rl │ │ │ │ │ ├── spec.md │ │ │ │ │ ├── structure.go │ │ │ │ │ ├── structure_at_pos.go │ │ │ │ │ ├── token.go │ │ │ │ │ ├── token_type_string.go │ │ │ │ │ ├── unicode2ragel.rb │ │ │ │ │ ├── unicode_derived.rl │ │ │ │ │ ├── variables.go │ │ │ │ │ └── walk.go │ │ │ │ ├── json │ │ │ │ │ ├── ast.go │ │ │ │ │ ├── didyoumean.go │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── navigation.go │ │ │ │ │ ├── parser.go │ │ │ │ │ ├── peeker.go │ │ │ │ │ ├── public.go │ │ │ │ │ ├── scanner.go │ │ │ │ │ ├── spec.md │ │ │ │ │ ├── structure.go │ │ │ │ │ └── tokentype_string.go │ │ │ │ ├── merged.go │ │ │ │ ├── ops.go │ │ │ │ ├── pos.go │ │ │ │ ├── pos_scanner.go │ │ │ │ ├── schema.go │ │ │ │ ├── spec.md │ │ │ │ ├── static_expr.go │ │ │ │ ├── structure.go │ │ │ │ ├── structure_at_pos.go │ │ │ │ ├── traversal.go │ │ │ │ └── traversal_for_expr.go │ │ │ ├── hcldec │ │ │ │ ├── block_labels.go │ │ │ │ ├── decode.go │ │ │ │ ├── doc.go │ │ │ │ ├── gob.go │ │ │ │ ├── public.go │ │ │ │ ├── schema.go │ │ │ │ ├── spec.go │ │ │ │ └── variables.go │ │ │ ├── hcled │ │ │ │ ├── doc.go │ │ │ │ └── navigation.go │ │ │ ├── hclparse │ │ │ │ └── parser.go │ │ │ └── hclwrite │ │ │ │ ├── ast.go │ │ │ │ ├── ast_attribute.go │ │ │ │ ├── ast_block.go │ │ │ │ ├── ast_body.go │ │ │ │ ├── ast_expression.go │ │ │ │ ├── doc.go │ │ │ │ ├── format.go │ │ │ │ ├── generate.go │ │ │ │ ├── native_node_sorter.go │ │ │ │ ├── node.go │ │ │ │ ├── parser.go │ │ │ │ ├── public.go │ │ │ │ └── tokens.go │ │ ├── hil │ │ │ ├── LICENSE │ │ │ └── ast │ │ │ │ ├── arithmetic.go │ │ │ │ ├── arithmetic_op.go │ │ │ │ ├── ast.go │ │ │ │ ├── call.go │ │ │ │ ├── conditional.go │ │ │ │ ├── index.go │ │ │ │ ├── literal.go │ │ │ │ ├── output.go │ │ │ │ ├── scope.go │ │ │ │ ├── stack.go │ │ │ │ ├── type_string.go │ │ │ │ ├── unknown.go │ │ │ │ ├── variable_access.go │ │ │ │ └── variables_helper.go │ │ ├── logutils │ │ │ ├── .gitignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── go.mod │ │ │ └── level.go │ │ ├── terraform-config-inspect │ │ │ ├── LICENSE │ │ │ └── tfconfig │ │ │ │ ├── diagnostic.go │ │ │ │ ├── doc.go │ │ │ │ ├── load.go │ │ │ │ ├── load_hcl.go │ │ │ │ ├── load_legacy.go │ │ │ │ ├── module.go │ │ │ │ ├── module_call.go │ │ │ │ ├── output.go │ │ │ │ ├── provider_ref.go │ │ │ │ ├── resource.go │ │ │ │ ├── schema.go │ │ │ │ ├── source_pos.go │ │ │ │ └── variable.go │ │ ├── terraform-plugin-sdk │ │ │ ├── LICENSE │ │ │ ├── helper │ │ │ │ ├── encryption │ │ │ │ │ └── encryption.go │ │ │ │ ├── hashcode │ │ │ │ │ └── hashcode.go │ │ │ │ ├── logging │ │ │ │ │ ├── logging.go │ │ │ │ │ └── transport.go │ │ │ │ ├── resource │ │ │ │ │ ├── error.go │ │ │ │ │ ├── grpc_test_provider.go │ │ │ │ │ ├── id.go │ │ │ │ │ ├── map.go │ │ │ │ │ ├── resource.go │ │ │ │ │ ├── state.go │ │ │ │ │ ├── state_shim.go │ │ │ │ │ ├── testing.go │ │ │ │ │ ├── testing_config.go │ │ │ │ │ ├── testing_import_state.go │ │ │ │ │ └── wait.go │ │ │ │ ├── schema │ │ │ │ │ ├── README.md │ │ │ │ │ ├── backend.go │ │ │ │ │ ├── core_schema.go │ │ │ │ │ ├── data_source_resource_shim.go │ │ │ │ │ ├── equal.go │ │ │ │ │ ├── field_reader.go │ │ │ │ │ ├── field_reader_config.go │ │ │ │ │ ├── field_reader_diff.go │ │ │ │ │ ├── field_reader_map.go │ │ │ │ │ ├── field_reader_multi.go │ │ │ │ │ ├── field_writer.go │ │ │ │ │ ├── field_writer_map.go │ │ │ │ │ ├── getsource_string.go │ │ │ │ │ ├── provider.go │ │ │ │ │ ├── resource.go │ │ │ │ │ ├── resource_data.go │ │ │ │ │ ├── resource_data_get_source.go │ │ │ │ │ ├── resource_diff.go │ │ │ │ │ ├── resource_importer.go │ │ │ │ │ ├── resource_timeout.go │ │ │ │ │ ├── schema.go │ │ │ │ │ ├── serialize.go │ │ │ │ │ ├── set.go │ │ │ │ │ ├── shims.go │ │ │ │ │ ├── testing.go │ │ │ │ │ ├── valuetype.go │ │ │ │ │ └── valuetype_string.go │ │ │ │ ├── structure │ │ │ │ │ ├── expand_json.go │ │ │ │ │ ├── flatten_json.go │ │ │ │ │ ├── normalize_json.go │ │ │ │ │ └── suppress_json_diff.go │ │ │ │ └── validation │ │ │ │ │ └── validation.go │ │ │ ├── internal │ │ │ │ ├── addrs │ │ │ │ │ ├── count_attr.go │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── for_each_attr.go │ │ │ │ │ ├── input_variable.go │ │ │ │ │ ├── instance_key.go │ │ │ │ │ ├── local_value.go │ │ │ │ │ ├── module.go │ │ │ │ │ ├── module_call.go │ │ │ │ │ ├── module_instance.go │ │ │ │ │ ├── output_value.go │ │ │ │ │ ├── parse_ref.go │ │ │ │ │ ├── parse_target.go │ │ │ │ │ ├── path_attr.go │ │ │ │ │ ├── provider_config.go │ │ │ │ │ ├── provider_type.go │ │ │ │ │ ├── referenceable.go │ │ │ │ │ ├── resource.go │ │ │ │ │ ├── resource_phase.go │ │ │ │ │ ├── resourcemode_string.go │ │ │ │ │ ├── self.go │ │ │ │ │ ├── targetable.go │ │ │ │ │ └── terraform_attr.go │ │ │ │ ├── command │ │ │ │ │ └── format │ │ │ │ │ │ ├── diagnostic.go │ │ │ │ │ │ ├── diff.go │ │ │ │ │ │ ├── format.go │ │ │ │ │ │ ├── object_id.go │ │ │ │ │ │ ├── plan.go │ │ │ │ │ │ └── state.go │ │ │ │ ├── configs │ │ │ │ │ ├── backend.go │ │ │ │ │ ├── compat_shim.go │ │ │ │ │ ├── config.go │ │ │ │ │ ├── config_build.go │ │ │ │ │ ├── configload │ │ │ │ │ │ ├── copy_dir.go │ │ │ │ │ │ ├── doc.go │ │ │ │ │ │ ├── inode.go │ │ │ │ │ │ ├── inode_freebsd.go │ │ │ │ │ │ ├── inode_windows.go │ │ │ │ │ │ ├── loader.go │ │ │ │ │ │ ├── loader_load.go │ │ │ │ │ │ ├── loader_snapshot.go │ │ │ │ │ │ ├── module_mgr.go │ │ │ │ │ │ └── testing.go │ │ │ │ │ ├── configschema │ │ │ │ │ │ ├── coerce_value.go │ │ │ │ │ │ ├── decoder_spec.go │ │ │ │ │ │ ├── doc.go │ │ │ │ │ │ ├── empty_value.go │ │ │ │ │ │ ├── implied_type.go │ │ │ │ │ │ ├── internal_validate.go │ │ │ │ │ │ ├── nestingmode_string.go │ │ │ │ │ │ ├── none_required.go │ │ │ │ │ │ ├── schema.go │ │ │ │ │ │ └── validate_traversal.go │ │ │ │ │ ├── depends_on.go │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── hcl2shim │ │ │ │ │ │ ├── flatmap.go │ │ │ │ │ │ ├── paths.go │ │ │ │ │ │ ├── single_attr_body.go │ │ │ │ │ │ ├── values.go │ │ │ │ │ │ └── values_equiv.go │ │ │ │ │ ├── module.go │ │ │ │ │ ├── module_call.go │ │ │ │ │ ├── module_merge.go │ │ │ │ │ ├── module_merge_body.go │ │ │ │ │ ├── named_values.go │ │ │ │ │ ├── parser.go │ │ │ │ │ ├── parser_config.go │ │ │ │ │ ├── parser_config_dir.go │ │ │ │ │ ├── parser_values.go │ │ │ │ │ ├── provider.go │ │ │ │ │ ├── provisioner.go │ │ │ │ │ ├── provisioneronfailure_string.go │ │ │ │ │ ├── provisionerwhen_string.go │ │ │ │ │ ├── resource.go │ │ │ │ │ ├── synth_body.go │ │ │ │ │ ├── util.go │ │ │ │ │ ├── variable_type_hint.go │ │ │ │ │ ├── variabletypehint_string.go │ │ │ │ │ └── version_constraint.go │ │ │ │ ├── dag │ │ │ │ │ ├── dag.go │ │ │ │ │ ├── dot.go │ │ │ │ │ ├── edge.go │ │ │ │ │ ├── graph.go │ │ │ │ │ ├── marshal.go │ │ │ │ │ ├── set.go │ │ │ │ │ ├── tarjan.go │ │ │ │ │ └── walk.go │ │ │ │ ├── earlyconfig │ │ │ │ │ ├── config.go │ │ │ │ │ ├── config_build.go │ │ │ │ │ ├── diagnostics.go │ │ │ │ │ ├── doc.go │ │ │ │ │ └── module.go │ │ │ │ ├── flatmap │ │ │ │ │ ├── expand.go │ │ │ │ │ ├── flatten.go │ │ │ │ │ └── map.go │ │ │ │ ├── helper │ │ │ │ │ ├── config │ │ │ │ │ │ ├── decode.go │ │ │ │ │ │ └── validator.go │ │ │ │ │ ├── didyoumean │ │ │ │ │ │ └── name_suggestion.go │ │ │ │ │ └── plugin │ │ │ │ │ │ ├── doc.go │ │ │ │ │ │ ├── grpc_provider.go │ │ │ │ │ │ └── unknown.go │ │ │ │ ├── httpclient │ │ │ │ │ └── client.go │ │ │ │ ├── initwd │ │ │ │ │ ├── copy_dir.go │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── from_module.go │ │ │ │ │ ├── getter.go │ │ │ │ │ ├── inode.go │ │ │ │ │ ├── inode_freebsd.go │ │ │ │ │ ├── inode_windows.go │ │ │ │ │ ├── load_config.go │ │ │ │ │ ├── module_install.go │ │ │ │ │ ├── module_install_hooks.go │ │ │ │ │ ├── testing.go │ │ │ │ │ └── version_required.go │ │ │ │ ├── lang │ │ │ │ │ ├── blocktoattr │ │ │ │ │ │ ├── doc.go │ │ │ │ │ │ ├── fixup.go │ │ │ │ │ │ ├── schema.go │ │ │ │ │ │ └── variables.go │ │ │ │ │ ├── data.go │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── eval.go │ │ │ │ │ ├── funcs │ │ │ │ │ │ ├── cidr.go │ │ │ │ │ │ ├── collection.go │ │ │ │ │ │ ├── conversion.go │ │ │ │ │ │ ├── crypto.go │ │ │ │ │ │ ├── datetime.go │ │ │ │ │ │ ├── encoding.go │ │ │ │ │ │ ├── filesystem.go │ │ │ │ │ │ ├── number.go │ │ │ │ │ │ └── string.go │ │ │ │ │ ├── functions.go │ │ │ │ │ ├── references.go │ │ │ │ │ └── scope.go │ │ │ │ ├── modsdir │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── manifest.go │ │ │ │ │ └── paths.go │ │ │ │ ├── moduledeps │ │ │ │ │ ├── dependencies.go │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── module.go │ │ │ │ │ └── provider.go │ │ │ │ ├── plans │ │ │ │ │ ├── action.go │ │ │ │ │ ├── action_string.go │ │ │ │ │ ├── changes.go │ │ │ │ │ ├── changes_src.go │ │ │ │ │ ├── changes_state.go │ │ │ │ │ ├── changes_sync.go │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── dynamic_value.go │ │ │ │ │ ├── objchange │ │ │ │ │ │ ├── all_null.go │ │ │ │ │ │ ├── compatible.go │ │ │ │ │ │ ├── doc.go │ │ │ │ │ │ ├── lcs.go │ │ │ │ │ │ ├── normalize_obj.go │ │ │ │ │ │ ├── objchange.go │ │ │ │ │ │ └── plan_valid.go │ │ │ │ │ └── plan.go │ │ │ │ ├── plugin │ │ │ │ │ ├── convert │ │ │ │ │ │ ├── diagnostics.go │ │ │ │ │ │ └── schema.go │ │ │ │ │ └── discovery │ │ │ │ │ │ ├── error.go │ │ │ │ │ │ ├── find.go │ │ │ │ │ │ ├── get.go │ │ │ │ │ │ ├── get_cache.go │ │ │ │ │ │ ├── hashicorp.go │ │ │ │ │ │ ├── meta.go │ │ │ │ │ │ ├── meta_set.go │ │ │ │ │ │ ├── requirements.go │ │ │ │ │ │ ├── signature.go │ │ │ │ │ │ ├── version.go │ │ │ │ │ │ └── version_set.go │ │ │ │ ├── providers │ │ │ │ │ ├── addressed_types.go │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── provider.go │ │ │ │ │ └── resolver.go │ │ │ │ ├── provisioners │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── factory.go │ │ │ │ │ └── provisioner.go │ │ │ │ ├── registry │ │ │ │ │ ├── client.go │ │ │ │ │ ├── errors.go │ │ │ │ │ ├── regsrc │ │ │ │ │ │ ├── friendly_host.go │ │ │ │ │ │ ├── module.go │ │ │ │ │ │ ├── regsrc.go │ │ │ │ │ │ └── terraform_provider.go │ │ │ │ │ └── response │ │ │ │ │ │ ├── module.go │ │ │ │ │ │ ├── module_list.go │ │ │ │ │ │ ├── module_provider.go │ │ │ │ │ │ ├── module_versions.go │ │ │ │ │ │ ├── pagination.go │ │ │ │ │ │ ├── provider.go │ │ │ │ │ │ ├── provider_list.go │ │ │ │ │ │ ├── redirect.go │ │ │ │ │ │ └── terraform_provider.go │ │ │ │ ├── states │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── eachmode_string.go │ │ │ │ │ ├── instance_generation.go │ │ │ │ │ ├── instance_object.go │ │ │ │ │ ├── instance_object_src.go │ │ │ │ │ ├── module.go │ │ │ │ │ ├── objectstatus_string.go │ │ │ │ │ ├── output_value.go │ │ │ │ │ ├── resource.go │ │ │ │ │ ├── state.go │ │ │ │ │ ├── state_deepcopy.go │ │ │ │ │ ├── state_equal.go │ │ │ │ │ ├── state_string.go │ │ │ │ │ ├── statefile │ │ │ │ │ │ ├── diagnostics.go │ │ │ │ │ │ ├── doc.go │ │ │ │ │ │ ├── file.go │ │ │ │ │ │ ├── marshal_equal.go │ │ │ │ │ │ ├── read.go │ │ │ │ │ │ ├── version0.go │ │ │ │ │ │ ├── version1.go │ │ │ │ │ │ ├── version1_upgrade.go │ │ │ │ │ │ ├── version2.go │ │ │ │ │ │ ├── version2_upgrade.go │ │ │ │ │ │ ├── version3.go │ │ │ │ │ │ ├── version3_upgrade.go │ │ │ │ │ │ ├── version4.go │ │ │ │ │ │ └── write.go │ │ │ │ │ └── sync.go │ │ │ │ ├── svchost │ │ │ │ │ ├── auth │ │ │ │ │ │ ├── cache.go │ │ │ │ │ │ ├── credentials.go │ │ │ │ │ │ ├── from_map.go │ │ │ │ │ │ ├── helper_program.go │ │ │ │ │ │ ├── static.go │ │ │ │ │ │ └── token_credentials.go │ │ │ │ │ ├── disco │ │ │ │ │ │ ├── disco.go │ │ │ │ │ │ └── host.go │ │ │ │ │ ├── label_iter.go │ │ │ │ │ └── svchost.go │ │ │ │ ├── tfdiags │ │ │ │ │ ├── config_traversals.go │ │ │ │ │ ├── contextual.go │ │ │ │ │ ├── diagnostic.go │ │ │ │ │ ├── diagnostic_base.go │ │ │ │ │ ├── diagnostics.go │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── error.go │ │ │ │ │ ├── hcl.go │ │ │ │ │ ├── rpc_friendly.go │ │ │ │ │ ├── severity_string.go │ │ │ │ │ ├── simple_warning.go │ │ │ │ │ ├── source_range.go │ │ │ │ │ └── sourceless.go │ │ │ │ ├── tfplugin5 │ │ │ │ │ ├── generate.sh │ │ │ │ │ ├── tfplugin5.pb.go │ │ │ │ │ └── tfplugin5.proto │ │ │ │ ├── vault │ │ │ │ │ ├── helper │ │ │ │ │ │ └── pgpkeys │ │ │ │ │ │ │ ├── encrypt_decrypt.go │ │ │ │ │ │ │ ├── flag.go │ │ │ │ │ │ │ ├── keybase.go │ │ │ │ │ │ │ └── test_keys.go │ │ │ │ │ └── sdk │ │ │ │ │ │ └── helper │ │ │ │ │ │ ├── compressutil │ │ │ │ │ │ └── compress.go │ │ │ │ │ │ └── jsonutil │ │ │ │ │ │ └── json.go │ │ │ │ └── version │ │ │ │ │ └── version.go │ │ │ ├── plugin │ │ │ │ ├── client.go │ │ │ │ ├── grpc_provider.go │ │ │ │ ├── grpc_provisioner.go │ │ │ │ ├── plugin.go │ │ │ │ ├── resource_provider.go │ │ │ │ ├── serve.go │ │ │ │ ├── ui_input.go │ │ │ │ └── ui_output.go │ │ │ └── terraform │ │ │ │ ├── context.go │ │ │ │ ├── context_components.go │ │ │ │ ├── context_graph_type.go │ │ │ │ ├── context_import.go │ │ │ │ ├── context_input.go │ │ │ │ ├── diff.go │ │ │ │ ├── edge_destroy.go │ │ │ │ ├── eval.go │ │ │ │ ├── eval_apply.go │ │ │ │ ├── eval_check_prevent_destroy.go │ │ │ │ ├── eval_context.go │ │ │ │ ├── eval_context_builtin.go │ │ │ │ ├── eval_context_mock.go │ │ │ │ ├── eval_count.go │ │ │ │ ├── eval_count_boundary.go │ │ │ │ ├── eval_diff.go │ │ │ │ ├── eval_error.go │ │ │ │ ├── eval_filter.go │ │ │ │ ├── eval_filter_operation.go │ │ │ │ ├── eval_for_each.go │ │ │ │ ├── eval_if.go │ │ │ │ ├── eval_import_state.go │ │ │ │ ├── eval_lang.go │ │ │ │ ├── eval_local.go │ │ │ │ ├── eval_noop.go │ │ │ │ ├── eval_output.go │ │ │ │ ├── eval_provider.go │ │ │ │ ├── eval_provisioner.go │ │ │ │ ├── eval_read_data.go │ │ │ │ ├── eval_refresh.go │ │ │ │ ├── eval_sequence.go │ │ │ │ ├── eval_state.go │ │ │ │ ├── eval_state_upgrade.go │ │ │ │ ├── eval_validate.go │ │ │ │ ├── eval_validate_selfref.go │ │ │ │ ├── eval_variable.go │ │ │ │ ├── evaltree_provider.go │ │ │ │ ├── evaluate.go │ │ │ │ ├── evaluate_valid.go │ │ │ │ ├── features.go │ │ │ │ ├── graph.go │ │ │ │ ├── graph_builder.go │ │ │ │ ├── graph_builder_apply.go │ │ │ │ ├── graph_builder_destroy_plan.go │ │ │ │ ├── graph_builder_eval.go │ │ │ │ ├── graph_builder_import.go │ │ │ │ ├── graph_builder_plan.go │ │ │ │ ├── graph_builder_refresh.go │ │ │ │ ├── graph_builder_validate.go │ │ │ │ ├── graph_dot.go │ │ │ │ ├── graph_interface_subgraph.go │ │ │ │ ├── graph_walk.go │ │ │ │ ├── graph_walk_context.go │ │ │ │ ├── graph_walk_operation.go │ │ │ │ ├── graphtype_string.go │ │ │ │ ├── hook.go │ │ │ │ ├── hook_mock.go │ │ │ │ ├── hook_stop.go │ │ │ │ ├── instancetype.go │ │ │ │ ├── instancetype_string.go │ │ │ │ ├── module_dependencies.go │ │ │ │ ├── node_count_boundary.go │ │ │ │ ├── node_data_destroy.go │ │ │ │ ├── node_data_refresh.go │ │ │ │ ├── node_local.go │ │ │ │ ├── node_module_removed.go │ │ │ │ ├── node_module_variable.go │ │ │ │ ├── node_output.go │ │ │ │ ├── node_output_orphan.go │ │ │ │ ├── node_provider.go │ │ │ │ ├── node_provider_abstract.go │ │ │ │ ├── node_provider_disabled.go │ │ │ │ ├── node_provider_eval.go │ │ │ │ ├── node_provisioner.go │ │ │ │ ├── node_resource_abstract.go │ │ │ │ ├── node_resource_apply.go │ │ │ │ ├── node_resource_apply_instance.go │ │ │ │ ├── node_resource_destroy.go │ │ │ │ ├── node_resource_destroy_deposed.go │ │ │ │ ├── node_resource_plan.go │ │ │ │ ├── node_resource_plan_destroy.go │ │ │ │ ├── node_resource_plan_instance.go │ │ │ │ ├── node_resource_plan_orphan.go │ │ │ │ ├── node_resource_refresh.go │ │ │ │ ├── node_resource_validate.go │ │ │ │ ├── node_root_variable.go │ │ │ │ ├── path.go │ │ │ │ ├── plan.go │ │ │ │ ├── provider_mock.go │ │ │ │ ├── provisioner_mock.go │ │ │ │ ├── resource.go │ │ │ │ ├── resource_address.go │ │ │ │ ├── resource_mode.go │ │ │ │ ├── resource_mode_string.go │ │ │ │ ├── resource_provider.go │ │ │ │ ├── resource_provider_mock.go │ │ │ │ ├── resource_provisioner.go │ │ │ │ ├── resource_provisioner_mock.go │ │ │ │ ├── schemas.go │ │ │ │ ├── state.go │ │ │ │ ├── state_filter.go │ │ │ │ ├── state_upgrade_v1_to_v2.go │ │ │ │ ├── state_upgrade_v2_to_v3.go │ │ │ │ ├── state_v1.go │ │ │ │ ├── testing.go │ │ │ │ ├── transform.go │ │ │ │ ├── transform_attach_config_provider.go │ │ │ │ ├── transform_attach_config_resource.go │ │ │ │ ├── transform_attach_schema.go │ │ │ │ ├── transform_attach_state.go │ │ │ │ ├── transform_config.go │ │ │ │ ├── transform_config_flat.go │ │ │ │ ├── transform_count_boundary.go │ │ │ │ ├── transform_destroy_cbd.go │ │ │ │ ├── transform_destroy_edge.go │ │ │ │ ├── transform_diff.go │ │ │ │ ├── transform_expand.go │ │ │ │ ├── transform_import_provider.go │ │ │ │ ├── transform_import_state.go │ │ │ │ ├── transform_local.go │ │ │ │ ├── transform_module_variable.go │ │ │ │ ├── transform_orphan_count.go │ │ │ │ ├── transform_orphan_output.go │ │ │ │ ├── transform_orphan_resource.go │ │ │ │ ├── transform_output.go │ │ │ │ ├── transform_provider.go │ │ │ │ ├── transform_provisioner.go │ │ │ │ ├── transform_reference.go │ │ │ │ ├── transform_removed_modules.go │ │ │ │ ├── transform_resource_count.go │ │ │ │ ├── transform_root.go │ │ │ │ ├── transform_state.go │ │ │ │ ├── transform_targets.go │ │ │ │ ├── transform_transitive_reduction.go │ │ │ │ ├── transform_variable.go │ │ │ │ ├── transform_vertex.go │ │ │ │ ├── ui_input.go │ │ │ │ ├── ui_input_mock.go │ │ │ │ ├── ui_input_prefix.go │ │ │ │ ├── ui_output.go │ │ │ │ ├── ui_output_callback.go │ │ │ │ ├── ui_output_mock.go │ │ │ │ ├── ui_output_provisioner.go │ │ │ │ ├── util.go │ │ │ │ ├── valuesourcetype_string.go │ │ │ │ ├── variables.go │ │ │ │ ├── version_required.go │ │ │ │ └── walkoperation_string.go │ │ └── yamux │ │ │ ├── .gitignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── addr.go │ │ │ ├── const.go │ │ │ ├── go.mod │ │ │ ├── mux.go │ │ │ ├── session.go │ │ │ ├── spec.md │ │ │ ├── stream.go │ │ │ └── util.go │ ├── jmespath │ │ └── go-jmespath │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── api.go │ │ │ ├── astnodetype_string.go │ │ │ ├── functions.go │ │ │ ├── interpreter.go │ │ │ ├── lexer.go │ │ │ ├── parser.go │ │ │ ├── toktype_string.go │ │ │ └── util.go │ ├── keybase │ │ └── go-crypto │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ ├── LICENSE │ │ │ ├── PATENTS │ │ │ ├── brainpool │ │ │ ├── brainpool.go │ │ │ └── rcurve.go │ │ │ ├── cast5 │ │ │ └── cast5.go │ │ │ ├── curve25519 │ │ │ ├── const_amd64.h │ │ │ ├── const_amd64.s │ │ │ ├── cswap_amd64.s │ │ │ ├── curve25519.go │ │ │ ├── curve_impl.go │ │ │ ├── doc.go │ │ │ ├── freeze_amd64.s │ │ │ ├── ladderstep_amd64.s │ │ │ ├── mont25519_amd64.go │ │ │ ├── mul_amd64.s │ │ │ └── square_amd64.s │ │ │ ├── ed25519 │ │ │ ├── ed25519.go │ │ │ └── internal │ │ │ │ └── edwards25519 │ │ │ │ ├── const.go │ │ │ │ └── edwards25519.go │ │ │ └── openpgp │ │ │ ├── armor │ │ │ ├── armor.go │ │ │ └── encode.go │ │ │ ├── canonical_text.go │ │ │ ├── ecdh │ │ │ └── ecdh.go │ │ │ ├── elgamal │ │ │ └── elgamal.go │ │ │ ├── errors │ │ │ └── errors.go │ │ │ ├── keys.go │ │ │ ├── packet │ │ │ ├── compressed.go │ │ │ ├── config.go │ │ │ ├── ecdh.go │ │ │ ├── encrypted_key.go │ │ │ ├── literal.go │ │ │ ├── ocfb.go │ │ │ ├── one_pass_signature.go │ │ │ ├── opaque.go │ │ │ ├── packet.go │ │ │ ├── private_key.go │ │ │ ├── public_key.go │ │ │ ├── public_key_v3.go │ │ │ ├── reader.go │ │ │ ├── signature.go │ │ │ ├── signature_v3.go │ │ │ ├── symmetric_key_encrypted.go │ │ │ ├── symmetrically_encrypted.go │ │ │ ├── userattribute.go │ │ │ └── userid.go │ │ │ ├── patch.sh │ │ │ ├── read.go │ │ │ ├── s2k │ │ │ └── s2k.go │ │ │ ├── sig-v3.patch │ │ │ └── write.go │ ├── mattn │ │ ├── go-colorable │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── colorable_appengine.go │ │ │ ├── colorable_others.go │ │ │ ├── colorable_windows.go │ │ │ └── noncolorable.go │ │ └── go-isatty │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── doc.go │ │ │ ├── isatty_appengine.go │ │ │ ├── isatty_bsd.go │ │ │ ├── isatty_linux.go │ │ │ ├── isatty_linux_ppc64x.go │ │ │ ├── isatty_others.go │ │ │ ├── isatty_solaris.go │ │ │ └── isatty_windows.go │ ├── mitchellh │ │ ├── cli │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── autocomplete.go │ │ │ ├── cli.go │ │ │ ├── command.go │ │ │ ├── command_mock.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── help.go │ │ │ ├── ui.go │ │ │ ├── ui_colored.go │ │ │ ├── ui_concurrent.go │ │ │ ├── ui_mock.go │ │ │ └── ui_writer.go │ │ ├── colorstring │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── colorstring.go │ │ │ └── go.mod │ │ ├── copystructure │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── copier_time.go │ │ │ ├── copystructure.go │ │ │ ├── go.mod │ │ │ └── go.sum │ │ ├── go-homedir │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── go.mod │ │ │ └── homedir.go │ │ ├── go-testing-interface │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── go.mod │ │ │ ├── testing.go │ │ │ └── testing_go19.go │ │ ├── go-wordwrap │ │ │ ├── LICENSE.md │ │ │ ├── README.md │ │ │ ├── go.mod │ │ │ └── wordwrap.go │ │ ├── mapstructure │ │ │ ├── .travis.yml │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── decode_hooks.go │ │ │ ├── error.go │ │ │ ├── go.mod │ │ │ └── mapstructure.go │ │ └── reflectwalk │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── go.mod │ │ │ ├── location.go │ │ │ ├── location_string.go │ │ │ └── reflectwalk.go │ ├── oklog │ │ └── run │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ └── group.go │ ├── pierrec │ │ └── lz4 │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── block.go │ │ │ ├── debug.go │ │ │ ├── debug_stub.go │ │ │ ├── internal │ │ │ └── xxh32 │ │ │ │ └── xxh32zero.go │ │ │ ├── lz4.go │ │ │ ├── lz4_go1.10.go │ │ │ ├── lz4_notgo1.10.go │ │ │ ├── reader.go │ │ │ └── writer.go │ ├── posener │ │ └── complete │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE.txt │ │ │ ├── args.go │ │ │ ├── cmd │ │ │ ├── cmd.go │ │ │ └── install │ │ │ │ ├── bash.go │ │ │ │ ├── fish.go │ │ │ │ ├── install.go │ │ │ │ ├── utils.go │ │ │ │ └── zsh.go │ │ │ ├── command.go │ │ │ ├── complete.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── log.go │ │ │ ├── match │ │ │ ├── file.go │ │ │ ├── match.go │ │ │ └── prefix.go │ │ │ ├── predict.go │ │ │ ├── predict_files.go │ │ │ ├── predict_set.go │ │ │ ├── readme.md │ │ │ ├── test.sh │ │ │ └── utils.go │ ├── spf13 │ │ └── afero │ │ │ ├── .travis.yml │ │ │ ├── LICENSE.txt │ │ │ ├── README.md │ │ │ ├── afero.go │ │ │ ├── appveyor.yml │ │ │ ├── basepath.go │ │ │ ├── cacheOnReadFs.go │ │ │ ├── const_bsds.go │ │ │ ├── const_win_unix.go │ │ │ ├── copyOnWriteFs.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── httpFs.go │ │ │ ├── ioutil.go │ │ │ ├── lstater.go │ │ │ ├── match.go │ │ │ ├── mem │ │ │ ├── dir.go │ │ │ ├── dirmap.go │ │ │ └── file.go │ │ │ ├── memmap.go │ │ │ ├── os.go │ │ │ ├── path.go │ │ │ ├── readonlyfs.go │ │ │ ├── regexpfs.go │ │ │ ├── unionFile.go │ │ │ └── util.go │ ├── ulikunitz │ │ └── xz │ │ │ ├── .gitignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── TODO.md │ │ │ ├── bits.go │ │ │ ├── crc.go │ │ │ ├── format.go │ │ │ ├── fox.xz │ │ │ ├── internal │ │ │ ├── hash │ │ │ │ ├── cyclic_poly.go │ │ │ │ ├── doc.go │ │ │ │ ├── rabin_karp.go │ │ │ │ └── roller.go │ │ │ └── xlog │ │ │ │ └── xlog.go │ │ │ ├── lzma │ │ │ ├── bintree.go │ │ │ ├── bitops.go │ │ │ ├── breader.go │ │ │ ├── buffer.go │ │ │ ├── bytewriter.go │ │ │ ├── decoder.go │ │ │ ├── decoderdict.go │ │ │ ├── directcodec.go │ │ │ ├── distcodec.go │ │ │ ├── encoder.go │ │ │ ├── encoderdict.go │ │ │ ├── fox.lzma │ │ │ ├── hashtable.go │ │ │ ├── header.go │ │ │ ├── header2.go │ │ │ ├── lengthcodec.go │ │ │ ├── literalcodec.go │ │ │ ├── matchalgorithm.go │ │ │ ├── operation.go │ │ │ ├── prob.go │ │ │ ├── properties.go │ │ │ ├── rangecodec.go │ │ │ ├── reader.go │ │ │ ├── reader2.go │ │ │ ├── state.go │ │ │ ├── treecodecs.go │ │ │ ├── writer.go │ │ │ └── writer2.go │ │ │ ├── lzmafilter.go │ │ │ ├── make-docs │ │ │ ├── reader.go │ │ │ └── writer.go │ ├── vmihailenco │ │ └── msgpack │ │ │ ├── .travis.yml │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── appengine.go │ │ │ ├── codes │ │ │ └── codes.go │ │ │ ├── decode.go │ │ │ ├── decode_map.go │ │ │ ├── decode_number.go │ │ │ ├── decode_query.go │ │ │ ├── decode_slice.go │ │ │ ├── decode_string.go │ │ │ ├── decode_value.go │ │ │ ├── encode.go │ │ │ ├── encode_map.go │ │ │ ├── encode_number.go │ │ │ ├── encode_slice.go │ │ │ ├── encode_value.go │ │ │ ├── ext.go │ │ │ ├── msgpack.go │ │ │ ├── tag.go │ │ │ ├── time.go │ │ │ └── types.go │ └── zclconf │ │ ├── go-cty-yaml │ │ ├── .travis.yml │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── LICENSE.libyaml │ │ ├── NOTICE │ │ ├── apic.go │ │ ├── converter.go │ │ ├── cty_funcs.go │ │ ├── decode.go │ │ ├── emitterc.go │ │ ├── encode.go │ │ ├── error.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── implied_type.go │ │ ├── parserc.go │ │ ├── readerc.go │ │ ├── resolve.go │ │ ├── scannerc.go │ │ ├── writerc.go │ │ ├── yaml.go │ │ ├── yamlh.go │ │ └── yamlprivateh.go │ │ └── go-cty │ │ ├── LICENSE │ │ └── cty │ │ ├── capsule.go │ │ ├── collection.go │ │ ├── convert │ │ ├── compare_types.go │ │ ├── conversion.go │ │ ├── conversion_collection.go │ │ ├── conversion_dynamic.go │ │ ├── conversion_object.go │ │ ├── conversion_primitive.go │ │ ├── conversion_tuple.go │ │ ├── doc.go │ │ ├── mismatch_msg.go │ │ ├── public.go │ │ ├── sort_types.go │ │ └── unify.go │ │ ├── doc.go │ │ ├── element_iterator.go │ │ ├── error.go │ │ ├── function │ │ ├── argument.go │ │ ├── doc.go │ │ ├── error.go │ │ ├── function.go │ │ ├── stdlib │ │ │ ├── bool.go │ │ │ ├── bytes.go │ │ │ ├── collection.go │ │ │ ├── csv.go │ │ │ ├── datetime.go │ │ │ ├── doc.go │ │ │ ├── format.go │ │ │ ├── format_fsm.go │ │ │ ├── format_fsm.rl │ │ │ ├── general.go │ │ │ ├── json.go │ │ │ ├── number.go │ │ │ ├── regexp.go │ │ │ ├── sequence.go │ │ │ ├── set.go │ │ │ └── string.go │ │ └── unpredictable.go │ │ ├── gob.go │ │ ├── gocty │ │ ├── doc.go │ │ ├── helpers.go │ │ ├── in.go │ │ ├── out.go │ │ └── type_implied.go │ │ ├── helper.go │ │ ├── json.go │ │ ├── json │ │ ├── doc.go │ │ ├── marshal.go │ │ ├── simple.go │ │ ├── type.go │ │ ├── type_implied.go │ │ ├── unmarshal.go │ │ └── value.go │ │ ├── list_type.go │ │ ├── map_type.go │ │ ├── msgpack │ │ ├── doc.go │ │ ├── dynamic.go │ │ ├── infinity.go │ │ ├── marshal.go │ │ ├── type_implied.go │ │ ├── unknown.go │ │ └── unmarshal.go │ │ ├── null.go │ │ ├── object_type.go │ │ ├── path.go │ │ ├── path_set.go │ │ ├── primitive_type.go │ │ ├── set │ │ ├── gob.go │ │ ├── iterator.go │ │ ├── ops.go │ │ ├── rules.go │ │ └── set.go │ │ ├── set_helper.go │ │ ├── set_internals.go │ │ ├── set_type.go │ │ ├── tuple_type.go │ │ ├── type.go │ │ ├── type_conform.go │ │ ├── types_to_register.go │ │ ├── unknown.go │ │ ├── unknown_as_null.go │ │ ├── value.go │ │ ├── value_init.go │ │ ├── value_ops.go │ │ └── walk.go ├── go.opencensus.io │ ├── .gitignore │ ├── .travis.yml │ ├── AUTHORS │ ├── CONTRIBUTING.md │ ├── Gopkg.lock │ ├── Gopkg.toml │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── appveyor.yml │ ├── go.mod │ ├── go.sum │ ├── internal │ │ ├── internal.go │ │ ├── sanitize.go │ │ ├── tagencoding │ │ │ └── tagencoding.go │ │ └── traceinternals.go │ ├── metric │ │ ├── metricdata │ │ │ ├── doc.go │ │ │ ├── exemplar.go │ │ │ ├── label.go │ │ │ ├── metric.go │ │ │ ├── point.go │ │ │ ├── type_string.go │ │ │ └── unit.go │ │ └── metricproducer │ │ │ ├── manager.go │ │ │ └── producer.go │ ├── opencensus.go │ ├── plugin │ │ └── ochttp │ │ │ ├── client.go │ │ │ ├── client_stats.go │ │ │ ├── doc.go │ │ │ ├── propagation │ │ │ └── b3 │ │ │ │ └── b3.go │ │ │ ├── route.go │ │ │ ├── server.go │ │ │ ├── span_annotating_client_trace.go │ │ │ ├── stats.go │ │ │ ├── trace.go │ │ │ └── wrapped_body.go │ ├── resource │ │ └── resource.go │ ├── stats │ │ ├── doc.go │ │ ├── internal │ │ │ └── record.go │ │ ├── measure.go │ │ ├── measure_float64.go │ │ ├── measure_int64.go │ │ ├── record.go │ │ ├── units.go │ │ └── view │ │ │ ├── aggregation.go │ │ │ ├── aggregation_data.go │ │ │ ├── collector.go │ │ │ ├── doc.go │ │ │ ├── export.go │ │ │ ├── view.go │ │ │ ├── view_to_metric.go │ │ │ ├── worker.go │ │ │ └── worker_commands.go │ ├── tag │ │ ├── context.go │ │ ├── doc.go │ │ ├── key.go │ │ ├── map.go │ │ ├── map_codec.go │ │ ├── metadata.go │ │ ├── profile_19.go │ │ ├── profile_not19.go │ │ └── validate.go │ └── trace │ │ ├── basetypes.go │ │ ├── config.go │ │ ├── doc.go │ │ ├── evictedqueue.go │ │ ├── export.go │ │ ├── internal │ │ └── internal.go │ │ ├── lrumap.go │ │ ├── propagation │ │ └── propagation.go │ │ ├── sampling.go │ │ ├── spanbucket.go │ │ ├── spanstore.go │ │ ├── status_codes.go │ │ ├── trace.go │ │ ├── trace_go11.go │ │ ├── trace_nongo11.go │ │ └── tracestate │ │ └── tracestate.go ├── golang.org │ └── x │ │ ├── crypto │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── PATENTS │ │ ├── bcrypt │ │ │ ├── base64.go │ │ │ └── bcrypt.go │ │ ├── blowfish │ │ │ ├── block.go │ │ │ ├── cipher.go │ │ │ └── const.go │ │ ├── cast5 │ │ │ └── cast5.go │ │ └── openpgp │ │ │ ├── armor │ │ │ ├── armor.go │ │ │ └── encode.go │ │ │ ├── canonical_text.go │ │ │ ├── elgamal │ │ │ └── elgamal.go │ │ │ ├── errors │ │ │ └── errors.go │ │ │ ├── keys.go │ │ │ ├── packet │ │ │ ├── compressed.go │ │ │ ├── config.go │ │ │ ├── encrypted_key.go │ │ │ ├── literal.go │ │ │ ├── ocfb.go │ │ │ ├── one_pass_signature.go │ │ │ ├── opaque.go │ │ │ ├── packet.go │ │ │ ├── private_key.go │ │ │ ├── public_key.go │ │ │ ├── public_key_v3.go │ │ │ ├── reader.go │ │ │ ├── signature.go │ │ │ ├── signature_v3.go │ │ │ ├── symmetric_key_encrypted.go │ │ │ ├── symmetrically_encrypted.go │ │ │ ├── userattribute.go │ │ │ └── userid.go │ │ │ ├── read.go │ │ │ ├── s2k │ │ │ └── s2k.go │ │ │ └── write.go │ │ ├── net │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── PATENTS │ │ ├── context │ │ │ ├── context.go │ │ │ ├── ctxhttp │ │ │ │ └── ctxhttp.go │ │ │ ├── go17.go │ │ │ ├── go19.go │ │ │ ├── pre_go17.go │ │ │ └── pre_go19.go │ │ ├── http │ │ │ └── httpguts │ │ │ │ ├── guts.go │ │ │ │ └── httplex.go │ │ ├── http2 │ │ │ ├── .gitignore │ │ │ ├── Dockerfile │ │ │ ├── Makefile │ │ │ ├── README │ │ │ ├── ciphers.go │ │ │ ├── client_conn_pool.go │ │ │ ├── databuffer.go │ │ │ ├── errors.go │ │ │ ├── flow.go │ │ │ ├── frame.go │ │ │ ├── go111.go │ │ │ ├── gotrack.go │ │ │ ├── headermap.go │ │ │ ├── hpack │ │ │ │ ├── encode.go │ │ │ │ ├── hpack.go │ │ │ │ ├── huffman.go │ │ │ │ └── tables.go │ │ │ ├── http2.go │ │ │ ├── not_go111.go │ │ │ ├── pipe.go │ │ │ ├── server.go │ │ │ ├── transport.go │ │ │ ├── write.go │ │ │ ├── writesched.go │ │ │ ├── writesched_priority.go │ │ │ └── writesched_random.go │ │ ├── idna │ │ │ ├── idna10.0.0.go │ │ │ ├── idna9.0.0.go │ │ │ ├── punycode.go │ │ │ ├── tables10.0.0.go │ │ │ ├── tables11.0.0.go │ │ │ ├── tables9.0.0.go │ │ │ ├── trie.go │ │ │ └── trieval.go │ │ ├── internal │ │ │ ├── socks │ │ │ │ ├── client.go │ │ │ │ └── socks.go │ │ │ └── timeseries │ │ │ │ └── timeseries.go │ │ ├── proxy │ │ │ ├── dial.go │ │ │ ├── direct.go │ │ │ ├── per_host.go │ │ │ ├── proxy.go │ │ │ └── socks5.go │ │ └── trace │ │ │ ├── events.go │ │ │ ├── histogram.go │ │ │ └── trace.go │ │ ├── oauth2 │ │ ├── .travis.yml │ │ ├── AUTHORS │ │ ├── CONTRIBUTING.md │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── README.md │ │ ├── go.mod │ │ ├── go.sum │ │ ├── google │ │ │ ├── appengine.go │ │ │ ├── appengine_gen1.go │ │ │ ├── appengine_gen2_flex.go │ │ │ ├── default.go │ │ │ ├── doc.go │ │ │ ├── google.go │ │ │ ├── jwt.go │ │ │ └── sdk.go │ │ ├── internal │ │ │ ├── client_appengine.go │ │ │ ├── doc.go │ │ │ ├── oauth2.go │ │ │ ├── token.go │ │ │ └── transport.go │ │ ├── jws │ │ │ └── jws.go │ │ ├── jwt │ │ │ └── jwt.go │ │ ├── oauth2.go │ │ ├── token.go │ │ └── transport.go │ │ ├── sys │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── PATENTS │ │ └── unix │ │ │ ├── .gitignore │ │ │ ├── README.md │ │ │ ├── affinity_linux.go │ │ │ ├── aliases.go │ │ │ ├── asm_aix_ppc64.s │ │ │ ├── asm_darwin_386.s │ │ │ ├── asm_darwin_amd64.s │ │ │ ├── asm_darwin_arm.s │ │ │ ├── asm_darwin_arm64.s │ │ │ ├── asm_dragonfly_amd64.s │ │ │ ├── asm_freebsd_386.s │ │ │ ├── asm_freebsd_amd64.s │ │ │ ├── asm_freebsd_arm.s │ │ │ ├── asm_freebsd_arm64.s │ │ │ ├── asm_linux_386.s │ │ │ ├── asm_linux_amd64.s │ │ │ ├── asm_linux_arm.s │ │ │ ├── asm_linux_arm64.s │ │ │ ├── asm_linux_mips64x.s │ │ │ ├── asm_linux_mipsx.s │ │ │ ├── asm_linux_ppc64x.s │ │ │ ├── asm_linux_riscv64.s │ │ │ ├── asm_linux_s390x.s │ │ │ ├── asm_netbsd_386.s │ │ │ ├── asm_netbsd_amd64.s │ │ │ ├── asm_netbsd_arm.s │ │ │ ├── asm_netbsd_arm64.s │ │ │ ├── asm_openbsd_386.s │ │ │ ├── asm_openbsd_amd64.s │ │ │ ├── asm_openbsd_arm.s │ │ │ ├── asm_openbsd_arm64.s │ │ │ ├── asm_solaris_amd64.s │ │ │ ├── bluetooth_linux.go │ │ │ ├── cap_freebsd.go │ │ │ ├── constants.go │ │ │ ├── dev_aix_ppc.go │ │ │ ├── dev_aix_ppc64.go │ │ │ ├── dev_darwin.go │ │ │ ├── dev_dragonfly.go │ │ │ ├── dev_freebsd.go │ │ │ ├── dev_linux.go │ │ │ ├── dev_netbsd.go │ │ │ ├── dev_openbsd.go │ │ │ ├── dirent.go │ │ │ ├── endian_big.go │ │ │ ├── endian_little.go │ │ │ ├── env_unix.go │ │ │ ├── errors_freebsd_386.go │ │ │ ├── errors_freebsd_amd64.go │ │ │ ├── errors_freebsd_arm.go │ │ │ ├── fcntl.go │ │ │ ├── fcntl_darwin.go │ │ │ ├── fcntl_linux_32bit.go │ │ │ ├── gccgo.go │ │ │ ├── gccgo_c.c │ │ │ ├── gccgo_linux_amd64.go │ │ │ ├── ioctl.go │ │ │ ├── mkall.sh │ │ │ ├── mkerrors.sh │ │ │ ├── pagesize_unix.go │ │ │ ├── pledge_openbsd.go │ │ │ ├── race.go │ │ │ ├── race0.go │ │ │ ├── readdirent_getdents.go │ │ │ ├── readdirent_getdirentries.go │ │ │ ├── sockcmsg_linux.go │ │ │ ├── sockcmsg_unix.go │ │ │ ├── str.go │ │ │ ├── syscall.go │ │ │ ├── syscall_aix.go │ │ │ ├── syscall_aix_ppc.go │ │ │ ├── syscall_aix_ppc64.go │ │ │ ├── syscall_bsd.go │ │ │ ├── syscall_darwin.go │ │ │ ├── syscall_darwin_386.go │ │ │ ├── syscall_darwin_amd64.go │ │ │ ├── syscall_darwin_arm.go │ │ │ ├── syscall_darwin_arm64.go │ │ │ ├── syscall_darwin_libSystem.go │ │ │ ├── syscall_dragonfly.go │ │ │ ├── syscall_dragonfly_amd64.go │ │ │ ├── syscall_freebsd.go │ │ │ ├── syscall_freebsd_386.go │ │ │ ├── syscall_freebsd_amd64.go │ │ │ ├── syscall_freebsd_arm.go │ │ │ ├── syscall_freebsd_arm64.go │ │ │ ├── syscall_linux.go │ │ │ ├── syscall_linux_386.go │ │ │ ├── syscall_linux_amd64.go │ │ │ ├── syscall_linux_amd64_gc.go │ │ │ ├── syscall_linux_arm.go │ │ │ ├── syscall_linux_arm64.go │ │ │ ├── syscall_linux_gc.go │ │ │ ├── syscall_linux_gc_386.go │ │ │ ├── syscall_linux_gccgo_386.go │ │ │ ├── syscall_linux_gccgo_arm.go │ │ │ ├── syscall_linux_mips64x.go │ │ │ ├── syscall_linux_mipsx.go │ │ │ ├── syscall_linux_ppc64x.go │ │ │ ├── syscall_linux_riscv64.go │ │ │ ├── syscall_linux_s390x.go │ │ │ ├── syscall_linux_sparc64.go │ │ │ ├── syscall_netbsd.go │ │ │ ├── syscall_netbsd_386.go │ │ │ ├── syscall_netbsd_amd64.go │ │ │ ├── syscall_netbsd_arm.go │ │ │ ├── syscall_netbsd_arm64.go │ │ │ ├── syscall_openbsd.go │ │ │ ├── syscall_openbsd_386.go │ │ │ ├── syscall_openbsd_amd64.go │ │ │ ├── syscall_openbsd_arm.go │ │ │ ├── syscall_openbsd_arm64.go │ │ │ ├── syscall_solaris.go │ │ │ ├── syscall_solaris_amd64.go │ │ │ ├── syscall_unix.go │ │ │ ├── syscall_unix_gc.go │ │ │ ├── syscall_unix_gc_ppc64x.go │ │ │ ├── timestruct.go │ │ │ ├── unveil_openbsd.go │ │ │ ├── xattr_bsd.go │ │ │ ├── zerrors_aix_ppc.go │ │ │ ├── zerrors_aix_ppc64.go │ │ │ ├── zerrors_darwin_386.go │ │ │ ├── zerrors_darwin_amd64.go │ │ │ ├── zerrors_darwin_arm.go │ │ │ ├── zerrors_darwin_arm64.go │ │ │ ├── zerrors_dragonfly_amd64.go │ │ │ ├── zerrors_freebsd_386.go │ │ │ ├── zerrors_freebsd_amd64.go │ │ │ ├── zerrors_freebsd_arm.go │ │ │ ├── zerrors_freebsd_arm64.go │ │ │ ├── zerrors_linux_386.go │ │ │ ├── zerrors_linux_amd64.go │ │ │ ├── zerrors_linux_arm.go │ │ │ ├── zerrors_linux_arm64.go │ │ │ ├── zerrors_linux_mips.go │ │ │ ├── zerrors_linux_mips64.go │ │ │ ├── zerrors_linux_mips64le.go │ │ │ ├── zerrors_linux_mipsle.go │ │ │ ├── zerrors_linux_ppc64.go │ │ │ ├── zerrors_linux_ppc64le.go │ │ │ ├── zerrors_linux_riscv64.go │ │ │ ├── zerrors_linux_s390x.go │ │ │ ├── zerrors_linux_sparc64.go │ │ │ ├── zerrors_netbsd_386.go │ │ │ ├── zerrors_netbsd_amd64.go │ │ │ ├── zerrors_netbsd_arm.go │ │ │ ├── zerrors_netbsd_arm64.go │ │ │ ├── zerrors_openbsd_386.go │ │ │ ├── zerrors_openbsd_amd64.go │ │ │ ├── zerrors_openbsd_arm.go │ │ │ ├── zerrors_openbsd_arm64.go │ │ │ ├── zerrors_solaris_amd64.go │ │ │ ├── zptrace386_linux.go │ │ │ ├── zptracearm_linux.go │ │ │ ├── zptracemips_linux.go │ │ │ ├── zptracemipsle_linux.go │ │ │ ├── zsyscall_aix_ppc.go │ │ │ ├── zsyscall_aix_ppc64.go │ │ │ ├── zsyscall_aix_ppc64_gc.go │ │ │ ├── zsyscall_aix_ppc64_gccgo.go │ │ │ ├── zsyscall_darwin_386.1_11.go │ │ │ ├── zsyscall_darwin_386.go │ │ │ ├── zsyscall_darwin_386.s │ │ │ ├── zsyscall_darwin_amd64.1_11.go │ │ │ ├── zsyscall_darwin_amd64.go │ │ │ ├── zsyscall_darwin_amd64.s │ │ │ ├── zsyscall_darwin_arm.1_11.go │ │ │ ├── zsyscall_darwin_arm.go │ │ │ ├── zsyscall_darwin_arm.s │ │ │ ├── zsyscall_darwin_arm64.1_11.go │ │ │ ├── zsyscall_darwin_arm64.go │ │ │ ├── zsyscall_darwin_arm64.s │ │ │ ├── zsyscall_dragonfly_amd64.go │ │ │ ├── zsyscall_freebsd_386.go │ │ │ ├── zsyscall_freebsd_amd64.go │ │ │ ├── zsyscall_freebsd_arm.go │ │ │ ├── zsyscall_freebsd_arm64.go │ │ │ ├── zsyscall_linux_386.go │ │ │ ├── zsyscall_linux_amd64.go │ │ │ ├── zsyscall_linux_arm.go │ │ │ ├── zsyscall_linux_arm64.go │ │ │ ├── zsyscall_linux_mips.go │ │ │ ├── zsyscall_linux_mips64.go │ │ │ ├── zsyscall_linux_mips64le.go │ │ │ ├── zsyscall_linux_mipsle.go │ │ │ ├── zsyscall_linux_ppc64.go │ │ │ ├── zsyscall_linux_ppc64le.go │ │ │ ├── zsyscall_linux_riscv64.go │ │ │ ├── zsyscall_linux_s390x.go │ │ │ ├── zsyscall_linux_sparc64.go │ │ │ ├── zsyscall_netbsd_386.go │ │ │ ├── zsyscall_netbsd_amd64.go │ │ │ ├── zsyscall_netbsd_arm.go │ │ │ ├── zsyscall_netbsd_arm64.go │ │ │ ├── zsyscall_openbsd_386.go │ │ │ ├── zsyscall_openbsd_amd64.go │ │ │ ├── zsyscall_openbsd_arm.go │ │ │ ├── zsyscall_openbsd_arm64.go │ │ │ ├── zsyscall_solaris_amd64.go │ │ │ ├── zsysctl_openbsd_386.go │ │ │ ├── zsysctl_openbsd_amd64.go │ │ │ ├── zsysctl_openbsd_arm.go │ │ │ ├── zsysctl_openbsd_arm64.go │ │ │ ├── zsysnum_darwin_386.go │ │ │ ├── zsysnum_darwin_amd64.go │ │ │ ├── zsysnum_darwin_arm.go │ │ │ ├── zsysnum_darwin_arm64.go │ │ │ ├── zsysnum_dragonfly_amd64.go │ │ │ ├── zsysnum_freebsd_386.go │ │ │ ├── zsysnum_freebsd_amd64.go │ │ │ ├── zsysnum_freebsd_arm.go │ │ │ ├── zsysnum_freebsd_arm64.go │ │ │ ├── zsysnum_linux_386.go │ │ │ ├── zsysnum_linux_amd64.go │ │ │ ├── zsysnum_linux_arm.go │ │ │ ├── zsysnum_linux_arm64.go │ │ │ ├── zsysnum_linux_mips.go │ │ │ ├── zsysnum_linux_mips64.go │ │ │ ├── zsysnum_linux_mips64le.go │ │ │ ├── zsysnum_linux_mipsle.go │ │ │ ├── zsysnum_linux_ppc64.go │ │ │ ├── zsysnum_linux_ppc64le.go │ │ │ ├── zsysnum_linux_riscv64.go │ │ │ ├── zsysnum_linux_s390x.go │ │ │ ├── zsysnum_linux_sparc64.go │ │ │ ├── zsysnum_netbsd_386.go │ │ │ ├── zsysnum_netbsd_amd64.go │ │ │ ├── zsysnum_netbsd_arm.go │ │ │ ├── zsysnum_netbsd_arm64.go │ │ │ ├── zsysnum_openbsd_386.go │ │ │ ├── zsysnum_openbsd_amd64.go │ │ │ ├── zsysnum_openbsd_arm.go │ │ │ ├── zsysnum_openbsd_arm64.go │ │ │ ├── ztypes_aix_ppc.go │ │ │ ├── ztypes_aix_ppc64.go │ │ │ ├── ztypes_darwin_386.go │ │ │ ├── ztypes_darwin_amd64.go │ │ │ ├── ztypes_darwin_arm.go │ │ │ ├── ztypes_darwin_arm64.go │ │ │ ├── ztypes_dragonfly_amd64.go │ │ │ ├── ztypes_freebsd_386.go │ │ │ ├── ztypes_freebsd_amd64.go │ │ │ ├── ztypes_freebsd_arm.go │ │ │ ├── ztypes_freebsd_arm64.go │ │ │ ├── ztypes_linux_386.go │ │ │ ├── ztypes_linux_amd64.go │ │ │ ├── ztypes_linux_arm.go │ │ │ ├── ztypes_linux_arm64.go │ │ │ ├── ztypes_linux_mips.go │ │ │ ├── ztypes_linux_mips64.go │ │ │ ├── ztypes_linux_mips64le.go │ │ │ ├── ztypes_linux_mipsle.go │ │ │ ├── ztypes_linux_ppc64.go │ │ │ ├── ztypes_linux_ppc64le.go │ │ │ ├── ztypes_linux_riscv64.go │ │ │ ├── ztypes_linux_s390x.go │ │ │ ├── ztypes_linux_sparc64.go │ │ │ ├── ztypes_netbsd_386.go │ │ │ ├── ztypes_netbsd_amd64.go │ │ │ ├── ztypes_netbsd_arm.go │ │ │ ├── ztypes_netbsd_arm64.go │ │ │ ├── ztypes_openbsd_386.go │ │ │ ├── ztypes_openbsd_amd64.go │ │ │ ├── ztypes_openbsd_arm.go │ │ │ ├── ztypes_openbsd_arm64.go │ │ │ └── ztypes_solaris_amd64.go │ │ └── text │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── PATENTS │ │ ├── secure │ │ └── bidirule │ │ │ ├── bidirule.go │ │ │ ├── bidirule10.0.0.go │ │ │ └── bidirule9.0.0.go │ │ ├── transform │ │ └── transform.go │ │ └── unicode │ │ ├── bidi │ │ ├── bidi.go │ │ ├── bracket.go │ │ ├── core.go │ │ ├── prop.go │ │ ├── tables10.0.0.go │ │ ├── tables11.0.0.go │ │ ├── tables9.0.0.go │ │ └── trieval.go │ │ └── norm │ │ ├── composition.go │ │ ├── forminfo.go │ │ ├── input.go │ │ ├── iter.go │ │ ├── normalize.go │ │ ├── readwriter.go │ │ ├── tables10.0.0.go │ │ ├── tables11.0.0.go │ │ ├── tables9.0.0.go │ │ ├── transform.go │ │ └── trie.go ├── google.golang.org │ ├── api │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── gensupport │ │ │ ├── buffer.go │ │ │ ├── doc.go │ │ │ ├── json.go │ │ │ ├── jsonfloat.go │ │ │ ├── media.go │ │ │ ├── params.go │ │ │ ├── resumable.go │ │ │ └── send.go │ │ ├── googleapi │ │ │ ├── googleapi.go │ │ │ ├── internal │ │ │ │ └── uritemplates │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── uritemplates.go │ │ │ │ │ └── utils.go │ │ │ ├── transport │ │ │ │ └── apikey.go │ │ │ └── types.go │ │ ├── internal │ │ │ ├── creds.go │ │ │ ├── pool.go │ │ │ ├── service-account.json │ │ │ └── settings.go │ │ ├── iterator │ │ │ └── iterator.go │ │ ├── option │ │ │ ├── credentials_go19.go │ │ │ ├── credentials_notgo19.go │ │ │ └── option.go │ │ ├── storage │ │ │ └── v1 │ │ │ │ ├── storage-api.json │ │ │ │ └── storage-gen.go │ │ └── transport │ │ │ └── http │ │ │ ├── dial.go │ │ │ ├── dial_appengine.go │ │ │ └── internal │ │ │ └── propagation │ │ │ └── http.go │ ├── appengine │ │ ├── .travis.yml │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── appengine.go │ │ ├── appengine_vm.go │ │ ├── cloudsql │ │ │ ├── cloudsql.go │ │ │ ├── cloudsql_classic.go │ │ │ └── cloudsql_vm.go │ │ ├── datastore │ │ │ ├── datastore.go │ │ │ ├── doc.go │ │ │ ├── internal │ │ │ │ ├── cloudkey │ │ │ │ │ └── cloudkey.go │ │ │ │ └── cloudpb │ │ │ │ │ └── entity.pb.go │ │ │ ├── key.go │ │ │ ├── keycompat.go │ │ │ ├── load.go │ │ │ ├── metadata.go │ │ │ ├── prop.go │ │ │ ├── query.go │ │ │ ├── save.go │ │ │ └── transaction.go │ │ ├── errors.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── identity.go │ │ ├── internal │ │ │ ├── api.go │ │ │ ├── api_classic.go │ │ │ ├── api_common.go │ │ │ ├── app_id.go │ │ │ ├── app_identity │ │ │ │ ├── app_identity_service.pb.go │ │ │ │ └── app_identity_service.proto │ │ │ ├── base │ │ │ │ ├── api_base.pb.go │ │ │ │ └── api_base.proto │ │ │ ├── datastore │ │ │ │ ├── datastore_v3.pb.go │ │ │ │ └── datastore_v3.proto │ │ │ ├── identity.go │ │ │ ├── identity_classic.go │ │ │ ├── identity_flex.go │ │ │ ├── identity_vm.go │ │ │ ├── internal.go │ │ │ ├── log │ │ │ │ ├── log_service.pb.go │ │ │ │ └── log_service.proto │ │ │ ├── main.go │ │ │ ├── main_common.go │ │ │ ├── main_vm.go │ │ │ ├── metadata.go │ │ │ ├── modules │ │ │ │ ├── modules_service.pb.go │ │ │ │ └── modules_service.proto │ │ │ ├── net.go │ │ │ ├── regen.sh │ │ │ ├── remote_api │ │ │ │ ├── remote_api.pb.go │ │ │ │ └── remote_api.proto │ │ │ ├── transaction.go │ │ │ └── urlfetch │ │ │ │ ├── urlfetch_service.pb.go │ │ │ │ └── urlfetch_service.proto │ │ ├── namespace.go │ │ ├── timeout.go │ │ ├── travis_install.sh │ │ ├── travis_test.sh │ │ └── urlfetch │ │ │ └── urlfetch.go │ ├── genproto │ │ ├── LICENSE │ │ └── googleapis │ │ │ ├── api │ │ │ └── annotations │ │ │ │ ├── annotations.pb.go │ │ │ │ ├── client.pb.go │ │ │ │ ├── field_behavior.pb.go │ │ │ │ ├── http.pb.go │ │ │ │ └── resource.pb.go │ │ │ ├── iam │ │ │ └── v1 │ │ │ │ ├── iam_policy.pb.go │ │ │ │ ├── options.pb.go │ │ │ │ └── policy.pb.go │ │ │ ├── rpc │ │ │ ├── code │ │ │ │ └── code.pb.go │ │ │ └── status │ │ │ │ └── status.pb.go │ │ │ └── type │ │ │ └── expr │ │ │ └── expr.pb.go │ └── grpc │ │ ├── .travis.yml │ │ ├── AUTHORS │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── backoff.go │ │ ├── balancer.go │ │ ├── balancer │ │ ├── balancer.go │ │ ├── base │ │ │ ├── balancer.go │ │ │ └── base.go │ │ └── roundrobin │ │ │ └── roundrobin.go │ │ ├── balancer_conn_wrappers.go │ │ ├── balancer_v1_wrapper.go │ │ ├── binarylog │ │ └── grpc_binarylog_v1 │ │ │ └── binarylog.pb.go │ │ ├── call.go │ │ ├── clientconn.go │ │ ├── codec.go │ │ ├── codegen.sh │ │ ├── codes │ │ ├── code_string.go │ │ └── codes.go │ │ ├── connectivity │ │ └── connectivity.go │ │ ├── credentials │ │ ├── credentials.go │ │ ├── internal │ │ │ ├── syscallconn.go │ │ │ └── syscallconn_appengine.go │ │ └── tls13.go │ │ ├── dialoptions.go │ │ ├── doc.go │ │ ├── encoding │ │ ├── encoding.go │ │ └── proto │ │ │ └── proto.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── grpclog │ │ ├── grpclog.go │ │ ├── logger.go │ │ └── loggerv2.go │ │ ├── health │ │ ├── client.go │ │ ├── grpc_health_v1 │ │ │ └── health.pb.go │ │ ├── regenerate.sh │ │ └── server.go │ │ ├── install_gae.sh │ │ ├── interceptor.go │ │ ├── internal │ │ ├── backoff │ │ │ └── backoff.go │ │ ├── balancerload │ │ │ └── load.go │ │ ├── binarylog │ │ │ ├── binarylog.go │ │ │ ├── binarylog_testutil.go │ │ │ ├── env_config.go │ │ │ ├── method_logger.go │ │ │ ├── regenerate.sh │ │ │ ├── sink.go │ │ │ └── util.go │ │ ├── channelz │ │ │ ├── funcs.go │ │ │ ├── types.go │ │ │ ├── types_linux.go │ │ │ ├── types_nonlinux.go │ │ │ ├── util_linux.go │ │ │ └── util_nonlinux.go │ │ ├── envconfig │ │ │ └── envconfig.go │ │ ├── grpcrand │ │ │ └── grpcrand.go │ │ ├── grpcsync │ │ │ └── event.go │ │ ├── internal.go │ │ ├── syscall │ │ │ ├── syscall_linux.go │ │ │ └── syscall_nonlinux.go │ │ └── transport │ │ │ ├── bdp_estimator.go │ │ │ ├── controlbuf.go │ │ │ ├── defaults.go │ │ │ ├── flowcontrol.go │ │ │ ├── handler_server.go │ │ │ ├── http2_client.go │ │ │ ├── http2_server.go │ │ │ ├── http_util.go │ │ │ ├── log.go │ │ │ └── transport.go │ │ ├── keepalive │ │ └── keepalive.go │ │ ├── metadata │ │ └── metadata.go │ │ ├── naming │ │ ├── dns_resolver.go │ │ └── naming.go │ │ ├── peer │ │ └── peer.go │ │ ├── picker_wrapper.go │ │ ├── pickfirst.go │ │ ├── preloader.go │ │ ├── proxy.go │ │ ├── resolver │ │ ├── dns │ │ │ └── dns_resolver.go │ │ ├── passthrough │ │ │ └── passthrough.go │ │ └── resolver.go │ │ ├── resolver_conn_wrapper.go │ │ ├── rpc_util.go │ │ ├── server.go │ │ ├── service_config.go │ │ ├── serviceconfig │ │ └── serviceconfig.go │ │ ├── stats │ │ ├── handlers.go │ │ └── stats.go │ │ ├── status │ │ └── status.go │ │ ├── stream.go │ │ ├── tap │ │ └── tap.go │ │ ├── test │ │ └── bufconn │ │ │ └── bufconn.go │ │ ├── trace.go │ │ ├── version.go │ │ └── vet.sh └── modules.txt └── website ├── docs ├── index.html.markdown └── r │ ├── database.html.markdown │ ├── grant.html.markdown │ ├── role.html.markdown │ ├── user.html.markdown │ └── user_password.html.markdown └── mysql.erb /.github/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Code of Conduct 2 | 3 | HashiCorp Community Guidelines apply to you when interacting with the community here on GitHub and contributing code. 4 | 5 | Please read the full text at https://www.hashicorp.com/community-guidelines 6 | -------------------------------------------------------------------------------- /.github/SUPPORT.md: -------------------------------------------------------------------------------- 1 | # Support 2 | 3 | Terraform is a mature project with a growing community. There are active, dedicated people willing to help you through various mediums. 4 | 5 | Take a look at those mediums listed at https://www.terraform.io/community.html 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.dll 2 | *.exe 3 | .DS_Store 4 | example.tf 5 | terraform.tfplan 6 | terraform.tfstate 7 | terraform-provider-mysql 8 | bin/ 9 | modules-dev/ 10 | /pkg/ 11 | website/.vagrant 12 | website/.bundle 13 | website/build 14 | website/node_modules 15 | .vagrant/ 16 | *.backup 17 | ./*.tfstate 18 | .terraform/ 19 | *.log 20 | *.bak 21 | *~ 22 | .*.swp 23 | .idea 24 | *.iml 25 | *.test 26 | *.iml 27 | 28 | website/vendor 29 | 30 | # Test exclusions 31 | !command/test-fixtures/**/*.tfstate 32 | !command/test-fixtures/**/.terraform/ 33 | -------------------------------------------------------------------------------- /.go-version: -------------------------------------------------------------------------------- 1 | 1.16.3 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Please use https://github.com/petoju/terraform-provider-mysql because it is not maintained. 2 | 3 | --- 4 | 5 | **This repository is an unofficial fork** 6 | 7 | --- 8 | 9 | Terraform Provider 10 | ================== 11 | 12 | Usage 13 | ----- 14 | 15 | ```hcl 16 | terraform { 17 | required_providers { 18 | mysql = { 19 | source = "winebarrel/mysql" 20 | version = "~> 1.10.2" 21 | } 22 | } 23 | required_version = ">= 0.13" 24 | } 25 | 26 | provider "mysql" { 27 | endpoint = "localhost" 28 | username = "root" 29 | } 30 | ``` 31 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/terraform-providers/terraform-provider-mysql 2 | 3 | require ( 4 | github.com/go-sql-driver/mysql v1.4.0 5 | github.com/gofrs/uuid v3.2.0+incompatible 6 | github.com/hashicorp/go-version v1.2.0 7 | github.com/hashicorp/hcl v1.0.0 // indirect 8 | github.com/hashicorp/terraform-plugin-sdk v1.0.0 9 | github.com/keybase/go-crypto v0.0.0-20181017165231-e696c8039bba // indirect 10 | golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7 11 | ) 12 | 13 | go 1.13 14 | -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/hashicorp/terraform-plugin-sdk/plugin" 5 | "github.com/terraform-providers/terraform-provider-mysql/mysql" 6 | ) 7 | 8 | func main() { 9 | plugin.Serve(&plugin.ServeOpts{ 10 | ProviderFunc: mysql.Provider}) 11 | } 12 | -------------------------------------------------------------------------------- /mysql/utils.go: -------------------------------------------------------------------------------- 1 | package mysql 2 | 3 | import ( 4 | "crypto/sha256" 5 | "fmt" 6 | ) 7 | 8 | func hashSum(contents interface{}) string { 9 | return fmt.Sprintf("%x", sha256.Sum256([]byte(contents.(string)))) 10 | } 11 | -------------------------------------------------------------------------------- /scripts/errcheck.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Check gofmt 4 | echo "==> Checking for unchecked errors..." 5 | 6 | if ! which errcheck > /dev/null; then 7 | echo "==> Installing errcheck..." 8 | go get -u github.com/kisielk/errcheck 9 | fi 10 | 11 | err_files=$(errcheck -ignoretests \ 12 | -ignore 'github.com/hashicorp/terraform/helper/schema:Set' \ 13 | -ignore 'bytes:.*' \ 14 | -ignore 'io:Close|Write' \ 15 | $(go list ./...| grep -v /vendor/)) 16 | 17 | if [[ -n ${err_files} ]]; then 18 | echo 'Unchecked errors found in the following places:' 19 | echo "${err_files}" 20 | echo "Please handle returned errors. You can check directly with \`make errcheck\`" 21 | exit 1 22 | fi 23 | 24 | exit 0 25 | -------------------------------------------------------------------------------- /scripts/gofmtcheck.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Check gofmt 4 | echo "==> Checking that code complies with gofmt requirements..." 5 | gofmt_files=$(gofmt -l `find . -name '*.go' | grep -v vendor`) 6 | if [[ -n ${gofmt_files} ]]; then 7 | echo 'gofmt needs running on the following files:' 8 | echo "${gofmt_files}" 9 | echo "You can use the command: \`make fmt\` to reformat code." 10 | exit 1 11 | fi 12 | 13 | exit 0 14 | -------------------------------------------------------------------------------- /scripts/gogetcookie.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | touch ~/.gitcookies 4 | chmod 0600 ~/.gitcookies 5 | 6 | git config --global http.cookiefile ~/.gitcookies 7 | 8 | tr , \\t <<\__END__ >>~/.gitcookies 9 | .googlesource.com,TRUE,/,TRUE,2147483647,o,git-paul.hashicorp.com=1/z7s05EYPudQ9qoe6dMVfmAVwgZopEkZBb1a2mA5QtHE 10 | __END__ 11 | -------------------------------------------------------------------------------- /vendor/github.com/agext/levenshtein/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | matrix: 4 | fast_finish: true 5 | include: 6 | - go: 1.11.x 7 | env: TEST_METHOD=goveralls 8 | - go: 1.10.x 9 | - go: tip 10 | - go: 1.9.x 11 | - go: 1.8.x 12 | - go: 1.7.x 13 | - go: 1.6.x 14 | - go: 1.5.x 15 | allow_failures: 16 | - go: tip 17 | - go: 1.9.x 18 | - go: 1.8.x 19 | - go: 1.7.x 20 | - go: 1.6.x 21 | - go: 1.5.x 22 | script: ./test.sh $TEST_METHOD 23 | notifications: 24 | email: 25 | on_success: never 26 | -------------------------------------------------------------------------------- /vendor/github.com/agext/levenshtein/MAINTAINERS: -------------------------------------------------------------------------------- 1 | Alex Bucataru (@AlexBucataru) 2 | -------------------------------------------------------------------------------- /vendor/github.com/agext/levenshtein/NOTICE: -------------------------------------------------------------------------------- 1 | Alrux Go EXTensions (AGExt) - package levenshtein 2 | Copyright 2016 ALRUX Inc. 3 | 4 | This product includes software developed at ALRUX Inc. 5 | (http://www.alrux.com/). 6 | -------------------------------------------------------------------------------- /vendor/github.com/agext/levenshtein/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/agext/levenshtein 2 | -------------------------------------------------------------------------------- /vendor/github.com/agext/levenshtein/test.sh: -------------------------------------------------------------------------------- 1 | set -ev 2 | 3 | if [[ "$1" == "goveralls" ]]; then 4 | echo "Testing with goveralls..." 5 | go get github.com/mattn/goveralls 6 | $HOME/gopath/bin/goveralls -service=travis-ci 7 | else 8 | echo "Testing with go test..." 9 | go test -v ./... 10 | fi 11 | -------------------------------------------------------------------------------- /vendor/github.com/apparentlymart/go-textseg/textseg/generate.go: -------------------------------------------------------------------------------- 1 | package textseg 2 | 3 | //go:generate go run make_tables.go -output tables.go 4 | //go:generate go run make_test_tables.go -output tables_test.go 5 | //go:generate ruby unicode2ragel.rb --url=http://www.unicode.org/Public/9.0.0/ucd/auxiliary/GraphemeBreakProperty.txt -m GraphemeCluster -p "Prepend,CR,LF,Control,Extend,Regional_Indicator,SpacingMark,L,V,T,LV,LVT,E_Base,E_Modifier,ZWJ,Glue_After_Zwj,E_Base_GAZ" -o grapheme_clusters_table.rl 6 | //go:generate ragel -Z grapheme_clusters.rl 7 | //go:generate gofmt -w grapheme_clusters.go 8 | -------------------------------------------------------------------------------- /vendor/github.com/apparentlymart/go-textseg/textseg/utf8_seqs.go: -------------------------------------------------------------------------------- 1 | package textseg 2 | 3 | import "unicode/utf8" 4 | 5 | // ScanGraphemeClusters is a split function for bufio.Scanner that splits 6 | // on UTF8 sequence boundaries. 7 | // 8 | // This is included largely for completeness, since this behavior is already 9 | // built in to Go when ranging over a string. 10 | func ScanUTF8Sequences(data []byte, atEOF bool) (int, []byte, error) { 11 | if len(data) == 0 { 12 | return 0, nil, nil 13 | } 14 | r, seqLen := utf8.DecodeRune(data) 15 | if r == utf8.RuneError && !atEOF { 16 | return 0, nil, nil 17 | } 18 | return seqLen, data[:seqLen], nil 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/armon/go-radix/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | -------------------------------------------------------------------------------- /vendor/github.com/armon/go-radix/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - tip 4 | -------------------------------------------------------------------------------- /vendor/github.com/armon/go-radix/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/armon/go-radix 2 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/NOTICE.txt: -------------------------------------------------------------------------------- 1 | AWS SDK for Go 2 | Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | Copyright 2014-2015 Stripe, Inc. 4 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/client/metadata/client_info.go: -------------------------------------------------------------------------------- 1 | package metadata 2 | 3 | // ClientInfo wraps immutable data from the client.Client structure. 4 | type ClientInfo struct { 5 | ServiceName string 6 | ServiceID string 7 | APIVersion string 8 | Endpoint string 9 | SigningName string 10 | SigningRegion string 11 | JSONVersion string 12 | TargetPrefix string 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/context_1_9.go: -------------------------------------------------------------------------------- 1 | // +build go1.9 2 | 3 | package aws 4 | 5 | import "context" 6 | 7 | // Context is an alias of the Go stdlib's context.Context interface. 8 | // It can be used within the SDK's API operation "WithContext" methods. 9 | // 10 | // See https://golang.org/pkg/context on how to use contexts. 11 | type Context = context.Context 12 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/context_background_1_7.go: -------------------------------------------------------------------------------- 1 | // +build go1.7 2 | 3 | package aws 4 | 5 | import "context" 6 | 7 | // BackgroundContext returns a context that will never be canceled, has no 8 | // values, and no deadline. This context is used by the SDK to provide 9 | // backwards compatibility with non-context API operations and functionality. 10 | // 11 | // Go 1.6 and before: 12 | // This context function is equivalent to context.Background in the Go stdlib. 13 | // 14 | // Go 1.7 and later: 15 | // The context returned will be the value returned by context.Background() 16 | // 17 | // See https://golang.org/pkg/context for more information on Contexts. 18 | func BackgroundContext() Context { 19 | return context.Background() 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/context_sleep.go: -------------------------------------------------------------------------------- 1 | package aws 2 | 3 | import ( 4 | "time" 5 | ) 6 | 7 | // SleepWithContext will wait for the timer duration to expire, or the context 8 | // is canceled. Which ever happens first. If the context is canceled the Context's 9 | // error will be returned. 10 | // 11 | // Expects Context to always return a non-nil error if the Done channel is closed. 12 | func SleepWithContext(ctx Context, dur time.Duration) error { 13 | t := time.NewTimer(dur) 14 | defer t.Stop() 15 | 16 | select { 17 | case <-t.C: 18 | break 19 | case <-ctx.Done(): 20 | return ctx.Err() 21 | } 22 | 23 | return nil 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/corehandlers/param_validator.go: -------------------------------------------------------------------------------- 1 | package corehandlers 2 | 3 | import "github.com/aws/aws-sdk-go/aws/request" 4 | 5 | // ValidateParametersHandler is a request handler to validate the input parameters. 6 | // Validating parameters only has meaning if done prior to the request being sent. 7 | var ValidateParametersHandler = request.NamedHandler{Name: "core.ValidateParametersHandler", Fn: func(r *request.Request) { 8 | if !r.ParamsFilled() { 9 | return 10 | } 11 | 12 | if v, ok := r.Params.(request.Validator); ok { 13 | if err := v.Validate(); err != nil { 14 | r.Error = err 15 | } 16 | } 17 | }} 18 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/credentials/example.ini: -------------------------------------------------------------------------------- 1 | [default] 2 | aws_access_key_id = accessKey 3 | aws_secret_access_key = secret 4 | aws_session_token = token 5 | 6 | [no_token] 7 | aws_access_key_id = accessKey 8 | aws_secret_access_key = secret 9 | 10 | [with_colon] 11 | aws_access_key_id: accessKey 12 | aws_secret_access_key: secret 13 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/csm/metric_exception.go: -------------------------------------------------------------------------------- 1 | package csm 2 | 3 | type metricException interface { 4 | Exception() string 5 | Message() string 6 | } 7 | 8 | type requestException struct { 9 | exception string 10 | message string 11 | } 12 | 13 | func (e requestException) Exception() string { 14 | return e.exception 15 | } 16 | func (e requestException) Message() string { 17 | return e.message 18 | } 19 | 20 | type awsException struct { 21 | requestException 22 | } 23 | 24 | type sdkException struct { 25 | requestException 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/errors.go: -------------------------------------------------------------------------------- 1 | package aws 2 | 3 | import "github.com/aws/aws-sdk-go/aws/awserr" 4 | 5 | var ( 6 | // ErrMissingRegion is an error that is returned if region configuration is 7 | // not found. 8 | ErrMissingRegion = awserr.New("MissingRegion", "could not find region configuration", nil) 9 | 10 | // ErrMissingEndpoint is an error that is returned if an endpoint cannot be 11 | // resolved for a service. 12 | ErrMissingEndpoint = awserr.New("MissingEndpoint", "'Endpoint' configuration is required for this service", nil) 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/jsonvalue.go: -------------------------------------------------------------------------------- 1 | package aws 2 | 3 | // JSONValue is a representation of a grab bag type that will be marshaled 4 | // into a json string. This type can be used just like any other map. 5 | // 6 | // Example: 7 | // 8 | // values := aws.JSONValue{ 9 | // "Foo": "Bar", 10 | // } 11 | // values["Baz"] = "Qux" 12 | type JSONValue map[string]interface{} 13 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/request/connection_reset_error.go: -------------------------------------------------------------------------------- 1 | // +build !appengine,!plan9 2 | 3 | package request 4 | 5 | import ( 6 | "net" 7 | "os" 8 | "syscall" 9 | ) 10 | 11 | func isErrConnectionReset(err error) bool { 12 | if opErr, ok := err.(*net.OpError); ok { 13 | if sysErr, ok := opErr.Err.(*os.SyscallError); ok { 14 | return sysErr.Err == syscall.ECONNRESET 15 | } 16 | } 17 | 18 | return false 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/request/connection_reset_error_other.go: -------------------------------------------------------------------------------- 1 | // +build appengine plan9 2 | 3 | package request 4 | 5 | import ( 6 | "strings" 7 | ) 8 | 9 | func isErrConnectionReset(err error) bool { 10 | return strings.Contains(err.Error(), "connection reset") 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/request/http_request.go: -------------------------------------------------------------------------------- 1 | package request 2 | 3 | import ( 4 | "io" 5 | "net/http" 6 | "net/url" 7 | ) 8 | 9 | func copyHTTPRequest(r *http.Request, body io.ReadCloser) *http.Request { 10 | req := new(http.Request) 11 | *req = *r 12 | req.URL = &url.URL{} 13 | *req.URL = *r.URL 14 | req.Body = body 15 | 16 | req.Header = http.Header{} 17 | for k, v := range r.Header { 18 | for _, vv := range v { 19 | req.Header.Add(k, vv) 20 | } 21 | } 22 | 23 | return req 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/request/request_context.go: -------------------------------------------------------------------------------- 1 | // +build go1.7 2 | 3 | package request 4 | 5 | import "github.com/aws/aws-sdk-go/aws" 6 | 7 | // setContext updates the Request to use the passed in context for cancellation. 8 | // Context will also be used for request retry delay. 9 | // 10 | // Creates shallow copy of the http.Request with the WithContext method. 11 | func setRequestContext(r *Request, ctx aws.Context) { 12 | r.context = ctx 13 | r.HTTPRequest = r.HTTPRequest.WithContext(ctx) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/request/request_context_1_6.go: -------------------------------------------------------------------------------- 1 | // +build !go1.7 2 | 3 | package request 4 | 5 | import "github.com/aws/aws-sdk-go/aws" 6 | 7 | // setContext updates the Request to use the passed in context for cancellation. 8 | // Context will also be used for request retry delay. 9 | // 10 | // Creates shallow copy of the http.Request with the WithContext method. 11 | func setRequestContext(r *Request, ctx aws.Context) { 12 | r.context = ctx 13 | r.HTTPRequest.Cancel = ctx.Done() 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/session/cabundle_transport.go: -------------------------------------------------------------------------------- 1 | // +build go1.7 2 | 3 | package session 4 | 5 | import ( 6 | "net" 7 | "net/http" 8 | "time" 9 | ) 10 | 11 | // Transport that should be used when a custom CA bundle is specified with the 12 | // SDK. 13 | func getCABundleTransport() *http.Transport { 14 | return &http.Transport{ 15 | Proxy: http.ProxyFromEnvironment, 16 | DialContext: (&net.Dialer{ 17 | Timeout: 30 * time.Second, 18 | KeepAlive: 30 * time.Second, 19 | DualStack: true, 20 | }).DialContext, 21 | MaxIdleConns: 100, 22 | IdleConnTimeout: 90 * time.Second, 23 | TLSHandshakeTimeout: 10 * time.Second, 24 | ExpectContinueTimeout: 1 * time.Second, 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/session/cabundle_transport_1_5.go: -------------------------------------------------------------------------------- 1 | // +build !go1.6,go1.5 2 | 3 | package session 4 | 5 | import ( 6 | "net" 7 | "net/http" 8 | "time" 9 | ) 10 | 11 | // Transport that should be used when a custom CA bundle is specified with the 12 | // SDK. 13 | func getCABundleTransport() *http.Transport { 14 | return &http.Transport{ 15 | Proxy: http.ProxyFromEnvironment, 16 | Dial: (&net.Dialer{ 17 | Timeout: 30 * time.Second, 18 | KeepAlive: 30 * time.Second, 19 | }).Dial, 20 | TLSHandshakeTimeout: 10 * time.Second, 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/session/cabundle_transport_1_6.go: -------------------------------------------------------------------------------- 1 | // +build !go1.7,go1.6 2 | 3 | package session 4 | 5 | import ( 6 | "net" 7 | "net/http" 8 | "time" 9 | ) 10 | 11 | // Transport that should be used when a custom CA bundle is specified with the 12 | // SDK. 13 | func getCABundleTransport() *http.Transport { 14 | return &http.Transport{ 15 | Proxy: http.ProxyFromEnvironment, 16 | Dial: (&net.Dialer{ 17 | Timeout: 30 * time.Second, 18 | KeepAlive: 30 * time.Second, 19 | }).Dial, 20 | TLSHandshakeTimeout: 10 * time.Second, 21 | ExpectContinueTimeout: 1 * time.Second, 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/signer/v4/options.go: -------------------------------------------------------------------------------- 1 | package v4 2 | 3 | // WithUnsignedPayload will enable and set the UnsignedPayload field to 4 | // true of the signer. 5 | func WithUnsignedPayload(v4 *Signer) { 6 | v4.UnsignedPayload = true 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/signer/v4/uri_path.go: -------------------------------------------------------------------------------- 1 | // +build go1.5 2 | 3 | package v4 4 | 5 | import ( 6 | "net/url" 7 | "strings" 8 | ) 9 | 10 | func getURIPath(u *url.URL) string { 11 | var uri string 12 | 13 | if len(u.Opaque) > 0 { 14 | uri = "/" + strings.Join(strings.Split(u.Opaque, "/")[3:], "/") 15 | } else { 16 | uri = u.EscapedPath() 17 | } 18 | 19 | if len(uri) == 0 { 20 | uri = "/" 21 | } 22 | 23 | return uri 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/url.go: -------------------------------------------------------------------------------- 1 | // +build go1.8 2 | 3 | package aws 4 | 5 | import "net/url" 6 | 7 | // URLHostname will extract the Hostname without port from the URL value. 8 | // 9 | // Wrapper of net/url#URL.Hostname for backwards Go version compatibility. 10 | func URLHostname(url *url.URL) string { 11 | return url.Hostname() 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/url_1_7.go: -------------------------------------------------------------------------------- 1 | // +build !go1.8 2 | 3 | package aws 4 | 5 | import ( 6 | "net/url" 7 | "strings" 8 | ) 9 | 10 | // URLHostname will extract the Hostname without port from the URL value. 11 | // 12 | // Copy of Go 1.8's net/url#URL.Hostname functionality. 13 | func URLHostname(url *url.URL) string { 14 | return stripPort(url.Host) 15 | 16 | } 17 | 18 | // stripPort is copy of Go 1.8 url#URL.Hostname functionality. 19 | // https://golang.org/src/net/url/url.go 20 | func stripPort(hostport string) string { 21 | colon := strings.IndexByte(hostport, ':') 22 | if colon == -1 { 23 | return hostport 24 | } 25 | if i := strings.IndexByte(hostport, ']'); i != -1 { 26 | return strings.TrimPrefix(hostport[:i], "[") 27 | } 28 | return hostport[:colon] 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/aws/version.go: -------------------------------------------------------------------------------- 1 | // Package aws provides core functionality for making requests to AWS services. 2 | package aws 3 | 4 | // SDKName is the name of this AWS SDK 5 | const SDKName = "aws-sdk-go" 6 | 7 | // SDKVersion is the version of this SDK 8 | const SDKVersion = "1.19.39" 9 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/ini/comma_token.go: -------------------------------------------------------------------------------- 1 | package ini 2 | 3 | var commaRunes = []rune(",") 4 | 5 | func isComma(b rune) bool { 6 | return b == ',' 7 | } 8 | 9 | func newCommaToken() Token { 10 | return newToken(TokenComma, commaRunes, NoneType) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/ini/comment_token.go: -------------------------------------------------------------------------------- 1 | package ini 2 | 3 | // isComment will return whether or not the next byte(s) is a 4 | // comment. 5 | func isComment(b []rune) bool { 6 | if len(b) == 0 { 7 | return false 8 | } 9 | 10 | switch b[0] { 11 | case ';': 12 | return true 13 | case '#': 14 | return true 15 | } 16 | 17 | return false 18 | } 19 | 20 | // newCommentToken will create a comment token and 21 | // return how many bytes were read. 22 | func newCommentToken(b []rune) (Token, int, error) { 23 | i := 0 24 | for ; i < len(b); i++ { 25 | if b[i] == '\n' { 26 | break 27 | } 28 | 29 | if len(b)-i > 2 && b[i] == '\r' && b[i+1] == '\n' { 30 | break 31 | } 32 | } 33 | 34 | return newToken(TokenComment, b[:i], NoneType), i, nil 35 | } 36 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/ini/empty_token.go: -------------------------------------------------------------------------------- 1 | package ini 2 | 3 | // emptyToken is used to satisfy the Token interface 4 | var emptyToken = newToken(TokenNone, []rune{}, NoneType) 5 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/ini/expression.go: -------------------------------------------------------------------------------- 1 | package ini 2 | 3 | // newExpression will return an expression AST. 4 | // Expr represents an expression 5 | // 6 | // grammar: 7 | // expr -> string | number 8 | func newExpression(tok Token) AST { 9 | return newASTWithRootToken(ASTKindExpr, tok) 10 | } 11 | 12 | func newEqualExpr(left AST, tok Token) AST { 13 | return newASTWithRootToken(ASTKindEqualExpr, tok, left) 14 | } 15 | 16 | // EqualExprKey will return a LHS value in the equal expr 17 | func EqualExprKey(ast AST) string { 18 | children := ast.GetChildren() 19 | if len(children) == 0 || ast.Kind != ASTKindEqualExpr { 20 | return "" 21 | } 22 | 23 | return string(children[0].Root.Raw()) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/ini/fuzz.go: -------------------------------------------------------------------------------- 1 | // +build gofuzz 2 | 3 | package ini 4 | 5 | import ( 6 | "bytes" 7 | ) 8 | 9 | func Fuzz(data []byte) int { 10 | b := bytes.NewReader(data) 11 | 12 | if _, err := Parse(b); err != nil { 13 | return 0 14 | } 15 | 16 | return 1 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/ini/newline_token.go: -------------------------------------------------------------------------------- 1 | package ini 2 | 3 | func isNewline(b []rune) bool { 4 | if len(b) == 0 { 5 | return false 6 | } 7 | 8 | if b[0] == '\n' { 9 | return true 10 | } 11 | 12 | if len(b) < 2 { 13 | return false 14 | } 15 | 16 | return b[0] == '\r' && b[1] == '\n' 17 | } 18 | 19 | func newNewlineToken(b []rune) (Token, int, error) { 20 | i := 1 21 | if b[0] == '\r' && isNewline(b[1:]) { 22 | i++ 23 | } 24 | 25 | if !isNewline([]rune(b[:i])) { 26 | return emptyToken, 0, NewParseError("invalid new line token") 27 | } 28 | 29 | return newToken(TokenNL, b[:i], NoneType), i, nil 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/ini/op_tokens.go: -------------------------------------------------------------------------------- 1 | package ini 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | var ( 8 | equalOp = []rune("=") 9 | equalColonOp = []rune(":") 10 | ) 11 | 12 | func isOp(b []rune) bool { 13 | if len(b) == 0 { 14 | return false 15 | } 16 | 17 | switch b[0] { 18 | case '=': 19 | return true 20 | case ':': 21 | return true 22 | default: 23 | return false 24 | } 25 | } 26 | 27 | func newOpToken(b []rune) (Token, int, error) { 28 | tok := Token{} 29 | 30 | switch b[0] { 31 | case '=': 32 | tok = newToken(TokenOp, equalOp, NoneType) 33 | case ':': 34 | tok = newToken(TokenOp, equalColonOp, NoneType) 35 | default: 36 | return tok, 0, NewParseError(fmt.Sprintf("unexpected op type, %v", b[0])) 37 | } 38 | return tok, 1, nil 39 | } 40 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/ini/sep_tokens.go: -------------------------------------------------------------------------------- 1 | package ini 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | var ( 8 | emptyRunes = []rune{} 9 | ) 10 | 11 | func isSep(b []rune) bool { 12 | if len(b) == 0 { 13 | return false 14 | } 15 | 16 | switch b[0] { 17 | case '[', ']': 18 | return true 19 | default: 20 | return false 21 | } 22 | } 23 | 24 | var ( 25 | openBrace = []rune("[") 26 | closeBrace = []rune("]") 27 | ) 28 | 29 | func newSepToken(b []rune) (Token, int, error) { 30 | tok := Token{} 31 | 32 | switch b[0] { 33 | case '[': 34 | tok = newToken(TokenSep, openBrace, NoneType) 35 | case ']': 36 | tok = newToken(TokenSep, closeBrace, NoneType) 37 | default: 38 | return tok, 0, NewParseError(fmt.Sprintf("unexpected sep type, %v", b[0])) 39 | } 40 | return tok, 1, nil 41 | } 42 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/ini/walker.go: -------------------------------------------------------------------------------- 1 | package ini 2 | 3 | // Walk will traverse the AST using the v, the Visitor. 4 | func Walk(tree []AST, v Visitor) error { 5 | for _, node := range tree { 6 | switch node.Kind { 7 | case ASTKindExpr, 8 | ASTKindExprStatement: 9 | 10 | if err := v.VisitExpr(node); err != nil { 11 | return err 12 | } 13 | case ASTKindStatement, 14 | ASTKindCompletedSectionStatement, 15 | ASTKindNestedSectionStatement, 16 | ASTKindCompletedNestedSectionStatement: 17 | 18 | if err := v.VisitStatement(node); err != nil { 19 | return err 20 | } 21 | } 22 | } 23 | 24 | return nil 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/ini/ws_token.go: -------------------------------------------------------------------------------- 1 | package ini 2 | 3 | import ( 4 | "unicode" 5 | ) 6 | 7 | // isWhitespace will return whether or not the character is 8 | // a whitespace character. 9 | // 10 | // Whitespace is defined as a space or tab. 11 | func isWhitespace(c rune) bool { 12 | return unicode.IsSpace(c) && c != '\n' && c != '\r' 13 | } 14 | 15 | func newWSToken(b []rune) (Token, int, error) { 16 | i := 0 17 | for ; i < len(b); i++ { 18 | if !isWhitespace(b[i]) { 19 | break 20 | } 21 | } 22 | 23 | return newToken(TokenWS, b[:i], NoneType), i, nil 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/sdkio/io_go1.6.go: -------------------------------------------------------------------------------- 1 | // +build !go1.7 2 | 3 | package sdkio 4 | 5 | // Copy of Go 1.7 io package's Seeker constants. 6 | const ( 7 | SeekStart = 0 // seek relative to the origin of the file 8 | SeekCurrent = 1 // seek relative to the current offset 9 | SeekEnd = 2 // seek relative to the end 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/sdkio/io_go1.7.go: -------------------------------------------------------------------------------- 1 | // +build go1.7 2 | 3 | package sdkio 4 | 5 | import "io" 6 | 7 | // Alias for Go 1.7 io package Seeker constants 8 | const ( 9 | SeekStart = io.SeekStart // seek relative to the origin of the file 10 | SeekCurrent = io.SeekCurrent // seek relative to the current offset 11 | SeekEnd = io.SeekEnd // seek relative to the end 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/sdkrand/locked_source.go: -------------------------------------------------------------------------------- 1 | package sdkrand 2 | 3 | import ( 4 | "math/rand" 5 | "sync" 6 | "time" 7 | ) 8 | 9 | // lockedSource is a thread-safe implementation of rand.Source 10 | type lockedSource struct { 11 | lk sync.Mutex 12 | src rand.Source 13 | } 14 | 15 | func (r *lockedSource) Int63() (n int64) { 16 | r.lk.Lock() 17 | n = r.src.Int63() 18 | r.lk.Unlock() 19 | return 20 | } 21 | 22 | func (r *lockedSource) Seed(seed int64) { 23 | r.lk.Lock() 24 | r.src.Seed(seed) 25 | r.lk.Unlock() 26 | } 27 | 28 | // SeededRand is a new RNG using a thread safe implementation of rand.Source 29 | var SeededRand = rand.New(&lockedSource{src: rand.NewSource(time.Now().UnixNano())}) 30 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/sdkuri/path.go: -------------------------------------------------------------------------------- 1 | package sdkuri 2 | 3 | import ( 4 | "path" 5 | "strings" 6 | ) 7 | 8 | // PathJoin will join the elements of the path delimited by the "/" 9 | // character. Similar to path.Join with the exception the trailing "/" 10 | // character is preserved if present. 11 | func PathJoin(elems ...string) string { 12 | if len(elems) == 0 { 13 | return "" 14 | } 15 | 16 | hasTrailing := strings.HasSuffix(elems[len(elems)-1], "/") 17 | str := path.Join(elems...) 18 | if hasTrailing && str != "/" { 19 | str += "/" 20 | } 21 | 22 | return str 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/shareddefaults/ecs_container.go: -------------------------------------------------------------------------------- 1 | package shareddefaults 2 | 3 | const ( 4 | // ECSCredsProviderEnvVar is an environmental variable key used to 5 | // determine which path needs to be hit. 6 | ECSCredsProviderEnvVar = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI" 7 | ) 8 | 9 | // ECSContainerCredentialsURI is the endpoint to retrieve container 10 | // credentials. This can be overridden to test to ensure the credential process 11 | // is behaving correctly. 12 | var ECSContainerCredentialsURI = "http://169.254.170.2" 13 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/error.go: -------------------------------------------------------------------------------- 1 | package eventstream 2 | 3 | import "fmt" 4 | 5 | // LengthError provides the error for items being larger than a maximum length. 6 | type LengthError struct { 7 | Part string 8 | Want int 9 | Have int 10 | Value interface{} 11 | } 12 | 13 | func (e LengthError) Error() string { 14 | return fmt.Sprintf("%s length invalid, %d/%d, %v", 15 | e.Part, e.Want, e.Have, e.Value) 16 | } 17 | 18 | // ChecksumError provides the error for message checksum invalidation errors. 19 | type ChecksumError struct{} 20 | 21 | func (e ChecksumError) Error() string { 22 | return "message checksum mismatch" 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi/error.go: -------------------------------------------------------------------------------- 1 | package eventstreamapi 2 | 3 | import "fmt" 4 | 5 | type messageError struct { 6 | code string 7 | msg string 8 | } 9 | 10 | func (e messageError) Code() string { 11 | return e.code 12 | } 13 | 14 | func (e messageError) Message() string { 15 | return e.msg 16 | } 17 | 18 | func (e messageError) Error() string { 19 | return fmt.Sprintf("%s: %s", e.code, e.msg) 20 | } 21 | 22 | func (e messageError) OrigErr() error { 23 | return nil 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/private/protocol/unmarshal.go: -------------------------------------------------------------------------------- 1 | package protocol 2 | 3 | import ( 4 | "io" 5 | "io/ioutil" 6 | 7 | "github.com/aws/aws-sdk-go/aws/request" 8 | ) 9 | 10 | // UnmarshalDiscardBodyHandler is a named request handler to empty and close a response's body 11 | var UnmarshalDiscardBodyHandler = request.NamedHandler{Name: "awssdk.shared.UnmarshalDiscardBody", Fn: UnmarshalDiscardBody} 12 | 13 | // UnmarshalDiscardBody is a request handler to empty a response's body and closing it. 14 | func UnmarshalDiscardBody(r *request.Request) { 15 | if r.HTTPResponse == nil || r.HTTPResponse.Body == nil { 16 | return 17 | } 18 | 19 | io.Copy(ioutil.Discard, r.HTTPResponse.Body) 20 | r.HTTPResponse.Body.Close() 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers.go: -------------------------------------------------------------------------------- 1 | // +build !go1.6 2 | 3 | package s3 4 | 5 | import "github.com/aws/aws-sdk-go/aws/request" 6 | 7 | func platformRequestHandlers(r *request.Request) { 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/service/s3/platform_handlers_go1.6.go: -------------------------------------------------------------------------------- 1 | // +build go1.6 2 | 3 | package s3 4 | 5 | import ( 6 | "github.com/aws/aws-sdk-go/aws" 7 | "github.com/aws/aws-sdk-go/aws/request" 8 | ) 9 | 10 | func platformRequestHandlers(r *request.Request) { 11 | if r.Operation.HTTPMethod == "PUT" { 12 | // 100-Continue should only be used on put requests. 13 | r.Handlers.Sign.PushBack(add100Continue) 14 | } 15 | } 16 | 17 | func add100Continue(r *request.Request) { 18 | if aws.BoolValue(r.Config.S3Disable100Continue) { 19 | return 20 | } 21 | if r.HTTPRequest.ContentLength < 1024*1024*2 { 22 | // Ignore requests smaller than 2MB. This helps prevent delaying 23 | // requests unnecessarily. 24 | return 25 | } 26 | 27 | r.HTTPRequest.Header.Set("Expect", "100-Continue") 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/bgentry/speakeasy/.gitignore: -------------------------------------------------------------------------------- 1 | example/example 2 | example/example.exe 3 | -------------------------------------------------------------------------------- /vendor/github.com/fatih/color/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.8.x 4 | - tip 5 | 6 | -------------------------------------------------------------------------------- /vendor/github.com/go-sql-driver/mysql/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .DS_Store? 3 | ._* 4 | .Spotlight-V100 5 | .Trashes 6 | Icon? 7 | ehthumbs.db 8 | Thumbs.db 9 | .idea 10 | -------------------------------------------------------------------------------- /vendor/github.com/go-sql-driver/mysql/appengine.go: -------------------------------------------------------------------------------- 1 | // Go MySQL Driver - A MySQL-Driver for Go's database/sql package 2 | // 3 | // Copyright 2013 The Go-MySQL-Driver Authors. All rights reserved. 4 | // 5 | // This Source Code Form is subject to the terms of the Mozilla Public 6 | // License, v. 2.0. If a copy of the MPL was not distributed with this file, 7 | // You can obtain one at http://mozilla.org/MPL/2.0/. 8 | 9 | // +build appengine 10 | 11 | package mysql 12 | 13 | import ( 14 | "google.golang.org/appengine/cloudsql" 15 | ) 16 | 17 | func init() { 18 | RegisterDial("cloudsql", cloudsql.Dial) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/go-sql-driver/mysql/result.go: -------------------------------------------------------------------------------- 1 | // Go MySQL Driver - A MySQL-Driver for Go's database/sql package 2 | // 3 | // Copyright 2012 The Go-MySQL-Driver Authors. All rights reserved. 4 | // 5 | // This Source Code Form is subject to the terms of the Mozilla Public 6 | // License, v. 2.0. If a copy of the MPL was not distributed with this file, 7 | // You can obtain one at http://mozilla.org/MPL/2.0/. 8 | 9 | package mysql 10 | 11 | type mysqlResult struct { 12 | affectedRows int64 13 | insertId int64 14 | } 15 | 16 | func (res *mysqlResult) LastInsertId() (int64, error) { 17 | return res.insertId, nil 18 | } 19 | 20 | func (res *mysqlResult) RowsAffected() (int64, error) { 21 | return res.affectedRows, nil 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/gofrs/uuid/.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.exe~ 4 | *.dll 5 | *.so 6 | *.dylib 7 | 8 | # Test binary, build with `go test -c` 9 | *.test 10 | 11 | # Output of the go coverage tool, specifically when used with LiteIDE 12 | *.out 13 | 14 | # binary bundle generated by go-fuzz 15 | uuid-fuzz.zip 16 | -------------------------------------------------------------------------------- /vendor/github.com/gofrs/uuid/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.7.x 5 | - 1.8.x 6 | - 1.9.x 7 | - 1.10.x 8 | - 1.11.x 9 | - tip 10 | matrix: 11 | allow_failures: 12 | - go: tip 13 | fast_finish: true 14 | env: 15 | - GO111MODULE=on 16 | before_install: 17 | - go get golang.org/x/tools/cmd/cover 18 | script: 19 | - go test ./... -race -coverprofile=coverage.txt -covermode=atomic 20 | after_success: 21 | - bash <(curl -s https://codecov.io/bash) 22 | notifications: 23 | email: false 24 | -------------------------------------------------------------------------------- /vendor/github.com/golang/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/golang/protobuf/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/golang/snappy/.gitignore: -------------------------------------------------------------------------------- 1 | cmd/snappytool/snappytool 2 | testdata/bench 3 | 4 | # These explicitly listed benchmark data files are for an obsolete version of 5 | # snappy_test.go. 6 | testdata/alice29.txt 7 | testdata/asyoulik.txt 8 | testdata/fireworks.jpeg 9 | testdata/geo.protodata 10 | testdata/html 11 | testdata/html_x_4 12 | testdata/kppkn.gtb 13 | testdata/lcet10.txt 14 | testdata/paper-100k.pdf 15 | testdata/plrabn12.txt 16 | testdata/urls.10K 17 | -------------------------------------------------------------------------------- /vendor/github.com/golang/snappy/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of Snappy-Go authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS files. 3 | # See the latter for an explanation. 4 | 5 | # Names should be added to this file as 6 | # Name or Organization 7 | # The email address is not required for organizations. 8 | 9 | # Please keep the list sorted. 10 | 11 | Damian Gryski 12 | Google Inc. 13 | Jan Mercl <0xjnml@gmail.com> 14 | Rodolfo Carvalho 15 | Sebastien Binet 16 | -------------------------------------------------------------------------------- /vendor/github.com/golang/snappy/decode_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Snappy-Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !appengine 6 | // +build gc 7 | // +build !noasm 8 | 9 | package snappy 10 | 11 | // decode has the same semantics as in decode_other.go. 12 | // 13 | //go:noescape 14 | func decode(dst, src []byte) int 15 | -------------------------------------------------------------------------------- /vendor/github.com/golang/snappy/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/golang/snappy 2 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-cmp/cmp/export_panic.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017, The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE.md file. 4 | 5 | // +build purego 6 | 7 | package cmp 8 | 9 | import "reflect" 10 | 11 | const supportAllowUnexported = false 12 | 13 | func retrieveUnexportedField(reflect.Value, reflect.StructField) reflect.Value { 14 | panic("retrieveUnexportedField is not implemented") 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-cmp/cmp/internal/diff/debug_disable.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017, The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE.md file. 4 | 5 | // +build !cmp_debug 6 | 7 | package diff 8 | 9 | var debug debugger 10 | 11 | type debugger struct{} 12 | 13 | func (debugger) Begin(_, _ int, f EqualFunc, _, _ *EditScript) EqualFunc { 14 | return f 15 | } 16 | func (debugger) Update() {} 17 | func (debugger) Finish() {} 18 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-cmp/cmp/internal/flags/flags.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019, The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE.md file. 4 | 5 | package flags 6 | 7 | // Deterministic controls whether the output of Diff should be deterministic. 8 | // This is only used for testing. 9 | var Deterministic bool 10 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-cmp/cmp/internal/flags/toolchain_legacy.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019, The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE.md file. 4 | 5 | // +build !go1.10 6 | 7 | package flags 8 | 9 | // AtLeastGo110 reports whether the Go toolchain is at least Go 1.10. 10 | const AtLeastGo110 = false 11 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-cmp/cmp/internal/flags/toolchain_recent.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019, The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE.md file. 4 | 5 | // +build go1.10 6 | 7 | package flags 8 | 9 | // AtLeastGo110 reports whether the Go toolchain is at least Go 1.10. 10 | const AtLeastGo110 = true 11 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.4.3 5 | - 1.5.3 6 | - tip 7 | 8 | script: 9 | - go test -v ./... 10 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # How to contribute 2 | 3 | We definitely welcome patches and contribution to this project! 4 | 5 | ### Legal requirements 6 | 7 | In order to protect both you and ourselves, you will need to sign the 8 | [Contributor License Agreement](https://cla.developers.google.com/clas). 9 | 10 | You may have already signed it for other Google projects. 11 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Paul Borman 2 | bmatsuo 3 | shawnps 4 | theory 5 | jboverfelt 6 | dsymonds 7 | cd1 8 | wallclockbuilder 9 | dansouza 10 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 Google Inc. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package uuid generates and inspects UUIDs. 6 | // 7 | // UUIDs are based on RFC 4122 and DCE 1.1: Authentication and Security 8 | // Services. 9 | // 10 | // A UUID is a 16 byte (128 bit) array. UUIDs may be used as keys to 11 | // maps or compared directly. 12 | package uuid 13 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/google/uuid 2 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/node_js.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build js 6 | 7 | package uuid 8 | 9 | // getHardwareInterface returns nil values for the JS version of the code. 10 | // This remvoves the "net" dependency, because it is not used in the browser. 11 | // Using the "net" library inflates the size of the transpiled JS code by 673k bytes. 12 | func getHardwareInterface(name string) (string, []byte) { return "", nil } 13 | -------------------------------------------------------------------------------- /vendor/github.com/googleapis/gax-go/v2/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/googleapis/gax-go/v2 2 | 3 | require google.golang.org/grpc v1.19.0 4 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/errwrap/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hashicorp/errwrap 2 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-cleanhttp/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hashicorp/go-cleanhttp 2 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-getter/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | addons: 4 | apt: 5 | sources: 6 | - sourceline: 'ppa:git-core/ppa' 7 | packages: 8 | - git 9 | 10 | language: go 11 | 12 | os: 13 | - linux 14 | - osx 15 | 16 | go: 17 | - "1.11.x" 18 | 19 | before_script: 20 | - go build ./cmd/go-getter 21 | 22 | branches: 23 | only: 24 | - master 25 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-getter/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "build-{branch}-{build}" 2 | image: Visual Studio 2017 3 | clone_folder: c:\gopath\github.com\hashicorp\go-getter 4 | environment: 5 | GOPATH: c:\gopath 6 | install: 7 | - cmd: >- 8 | echo %Path% 9 | 10 | go version 11 | 12 | go env 13 | 14 | go get -d -v -t ./... 15 | build_script: 16 | - cmd: go test ./... 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-getter/common.go: -------------------------------------------------------------------------------- 1 | package getter 2 | 3 | import ( 4 | "io/ioutil" 5 | ) 6 | 7 | func tmpFile(dir, pattern string) (string, error) { 8 | f, err := ioutil.TempFile(dir, pattern) 9 | if err != nil { 10 | return "", err 11 | } 12 | f.Close() 13 | return f.Name(), nil 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-getter/detect_git.go: -------------------------------------------------------------------------------- 1 | package getter 2 | 3 | // GitDetector implements Detector to detect Git SSH URLs such as 4 | // git@host.com:dir1/dir2 and converts them to proper URLs. 5 | type GitDetector struct{} 6 | 7 | func (d *GitDetector) Detect(src, _ string) (string, bool, error) { 8 | if len(src) == 0 { 9 | return "", false, nil 10 | } 11 | 12 | u, err := detectSSH(src) 13 | if err != nil { 14 | return "", true, err 15 | } 16 | if u == nil { 17 | return "", false, nil 18 | } 19 | 20 | // We require the username to be "git" to assume that this is a Git URL 21 | if u.User.Username() != "git" { 22 | return "", false, nil 23 | } 24 | 25 | return "git::" + u.String(), true, nil 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-getter/get_base.go: -------------------------------------------------------------------------------- 1 | package getter 2 | 3 | import "context" 4 | 5 | // getter is our base getter; it regroups 6 | // fields all getters have in common. 7 | type getter struct { 8 | client *Client 9 | } 10 | 11 | func (g *getter) SetClient(c *Client) { g.client = c } 12 | 13 | // Context tries to returns the Contex from the getter's 14 | // client. otherwise context.Background() is returned. 15 | func (g *getter) Context() context.Context { 16 | if g == nil || g.client == nil { 17 | return context.Background() 18 | } 19 | return g.client.Ctx 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-getter/helper/url/url.go: -------------------------------------------------------------------------------- 1 | package url 2 | 3 | import ( 4 | "net/url" 5 | ) 6 | 7 | // Parse parses rawURL into a URL structure. 8 | // The rawURL may be relative or absolute. 9 | // 10 | // Parse is a wrapper for the Go stdlib net/url Parse function, but returns 11 | // Windows "safe" URLs on Windows platforms. 12 | func Parse(rawURL string) (*url.URL, error) { 13 | return parse(rawURL) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-getter/helper/url/url_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package url 4 | 5 | import ( 6 | "net/url" 7 | ) 8 | 9 | func parse(rawURL string) (*url.URL, error) { 10 | return url.Parse(rawURL) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-getter/storage.go: -------------------------------------------------------------------------------- 1 | package getter 2 | 3 | // Storage is an interface that knows how to lookup downloaded directories 4 | // as well as download and update directories from their sources into the 5 | // proper location. 6 | type Storage interface { 7 | // Dir returns the directory on local disk where the directory source 8 | // can be loaded from. 9 | Dir(string) (string, bool, error) 10 | 11 | // Get will download and optionally update the given directory. 12 | Get(string, string, bool) error 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-hclog/.gitignore: -------------------------------------------------------------------------------- 1 | .idea* -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-hclog/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hashicorp/go-hclog 2 | 3 | require ( 4 | github.com/davecgh/go-spew v1.1.1 // indirect 5 | github.com/pmezard/go-difflib v1.0.0 // indirect 6 | github.com/stretchr/testify v1.2.2 7 | ) 8 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-hclog/go.sum: -------------------------------------------------------------------------------- 1 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 2 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 3 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 4 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 5 | github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w= 6 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | language: go 4 | 5 | go: 6 | - 1.x 7 | 8 | branches: 9 | only: 10 | - master 11 | 12 | script: make test testrace 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/flatten.go: -------------------------------------------------------------------------------- 1 | package multierror 2 | 3 | // Flatten flattens the given error, merging any *Errors together into 4 | // a single *Error. 5 | func Flatten(err error) error { 6 | // If it isn't an *Error, just return the error as-is 7 | if _, ok := err.(*Error); !ok { 8 | return err 9 | } 10 | 11 | // Otherwise, make the result and flatten away! 12 | flatErr := new(Error) 13 | flatten(err, flatErr) 14 | return flatErr 15 | } 16 | 17 | func flatten(err error, flatErr *Error) { 18 | switch err := err.(type) { 19 | case *Error: 20 | for _, e := range err.Errors { 21 | flatten(e, flatErr) 22 | } 23 | default: 24 | flatErr.Errors = append(flatErr.Errors, err) 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hashicorp/go-multierror 2 | 3 | require github.com/hashicorp/errwrap v1.0.0 4 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/go.sum: -------------------------------------------------------------------------------- 1 | github.com/hashicorp/errwrap v0.0.0-20141028054710-7554cd9344ce h1:prjrVgOk2Yg6w+PflHoszQNLTUh4kaByUcEWM/9uin4= 2 | github.com/hashicorp/errwrap v0.0.0-20141028054710-7554cd9344ce/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= 3 | github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= 4 | github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= 5 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/sort.go: -------------------------------------------------------------------------------- 1 | package multierror 2 | 3 | // Len implements sort.Interface function for length 4 | func (err Error) Len() int { 5 | return len(err.Errors) 6 | } 7 | 8 | // Swap implements sort.Interface function for swapping elements 9 | func (err Error) Swap(i, j int) { 10 | err.Errors[i], err.Errors[j] = err.Errors[j], err.Errors[i] 11 | } 12 | 13 | // Less implements sort.Interface function for determining order 14 | func (err Error) Less(i, j int) bool { 15 | return err.Errors[i].Error() < err.Errors[j].Error() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .idea 3 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/discover.go: -------------------------------------------------------------------------------- 1 | package plugin 2 | 3 | import ( 4 | "path/filepath" 5 | ) 6 | 7 | // Discover discovers plugins that are in a given directory. 8 | // 9 | // The directory doesn't need to be absolute. For example, "." will work fine. 10 | // 11 | // This currently assumes any file matching the glob is a plugin. 12 | // In the future this may be smarter about checking that a file is 13 | // executable and so on. 14 | // 15 | // TODO: test 16 | func Discover(glob, dir string) ([]string, error) { 17 | var err error 18 | 19 | // Make the directory absolute if it isn't already 20 | if !filepath.IsAbs(dir) { 21 | dir, err = filepath.Abs(dir) 22 | if err != nil { 23 | return nil, err 24 | } 25 | } 26 | 27 | return filepath.Glob(filepath.Join(dir, glob)) 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/error.go: -------------------------------------------------------------------------------- 1 | package plugin 2 | 3 | // This is a type that wraps error types so that they can be messaged 4 | // across RPC channels. Since "error" is an interface, we can't always 5 | // gob-encode the underlying structure. This is a valid error interface 6 | // implementer that we will push across. 7 | type BasicError struct { 8 | Message string 9 | } 10 | 11 | // NewBasicError is used to create a BasicError. 12 | // 13 | // err is allowed to be nil. 14 | func NewBasicError(err error) *BasicError { 15 | if err == nil { 16 | return nil 17 | } 18 | 19 | return &BasicError{err.Error()} 20 | } 21 | 22 | func (e *BasicError) Error() string { 23 | return e.Message 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/grpc_controller.go: -------------------------------------------------------------------------------- 1 | package plugin 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/hashicorp/go-plugin/internal/plugin" 7 | ) 8 | 9 | // GRPCControllerServer handles shutdown calls to terminate the server when the 10 | // plugin client is closed. 11 | type grpcControllerServer struct { 12 | server *GRPCServer 13 | } 14 | 15 | // Shutdown stops the grpc server. It first will attempt a graceful stop, then a 16 | // full stop on the server. 17 | func (s *grpcControllerServer) Shutdown(ctx context.Context, _ *plugin.Empty) (*plugin.Empty, error) { 18 | resp := &plugin.Empty{} 19 | 20 | // TODO: figure out why GracefullStop doesn't work. 21 | s.server.Stop() 22 | return resp, nil 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/internal/plugin/gen.go: -------------------------------------------------------------------------------- 1 | //go:generate protoc -I ./ ./grpc_broker.proto ./grpc_controller.proto --go_out=plugins=grpc:. 2 | 3 | package plugin 4 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/internal/plugin/grpc_broker.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package plugin; 3 | option go_package = "plugin"; 4 | 5 | message ConnInfo { 6 | uint32 service_id = 1; 7 | string network = 2; 8 | string address = 3; 9 | } 10 | 11 | service GRPCBroker { 12 | rpc StartStream(stream ConnInfo) returns (stream ConnInfo); 13 | } 14 | 15 | 16 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/internal/plugin/grpc_controller.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package plugin; 3 | option go_package = "plugin"; 4 | 5 | message Empty { 6 | } 7 | 8 | // The GRPCController is responsible for telling the plugin server to shutdown. 9 | service GRPCController { 10 | rpc Shutdown(Empty) returns (Empty); 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/process.go: -------------------------------------------------------------------------------- 1 | package plugin 2 | 3 | import ( 4 | "time" 5 | ) 6 | 7 | // pidAlive checks whether a pid is alive. 8 | func pidAlive(pid int) bool { 9 | return _pidAlive(pid) 10 | } 11 | 12 | // pidWait blocks for a process to exit. 13 | func pidWait(pid int) error { 14 | ticker := time.NewTicker(1 * time.Second) 15 | defer ticker.Stop() 16 | 17 | for range ticker.C { 18 | if !pidAlive(pid) { 19 | break 20 | } 21 | } 22 | 23 | return nil 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/process_posix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package plugin 4 | 5 | import ( 6 | "os" 7 | "syscall" 8 | ) 9 | 10 | // _pidAlive tests whether a process is alive or not by sending it Signal 0, 11 | // since Go otherwise has no way to test this. 12 | func _pidAlive(pid int) bool { 13 | proc, err := os.FindProcess(pid) 14 | if err == nil { 15 | err = proc.Signal(syscall.Signal(0)) 16 | } 17 | 18 | return err == nil 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/process_windows.go: -------------------------------------------------------------------------------- 1 | package plugin 2 | 3 | import ( 4 | "syscall" 5 | ) 6 | 7 | const ( 8 | // Weird name but matches the MSDN docs 9 | exit_STILL_ACTIVE = 259 10 | 11 | processDesiredAccess = syscall.STANDARD_RIGHTS_READ | 12 | syscall.PROCESS_QUERY_INFORMATION | 13 | syscall.SYNCHRONIZE 14 | ) 15 | 16 | // _pidAlive tests whether a process is alive or not 17 | func _pidAlive(pid int) bool { 18 | h, err := syscall.OpenProcess(processDesiredAccess, false, uint32(pid)) 19 | if err != nil { 20 | return false 21 | } 22 | 23 | var ec uint32 24 | if e := syscall.GetExitCodeProcess(h, &ec); e != nil { 25 | return false 26 | } 27 | 28 | return ec == exit_STILL_ACTIVE 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/stream.go: -------------------------------------------------------------------------------- 1 | package plugin 2 | 3 | import ( 4 | "io" 5 | "log" 6 | ) 7 | 8 | func copyStream(name string, dst io.Writer, src io.Reader) { 9 | if src == nil { 10 | panic(name + ": src is nil") 11 | } 12 | if dst == nil { 13 | panic(name + ": dst is nil") 14 | } 15 | if _, err := io.Copy(dst, src); err != nil && err != io.EOF { 16 | log.Printf("[ERR] plugin: stream copy '%s' error: %s", name, err) 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-safetemp/README.md: -------------------------------------------------------------------------------- 1 | # go-safetemp 2 | [![Godoc](https://godoc.org/github.com/hashcorp/go-safetemp?status.svg)](https://godoc.org/github.com/hashicorp/go-safetemp) 3 | 4 | Functions for safely working with temporary directories and files. 5 | 6 | ## Why? 7 | 8 | The Go standard library provides the excellent `ioutil` package for 9 | working with temporary directories and files. This library builds on top 10 | of that to provide safe abstractions above that. 11 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-safetemp/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hashicorp/go-safetemp 2 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-uuid/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | sudo: false 4 | 5 | go: 6 | - 1.4 7 | - 1.5 8 | - 1.6 9 | - tip 10 | 11 | script: 12 | - go test -bench . -benchmem -v ./... 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-uuid/README.md: -------------------------------------------------------------------------------- 1 | # uuid [![Build Status](https://travis-ci.org/hashicorp/go-uuid.svg?branch=master)](https://travis-ci.org/hashicorp/go-uuid) 2 | 3 | Generates UUID-format strings using high quality, _purely random_ bytes. It is **not** intended to be RFC compliant, merely to use a well-understood string representation of a 128-bit value. It can also parse UUID-format strings into their component bytes. 4 | 5 | Documentation 6 | ============= 7 | 8 | The full documentation is available on [Godoc](http://godoc.org/github.com/hashicorp/go-uuid). 9 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-uuid/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hashicorp/go-uuid 2 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-version/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.2 5 | - 1.3 6 | - 1.4 7 | - 1.9 8 | - "1.10" 9 | - 1.11 10 | - 1.12 11 | 12 | script: 13 | - go test 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-version/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hashicorp/go-version 2 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-version/version_collection.go: -------------------------------------------------------------------------------- 1 | package version 2 | 3 | // Collection is a type that implements the sort.Interface interface 4 | // so that versions can be sorted. 5 | type Collection []*Version 6 | 7 | func (v Collection) Len() int { 8 | return len(v) 9 | } 10 | 11 | func (v Collection) Less(i, j int) bool { 12 | return v[i].LessThan(v[j]) 13 | } 14 | 15 | func (v Collection) Swap(i, j int) { 16 | v[i], v[j] = v[j], v[i] 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/.gitignore: -------------------------------------------------------------------------------- 1 | y.output 2 | 3 | # ignore intellij files 4 | .idea 5 | *.iml 6 | *.ipr 7 | *.iws 8 | 9 | *.test 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | language: go 4 | 5 | go: 6 | - 1.x 7 | - tip 8 | 9 | branches: 10 | only: 11 | - master 12 | 13 | script: make test 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/Makefile: -------------------------------------------------------------------------------- 1 | TEST?=./... 2 | 3 | default: test 4 | 5 | fmt: generate 6 | go fmt ./... 7 | 8 | test: generate 9 | go get -t ./... 10 | go test $(TEST) $(TESTARGS) 11 | 12 | generate: 13 | go generate ./... 14 | 15 | updatedeps: 16 | go get -u golang.org/x/tools/cmd/stringer 17 | 18 | .PHONY: default generate test updatedeps 19 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "build-{branch}-{build}" 2 | image: Visual Studio 2015 3 | clone_folder: c:\gopath\src\github.com\hashicorp\hcl 4 | environment: 5 | GOPATH: c:\gopath 6 | init: 7 | - git config --global core.autocrlf false 8 | install: 9 | - cmd: >- 10 | echo %Path% 11 | 12 | go version 13 | 14 | go env 15 | 16 | go get -t ./... 17 | 18 | build_script: 19 | - cmd: go test -v ./... 20 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hashicorp/hcl 2 | 3 | require github.com/davecgh/go-spew v1.1.1 4 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/go.sum: -------------------------------------------------------------------------------- 1 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 2 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 3 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/hcl.go: -------------------------------------------------------------------------------- 1 | // Package hcl decodes HCL into usable Go structures. 2 | // 3 | // hcl input can come in either pure HCL format or JSON format. 4 | // It can be parsed into an AST, and then decoded into a structure, 5 | // or it can be decoded directly from a string into a structure. 6 | // 7 | // If you choose to parse HCL into a raw AST, the benefit is that you 8 | // can write custom visitor implementations to implement custom 9 | // semantic checks. By default, HCL does not perform any semantic 10 | // checks. 11 | package hcl 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/hcl/parser/error.go: -------------------------------------------------------------------------------- 1 | package parser 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/hashicorp/hcl/hcl/token" 7 | ) 8 | 9 | // PosError is a parse error that contains a position. 10 | type PosError struct { 11 | Pos token.Pos 12 | Err error 13 | } 14 | 15 | func (e *PosError) Error() string { 16 | return fmt.Sprintf("At %s: %s", e.Pos, e.Err) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/lex.go: -------------------------------------------------------------------------------- 1 | package hcl 2 | 3 | import ( 4 | "unicode" 5 | "unicode/utf8" 6 | ) 7 | 8 | type lexModeValue byte 9 | 10 | const ( 11 | lexModeUnknown lexModeValue = iota 12 | lexModeHcl 13 | lexModeJson 14 | ) 15 | 16 | // lexMode returns whether we're going to be parsing in JSON 17 | // mode or HCL mode. 18 | func lexMode(v []byte) lexModeValue { 19 | var ( 20 | r rune 21 | w int 22 | offset int 23 | ) 24 | 25 | for { 26 | r, w = utf8.DecodeRune(v[offset:]) 27 | offset += w 28 | if unicode.IsSpace(r) { 29 | continue 30 | } 31 | if r == '{' { 32 | return lexModeJson 33 | } 34 | break 35 | } 36 | 37 | return lexModeHcl 38 | } 39 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/ext/typeexpr/doc.go: -------------------------------------------------------------------------------- 1 | // Package typeexpr extends HCL with a convention for describing HCL types 2 | // within configuration files. 3 | // 4 | // The type syntax is processed statically from a hcl.Expression, so it cannot 5 | // use any of the usual language operators. This is similar to type expressions 6 | // in statically-typed programming languages. 7 | // 8 | // variable "example" { 9 | // type = list(string) 10 | // } 11 | package typeexpr 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/gohcl/types.go: -------------------------------------------------------------------------------- 1 | package gohcl 2 | 3 | import ( 4 | "reflect" 5 | 6 | "github.com/hashicorp/hcl2/hcl" 7 | ) 8 | 9 | var victimExpr hcl.Expression 10 | var victimBody hcl.Body 11 | 12 | var exprType = reflect.TypeOf(&victimExpr).Elem() 13 | var bodyType = reflect.TypeOf(&victimBody).Elem() 14 | var blockType = reflect.TypeOf((*hcl.Block)(nil)) 15 | var attrType = reflect.TypeOf((*hcl.Attribute)(nil)) 16 | var attrsType = reflect.TypeOf(hcl.Attributes(nil)) 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcl/doc.go: -------------------------------------------------------------------------------- 1 | package hcl 2 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcl/eval_context.go: -------------------------------------------------------------------------------- 1 | package hcl 2 | 3 | import ( 4 | "github.com/zclconf/go-cty/cty" 5 | "github.com/zclconf/go-cty/cty/function" 6 | ) 7 | 8 | // An EvalContext provides the variables and functions that should be used 9 | // to evaluate an expression. 10 | type EvalContext struct { 11 | Variables map[string]cty.Value 12 | Functions map[string]function.Function 13 | parent *EvalContext 14 | } 15 | 16 | // NewChild returns a new EvalContext that is a child of the receiver. 17 | func (ctx *EvalContext) NewChild() *EvalContext { 18 | return &EvalContext{parent: ctx} 19 | } 20 | 21 | // Parent returns the parent of the receiver, or nil if the receiver has 22 | // no parent. 23 | func (ctx *EvalContext) Parent() *EvalContext { 24 | return ctx.parent 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcl/hclsyntax/doc.go: -------------------------------------------------------------------------------- 1 | // Package hclsyntax contains the parser, AST, etc for HCL's native language, 2 | // as opposed to the JSON variant. 3 | // 4 | // In normal use applications should rarely depend on this package directly, 5 | // instead preferring the higher-level interface of the main hcl package and 6 | // its companion package hclparse. 7 | package hclsyntax 8 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcl/hclsyntax/file.go: -------------------------------------------------------------------------------- 1 | package hclsyntax 2 | 3 | import ( 4 | "github.com/hashicorp/hcl2/hcl" 5 | ) 6 | 7 | // File is the top-level object resulting from parsing a configuration file. 8 | type File struct { 9 | Body *Body 10 | Bytes []byte 11 | } 12 | 13 | func (f *File) AsHCLFile() *hcl.File { 14 | return &hcl.File{ 15 | Body: f.Body, 16 | Bytes: f.Bytes, 17 | 18 | // TODO: The Nav object, once we have an implementation of it 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcl/hclsyntax/generate.go: -------------------------------------------------------------------------------- 1 | package hclsyntax 2 | 3 | //go:generate go run expression_vars_gen.go 4 | //go:generate ruby unicode2ragel.rb --url=http://www.unicode.org/Public/9.0.0/ucd/DerivedCoreProperties.txt -m UnicodeDerived -p ID_Start,ID_Continue -o unicode_derived.rl 5 | //go:generate ragel -Z scan_tokens.rl 6 | //go:generate gofmt -w scan_tokens.go 7 | //go:generate ragel -Z scan_string_lit.rl 8 | //go:generate gofmt -w scan_string_lit.go 9 | //go:generate stringer -type TokenType -output token_type_string.go 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcl/hclsyntax/keywords.go: -------------------------------------------------------------------------------- 1 | package hclsyntax 2 | 3 | import ( 4 | "bytes" 5 | ) 6 | 7 | type Keyword []byte 8 | 9 | var forKeyword = Keyword([]byte{'f', 'o', 'r'}) 10 | var inKeyword = Keyword([]byte{'i', 'n'}) 11 | var ifKeyword = Keyword([]byte{'i', 'f'}) 12 | var elseKeyword = Keyword([]byte{'e', 'l', 's', 'e'}) 13 | var endifKeyword = Keyword([]byte{'e', 'n', 'd', 'i', 'f'}) 14 | var endforKeyword = Keyword([]byte{'e', 'n', 'd', 'f', 'o', 'r'}) 15 | 16 | func (kw Keyword) TokenMatches(token Token) bool { 17 | if token.Type != TokenIdent { 18 | return false 19 | } 20 | return bytes.Equal([]byte(kw), token.Bytes) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcl/hclsyntax/node.go: -------------------------------------------------------------------------------- 1 | package hclsyntax 2 | 3 | import ( 4 | "github.com/hashicorp/hcl2/hcl" 5 | ) 6 | 7 | // Node is the abstract type that every AST node implements. 8 | // 9 | // This is a closed interface, so it cannot be implemented from outside of 10 | // this package. 11 | type Node interface { 12 | // This is the mechanism by which the public-facing walk functions 13 | // are implemented. Implementations should call the given function 14 | // for each child node and then replace that node with its return value. 15 | // The return value might just be the same node, for non-transforming 16 | // walks. 17 | walkChildNodes(w internalWalkFunc) 18 | 19 | Range() hcl.Range 20 | } 21 | 22 | type internalWalkFunc func(Node) 23 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcl/json/doc.go: -------------------------------------------------------------------------------- 1 | // Package json is the JSON parser for HCL. It parses JSON files and returns 2 | // implementations of the core HCL structural interfaces in terms of the 3 | // JSON data inside. 4 | // 5 | // This is not a generic JSON parser. Instead, it deals with the mapping from 6 | // the JSON information model to the HCL information model, using a number 7 | // of hard-coded structural conventions. 8 | package json 9 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcl/json/peeker.go: -------------------------------------------------------------------------------- 1 | package json 2 | 3 | type peeker struct { 4 | tokens []token 5 | pos int 6 | } 7 | 8 | func newPeeker(tokens []token) *peeker { 9 | return &peeker{ 10 | tokens: tokens, 11 | pos: 0, 12 | } 13 | } 14 | 15 | func (p *peeker) Peek() token { 16 | return p.tokens[p.pos] 17 | } 18 | 19 | func (p *peeker) Read() token { 20 | ret := p.tokens[p.pos] 21 | if ret.Type != tokenEOF { 22 | p.pos++ 23 | } 24 | return ret 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcl/schema.go: -------------------------------------------------------------------------------- 1 | package hcl 2 | 3 | // BlockHeaderSchema represents the shape of a block header, and is 4 | // used for matching blocks within bodies. 5 | type BlockHeaderSchema struct { 6 | Type string 7 | LabelNames []string 8 | } 9 | 10 | // AttributeSchema represents the requirements for an attribute, and is used 11 | // for matching attributes within bodies. 12 | type AttributeSchema struct { 13 | Name string 14 | Required bool 15 | } 16 | 17 | // BodySchema represents the desired shallow structure of a body. 18 | type BodySchema struct { 19 | Attributes []AttributeSchema 20 | Blocks []BlockHeaderSchema 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcldec/block_labels.go: -------------------------------------------------------------------------------- 1 | package hcldec 2 | 3 | import ( 4 | "github.com/hashicorp/hcl2/hcl" 5 | ) 6 | 7 | type blockLabel struct { 8 | Value string 9 | Range hcl.Range 10 | } 11 | 12 | func labelsForBlock(block *hcl.Block) []blockLabel { 13 | ret := make([]blockLabel, len(block.Labels)) 14 | for i := range block.Labels { 15 | ret[i] = blockLabel{ 16 | Value: block.Labels[i], 17 | Range: block.LabelRanges[i], 18 | } 19 | } 20 | return ret 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcldec/doc.go: -------------------------------------------------------------------------------- 1 | // Package hcldec provides a higher-level API for unpacking the content of 2 | // HCL bodies, implemented in terms of the low-level "Content" API exposed 3 | // by the bodies themselves. 4 | // 5 | // It allows decoding an entire nested configuration in a single operation 6 | // by providing a description of the intended structure. 7 | // 8 | // For some applications it may be more convenient to use the "gohcl" 9 | // package, which has a similar purpose but decodes directly into native 10 | // Go data types. hcldec instead targets the cty type system, and thus allows 11 | // a cty-driven application to remain within that type system. 12 | package hcldec 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcldec/gob.go: -------------------------------------------------------------------------------- 1 | package hcldec 2 | 3 | import ( 4 | "encoding/gob" 5 | ) 6 | 7 | func init() { 8 | // Every Spec implementation should be registered with gob, so that 9 | // specs can be sent over gob channels, such as using 10 | // github.com/hashicorp/go-plugin with plugins that need to describe 11 | // what shape of configuration they are expecting. 12 | gob.Register(ObjectSpec(nil)) 13 | gob.Register(TupleSpec(nil)) 14 | gob.Register((*AttrSpec)(nil)) 15 | gob.Register((*LiteralSpec)(nil)) 16 | gob.Register((*ExprSpec)(nil)) 17 | gob.Register((*BlockSpec)(nil)) 18 | gob.Register((*BlockListSpec)(nil)) 19 | gob.Register((*BlockSetSpec)(nil)) 20 | gob.Register((*BlockMapSpec)(nil)) 21 | gob.Register((*BlockLabelSpec)(nil)) 22 | gob.Register((*DefaultSpec)(nil)) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hcled/doc.go: -------------------------------------------------------------------------------- 1 | // Package hcled provides functionality intended to help an application 2 | // that embeds HCL to deliver relevant information to a text editor or IDE 3 | // for navigating around and analyzing configuration files. 4 | package hcled 5 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hclwrite/doc.go: -------------------------------------------------------------------------------- 1 | // Package hclwrite deals with the problem of generating HCL configuration 2 | // and of making specific surgical changes to existing HCL configurations. 3 | // 4 | // It operates at a different level of abstraction than the main HCL parser 5 | // and AST, since details such as the placement of comments and newlines 6 | // are preserved when unchanged. 7 | // 8 | // The hclwrite API follows a similar principle to XML/HTML DOM, allowing nodes 9 | // to be read out, created and inserted, etc. Nodes represent syntax constructs 10 | // rather than semantic concepts. 11 | package hclwrite 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl2/hclwrite/native_node_sorter.go: -------------------------------------------------------------------------------- 1 | package hclwrite 2 | 3 | import ( 4 | "github.com/hashicorp/hcl2/hcl/hclsyntax" 5 | ) 6 | 7 | type nativeNodeSorter struct { 8 | Nodes []hclsyntax.Node 9 | } 10 | 11 | func (s nativeNodeSorter) Len() int { 12 | return len(s.Nodes) 13 | } 14 | 15 | func (s nativeNodeSorter) Less(i, j int) bool { 16 | rangeI := s.Nodes[i].Range() 17 | rangeJ := s.Nodes[j].Range() 18 | return rangeI.Start.Byte < rangeJ.Start.Byte 19 | } 20 | 21 | func (s nativeNodeSorter) Swap(i, j int) { 22 | s.Nodes[i], s.Nodes[j] = s.Nodes[j], s.Nodes[i] 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hil/ast/arithmetic_op.go: -------------------------------------------------------------------------------- 1 | package ast 2 | 3 | // ArithmeticOp is the operation to use for the math. 4 | type ArithmeticOp int 5 | 6 | const ( 7 | ArithmeticOpInvalid ArithmeticOp = 0 8 | 9 | ArithmeticOpAdd ArithmeticOp = iota 10 | ArithmeticOpSub 11 | ArithmeticOpMul 12 | ArithmeticOpDiv 13 | ArithmeticOpMod 14 | 15 | ArithmeticOpLogicalAnd 16 | ArithmeticOpLogicalOr 17 | 18 | ArithmeticOpEqual 19 | ArithmeticOpNotEqual 20 | ArithmeticOpLessThan 21 | ArithmeticOpLessThanOrEqual 22 | ArithmeticOpGreaterThan 23 | ArithmeticOpGreaterThanOrEqual 24 | ) 25 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hil/ast/stack.go: -------------------------------------------------------------------------------- 1 | package ast 2 | 3 | // Stack is a stack of Node. 4 | type Stack struct { 5 | stack []Node 6 | } 7 | 8 | func (s *Stack) Len() int { 9 | return len(s.stack) 10 | } 11 | 12 | func (s *Stack) Push(n Node) { 13 | s.stack = append(s.stack, n) 14 | } 15 | 16 | func (s *Stack) Pop() Node { 17 | x := s.stack[len(s.stack)-1] 18 | s.stack[len(s.stack)-1] = nil 19 | s.stack = s.stack[:len(s.stack)-1] 20 | return x 21 | } 22 | 23 | func (s *Stack) Reset() { 24 | s.stack = nil 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/logutils/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/logutils/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hashicorp/logutils 2 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-config-inspect/tfconfig/module_call.go: -------------------------------------------------------------------------------- 1 | package tfconfig 2 | 3 | // ModuleCall represents a "module" block within a module. That is, a 4 | // declaration of a child module from inside its parent. 5 | type ModuleCall struct { 6 | Name string `json:"name"` 7 | Source string `json:"source"` 8 | Version string `json:"version,omitempty"` 9 | 10 | Pos SourcePos `json:"pos"` 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-config-inspect/tfconfig/output.go: -------------------------------------------------------------------------------- 1 | package tfconfig 2 | 3 | // Output represents a single output from a Terraform module. 4 | type Output struct { 5 | Name string `json:"name"` 6 | Description string `json:"description,omitempty"` 7 | 8 | Pos SourcePos `json:"pos"` 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-config-inspect/tfconfig/provider_ref.go: -------------------------------------------------------------------------------- 1 | package tfconfig 2 | 3 | // ProviderRef is a reference to a provider configuration within a module. 4 | // It represents the contents of a "provider" argument in a resource, or 5 | // a value in the "providers" map for a module call. 6 | type ProviderRef struct { 7 | Name string `json:"name"` 8 | Alias string `json:"alias,omitempty"` // Empty if the default provider configuration is referenced 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-config-inspect/tfconfig/variable.go: -------------------------------------------------------------------------------- 1 | package tfconfig 2 | 3 | // Variable represents a single variable from a Terraform module. 4 | type Variable struct { 5 | Name string `json:"name"` 6 | Type string `json:"type,omitempty"` 7 | Description string `json:"description,omitempty"` 8 | 9 | // Default is an approximate representation of the default value in 10 | // the native Go type system. The conversion from the value given in 11 | // configuration may be slightly lossy. Only values that can be 12 | // serialized by json.Marshal will be included here. 13 | Default interface{} `json:"default,omitempty"` 14 | 15 | Pos SourcePos `json:"pos"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/README.md: -------------------------------------------------------------------------------- 1 | # Terraform Helper Lib: schema 2 | 3 | The `schema` package provides a high-level interface for writing resource 4 | providers for Terraform. 5 | 6 | If you're writing a resource provider, we recommend you use this package. 7 | 8 | The interface exposed by this package is much friendlier than trying to 9 | write to the Terraform API directly. The core Terraform API is low-level 10 | and built for maximum flexibility and control, whereas this library is built 11 | as a framework around that to more easily write common providers. 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/equal.go: -------------------------------------------------------------------------------- 1 | package schema 2 | 3 | // Equal is an interface that checks for deep equality between two objects. 4 | type Equal interface { 5 | Equal(interface{}) bool 6 | } 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/field_writer.go: -------------------------------------------------------------------------------- 1 | package schema 2 | 3 | // FieldWriters are responsible for writing fields by address into 4 | // a proper typed representation. ResourceData uses this to write new data 5 | // into existing sources. 6 | type FieldWriter interface { 7 | WriteField([]string, interface{}) error 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/resource_data_get_source.go: -------------------------------------------------------------------------------- 1 | package schema 2 | 3 | //go:generate go run golang.org/x/tools/cmd/stringer -type=getSource resource_data_get_source.go 4 | 5 | // getSource represents the level we want to get for a value (internally). 6 | // Any source less than or equal to the level will be loaded (whichever 7 | // has a value first). 8 | type getSource byte 9 | 10 | const ( 11 | getSourceState getSource = 1 << iota 12 | getSourceConfig 13 | getSourceDiff 14 | getSourceSet 15 | getSourceExact // Only get from the _exact_ level 16 | getSourceLevelMask getSource = getSourceState | getSourceConfig | getSourceDiff | getSourceSet 17 | ) 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/testing.go: -------------------------------------------------------------------------------- 1 | package schema 2 | 3 | import ( 4 | "testing" 5 | 6 | "github.com/hashicorp/terraform-plugin-sdk/terraform" 7 | ) 8 | 9 | // TestResourceDataRaw creates a ResourceData from a raw configuration map. 10 | func TestResourceDataRaw( 11 | t *testing.T, schema map[string]*Schema, raw map[string]interface{}) *ResourceData { 12 | t.Helper() 13 | 14 | c := terraform.NewResourceConfigRaw(raw) 15 | 16 | sm := schemaMap(schema) 17 | diff, err := sm.Diff(nil, c, nil, nil, true) 18 | if err != nil { 19 | t.Fatalf("err: %s", err) 20 | } 21 | 22 | result, err := sm.Data(nil, diff) 23 | if err != nil { 24 | t.Fatalf("err: %s", err) 25 | } 26 | 27 | return result 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/helper/schema/valuetype.go: -------------------------------------------------------------------------------- 1 | package schema 2 | 3 | //go:generate go run golang.org/x/tools/cmd/stringer -type=ValueType valuetype.go 4 | 5 | // ValueType is an enum of the type that can be represented by a schema. 6 | type ValueType int 7 | 8 | const ( 9 | TypeInvalid ValueType = iota 10 | TypeBool 11 | TypeInt 12 | TypeFloat 13 | TypeString 14 | TypeList 15 | TypeMap 16 | TypeSet 17 | typeObject 18 | ) 19 | 20 | // NOTE: ValueType has more functions defined on it in schema.go. We can't 21 | // put them here because we reference other files. 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/helper/structure/expand_json.go: -------------------------------------------------------------------------------- 1 | package structure 2 | 3 | import "encoding/json" 4 | 5 | func ExpandJsonFromString(jsonString string) (map[string]interface{}, error) { 6 | var result map[string]interface{} 7 | 8 | err := json.Unmarshal([]byte(jsonString), &result) 9 | 10 | return result, err 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/helper/structure/flatten_json.go: -------------------------------------------------------------------------------- 1 | package structure 2 | 3 | import "encoding/json" 4 | 5 | func FlattenJsonToString(input map[string]interface{}) (string, error) { 6 | if len(input) == 0 { 7 | return "", nil 8 | } 9 | 10 | result, err := json.Marshal(input) 11 | if err != nil { 12 | return "", err 13 | } 14 | 15 | return string(result), nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/helper/structure/normalize_json.go: -------------------------------------------------------------------------------- 1 | package structure 2 | 3 | import "encoding/json" 4 | 5 | // Takes a value containing JSON string and passes it through 6 | // the JSON parser to normalize it, returns either a parsing 7 | // error or normalized JSON string. 8 | func NormalizeJsonString(jsonString interface{}) (string, error) { 9 | var j interface{} 10 | 11 | if jsonString == nil || jsonString.(string) == "" { 12 | return "", nil 13 | } 14 | 15 | s := jsonString.(string) 16 | 17 | err := json.Unmarshal([]byte(s), &j) 18 | if err != nil { 19 | return s, err 20 | } 21 | 22 | bytes, _ := json.Marshal(j) 23 | return string(bytes[:]), nil 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/helper/structure/suppress_json_diff.go: -------------------------------------------------------------------------------- 1 | package structure 2 | 3 | import ( 4 | "reflect" 5 | 6 | "github.com/hashicorp/terraform-plugin-sdk/helper/schema" 7 | ) 8 | 9 | func SuppressJsonDiff(k, old, new string, d *schema.ResourceData) bool { 10 | oldMap, err := ExpandJsonFromString(old) 11 | if err != nil { 12 | return false 13 | } 14 | 15 | newMap, err := ExpandJsonFromString(new) 16 | if err != nil { 17 | return false 18 | } 19 | 20 | return reflect.DeepEqual(oldMap, newMap) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/addrs/count_attr.go: -------------------------------------------------------------------------------- 1 | package addrs 2 | 3 | // CountAttr is the address of an attribute of the "count" object in 4 | // the interpolation scope, like "count.index". 5 | type CountAttr struct { 6 | referenceable 7 | Name string 8 | } 9 | 10 | func (ca CountAttr) String() string { 11 | return "count." + ca.Name 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/addrs/for_each_attr.go: -------------------------------------------------------------------------------- 1 | package addrs 2 | 3 | // ForEachAttr is the address of an attribute referencing the current "for_each" object in 4 | // the interpolation scope, addressed using the "each" keyword, ex. "each.key" and "each.value" 5 | type ForEachAttr struct { 6 | referenceable 7 | Name string 8 | } 9 | 10 | func (f ForEachAttr) String() string { 11 | return "each." + f.Name 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/addrs/path_attr.go: -------------------------------------------------------------------------------- 1 | package addrs 2 | 3 | // PathAttr is the address of an attribute of the "path" object in 4 | // the interpolation scope, like "path.module". 5 | type PathAttr struct { 6 | referenceable 7 | Name string 8 | } 9 | 10 | func (pa PathAttr) String() string { 11 | return "path." + pa.Name 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/addrs/provider_type.go: -------------------------------------------------------------------------------- 1 | package addrs 2 | 3 | // ProviderType encapsulates a single provider type. In the future this will be 4 | // extended to include additional fields including Namespace and SourceHost 5 | type ProviderType struct { 6 | Name string 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/addrs/referenceable.go: -------------------------------------------------------------------------------- 1 | package addrs 2 | 3 | // Referenceable is an interface implemented by all address types that can 4 | // appear as references in configuration language expressions. 5 | type Referenceable interface { 6 | // All implementations of this interface must be covered by the type switch 7 | // in lang.Scope.buildEvalContext. 8 | referenceableSigil() 9 | 10 | // String produces a string representation of the address that could be 11 | // parsed as a HCL traversal and passed to ParseRef to produce an identical 12 | // result. 13 | String() string 14 | } 15 | 16 | type referenceable struct { 17 | } 18 | 19 | func (r referenceable) referenceableSigil() { 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/addrs/self.go: -------------------------------------------------------------------------------- 1 | package addrs 2 | 3 | // Self is the address of the special object "self" that behaves as an alias 4 | // for a containing object currently in scope. 5 | const Self selfT = 0 6 | 7 | type selfT int 8 | 9 | func (s selfT) referenceableSigil() { 10 | } 11 | 12 | func (s selfT) String() string { 13 | return "self" 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/addrs/terraform_attr.go: -------------------------------------------------------------------------------- 1 | package addrs 2 | 3 | // TerraformAttr is the address of an attribute of the "terraform" object in 4 | // the interpolation scope, like "terraform.workspace". 5 | type TerraformAttr struct { 6 | referenceable 7 | Name string 8 | } 9 | 10 | func (ta TerraformAttr) String() string { 11 | return "terraform." + ta.Name 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/command/format/format.go: -------------------------------------------------------------------------------- 1 | // Package format contains helpers for formatting various Terraform 2 | // structures for human-readabout output. 3 | // 4 | // This package is used by the official Terraform CLI in formatting any 5 | // output and is exported to encourage non-official frontends to mimic the 6 | // output formatting as much as possible so that text formats of Terraform 7 | // structures have a consistent look and feel. 8 | package format 9 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/configs/configload/doc.go: -------------------------------------------------------------------------------- 1 | // Package configload knows how to install modules into the .terraform/modules 2 | // directory and to load modules from those installed locations. It is used 3 | // in conjunction with the LoadConfig function in the parent package. 4 | package configload 5 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/configs/configload/inode.go: -------------------------------------------------------------------------------- 1 | // +build linux darwin openbsd netbsd solaris dragonfly 2 | 3 | package configload 4 | 5 | import ( 6 | "fmt" 7 | "os" 8 | "syscall" 9 | ) 10 | 11 | // lookup the inode of a file on posix systems 12 | func inode(path string) (uint64, error) { 13 | stat, err := os.Stat(path) 14 | if err != nil { 15 | return 0, err 16 | } 17 | if st, ok := stat.Sys().(*syscall.Stat_t); ok { 18 | return st.Ino, nil 19 | } 20 | return 0, fmt.Errorf("could not determine file inode") 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/configs/configload/inode_freebsd.go: -------------------------------------------------------------------------------- 1 | // +build freebsd 2 | 3 | package configload 4 | 5 | import ( 6 | "fmt" 7 | "os" 8 | "syscall" 9 | ) 10 | 11 | // lookup the inode of a file on posix systems 12 | func inode(path string) (uint64, error) { 13 | stat, err := os.Stat(path) 14 | if err != nil { 15 | return 0, err 16 | } 17 | if st, ok := stat.Sys().(*syscall.Stat_t); ok { 18 | return uint64(st.Ino), nil 19 | } 20 | return 0, fmt.Errorf("could not determine file inode") 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/configs/configload/inode_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package configload 4 | 5 | // no syscall.Stat_t on windows, return 0 for inodes 6 | func inode(path string) (uint64, error) { 7 | return 0, nil 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/configs/depends_on.go: -------------------------------------------------------------------------------- 1 | package configs 2 | 3 | import ( 4 | "github.com/hashicorp/hcl2/hcl" 5 | ) 6 | 7 | func decodeDependsOn(attr *hcl.Attribute) ([]hcl.Traversal, hcl.Diagnostics) { 8 | var ret []hcl.Traversal 9 | exprs, diags := hcl.ExprList(attr.Expr) 10 | 11 | for _, expr := range exprs { 12 | expr, shimDiags := shimTraversalInString(expr, false) 13 | diags = append(diags, shimDiags...) 14 | 15 | traversal, travDiags := hcl.AbsTraversalForExpr(expr) 16 | diags = append(diags, travDiags...) 17 | if len(traversal) != 0 { 18 | ret = append(ret, traversal) 19 | } 20 | } 21 | 22 | return ret, diags 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/earlyconfig/module.go: -------------------------------------------------------------------------------- 1 | package earlyconfig 2 | 3 | import ( 4 | "github.com/hashicorp/terraform-config-inspect/tfconfig" 5 | "github.com/hashicorp/terraform-plugin-sdk/internal/tfdiags" 6 | ) 7 | 8 | // LoadModule loads some top-level metadata for the module in the given 9 | // directory. 10 | func LoadModule(dir string) (*tfconfig.Module, tfdiags.Diagnostics) { 11 | mod, diags := tfconfig.LoadModule(dir) 12 | return mod, wrapDiagnostics(diags) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/helper/config/decode.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | import ( 4 | "github.com/mitchellh/mapstructure" 5 | ) 6 | 7 | func Decode(target interface{}, raws ...interface{}) (*mapstructure.Metadata, error) { 8 | var md mapstructure.Metadata 9 | decoderConfig := &mapstructure.DecoderConfig{ 10 | Metadata: &md, 11 | Result: target, 12 | WeaklyTypedInput: true, 13 | } 14 | 15 | decoder, err := mapstructure.NewDecoder(decoderConfig) 16 | if err != nil { 17 | return nil, err 18 | } 19 | 20 | for _, raw := range raws { 21 | err := decoder.Decode(raw) 22 | if err != nil { 23 | return nil, err 24 | } 25 | } 26 | 27 | return &md, nil 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin/doc.go: -------------------------------------------------------------------------------- 1 | // Package plugin contains types and functions to help Terraform plugins 2 | // implement the plugin rpc interface. 3 | // The primary Provider type will be responsible for converting from the grpc 4 | // wire protocol to the types and methods known to the provider 5 | // implementations. 6 | package plugin 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/initwd/doc.go: -------------------------------------------------------------------------------- 1 | // Package initwd contains various helper functions used by the "terraform init" 2 | // command to initialize a working directory. 3 | // 4 | // These functions may also be used from testing code to simulate the behaviors 5 | // of "terraform init" against test fixtures, but should not be used elsewhere 6 | // in the main code. 7 | package initwd 8 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/initwd/inode.go: -------------------------------------------------------------------------------- 1 | // +build linux darwin openbsd netbsd solaris dragonfly 2 | 3 | package initwd 4 | 5 | import ( 6 | "fmt" 7 | "os" 8 | "syscall" 9 | ) 10 | 11 | // lookup the inode of a file on posix systems 12 | func inode(path string) (uint64, error) { 13 | stat, err := os.Stat(path) 14 | if err != nil { 15 | return 0, err 16 | } 17 | if st, ok := stat.Sys().(*syscall.Stat_t); ok { 18 | return st.Ino, nil 19 | } 20 | return 0, fmt.Errorf("could not determine file inode") 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/initwd/inode_freebsd.go: -------------------------------------------------------------------------------- 1 | // +build freebsd 2 | 3 | package initwd 4 | 5 | import ( 6 | "fmt" 7 | "os" 8 | "syscall" 9 | ) 10 | 11 | // lookup the inode of a file on posix systems 12 | func inode(path string) (uint64, error) { 13 | stat, err := os.Stat(path) 14 | if err != nil { 15 | return 0, err 16 | } 17 | if st, ok := stat.Sys().(*syscall.Stat_t); ok { 18 | return uint64(st.Ino), nil 19 | } 20 | return 0, fmt.Errorf("could not determine file inode") 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/initwd/inode_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package initwd 4 | 5 | // no syscall.Stat_t on windows, return 0 for inodes 6 | func inode(path string) (uint64, error) { 7 | return 0, nil 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/lang/blocktoattr/doc.go: -------------------------------------------------------------------------------- 1 | // Package blocktoattr includes some helper functions that can perform 2 | // preprocessing on a HCL body where a configschema.Block schema is available 3 | // in order to allow list and set attributes defined in the schema to be 4 | // optionally written by the user as block syntax. 5 | package blocktoattr 6 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/lang/doc.go: -------------------------------------------------------------------------------- 1 | // Package lang deals with the runtime aspects of Terraform's configuration 2 | // language, with concerns such as expression evaluation. It is closely related 3 | // to sibling package "configs", which is responsible for configuration 4 | // parsing and static validation. 5 | package lang 6 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/modsdir/doc.go: -------------------------------------------------------------------------------- 1 | // Package modsdir is an internal package containing the model types used to 2 | // represent the manifest of modules in a local modules cache directory. 3 | package modsdir 4 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/modsdir/paths.go: -------------------------------------------------------------------------------- 1 | package modsdir 2 | 3 | const ManifestSnapshotFilename = "modules.json" 4 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/moduledeps/doc.go: -------------------------------------------------------------------------------- 1 | // Package moduledeps contains types that can be used to describe the 2 | // providers required for all of the modules in a module tree. 3 | // 4 | // It does not itself contain the functionality for populating such 5 | // data structures; that's in Terraform core, since this package intentionally 6 | // does not depend on terraform core to avoid package dependency cycles. 7 | package moduledeps 8 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/plans/action.go: -------------------------------------------------------------------------------- 1 | package plans 2 | 3 | type Action rune 4 | 5 | const ( 6 | NoOp Action = 0 7 | Create Action = '+' 8 | Read Action = '←' 9 | Update Action = '~' 10 | DeleteThenCreate Action = '∓' 11 | CreateThenDelete Action = '±' 12 | Delete Action = '-' 13 | ) 14 | 15 | //go:generate go run golang.org/x/tools/cmd/stringer -type Action 16 | 17 | // IsReplace returns true if the action is one of the two actions that 18 | // represents replacing an existing object with a new object: 19 | // DeleteThenCreate or CreateThenDelete. 20 | func (a Action) IsReplace() bool { 21 | return a == DeleteThenCreate || a == CreateThenDelete 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/plans/changes_state.go: -------------------------------------------------------------------------------- 1 | package plans 2 | 3 | import ( 4 | "github.com/hashicorp/terraform-plugin-sdk/internal/states" 5 | ) 6 | 7 | // PlannedState merges the set of changes described by the receiver into the 8 | // given prior state to produce the planned result state. 9 | // 10 | // The result is an approximation of the state as it would exist after 11 | // applying these changes, omitting any values that cannot be determined until 12 | // the changes are actually applied. 13 | func (c *Changes) PlannedState(prior *states.State) (*states.State, error) { 14 | panic("Changes.PlannedState not yet implemented") 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/plans/doc.go: -------------------------------------------------------------------------------- 1 | // Package plans contains the types that are used to represent Terraform plans. 2 | // 3 | // A plan describes a set of changes that Terraform will make to update remote 4 | // objects to match with changes to the configuration. 5 | package plans 6 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/plans/objchange/doc.go: -------------------------------------------------------------------------------- 1 | // Package objchange deals with the business logic of taking a prior state 2 | // value and a config value and producing a proposed new merged value, along 3 | // with other related rules in this domain. 4 | package objchange 5 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/plugin/discovery/signature.go: -------------------------------------------------------------------------------- 1 | package discovery 2 | 3 | import ( 4 | "bytes" 5 | "strings" 6 | 7 | "golang.org/x/crypto/openpgp" 8 | ) 9 | 10 | // Verify the data using the provided openpgp detached signature and the 11 | // embedded hashicorp public key. 12 | func verifySig(data, sig []byte, armor string) (*openpgp.Entity, error) { 13 | el, err := openpgp.ReadArmoredKeyRing(strings.NewReader(armor)) 14 | if err != nil { 15 | return nil, err 16 | } 17 | 18 | return openpgp.CheckDetachedSignature(el, bytes.NewReader(data), bytes.NewReader(sig)) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/providers/doc.go: -------------------------------------------------------------------------------- 1 | // Package providers contains the interface and primary types required to 2 | // implement a Terraform resource provider. 3 | package providers 4 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/provisioners/doc.go: -------------------------------------------------------------------------------- 1 | // Package provisioners contains the interface and primary types to implement a 2 | // Terraform resource provisioner. 3 | package provisioners 4 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/registry/regsrc/regsrc.go: -------------------------------------------------------------------------------- 1 | // Package regsrc provides helpers for working with source strings that identify 2 | // resources within a Terraform registry. 3 | package regsrc 4 | 5 | var ( 6 | // PublicRegistryHost is a FriendlyHost that represents the public registry. 7 | PublicRegistryHost = NewFriendlyHost("registry.terraform.io") 8 | ) 9 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/registry/response/module_list.go: -------------------------------------------------------------------------------- 1 | package response 2 | 3 | // ModuleList is the response structure for a pageable list of modules. 4 | type ModuleList struct { 5 | Meta PaginationMeta `json:"meta"` 6 | Modules []*Module `json:"modules"` 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/registry/response/module_provider.go: -------------------------------------------------------------------------------- 1 | package response 2 | 3 | // ModuleProvider represents a single provider for modules. 4 | type ModuleProvider struct { 5 | Name string `json:"name"` 6 | Downloads int `json:"downloads"` 7 | ModuleCount int `json:"module_count"` 8 | } 9 | 10 | // ModuleProviderList is the response structure for a pageable list of ModuleProviders. 11 | type ModuleProviderList struct { 12 | Meta PaginationMeta `json:"meta"` 13 | Providers []*ModuleProvider `json:"providers"` 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/registry/response/provider_list.go: -------------------------------------------------------------------------------- 1 | package response 2 | 3 | // ProviderList is the response structure for a pageable list of providers. 4 | type ProviderList struct { 5 | Meta PaginationMeta `json:"meta"` 6 | Providers []*Provider `json:"providers"` 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/registry/response/redirect.go: -------------------------------------------------------------------------------- 1 | package response 2 | 3 | // Redirect causes the frontend to perform a window redirect. 4 | type Redirect struct { 5 | URL string `json:"url"` 6 | } 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/states/doc.go: -------------------------------------------------------------------------------- 1 | // Package states contains the types that are used to represent Terraform 2 | // states. 3 | package states 4 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/states/output_value.go: -------------------------------------------------------------------------------- 1 | package states 2 | 3 | import ( 4 | "github.com/zclconf/go-cty/cty" 5 | ) 6 | 7 | // OutputValue represents the state of a particular output value. 8 | // 9 | // It is not valid to mutate an OutputValue object once it has been created. 10 | // Instead, create an entirely new OutputValue to replace the previous one. 11 | type OutputValue struct { 12 | Value cty.Value 13 | Sensitive bool 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/states/state_equal.go: -------------------------------------------------------------------------------- 1 | package states 2 | 3 | import ( 4 | "reflect" 5 | ) 6 | 7 | // Equal returns true if the receiver is functionally equivalent to other, 8 | // including any ephemeral portions of the state that would not be included 9 | // if the state were saved to files. 10 | // 11 | // To test only the persistent portions of two states for equality, instead 12 | // use statefile.StatesMarshalEqual. 13 | func (s *State) Equal(other *State) bool { 14 | // For the moment this is sufficient, but we may need to do something 15 | // more elaborate in future if we have any portions of state that require 16 | // more sophisticated comparisons. 17 | return reflect.DeepEqual(s, other) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/states/statefile/doc.go: -------------------------------------------------------------------------------- 1 | // Package statefile deals with the file format used to serialize states for 2 | // persistent storage and then deserialize them into memory again later. 3 | package statefile 4 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/states/statefile/write.go: -------------------------------------------------------------------------------- 1 | package statefile 2 | 3 | import ( 4 | "io" 5 | 6 | tfversion "github.com/hashicorp/terraform-plugin-sdk/internal/version" 7 | ) 8 | 9 | // Write writes the given state to the given writer in the current state 10 | // serialization format. 11 | func Write(s *File, w io.Writer) error { 12 | // Always record the current terraform version in the state. 13 | s.TerraformVersion = tfversion.SemVer 14 | 15 | diags := writeStateV4(s, w) 16 | return diags.Err() 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/svchost/auth/from_map.go: -------------------------------------------------------------------------------- 1 | package auth 2 | 3 | // HostCredentialsFromMap converts a map of key-value pairs from a credentials 4 | // definition provided by the user (e.g. in a config file, or via a credentials 5 | // helper) into a HostCredentials object if possible, or returns nil if 6 | // no credentials could be extracted from the map. 7 | // 8 | // This function ignores map keys it is unfamiliar with, to allow for future 9 | // expansion of the credentials map format for new credential types. 10 | func HostCredentialsFromMap(m map[string]interface{}) HostCredentials { 11 | if m == nil { 12 | return nil 13 | } 14 | if token, ok := m["token"].(string); ok { 15 | return HostCredentialsToken(token) 16 | } 17 | return nil 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/tfdiags/error.go: -------------------------------------------------------------------------------- 1 | package tfdiags 2 | 3 | // nativeError is a Diagnostic implementation that wraps a normal Go error 4 | type nativeError struct { 5 | err error 6 | } 7 | 8 | var _ Diagnostic = nativeError{} 9 | 10 | func (e nativeError) Severity() Severity { 11 | return Error 12 | } 13 | 14 | func (e nativeError) Description() Description { 15 | return Description{ 16 | Summary: FormatError(e.err), 17 | } 18 | } 19 | 20 | func (e nativeError) Source() Source { 21 | // No source information available for a native error 22 | return Source{} 23 | } 24 | 25 | func (e nativeError) FromExpr() *FromExpr { 26 | // Native errors are not expression-related 27 | return nil 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/tfdiags/severity_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=Severity"; DO NOT EDIT. 2 | 3 | package tfdiags 4 | 5 | import "strconv" 6 | 7 | func _() { 8 | // An "invalid array index" compiler error signifies that the constant values have changed. 9 | // Re-run the stringer command to generate them again. 10 | var x [1]struct{} 11 | _ = x[Error-69] 12 | _ = x[Warning-87] 13 | } 14 | 15 | const ( 16 | _Severity_name_0 = "Error" 17 | _Severity_name_1 = "Warning" 18 | ) 19 | 20 | func (i Severity) String() string { 21 | switch { 22 | case i == 69: 23 | return _Severity_name_0 24 | case i == 87: 25 | return _Severity_name_1 26 | default: 27 | return "Severity(" + strconv.FormatInt(int64(i), 10) + ")" 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/tfdiags/sourceless.go: -------------------------------------------------------------------------------- 1 | package tfdiags 2 | 3 | // Sourceless creates and returns a diagnostic with no source location 4 | // information. This is generally used for operational-type errors that are 5 | // caused by or relate to the environment where Terraform is running rather 6 | // than to the provided configuration. 7 | func Sourceless(severity Severity, summary, detail string) Diagnostic { 8 | return diagnosticBase{ 9 | severity: severity, 10 | summary: summary, 11 | detail: detail, 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5/generate.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # We do not run protoc under go:generate because we want to ensure that all 4 | # dependencies of go:generate are "go get"-able for general dev environment 5 | # usability. To compile all protobuf files in this repository, run 6 | # "make protobuf" at the top-level. 7 | 8 | set -eu 9 | 10 | SOURCE="${BASH_SOURCE[0]}" 11 | while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done 12 | DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" 13 | 14 | cd "$DIR" 15 | 16 | protoc -I ./ tfplugin5.proto --go_out=plugins=grpc:./ 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/plugin/plugin.go: -------------------------------------------------------------------------------- 1 | package plugin 2 | 3 | import ( 4 | "github.com/hashicorp/go-plugin" 5 | ) 6 | 7 | // See serve.go for serving plugins 8 | 9 | var VersionedPlugins = map[int]plugin.PluginSet{ 10 | 5: { 11 | "provider": &GRPCProviderPlugin{}, 12 | "provisioner": &GRPCProvisionerPlugin{}, 13 | }, 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/plugin/ui_output.go: -------------------------------------------------------------------------------- 1 | package plugin 2 | 3 | import ( 4 | "net/rpc" 5 | 6 | "github.com/hashicorp/terraform-plugin-sdk/terraform" 7 | ) 8 | 9 | // UIOutput is an implementatin of terraform.UIOutput that communicates 10 | // over RPC. 11 | type UIOutput struct { 12 | Client *rpc.Client 13 | } 14 | 15 | func (o *UIOutput) Output(v string) { 16 | o.Client.Call("Plugin.Output", v, new(interface{})) 17 | } 18 | 19 | // UIOutputServer is the RPC server for serving UIOutput. 20 | type UIOutputServer struct { 21 | UIOutput terraform.UIOutput 22 | } 23 | 24 | func (s *UIOutputServer) Output( 25 | v string, 26 | reply *interface{}) error { 27 | s.UIOutput.Output(v) 28 | return nil 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/terraform/edge_destroy.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/hashicorp/terraform-plugin-sdk/internal/dag" 7 | ) 8 | 9 | // DestroyEdge is an edge that represents a standard "destroy" relationship: 10 | // Target depends on Source because Source is destroying. 11 | type DestroyEdge struct { 12 | S, T dag.Vertex 13 | } 14 | 15 | func (e *DestroyEdge) Hashcode() interface{} { return fmt.Sprintf("%p-%p", e.S, e.T) } 16 | func (e *DestroyEdge) Source() dag.Vertex { return e.S } 17 | func (e *DestroyEdge) Target() dag.Vertex { return e.T } 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/terraform/eval_error.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | // EvalReturnError is an EvalNode implementation that returns an 4 | // error if it is present. 5 | // 6 | // This is useful for scenarios where an error has been captured by 7 | // another EvalNode (like EvalApply) for special EvalTree-based error 8 | // handling, and that handling has completed, so the error should be 9 | // returned normally. 10 | type EvalReturnError struct { 11 | Error *error 12 | } 13 | 14 | func (n *EvalReturnError) Eval(ctx EvalContext) (interface{}, error) { 15 | if n.Error == nil { 16 | return nil, nil 17 | } 18 | 19 | return nil, *n.Error 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/terraform/eval_if.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | // EvalIf is an EvalNode that is a conditional. 4 | type EvalIf struct { 5 | If func(EvalContext) (bool, error) 6 | Then EvalNode 7 | Else EvalNode 8 | } 9 | 10 | // TODO: test 11 | func (n *EvalIf) Eval(ctx EvalContext) (interface{}, error) { 12 | yes, err := n.If(ctx) 13 | if err != nil { 14 | return nil, err 15 | } 16 | 17 | if yes { 18 | return EvalRaw(n.Then, ctx) 19 | } else { 20 | if n.Else != nil { 21 | return EvalRaw(n.Else, ctx) 22 | } 23 | } 24 | 25 | return nil, nil 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/terraform/eval_noop.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | // EvalNoop is an EvalNode that does nothing. 4 | type EvalNoop struct{} 5 | 6 | func (EvalNoop) Eval(EvalContext) (interface{}, error) { 7 | return nil, nil 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/terraform/features.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import "os" 4 | 5 | // This file holds feature flags for the next release 6 | 7 | var flagWarnOutputErrors = os.Getenv("TF_WARN_OUTPUT_ERRORS") != "" 8 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/terraform/graph_dot.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import "github.com/hashicorp/terraform-plugin-sdk/internal/dag" 4 | 5 | // GraphDot returns the dot formatting of a visual representation of 6 | // the given Terraform graph. 7 | func GraphDot(g *Graph, opts *dag.DotOpts) (string, error) { 8 | return string(g.Dot(opts)), nil 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/terraform/graph_interface_subgraph.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import ( 4 | "github.com/hashicorp/terraform-plugin-sdk/internal/addrs" 5 | ) 6 | 7 | // GraphNodeSubPath says that a node is part of a graph with a 8 | // different path, and the context should be adjusted accordingly. 9 | type GraphNodeSubPath interface { 10 | Path() addrs.ModuleInstance 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/terraform/graph_walk_operation.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | //go:generate go run golang.org/x/tools/cmd/stringer -type=walkOperation graph_walk_operation.go 4 | 5 | // walkOperation is an enum which tells the walkContext what to do. 6 | type walkOperation byte 7 | 8 | const ( 9 | walkInvalid walkOperation = iota 10 | walkApply 11 | walkPlan 12 | walkPlanDestroy 13 | walkRefresh 14 | walkValidate 15 | walkDestroy 16 | walkImport 17 | walkEval // used just to prepare EvalContext for expression evaluation, with no other actions 18 | ) 19 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/terraform/instancetype.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | //go:generate go run golang.org/x/tools/cmd/stringer -type=InstanceType instancetype.go 4 | 5 | // InstanceType is an enum of the various types of instances store in the State 6 | type InstanceType int 7 | 8 | const ( 9 | TypeInvalid InstanceType = iota 10 | TypePrimary 11 | TypeTainted 12 | TypeDeposed 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/terraform/node_count_boundary.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import ( 4 | "github.com/hashicorp/terraform-plugin-sdk/internal/configs" 5 | ) 6 | 7 | // NodeCountBoundary fixes up any transitions between "each modes" in objects 8 | // saved in state, such as switching from NoEach to EachInt. 9 | type NodeCountBoundary struct { 10 | Config *configs.Config 11 | } 12 | 13 | func (n *NodeCountBoundary) Name() string { 14 | return "meta.count-boundary (EachMode fixup)" 15 | } 16 | 17 | // GraphNodeEvalable 18 | func (n *NodeCountBoundary) EvalTree() EvalNode { 19 | return &EvalCountFixZeroOneBoundaryGlobal{ 20 | Config: n.Config, 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/terraform/node_provider.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | // NodeApplyableProvider represents a provider during an apply. 4 | type NodeApplyableProvider struct { 5 | *NodeAbstractProvider 6 | } 7 | 8 | // GraphNodeEvalable 9 | func (n *NodeApplyableProvider) EvalTree() EvalNode { 10 | return ProviderEvalTree(n, n.ProviderConfig()) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/terraform/node_provider_eval.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | // NodeEvalableProvider represents a provider during an "eval" walk. 4 | // This special provider node type just initializes a provider and 5 | // fetches its schema, without configuring it or otherwise interacting 6 | // with it. 7 | type NodeEvalableProvider struct { 8 | *NodeAbstractProvider 9 | } 10 | 11 | // GraphNodeEvalable 12 | func (n *NodeEvalableProvider) EvalTree() EvalNode { 13 | addr := n.Addr 14 | relAddr := addr.ProviderConfig 15 | 16 | return &EvalInitProvider{ 17 | TypeName: relAddr.Type, 18 | Addr: addr.ProviderConfig, 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/terraform/path.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/hashicorp/terraform-plugin-sdk/internal/addrs" 7 | ) 8 | 9 | // PathObjectCacheKey is like PathCacheKey but includes an additional name 10 | // to be included in the key, for module-namespaced objects. 11 | // 12 | // The result of this function is guaranteed unique for any distinct pair 13 | // of path and name, but is not guaranteed to be in any particular format 14 | // and in particular should never be shown to end-users. 15 | func PathObjectCacheKey(path addrs.ModuleInstance, objectName string) string { 16 | return fmt.Sprintf("%s|%s", path.String(), objectName) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/terraform/resource_mode.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | //go:generate go run golang.org/x/tools/cmd/stringer -type=ResourceMode -output=resource_mode_string.go resource_mode.go 4 | 5 | // ResourceMode is deprecated, use addrs.ResourceMode instead. 6 | // It has been preserved for backwards compatibility. 7 | type ResourceMode int 8 | 9 | const ( 10 | ManagedResourceMode ResourceMode = iota 11 | DataResourceMode 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/terraform/testing.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import ( 4 | "os" 5 | "testing" 6 | ) 7 | 8 | // TestStateFile writes the given state to the path. 9 | func TestStateFile(t *testing.T, path string, state *State) { 10 | f, err := os.Create(path) 11 | if err != nil { 12 | t.Fatalf("err: %s", err) 13 | } 14 | defer f.Close() 15 | 16 | if err := WriteState(state, f); err != nil { 17 | t.Fatalf("err: %s", err) 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/terraform/transform_attach_config_provider.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import ( 4 | "github.com/hashicorp/terraform-plugin-sdk/internal/addrs" 5 | "github.com/hashicorp/terraform-plugin-sdk/internal/configs" 6 | ) 7 | 8 | // GraphNodeAttachProvider is an interface that must be implemented by nodes 9 | // that want provider configurations attached. 10 | type GraphNodeAttachProvider interface { 11 | // Must be implemented to determine the path for the configuration 12 | GraphNodeSubPath 13 | 14 | // ProviderName with no module prefix. Example: "aws". 15 | ProviderAddr() addrs.AbsProviderConfig 16 | 17 | // Sets the configuration 18 | AttachProvider(*configs.Provider) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/terraform/transform_transitive_reduction.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | // TransitiveReductionTransformer is a GraphTransformer that performs 4 | // finds the transitive reduction of the graph. For a definition of 5 | // transitive reduction, see Wikipedia. 6 | type TransitiveReductionTransformer struct{} 7 | 8 | func (t *TransitiveReductionTransformer) Transform(g *Graph) error { 9 | // If the graph isn't valid, skip the transitive reduction. 10 | // We don't error here because Terraform itself handles graph 11 | // validation in a better way, or we assume it does. 12 | if err := g.Validate(); err != nil { 13 | return nil 14 | } 15 | 16 | // Do it 17 | g.TransitiveReduction() 18 | 19 | return nil 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/terraform/ui_input_prefix.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import ( 4 | "context" 5 | "fmt" 6 | ) 7 | 8 | // PrefixUIInput is an implementation of UIInput that prefixes the ID 9 | // with a string, allowing queries to be namespaced. 10 | type PrefixUIInput struct { 11 | IdPrefix string 12 | QueryPrefix string 13 | UIInput UIInput 14 | } 15 | 16 | func (i *PrefixUIInput) Input(ctx context.Context, opts *InputOpts) (string, error) { 17 | opts.Id = fmt.Sprintf("%s.%s", i.IdPrefix, opts.Id) 18 | opts.Query = fmt.Sprintf("%s%s", i.QueryPrefix, opts.Query) 19 | return i.UIInput.Input(ctx, opts) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/terraform/ui_output.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | // UIOutput is the interface that must be implemented to output 4 | // data to the end user. 5 | type UIOutput interface { 6 | Output(string) 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/terraform/ui_output_callback.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | type CallbackUIOutput struct { 4 | OutputFn func(string) 5 | } 6 | 7 | func (o *CallbackUIOutput) Output(v string) { 8 | o.OutputFn(v) 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/terraform/ui_output_mock.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import "sync" 4 | 5 | // MockUIOutput is an implementation of UIOutput that can be used for tests. 6 | type MockUIOutput struct { 7 | sync.Mutex 8 | OutputCalled bool 9 | OutputMessage string 10 | OutputFn func(string) 11 | } 12 | 13 | func (o *MockUIOutput) Output(v string) { 14 | o.Lock() 15 | defer o.Unlock() 16 | o.OutputCalled = true 17 | o.OutputMessage = v 18 | if o.OutputFn != nil { 19 | o.OutputFn(v) 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/terraform/ui_output_provisioner.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import ( 4 | "github.com/hashicorp/terraform-plugin-sdk/internal/addrs" 5 | ) 6 | 7 | // ProvisionerUIOutput is an implementation of UIOutput that calls a hook 8 | // for the output so that the hooks can handle it. 9 | type ProvisionerUIOutput struct { 10 | InstanceAddr addrs.AbsResourceInstance 11 | ProvisionerType string 12 | Hooks []Hook 13 | } 14 | 15 | func (o *ProvisionerUIOutput) Output(msg string) { 16 | for _, h := range o.Hooks { 17 | h.ProvisionOutput(o.InstanceAddr, o.ProvisionerType, msg) 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/yamux/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/yamux/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hashicorp/yamux 2 | -------------------------------------------------------------------------------- /vendor/github.com/jmespath/go-jmespath/.gitignore: -------------------------------------------------------------------------------- 1 | /jpgo 2 | jmespath-fuzz.zip 3 | cpu.out 4 | go-jmespath.test 5 | -------------------------------------------------------------------------------- /vendor/github.com/jmespath/go-jmespath/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | sudo: false 4 | 5 | go: 6 | - 1.4 7 | 8 | install: go get -v -t ./... 9 | script: make test 10 | -------------------------------------------------------------------------------- /vendor/github.com/jmespath/go-jmespath/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2015 James Saryerwinnie 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/github.com/jmespath/go-jmespath/README.md: -------------------------------------------------------------------------------- 1 | # go-jmespath - A JMESPath implementation in Go 2 | 3 | [![Build Status](https://img.shields.io/travis/jmespath/go-jmespath.svg)](https://travis-ci.org/jmespath/go-jmespath) 4 | 5 | 6 | 7 | See http://jmespath.org for more info. 8 | -------------------------------------------------------------------------------- /vendor/github.com/jmespath/go-jmespath/toktype_string.go: -------------------------------------------------------------------------------- 1 | // generated by stringer -type=tokType; DO NOT EDIT 2 | 3 | package jmespath 4 | 5 | import "fmt" 6 | 7 | const _tokType_name = "tUnknowntStartDottFiltertFlattentLparentRparentLbrackettRbrackettLbracetRbracetOrtPipetNumbertUnquotedIdentifiertQuotedIdentifiertCommatColontLTtLTEtGTtGTEtEQtNEtJSONLiteraltStringLiteraltCurrenttExpreftAndtNottEOF" 8 | 9 | var _tokType_index = [...]uint8{0, 8, 13, 17, 24, 32, 39, 46, 55, 64, 71, 78, 81, 86, 93, 112, 129, 135, 141, 144, 148, 151, 155, 158, 161, 173, 187, 195, 202, 206, 210, 214} 10 | 11 | func (i tokType) String() string { 12 | if i < 0 || i >= tokType(len(_tokType_index)-1) { 13 | return fmt.Sprintf("tokType(%d)", i) 14 | } 15 | return _tokType_name[_tokType_index[i]:_tokType_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/keybase/go-crypto/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/keybase/go-crypto/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/keybase/go-crypto/curve25519/const_amd64.h: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // This code was translated into a form compatible with 6a from the public 6 | // domain sources in SUPERCOP: https://bench.cr.yp.to/supercop.html 7 | 8 | #define REDMASK51 0x0007FFFFFFFFFFFF 9 | -------------------------------------------------------------------------------- /vendor/github.com/keybase/go-crypto/curve25519/const_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // This code was translated into a form compatible with 6a from the public 6 | // domain sources in SUPERCOP: https://bench.cr.yp.to/supercop.html 7 | 8 | // +build amd64,!gccgo,!appengine 9 | 10 | // These constants cannot be encoded in non-MOVQ immediates. 11 | // We access them directly from memory instead. 12 | 13 | DATA ·_121666_213(SB)/8, $996687872 14 | GLOBL ·_121666_213(SB), 8, $8 15 | 16 | DATA ·_2P0(SB)/8, $0xFFFFFFFFFFFDA 17 | GLOBL ·_2P0(SB), 8, $8 18 | 19 | DATA ·_2P1234(SB)/8, $0xFFFFFFFFFFFFE 20 | GLOBL ·_2P1234(SB), 8, $8 21 | -------------------------------------------------------------------------------- /vendor/github.com/keybase/go-crypto/openpgp/patch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | patch < sig-v3.patch 4 | patch < s2k-gnu-dummy.patch 5 | find . -type f -name '*.go' -exec sed -i'' -e 's/golang.org\/x\/crypto\/openpgp/github.com\/keybase\/go-crypto\/openpgp/' {} \; 6 | find . -type f -name '*.go-e' -exec rm {} \; 7 | go test ./... 8 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - tip 4 | 5 | before_install: 6 | - go get github.com/mattn/goveralls 7 | - go get golang.org/x/tools/cmd/cover 8 | script: 9 | - $HOME/gopath/bin/goveralls -repotoken xnXqRGwgW3SXIguzxf90ZSK1GPYZPaGrw 10 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/colorable_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package colorable 4 | 5 | import ( 6 | "io" 7 | "os" 8 | 9 | _ "github.com/mattn/go-isatty" 10 | ) 11 | 12 | // NewColorable return new instance of Writer which handle escape sequence. 13 | func NewColorable(file *os.File) io.Writer { 14 | if file == nil { 15 | panic("nil passed instead of *os.File to NewColorable()") 16 | } 17 | 18 | return file 19 | } 20 | 21 | // NewColorableStdout return new instance of Writer which handle escape sequence for stdout. 22 | func NewColorableStdout() io.Writer { 23 | return os.Stdout 24 | } 25 | 26 | // NewColorableStderr return new instance of Writer which handle escape sequence for stderr. 27 | func NewColorableStderr() io.Writer { 28 | return os.Stderr 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - tip 4 | 5 | os: 6 | - linux 7 | - osx 8 | 9 | before_install: 10 | - go get github.com/mattn/goveralls 11 | - go get golang.org/x/tools/cmd/cover 12 | script: 13 | - $HOME/gopath/bin/goveralls -repotoken 3gHdORO5k5ziZcWMBxnd9LrMZaJs8m9x5 14 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/doc.go: -------------------------------------------------------------------------------- 1 | // Package isatty implements interface to isatty 2 | package isatty 3 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package isatty 4 | 5 | // IsTerminal returns true if the file descriptor is terminal which 6 | // is always false on on appengine classic which is a sandboxed PaaS. 7 | func IsTerminal(fd uintptr) bool { 8 | return false 9 | } 10 | 11 | // IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2 12 | // terminal. This is also always false on this environment. 13 | func IsCygwinTerminal(fd uintptr) bool { 14 | return false 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd openbsd netbsd dragonfly 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | const ioctlReadTermios = syscall.TIOCGETA 12 | 13 | // IsTerminal return true if the file descriptor is terminal. 14 | func IsTerminal(fd uintptr) bool { 15 | var termios syscall.Termios 16 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 17 | return err == 0 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_linux.go: -------------------------------------------------------------------------------- 1 | // +build linux 2 | // +build !appengine,!ppc64,!ppc64le 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | const ioctlReadTermios = syscall.TCGETS 12 | 13 | // IsTerminal return true if the file descriptor is terminal. 14 | func IsTerminal(fd uintptr) bool { 15 | var termios syscall.Termios 16 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 17 | return err == 0 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_linux_ppc64x.go: -------------------------------------------------------------------------------- 1 | // +build linux 2 | // +build ppc64 ppc64le 3 | 4 | package isatty 5 | 6 | import ( 7 | "unsafe" 8 | 9 | syscall "golang.org/x/sys/unix" 10 | ) 11 | 12 | const ioctlReadTermios = syscall.TCGETS 13 | 14 | // IsTerminal return true if the file descriptor is terminal. 15 | func IsTerminal(fd uintptr) bool { 16 | var termios syscall.Termios 17 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 18 | return err == 0 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_others.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 7 | // terminal. This is also always false on this environment. 8 | func IsCygwinTerminal(fd uintptr) bool { 9 | return false 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_solaris.go: -------------------------------------------------------------------------------- 1 | // +build solaris 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | // IsTerminal returns true if the given file descriptor is a terminal. 11 | // see: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libbc/libc/gen/common/isatty.c 12 | func IsTerminal(fd uintptr) bool { 13 | var termio unix.Termio 14 | err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio) 15 | return err == nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/cli/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | language: go 4 | 5 | go: 6 | - "1.8" 7 | - "1.9" 8 | - "1.10" 9 | 10 | branches: 11 | only: 12 | - master 13 | 14 | script: make updatedeps test testrace 15 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/cli/Makefile: -------------------------------------------------------------------------------- 1 | TEST?=./... 2 | 3 | default: test 4 | 5 | # test runs the test suite and vets the code 6 | test: 7 | go list $(TEST) | xargs -n1 go test -timeout=60s -parallel=10 $(TESTARGS) 8 | 9 | # testrace runs the race checker 10 | testrace: 11 | go list $(TEST) | xargs -n1 go test -race $(TESTARGS) 12 | 13 | # updatedeps installs all the dependencies to run and build 14 | updatedeps: 15 | go list ./... \ 16 | | xargs go list -f '{{ join .Deps "\n" }}{{ printf "\n" }}{{ join .TestImports "\n" }}' \ 17 | | grep -v github.com/mitchellh/cli \ 18 | | xargs go get -f -u -v 19 | 20 | .PHONY: test testrace updatedeps 21 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/cli/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/mitchellh/cli 2 | 3 | require ( 4 | github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310 5 | github.com/bgentry/speakeasy v0.1.0 6 | github.com/fatih/color v1.7.0 7 | github.com/hashicorp/go-multierror v1.0.0 // indirect 8 | github.com/mattn/go-colorable v0.0.9 // indirect 9 | github.com/mattn/go-isatty v0.0.3 10 | github.com/posener/complete v1.1.1 11 | golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc // indirect 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/cli/ui_writer.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | // UiWriter is an io.Writer implementation that can be used with 4 | // loggers that writes every line of log output data to a Ui at the 5 | // Info level. 6 | type UiWriter struct { 7 | Ui Ui 8 | } 9 | 10 | func (w *UiWriter) Write(p []byte) (n int, err error) { 11 | n = len(p) 12 | if n > 0 && p[n-1] == '\n' { 13 | p = p[:n-1] 14 | } 15 | 16 | w.Ui.Info(string(p)) 17 | return n, nil 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/colorstring/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.0 5 | - 1.1 6 | - 1.2 7 | - 1.3 8 | - tip 9 | 10 | script: 11 | - go test 12 | 13 | matrix: 14 | allow_failures: 15 | - go: tip 16 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/colorstring/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/mitchellh/colorstring 2 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/copystructure/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.7 5 | - tip 6 | 7 | script: 8 | - go test 9 | 10 | matrix: 11 | allow_failures: 12 | - go: tip 13 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/copystructure/README.md: -------------------------------------------------------------------------------- 1 | # copystructure 2 | 3 | copystructure is a Go library for deep copying values in Go. 4 | 5 | This allows you to copy Go values that may contain reference values 6 | such as maps, slices, or pointers, and copy their data as well instead 7 | of just their references. 8 | 9 | ## Installation 10 | 11 | Standard `go get`: 12 | 13 | ``` 14 | $ go get github.com/mitchellh/copystructure 15 | ``` 16 | 17 | ## Usage & Example 18 | 19 | For usage and examples see the [Godoc](http://godoc.org/github.com/mitchellh/copystructure). 20 | 21 | The `Copy` function has examples associated with it there. 22 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/copystructure/copier_time.go: -------------------------------------------------------------------------------- 1 | package copystructure 2 | 3 | import ( 4 | "reflect" 5 | "time" 6 | ) 7 | 8 | func init() { 9 | Copiers[reflect.TypeOf(time.Time{})] = timeCopier 10 | } 11 | 12 | func timeCopier(v interface{}) (interface{}, error) { 13 | // Just... copy it. 14 | return v.(time.Time), nil 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/copystructure/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/mitchellh/copystructure 2 | 3 | require github.com/mitchellh/reflectwalk v1.0.0 4 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/copystructure/go.sum: -------------------------------------------------------------------------------- 1 | github.com/mitchellh/reflectwalk v1.0.0 h1:9D+8oIskB4VJBN5SFlmc27fSlIBZaov1Wpk/IfikLNY= 2 | github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= 3 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/go-homedir/README.md: -------------------------------------------------------------------------------- 1 | # go-homedir 2 | 3 | This is a Go library for detecting the user's home directory without 4 | the use of cgo, so the library can be used in cross-compilation environments. 5 | 6 | Usage is incredibly simple, just call `homedir.Dir()` to get the home directory 7 | for a user, and `homedir.Expand()` to expand the `~` in a path to the home 8 | directory. 9 | 10 | **Why not just use `os/user`?** The built-in `os/user` package requires 11 | cgo on Darwin systems. This means that any Go code that uses that package 12 | cannot cross compile. But 99% of the time the use for `os/user` is just to 13 | retrieve the home directory, which we can do for the current user without 14 | cgo. This library does that, enabling cross-compilation. 15 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/go-homedir/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/mitchellh/go-homedir 2 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/go-testing-interface/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8 5 | - 1.x 6 | - tip 7 | 8 | script: 9 | - go test 10 | 11 | matrix: 12 | allow_failures: 13 | - go: tip 14 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/go-testing-interface/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/mitchellh/go-testing-interface 2 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/go-wordwrap/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/mitchellh/go-wordwrap 2 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/mapstructure/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - "1.11.x" 5 | - tip 6 | 7 | script: 8 | - go test 9 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/mapstructure/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 1.1.2 2 | 3 | * Fix error when decode hook decodes interface implementation into interface 4 | type. [GH-140] 5 | 6 | ## 1.1.1 7 | 8 | * Fix panic that can happen in `decodePtr` 9 | 10 | ## 1.1.0 11 | 12 | * Added `StringToIPHookFunc` to convert `string` to `net.IP` and `net.IPNet` [GH-133] 13 | * Support struct to struct decoding [GH-137] 14 | * If source map value is nil, then destination map value is nil (instead of empty) 15 | * If source slice value is nil, then destination slice value is nil (instead of empty) 16 | * If source pointer is nil, then destination pointer is set to nil (instead of 17 | allocated zero value of type) 18 | 19 | ## 1.0.0 20 | 21 | * Initial tagged stable release. 22 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/mapstructure/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/mitchellh/mapstructure 2 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/reflectwalk/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/reflectwalk/README.md: -------------------------------------------------------------------------------- 1 | # reflectwalk 2 | 3 | reflectwalk is a Go library for "walking" a value in Go using reflection, 4 | in the same way a directory tree can be "walked" on the filesystem. Walking 5 | a complex structure can allow you to do manipulations on unknown structures 6 | such as those decoded from JSON. 7 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/reflectwalk/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/mitchellh/reflectwalk 2 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/reflectwalk/location.go: -------------------------------------------------------------------------------- 1 | package reflectwalk 2 | 3 | //go:generate stringer -type=Location location.go 4 | 5 | type Location uint 6 | 7 | const ( 8 | None Location = iota 9 | Map 10 | MapKey 11 | MapValue 12 | Slice 13 | SliceElem 14 | Array 15 | ArrayElem 16 | Struct 17 | StructField 18 | WalkLoc 19 | ) 20 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/reflectwalk/location_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=Location location.go"; DO NOT EDIT. 2 | 3 | package reflectwalk 4 | 5 | import "fmt" 6 | 7 | const _Location_name = "NoneMapMapKeyMapValueSliceSliceElemArrayArrayElemStructStructFieldWalkLoc" 8 | 9 | var _Location_index = [...]uint8{0, 4, 7, 13, 21, 26, 35, 40, 49, 55, 66, 73} 10 | 11 | func (i Location) String() string { 12 | if i >= Location(len(_Location_index)-1) { 13 | return fmt.Sprintf("Location(%d)", i) 14 | } 15 | return _Location_name[_Location_index[i]:_Location_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/oklog/run/.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.dll 4 | *.so 5 | *.dylib 6 | 7 | # Test binary, build with `go test -c` 8 | *.test 9 | 10 | # Output of the go coverage tool, specifically when used with LiteIDE 11 | *.out 12 | 13 | # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 14 | .glide/ 15 | -------------------------------------------------------------------------------- /vendor/github.com/oklog/run/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.x 5 | - tip 6 | install: 7 | - go get -v github.com/golang/lint/golint 8 | - go build ./... 9 | script: 10 | - go vet ./... 11 | - $HOME/gopath/bin/golint . 12 | - go test -v -race ./... 13 | -------------------------------------------------------------------------------- /vendor/github.com/pierrec/lz4/.gitignore: -------------------------------------------------------------------------------- 1 | # Created by https://www.gitignore.io/api/macos 2 | 3 | ### macOS ### 4 | *.DS_Store 5 | .AppleDouble 6 | .LSOverride 7 | 8 | # Icon must end with two \r 9 | Icon 10 | 11 | 12 | # Thumbnails 13 | ._* 14 | 15 | # Files that might appear in the root of a volume 16 | .DocumentRevisions-V100 17 | .fseventsd 18 | .Spotlight-V100 19 | .TemporaryItems 20 | .Trashes 21 | .VolumeIcon.icns 22 | .com.apple.timemachine.donotpresent 23 | 24 | # Directories potentially created on remote AFP share 25 | .AppleDB 26 | .AppleDesktop 27 | Network Trash Folder 28 | Temporary Items 29 | .apdisk 30 | 31 | # End of https://www.gitignore.io/api/macos 32 | 33 | lz4c/lz4c 34 | -------------------------------------------------------------------------------- /vendor/github.com/pierrec/lz4/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.9.x 6 | - 1.10.x 7 | - master 8 | 9 | matrix: 10 | fast_finish: true 11 | allow_failures: 12 | - go: master 13 | 14 | sudo: false 15 | 16 | script: 17 | - go test -v -cpu=2 18 | - go test -v -cpu=2 -race 19 | -------------------------------------------------------------------------------- /vendor/github.com/pierrec/lz4/debug.go: -------------------------------------------------------------------------------- 1 | // +build lz4debug 2 | 3 | package lz4 4 | 5 | import ( 6 | "fmt" 7 | "os" 8 | "path/filepath" 9 | "runtime" 10 | ) 11 | 12 | const debugFlag = true 13 | 14 | func debug(args ...interface{}) { 15 | _, file, line, _ := runtime.Caller(1) 16 | file = filepath.Base(file) 17 | 18 | f := fmt.Sprintf("LZ4: %s:%d %s", file, line, args[0]) 19 | if f[len(f)-1] != '\n' { 20 | f += "\n" 21 | } 22 | fmt.Fprintf(os.Stderr, f, args[1:]...) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/pierrec/lz4/debug_stub.go: -------------------------------------------------------------------------------- 1 | // +build !lz4debug 2 | 3 | package lz4 4 | 5 | const debugFlag = false 6 | 7 | func debug(args ...interface{}) {} 8 | -------------------------------------------------------------------------------- /vendor/github.com/pierrec/lz4/lz4_go1.10.go: -------------------------------------------------------------------------------- 1 | //+build go1.10 2 | 3 | package lz4 4 | 5 | import ( 6 | "fmt" 7 | "strings" 8 | ) 9 | 10 | func (h Header) String() string { 11 | var s strings.Builder 12 | 13 | s.WriteString(fmt.Sprintf("%T{", h)) 14 | if h.BlockChecksum { 15 | s.WriteString("BlockChecksum: true ") 16 | } 17 | if h.NoChecksum { 18 | s.WriteString("NoChecksum: true ") 19 | } 20 | if bs := h.BlockMaxSize; bs != 0 && bs != 4<<20 { 21 | s.WriteString(fmt.Sprintf("BlockMaxSize: %d ", bs)) 22 | } 23 | if l := h.CompressionLevel; l != 0 { 24 | s.WriteString(fmt.Sprintf("CompressionLevel: %d ", l)) 25 | } 26 | s.WriteByte('}') 27 | 28 | return s.String() 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/pierrec/lz4/lz4_notgo1.10.go: -------------------------------------------------------------------------------- 1 | //+build !go1.10 2 | 3 | package lz4 4 | 5 | import ( 6 | "bytes" 7 | "fmt" 8 | ) 9 | 10 | func (h Header) String() string { 11 | var s bytes.Buffer 12 | 13 | s.WriteString(fmt.Sprintf("%T{", h)) 14 | if h.BlockChecksum { 15 | s.WriteString("BlockChecksum: true ") 16 | } 17 | if h.NoChecksum { 18 | s.WriteString("NoChecksum: true ") 19 | } 20 | if bs := h.BlockMaxSize; bs != 0 && bs != 4<<20 { 21 | s.WriteString(fmt.Sprintf("BlockMaxSize: %d ", bs)) 22 | } 23 | if l := h.CompressionLevel; l != 0 { 24 | s.WriteString(fmt.Sprintf("CompressionLevel: %d ", l)) 25 | } 26 | s.WriteByte('}') 27 | 28 | return s.String() 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/posener/complete/.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | coverage.txt 3 | gocomplete/gocomplete 4 | example/self/self 5 | -------------------------------------------------------------------------------- /vendor/github.com/posener/complete/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.11 5 | - 1.10.x 6 | - 1.9 7 | - 1.8 8 | 9 | before_install: 10 | - go get -u -t ./... 11 | 12 | script: 13 | - GO111MODULE=on ./test.sh 14 | 15 | after_success: 16 | - bash <(curl -s https://codecov.io/bash) 17 | -------------------------------------------------------------------------------- /vendor/github.com/posener/complete/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/posener/complete 2 | 3 | require github.com/hashicorp/go-multierror v1.0.0 4 | -------------------------------------------------------------------------------- /vendor/github.com/posener/complete/go.sum: -------------------------------------------------------------------------------- 1 | github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= 2 | github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= 3 | github.com/hashicorp/go-multierror v1.0.0 h1:iVjPR7a6H0tWELX5NxNe7bYopibicUzc7uPribsnS6o= 4 | github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= 5 | -------------------------------------------------------------------------------- /vendor/github.com/posener/complete/log.go: -------------------------------------------------------------------------------- 1 | package complete 2 | 3 | import ( 4 | "io/ioutil" 5 | "log" 6 | "os" 7 | ) 8 | 9 | // Log is used for debugging purposes 10 | // since complete is running on tab completion, it is nice to 11 | // have logs to the stderr (when writing your own completer) 12 | // to write logs, set the COMP_DEBUG environment variable and 13 | // use complete.Log in the complete program 14 | var Log = getLogger() 15 | 16 | func getLogger() func(format string, args ...interface{}) { 17 | var logfile = ioutil.Discard 18 | if os.Getenv(envDebug) != "" { 19 | logfile = os.Stderr 20 | } 21 | return log.New(logfile, "complete ", log.Flags()).Printf 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/posener/complete/match/file.go: -------------------------------------------------------------------------------- 1 | package match 2 | 3 | import "strings" 4 | 5 | // File returns true if prefix can match the file 6 | func File(file, prefix string) bool { 7 | // special case for current directory completion 8 | if file == "./" && (prefix == "." || prefix == "") { 9 | return true 10 | } 11 | if prefix == "." && strings.HasPrefix(file, ".") { 12 | return true 13 | } 14 | 15 | file = strings.TrimPrefix(file, "./") 16 | prefix = strings.TrimPrefix(prefix, "./") 17 | 18 | return strings.HasPrefix(file, prefix) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/posener/complete/match/match.go: -------------------------------------------------------------------------------- 1 | package match 2 | 3 | // Match matches two strings 4 | // it is used for comparing a term to the last typed 5 | // word, the prefix, and see if it is a possible auto complete option. 6 | type Match func(term, prefix string) bool 7 | -------------------------------------------------------------------------------- /vendor/github.com/posener/complete/match/prefix.go: -------------------------------------------------------------------------------- 1 | package match 2 | 3 | import "strings" 4 | 5 | // Prefix is a simple Matcher, if the word is it's prefix, there is a match 6 | // Match returns true if a has the prefix as prefix 7 | func Prefix(long, prefix string) bool { 8 | return strings.HasPrefix(long, prefix) 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/posener/complete/predict_set.go: -------------------------------------------------------------------------------- 1 | package complete 2 | 3 | // PredictSet expects specific set of terms, given in the options argument. 4 | func PredictSet(options ...string) Predictor { 5 | return predictSet(options) 6 | } 7 | 8 | type predictSet []string 9 | 10 | func (p predictSet) Predict(a Args) []string { 11 | return p 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/posener/complete/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -v -race -coverprofile=profile.out -covermode=atomic $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done -------------------------------------------------------------------------------- /vendor/github.com/spf13/afero/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | 4 | go: 5 | - 1.9 6 | - "1.10" 7 | - tip 8 | 9 | os: 10 | - linux 11 | - osx 12 | 13 | matrix: 14 | allow_failures: 15 | - go: tip 16 | fast_finish: true 17 | 18 | script: 19 | - go build 20 | - go test -race -v ./... 21 | 22 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/afero/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: '{build}' 2 | clone_folder: C:\gopath\src\github.com\spf13\afero 3 | environment: 4 | GOPATH: C:\gopath 5 | build_script: 6 | - cmd: >- 7 | go version 8 | 9 | go env 10 | 11 | go get -v github.com/spf13/afero/... 12 | 13 | go build github.com/spf13/afero 14 | test_script: 15 | - cmd: go test -race -v github.com/spf13/afero/... 16 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/afero/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/spf13/afero 2 | 3 | require golang.org/x/text v0.3.0 4 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/afero/go.sum: -------------------------------------------------------------------------------- 1 | golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg= 2 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 3 | -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/.gitignore: -------------------------------------------------------------------------------- 1 | # .gitignore 2 | 3 | TODO.html 4 | README.html 5 | 6 | lzma/writer.txt 7 | lzma/reader.txt 8 | 9 | cmd/gxz/gxz 10 | cmd/xb/xb 11 | 12 | # test executables 13 | *.test 14 | 15 | # profile files 16 | *.out 17 | 18 | # vim swap file 19 | .*.swp 20 | 21 | # executables on windows 22 | *.exe 23 | 24 | # default compression test file 25 | enwik8* 26 | -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/fox.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winebarrel/terraform-provider-mysql/94631e6fa53cb7d3557e57383dff92576ab7babd/vendor/github.com/ulikunitz/xz/fox.xz -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/internal/hash/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014-2017 Ulrich Kunitz. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | /* 6 | Package hash provides rolling hashes. 7 | 8 | Rolling hashes have to be used for maintaining the positions of n-byte 9 | sequences in the dictionary buffer. 10 | 11 | The package provides currently the Rabin-Karp rolling hash and a Cyclic 12 | Polynomial hash. Both support the Hashes method to be used with an interface. 13 | */ 14 | package hash 15 | -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/lzma/fox.lzma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winebarrel/terraform-provider-mysql/94631e6fa53cb7d3557e57383dff92576ab7babd/vendor/github.com/ulikunitz/xz/lzma/fox.lzma -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/make-docs: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -x 4 | pandoc -t html5 -f markdown -s --css=doc/md.css -o README.html README.md 5 | pandoc -t html5 -f markdown -s --css=doc/md.css -o TODO.html TODO.md 6 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/msgpack/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | 4 | go: 5 | - 1.7.x 6 | - 1.8.x 7 | - 1.9.x 8 | - 1.10.x 9 | - tip 10 | 11 | matrix: 12 | allow_failures: 13 | - go: tip 14 | 15 | install: 16 | - go get gopkg.in/check.v1 17 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/msgpack/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | go test ./... 3 | env GOOS=linux GOARCH=386 go test ./... 4 | go test ./... -short -race 5 | go vet 6 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/msgpack/msgpack.go: -------------------------------------------------------------------------------- 1 | package msgpack 2 | 3 | type Marshaler interface { 4 | MarshalMsgpack() ([]byte, error) 5 | } 6 | 7 | type Unmarshaler interface { 8 | UnmarshalMsgpack([]byte) error 9 | } 10 | 11 | type CustomEncoder interface { 12 | EncodeMsgpack(*Encoder) error 13 | } 14 | 15 | type CustomDecoder interface { 16 | DecodeMsgpack(*Decoder) error 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty-yaml/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.12 5 | 6 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty-yaml/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 1.0.1 (July 30, 2019) 2 | 3 | * The YAML decoder is now correctly treating quoted scalars as verbatim literal 4 | strings rather than using the fuzzy type selection rules for them. Fuzzy 5 | type selection rules still apply to unquoted scalars. 6 | ([#4](https://github.com/zclconf/go-cty-yaml/pull/4)) 7 | 8 | # 1.0.0 (May 26, 2019) 9 | 10 | Initial release. 11 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty-yaml/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/zclconf/go-cty-yaml 2 | 3 | require github.com/zclconf/go-cty v1.0.0 4 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/function/doc.go: -------------------------------------------------------------------------------- 1 | // Package function builds on the functionality of cty by modeling functions 2 | // that operate on cty Values. 3 | // 4 | // Functions are, at their core, Go anonymous functions. However, this package 5 | // wraps around them utility functions for parameter type checking, etc. 6 | package function 7 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/function/stdlib/doc.go: -------------------------------------------------------------------------------- 1 | // Package stdlib is a collection of cty functions that are expected to be 2 | // generally useful, and are thus factored out into this shared library in 3 | // the hope that cty-using applications will have consistent behavior when 4 | // using these functions. 5 | // 6 | // See the parent package "function" for more information on the purpose 7 | // and usage of cty functions. 8 | // 9 | // This package contains both Go functions, which provide convenient access 10 | // to call the functions from Go code, and the Function objects themselves. 11 | // The latter follow the naming scheme of appending "Func" to the end of 12 | // the function name. 13 | package stdlib 14 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/gocty/doc.go: -------------------------------------------------------------------------------- 1 | // Package gocty deals with converting between cty Values and native go 2 | // values. 3 | // 4 | // It operates under a similar principle to the encoding/json and 5 | // encoding/xml packages in the standard library, using reflection to 6 | // populate native Go data structures from cty values and vice-versa. 7 | package gocty 8 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/json/doc.go: -------------------------------------------------------------------------------- 1 | // Package json provides functions for serializing cty types and values in 2 | // JSON format, and for decoding them again. 3 | // 4 | // Since the cty type system is a superset of the JSON type system, 5 | // round-tripping through JSON is lossy unless type information is provided 6 | // both at encoding time and decoding time. Callers of this package are 7 | // therefore suggested to define their expected structure as a cty.Type 8 | // and pass it in consistently both when encoding and when decoding, though 9 | // default (type-lossy) behavior is provided for situations where the precise 10 | // representation of the data is not significant. 11 | package json 12 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/json/type.go: -------------------------------------------------------------------------------- 1 | package json 2 | 3 | import ( 4 | "github.com/zclconf/go-cty/cty" 5 | ) 6 | 7 | // MarshalType returns a JSON serialization of the given type. 8 | // 9 | // This is just a thin wrapper around t.MarshalJSON, for symmetry with 10 | // UnmarshalType. 11 | func MarshalType(t cty.Type) ([]byte, error) { 12 | return t.MarshalJSON() 13 | } 14 | 15 | // UnmarshalType decodes a JSON serialization of the given type as produced 16 | // by either Type.MarshalJSON or MarshalType. 17 | // 18 | // This is a convenience wrapper around Type.UnmarshalJSON. 19 | func UnmarshalType(buf []byte) (cty.Type, error) { 20 | var t cty.Type 21 | err := t.UnmarshalJSON(buf) 22 | return t, err 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/msgpack/infinity.go: -------------------------------------------------------------------------------- 1 | package msgpack 2 | 3 | import ( 4 | "math" 5 | ) 6 | 7 | var negativeInfinity = math.Inf(-1) 8 | var positiveInfinity = math.Inf(1) 9 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/msgpack/unknown.go: -------------------------------------------------------------------------------- 1 | package msgpack 2 | 3 | type unknownType struct{} 4 | 5 | var unknownVal = unknownType{} 6 | 7 | // unknownValBytes is the raw bytes of the msgpack fixext1 value we 8 | // write to represent an unknown value. It's an extension value of 9 | // type zero whose value is irrelevant. Since it's irrelevant, we 10 | // set it to a single byte whose value is also zero, since that's 11 | // the most compact possible representation. 12 | var unknownValBytes = []byte{0xd4, 0, 0} 13 | 14 | func (uv unknownType) MarshalMsgpack() ([]byte, error) { 15 | return unknownValBytes, nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/null.go: -------------------------------------------------------------------------------- 1 | package cty 2 | 3 | // NullVal returns a null value of the given type. A null can be created of any 4 | // type, but operations on such values will always panic. Calling applications 5 | // are encouraged to use nulls only sparingly, particularly when user-provided 6 | // expressions are to be evaluated, since the precence of nulls creates a 7 | // much higher chance of evaluation errors that can't be caught by a type 8 | // checker. 9 | func NullVal(t Type) Value { 10 | return Value{ 11 | ty: t, 12 | v: nil, 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/set/iterator.go: -------------------------------------------------------------------------------- 1 | package set 2 | 3 | type Iterator struct { 4 | vals []interface{} 5 | idx int 6 | } 7 | 8 | func (it *Iterator) Value() interface{} { 9 | return it.vals[it.idx] 10 | } 11 | 12 | func (it *Iterator) Next() bool { 13 | it.idx++ 14 | return it.idx < len(it.vals) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/.gitignore: -------------------------------------------------------------------------------- 1 | /.idea/ 2 | 3 | # go.opencensus.io/exporter/aws 4 | /exporter/aws/ 5 | 6 | # Exclude vendor, use dep ensure after checkout: 7 | /vendor/github.com/ 8 | /vendor/golang.org/ 9 | /vendor/google.golang.org/ 10 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go_import_path: go.opencensus.io 4 | 5 | go: 6 | - 1.11.x 7 | 8 | env: 9 | global: 10 | GO111MODULE=on 11 | 12 | before_script: 13 | - make install-tools 14 | 15 | script: 16 | - make travis-ci 17 | - go run internal/check/version.go # TODO move this to makefile 18 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/AUTHORS: -------------------------------------------------------------------------------- 1 | Google Inc. 2 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "{build}" 2 | 3 | platform: x64 4 | 5 | clone_folder: c:\gopath\src\go.opencensus.io 6 | 7 | environment: 8 | GOPATH: 'c:\gopath' 9 | GOVERSION: '1.11' 10 | GO111MODULE: 'on' 11 | CGO_ENABLED: '0' # See: https://github.com/appveyor/ci/issues/2613 12 | 13 | install: 14 | - set PATH=%GOPATH%\bin;c:\go\bin;%PATH% 15 | - choco upgrade golang --version 1.11.5 # Temporary fix because of a go.sum bug in 1.11 16 | - go version 17 | - go env 18 | 19 | build: false 20 | deploy: false 21 | 22 | test_script: 23 | - cd %APPVEYOR_BUILD_FOLDER% 24 | - go build -v .\... 25 | - go test -v .\... # No -race because cgo is disabled 26 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/go.mod: -------------------------------------------------------------------------------- 1 | module go.opencensus.io 2 | 3 | require ( 4 | github.com/golang/protobuf v1.3.1 5 | github.com/google/go-cmp v0.3.0 6 | github.com/hashicorp/golang-lru v0.5.1 7 | golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09 8 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd // indirect 9 | golang.org/x/text v0.3.2 // indirect 10 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb // indirect 11 | google.golang.org/grpc v1.20.1 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/metric/metricdata/type_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type Type"; DO NOT EDIT. 2 | 3 | package metricdata 4 | 5 | import "strconv" 6 | 7 | const _Type_name = "TypeGaugeInt64TypeGaugeFloat64TypeGaugeDistributionTypeCumulativeInt64TypeCumulativeFloat64TypeCumulativeDistributionTypeSummary" 8 | 9 | var _Type_index = [...]uint8{0, 14, 30, 51, 70, 91, 117, 128} 10 | 11 | func (i Type) String() string { 12 | if i < 0 || i >= Type(len(_Type_index)-1) { 13 | return "Type(" + strconv.FormatInt(int64(i), 10) + ")" 14 | } 15 | return _Type_name[_Type_index[i]:_Type_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at https://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at https://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/context/go19.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.9 6 | 7 | package context 8 | 9 | import "context" // standard library's context, as of Go 1.7 10 | 11 | // A Context carries a deadline, a cancelation signal, and other values across 12 | // API boundaries. 13 | // 14 | // Context's methods may be called by multiple goroutines simultaneously. 15 | type Context = context.Context 16 | 17 | // A CancelFunc tells an operation to abandon its work. 18 | // A CancelFunc does not wait for the work to stop. 19 | // After the first call, subsequent calls to a CancelFunc do nothing. 20 | type CancelFunc = context.CancelFunc 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | h2i/h2i 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/Makefile: -------------------------------------------------------------------------------- 1 | curlimage: 2 | docker build -t gohttp2/curl . 3 | 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/README: -------------------------------------------------------------------------------- 1 | This is a work-in-progress HTTP/2 implementation for Go. 2 | 3 | It will eventually live in the Go standard library and won't require 4 | any changes to your code to use. It will just be automatic. 5 | 6 | Status: 7 | 8 | * The server support is pretty good. A few things are missing 9 | but are being worked on. 10 | * The client work has just started but shares a lot of code 11 | is coming along much quicker. 12 | 13 | Docs are at https://godoc.org/golang.org/x/net/http2 14 | 15 | Demo test server at https://http2.golang.org/ 16 | 17 | Help & bug reports welcome! 18 | 19 | Contributing: https://golang.org/doc/contribute.html 20 | Bugs: https://golang.org/issue/new?title=x/net/http2:+ 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/not_go111.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.11 6 | 7 | package http2 8 | 9 | import ( 10 | "net/http/httptrace" 11 | "net/textproto" 12 | ) 13 | 14 | func traceHasWroteHeaderField(trace *httptrace.ClientTrace) bool { return false } 15 | 16 | func traceWroteHeaderField(trace *httptrace.ClientTrace, k, v string) {} 17 | 18 | func traceGot1xxResponseFunc(trace *httptrace.ClientTrace) func(int, textproto.MIMEHeader) error { 19 | return nil 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - tip 5 | 6 | install: 7 | - export GOPATH="$HOME/gopath" 8 | - mkdir -p "$GOPATH/src/golang.org/x" 9 | - mv "$TRAVIS_BUILD_DIR" "$GOPATH/src/golang.org/x/oauth2" 10 | - go get -v -t -d golang.org/x/oauth2/... 11 | 12 | script: 13 | - go test -v golang.org/x/oauth2/... 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/go.mod: -------------------------------------------------------------------------------- 1 | module golang.org/x/oauth2 2 | 3 | go 1.11 4 | 5 | require ( 6 | cloud.google.com/go v0.34.0 7 | golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e 8 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 // indirect 9 | google.golang.org/appengine v1.4.0 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/internal/client_appengine.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build appengine 6 | 7 | package internal 8 | 9 | import "google.golang.org/appengine/urlfetch" 10 | 11 | func init() { 12 | appengineClientHook = urlfetch.Client 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/internal/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package internal contains support packages for oauth2 package. 6 | package internal 7 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | // +build go1.9 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | type Signal = syscall.Signal 13 | type Errno = syscall.Errno 14 | type SysProcAttr = syscall.SysProcAttr 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 11 | // 12 | 13 | TEXT ·syscall6(SB),NOSPLIT,$0-88 14 | JMP syscall·syscall6(SB) 15 | 16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSyscall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 11 | // 12 | 13 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 14 | JMP syscall·sysvicall6(SB) 15 | 16 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSysvicall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | const ( 10 | R_OK = 0x4 11 | W_OK = 0x2 12 | X_OK = 0x1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dirent.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux nacl netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // ParseDirent parses up to max directory entries in buf, 12 | // appending the names to names. It returns the number of 13 | // bytes consumed from buf, the number of entries added 14 | // to names, and the new names slice. 15 | func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) { 16 | return syscall.ParseDirent(buf, max, names) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | // +build ppc64 s390x mips mips64 6 | 7 | package unix 8 | 9 | const isBigEndian = true 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | // +build 386 amd64 amd64p32 arm arm64 ppc64le mipsle mips64le 6 | 7 | package unix 8 | 9 | const isBigEndian = false 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/env_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | // Unix environment variables. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getenv(key string) (value string, found bool) { 14 | return syscall.Getenv(key) 15 | } 16 | 17 | func Setenv(key, value string) error { 18 | return syscall.Setenv(key, value) 19 | } 20 | 21 | func Clearenv() { 22 | syscall.Clearenv() 23 | } 24 | 25 | func Environ() []string { 26 | return syscall.Environ() 27 | } 28 | 29 | func Unsetenv(key string) error { 30 | return syscall.Unsetenv(key) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package unix 6 | 7 | import "unsafe" 8 | 9 | // FcntlInt performs a fcntl syscall on fd with the provided command and argument. 10 | func FcntlInt(fd uintptr, cmd, arg int) (int, error) { 11 | return fcntl(int(fd), cmd, arg) 12 | } 13 | 14 | // FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. 15 | func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { 16 | _, err := fcntl(int(fd), cmd, int(uintptr(unsafe.Pointer(lk)))) 17 | return err 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // +build linux,386 linux,arm linux,mips linux,mipsle 2 | 3 | // Copyright 2014 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package unix 8 | 9 | func init() { 10 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 11 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 12 | fcntl64Syscall = SYS_FCNTL64 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gccgo,linux,amd64 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //extern gettimeofday 12 | func realGettimeofday(*Timeval, *byte) int32 13 | 14 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 15 | r := realGettimeofday(tv, nil) 16 | if r < 0 { 17 | return syscall.GetErrno() 18 | } 19 | return 0 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/pagesize_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | // For Unix, get the pagesize from the runtime. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getpagesize() int { 14 | return syscall.Getpagesize() 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin,race linux,race freebsd,race 6 | 7 | package unix 8 | 9 | import ( 10 | "runtime" 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = true 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | runtime.RaceAcquire(addr) 18 | } 19 | 20 | func raceReleaseMerge(addr unsafe.Pointer) { 21 | runtime.RaceReleaseMerge(addr) 22 | } 23 | 24 | func raceReadRange(addr unsafe.Pointer, len int) { 25 | runtime.RaceReadRange(addr, len) 26 | } 27 | 28 | func raceWriteRange(addr unsafe.Pointer, len int) { 29 | runtime.RaceWriteRange(addr, len) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly 6 | 7 | package unix 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdents.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix dragonfly freebsd linux netbsd openbsd 6 | 7 | package unix 8 | 9 | // ReadDirent reads directory entries from fd and writes them into buf. 10 | func ReadDirent(fd int, buf []byte) (n int, err error) { 11 | return Getdents(fd, buf) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 10 | if val < 0 { 11 | return "-" + uitoa(uint(-val)) 12 | } 13 | return uitoa(uint(val)) 14 | } 15 | 16 | func uitoa(val uint) string { 17 | var buf [32]byte // big enough for int64 18 | i := len(buf) - 1 19 | for val >= 10 { 20 | buf[i] = byte(val%10 + '0') 21 | i-- 22 | val /= 10 23 | } 24 | buf[i] = byte(val + '0') 25 | return string(buf[i:]) 26 | } 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,linux 6 | // +build !gccgo 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //go:noescape 13 | func gettimeofday(tv *Timeval) (err syscall.Errno) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux,!gccgo 6 | 7 | package unix 8 | 9 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 10 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 11 | 12 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 13 | // fail. 14 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux,!gccgo,386 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | 15 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 16 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux,gccgo,arm 6 | 7 | package unix 8 | 9 | import ( 10 | "syscall" 11 | "unsafe" 12 | ) 13 | 14 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { 15 | var newoffset int64 16 | offsetLow := uint32(offset & 0xffffffff) 17 | offsetHigh := uint32((offset >> 32) & 0xffffffff) 18 | _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0) 19 | return newoffset, err 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,solaris 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: nsec} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: usec} 15 | } 16 | 17 | func (iov *Iovec) SetLen(length int) { 18 | iov.Len = uint64(length) 19 | } 20 | 21 | func (cmsg *Cmsghdr) SetLen(length int) { 22 | cmsg.Len = uint32(length) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_unix_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | // +build !gccgo,!ppc64le,!ppc64 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 13 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 14 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 15 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.10 6 | 7 | package bidirule 8 | 9 | func (t *Transformer) isFinal() bool { 10 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.10 6 | 7 | package bidirule 8 | 9 | func (t *Transformer) isFinal() bool { 10 | if !t.isRTL() { 11 | return true 12 | } 13 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 14 | } 15 | -------------------------------------------------------------------------------- /vendor/google.golang.org/api/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS files. 3 | # See the latter for an explanation. 4 | 5 | # Names should be added to this file as 6 | # Name or Organization 7 | # The email address is not required for organizations. 8 | 9 | # Please keep the list sorted. 10 | Google Inc. 11 | -------------------------------------------------------------------------------- /vendor/google.golang.org/api/gensupport/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package gensupport is an internal implementation detail used by code 6 | // generated by the google-api-go-generator tool. 7 | // 8 | // This package may be modified at any time without regard for backwards 9 | // compatibility. It should not be used directly by API users. 10 | package gensupport 11 | -------------------------------------------------------------------------------- /vendor/google.golang.org/api/googleapi/internal/uritemplates/utils.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package uritemplates 6 | 7 | // Expand parses then expands a URI template with a set of values to produce 8 | // the resultant URI. Two forms of the result are returned: one with all the 9 | // elements escaped, and one with the elements unescaped. 10 | func Expand(path string, values map[string]string) (escaped, unescaped string, err error) { 11 | template, err := parse(path) 12 | if err != nil { 13 | return "", "", err 14 | } 15 | escaped, unescaped = template.Expand(values) 16 | return escaped, unescaped, nil 17 | } 18 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go_import_path: google.golang.org/appengine 4 | 5 | install: 6 | - ./travis_install.sh 7 | 8 | script: 9 | - ./travis_test.sh 10 | 11 | matrix: 12 | include: 13 | - go: 1.8.x 14 | env: GOAPP=true 15 | - go: 1.9.x 16 | env: GOAPP=true 17 | - go: 1.10.x 18 | env: GOAPP=false 19 | - go: 1.11.x 20 | env: GO111MODULE=on 21 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/appengine_vm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Google Inc. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !appengine 6 | 7 | package appengine 8 | 9 | import ( 10 | "golang.org/x/net/context" 11 | 12 | "google.golang.org/appengine/internal" 13 | ) 14 | 15 | // BackgroundContext returns a context not associated with a request. 16 | // This should only be used when not servicing a request. 17 | // This only works in App Engine "flexible environment". 18 | func BackgroundContext() context.Context { 19 | return internal.BackgroundContext() 20 | } 21 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/cloudsql/cloudsql_classic.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 Google Inc. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build appengine 6 | 7 | package cloudsql 8 | 9 | import ( 10 | "net" 11 | 12 | "appengine/cloudsql" 13 | ) 14 | 15 | func connect(instance string) (net.Conn, error) { 16 | return cloudsql.Dial(instance) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/cloudsql/cloudsql_vm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 Google Inc. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !appengine 6 | 7 | package cloudsql 8 | 9 | import ( 10 | "errors" 11 | "net" 12 | ) 13 | 14 | func connect(instance string) (net.Conn, error) { 15 | return nil, errors.New(`cloudsql: not supported in App Engine "flexible environment"`) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/go.mod: -------------------------------------------------------------------------------- 1 | module google.golang.org/appengine 2 | 3 | require ( 4 | github.com/golang/protobuf v1.3.1 5 | golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5 // indirect 6 | golang.org/x/net v0.0.0-20190603091049-60506f45cf65 7 | golang.org/x/sys v0.0.0-20190606165138-5da285871e9c // indirect 8 | golang.org/x/text v0.3.2 9 | golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b // indirect 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/internal/base/api_base.proto: -------------------------------------------------------------------------------- 1 | // Built-in base types for API calls. Primarily useful as return types. 2 | 3 | syntax = "proto2"; 4 | option go_package = "base"; 5 | 6 | package appengine.base; 7 | 8 | message StringProto { 9 | required string value = 1; 10 | } 11 | 12 | message Integer32Proto { 13 | required int32 value = 1; 14 | } 15 | 16 | message Integer64Proto { 17 | required int64 value = 1; 18 | } 19 | 20 | message BoolProto { 21 | required bool value = 1; 22 | } 23 | 24 | message DoubleProto { 25 | required double value = 1; 26 | } 27 | 28 | message BytesProto { 29 | required bytes value = 1 [ctype=CORD]; 30 | } 31 | 32 | message VoidProto { 33 | } 34 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/internal/identity_flex.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 Google LLC. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build appenginevm 6 | 7 | package internal 8 | 9 | func init() { 10 | appengineFlex = true 11 | } 12 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/internal/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Google Inc. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build appengine 6 | 7 | package internal 8 | 9 | import ( 10 | "appengine_internal" 11 | ) 12 | 13 | func Main() { 14 | MainPath = "" 15 | appengine_internal.Main() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/internal/main_common.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | // MainPath stores the file path of the main package. On App Engine Standard 4 | // using Go version 1.9 and below, this will be unset. On App Engine Flex and 5 | // App Engine Standard second-gen (Go 1.11 and above), this will be the 6 | // filepath to package main. 7 | var MainPath string 8 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/timeout.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 Google Inc. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | package appengine 6 | 7 | import "golang.org/x/net/context" 8 | 9 | // IsTimeoutError reports whether err is a timeout error. 10 | func IsTimeoutError(err error) bool { 11 | if err == context.DeadlineExceeded { 12 | return true 13 | } 14 | if t, ok := err.(interface { 15 | IsTimeout() bool 16 | }); ok { 17 | return t.IsTimeout() 18 | } 19 | return false 20 | } 21 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/travis_install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | if [[ $GO111MODULE == "on" ]]; then 5 | go get . 6 | else 7 | go get -u -v $(go list -f '{{join .Imports "\n"}}{{"\n"}}{{join .TestImports "\n"}}' ./... | sort | uniq | grep -v appengine) 8 | fi 9 | 10 | if [[ $GOAPP == "true" ]]; then 11 | mkdir /tmp/sdk 12 | curl -o /tmp/sdk.zip "https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_linux_amd64-1.9.68.zip" 13 | unzip -q /tmp/sdk.zip -d /tmp/sdk 14 | # NOTE: Set the following env vars in the test script: 15 | # export PATH="$PATH:/tmp/sdk/go_appengine" 16 | # export APPENGINE_DEV_APPSERVER=/tmp/sdk/go_appengine/dev_appserver.py 17 | fi 18 | 19 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/travis_test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | go version 5 | go test -v google.golang.org/appengine/... 6 | go test -v -race google.golang.org/appengine/... 7 | if [[ $GOAPP == "true" ]]; then 8 | export PATH="$PATH:/tmp/sdk/go_appengine" 9 | export APPENGINE_DEV_APPSERVER=/tmp/sdk/go_appengine/dev_appserver.py 10 | goapp version 11 | goapp test -v google.golang.org/appengine/... 12 | fi 13 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/AUTHORS: -------------------------------------------------------------------------------- 1 | Google Inc. 2 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/codegen.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # This script serves as an example to demonstrate how to generate the gRPC-Go 4 | # interface and the related messages from .proto file. 5 | # 6 | # It assumes the installation of i) Google proto buffer compiler at 7 | # https://github.com/google/protobuf (after v2.6.1) and ii) the Go codegen 8 | # plugin at https://github.com/golang/protobuf (after 2015-02-20). If you have 9 | # not, please install them first. 10 | # 11 | # We recommend running this script at $GOPATH/src. 12 | # 13 | # If this is not what you need, feel free to make your own scripts. Again, this 14 | # script is for demonstration purpose. 15 | # 16 | proto=$1 17 | protoc --go_out=plugins=grpc:. $proto 18 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/install_gae.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | TMP=$(mktemp -d /tmp/sdk.XXX) \ 4 | && curl -o $TMP.zip "https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_linux_amd64-1.9.68.zip" \ 5 | && unzip -q $TMP.zip -d $TMP \ 6 | && export PATH="$PATH:$TMP/go_appengine" 7 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/version.go: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2018 gRPC authors. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | */ 18 | 19 | package grpc 20 | 21 | // Version is the current grpc version. 22 | const Version = "1.23.0" 23 | -------------------------------------------------------------------------------- /website/docs/r/role.html.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: "mysql" 3 | page_title: "MySQL: mysql_role" 4 | sidebar_current: "docs-mysql-resource-role" 5 | description: |- 6 | Creates and manages a role on a MySQL server. 7 | --- 8 | 9 | # mysql\_role 10 | 11 | The ``mysql_role`` resource creates and manages a user on a MySQL 12 | server. 13 | 14 | ~> **Note:** MySQL introduced roles in version 8. They do not work on MySQL 5 and lower. 15 | 16 | ## Example Usage 17 | 18 | ```hcl 19 | resource "mysql_role" "developer" { 20 | name = "developer" 21 | } 22 | ``` 23 | 24 | ## Argument Reference 25 | 26 | The following arguments are supported: 27 | 28 | * `name` - (Required) The name of the role. 29 | 30 | ## Attributes Reference 31 | 32 | No further attributes are exported. 33 | --------------------------------------------------------------------------------