├── .gitattributes ├── .github ├── main.workflow └── workflows │ └── release.yml ├── .gitignore ├── .goreleaser.yml ├── CHANGELOG.md ├── GNUmakefile ├── LICENSE ├── README.md ├── ciscoasa ├── config.go ├── data_source_ciscoasa_interface_physical.go ├── data_source_ciscoasa_interface_vlan.go ├── data_source_ciscoasa_interfaces_physical.go ├── data_source_ciscoasa_interfaces_vlan.go ├── data_source_ciscoasa_network_object.go ├── data_source_ciscoasa_network_objects.go ├── data_source_ciscoasa_network_service.go ├── data_source_ciscoasa_network_services.go ├── provider.go ├── provider_test.go ├── resource_ciscoasa_access_in_rules.go ├── resource_ciscoasa_access_in_rules_test.go ├── resource_ciscoasa_access_out_rules.go ├── resource_ciscoasa_access_out_rules_test.go ├── resource_ciscoasa_acl.go ├── resource_ciscoasa_acl_test.go ├── resource_ciscoasa_backup.go ├── resource_ciscoasa_backup_test.go ├── resource_ciscoasa_dhcp_relay_globalsettings.go ├── resource_ciscoasa_dhcp_relay_globalsettings_test.go ├── resource_ciscoasa_dhcp_relay_local.go ├── resource_ciscoasa_dhcp_relay_local_test.go ├── resource_ciscoasa_dhcp_server.go ├── resource_ciscoasa_dhcp_server_test.go ├── resource_ciscoasa_failover_interface.go ├── resource_ciscoasa_failover_interface_test.go ├── resource_ciscoasa_failover_setup.go ├── resource_ciscoasa_failover_setup_test.go.disabled ├── resource_ciscoasa_interface_physical.go ├── resource_ciscoasa_interface_physical_test.go ├── resource_ciscoasa_interface_vlan.go ├── resource_ciscoasa_interface_vlan_test.go ├── resource_ciscoasa_license_config.go ├── resource_ciscoasa_license_config_test.go ├── resource_ciscoasa_license_register.go ├── resource_ciscoasa_license_renewauth.go ├── resource_ciscoasa_license_renewid.go ├── resource_ciscoasa_nat.go ├── resource_ciscoasa_nat_test.go ├── resource_ciscoasa_network_object.go ├── resource_ciscoasa_network_object_group.go ├── resource_ciscoasa_network_object_group_test.go ├── resource_ciscoasa_network_object_test.go ├── resource_ciscoasa_network_service.go ├── resource_ciscoasa_network_service_group.go ├── resource_ciscoasa_network_service_group_test.go ├── resource_ciscoasa_network_service_test.go ├── resource_ciscoasa_ntp_server.go ├── resource_ciscoasa_ntp_server_test.go ├── resource_ciscoasa_static_route.go ├── resource_ciscoasa_static_route_test.go ├── resource_ciscoasa_timerange.go ├── resource_ciscoasa_timerange_test.go ├── resource_ciscoasa_write_memory.go └── resource_ciscoasa_write_memory_test.go ├── go.mod ├── go.sum ├── main.go ├── scripts ├── changelog-links.sh ├── errcheck.sh ├── gofmtcheck.sh └── gogetcookie.sh ├── testinfra ├── asav.tf ├── local-ip.tf ├── main.tf ├── network.tf ├── outputs.tf ├── ssh.tf └── variables.tf ├── vendor ├── cloud.google.com │ └── go │ │ ├── .gitignore │ │ ├── CHANGES.md │ │ ├── CODE_OF_CONDUCT.md │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── RELEASING.md │ │ ├── compute │ │ └── metadata │ │ │ └── metadata.go │ │ ├── doc.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── iam │ │ └── iam.go │ │ ├── internal │ │ ├── .repo-metadata-full.json │ │ ├── README.md │ │ ├── annotate.go │ │ ├── optional │ │ │ └── optional.go │ │ ├── retry.go │ │ ├── trace │ │ │ └── trace.go │ │ └── version │ │ │ ├── update_version.sh │ │ │ └── version.go │ │ ├── storage │ │ ├── CHANGES.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── acl.go │ │ ├── bucket.go │ │ ├── copy.go │ │ ├── doc.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── go110.go │ │ ├── go_mod_tidy_hack.go │ │ ├── hmac.go │ │ ├── iam.go │ │ ├── invoke.go │ │ ├── not_go110.go │ │ ├── notifications.go │ │ ├── post_policy_v4.go │ │ ├── reader.go │ │ ├── storage.go │ │ ├── storage.replay │ │ └── writer.go │ │ └── tools.go ├── github.com │ ├── CiscoDevNet │ │ └── go-ciscoasa │ │ │ ├── LICENSE │ │ │ └── ciscoasa │ │ │ ├── access_in_rules.go │ │ │ ├── access_out_rules.go │ │ │ ├── ciscoasa.go │ │ │ ├── dhcp.go │ │ │ ├── dhcp_relay_globalsettings.go │ │ │ ├── dhcp_relay_local.go │ │ │ ├── dhcp_servers.go │ │ │ ├── failover.go │ │ │ ├── failover_interfaces.go │ │ │ ├── failover_setup.go │ │ │ ├── interfaces.go │ │ │ ├── interfaces_physical.go │ │ │ ├── interfaces_vlan.go │ │ │ ├── licensing.go │ │ │ ├── nat.go │ │ │ ├── ntp.go │ │ │ ├── objects.go │ │ │ ├── objects_extendedacls.go │ │ │ ├── objects_networkobjectgroups.go │ │ │ ├── objects_networkobjects.go │ │ │ ├── objects_networkservicegroups.go │ │ │ ├── objects_networkservices.go │ │ │ ├── objects_timeranges.go │ │ │ ├── routing.go │ │ │ ├── save.go │ │ │ └── service_type.go │ ├── agext │ │ └── levenshtein │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── DCO │ │ │ ├── LICENSE │ │ │ ├── MAINTAINERS │ │ │ ├── NOTICE │ │ │ ├── README.md │ │ │ ├── go.mod │ │ │ ├── levenshtein.go │ │ │ ├── params.go │ │ │ └── test.sh │ ├── apparentlymart │ │ └── 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 │ │ │ └── v13 │ │ │ ├── LICENSE │ │ │ └── textseg │ │ │ ├── all_tokens.go │ │ │ ├── emoji_table.rl │ │ │ ├── generate.go │ │ │ ├── grapheme_clusters.go │ │ │ ├── grapheme_clusters.rl │ │ │ ├── grapheme_clusters_table.rl │ │ │ ├── tables.go │ │ │ ├── unicode2ragel.rb │ │ │ └── utf8_seqs.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 │ │ │ │ └── no_op_retryer.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 │ │ │ │ │ └── web_identity_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 │ │ │ │ ├── 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 │ │ │ │ ├── credentials.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 │ │ │ │ ├── byte.go │ │ │ │ ├── io_go1.6.go │ │ │ │ └── io_go1.7.go │ │ │ ├── sdkmath │ │ │ │ ├── floor.go │ │ │ │ └── floor_go1.9.go │ │ │ ├── sdkrand │ │ │ │ ├── locked_source.go │ │ │ │ ├── read.go │ │ │ │ └── read_1_5.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 │ │ │ │ ├── sort.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 │ │ │ ├── customizations.go │ │ │ ├── doc.go │ │ │ ├── errors.go │ │ │ ├── service.go │ │ │ └── stsiface │ │ │ └── interface.go │ ├── bgentry │ │ └── go-netrc │ │ │ ├── LICENSE │ │ │ └── netrc │ │ │ └── netrc.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 │ ├── golang │ │ ├── groupcache │ │ │ ├── LICENSE │ │ │ └── lru │ │ │ │ └── lru.go │ │ └── protobuf │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ ├── LICENSE │ │ │ ├── internal │ │ │ └── gengogrpc │ │ │ │ └── grpc.go │ │ │ ├── proto │ │ │ ├── buffer.go │ │ │ ├── defaults.go │ │ │ ├── deprecated.go │ │ │ ├── discard.go │ │ │ ├── extensions.go │ │ │ ├── properties.go │ │ │ ├── proto.go │ │ │ ├── registry.go │ │ │ ├── text_decode.go │ │ │ ├── text_encode.go │ │ │ ├── wire.go │ │ │ └── wrappers.go │ │ │ ├── protoc-gen-go │ │ │ ├── descriptor │ │ │ │ └── descriptor.pb.go │ │ │ └── main.go │ │ │ └── ptypes │ │ │ ├── any.go │ │ │ ├── any │ │ │ └── any.pb.go │ │ │ ├── doc.go │ │ │ ├── duration.go │ │ │ ├── duration │ │ │ └── duration.pb.go │ │ │ ├── empty │ │ │ └── empty.pb.go │ │ │ ├── timestamp.go │ │ │ └── timestamp │ │ │ └── timestamp.pb.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-checkpoint │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── check.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── telemetry.go │ │ │ └── versions.go │ │ ├── go-cleanhttp │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── cleanhttp.go │ │ │ ├── doc.go │ │ │ ├── go.mod │ │ │ └── handlers.go │ │ ├── go-cty │ │ │ ├── LICENSE │ │ │ └── cty │ │ │ │ ├── capsule.go │ │ │ │ ├── capsule_ops.go │ │ │ │ ├── collection.go │ │ │ │ ├── convert │ │ │ │ ├── compare_types.go │ │ │ │ ├── conversion.go │ │ │ │ ├── conversion_capsule.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 │ │ │ │ ├── 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 │ │ │ │ ├── marks.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-getter │ │ │ ├── .goreleaser.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── 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_tzst.go │ │ │ ├── decompress_xz.go │ │ │ ├── decompress_zip.go │ │ │ ├── decompress_zstd.go │ │ │ ├── detect.go │ │ │ ├── detect_bitbucket.go │ │ │ ├── detect_file.go │ │ │ ├── detect_gcs.go │ │ │ ├── detect_git.go │ │ │ ├── detect_github.go │ │ │ ├── detect_gitlab.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 │ │ │ ├── colorize_unix.go │ │ │ ├── colorize_windows.go │ │ │ ├── context.go │ │ │ ├── exclude.go │ │ │ ├── global.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── interceptlogger.go │ │ │ ├── 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 │ │ │ ├── grpc_stdio.go │ │ │ ├── internal │ │ │ │ └── plugin │ │ │ │ │ ├── gen.go │ │ │ │ │ ├── grpc_broker.pb.go │ │ │ │ │ ├── grpc_broker.proto │ │ │ │ │ ├── grpc_controller.pb.go │ │ │ │ │ ├── grpc_controller.proto │ │ │ │ │ ├── grpc_stdio.pb.go │ │ │ │ │ └── grpc_stdio.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 │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── constraint.go │ │ │ ├── go.mod │ │ │ ├── version.go │ │ │ └── version_collection.go │ │ ├── hcl │ │ │ └── v2 │ │ │ │ ├── CHANGELOG.md │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── appveyor.yml │ │ │ │ ├── diagnostic.go │ │ │ │ ├── diagnostic_text.go │ │ │ │ ├── didyoumean.go │ │ │ │ ├── doc.go │ │ │ │ ├── eval_context.go │ │ │ │ ├── expr_call.go │ │ │ │ ├── expr_list.go │ │ │ │ ├── expr_map.go │ │ │ │ ├── expr_unwrap.go │ │ │ │ ├── ext │ │ │ │ └── customdecode │ │ │ │ │ ├── README.md │ │ │ │ │ ├── customdecode.go │ │ │ │ │ └── expression_type.go │ │ │ │ ├── go.mod │ │ │ │ ├── go.sum │ │ │ │ ├── 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 │ │ │ │ ├── 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 │ │ ├── logutils │ │ │ ├── .gitignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── go.mod │ │ │ └── level.go │ │ ├── terraform-exec │ │ │ ├── LICENSE │ │ │ ├── internal │ │ │ │ └── version │ │ │ │ │ └── version.go │ │ │ ├── tfexec │ │ │ │ ├── apply.go │ │ │ │ ├── cmd.go │ │ │ │ ├── cmd_default.go │ │ │ │ ├── cmd_linux.go │ │ │ │ ├── cmdstring.go │ │ │ │ ├── cmdstring_go112.go │ │ │ │ ├── destroy.go │ │ │ │ ├── doc.go │ │ │ │ ├── errors.go │ │ │ │ ├── exit_errors.go │ │ │ │ ├── fmt.go │ │ │ │ ├── get.go │ │ │ │ ├── import.go │ │ │ │ ├── init.go │ │ │ │ ├── options.go │ │ │ │ ├── output.go │ │ │ │ ├── plan.go │ │ │ │ ├── providers_schema.go │ │ │ │ ├── refresh.go │ │ │ │ ├── show.go │ │ │ │ ├── state_mv.go │ │ │ │ ├── state_rm.go │ │ │ │ ├── terraform.go │ │ │ │ ├── upgrade012.go │ │ │ │ ├── upgrade013.go │ │ │ │ ├── validate.go │ │ │ │ ├── version.go │ │ │ │ ├── workspace_list.go │ │ │ │ ├── workspace_new.go │ │ │ │ └── workspace_select.go │ │ │ └── tfinstall │ │ │ │ ├── doc.go │ │ │ │ ├── download.go │ │ │ │ ├── exact_path.go │ │ │ │ ├── exact_version.go │ │ │ │ ├── http.go │ │ │ │ ├── latest_version.go │ │ │ │ ├── look_path.go │ │ │ │ ├── pubkey.go │ │ │ │ └── tfinstall.go │ │ ├── terraform-json │ │ │ ├── .gitignore │ │ │ ├── .go-version │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── action.go │ │ │ ├── config.go │ │ │ ├── expression.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── plan.go │ │ │ ├── schemas.go │ │ │ ├── state.go │ │ │ ├── tfjson.go │ │ │ ├── validate.go │ │ │ └── version.go │ │ ├── terraform-plugin-go │ │ │ ├── LICENSE │ │ │ ├── tfprotov5 │ │ │ │ ├── data_source.go │ │ │ │ ├── diagnostic.go │ │ │ │ ├── doc.go │ │ │ │ ├── dynamic_value.go │ │ │ │ ├── internal │ │ │ │ │ ├── fromproto │ │ │ │ │ │ ├── attribute_path.go │ │ │ │ │ │ ├── data_source.go │ │ │ │ │ │ ├── diagnostic.go │ │ │ │ │ │ ├── provider.go │ │ │ │ │ │ ├── resource.go │ │ │ │ │ │ ├── schema.go │ │ │ │ │ │ ├── state.go │ │ │ │ │ │ ├── string_kind.go │ │ │ │ │ │ └── types.go │ │ │ │ │ ├── tfplugin5 │ │ │ │ │ │ ├── generate.sh │ │ │ │ │ │ ├── tfplugin5.pb.go │ │ │ │ │ │ ├── tfplugin5.proto │ │ │ │ │ │ └── tfplugin5_grpc.pb.go │ │ │ │ │ └── toproto │ │ │ │ │ │ ├── attribute_path.go │ │ │ │ │ │ ├── data_source.go │ │ │ │ │ │ ├── diagnostic.go │ │ │ │ │ │ ├── dynamic_value.go │ │ │ │ │ │ ├── provider.go │ │ │ │ │ │ ├── resource.go │ │ │ │ │ │ ├── schema.go │ │ │ │ │ │ ├── state.go │ │ │ │ │ │ └── string_kind.go │ │ │ │ ├── provider.go │ │ │ │ ├── resource.go │ │ │ │ ├── schema.go │ │ │ │ ├── server │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── plugin.go │ │ │ │ │ └── server.go │ │ │ │ ├── state.go │ │ │ │ └── string_kind.go │ │ │ ├── tfprotov6 │ │ │ │ ├── data_source.go │ │ │ │ ├── diagnostic.go │ │ │ │ ├── doc.go │ │ │ │ ├── dynamic_value.go │ │ │ │ ├── internal │ │ │ │ │ ├── fromproto │ │ │ │ │ │ ├── attribute_path.go │ │ │ │ │ │ ├── data_source.go │ │ │ │ │ │ ├── diagnostic.go │ │ │ │ │ │ ├── provider.go │ │ │ │ │ │ ├── resource.go │ │ │ │ │ │ ├── schema.go │ │ │ │ │ │ ├── state.go │ │ │ │ │ │ ├── string_kind.go │ │ │ │ │ │ └── types.go │ │ │ │ │ ├── tfplugin6 │ │ │ │ │ │ ├── generate.sh │ │ │ │ │ │ ├── tfplugin6.pb.go │ │ │ │ │ │ ├── tfplugin6.proto │ │ │ │ │ │ └── tfplugin6_grpc.pb.go │ │ │ │ │ └── toproto │ │ │ │ │ │ ├── attribute_path.go │ │ │ │ │ │ ├── data_source.go │ │ │ │ │ │ ├── diagnostic.go │ │ │ │ │ │ ├── dynamic_value.go │ │ │ │ │ │ ├── provider.go │ │ │ │ │ │ ├── resource.go │ │ │ │ │ │ ├── schema.go │ │ │ │ │ │ ├── state.go │ │ │ │ │ │ └── string_kind.go │ │ │ │ ├── provider.go │ │ │ │ ├── resource.go │ │ │ │ ├── schema.go │ │ │ │ ├── server │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── plugin.go │ │ │ │ │ └── server.go │ │ │ │ ├── state.go │ │ │ │ └── string_kind.go │ │ │ └── tftypes │ │ │ │ ├── attribute_path.go │ │ │ │ ├── attribute_path_error.go │ │ │ │ ├── diff.go │ │ │ │ ├── doc.go │ │ │ │ ├── list.go │ │ │ │ ├── map.go │ │ │ │ ├── object.go │ │ │ │ ├── primitive.go │ │ │ │ ├── set.go │ │ │ │ ├── tuple.go │ │ │ │ ├── type.go │ │ │ │ ├── unknown_value.go │ │ │ │ ├── value.go │ │ │ │ ├── value_json.go │ │ │ │ ├── value_msgpack.go │ │ │ │ └── walk.go │ │ ├── terraform-plugin-sdk │ │ │ └── v2 │ │ │ │ ├── LICENSE │ │ │ │ ├── diag │ │ │ │ ├── diagnostic.go │ │ │ │ └── helpers.go │ │ │ │ ├── helper │ │ │ │ ├── logging │ │ │ │ │ ├── logging.go │ │ │ │ │ └── transport.go │ │ │ │ ├── resource │ │ │ │ │ ├── error.go │ │ │ │ │ ├── id.go │ │ │ │ │ ├── json.go │ │ │ │ │ ├── plugin.go │ │ │ │ │ ├── state.go │ │ │ │ │ ├── state_shim.go │ │ │ │ │ ├── testing.go │ │ │ │ │ ├── testing_config.go │ │ │ │ │ ├── testing_new.go │ │ │ │ │ ├── testing_new_config.go │ │ │ │ │ ├── testing_new_import_state.go │ │ │ │ │ ├── testing_sets.go │ │ │ │ │ └── wait.go │ │ │ │ ├── schema │ │ │ │ │ ├── README.md │ │ │ │ │ ├── context.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 │ │ │ │ │ ├── grpc_provider.go │ │ │ │ │ ├── json.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 │ │ │ │ │ ├── unknown.go │ │ │ │ │ ├── valuetype.go │ │ │ │ │ └── valuetype_string.go │ │ │ │ ├── structure │ │ │ │ │ ├── expand_json.go │ │ │ │ │ ├── flatten_json.go │ │ │ │ │ ├── normalize_json.go │ │ │ │ │ └── suppress_json_diff.go │ │ │ │ └── validation │ │ │ │ │ ├── float.go │ │ │ │ │ ├── int.go │ │ │ │ │ ├── list.go │ │ │ │ │ ├── map.go │ │ │ │ │ ├── meta.go │ │ │ │ │ ├── network.go │ │ │ │ │ ├── strings.go │ │ │ │ │ ├── testing.go │ │ │ │ │ ├── time.go │ │ │ │ │ ├── uuid.go │ │ │ │ │ └── web.go │ │ │ │ ├── internal │ │ │ │ ├── addrs │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── instance_key.go │ │ │ │ │ ├── module.go │ │ │ │ │ ├── module_instance.go │ │ │ │ │ ├── resource.go │ │ │ │ │ └── resourcemode_string.go │ │ │ │ ├── configs │ │ │ │ │ ├── configschema │ │ │ │ │ │ ├── coerce_value.go │ │ │ │ │ │ ├── doc.go │ │ │ │ │ │ ├── empty_value.go │ │ │ │ │ │ ├── implied_type.go │ │ │ │ │ │ ├── nestingmode_string.go │ │ │ │ │ │ └── schema.go │ │ │ │ │ └── hcl2shim │ │ │ │ │ │ ├── flatmap.go │ │ │ │ │ │ ├── paths.go │ │ │ │ │ │ ├── single_attr_body.go │ │ │ │ │ │ ├── values.go │ │ │ │ │ │ └── values_equiv.go │ │ │ │ ├── helper │ │ │ │ │ └── hashcode │ │ │ │ │ │ └── hashcode.go │ │ │ │ ├── plans │ │ │ │ │ └── objchange │ │ │ │ │ │ └── normalize_obj.go │ │ │ │ ├── plugin │ │ │ │ │ └── convert │ │ │ │ │ │ ├── diagnostics.go │ │ │ │ │ │ └── schema.go │ │ │ │ ├── plugintest │ │ │ │ │ ├── config.go │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── guard.go │ │ │ │ │ ├── helper.go │ │ │ │ │ ├── util.go │ │ │ │ │ └── working_dir.go │ │ │ │ └── tfdiags │ │ │ │ │ ├── config_traversals.go │ │ │ │ │ ├── contextual.go │ │ │ │ │ ├── diagnostic.go │ │ │ │ │ ├── diagnostic_base.go │ │ │ │ │ ├── diagnostics.go │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── error.go │ │ │ │ │ ├── rpc_friendly.go │ │ │ │ │ ├── severity_string.go │ │ │ │ │ └── simple_warning.go │ │ │ │ ├── meta │ │ │ │ └── meta.go │ │ │ │ ├── plugin │ │ │ │ ├── debug.go │ │ │ │ └── serve.go │ │ │ │ └── terraform │ │ │ │ ├── diff.go │ │ │ │ ├── instancetype.go │ │ │ │ ├── instancetype_string.go │ │ │ │ ├── resource.go │ │ │ │ ├── resource_address.go │ │ │ │ ├── resource_mode.go │ │ │ │ ├── resource_mode_string.go │ │ │ │ ├── resource_provider.go │ │ │ │ ├── schemas.go │ │ │ │ ├── state.go │ │ │ │ ├── state_filter.go │ │ │ │ └── util.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 │ ├── jstemmer │ │ └── go-junit-report │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── formatter │ │ │ └── formatter.go │ │ │ ├── go-junit-report.go │ │ │ ├── go.mod │ │ │ └── parser │ │ │ └── parser.go │ ├── klauspost │ │ └── compress │ │ │ ├── LICENSE │ │ │ ├── fse │ │ │ ├── README.md │ │ │ ├── bitreader.go │ │ │ ├── bitwriter.go │ │ │ ├── bytereader.go │ │ │ ├── compress.go │ │ │ ├── decompress.go │ │ │ └── fse.go │ │ │ ├── huff0 │ │ │ ├── .gitignore │ │ │ ├── README.md │ │ │ ├── bitreader.go │ │ │ ├── bitwriter.go │ │ │ ├── bytereader.go │ │ │ ├── compress.go │ │ │ ├── decompress.go │ │ │ └── huff0.go │ │ │ ├── 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 │ │ │ ├── runbench.cmd │ │ │ └── snappy.go │ │ │ └── zstd │ │ │ ├── README.md │ │ │ ├── bitreader.go │ │ │ ├── bitwriter.go │ │ │ ├── blockdec.go │ │ │ ├── blockenc.go │ │ │ ├── blocktype_string.go │ │ │ ├── bytebuf.go │ │ │ ├── bytereader.go │ │ │ ├── decoder.go │ │ │ ├── decoder_options.go │ │ │ ├── dict.go │ │ │ ├── enc_base.go │ │ │ ├── enc_better.go │ │ │ ├── enc_dfast.go │ │ │ ├── enc_fast.go │ │ │ ├── encoder.go │ │ │ ├── encoder_options.go │ │ │ ├── framedec.go │ │ │ ├── frameenc.go │ │ │ ├── fse_decoder.go │ │ │ ├── fse_encoder.go │ │ │ ├── fse_predefined.go │ │ │ ├── hash.go │ │ │ ├── history.go │ │ │ ├── internal │ │ │ └── xxhash │ │ │ │ ├── LICENSE.txt │ │ │ │ ├── README.md │ │ │ │ ├── xxhash.go │ │ │ │ ├── xxhash_amd64.go │ │ │ │ ├── xxhash_amd64.s │ │ │ │ ├── xxhash_other.go │ │ │ │ └── xxhash_safe.go │ │ │ ├── seqdec.go │ │ │ ├── seqenc.go │ │ │ ├── snappy.go │ │ │ └── zstd.go │ ├── mattn │ │ ├── go-colorable │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── colorable_appengine.go │ │ │ ├── colorable_others.go │ │ │ ├── colorable_windows.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ └── noncolorable.go │ │ └── go-isatty │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── doc.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── isatty_android.go │ │ │ ├── isatty_bsd.go │ │ │ ├── isatty_others.go │ │ │ ├── isatty_plan9.go │ │ │ ├── isatty_solaris.go │ │ │ ├── isatty_tcgets.go │ │ │ └── isatty_windows.go │ ├── mitchellh │ │ ├── copystructure │ │ │ ├── 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 │ ├── ulikunitz │ │ └── xz │ │ │ ├── .gitignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── TODO.md │ │ │ ├── bits.go │ │ │ ├── crc.go │ │ │ ├── format.go │ │ │ ├── fox-check-none.xz │ │ │ ├── fox.xz │ │ │ ├── go.mod │ │ │ ├── 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 │ │ │ ├── none-check.go │ │ │ ├── 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 │ │ ├── LICENSE │ │ └── cty │ │ ├── capsule.go │ │ ├── capsule_ops.go │ │ ├── collection.go │ │ ├── convert │ │ ├── compare_types.go │ │ ├── conversion.go │ │ ├── conversion_capsule.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 │ │ │ ├── conversion.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 │ │ │ └── string_replace.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 │ │ ├── marks.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 │ ├── 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 │ │ ├── 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 │ │ ├── lint │ │ ├── .travis.yml │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── go.mod │ │ ├── go.sum │ │ ├── golint │ │ │ ├── golint.go │ │ │ ├── import.go │ │ │ └── importcomment.go │ │ └── lint.go │ │ ├── mod │ │ ├── LICENSE │ │ ├── PATENTS │ │ ├── internal │ │ │ └── lazyregexp │ │ │ │ └── lazyre.go │ │ ├── module │ │ │ ├── module.go │ │ │ └── pseudo.go │ │ └── semver │ │ │ └── semver.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 │ │ │ ├── ascii.go │ │ │ ├── ciphers.go │ │ │ ├── client_conn_pool.go │ │ │ ├── databuffer.go │ │ │ ├── errors.go │ │ │ ├── flow.go │ │ │ ├── frame.go │ │ │ ├── go111.go │ │ │ ├── go115.go │ │ │ ├── gotrack.go │ │ │ ├── headermap.go │ │ │ ├── hpack │ │ │ │ ├── encode.go │ │ │ │ ├── hpack.go │ │ │ │ ├── huffman.go │ │ │ │ └── tables.go │ │ │ ├── http2.go │ │ │ ├── not_go111.go │ │ │ ├── not_go115.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 │ │ │ ├── tables12.0.0.go │ │ │ ├── tables13.0.0.go │ │ │ ├── tables9.0.0.go │ │ │ ├── trie.go │ │ │ └── trieval.go │ │ ├── internal │ │ │ └── timeseries │ │ │ │ └── timeseries.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 │ │ ├── execabs │ │ │ └── execabs.go │ │ ├── internal │ │ │ └── unsafeheader │ │ │ │ └── unsafeheader.go │ │ └── unix │ │ │ ├── .gitignore │ │ │ ├── README.md │ │ │ ├── affinity_linux.go │ │ │ ├── aliases.go │ │ │ ├── asm_aix_ppc64.s │ │ │ ├── asm_bsd_386.s │ │ │ ├── asm_bsd_amd64.s │ │ │ ├── asm_bsd_arm.s │ │ │ ├── asm_bsd_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_openbsd_mips64.s │ │ │ ├── asm_solaris_amd64.s │ │ │ ├── asm_zos_s390x.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 │ │ │ ├── dev_zos.go │ │ │ ├── dirent.go │ │ │ ├── endian_big.go │ │ │ ├── endian_little.go │ │ │ ├── env_unix.go │ │ │ ├── epoll_zos.go │ │ │ ├── errors_freebsd_386.go │ │ │ ├── errors_freebsd_amd64.go │ │ │ ├── errors_freebsd_arm.go │ │ │ ├── errors_freebsd_arm64.go │ │ │ ├── fcntl.go │ │ │ ├── fcntl_darwin.go │ │ │ ├── fcntl_linux_32bit.go │ │ │ ├── fdset.go │ │ │ ├── fstatfs_zos.go │ │ │ ├── gccgo.go │ │ │ ├── gccgo_c.c │ │ │ ├── gccgo_linux_amd64.go │ │ │ ├── ifreq_linux.go │ │ │ ├── ioctl.go │ │ │ ├── ioctl_linux.go │ │ │ ├── ioctl_zos.go │ │ │ ├── mkall.sh │ │ │ ├── mkerrors.sh │ │ │ ├── pagesize_unix.go │ │ │ ├── pledge_openbsd.go │ │ │ ├── ptrace_darwin.go │ │ │ ├── ptrace_ios.go │ │ │ ├── race.go │ │ │ ├── race0.go │ │ │ ├── readdirent_getdents.go │ │ │ ├── readdirent_getdirentries.go │ │ │ ├── sockcmsg_dragonfly.go │ │ │ ├── sockcmsg_linux.go │ │ │ ├── sockcmsg_unix.go │ │ │ ├── sockcmsg_unix_other.go │ │ │ ├── str.go │ │ │ ├── syscall.go │ │ │ ├── syscall_aix.go │ │ │ ├── syscall_aix_ppc.go │ │ │ ├── syscall_aix_ppc64.go │ │ │ ├── syscall_bsd.go │ │ │ ├── syscall_darwin.1_12.go │ │ │ ├── syscall_darwin.1_13.go │ │ │ ├── syscall_darwin.go │ │ │ ├── syscall_darwin_amd64.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_illumos.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_gc_arm.go │ │ │ ├── syscall_linux_gccgo_386.go │ │ │ ├── syscall_linux_gccgo_arm.go │ │ │ ├── syscall_linux_mips64x.go │ │ │ ├── syscall_linux_mipsx.go │ │ │ ├── syscall_linux_ppc.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_openbsd_mips64.go │ │ │ ├── syscall_solaris.go │ │ │ ├── syscall_solaris_amd64.go │ │ │ ├── syscall_unix.go │ │ │ ├── syscall_unix_gc.go │ │ │ ├── syscall_unix_gc_ppc64x.go │ │ │ ├── syscall_zos_s390x.go │ │ │ ├── timestruct.go │ │ │ ├── unveil_openbsd.go │ │ │ ├── xattr_bsd.go │ │ │ ├── zerrors_aix_ppc.go │ │ │ ├── zerrors_aix_ppc64.go │ │ │ ├── zerrors_darwin_amd64.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.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_ppc.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_openbsd_mips64.go │ │ │ ├── zerrors_solaris_amd64.go │ │ │ ├── zerrors_zos_s390x.go │ │ │ ├── zptrace_armnn_linux.go │ │ │ ├── zptrace_linux_arm64.go │ │ │ ├── zptrace_mipsnn_linux.go │ │ │ ├── zptrace_mipsnnle_linux.go │ │ │ ├── zptrace_x86_linux.go │ │ │ ├── zsyscall_aix_ppc.go │ │ │ ├── zsyscall_aix_ppc64.go │ │ │ ├── zsyscall_aix_ppc64_gc.go │ │ │ ├── zsyscall_aix_ppc64_gccgo.go │ │ │ ├── zsyscall_darwin_amd64.1_13.go │ │ │ ├── zsyscall_darwin_amd64.1_13.s │ │ │ ├── zsyscall_darwin_amd64.go │ │ │ ├── zsyscall_darwin_amd64.s │ │ │ ├── zsyscall_darwin_arm64.1_13.go │ │ │ ├── zsyscall_darwin_arm64.1_13.s │ │ │ ├── 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_illumos_amd64.go │ │ │ ├── zsyscall_linux.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_ppc.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_openbsd_mips64.go │ │ │ ├── zsyscall_solaris_amd64.go │ │ │ ├── zsyscall_zos_s390x.go │ │ │ ├── zsysctl_openbsd_386.go │ │ │ ├── zsysctl_openbsd_amd64.go │ │ │ ├── zsysctl_openbsd_arm.go │ │ │ ├── zsysctl_openbsd_arm64.go │ │ │ ├── zsysctl_openbsd_mips64.go │ │ │ ├── zsysnum_darwin_amd64.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_ppc.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 │ │ │ ├── zsysnum_openbsd_mips64.go │ │ │ ├── zsysnum_zos_s390x.go │ │ │ ├── ztypes_aix_ppc.go │ │ │ ├── ztypes_aix_ppc64.go │ │ │ ├── ztypes_darwin_amd64.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_illumos_amd64.go │ │ │ ├── ztypes_linux.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_ppc.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_openbsd_mips64.go │ │ │ ├── ztypes_solaris_amd64.go │ │ │ └── ztypes_zos_s390x.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 │ │ │ ├── tables12.0.0.go │ │ │ ├── tables13.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 │ │ │ ├── tables12.0.0.go │ │ │ ├── tables13.0.0.go │ │ │ ├── tables9.0.0.go │ │ │ ├── transform.go │ │ │ └── trie.go │ │ ├── tools │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── PATENTS │ │ ├── cmd │ │ │ └── goimports │ │ │ │ ├── doc.go │ │ │ │ ├── goimports.go │ │ │ │ ├── goimports_gc.go │ │ │ │ └── goimports_not_gc.go │ │ ├── go │ │ │ ├── ast │ │ │ │ └── astutil │ │ │ │ │ ├── enclosing.go │ │ │ │ │ ├── imports.go │ │ │ │ │ ├── rewrite.go │ │ │ │ │ └── util.go │ │ │ ├── gcexportdata │ │ │ │ ├── gcexportdata.go │ │ │ │ └── importer.go │ │ │ └── internal │ │ │ │ └── gcimporter │ │ │ │ ├── bexport.go │ │ │ │ ├── bimport.go │ │ │ │ ├── exportdata.go │ │ │ │ ├── gcimporter.go │ │ │ │ ├── iexport.go │ │ │ │ ├── iimport.go │ │ │ │ ├── newInterface10.go │ │ │ │ ├── newInterface11.go │ │ │ │ ├── support_go117.go │ │ │ │ └── support_go118.go │ │ └── internal │ │ │ ├── event │ │ │ ├── core │ │ │ │ ├── event.go │ │ │ │ ├── export.go │ │ │ │ └── fast.go │ │ │ ├── doc.go │ │ │ ├── event.go │ │ │ ├── keys │ │ │ │ ├── keys.go │ │ │ │ └── standard.go │ │ │ └── label │ │ │ │ └── label.go │ │ │ ├── fastwalk │ │ │ ├── fastwalk.go │ │ │ ├── fastwalk_dirent_fileno.go │ │ │ ├── fastwalk_dirent_ino.go │ │ │ ├── fastwalk_dirent_namlen_bsd.go │ │ │ ├── fastwalk_dirent_namlen_linux.go │ │ │ ├── fastwalk_portable.go │ │ │ └── fastwalk_unix.go │ │ │ ├── gocommand │ │ │ ├── invoke.go │ │ │ ├── vendor.go │ │ │ └── version.go │ │ │ ├── gopathwalk │ │ │ └── walk.go │ │ │ ├── imports │ │ │ ├── fix.go │ │ │ ├── imports.go │ │ │ ├── mod.go │ │ │ ├── mod_cache.go │ │ │ ├── sortimports.go │ │ │ └── zstdlib.go │ │ │ └── typeparams │ │ │ ├── common.go │ │ │ ├── enabled_go117.go │ │ │ ├── enabled_go118.go │ │ │ ├── typeparams_go117.go │ │ │ └── typeparams_go118.go │ │ └── xerrors │ │ ├── LICENSE │ │ ├── PATENTS │ │ ├── README │ │ ├── adaptor.go │ │ ├── codereview.cfg │ │ ├── doc.go │ │ ├── errors.go │ │ ├── fmt.go │ │ ├── format.go │ │ ├── frame.go │ │ ├── go.mod │ │ ├── internal │ │ └── internal.go │ │ └── wrap.go ├── google.golang.org │ ├── api │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── googleapi │ │ │ ├── googleapi.go │ │ │ ├── transport │ │ │ │ └── apikey.go │ │ │ └── types.go │ │ ├── internal │ │ │ ├── conn_pool.go │ │ │ ├── creds.go │ │ │ ├── gensupport │ │ │ │ ├── buffer.go │ │ │ │ ├── doc.go │ │ │ │ ├── json.go │ │ │ │ ├── jsonfloat.go │ │ │ │ ├── media.go │ │ │ │ ├── params.go │ │ │ │ ├── resumable.go │ │ │ │ ├── retryable_linux.go │ │ │ │ ├── send.go │ │ │ │ └── version.go │ │ │ ├── service-account.json │ │ │ ├── settings.go │ │ │ └── third_party │ │ │ │ └── uritemplates │ │ │ │ ├── LICENSE │ │ │ │ ├── METADATA │ │ │ │ ├── uritemplates.go │ │ │ │ └── utils.go │ │ ├── iterator │ │ │ └── iterator.go │ │ ├── option │ │ │ ├── credentials_go19.go │ │ │ ├── credentials_notgo19.go │ │ │ ├── internaloption │ │ │ │ └── internaloption.go │ │ │ └── option.go │ │ ├── storage │ │ │ └── v1 │ │ │ │ ├── storage-api.json │ │ │ │ └── storage-gen.go │ │ └── transport │ │ │ ├── cert │ │ │ └── default_cert.go │ │ │ └── http │ │ │ ├── default_transport_go113.go │ │ │ ├── default_transport_not_go113.go │ │ │ ├── dial.go │ │ │ ├── dial_appengine.go │ │ │ └── internal │ │ │ └── propagation │ │ │ └── http.go │ ├── appengine │ │ ├── .travis.yml │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── appengine.go │ │ ├── appengine_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 │ │ ├── CODE-OF-CONDUCT.md │ │ ├── CONTRIBUTING.md │ │ ├── GOVERNANCE.md │ │ ├── LICENSE │ │ ├── MAINTAINERS.md │ │ ├── Makefile │ │ ├── README.md │ │ ├── attributes │ │ │ └── attributes.go │ │ ├── backoff.go │ │ ├── backoff │ │ │ └── backoff.go │ │ ├── balancer │ │ │ ├── balancer.go │ │ │ ├── base │ │ │ │ ├── balancer.go │ │ │ │ └── base.go │ │ │ ├── grpclb │ │ │ │ └── state │ │ │ │ │ └── state.go │ │ │ └── roundrobin │ │ │ │ └── roundrobin.go │ │ ├── balancer_conn_wrappers.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 │ │ │ ├── go12.go │ │ │ └── tls.go │ │ ├── dialoptions.go │ │ ├── doc.go │ │ ├── encoding │ │ │ ├── encoding.go │ │ │ └── proto │ │ │ │ └── proto.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── grpclog │ │ │ ├── component.go │ │ │ ├── grpclog.go │ │ │ ├── logger.go │ │ │ └── loggerv2.go │ │ ├── health │ │ │ ├── client.go │ │ │ ├── grpc_health_v1 │ │ │ │ ├── health.pb.go │ │ │ │ └── health_grpc.pb.go │ │ │ ├── logging.go │ │ │ └── server.go │ │ ├── interceptor.go │ │ ├── internal │ │ │ ├── backoff │ │ │ │ └── backoff.go │ │ │ ├── balancerload │ │ │ │ └── load.go │ │ │ ├── binarylog │ │ │ │ ├── binarylog.go │ │ │ │ ├── binarylog_testutil.go │ │ │ │ ├── env_config.go │ │ │ │ ├── method_logger.go │ │ │ │ └── sink.go │ │ │ ├── buffer │ │ │ │ └── unbounded.go │ │ │ ├── channelz │ │ │ │ ├── funcs.go │ │ │ │ ├── logging.go │ │ │ │ ├── types.go │ │ │ │ ├── types_linux.go │ │ │ │ ├── types_nonlinux.go │ │ │ │ ├── util_linux.go │ │ │ │ └── util_nonlinux.go │ │ │ ├── credentials │ │ │ │ ├── spiffe.go │ │ │ │ ├── spiffe_appengine.go │ │ │ │ ├── syscallconn.go │ │ │ │ └── util.go │ │ │ ├── envconfig │ │ │ │ └── envconfig.go │ │ │ ├── grpclog │ │ │ │ ├── grpclog.go │ │ │ │ └── prefixLogger.go │ │ │ ├── grpcrand │ │ │ │ └── grpcrand.go │ │ │ ├── grpcsync │ │ │ │ └── event.go │ │ │ ├── grpcutil │ │ │ │ ├── encode_duration.go │ │ │ │ ├── metadata.go │ │ │ │ ├── method.go │ │ │ │ └── target.go │ │ │ ├── internal.go │ │ │ ├── resolver │ │ │ │ ├── dns │ │ │ │ │ ├── dns_resolver.go │ │ │ │ │ └── go113.go │ │ │ │ └── passthrough │ │ │ │ │ └── passthrough.go │ │ │ ├── serviceconfig │ │ │ │ └── serviceconfig.go │ │ │ ├── status │ │ │ │ └── status.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 │ │ │ │ └── transport.go │ │ ├── keepalive │ │ │ └── keepalive.go │ │ ├── metadata │ │ │ └── metadata.go │ │ ├── peer │ │ │ └── peer.go │ │ ├── picker_wrapper.go │ │ ├── pickfirst.go │ │ ├── preloader.go │ │ ├── proxy.go │ │ ├── reflection │ │ │ ├── README.md │ │ │ ├── grpc_reflection_v1alpha │ │ │ │ ├── reflection.pb.go │ │ │ │ ├── reflection.proto │ │ │ │ └── reflection_grpc.pb.go │ │ │ └── serverreflection.go │ │ ├── regenerate.sh │ │ ├── resolver │ │ │ └── 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 │ │ ├── trace.go │ │ ├── version.go │ │ └── vet.sh │ └── protobuf │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── PATENTS │ │ ├── cmd │ │ └── protoc-gen-go │ │ │ └── internal_gengo │ │ │ ├── init.go │ │ │ ├── main.go │ │ │ ├── reflect.go │ │ │ └── well_known_types.go │ │ ├── compiler │ │ └── protogen │ │ │ └── protogen.go │ │ ├── encoding │ │ ├── prototext │ │ │ ├── decode.go │ │ │ ├── doc.go │ │ │ └── encode.go │ │ └── protowire │ │ │ └── wire.go │ │ ├── internal │ │ ├── descfmt │ │ │ └── stringer.go │ │ ├── descopts │ │ │ └── options.go │ │ ├── detrand │ │ │ └── rand.go │ │ ├── encoding │ │ │ ├── defval │ │ │ │ └── default.go │ │ │ ├── messageset │ │ │ │ └── messageset.go │ │ │ ├── tag │ │ │ │ └── tag.go │ │ │ └── text │ │ │ │ ├── decode.go │ │ │ │ ├── decode_number.go │ │ │ │ ├── decode_string.go │ │ │ │ ├── decode_token.go │ │ │ │ ├── doc.go │ │ │ │ └── encode.go │ │ ├── errors │ │ │ ├── errors.go │ │ │ ├── is_go112.go │ │ │ └── is_go113.go │ │ ├── fieldsort │ │ │ └── fieldsort.go │ │ ├── filedesc │ │ │ ├── build.go │ │ │ ├── desc.go │ │ │ ├── desc_init.go │ │ │ ├── desc_lazy.go │ │ │ ├── desc_list.go │ │ │ ├── desc_list_gen.go │ │ │ └── placeholder.go │ │ ├── filetype │ │ │ └── build.go │ │ ├── flags │ │ │ ├── flags.go │ │ │ ├── proto_legacy_disable.go │ │ │ └── proto_legacy_enable.go │ │ ├── genid │ │ │ ├── any_gen.go │ │ │ ├── api_gen.go │ │ │ ├── descriptor_gen.go │ │ │ ├── doc.go │ │ │ ├── duration_gen.go │ │ │ ├── empty_gen.go │ │ │ ├── field_mask_gen.go │ │ │ ├── goname.go │ │ │ ├── map_entry.go │ │ │ ├── source_context_gen.go │ │ │ ├── struct_gen.go │ │ │ ├── timestamp_gen.go │ │ │ ├── type_gen.go │ │ │ ├── wrappers.go │ │ │ └── wrappers_gen.go │ │ ├── impl │ │ │ ├── api_export.go │ │ │ ├── checkinit.go │ │ │ ├── codec_extension.go │ │ │ ├── codec_field.go │ │ │ ├── codec_gen.go │ │ │ ├── codec_map.go │ │ │ ├── codec_map_go111.go │ │ │ ├── codec_map_go112.go │ │ │ ├── codec_message.go │ │ │ ├── codec_messageset.go │ │ │ ├── codec_reflect.go │ │ │ ├── codec_tables.go │ │ │ ├── codec_unsafe.go │ │ │ ├── convert.go │ │ │ ├── convert_list.go │ │ │ ├── convert_map.go │ │ │ ├── decode.go │ │ │ ├── encode.go │ │ │ ├── enum.go │ │ │ ├── extension.go │ │ │ ├── legacy_enum.go │ │ │ ├── legacy_export.go │ │ │ ├── legacy_extension.go │ │ │ ├── legacy_file.go │ │ │ ├── legacy_message.go │ │ │ ├── merge.go │ │ │ ├── merge_gen.go │ │ │ ├── message.go │ │ │ ├── message_reflect.go │ │ │ ├── message_reflect_field.go │ │ │ ├── message_reflect_gen.go │ │ │ ├── pointer_reflect.go │ │ │ ├── pointer_unsafe.go │ │ │ ├── validate.go │ │ │ └── weak.go │ │ ├── mapsort │ │ │ └── mapsort.go │ │ ├── pragma │ │ │ └── pragma.go │ │ ├── set │ │ │ └── ints.go │ │ ├── strs │ │ │ ├── strings.go │ │ │ ├── strings_pure.go │ │ │ └── strings_unsafe.go │ │ └── version │ │ │ └── version.go │ │ ├── proto │ │ ├── checkinit.go │ │ ├── decode.go │ │ ├── decode_gen.go │ │ ├── doc.go │ │ ├── encode.go │ │ ├── encode_gen.go │ │ ├── equal.go │ │ ├── extension.go │ │ ├── merge.go │ │ ├── messageset.go │ │ ├── proto.go │ │ ├── proto_methods.go │ │ ├── proto_reflect.go │ │ ├── reset.go │ │ ├── size.go │ │ ├── size_gen.go │ │ └── wrappers.go │ │ ├── reflect │ │ ├── protodesc │ │ │ ├── desc.go │ │ │ ├── desc_init.go │ │ │ ├── desc_resolve.go │ │ │ ├── desc_validate.go │ │ │ └── proto.go │ │ ├── protoreflect │ │ │ ├── methods.go │ │ │ ├── proto.go │ │ │ ├── source.go │ │ │ ├── type.go │ │ │ ├── value.go │ │ │ ├── value_pure.go │ │ │ ├── value_union.go │ │ │ └── value_unsafe.go │ │ └── protoregistry │ │ │ └── registry.go │ │ ├── runtime │ │ ├── protoiface │ │ │ ├── legacy.go │ │ │ └── methods.go │ │ └── protoimpl │ │ │ ├── impl.go │ │ │ └── version.go │ │ └── types │ │ ├── descriptorpb │ │ └── descriptor.pb.go │ │ ├── known │ │ ├── anypb │ │ │ └── any.pb.go │ │ ├── durationpb │ │ │ └── duration.pb.go │ │ ├── emptypb │ │ │ └── empty.pb.go │ │ └── timestamppb │ │ │ └── timestamp.pb.go │ │ └── pluginpb │ │ └── plugin.pb.go └── modules.txt └── website ├── ciscoasa.erb └── docs ├── d ├── interface_physical.html.markdown ├── interface_vlan.html.markdown ├── interfaces_physical.html.markdown ├── interfaces_vlan.html.markdown ├── network_object.html.markdown ├── network_objects.html.markdown ├── network_service.html.markdown └── network_services.html.markdown ├── index.html.markdown └── r ├── access_in_rules.html.markdown ├── access_out_rules.html.markdown ├── acl.html.markdown ├── backup.html.markdown ├── dhcp_relay_globalsettings.html.markdown ├── dhcp_relay_local.html.markdown ├── dhcp_server.html.markdown ├── failover_interface.html.markdown ├── failover_setup.html.markdown ├── interface_physical.html.markdown ├── interface_vlan.html.markdown ├── license_config.html.markdown ├── license_register.html.markdown ├── license_renewauth.html.markdown ├── license_renewid.html.markdown ├── nat.html.markdown ├── network_object.html.markdown ├── network_object_group.html.markdown ├── network_service.html.markdown ├── network_service_group.html.markdown ├── ntp_server.html.markdown ├── static_route.html.markdown ├── timerange.html.markdown └── write_memory.html.markdown /.gitattributes: -------------------------------------------------------------------------------- 1 | # Set the default behavior, in case people don't have core.autocrlf set. 2 | * text=false 3 | 4 | # disabling diff for vendor folder in pull requests diff view (documentation: https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github) 5 | vendor/* linguist-generated=true 6 | -------------------------------------------------------------------------------- /.github/main.workflow: -------------------------------------------------------------------------------- 1 | workflow "push" { 2 | on = "push" 3 | resolves = ["go test"] 4 | } 5 | 6 | action "go test" { 7 | uses = "docker://golang:1.12" 8 | runs = "go" 9 | args = "test -v -mod=vendor ./..." 10 | } 11 | -------------------------------------------------------------------------------- /.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 | .idea 10 | bin 11 | 12 | # Architecture specific extensions/prefixes 13 | *.[568vq] 14 | [568vq].out 15 | 16 | *.cgo1.go 17 | *.cgo2.c 18 | _cgo_defun.c 19 | _cgo_gotypes.go 20 | _cgo_export.* 21 | 22 | _testmain.go 23 | 24 | *.exe 25 | *.test 26 | *.prof 27 | *.pem 28 | *.pub 29 | terraform.tfstate 30 | .terraform.lock.hcl 31 | .terraform 32 | terraform.tfstate.* 33 | 34 | # Config files for local development environment 35 | *.env 36 | -------------------------------------------------------------------------------- /ciscoasa/config.go: -------------------------------------------------------------------------------- 1 | package ciscoasa 2 | 3 | import "github.com/CiscoDevNet/go-ciscoasa/ciscoasa" 4 | 5 | // Config is the configuration structure used to instantiate a 6 | // new CiscoAsa client. 7 | type Config struct { 8 | APIURL string 9 | Username string 10 | Password string 11 | SSLNoVerify bool 12 | } 13 | 14 | // NewClient returns a new CiscoASA client. 15 | func (c *Config) NewClient() (*ciscoasa.Client, error) { 16 | return ciscoasa.NewClient(c.APIURL, c.Username, c.Password, c.SSLNoVerify) 17 | } 18 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/CiscoDevNet/terraform-provider-ciscoasa 2 | 3 | go 1.16 4 | 5 | require ( 6 | github.com/CiscoDevNet/go-ciscoasa v0.2.6 7 | github.com/hashicorp/terraform-plugin-sdk/v2 v2.7.0 8 | golang.org/x/mod v0.5.1 // indirect 9 | golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6 // indirect 10 | golang.org/x/tools v0.1.7 // indirect 11 | ) 12 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /testinfra/local-ip.tf: -------------------------------------------------------------------------------- 1 | # 2 | # Workstation External IP 3 | # 4 | # This configuration is not required and is 5 | # only provided as an example to easily fetch 6 | # the external IP of your local workstation to 7 | # configure inbound EC2 Security Group access. 8 | # 9 | 10 | data "http" "workstation_external_ip" { 11 | url = "http://ipv4.icanhazip.com" 12 | } 13 | 14 | # Override with variable or hardcoded value if necessary 15 | locals { 16 | workstation_external_cidr = "${chomp(data.http.workstation_external_ip.body)}/32" 17 | } 18 | -------------------------------------------------------------------------------- /testinfra/main.tf: -------------------------------------------------------------------------------- 1 | provider "aws" {} 2 | 3 | data "aws_availability_zones" "available" { 4 | # c4.large instance type not available in these AZ 5 | exclude_names = ["usw2-az4"] 6 | state = "available" 7 | } 8 | -------------------------------------------------------------------------------- /testinfra/outputs.tf: -------------------------------------------------------------------------------- 1 | output "asav_public_ip" { 2 | value = "${aws_eip.mgmt.public_ip}" 3 | } 4 | 5 | output "asav_username" { 6 | value = "${var.admin_username}" 7 | } 8 | 9 | output "asav_password" { 10 | value = "${var.admin_password}" 11 | } 12 | 13 | # 14 | # until $(terraform output ssh); do; sleep 5; done 15 | # 16 | output "ssh" { 17 | value = "ssh -i ssh.pem -oConnectTimeout=5 -oKexAlgorithms=+diffie-hellman-group1-sha1 admin@${aws_instance.asav.public_ip}" 18 | } 19 | -------------------------------------------------------------------------------- /testinfra/ssh.tf: -------------------------------------------------------------------------------- 1 | resource "tls_private_key" "ssh" { 2 | algorithm = "RSA" 3 | } 4 | 5 | resource "aws_key_pair" "ssh" { 6 | key_name_prefix = "terraform-provider-ciscoasa" 7 | public_key = "${tls_private_key.ssh.public_key_openssh}" 8 | } 9 | 10 | resource "local_file" "public_key_openssh" { 11 | content = "${tls_private_key.ssh.public_key_openssh}" 12 | filename = "ssh.pub" 13 | } 14 | 15 | resource "local_file" "private_key_pem" { 16 | content = "${tls_private_key.ssh.private_key_pem}" 17 | filename = "ssh.pem" 18 | 19 | provisioner "local-exec" { 20 | command = "${format("chmod 0600 %v", self.filename)}" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /testinfra/variables.tf: -------------------------------------------------------------------------------- 1 | variable "admin_username" { 2 | default = "admin" 3 | } 4 | 5 | variable "admin_password" { 6 | default = "acctest" 7 | } 8 | -------------------------------------------------------------------------------- /vendor/cloud.google.com/go/.gitignore: -------------------------------------------------------------------------------- 1 | # Editors 2 | .idea 3 | .vscode 4 | *.swp 5 | 6 | # Test files 7 | *.test 8 | coverage.txt 9 | 10 | # Other 11 | .DS_Store 12 | -------------------------------------------------------------------------------- /vendor/cloud.google.com/go/internal/version/update_version.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright 2019 Google LLC 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | today=$(date +%Y%m%d) 17 | 18 | sed -i -r -e 's/const Repo = "([0-9]{8})"/const Repo = "'$today'"/' $GOFILE 19 | 20 | -------------------------------------------------------------------------------- /vendor/cloud.google.com/go/storage/go.mod: -------------------------------------------------------------------------------- 1 | module cloud.google.com/go/storage 2 | 3 | go 1.11 4 | 5 | require ( 6 | cloud.google.com/go v0.57.0 7 | cloud.google.com/go/bigquery v1.8.0 // indirect 8 | github.com/golang/protobuf v1.4.2 9 | github.com/google/go-cmp v0.4.1 10 | github.com/googleapis/gax-go/v2 v2.0.5 11 | golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2 // indirect 12 | golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d 13 | golang.org/x/sys v0.0.0-20200523222454-059865788121 // indirect 14 | golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2 // indirect 15 | google.golang.org/api v0.28.0 16 | google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790 17 | google.golang.org/grpc v1.29.1 18 | ) 19 | -------------------------------------------------------------------------------- /vendor/github.com/CiscoDevNet/go-ciscoasa/ciscoasa/failover_setup.go: -------------------------------------------------------------------------------- 1 | package ciscoasa 2 | 3 | var u = "/api/failover/setup" 4 | 5 | // UpdateFailoverSetup updates a Failover Setup. 6 | func (s *failoverService) UpdateFailoverSetup(setup *FailoverSetup) error { 7 | 8 | req, err := s.newRequest("PUT", u, setup) 9 | if err != nil { 10 | return err 11 | } 12 | 13 | _, err = s.do(req, nil) 14 | 15 | return err 16 | } 17 | 18 | // GetFailoverSetup retrieves a Failover Setup. 19 | func (s *failoverService) GetFailoverSetup() (*FailoverSetup, error) { 20 | 21 | req, err := s.newRequest("GET", u, nil) 22 | if err != nil { 23 | return nil, err 24 | } 25 | 26 | r := &FailoverSetup{} 27 | _, err = s.do(req, r) 28 | 29 | return r, err 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/agext/levenshtein/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore docs files 2 | _gh_pages 3 | _site 4 | 5 | # Ignore temporary files 6 | README.html 7 | coverage.out 8 | .tmp 9 | 10 | # Numerous always-ignore extensions 11 | *.diff 12 | *.err 13 | *.log 14 | *.orig 15 | *.rej 16 | *.swo 17 | *.swp 18 | *.vi 19 | *.zip 20 | *~ 21 | 22 | # OS or Editor folders 23 | ._* 24 | .cache 25 | .DS_Store 26 | .idea 27 | .project 28 | .settings 29 | .tmproj 30 | *.esproj 31 | *.sublime-project 32 | *.sublime-workspace 33 | nbproject 34 | Thumbs.db 35 | 36 | # Komodo 37 | .komodotools 38 | *.komodoproject 39 | 40 | # SCSS-Lint 41 | scss-lint-report.xml 42 | 43 | # grunt-contrib-sass cache 44 | .sass-cache 45 | 46 | # Jekyll metadata 47 | docs/.jekyll-metadata 48 | 49 | # Folders to ignore 50 | .build 51 | .test 52 | bower_components 53 | node_modules 54 | -------------------------------------------------------------------------------- /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/apparentlymart/go-textseg/v13/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=https://www.unicode.org/Public/13.0.0/ucd/auxiliary/GraphemeBreakProperty.txt -m GraphemeCluster -p "Prepend,CR,LF,Control,Extend,Regional_Indicator,SpacingMark,L,V,T,LV,LVT,ZWJ" -o grapheme_clusters_table.rl 6 | //go:generate ruby unicode2ragel.rb --url=https://www.unicode.org/Public/13.0.0/ucd/emoji/emoji-data.txt -m Emoji -p "Extended_Pictographic" -o emoji_table.rl 7 | //go:generate ragel -Z grapheme_clusters.rl 8 | //go:generate gofmt -w grapheme_clusters.go 9 | -------------------------------------------------------------------------------- /vendor/github.com/apparentlymart/go-textseg/v13/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/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 | package request 2 | 3 | import ( 4 | "strings" 5 | ) 6 | 7 | func isErrConnectionReset(err error) bool { 8 | if strings.Contains(err.Error(), "read: connection reset") { 9 | return false 10 | } 11 | 12 | if strings.Contains(err.Error(), "connection reset") || 13 | strings.Contains(err.Error(), "broken pipe") { 14 | return true 15 | } 16 | 17 | return false 18 | } 19 | -------------------------------------------------------------------------------- /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.25.3" 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/byte.go: -------------------------------------------------------------------------------- 1 | package sdkio 2 | 3 | const ( 4 | // Byte is 8 bits 5 | Byte int64 = 1 6 | // KibiByte (KiB) is 1024 Bytes 7 | KibiByte = Byte * 1024 8 | // MebiByte (MiB) is 1024 KiB 9 | MebiByte = KibiByte * 1024 10 | // GibiByte (GiB) is 1024 MiB 11 | GibiByte = MebiByte * 1024 12 | ) 13 | -------------------------------------------------------------------------------- /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/sdkmath/floor.go: -------------------------------------------------------------------------------- 1 | // +build go1.10 2 | 3 | package sdkmath 4 | 5 | import "math" 6 | 7 | // Round returns the nearest integer, rounding half away from zero. 8 | // 9 | // Special cases are: 10 | // Round(±0) = ±0 11 | // Round(±Inf) = ±Inf 12 | // Round(NaN) = NaN 13 | func Round(x float64) float64 { 14 | return math.Round(x) 15 | } 16 | -------------------------------------------------------------------------------- /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/sdkrand/read.go: -------------------------------------------------------------------------------- 1 | // +build go1.6 2 | 3 | package sdkrand 4 | 5 | import "math/rand" 6 | 7 | // Read provides the stub for math.Rand.Read method support for go version's 8 | // 1.6 and greater. 9 | func Read(r *rand.Rand, p []byte) (int, error) { 10 | return r.Read(p) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/aws/aws-sdk-go/internal/sdkrand/read_1_5.go: -------------------------------------------------------------------------------- 1 | // +build !go1.6 2 | 3 | package sdkrand 4 | 5 | import "math/rand" 6 | 7 | // Read backfills Go 1.6's math.Rand.Reader for Go 1.5 8 | func Read(r *rand.Rand, p []byte) (n int, err error) { 9 | // Copy of Go standard libraries math package's read function not added to 10 | // standard library until Go 1.6. 11 | var pos int8 12 | var val int64 13 | for n = 0; n < len(p); n++ { 14 | if pos == 0 { 15 | val = r.Int63() 16 | pos = 7 17 | } 18 | p[n] = byte(val) 19 | val >>= 8 20 | pos-- 21 | } 22 | 23 | return n, err 24 | } 25 | -------------------------------------------------------------------------------- /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/aws/aws-sdk-go/service/sts/customizations.go: -------------------------------------------------------------------------------- 1 | package sts 2 | 3 | import "github.com/aws/aws-sdk-go/aws/request" 4 | 5 | func init() { 6 | initRequest = customizeRequest 7 | } 8 | 9 | func customizeRequest(r *request.Request) { 10 | r.RetryErrorCodes = append(r.RetryErrorCodes, ErrCodeIDPCommunicationErrorException) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/fatih/color/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.8.x 4 | - tip 5 | 6 | -------------------------------------------------------------------------------- /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/protobuf/ptypes/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 ptypes provides functionality for interacting with well-known types. 6 | package ptypes 7 | -------------------------------------------------------------------------------- /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-checkpoint/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hashicorp/go-checkpoint 2 | 3 | require ( 4 | github.com/hashicorp/go-cleanhttp v0.5.0 5 | github.com/hashicorp/go-uuid v1.0.0 6 | ) 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-checkpoint/go.sum: -------------------------------------------------------------------------------- 1 | github.com/hashicorp/go-cleanhttp v0.5.0 h1:wvCrVc9TjDls6+YGAF2hAifE1E5U1+b4tH6KdvN3Gig= 2 | github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= 3 | github.com/hashicorp/go-uuid v1.0.0 h1:RS8zrF7PhGwyNPOtxSClXXj9HA8feRnJzgnI1RJCSnM= 4 | github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= 5 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-cleanhttp/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hashicorp/go-cleanhttp 2 | 3 | go 1.13 4 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/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/hashicorp/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/hashicorp/go-cty/cty/json/type.go: -------------------------------------------------------------------------------- 1 | package json 2 | 3 | import ( 4 | "github.com/hashicorp/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/hashicorp/go-cty/cty/msgpack/doc.go: -------------------------------------------------------------------------------- 1 | // Package msgpack provides functions for serializing cty values in the 2 | // msgpack encoding, and decoding them again. 3 | // 4 | // If the same type information is provided both at encoding and decoding time 5 | // then values can be round-tripped without loss, except for capsule types 6 | // which are not currently supported. 7 | // 8 | // If any unknown values are passed to Marshal then they will be represented 9 | // using a msgpack extension with type code zero, which is understood by 10 | // the Unmarshal function within this package but will not be understood by 11 | // a generic (non-cty-aware) msgpack decoder. Ensure that no unknown values 12 | // are used if interoperability with other msgpack implementations is 13 | // required. 14 | package msgpack 15 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/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/hashicorp/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/hashicorp/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/hashicorp/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/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/colorize_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package hclog 4 | 5 | import ( 6 | "github.com/mattn/go-isatty" 7 | ) 8 | 9 | // setColorization will mutate the values of this logger 10 | // to approperately configure colorization options. It provides 11 | // a wrapper to the output stream on Windows systems. 12 | func (l *intLogger) setColorization(opts *LoggerOptions) { 13 | switch opts.Color { 14 | case ColorOff: 15 | fallthrough 16 | case ForceColor: 17 | return 18 | case AutoColor: 19 | fi := l.checkWriterIsFile() 20 | isUnixTerm := isatty.IsTerminal(fi.Fd()) 21 | isCygwinTerm := isatty.IsCygwinTerminal(fi.Fd()) 22 | isTerm := isUnixTerm || isCygwinTerm 23 | if !isTerm { 24 | l.writer.color = ColorOff 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /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/fatih/color v1.7.0 6 | github.com/mattn/go-colorable v0.1.4 7 | github.com/mattn/go-isatty v0.0.10 8 | github.com/pmezard/go-difflib v1.0.0 // indirect 9 | github.com/stretchr/testify v1.2.2 10 | ) 11 | 12 | go 1.13 13 | -------------------------------------------------------------------------------- /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/format.go: -------------------------------------------------------------------------------- 1 | package multierror 2 | 3 | import ( 4 | "fmt" 5 | "strings" 6 | ) 7 | 8 | // ErrorFormatFunc is a function callback that is called by Error to 9 | // turn the list of errors into a string. 10 | type ErrorFormatFunc func([]error) string 11 | 12 | // ListFormatFunc is a basic formatter that outputs the number of errors 13 | // that occurred along with a bullet point list of the errors. 14 | func ListFormatFunc(es []error) string { 15 | if len(es) == 1 { 16 | return fmt.Sprintf("1 error occurred:\n\t* %s\n\n", es[0]) 17 | } 18 | 19 | points := make([]string, len(es)) 20 | for i, err := range es { 21 | points[i] = fmt.Sprintf("* %s", err) 22 | } 23 | 24 | return fmt.Sprintf( 25 | "%d errors occurred:\n\t%s\n\n", 26 | len(es), strings.Join(points, "\n\t")) 27 | } 28 | -------------------------------------------------------------------------------- /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/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hashicorp/go-plugin 2 | 3 | go 1.13 4 | 5 | require ( 6 | github.com/golang/protobuf v1.3.4 7 | github.com/hashicorp/go-hclog v0.14.1 8 | github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb 9 | github.com/jhump/protoreflect v1.6.0 10 | github.com/mitchellh/go-testing-interface v0.0.0-20171004221916-a61a99592b77 11 | github.com/oklog/run v1.0.0 12 | github.com/stretchr/testify v1.3.0 // indirect 13 | golang.org/x/net v0.0.0-20190311183353-d8887717615a 14 | google.golang.org/grpc v1.27.1 15 | ) 16 | -------------------------------------------------------------------------------- /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 ./grpc_stdio.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 | -------------------------------------------------------------------------------- /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/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/v2/appveyor.yml: -------------------------------------------------------------------------------- 1 | build: off 2 | 3 | clone_folder: c:\gopath\src\github.com\hashicorp\hcl 4 | 5 | environment: 6 | GOPATH: c:\gopath 7 | GO111MODULE: on 8 | GOPROXY: https://goproxy.io 9 | 10 | stack: go 1.12 11 | 12 | test_script: 13 | - go test ./... 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/v2/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/hcl/v2/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/hcl/v2/hclsyntax/file.go: -------------------------------------------------------------------------------- 1 | package hclsyntax 2 | 3 | import ( 4 | "github.com/hashicorp/hcl/v2" 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/hcl/v2/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/hcl/v2/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/hcl/v2/hclsyntax/node.go: -------------------------------------------------------------------------------- 1 | package hclsyntax 2 | 3 | import ( 4 | "github.com/hashicorp/hcl/v2" 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/hcl/v2/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/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-exec/internal/version/version.go: -------------------------------------------------------------------------------- 1 | package version 2 | 3 | const version = "0.14.0" 4 | 5 | // ModuleVersion returns the current version of the github.com/hashicorp/terraform-exec Go module. 6 | // This is a function to allow for future possible enhancement using debug.BuildInfo. 7 | func ModuleVersion() string { 8 | return version 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-exec/tfexec/cmdstring.go: -------------------------------------------------------------------------------- 1 | // +build go1.13 2 | 3 | package tfexec 4 | 5 | import ( 6 | "os/exec" 7 | ) 8 | 9 | // cmdString handles go 1.12 as stringer was only added to exec.Cmd in 1.13 10 | func cmdString(c *exec.Cmd) string { 11 | return c.String() 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-exec/tfexec/cmdstring_go112.go: -------------------------------------------------------------------------------- 1 | // +build !go1.13 2 | 3 | package tfexec 4 | 5 | import ( 6 | "os/exec" 7 | "strings" 8 | ) 9 | 10 | // cmdString handles go 1.12 as stringer was only added to exec.Cmd in 1.13 11 | func cmdString(c *exec.Cmd) string { 12 | b := new(strings.Builder) 13 | b.WriteString(c.Path) 14 | for _, a := range c.Args[1:] { 15 | b.WriteByte(' ') 16 | b.WriteString(a) 17 | } 18 | return b.String() 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-exec/tfexec/doc.go: -------------------------------------------------------------------------------- 1 | // Package tfexec exposes functionality for constructing and running Terraform 2 | // CLI commands. Structured return values use the data types defined in the 3 | // github.com/hashicorp/terraform-json package. 4 | package tfexec 5 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-exec/tfexec/workspace_select.go: -------------------------------------------------------------------------------- 1 | package tfexec 2 | 3 | import "context" 4 | 5 | // WorkspaceSelect represents the workspace select subcommand to the Terraform CLI. 6 | func (tf *Terraform) WorkspaceSelect(ctx context.Context, workspace string) error { 7 | // TODO: [DIR] param option 8 | 9 | return tf.runTerraformCmd(ctx, tf.buildTerraformCmd(ctx, nil, "workspace", "select", "-no-color", workspace)) 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-exec/tfinstall/doc.go: -------------------------------------------------------------------------------- 1 | // Package tfinstall offers multiple strategies for finding and/or installing 2 | // a binary version of Terraform. Some of the strategies can also authenticate 3 | // the source of the binary as an official HashiCorp release. 4 | package tfinstall 5 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-exec/tfinstall/exact_path.go: -------------------------------------------------------------------------------- 1 | package tfinstall 2 | 3 | import ( 4 | "context" 5 | "os" 6 | ) 7 | 8 | type ExactPathOption struct { 9 | execPath string 10 | } 11 | 12 | var _ ExecPathFinder = &ExactPathOption{} 13 | 14 | func ExactPath(execPath string) *ExactPathOption { 15 | opt := &ExactPathOption{ 16 | execPath: execPath, 17 | } 18 | return opt 19 | } 20 | 21 | func (opt *ExactPathOption) ExecPath(context.Context) (string, error) { 22 | if _, err := os.Stat(opt.execPath); err != nil { 23 | // fall through to the next strategy if the local path does not exist 24 | return "", nil 25 | } 26 | return opt.execPath, nil 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-exec/tfinstall/look_path.go: -------------------------------------------------------------------------------- 1 | package tfinstall 2 | 3 | import ( 4 | "context" 5 | "log" 6 | "os/exec" 7 | ) 8 | 9 | type LookPathOption struct { 10 | } 11 | 12 | var _ ExecPathFinder = &LookPathOption{} 13 | 14 | func LookPath() *LookPathOption { 15 | opt := &LookPathOption{} 16 | 17 | return opt 18 | } 19 | 20 | func (opt *LookPathOption) ExecPath(context.Context) (string, error) { 21 | p, err := exec.LookPath("terraform") 22 | if err != nil { 23 | if notFoundErr, ok := err.(*exec.Error); ok && notFoundErr.Err == exec.ErrNotFound { 24 | log.Printf("[WARN] could not locate a terraform executable on system path; continuing") 25 | return "", nil 26 | } 27 | return "", err 28 | } 29 | return p, nil 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-json/.gitignore: -------------------------------------------------------------------------------- 1 | .terraform 2 | plan.tfplan 3 | terraform.tfstate.backup 4 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-json/.go-version: -------------------------------------------------------------------------------- 1 | 1.16 2 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-json/Makefile: -------------------------------------------------------------------------------- 1 | GOTOOLS = \ 2 | gotest.tools/gotestsum@latest 3 | 4 | test: tools 5 | gotestsum --format=short-verbose $(TEST) $(TESTARGS) 6 | 7 | generate: 8 | cd testdata && make generate 9 | 10 | modules: 11 | go mod download && go mod verify 12 | 13 | test-circle: 14 | mkdir -p test-results/terraform-json 15 | gotestsum --format=short-verbose --junitfile test-results/terraform-json/results.xml 16 | 17 | tools: 18 | @echo $(GOTOOLS) | xargs -t -n1 go install 19 | go mod tidy 20 | 21 | .PHONY: test generate modules test-circle tools 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-json/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hashicorp/terraform-json 2 | 3 | go 1.13 4 | 5 | require ( 6 | github.com/davecgh/go-spew v1.1.1 7 | github.com/google/go-cmp v0.3.1 8 | github.com/mitchellh/copystructure v1.2.0 9 | github.com/sebdah/goldie v1.0.0 10 | github.com/zclconf/go-cty v1.2.1 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-json/tfjson.go: -------------------------------------------------------------------------------- 1 | // Package tfjson is a de-coupled helper library containing types for 2 | // the plan format output by "terraform show -json" command. This 3 | // command is designed for the export of Terraform plan data in 4 | // a format that can be easily processed by tools unrelated to 5 | // Terraform. 6 | // 7 | // This format is stable and should be used over the binary plan data 8 | // whenever possible. 9 | package tfjson 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-json/version.go: -------------------------------------------------------------------------------- 1 | package tfjson 2 | 3 | // VersionOutput represents output from the version -json command 4 | // added in v0.13 5 | type VersionOutput struct { 6 | Version string `json:"terraform_version"` 7 | Revision string `json:"terraform_revision"` 8 | Platform string `json:"platform,omitempty"` 9 | ProviderSelections map[string]string `json:"provider_selections"` 10 | Outdated bool `json:"terraform_outdated"` 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/fromproto/state.go: -------------------------------------------------------------------------------- 1 | package fromproto 2 | 3 | import ( 4 | "github.com/hashicorp/terraform-plugin-go/tfprotov5" 5 | "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5" 6 | ) 7 | 8 | func RawState(in *tfplugin5.RawState) *tfprotov5.RawState { 9 | return &tfprotov5.RawState{ 10 | JSON: in.Json, 11 | Flatmap: in.Flatmap, 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/fromproto/string_kind.go: -------------------------------------------------------------------------------- 1 | package fromproto 2 | 3 | import ( 4 | "github.com/hashicorp/terraform-plugin-go/tfprotov5" 5 | "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5" 6 | ) 7 | 8 | func StringKind(in tfplugin5.StringKind) tfprotov5.StringKind { 9 | return tfprotov5.StringKind(in) 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/fromproto/types.go: -------------------------------------------------------------------------------- 1 | package fromproto 2 | 3 | import ( 4 | "github.com/hashicorp/terraform-plugin-go/tfprotov5" 5 | "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5" 6 | ) 7 | 8 | func DynamicValue(in *tfplugin5.DynamicValue) *tfprotov5.DynamicValue { 9 | return &tfprotov5.DynamicValue{ 10 | MsgPack: in.Msgpack, 11 | JSON: in.Json, 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/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 --proto_path=. --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative tfplugin5.proto 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/string_kind.go: -------------------------------------------------------------------------------- 1 | package toproto 2 | 3 | import ( 4 | "github.com/hashicorp/terraform-plugin-go/tfprotov5" 5 | "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5" 6 | ) 7 | 8 | func StringKind(in tfprotov5.StringKind) tfplugin5.StringKind { 9 | return tfplugin5.StringKind(in) 10 | } 11 | 12 | // we have to say this next thing to get golint to stop yelling at us about the 13 | // underscores in the function names. We want the function names to match 14 | // actually-generated code, so it feels like fair play. It's just a shame we 15 | // lose golint for the entire file. 16 | // 17 | // This file is not actually generated. You can edit it. Ignore this next line. 18 | // Code generated by hand ignore this next bit DO NOT EDIT. 19 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/server/doc.go: -------------------------------------------------------------------------------- 1 | // Package tf5server implements a server implementation to run 2 | // tfprotov5.ProviderServers as gRPC servers. 3 | // 4 | // Providers will likely be calling tf5server.Serve from their main function to 5 | // start the server so Terraform can connect to it. 6 | package tf5server 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/string_kind.go: -------------------------------------------------------------------------------- 1 | package tfprotov5 2 | 3 | const ( 4 | // StringKindPlain indicates a string is plaintext, and should be 5 | // interpreted as having no formatting information. 6 | StringKindPlain StringKind = 0 7 | 8 | // StringKindMarkdown indicates a string is markdown-formatted, and 9 | // should be rendered using a Markdown renderer to correctly display 10 | // its formatting. 11 | StringKindMarkdown StringKind = 1 12 | ) 13 | 14 | // StringKind indicates a formatting or encoding scheme for a string. 15 | type StringKind int32 16 | 17 | func (s StringKind) String() string { 18 | switch s { 19 | case 0: 20 | return "PLAIN" 21 | case 1: 22 | return "MARKDOWN" 23 | } 24 | return "UNKNOWN" 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/fromproto/state.go: -------------------------------------------------------------------------------- 1 | package fromproto 2 | 3 | import ( 4 | "github.com/hashicorp/terraform-plugin-go/tfprotov6" 5 | "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6" 6 | ) 7 | 8 | func RawState(in *tfplugin6.RawState) *tfprotov6.RawState { 9 | return &tfprotov6.RawState{ 10 | JSON: in.Json, 11 | Flatmap: in.Flatmap, 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/fromproto/string_kind.go: -------------------------------------------------------------------------------- 1 | package fromproto 2 | 3 | import ( 4 | "github.com/hashicorp/terraform-plugin-go/tfprotov6" 5 | "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6" 6 | ) 7 | 8 | func StringKind(in tfplugin6.StringKind) tfprotov6.StringKind { 9 | return tfprotov6.StringKind(in) 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/fromproto/types.go: -------------------------------------------------------------------------------- 1 | package fromproto 2 | 3 | import ( 4 | "github.com/hashicorp/terraform-plugin-go/tfprotov6" 5 | "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6" 6 | ) 7 | 8 | func DynamicValue(in *tfplugin6.DynamicValue) *tfprotov6.DynamicValue { 9 | return &tfprotov6.DynamicValue{ 10 | MsgPack: in.Msgpack, 11 | JSON: in.Json, 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6/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 --proto_path=. --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative tfplugin6.proto 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/string_kind.go: -------------------------------------------------------------------------------- 1 | package toproto 2 | 3 | import ( 4 | "github.com/hashicorp/terraform-plugin-go/tfprotov6" 5 | "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6" 6 | ) 7 | 8 | func StringKind(in tfprotov6.StringKind) tfplugin6.StringKind { 9 | return tfplugin6.StringKind(in) 10 | } 11 | 12 | // we have to say this next thing to get golint to stop yelling at us about the 13 | // underscores in the function names. We want the function names to match 14 | // actually-generated code, so it feels like fair play. It's just a shame we 15 | // lose golint for the entire file. 16 | // 17 | // This file is not actually generated. You can edit it. Ignore this next line. 18 | // Code generated by hand ignore this next bit DO NOT EDIT. 19 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/server/doc.go: -------------------------------------------------------------------------------- 1 | // Package tf6server implements a server implementation to run 2 | // tfprotov6.ProviderServers as gRPC servers. 3 | // 4 | // Providers will likely be calling tf6server.Serve from their main function to 5 | // start the server so Terraform can connect to it. 6 | package tf6server 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/string_kind.go: -------------------------------------------------------------------------------- 1 | package tfprotov6 2 | 3 | const ( 4 | // StringKindPlain indicates a string is plaintext, and should be 5 | // interpreted as having no formatting information. 6 | StringKindPlain StringKind = 0 7 | 8 | // StringKindMarkdown indicates a string is markdown-formatted, and 9 | // should be rendered using a Markdown renderer to correctly display 10 | // its formatting. 11 | StringKindMarkdown StringKind = 1 12 | ) 13 | 14 | // StringKind indicates a formatting or encoding scheme for a string. 15 | type StringKind int32 16 | 17 | func (s StringKind) String() string { 18 | switch s { 19 | case 0: 20 | return "PLAIN" 21 | case 1: 22 | return "MARKDOWN" 23 | } 24 | return "UNKNOWN" 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tftypes/attribute_path_error.go: -------------------------------------------------------------------------------- 1 | package tftypes 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | // AttributePathError represents an error associated with part of a 8 | // tftypes.Value, indicated by the Path property. 9 | type AttributePathError struct { 10 | Path *AttributePath 11 | err error 12 | } 13 | 14 | func (a AttributePathError) Error() string { 15 | return fmt.Sprintf("%s: %s", a.Path, a.err) 16 | } 17 | 18 | func (a AttributePathError) Unwrap() error { 19 | return a.err 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tftypes/unknown_value.go: -------------------------------------------------------------------------------- 1 | package tftypes 2 | 3 | const ( 4 | // UnknownValue represents a value that is not yet known. It can be the 5 | // value of any type. 6 | UnknownValue = unknown(0) 7 | ) 8 | 9 | type unknown byte 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource/json.go: -------------------------------------------------------------------------------- 1 | package resource 2 | 3 | import ( 4 | "bytes" 5 | "encoding/json" 6 | ) 7 | 8 | func unmarshalJSON(data []byte, v interface{}) error { 9 | dec := json.NewDecoder(bytes.NewReader(data)) 10 | dec.UseNumber() 11 | return dec.Decode(v) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource/testing_config.go: -------------------------------------------------------------------------------- 1 | package resource 2 | 3 | import ( 4 | "errors" 5 | "fmt" 6 | "log" 7 | 8 | "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" 9 | ) 10 | 11 | func testStepTaint(state *terraform.State, step TestStep) error { 12 | for _, p := range step.Taint { 13 | m := state.RootModule() 14 | if m == nil { 15 | return errors.New("no state") 16 | } 17 | rs, ok := m.Resources[p] 18 | if !ok { 19 | return fmt.Errorf("resource %q not found in state", p) 20 | } 21 | log.Printf("[WARN] Test: Explicitly tainting resource %q", p) 22 | rs.Taint() 23 | } 24 | return nil 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/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/v2/helper/schema/context.go: -------------------------------------------------------------------------------- 1 | package schema 2 | 3 | type Key string 4 | 5 | var ( 6 | StopContextKey = Key("StopContext") 7 | ) 8 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/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/v2/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/v2/helper/schema/json.go: -------------------------------------------------------------------------------- 1 | package schema 2 | 3 | import ( 4 | "bytes" 5 | "encoding/json" 6 | ) 7 | 8 | func unmarshalJSON(data []byte, v interface{}) error { 9 | dec := json.NewDecoder(bytes.NewReader(data)) 10 | dec.UseNumber() 11 | return dec.Decode(v) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/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/v2/helper/schema/testing.go: -------------------------------------------------------------------------------- 1 | package schema 2 | 3 | import ( 4 | "context" 5 | 6 | testing "github.com/mitchellh/go-testing-interface" 7 | 8 | "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" 9 | ) 10 | 11 | // TestResourceDataRaw creates a ResourceData from a raw configuration map. 12 | func TestResourceDataRaw(t testing.T, schema map[string]*Schema, raw map[string]interface{}) *ResourceData { 13 | t.Helper() 14 | 15 | c := terraform.NewResourceConfigRaw(raw) 16 | 17 | sm := schemaMap(schema) 18 | diff, err := sm.Diff(context.Background(), nil, c, nil, nil, true) 19 | if err != nil { 20 | t.Fatalf("err: %s", err) 21 | } 22 | 23 | result, err := sm.Data(nil, diff) 24 | if err != nil { 25 | t.Fatalf("err: %s", err) 26 | } 27 | 28 | return result 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/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/v2/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/v2/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/v2/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/v2/helper/structure/suppress_json_diff.go: -------------------------------------------------------------------------------- 1 | package structure 2 | 3 | import ( 4 | "reflect" 5 | 6 | "github.com/hashicorp/terraform-plugin-sdk/v2/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/v2/helper/validation/uuid.go: -------------------------------------------------------------------------------- 1 | package validation 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/hashicorp/go-uuid" 7 | ) 8 | 9 | // IsUUID is a ValidateFunc that ensures a string can be parsed as UUID 10 | func IsUUID(i interface{}, k string) (warnings []string, errors []error) { 11 | v, ok := i.(string) 12 | if !ok { 13 | errors = append(errors, fmt.Errorf("expected type of %q to be string", k)) 14 | return 15 | } 16 | 17 | if _, err := uuid.ParseUUID(v); err != nil { 18 | errors = append(errors, fmt.Errorf("expected %q to be a valid UUID, got %v", k, v)) 19 | } 20 | 21 | return warnings, errors 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/addrs/module.go: -------------------------------------------------------------------------------- 1 | package addrs 2 | 3 | // Module is an address for a module call within configuration. This is 4 | // the static counterpart of ModuleInstance, representing a traversal through 5 | // the static module call tree in configuration and does not take into account 6 | // the potentially-multiple instances of a module that might be created by 7 | // "count" and "for_each" arguments within those calls. 8 | // 9 | // This type should be used only in very specialized cases when working with 10 | // the static module call tree. Type ModuleInstance is appropriate in more cases. 11 | // 12 | // Although Module is a slice, it should be treated as immutable after creation. 13 | type Module []string 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/plugintest/doc.go: -------------------------------------------------------------------------------- 1 | // Package plugintest contains utilities to help with writing tests for 2 | // Terraform plugins. 3 | // 4 | // This is not a package for testing configurations or modules written in the 5 | // Terraform language. It is for testing the plugins that allow Terraform to 6 | // manage various cloud services and other APIs. 7 | package plugintest 8 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/tfdiags/diagnostic.go: -------------------------------------------------------------------------------- 1 | package tfdiags 2 | 3 | type Diagnostic interface { 4 | Severity() Severity 5 | Description() Description 6 | } 7 | 8 | type Severity rune 9 | 10 | //go:generate go run golang.org/x/tools/cmd/stringer -type=Severity 11 | 12 | const ( 13 | Error Severity = 'E' 14 | Warning Severity = 'W' 15 | ) 16 | 17 | type Description struct { 18 | Summary string 19 | Detail string 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/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 FromError(err error) Diagnostic { 21 | return &nativeError{ 22 | err: err, 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/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/v2/internal/tfdiags/simple_warning.go: -------------------------------------------------------------------------------- 1 | package tfdiags 2 | 3 | type simpleWarning string 4 | 5 | var _ Diagnostic = simpleWarning("") 6 | 7 | // SimpleWarning constructs a simple (summary-only) warning diagnostic. 8 | func SimpleWarning(msg string) Diagnostic { 9 | return simpleWarning(msg) 10 | } 11 | 12 | func (e simpleWarning) Severity() Severity { 13 | return Warning 14 | } 15 | 16 | func (e simpleWarning) Description() Description { 17 | return Description{ 18 | Summary: string(e), 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/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/v2/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/v2/terraform/util.go: -------------------------------------------------------------------------------- 1 | package terraform 2 | 3 | import ( 4 | "sort" 5 | ) 6 | 7 | // deduplicate a slice of strings 8 | func uniqueStrings(s []string) []string { 9 | if len(s) < 2 { 10 | return s 11 | } 12 | 13 | sort.Strings(s) 14 | result := make([]string, 1, len(s)) 15 | result[0] = s[0] 16 | for i := 1; i < len(s); i++ { 17 | if s[i] != result[len(result)-1] { 18 | result = append(result, s[i]) 19 | } 20 | } 21 | return result 22 | } 23 | -------------------------------------------------------------------------------- /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/hashicorp/yamux/util.go: -------------------------------------------------------------------------------- 1 | package yamux 2 | 3 | import ( 4 | "sync" 5 | "time" 6 | ) 7 | 8 | var ( 9 | timerPool = &sync.Pool{ 10 | New: func() interface{} { 11 | timer := time.NewTimer(time.Hour * 1e6) 12 | timer.Stop() 13 | return timer 14 | }, 15 | } 16 | ) 17 | 18 | // asyncSendErr is used to try an async send of an error 19 | func asyncSendErr(ch chan error, err error) { 20 | if ch == nil { 21 | return 22 | } 23 | select { 24 | case ch <- err: 25 | default: 26 | } 27 | } 28 | 29 | // asyncNotify is used to signal a waiting goroutine 30 | func asyncNotify(ch chan struct{}) { 31 | select { 32 | case ch <- struct{}{}: 33 | default: 34 | } 35 | } 36 | 37 | // min computes the minimum of two values 38 | func min(a, b uint32) uint32 { 39 | if a < b { 40 | return a 41 | } 42 | return b 43 | } 44 | -------------------------------------------------------------------------------- /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/jstemmer/go-junit-report/.gitignore: -------------------------------------------------------------------------------- 1 | go-junit-report 2 | -------------------------------------------------------------------------------- /vendor/github.com/jstemmer/go-junit-report/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - tip 5 | - "1.13.x" 6 | - "1.12.x" 7 | - "1.11.x" 8 | - "1.10.x" 9 | - "1.9.x" 10 | - "1.8.x" 11 | - "1.7.x" 12 | - "1.6.x" 13 | - "1.5.x" 14 | - "1.4.x" 15 | - "1.3.x" 16 | - "1.2.x" 17 | -------------------------------------------------------------------------------- /vendor/github.com/jstemmer/go-junit-report/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/jstemmer/go-junit-report 2 | 3 | go 1.2 4 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/huff0/.gitignore: -------------------------------------------------------------------------------- 1 | /huff0-fuzz.zip 2 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/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/klauspost/compress/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/klauspost/compress/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/klauspost/compress/snappy/runbench.cmd: -------------------------------------------------------------------------------- 1 | del old.txt 2 | go test -bench=. >>old.txt && go test -bench=. >>old.txt && go test -bench=. >>old.txt && benchstat -delta-test=ttest old.txt new.txt 3 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_amd64.go: -------------------------------------------------------------------------------- 1 | // +build !appengine 2 | // +build gc 3 | // +build !purego 4 | 5 | package xxhash 6 | 7 | // Sum64 computes the 64-bit xxHash digest of b. 8 | // 9 | //go:noescape 10 | func Sum64(b []byte) uint64 11 | 12 | //go:noescape 13 | func writeBlocks(*Digest, []byte) int 14 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_safe.go: -------------------------------------------------------------------------------- 1 | package xxhash 2 | 3 | // Sum64String computes the 64-bit xxHash digest of s. 4 | func Sum64String(s string) uint64 { 5 | return Sum64([]byte(s)) 6 | } 7 | 8 | // WriteString adds more data to d. It always returns len(s), nil. 9 | func (d *Digest) WriteString(s string) (n int, err error) { 10 | return d.Write([]byte(s)) 11 | } 12 | -------------------------------------------------------------------------------- /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 returns new instance of Writer which handles 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 returns new instance of Writer which handles escape sequence for stdout. 22 | func NewColorableStdout() io.Writer { 23 | return os.Stdout 24 | } 25 | 26 | // NewColorableStderr returns new instance of Writer which handles escape sequence for stderr. 27 | func NewColorableStderr() io.Writer { 28 | return os.Stderr 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/colorable_others.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | // +build !appengine 3 | 4 | package colorable 5 | 6 | import ( 7 | "io" 8 | "os" 9 | 10 | _ "github.com/mattn/go-isatty" 11 | ) 12 | 13 | // NewColorable returns new instance of Writer which handles escape sequence. 14 | func NewColorable(file *os.File) io.Writer { 15 | if file == nil { 16 | panic("nil passed instead of *os.File to NewColorable()") 17 | } 18 | 19 | return file 20 | } 21 | 22 | // NewColorableStdout returns new instance of Writer which handles escape sequence for stdout. 23 | func NewColorableStdout() io.Writer { 24 | return os.Stdout 25 | } 26 | 27 | // NewColorableStderr returns new instance of Writer which handles escape sequence for stderr. 28 | func NewColorableStderr() io.Writer { 29 | return os.Stderr 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/mattn/go-colorable 2 | 3 | require github.com/mattn/go-isatty v0.0.8 4 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/go.sum: -------------------------------------------------------------------------------- 1 | github.com/mattn/go-isatty v0.0.5 h1:tHXDdz1cpzGaovsTB+TVB8q90WEokoVmfMqoVcrLUgw= 2 | github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= 3 | golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223 h1:DH4skfRX4EBpamg7iV4ZlCpblAHI6s6TDM39bFZumv8= 4 | golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 5 | -------------------------------------------------------------------------------- /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/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/mattn/go-isatty 2 | 3 | require golang.org/x/sys v0.0.0-20191008105621-543471e840be 4 | 5 | go 1.14 6 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/go.sum: -------------------------------------------------------------------------------- 1 | golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a h1:aYOabOQFp6Vj6W1F80affTUvO9UxmJRx8K0gsfABByQ= 2 | golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 3 | golang.org/x/sys v0.0.0-20191008105621-543471e840be h1:QAcqgptGM8IQBC9K/RC4o+O9YmqEm0diQn9QmZw/0mU= 4 | golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 5 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_android.go: -------------------------------------------------------------------------------- 1 | // +build android 2 | 3 | package isatty 4 | 5 | import ( 6 | "syscall" 7 | "unsafe" 8 | ) 9 | 10 | const ioctlReadTermios = syscall.TCGETS 11 | 12 | // IsTerminal return true if the file descriptor is terminal. 13 | func IsTerminal(fd uintptr) bool { 14 | var termios syscall.Termios 15 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 16 | return err == 0 17 | } 18 | 19 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 20 | // terminal. This is also always false on this environment. 21 | func IsCygwinTerminal(fd uintptr) bool { 22 | return false 23 | } 24 | -------------------------------------------------------------------------------- /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 | 20 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 21 | // terminal. This is also always false on this environment. 22 | func IsCygwinTerminal(fd uintptr) bool { 23 | return false 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_others.go: -------------------------------------------------------------------------------- 1 | // +build appengine js nacl 2 | 3 | package isatty 4 | 5 | // IsTerminal returns true if the file descriptor is terminal which 6 | // is always false on js and 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_plan9.go: -------------------------------------------------------------------------------- 1 | // +build plan9 2 | 3 | package isatty 4 | 5 | import ( 6 | "syscall" 7 | ) 8 | 9 | // IsTerminal returns true if the given file descriptor is a terminal. 10 | func IsTerminal(fd uintptr) bool { 11 | path, err := syscall.Fd2path(fd) 12 | if err != nil { 13 | return false 14 | } 15 | return path == "/dev/cons" || path == "/mnt/term/dev/cons" 16 | } 17 | 18 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 19 | // terminal. This is also always false on this environment. 20 | func IsCygwinTerminal(fd uintptr) bool { 21 | return false 22 | } 23 | -------------------------------------------------------------------------------- /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 | 18 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 19 | // terminal. This is also always false on this environment. 20 | func IsCygwinTerminal(fd uintptr) bool { 21 | return false 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_tcgets.go: -------------------------------------------------------------------------------- 1 | // +build linux aix 2 | // +build !appengine 3 | // +build !android 4 | 5 | package isatty 6 | 7 | import "golang.org/x/sys/unix" 8 | 9 | // IsTerminal return true if the file descriptor is terminal. 10 | func IsTerminal(fd uintptr) bool { 11 | _, err := unix.IoctlGetTermios(int(fd), unix.TCGETS) 12 | return err == nil 13 | } 14 | 15 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 16 | // terminal. This is also always false on this environment. 17 | func IsCygwinTerminal(fd uintptr) bool { 18 | return false 19 | } 20 | -------------------------------------------------------------------------------- /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 | go 1.15 4 | 5 | require github.com/mitchellh/reflectwalk v1.0.2 6 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/copystructure/go.sum: -------------------------------------------------------------------------------- 1 | github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= 2 | github.com/mitchellh/reflectwalk v1.0.2/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/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-check-none.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CiscoDevNet/terraform-provider-ciscoasa/c0052f6320e188e9f657dd5620c3ffd6a046e9cb/vendor/github.com/ulikunitz/xz/fox-check-none.xz -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/fox.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CiscoDevNet/terraform-provider-ciscoasa/c0052f6320e188e9f657dd5620c3ffd6a046e9cb/vendor/github.com/ulikunitz/xz/fox.xz -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/ulikunitz/xz 2 | 3 | go 1.12 4 | -------------------------------------------------------------------------------- /vendor/github.com/ulikunitz/xz/internal/hash/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014-2019 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/CiscoDevNet/terraform-provider-ciscoasa/c0052f6320e188e9f657dd5620c3ffd6a046e9cb/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/ulikunitz/xz/none-check.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014-2019 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 | package xz 6 | 7 | import "hash" 8 | 9 | type noneHash struct{} 10 | 11 | func (h noneHash) Write(p []byte) (n int, err error) { return len(p), nil } 12 | 13 | func (h noneHash) Sum(b []byte) []byte { return b } 14 | 15 | func (h noneHash) Reset() {} 16 | 17 | func (h noneHash) Size() int { return 0 } 18 | 19 | func (h noneHash) BlockSize() int { return 0 } 20 | 21 | func newNoneHash() hash.Hash { 22 | return &noneHash{} 23 | } 24 | -------------------------------------------------------------------------------- /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 | - 1.11.x 10 | - 1.12.x 11 | - tip 12 | 13 | matrix: 14 | allow_failures: 15 | - go: tip 16 | 17 | install: 18 | - go get gopkg.in/check.v1 19 | -------------------------------------------------------------------------------- /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 test ./... -run=nothing -bench=. -benchmem 6 | go vet 7 | -------------------------------------------------------------------------------- /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/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/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 | GO111MODULE: 'on' 10 | CGO_ENABLED: '0' # See: https://github.com/appveyor/ci/issues/2613 11 | 12 | stack: go 1.11 13 | 14 | before_test: 15 | - go version 16 | - go env 17 | 18 | build: false 19 | deploy: false 20 | 21 | test_script: 22 | - cd %APPVEYOR_BUILD_FOLDER% 23 | - go build -v .\... 24 | - go test -v .\... # No -race because cgo is disabled 25 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/go.mod: -------------------------------------------------------------------------------- 1 | module go.opencensus.io 2 | 3 | require ( 4 | github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 5 | github.com/golang/protobuf v1.3.1 6 | github.com/google/go-cmp v0.3.0 7 | github.com/stretchr/testify v1.4.0 8 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859 9 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd // indirect 10 | golang.org/x/text v0.3.2 // indirect 11 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb // indirect 12 | google.golang.org/grpc v1.20.1 13 | ) 14 | 15 | go 1.13 16 | -------------------------------------------------------------------------------- /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/lint/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go: 4 | - 1.10.x 5 | - 1.11.x 6 | - master 7 | 8 | go_import_path: golang.org/x/lint 9 | 10 | install: 11 | - go get -t -v ./... 12 | 13 | script: 14 | - go test -v -race ./... 15 | 16 | matrix: 17 | allow_failures: 18 | - go: master 19 | fast_finish: true 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/lint/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to Golint 2 | 3 | ## Before filing an issue: 4 | 5 | ### Are you having trouble building golint? 6 | 7 | Check you have the latest version of its dependencies. Run 8 | ``` 9 | go get -u golang.org/x/lint/golint 10 | ``` 11 | If you still have problems, consider searching for existing issues before filing a new issue. 12 | 13 | ## Before sending a pull request: 14 | 15 | Have you understood the purpose of golint? Make sure to carefully read `README`. 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/lint/go.mod: -------------------------------------------------------------------------------- 1 | module golang.org/x/lint 2 | 3 | go 1.11 4 | 5 | require golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7 6 | -------------------------------------------------------------------------------- /vendor/golang.org/x/lint/golint/importcomment.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2018 The Go Authors. All rights reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file or at 5 | // https://developers.google.com/open-source/licenses/bsd. 6 | 7 | // +build go1.12 8 | 9 | // Require use of the correct import path only for Go 1.12+ users, so 10 | // any breakages coincide with people updating their CI configs or 11 | // whatnot. 12 | 13 | package main // import "golang.org/x/lint/golint" 14 | -------------------------------------------------------------------------------- /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 | //go:build go1.9 6 | // +build go1.9 7 | 8 | package context 9 | 10 | import "context" // standard library's context, as of Go 1.7 11 | 12 | // A Context carries a deadline, a cancelation signal, and other values across 13 | // API boundaries. 14 | // 15 | // Context's methods may be called by multiple goroutines simultaneously. 16 | type Context = context.Context 17 | 18 | // A CancelFunc tells an operation to abandon its work. 19 | // A CancelFunc does not wait for the work to stop. 20 | // After the first call, subsequent calls to a CancelFunc do nothing. 21 | type CancelFunc = context.CancelFunc 22 | -------------------------------------------------------------------------------- /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/go115.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 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 | //go:build go1.15 6 | // +build go1.15 7 | 8 | package http2 9 | 10 | import ( 11 | "context" 12 | "crypto/tls" 13 | ) 14 | 15 | // dialTLSWithContext uses tls.Dialer, added in Go 1.15, to open a TLS 16 | // connection. 17 | func (t *Transport) dialTLSWithContext(ctx context.Context, network, addr string, cfg *tls.Config) (*tls.Conn, error) { 18 | dialer := &tls.Dialer{ 19 | Config: cfg, 20 | } 21 | cn, err := dialer.DialContext(ctx, network, addr) 22 | if err != nil { 23 | return nil, err 24 | } 25 | tlsCn := cn.(*tls.Conn) // DialContext comment promises this will always succeed 26 | return tlsCn, nil 27 | } 28 | -------------------------------------------------------------------------------- /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 | //go:build !go1.11 6 | // +build !go1.11 7 | 8 | package http2 9 | 10 | import ( 11 | "net/http/httptrace" 12 | "net/textproto" 13 | ) 14 | 15 | func traceHasWroteHeaderField(trace *httptrace.ClientTrace) bool { return false } 16 | 17 | func traceWroteHeaderField(trace *httptrace.ClientTrace, k, v string) {} 18 | 19 | func traceGot1xxResponseFunc(trace *httptrace.ClientTrace) func(int, textproto.MIMEHeader) error { 20 | return nil 21 | } 22 | -------------------------------------------------------------------------------- /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 | //go:build (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos) && go1.9 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | // +build go1.9 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | type Signal = syscall.Signal 14 | type Errno = syscall.Errno 15 | type SysProcAttr = syscall.SysProcAttr 16 | -------------------------------------------------------------------------------- /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 | //go:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 12 | // 13 | 14 | TEXT ·syscall6(SB),NOSPLIT,$0-88 15 | JMP syscall·syscall6(SB) 16 | 17 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 18 | JMP syscall·rawSyscall6(SB) 19 | -------------------------------------------------------------------------------- /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 | //go:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 12 | // 13 | 14 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 15 | JMP syscall·sysvicall6(SB) 16 | 17 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 18 | JMP syscall·rawSysvicall6(SB) 19 | -------------------------------------------------------------------------------- /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 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | 8 | package unix 9 | 10 | const ( 11 | R_OK = 0x4 12 | W_OK = 0x2 13 | X_OK = 0x1 14 | ) 15 | -------------------------------------------------------------------------------- /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 | //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 6 | // +build armbe arm64be m68k mips mips64 mips64p32 ppc ppc64 s390 s390x shbe sparc sparc64 7 | 8 | package unix 9 | 10 | const isBigEndian = true 11 | -------------------------------------------------------------------------------- /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 | //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh 6 | // +build 386 amd64 amd64p32 alpha arm arm64 mipsle mips64le mips64p32le nios2 ppc64le riscv riscv64 sh 7 | 8 | package unix 9 | 10 | const isBigEndian = false 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/errors_freebsd_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 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 | // Constants that were deprecated or moved to enums in the FreeBSD headers. Keep 6 | // them here for backwards compatibility. 7 | 8 | package unix 9 | 10 | const ( 11 | DLT_HHDLC = 0x79 12 | IPV6_MIN_MEMBERSHIPS = 0x1f 13 | IP_MAX_SOURCE_FILTER = 0x400 14 | IP_MIN_MEMBERSHIPS = 0x1f 15 | RT_CACHING_CONTEXT = 0x1 16 | RT_NORTREF = 0x2 17 | ) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go: -------------------------------------------------------------------------------- 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 | //go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle) || (linux && ppc) 6 | // +build linux,386 linux,arm linux,mips linux,mipsle linux,ppc 7 | 8 | package unix 9 | 10 | func init() { 11 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 12 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 13 | fcntl64Syscall = SYS_FCNTL64 14 | } 15 | -------------------------------------------------------------------------------- /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 | //go:build gccgo && linux && amd64 6 | // +build gccgo,linux,amd64 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //extern gettimeofday 13 | func realGettimeofday(*Timeval, *byte) int32 14 | 15 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 16 | r := realGettimeofday(tv, nil) 17 | if r < 0 { 18 | return syscall.GetErrno() 19 | } 20 | return 0 21 | } 22 | -------------------------------------------------------------------------------- /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 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 7 | 8 | // For Unix, get the pagesize from the runtime. 9 | 10 | package unix 11 | 12 | import "syscall" 13 | 14 | func Getpagesize() int { 15 | return syscall.Getpagesize() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 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 | //go:build darwin && !ios 6 | // +build darwin,!ios 7 | 8 | package unix 9 | 10 | func ptrace(request int, pid int, addr uintptr, data uintptr) error { 11 | return ptrace1(request, pid, addr, data) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_ios.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 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 | //go:build ios 6 | // +build ios 7 | 8 | package unix 9 | 10 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { 11 | return ENOTSUP 12 | } 13 | -------------------------------------------------------------------------------- /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 | //go:build (darwin && race) || (linux && race) || (freebsd && race) 6 | // +build darwin,race linux,race freebsd,race 7 | 8 | package unix 9 | 10 | import ( 11 | "runtime" 12 | "unsafe" 13 | ) 14 | 15 | const raceenabled = true 16 | 17 | func raceAcquire(addr unsafe.Pointer) { 18 | runtime.RaceAcquire(addr) 19 | } 20 | 21 | func raceReleaseMerge(addr unsafe.Pointer) { 22 | runtime.RaceReleaseMerge(addr) 23 | } 24 | 25 | func raceReadRange(addr unsafe.Pointer, len int) { 26 | runtime.RaceReadRange(addr, len) 27 | } 28 | 29 | func raceWriteRange(addr unsafe.Pointer, len int) { 30 | runtime.RaceWriteRange(addr, len) 31 | } 32 | -------------------------------------------------------------------------------- /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 | //go:build aix || (darwin && !race) || (linux && !race) || (freebsd && !race) || netbsd || openbsd || solaris || dragonfly || zos 6 | // +build aix darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly zos 7 | 8 | package unix 9 | 10 | import ( 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = false 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | } 18 | 19 | func raceReleaseMerge(addr unsafe.Pointer) { 20 | } 21 | 22 | func raceReadRange(addr unsafe.Pointer, len int) { 23 | } 24 | 25 | func raceWriteRange(addr unsafe.Pointer, len int) { 26 | } 27 | -------------------------------------------------------------------------------- /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 | //go:build aix || dragonfly || freebsd || linux || netbsd || openbsd 6 | // +build aix dragonfly freebsd linux netbsd openbsd 7 | 8 | package unix 9 | 10 | // ReadDirent reads directory entries from fd and writes them into buf. 11 | func ReadDirent(fd int, buf []byte) (n int, err error) { 12 | return Getdents(fd, buf) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.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 | // Round the length of a raw sockaddr up to align it properly. 8 | func cmsgAlignOf(salen int) int { 9 | salign := SizeofPtr 10 | if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) { 11 | // 64-bit Dragonfly before the September 2019 ABI changes still requires 12 | // 32-bit aligned access to network subsystem. 13 | salign = 4 14 | } 15 | return (salen + salign - 1) & ^(salign - 1) 16 | } 17 | -------------------------------------------------------------------------------- /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 | //go:build amd64 && linux && gc 6 | // +build amd64,linux,gc 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 | //go:build linux && gc 6 | // +build linux,gc 7 | 8 | package unix 9 | 10 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 11 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 12 | 13 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 14 | // fail. 15 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 16 | -------------------------------------------------------------------------------- /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 | //go:build linux && gc && 386 6 | // +build linux,gc,386 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | // Underlying system call writes to newoffset via pointer. 13 | // Implemented in assembly to avoid allocation. 14 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 15 | 16 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 17 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.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 | //go:build arm && gc && linux 6 | // +build arm,gc,linux 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | // Underlying system call writes to newoffset via pointer. 13 | // Implemented in assembly to avoid allocation. 14 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 15 | -------------------------------------------------------------------------------- /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 | //go:build linux && gccgo && arm 6 | // +build linux,gccgo,arm 7 | 8 | package unix 9 | 10 | import ( 11 | "syscall" 12 | "unsafe" 13 | ) 14 | 15 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { 16 | var newoffset int64 17 | offsetLow := uint32(offset & 0xffffffff) 18 | offsetHigh := uint32((offset >> 32) & 0xffffffff) 19 | _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0) 20 | return newoffset, err 21 | } 22 | -------------------------------------------------------------------------------- /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 | //go:build amd64 && solaris 6 | // +build amd64,solaris 7 | 8 | package unix 9 | 10 | func setTimespec(sec, nsec int64) Timespec { 11 | return Timespec{Sec: sec, Nsec: nsec} 12 | } 13 | 14 | func setTimeval(sec, usec int64) Timeval { 15 | return Timeval{Sec: sec, Usec: usec} 16 | } 17 | 18 | func (iov *Iovec) SetLen(length int) { 19 | iov.Len = uint64(length) 20 | } 21 | 22 | func (msghdr *Msghdr) SetIovlen(length int) { 23 | msghdr.Iovlen = int32(length) 24 | } 25 | 26 | func (cmsg *Cmsghdr) SetLen(length int) { 27 | cmsg.Len = uint32(length) 28 | } 29 | -------------------------------------------------------------------------------- /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 | //go:build go1.10 6 | // +build go1.10 7 | 8 | package bidirule 9 | 10 | func (t *Transformer) isFinal() bool { 11 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 12 | } 13 | -------------------------------------------------------------------------------- /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 | //go:build !go1.10 6 | // +build !go1.10 7 | 8 | package bidirule 9 | 10 | func (t *Transformer) isFinal() bool { 11 | if !t.isRTL() { 12 | return true 13 | } 14 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/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/tools/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/tools/cmd/goimports/goimports_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 | //go:build gc 6 | // +build gc 7 | 8 | package main 9 | 10 | import ( 11 | "flag" 12 | "runtime/trace" 13 | ) 14 | 15 | var traceProfile = flag.String("trace", "", "trace profile output") 16 | 17 | func doTrace() func() { 18 | if *traceProfile != "" { 19 | bw, flush := bufferedFileWriter(*traceProfile) 20 | trace.Start(bw) 21 | return func() { 22 | flush() 23 | trace.Stop() 24 | } 25 | } 26 | return func() {} 27 | } 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/cmd/goimports/goimports_not_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 | //go:build !gc 6 | // +build !gc 7 | 8 | package main 9 | 10 | func doTrace() func() { 11 | return func() {} 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/ast/astutil/util.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 | package astutil 6 | 7 | import "go/ast" 8 | 9 | // Unparen returns e with any enclosing parentheses stripped. 10 | func Unparen(e ast.Expr) ast.Expr { 11 | for { 12 | p, ok := e.(*ast.ParenExpr) 13 | if !ok { 14 | return e 15 | } 16 | e = p.X 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/internal/gcimporter/newInterface10.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 | //go:build !go1.11 6 | // +build !go1.11 7 | 8 | package gcimporter 9 | 10 | import "go/types" 11 | 12 | func newInterface(methods []*types.Func, embeddeds []types.Type) *types.Interface { 13 | named := make([]*types.Named, len(embeddeds)) 14 | for i, e := range embeddeds { 15 | var ok bool 16 | named[i], ok = e.(*types.Named) 17 | if !ok { 18 | panic("embedding of non-defined interfaces in interfaces is not supported before Go 1.11") 19 | } 20 | } 21 | return types.NewInterface(methods, named) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/internal/gcimporter/newInterface11.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 | //go:build go1.11 6 | // +build go1.11 7 | 8 | package gcimporter 9 | 10 | import "go/types" 11 | 12 | func newInterface(methods []*types.Func, embeddeds []types.Type) *types.Interface { 13 | return types.NewInterfaceType(methods, embeddeds) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/internal/gcimporter/support_go117.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 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 | //go:build !typeparams || !go1.18 6 | // +build !typeparams !go1.18 7 | 8 | package gcimporter 9 | 10 | import "go/types" 11 | 12 | const iexportVersion = iexportVersionGo1_11 13 | 14 | func additionalPredeclared() []types.Type { 15 | return nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/internal/gcimporter/support_go118.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 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 | //go:build typeparams && go1.18 6 | // +build typeparams,go1.18 7 | 8 | package gcimporter 9 | 10 | import "go/types" 11 | 12 | const iexportVersion = iexportVersionGenerics 13 | 14 | // additionalPredeclared returns additional predeclared types in go.1.18. 15 | func additionalPredeclared() []types.Type { 16 | return []types.Type{ 17 | // comparable 18 | types.Universe.Lookup("comparable").Type(), 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/event/doc.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 event provides a set of packages that cover the main 6 | // concepts of telemetry in an implementation agnostic way. 7 | package event 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_fileno.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 | //go:build freebsd || openbsd || netbsd 6 | // +build freebsd openbsd netbsd 7 | 8 | package fastwalk 9 | 10 | import "syscall" 11 | 12 | func direntInode(dirent *syscall.Dirent) uint64 { 13 | return uint64(dirent.Fileno) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_ino.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 | //go:build (linux || darwin) && !appengine 6 | // +build linux darwin 7 | // +build !appengine 8 | 9 | package fastwalk 10 | 11 | import "syscall" 12 | 13 | func direntInode(dirent *syscall.Dirent) uint64 { 14 | return uint64(dirent.Ino) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_namlen_bsd.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 | //go:build darwin || freebsd || openbsd || netbsd 6 | // +build darwin freebsd openbsd netbsd 7 | 8 | package fastwalk 9 | 10 | import "syscall" 11 | 12 | func direntNamlen(dirent *syscall.Dirent) uint64 { 13 | return uint64(dirent.Namlen) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/typeparams/enabled_go117.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 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 | //go:build !typeparams || !go1.18 6 | // +build !typeparams !go1.18 7 | 8 | package typeparams 9 | 10 | // Enabled reports whether type parameters are enabled in the current build 11 | // environment. 12 | const Enabled = false 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/typeparams/enabled_go118.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 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 | //go:build typeparams && go1.18 6 | // +build typeparams,go1.18 7 | 8 | package typeparams 9 | 10 | // Note: this constant is in a separate file as this is the only acceptable 11 | // diff between the <1.18 API of this package and the 1.18 API. 12 | 13 | // Enabled reports whether type parameters are enabled in the current build 14 | // environment. 15 | const Enabled = true 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/xerrors/README: -------------------------------------------------------------------------------- 1 | This repository holds the transition packages for the new Go 1.13 error values. 2 | See golang.org/design/29934-error-values. 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/xerrors/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/xerrors/go.mod: -------------------------------------------------------------------------------- 1 | module golang.org/x/xerrors 2 | 3 | go 1.11 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/xerrors/internal/internal.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 | package internal 6 | 7 | // EnableTrace indicates whether stack information should be recorded in errors. 8 | var EnableTrace = true 9 | -------------------------------------------------------------------------------- /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 | LightStep Inc. 12 | -------------------------------------------------------------------------------- /vendor/google.golang.org/api/internal/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/internal/gensupport/retryable_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 Google LLC. 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 6 | 7 | package gensupport 8 | 9 | import "syscall" 10 | 11 | func init() { 12 | // Initialize syscallRetryable to return true on transient socket-level 13 | // errors. These errors are specific to Linux. 14 | syscallRetryable = func(err error) bool { return err == syscall.ECONNRESET || err == syscall.ECONNREFUSED } 15 | } 16 | -------------------------------------------------------------------------------- /vendor/google.golang.org/api/internal/third_party/uritemplates/METADATA: -------------------------------------------------------------------------------- 1 | name: "uritemplates" 2 | description: 3 | "Package uritemplates is a level 4 implementation of RFC 6570 (URI " 4 | "Template, http://tools.ietf.org/html/rfc6570)." 5 | 6 | third_party { 7 | url { 8 | type: GIT 9 | value: "https://github.com/jtacoma/uritemplates" 10 | } 11 | version: "0.1" 12 | last_upgrade_date { year: 2014 month: 8 day: 18 } 13 | license_type: NOTICE 14 | } 15 | -------------------------------------------------------------------------------- /vendor/google.golang.org/api/internal/third_party/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/api/option/credentials_go19.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 Google LLC. 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 option 8 | 9 | import ( 10 | "golang.org/x/oauth2/google" 11 | "google.golang.org/api/internal" 12 | ) 13 | 14 | type withCreds google.Credentials 15 | 16 | func (w *withCreds) Apply(o *internal.DialSettings) { 17 | o.Credentials = (*google.Credentials)(w) 18 | } 19 | 20 | // WithCredentials returns a ClientOption that authenticates API calls. 21 | func WithCredentials(creds *google.Credentials) ClientOption { 22 | return (*withCreds)(creds) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/google.golang.org/api/option/credentials_notgo19.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 Google LLC. 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 option 8 | 9 | import ( 10 | "golang.org/x/oauth2/google" 11 | "google.golang.org/api/internal" 12 | ) 13 | 14 | type withCreds google.DefaultCredentials 15 | 16 | func (w *withCreds) Apply(o *internal.DialSettings) { 17 | o.Credentials = (*google.DefaultCredentials)(w) 18 | } 19 | 20 | func WithCredentials(creds *google.DefaultCredentials) ClientOption { 21 | return (*withCreds)(creds) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/google.golang.org/api/transport/http/default_transport_go113.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 Google LLC. 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.13 6 | 7 | package http 8 | 9 | import "net/http" 10 | 11 | // clonedTransport returns the given RoundTripper as a cloned *http.Transport. 12 | // It returns nil if the RoundTripper can't be cloned or coerced to 13 | // *http.Transport. 14 | func clonedTransport(rt http.RoundTripper) *http.Transport { 15 | t, ok := rt.(*http.Transport) 16 | if !ok { 17 | return nil 18 | } 19 | return t.Clone() 20 | } 21 | -------------------------------------------------------------------------------- /vendor/google.golang.org/api/transport/http/default_transport_not_go113.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 Google LLC. 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.13 6 | 7 | package http 8 | 9 | import "net/http" 10 | 11 | // clonedTransport returns the given RoundTripper as a cloned *http.Transport. 12 | // For versions of Go <1.13, this is not supported, so return nil. 13 | func clonedTransport(rt http.RoundTripper) *http.Transport { 14 | return nil 15 | } 16 | -------------------------------------------------------------------------------- /vendor/google.golang.org/api/transport/http/dial_appengine.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 Google LLC. 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 http 8 | 9 | import ( 10 | "context" 11 | "net/http" 12 | 13 | "google.golang.org/appengine/urlfetch" 14 | ) 15 | 16 | func init() { 17 | appengineUrlfetchHook = func(ctx context.Context) http.RoundTripper { 18 | return &urlfetch.Transport{Context: ctx} 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /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.9.x 14 | env: GOAPP=true 15 | - go: 1.10.x 16 | env: GOAPP=false 17 | - go: 1.11.x 18 | env: GO111MODULE=on 19 | -------------------------------------------------------------------------------- /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/go.mod: -------------------------------------------------------------------------------- 1 | module google.golang.org/appengine 2 | 3 | go 1.11 4 | 5 | require ( 6 | github.com/golang/protobuf v1.3.1 7 | golang.org/x/net v0.0.0-20190603091049-60506f45cf65 8 | golang.org/x/text v0.3.2 9 | ) 10 | -------------------------------------------------------------------------------- /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/CODE-OF-CONDUCT.md: -------------------------------------------------------------------------------- 1 | ## Community Code of Conduct 2 | 3 | gRPC follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md). 4 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/GOVERNANCE.md: -------------------------------------------------------------------------------- 1 | This repository is governed by the gRPC organization's [governance rules](https://github.com/grpc/grpc-community/blob/master/governance.md). 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/go.mod: -------------------------------------------------------------------------------- 1 | module google.golang.org/grpc 2 | 3 | go 1.11 4 | 5 | require ( 6 | github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f 7 | github.com/envoyproxy/go-control-plane v0.9.4 8 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b 9 | github.com/golang/protobuf v1.3.3 10 | github.com/google/go-cmp v0.4.0 11 | golang.org/x/net v0.0.0-20190311183353-d8887717615a 12 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be 13 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a 14 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55 15 | ) 16 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/reflection/README.md: -------------------------------------------------------------------------------- 1 | # Reflection 2 | 3 | Package reflection implements server reflection service. 4 | 5 | The service implemented is defined in: https://github.com/grpc/grpc/blob/master/src/proto/grpc/reflection/v1alpha/reflection.proto. 6 | 7 | To register server reflection on a gRPC server: 8 | ```go 9 | import "google.golang.org/grpc/reflection" 10 | 11 | s := grpc.NewServer() 12 | pb.RegisterYourOwnServer(s, &server{}) 13 | 14 | // Register reflection service on gRPC server. 15 | reflection.Register(s) 16 | 17 | s.Serve(lis) 18 | ``` 19 | -------------------------------------------------------------------------------- /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.32.0" 23 | -------------------------------------------------------------------------------- /vendor/google.golang.org/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 https://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/google.golang.org/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 https://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/encoding/prototext/doc.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 prototext marshals and unmarshals protocol buffer messages as the 6 | // textproto format. 7 | package prototext 8 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/errors/is_go113.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 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.13 6 | 7 | package errors 8 | 9 | import "errors" 10 | 11 | // Is is errors.Is. 12 | func Is(err, target error) bool { return errors.Is(err, target) } 13 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/flags/proto_legacy_disable.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 !protolegacy 6 | 7 | package flags 8 | 9 | const protoLegacy = false 10 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/flags/proto_legacy_enable.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 protolegacy 6 | 7 | package flags 8 | 9 | const protoLegacy = true 10 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/doc.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 genid contains constants for declarations in descriptor.proto 6 | // and the well-known types. 7 | package genid 8 | 9 | import protoreflect "google.golang.org/protobuf/reflect/protoreflect" 10 | 11 | const GoogleProtobuf_package protoreflect.FullName = "google.protobuf" 12 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/empty_gen.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 | // Code generated by generate-protos. DO NOT EDIT. 6 | 7 | package genid 8 | 9 | import ( 10 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 | ) 12 | 13 | const File_google_protobuf_empty_proto = "google/protobuf/empty.proto" 14 | 15 | // Names for google.protobuf.Empty. 16 | const ( 17 | Empty_message_name protoreflect.Name = "Empty" 18 | Empty_message_fullname protoreflect.FullName = "google.protobuf.Empty" 19 | ) 20 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/map_entry.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 genid 6 | 7 | import protoreflect "google.golang.org/protobuf/reflect/protoreflect" 8 | 9 | // Generic field names and numbers for synthetic map entry messages. 10 | const ( 11 | MapEntry_Key_field_name protoreflect.Name = "key" 12 | MapEntry_Value_field_name protoreflect.Name = "value" 13 | 14 | MapEntry_Key_field_number protoreflect.FieldNumber = 1 15 | MapEntry_Value_field_number protoreflect.FieldNumber = 2 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/wrappers.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 genid 6 | 7 | import protoreflect "google.golang.org/protobuf/reflect/protoreflect" 8 | 9 | // Generic field name and number for messages in wrappers.proto. 10 | const ( 11 | WrapperValue_Value_field_name protoreflect.Name = "value" 12 | WrapperValue_Value_field_number protoreflect.FieldNumber = 1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/impl/codec_map_go112.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 go1.12 6 | 7 | package impl 8 | 9 | import "reflect" 10 | 11 | func mapRange(v reflect.Value) *reflect.MapIter { return v.MapRange() } 12 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.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 !purego,!appengine 6 | 7 | package impl 8 | 9 | // When using unsafe pointers, we can just treat enum values as int32s. 10 | 11 | var ( 12 | coderEnumNoZero = coderInt32NoZero 13 | coderEnum = coderInt32 14 | coderEnumPtr = coderInt32Ptr 15 | coderEnumSlice = coderInt32Slice 16 | coderEnumPackedSlice = coderInt32PackedSlice 17 | ) 18 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/impl/enum.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 impl 6 | 7 | import ( 8 | "reflect" 9 | 10 | pref "google.golang.org/protobuf/reflect/protoreflect" 11 | ) 12 | 13 | type EnumInfo struct { 14 | GoReflectType reflect.Type // int32 kind 15 | Desc pref.EnumDescriptor 16 | } 17 | 18 | func (t *EnumInfo) New(n pref.EnumNumber) pref.Enum { 19 | return reflect.ValueOf(n).Convert(t.GoReflectType).Interface().(pref.Enum) 20 | } 21 | func (t *EnumInfo) Descriptor() pref.EnumDescriptor { return t.Desc } 22 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/strs/strings_pure.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 purego appengine 6 | 7 | package strs 8 | 9 | import pref "google.golang.org/protobuf/reflect/protoreflect" 10 | 11 | func UnsafeString(b []byte) string { 12 | return string(b) 13 | } 14 | 15 | func UnsafeBytes(s string) []byte { 16 | return []byte(s) 17 | } 18 | 19 | type Builder struct{} 20 | 21 | func (*Builder) AppendFullName(prefix pref.FullName, name pref.Name) pref.FullName { 22 | return prefix.Append(name) 23 | } 24 | 25 | func (*Builder) MakeString(b []byte) string { 26 | return string(b) 27 | } 28 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/proto/proto_methods.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 | // The protoreflect build tag disables use of fast-path methods. 6 | // +build !protoreflect 7 | 8 | package proto 9 | 10 | import ( 11 | "google.golang.org/protobuf/reflect/protoreflect" 12 | "google.golang.org/protobuf/runtime/protoiface" 13 | ) 14 | 15 | const hasProtoMethods = true 16 | 17 | func protoMethods(m protoreflect.Message) *protoiface.Methods { 18 | return m.ProtoMethods() 19 | } 20 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/proto/proto_reflect.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 | // The protoreflect build tag disables use of fast-path methods. 6 | // +build protoreflect 7 | 8 | package proto 9 | 10 | import ( 11 | "google.golang.org/protobuf/reflect/protoreflect" 12 | "google.golang.org/protobuf/runtime/protoiface" 13 | ) 14 | 15 | const hasProtoMethods = false 16 | 17 | func protoMethods(m protoreflect.Message) *protoiface.Methods { 18 | return nil 19 | } 20 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/runtime/protoiface/legacy.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 | package protoiface 6 | 7 | type MessageV1 interface { 8 | Reset() 9 | String() string 10 | ProtoMessage() 11 | } 12 | 13 | type ExtensionRangeV1 struct { 14 | Start, End int32 // both inclusive 15 | } 16 | -------------------------------------------------------------------------------- /website/docs/d/network_object.html.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: "ciscoasa" 3 | page_title: "Cisco ASA: ciscoasa_network_object" 4 | sidebar_current: "docs-ciscoasa-datasource-network-object" 5 | description: |- 6 | Provides a Cisco ASA Network Object Data Source. 7 | --- 8 | 9 | # ciscoasa_network_object 10 | 11 | Provides a Cisco ASA Network Object Data Source. 12 | 13 | ## Example Usage 14 | 15 | ```hcl 16 | data "ciscoasa_network_object" "obj_ipv4subnet" { 17 | name = "test_ipv4subnet" 18 | } 19 | ``` 20 | 21 | ## Argument Reference 22 | 23 | The following argument is required: 24 | 25 | * `name` - The name of the object 26 | 27 | ## Attributes Exported 28 | 29 | The following attributes are exported: 30 | 31 | * `name` - The name of the object 32 | * `value` - The value representing the object 33 | -------------------------------------------------------------------------------- /website/docs/d/network_objects.html.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: "ciscoasa" 3 | page_title: "Cisco ASA: ciscoasa_network_objects" 4 | sidebar_current: "docs-ciscoasa-datasource-network-objects" 5 | description: |- 6 | Provides a Cisco ASA Network Objects Data Source. 7 | --- 8 | 9 | # ciscoasa_network_objects 10 | 11 | Provides a Cisco ASA Network Objects Data Source. 12 | 13 | ## Example Usage 14 | 15 | ```hcl 16 | data "ciscoasa_network_objects" "all" {} 17 | ``` 18 | 19 | ## Attributes Exported 20 | 21 | The following attribute is exported: 22 | 23 | * `network_objects` - The configuration is detailed below 24 | 25 | ### `network_objects` block contains: 26 | 27 | * `name` - The name of the object 28 | * `value` - The value representing the object 29 | -------------------------------------------------------------------------------- /website/docs/d/network_service.html.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: "ciscoasa" 3 | page_title: "Cisco ASA: ciscoasa_network_service" 4 | sidebar_current: "docs-ciscoasa-datasource-network-service" 5 | description: |- 6 | Provides a Cisco ASA Network Service Data Source. 7 | --- 8 | 9 | # ciscoasa_network_service 10 | 11 | Provides a Cisco ASA Network Service Data Source. 12 | 13 | ## Example Usage 14 | 15 | ```hcl 16 | data "ciscoasa_network_service" "tcp-port" { 17 | name = "tcp-port" 18 | } 19 | ``` 20 | 21 | ## Argument Reference 22 | 23 | The following argument is required: 24 | 25 | * `name` - The name of the service 26 | 27 | ## Attributes Exported 28 | 29 | The following attributes are exported: 30 | 31 | * `name` - The name of the service 32 | * `value` - The value representing the service 33 | -------------------------------------------------------------------------------- /website/docs/d/network_services.html.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: "ciscoasa" 3 | page_title: "Cisco ASA: ciscoasa_network_services" 4 | sidebar_current: "docs-ciscoasa-datasource-network-services" 5 | description: |- 6 | Provides a Cisco ASA Network Services Data Source. 7 | --- 8 | 9 | # ciscoasa_network_services 10 | 11 | Provides a Cisco ASA Network Services Data Source. 12 | 13 | ## Example Usage 14 | 15 | ```hcl 16 | data "ciscoasa_network_services" "all" {} 17 | ``` 18 | 19 | ## Attributes Exported 20 | 21 | The following attribute is exported: 22 | 23 | * `network_services` - The configuration is detailed below 24 | 25 | ### `network_services` block contains: 26 | 27 | * `name` - The name of the service 28 | * `value` - The value representing the service 29 | -------------------------------------------------------------------------------- /website/docs/r/backup.html.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: "ciscoasa" 3 | page_title: "Cisco ASA: ciscoasa_backup" 4 | sidebar_current: "docs-ciscoasa-resource-backup" 5 | description: |- 6 | Provides a Cisco ASA Backup Configuration resource. 7 | --- 8 | 9 | # ciscoasa_backup 10 | 11 | Provides a Cisco ASA Backup Configuration resource. 12 | 13 | ## Example Usage 14 | 15 | ```hcl 16 | resource "ciscoasa_backup" "test" { 17 | passphrase = "123456" 18 | location = "disk0:/backup.cfg" 19 | } 20 | ``` 21 | 22 | ## Argument Reference 23 | 24 | The following arguments are supported: 25 | 26 | * `context` - (Optional) Context to backup. 27 | * `location` - (Optional) Path of backup file. Default `""`. 28 | * `passphrase` - (Optional) Passphrase to encrypt certificates and passwords. 29 | -------------------------------------------------------------------------------- /website/docs/r/license_renewauth.html.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: "ciscoasa" 3 | page_title: "Cisco ASA: ciscoasa_license_renewauth" 4 | sidebar_current: "docs-ciscoasa-resource-license-renewauth" 5 | description: |- 6 | Provides a Cisco ASA Renew the Smart License entitlement resource. 7 | --- 8 | 9 | # ciscoasa_license_renewauth 10 | 11 | Provides a Cisco ASA Renew the Smart License entitlement resource. 12 | 13 | ## Example Usage 14 | 15 | ```hcl 16 | resource "ciscoasa_license_renewauth" "test" {} 17 | ``` 18 | -------------------------------------------------------------------------------- /website/docs/r/license_renewid.html.markdown: -------------------------------------------------------------------------------- 1 | --- 2 | layout: "ciscoasa" 3 | page_title: "Cisco ASA: ciscoasa_license_renewid" 4 | sidebar_current: "docs-ciscoasa-resource-license-renewid" 5 | description: |- 6 | Provides a Cisco ASA Renew the Smart License certificate resource. 7 | --- 8 | 9 | # ciscoasa_license_renewid 10 | 11 | Provides a Cisco ASA Renew the Smart License certificate resource. 12 | 13 | ## Example Usage 14 | 15 | ```hcl 16 | resource "ciscoasa_license_renewid" "test" {} 17 | ``` 18 | --------------------------------------------------------------------------------