├── .github ├── gorelease.yml └── workflows │ └── release.yml ├── .gitignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── docs ├── index.md └── resources │ ├── stripe_card.md │ ├── stripe_coupon.md │ ├── stripe_customer.md │ ├── stripe_entitlements_feature.md │ ├── stripe_file.md │ ├── stripe_meter.md │ ├── stripe_portal_configuration.md │ ├── stripe_price.md │ ├── stripe_product.md │ ├── stripe_product_feature.md │ ├── stripe_promotion_code.md │ ├── stripe_shipping_rate.md │ ├── stripe_tax_rate.md │ └── stripe_webhook_endpoint.md ├── go.mod ├── go.sum ├── main.go ├── stripe ├── provider.go ├── resource_shipping_rate.go ├── resource_stripe_card.go ├── resource_stripe_coupon.go ├── resource_stripe_customer.go ├── resource_stripe_entitlements_feature.go ├── resource_stripe_file.go ├── resource_stripe_meter.go ├── resource_stripe_portal_configuration.go ├── resource_stripe_price.go ├── resource_stripe_product.go ├── resource_stripe_product_feature.go ├── resource_stripe_promotion_code.go ├── resource_stripe_tax_rate.go ├── resource_stripe_webhook_endpoint.go └── utils.go └── vendor ├── github.com ├── agext │ └── levenshtein │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── DCO │ │ ├── LICENSE │ │ ├── MAINTAINERS │ │ ├── NOTICE │ │ ├── README.md │ │ ├── levenshtein.go │ │ ├── params.go │ │ └── test.sh ├── apparentlymart │ └── go-textseg │ │ └── v15 │ │ ├── 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 ├── fatih │ └── color │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── color.go │ │ ├── color_windows.go │ │ └── doc.go ├── golang │ └── protobuf │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── 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 │ │ └── ptypes │ │ └── empty │ │ └── empty.pb.go ├── google │ └── go-cmp │ │ ├── LICENSE │ │ └── cmp │ │ ├── compare.go │ │ ├── export.go │ │ ├── internal │ │ ├── diff │ │ │ ├── debug_disable.go │ │ │ ├── debug_enable.go │ │ │ └── diff.go │ │ ├── flags │ │ │ └── flags.go │ │ ├── function │ │ │ └── func.go │ │ └── value │ │ │ ├── name.go │ │ │ ├── pointer.go │ │ │ └── sort.go │ │ ├── options.go │ │ ├── path.go │ │ ├── report.go │ │ ├── report_compare.go │ │ ├── report_references.go │ │ ├── report_reflect.go │ │ ├── report_slices.go │ │ ├── report_text.go │ │ └── report_value.go ├── hashicorp │ ├── 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-hclog │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── colorize_unix.go │ │ ├── colorize_windows.go │ │ ├── context.go │ │ ├── exclude.go │ │ ├── global.go │ │ ├── interceptlogger.go │ │ ├── intlogger.go │ │ ├── logger.go │ │ ├── nulllogger.go │ │ ├── stacktrace.go │ │ ├── stdlog.go │ │ └── writer.go │ ├── go-plugin │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── buf.gen.yaml │ │ ├── buf.yaml │ │ ├── client.go │ │ ├── constants.go │ │ ├── discover.go │ │ ├── error.go │ │ ├── grpc_broker.go │ │ ├── grpc_client.go │ │ ├── grpc_controller.go │ │ ├── grpc_server.go │ │ ├── grpc_stdio.go │ │ ├── internal │ │ │ ├── cmdrunner │ │ │ │ ├── addr_translator.go │ │ │ │ ├── cmd_reattach.go │ │ │ │ ├── cmd_runner.go │ │ │ │ ├── notes_unix.go │ │ │ │ ├── notes_windows.go │ │ │ │ ├── process.go │ │ │ │ ├── process_posix.go │ │ │ │ └── process_windows.go │ │ │ ├── grpcmux │ │ │ │ ├── blocked_client_listener.go │ │ │ │ ├── blocked_server_listener.go │ │ │ │ ├── grpc_client_muxer.go │ │ │ │ ├── grpc_muxer.go │ │ │ │ └── grpc_server_muxer.go │ │ │ └── plugin │ │ │ │ ├── grpc_broker.pb.go │ │ │ │ ├── grpc_broker.proto │ │ │ │ ├── grpc_broker_grpc.pb.go │ │ │ │ ├── grpc_controller.pb.go │ │ │ │ ├── grpc_controller.proto │ │ │ │ ├── grpc_controller_grpc.pb.go │ │ │ │ ├── grpc_stdio.pb.go │ │ │ │ ├── grpc_stdio.proto │ │ │ │ └── grpc_stdio_grpc.pb.go │ │ ├── log_entry.go │ │ ├── mtls.go │ │ ├── mux_broker.go │ │ ├── plugin.go │ │ ├── process.go │ │ ├── protocol.go │ │ ├── rpc_client.go │ │ ├── rpc_server.go │ │ ├── runner │ │ │ └── runner.go │ │ ├── server.go │ │ ├── server_mux.go │ │ ├── stream.go │ │ └── testing.go │ ├── go-uuid │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ └── uuid.go │ ├── go-version │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── constraint.go │ │ ├── version.go │ │ └── version_collection.go │ ├── hcl │ │ └── v2 │ │ │ ├── .copywrite.hcl │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── diagnostic.go │ │ │ ├── diagnostic_text.go │ │ │ ├── diagnostic_typeparams.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 │ │ │ ├── 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 │ │ │ ├── tools.go │ │ │ ├── traversal.go │ │ │ └── traversal_for_expr.go │ ├── logutils │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ └── level.go │ ├── terraform-plugin-go │ │ ├── LICENSE │ │ ├── internal │ │ │ └── logging │ │ │ │ ├── context.go │ │ │ │ ├── doc.go │ │ │ │ ├── environment_variables.go │ │ │ │ ├── keys.go │ │ │ │ ├── protocol.go │ │ │ │ ├── protocol_data.go │ │ │ │ └── provider.go │ │ ├── tfprotov5 │ │ │ ├── client_capabilities.go │ │ │ ├── data_source.go │ │ │ ├── deferred.go │ │ │ ├── diagnostic.go │ │ │ ├── doc.go │ │ │ ├── dynamic_value.go │ │ │ ├── function.go │ │ │ ├── function_error.go │ │ │ ├── internal │ │ │ │ ├── diag │ │ │ │ │ ├── diagnostics.go │ │ │ │ │ └── doc.go │ │ │ │ ├── fromproto │ │ │ │ │ ├── client_capabilities.go │ │ │ │ │ ├── data_source.go │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── dynamic_value.go │ │ │ │ │ ├── function.go │ │ │ │ │ ├── provider.go │ │ │ │ │ ├── raw_state.go │ │ │ │ │ └── resource.go │ │ │ │ ├── funcerr │ │ │ │ │ ├── doc.go │ │ │ │ │ └── function_error.go │ │ │ │ ├── tf5serverlogging │ │ │ │ │ ├── client_capabilities.go │ │ │ │ │ ├── context_keys.go │ │ │ │ │ ├── deferred.go │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── downstream_request.go │ │ │ │ │ └── server_capabilities.go │ │ │ │ ├── tfplugin5 │ │ │ │ │ ├── tfplugin5.pb.go │ │ │ │ │ ├── tfplugin5.proto │ │ │ │ │ └── tfplugin5_grpc.pb.go │ │ │ │ └── toproto │ │ │ │ │ ├── attribute_path.go │ │ │ │ │ ├── data_source.go │ │ │ │ │ ├── deferred.go │ │ │ │ │ ├── diagnostic.go │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── dynamic_value.go │ │ │ │ │ ├── function.go │ │ │ │ │ ├── function_error.go │ │ │ │ │ ├── provider.go │ │ │ │ │ ├── resource.go │ │ │ │ │ ├── schema.go │ │ │ │ │ ├── server_capabilities.go │ │ │ │ │ └── string_kind.go │ │ │ ├── provider.go │ │ │ ├── resource.go │ │ │ ├── schema.go │ │ │ ├── server_capabilities.go │ │ │ ├── state.go │ │ │ ├── string_kind.go │ │ │ └── tf5server │ │ │ │ ├── doc.go │ │ │ │ ├── plugin.go │ │ │ │ └── server.go │ │ ├── tfprotov6 │ │ │ ├── client_capabilities.go │ │ │ ├── data_source.go │ │ │ ├── deferred.go │ │ │ ├── diagnostic.go │ │ │ ├── doc.go │ │ │ ├── dynamic_value.go │ │ │ ├── function.go │ │ │ ├── function_error.go │ │ │ ├── internal │ │ │ │ ├── diag │ │ │ │ │ ├── diagnostics.go │ │ │ │ │ └── doc.go │ │ │ │ ├── fromproto │ │ │ │ │ ├── client_capabilities.go │ │ │ │ │ ├── data_source.go │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── dynamic_value.go │ │ │ │ │ ├── function.go │ │ │ │ │ ├── provider.go │ │ │ │ │ ├── raw_state.go │ │ │ │ │ └── resource.go │ │ │ │ ├── funcerr │ │ │ │ │ ├── doc.go │ │ │ │ │ └── function_error.go │ │ │ │ ├── tf6serverlogging │ │ │ │ │ ├── client_capabilities.go │ │ │ │ │ ├── context_keys.go │ │ │ │ │ ├── deferred.go │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── downstream_request.go │ │ │ │ │ └── server_capabilities.go │ │ │ │ ├── tfplugin6 │ │ │ │ │ ├── tfplugin6.pb.go │ │ │ │ │ ├── tfplugin6.proto │ │ │ │ │ └── tfplugin6_grpc.pb.go │ │ │ │ └── toproto │ │ │ │ │ ├── attribute_path.go │ │ │ │ │ ├── data_source.go │ │ │ │ │ ├── deferred.go │ │ │ │ │ ├── diagnostic.go │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── dynamic_value.go │ │ │ │ │ ├── function.go │ │ │ │ │ ├── function_error.go │ │ │ │ │ ├── provider.go │ │ │ │ │ ├── resource.go │ │ │ │ │ ├── schema.go │ │ │ │ │ ├── server_capabilities.go │ │ │ │ │ └── string_kind.go │ │ │ ├── provider.go │ │ │ ├── resource.go │ │ │ ├── schema.go │ │ │ ├── server_capabilities.go │ │ │ ├── state.go │ │ │ ├── string_kind.go │ │ │ └── tf6server │ │ │ │ ├── doc.go │ │ │ │ ├── plugin.go │ │ │ │ └── server.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_equal.go │ │ │ ├── value_json.go │ │ │ ├── value_msgpack.go │ │ │ ├── value_walk.go │ │ │ └── walk.go │ ├── terraform-plugin-log │ │ ├── LICENSE │ │ ├── internal │ │ │ ├── fieldutils │ │ │ │ └── field_maps.go │ │ │ ├── hclogutils │ │ │ │ ├── args.go │ │ │ │ └── logger_options.go │ │ │ └── logging │ │ │ │ ├── filtering.go │ │ │ │ ├── log.go │ │ │ │ ├── options.go │ │ │ │ ├── provider.go │ │ │ │ ├── sdk.go │ │ │ │ └── sink.go │ │ ├── tflog │ │ │ ├── doc.go │ │ │ ├── options.go │ │ │ ├── provider.go │ │ │ └── subsystem.go │ │ └── tfsdklog │ │ │ ├── doc.go │ │ │ ├── levels.go │ │ │ ├── options.go │ │ │ ├── sdk.go │ │ │ ├── sink.go │ │ │ └── subsystem.go │ ├── terraform-plugin-sdk │ │ └── v2 │ │ │ ├── LICENSE │ │ │ ├── diag │ │ │ ├── diagnostic.go │ │ │ └── helpers.go │ │ │ ├── helper │ │ │ ├── logging │ │ │ │ ├── logging.go │ │ │ │ ├── logging_http_transport.go │ │ │ │ └── transport.go │ │ │ └── schema │ │ │ │ ├── README.md │ │ │ │ ├── context.go │ │ │ │ ├── core_schema.go │ │ │ │ ├── data_source_resource_shim.go │ │ │ │ ├── deferred.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 │ │ │ ├── internal │ │ │ ├── addrs │ │ │ │ ├── doc.go │ │ │ │ ├── instance_key.go │ │ │ │ ├── module.go │ │ │ │ └── module_instance.go │ │ │ ├── configs │ │ │ │ ├── configschema │ │ │ │ │ ├── coerce_value.go │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── empty_value.go │ │ │ │ │ ├── implied_type.go │ │ │ │ │ ├── nestingmode_string.go │ │ │ │ │ └── schema.go │ │ │ │ └── hcl2shim │ │ │ │ │ ├── flatmap.go │ │ │ │ │ ├── paths.go │ │ │ │ │ ├── values.go │ │ │ │ │ └── values_equiv.go │ │ │ ├── helper │ │ │ │ └── hashcode │ │ │ │ │ └── hashcode.go │ │ │ ├── logging │ │ │ │ ├── context.go │ │ │ │ ├── environment_variables.go │ │ │ │ ├── helper_resource.go │ │ │ │ ├── helper_schema.go │ │ │ │ └── keys.go │ │ │ ├── plans │ │ │ │ └── objchange │ │ │ │ │ └── normalize_obj.go │ │ │ ├── plugin │ │ │ │ └── convert │ │ │ │ │ ├── diagnostics.go │ │ │ │ │ └── schema.go │ │ │ └── tfdiags │ │ │ │ ├── config_traversals.go │ │ │ │ ├── contextual.go │ │ │ │ ├── diagnostic.go │ │ │ │ ├── diagnostic_base.go │ │ │ │ ├── diagnostics.go │ │ │ │ ├── doc.go │ │ │ │ ├── error.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 │ ├── terraform-registry-address │ │ ├── .copywrite.hcl │ │ ├── .go-version │ │ ├── LICENSE │ │ ├── README.md │ │ ├── errors.go │ │ ├── module.go │ │ ├── module_package.go │ │ └── provider.go │ ├── terraform-svchost │ │ ├── CHANGELOG.md │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── label_iter.go │ │ └── svchost.go │ └── yamux │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── addr.go │ │ ├── const.go │ │ ├── mux.go │ │ ├── session.go │ │ ├── spec.md │ │ ├── stream.go │ │ └── util.go ├── mattn │ ├── go-colorable │ │ ├── LICENSE │ │ ├── README.md │ │ ├── colorable_appengine.go │ │ ├── colorable_others.go │ │ ├── colorable_windows.go │ │ ├── go.test.sh │ │ └── noncolorable.go │ └── go-isatty │ │ ├── LICENSE │ │ ├── README.md │ │ ├── doc.go │ │ ├── go.test.sh │ │ ├── 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-testing-interface │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ └── testing.go │ ├── go-wordwrap │ │ ├── LICENSE.md │ │ ├── README.md │ │ └── wordwrap.go │ ├── mapstructure │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── decode_hooks.go │ │ ├── error.go │ │ └── mapstructure.go │ └── reflectwalk │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── location.go │ │ ├── location_string.go │ │ └── reflectwalk.go ├── oklog │ └── run │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── actors.go │ │ └── group.go ├── stripe │ └── stripe-go │ │ └── v78 │ │ ├── .gitignore │ │ ├── CHANGELOG │ │ ├── CHANGELOG.md │ │ ├── CODE_OF_CONDUCT.md │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── OPENAPI_VERSION │ │ ├── README.md │ │ ├── VERSION │ │ ├── account.go │ │ ├── account │ │ └── client.go │ │ ├── accountlink.go │ │ ├── accountlink │ │ └── client.go │ │ ├── accountsession.go │ │ ├── accountsession │ │ └── client.go │ │ ├── address.go │ │ ├── api_version.go │ │ ├── applepaydomain.go │ │ ├── applepaydomain │ │ └── client.go │ │ ├── application.go │ │ ├── applicationfee.go │ │ ├── applicationfee │ │ └── client.go │ │ ├── apps │ │ └── secret │ │ │ └── client.go │ │ ├── apps_secret.go │ │ ├── balance.go │ │ ├── balance │ │ └── client.go │ │ ├── balancetransaction.go │ │ ├── balancetransaction │ │ └── client.go │ │ ├── bankaccount.go │ │ ├── bankaccount │ │ └── client.go │ │ ├── billing │ │ ├── meter │ │ │ └── client.go │ │ ├── meterevent │ │ │ └── client.go │ │ ├── metereventadjustment │ │ │ └── client.go │ │ └── metereventsummary │ │ │ └── client.go │ │ ├── billing_meter.go │ │ ├── billing_meterevent.go │ │ ├── billing_metereventadjustment.go │ │ ├── billing_metereventsummary.go │ │ ├── billingportal │ │ ├── configuration │ │ │ └── client.go │ │ └── session │ │ │ └── client.go │ │ ├── billingportal_configuration.go │ │ ├── billingportal_session.go │ │ ├── capability.go │ │ ├── capability │ │ └── client.go │ │ ├── card.go │ │ ├── card │ │ └── client.go │ │ ├── cashbalance.go │ │ ├── cashbalance │ │ └── client.go │ │ ├── charge.go │ │ ├── charge │ │ └── client.go │ │ ├── checkout │ │ └── session │ │ │ └── client.go │ │ ├── checkout_session.go │ │ ├── client │ │ └── api.go │ │ ├── climate │ │ ├── order │ │ │ └── client.go │ │ ├── product │ │ │ └── client.go │ │ └── supplier │ │ │ └── client.go │ │ ├── climate_order.go │ │ ├── climate_product.go │ │ ├── climate_supplier.go │ │ ├── confirmationtoken.go │ │ ├── confirmationtoken │ │ └── client.go │ │ ├── connectcollectiontransfer.go │ │ ├── countryspec.go │ │ ├── countryspec │ │ └── client.go │ │ ├── coupon.go │ │ ├── coupon │ │ └── client.go │ │ ├── creditnote.go │ │ ├── creditnote │ │ └── client.go │ │ ├── creditnotelineitem.go │ │ ├── currency.go │ │ ├── customer.go │ │ ├── customer │ │ └── client.go │ │ ├── customerbalancetransaction.go │ │ ├── customerbalancetransaction │ │ └── client.go │ │ ├── customercashbalancetransaction.go │ │ ├── customercashbalancetransaction │ │ └── client.go │ │ ├── customersession.go │ │ ├── customersession │ │ └── client.go │ │ ├── discount.go │ │ ├── dispute.go │ │ ├── dispute │ │ └── client.go │ │ ├── entitlements │ │ ├── activeentitlement │ │ │ └── client.go │ │ └── feature │ │ │ └── client.go │ │ ├── entitlements_activeentitlement.go │ │ ├── entitlements_activeentitlementsummary.go │ │ ├── entitlements_feature.go │ │ ├── ephemeralkey.go │ │ ├── ephemeralkey │ │ └── client.go │ │ ├── error.go │ │ ├── event.go │ │ ├── event │ │ └── client.go │ │ ├── feerefund.go │ │ ├── feerefund │ │ └── client.go │ │ ├── file.go │ │ ├── file │ │ ├── client.go │ │ └── test_data.pdf │ │ ├── filelink.go │ │ ├── filelink │ │ └── client.go │ │ ├── financialconnections │ │ ├── account │ │ │ └── client.go │ │ ├── session │ │ │ └── client.go │ │ └── transaction │ │ │ └── client.go │ │ ├── financialconnections_account.go │ │ ├── financialconnections_accountowner.go │ │ ├── financialconnections_accountownership.go │ │ ├── financialconnections_session.go │ │ ├── financialconnections_transaction.go │ │ ├── form │ │ └── form.go │ │ ├── forwarding │ │ └── request │ │ │ └── client.go │ │ ├── forwarding_request.go │ │ ├── fundinginstructions.go │ │ ├── identity │ │ ├── verificationreport │ │ │ └── client.go │ │ └── verificationsession │ │ │ └── client.go │ │ ├── identity_verificationreport.go │ │ ├── identity_verificationsession.go │ │ ├── invoice.go │ │ ├── invoice │ │ └── client.go │ │ ├── invoiceitem.go │ │ ├── invoiceitem │ │ └── client.go │ │ ├── invoicelineitem.go │ │ ├── invoicelineitem │ │ └── client.go │ │ ├── issuing │ │ ├── authorization │ │ │ └── client.go │ │ ├── card │ │ │ └── client.go │ │ ├── cardholder │ │ │ └── client.go │ │ ├── dispute │ │ │ └── client.go │ │ ├── personalizationdesign │ │ │ └── client.go │ │ ├── physicalbundle │ │ │ └── client.go │ │ ├── token │ │ │ └── client.go │ │ └── transaction │ │ │ └── client.go │ │ ├── issuing_authorization.go │ │ ├── issuing_card.go │ │ ├── issuing_cardholder.go │ │ ├── issuing_dispute.go │ │ ├── issuing_personalizationdesign.go │ │ ├── issuing_physicalbundle.go │ │ ├── issuing_token.go │ │ ├── issuing_transaction.go │ │ ├── iter.go │ │ ├── lineitem.go │ │ ├── log.go │ │ ├── loginlink.go │ │ ├── loginlink │ │ └── client.go │ │ ├── mandate.go │ │ ├── mandate │ │ └── client.go │ │ ├── oauth.go │ │ ├── oauth │ │ └── client.go │ │ ├── params.go │ │ ├── paymentintent.go │ │ ├── paymentintent │ │ └── client.go │ │ ├── paymentlink.go │ │ ├── paymentlink │ │ └── client.go │ │ ├── paymentmethod.go │ │ ├── paymentmethod │ │ └── client.go │ │ ├── paymentmethodconfiguration.go │ │ ├── paymentmethodconfiguration │ │ └── client.go │ │ ├── paymentmethoddomain.go │ │ ├── paymentmethoddomain │ │ └── client.go │ │ ├── paymentsource.go │ │ ├── paymentsource │ │ └── client.go │ │ ├── payout.go │ │ ├── payout │ │ └── client.go │ │ ├── person.go │ │ ├── person │ │ └── client.go │ │ ├── plan.go │ │ ├── plan │ │ └── client.go │ │ ├── platformtaxfee.go │ │ ├── price.go │ │ ├── price │ │ └── client.go │ │ ├── product.go │ │ ├── product │ │ └── client.go │ │ ├── productfeature.go │ │ ├── productfeature │ │ └── client.go │ │ ├── promotioncode.go │ │ ├── promotioncode │ │ └── client.go │ │ ├── quote.go │ │ ├── quote │ │ └── client.go │ │ ├── radar │ │ ├── earlyfraudwarning │ │ │ └── client.go │ │ ├── valuelist │ │ │ └── client.go │ │ └── valuelistitem │ │ │ └── client.go │ │ ├── radar_earlyfraudwarning.go │ │ ├── radar_valuelist.go │ │ ├── radar_valuelistitem.go │ │ ├── refund.go │ │ ├── refund │ │ └── client.go │ │ ├── reporting │ │ ├── reportrun │ │ │ └── client.go │ │ └── reporttype │ │ │ └── client.go │ │ ├── reporting_reportrun.go │ │ ├── reporting_reporttype.go │ │ ├── reservetransaction.go │ │ ├── review.go │ │ ├── review │ │ └── client.go │ │ ├── search_iter.go │ │ ├── search_params.go │ │ ├── setupattempt.go │ │ ├── setupattempt │ │ └── client.go │ │ ├── setupintent.go │ │ ├── setupintent │ │ └── client.go │ │ ├── shippingrate.go │ │ ├── shippingrate │ │ └── client.go │ │ ├── sigma │ │ └── scheduledqueryrun │ │ │ └── client.go │ │ ├── sigma_scheduledqueryrun.go │ │ ├── source.go │ │ ├── source │ │ └── client.go │ │ ├── sourcetransaction.go │ │ ├── sourcetransaction │ │ └── client.go │ │ ├── staticcheck.conf │ │ ├── stripe.go │ │ ├── stripe_go115.go │ │ ├── subscription.go │ │ ├── subscription │ │ └── client.go │ │ ├── subscriptionitem.go │ │ ├── subscriptionitem │ │ └── client.go │ │ ├── subscriptionschedule.go │ │ ├── subscriptionschedule │ │ └── client.go │ │ ├── tax │ │ ├── calculation │ │ │ └── client.go │ │ ├── registration │ │ │ └── client.go │ │ ├── settings │ │ │ └── client.go │ │ └── transaction │ │ │ └── client.go │ │ ├── tax_calculation.go │ │ ├── tax_calculationlineitem.go │ │ ├── tax_registration.go │ │ ├── tax_settings.go │ │ ├── tax_transaction.go │ │ ├── tax_transactionlineitem.go │ │ ├── taxcode.go │ │ ├── taxcode │ │ └── client.go │ │ ├── taxdeductedatsource.go │ │ ├── taxid.go │ │ ├── taxid │ │ └── client.go │ │ ├── taxrate.go │ │ ├── taxrate │ │ └── client.go │ │ ├── terminal │ │ ├── configuration │ │ │ └── client.go │ │ ├── connectiontoken │ │ │ └── client.go │ │ ├── location │ │ │ └── client.go │ │ └── reader │ │ │ └── client.go │ │ ├── terminal_configuration.go │ │ ├── terminal_connectiontoken.go │ │ ├── terminal_location.go │ │ ├── terminal_reader.go │ │ ├── testhelpers │ │ ├── confirmationtoken │ │ │ └── client.go │ │ ├── customer │ │ │ └── client.go │ │ ├── issuing │ │ │ ├── authorization │ │ │ │ └── client.go │ │ │ ├── card │ │ │ │ └── client.go │ │ │ ├── personalizationdesign │ │ │ │ └── client.go │ │ │ └── transaction │ │ │ │ └── client.go │ │ ├── refund │ │ │ └── client.go │ │ ├── terminal │ │ │ └── reader │ │ │ │ └── client.go │ │ ├── testclock │ │ │ └── client.go │ │ └── treasury │ │ │ ├── inboundtransfer │ │ │ └── client.go │ │ │ ├── outboundpayment │ │ │ └── client.go │ │ │ ├── outboundtransfer │ │ │ └── client.go │ │ │ ├── receivedcredit │ │ │ └── client.go │ │ │ └── receiveddebit │ │ │ └── client.go │ │ ├── testhelpers_confirmationtoken.go │ │ ├── testhelpers_customer.go │ │ ├── testhelpers_refund.go │ │ ├── testhelpers_testclock.go │ │ ├── testhelpersissuing_authorization.go │ │ ├── testhelpersissuing_card.go │ │ ├── testhelpersissuing_personalizationdesign.go │ │ ├── testhelpersissuing_transaction.go │ │ ├── testhelpersterminal_reader.go │ │ ├── testhelperstreasury_inboundtransfer.go │ │ ├── testhelperstreasury_outboundpayment.go │ │ ├── testhelperstreasury_outboundtransfer.go │ │ ├── testhelperstreasury_receivedcredit.go │ │ ├── testhelperstreasury_receiveddebit.go │ │ ├── token.go │ │ ├── token │ │ └── client.go │ │ ├── topup.go │ │ ├── topup │ │ └── client.go │ │ ├── transfer.go │ │ ├── transfer │ │ └── client.go │ │ ├── transferreversal.go │ │ ├── transferreversal │ │ └── client.go │ │ ├── treasury │ │ ├── creditreversal │ │ │ └── client.go │ │ ├── debitreversal │ │ │ └── client.go │ │ ├── financialaccount │ │ │ └── client.go │ │ ├── inboundtransfer │ │ │ └── client.go │ │ ├── outboundpayment │ │ │ └── client.go │ │ ├── outboundtransfer │ │ │ └── client.go │ │ ├── receivedcredit │ │ │ └── client.go │ │ ├── receiveddebit │ │ │ └── client.go │ │ ├── transaction │ │ │ └── client.go │ │ └── transactionentry │ │ │ └── client.go │ │ ├── treasury_creditreversal.go │ │ ├── treasury_debitreversal.go │ │ ├── treasury_financialaccount.go │ │ ├── treasury_financialaccountfeatures.go │ │ ├── treasury_inboundtransfer.go │ │ ├── treasury_outboundpayment.go │ │ ├── treasury_outboundtransfer.go │ │ ├── treasury_receivedcredit.go │ │ ├── treasury_receiveddebit.go │ │ ├── treasury_transaction.go │ │ ├── treasury_transactionentry.go │ │ ├── usagerecord.go │ │ ├── usagerecord │ │ └── client.go │ │ ├── usagerecordsummary.go │ │ ├── usagerecordsummary │ │ └── client.go │ │ ├── v32_migration_guide.md │ │ ├── webhookendpoint.go │ │ └── webhookendpoint │ │ └── client.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 │ │ └── v5 │ │ │ ├── .prettierrc │ │ │ ├── .travis.yml │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── commitlint.config.js │ │ │ ├── decode.go │ │ │ ├── decode_map.go │ │ │ ├── decode_number.go │ │ │ ├── decode_query.go │ │ │ ├── decode_slice.go │ │ │ ├── decode_string.go │ │ │ ├── decode_typgen.go │ │ │ ├── decode_value.go │ │ │ ├── encode.go │ │ │ ├── encode_map.go │ │ │ ├── encode_number.go │ │ │ ├── encode_slice.go │ │ │ ├── encode_value.go │ │ │ ├── ext.go │ │ │ ├── intern.go │ │ │ ├── msgpack.go │ │ │ ├── msgpcode │ │ │ └── msgpcode.go │ │ │ ├── package.json │ │ │ ├── safe.go │ │ │ ├── time.go │ │ │ ├── types.go │ │ │ ├── unsafe.go │ │ │ └── version.go │ └── tagparser │ │ └── v2 │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── internal │ │ ├── parser │ │ │ └── parser.go │ │ ├── safe.go │ │ └── unsafe.go │ │ └── tagparser.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 │ ├── ctystrings │ ├── doc.go │ ├── normalize.go │ └── prefix.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 │ │ ├── datetime_rfc3339.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 │ ├── 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 │ ├── 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 │ ├── unknown.go │ ├── unknown_as_null.go │ ├── unknown_refinement.go │ ├── value.go │ ├── value_init.go │ ├── value_ops.go │ ├── value_range.go │ └── walk.go ├── golang.org └── x │ ├── mod │ ├── LICENSE │ ├── PATENTS │ └── semver │ │ └── semver.go │ ├── net │ ├── LICENSE │ ├── PATENTS │ ├── http │ │ └── httpguts │ │ │ ├── guts.go │ │ │ └── httplex.go │ ├── http2 │ │ ├── .gitignore │ │ ├── ascii.go │ │ ├── ciphers.go │ │ ├── client_conn_pool.go │ │ ├── config.go │ │ ├── config_go124.go │ │ ├── config_pre_go124.go │ │ ├── databuffer.go │ │ ├── errors.go │ │ ├── flow.go │ │ ├── frame.go │ │ ├── gotrack.go │ │ ├── headermap.go │ │ ├── hpack │ │ │ ├── encode.go │ │ │ ├── hpack.go │ │ │ ├── huffman.go │ │ │ ├── static_table.go │ │ │ └── tables.go │ │ ├── http2.go │ │ ├── pipe.go │ │ ├── server.go │ │ ├── timer.go │ │ ├── transport.go │ │ ├── write.go │ │ ├── writesched.go │ │ ├── writesched_priority.go │ │ ├── writesched_random.go │ │ └── writesched_roundrobin.go │ ├── idna │ │ ├── go118.go │ │ ├── idna10.0.0.go │ │ ├── idna9.0.0.go │ │ ├── pre_go118.go │ │ ├── punycode.go │ │ ├── tables10.0.0.go │ │ ├── tables11.0.0.go │ │ ├── tables12.0.0.go │ │ ├── tables13.0.0.go │ │ ├── tables15.0.0.go │ │ ├── tables9.0.0.go │ │ ├── trie.go │ │ ├── trie12.0.0.go │ │ ├── trie13.0.0.go │ │ └── trieval.go │ ├── internal │ │ └── timeseries │ │ │ └── timeseries.go │ └── trace │ │ ├── events.go │ │ ├── histogram.go │ │ └── trace.go │ ├── sync │ ├── LICENSE │ ├── PATENTS │ └── errgroup │ │ ├── errgroup.go │ │ ├── go120.go │ │ └── pre_go120.go │ ├── sys │ ├── LICENSE │ ├── PATENTS │ ├── 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_bsd_ppc64.s │ │ ├── asm_bsd_riscv64.s │ │ ├── asm_linux_386.s │ │ ├── asm_linux_amd64.s │ │ ├── asm_linux_arm.s │ │ ├── asm_linux_arm64.s │ │ ├── asm_linux_loong64.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 │ │ ├── bpxsvc_zos.go │ │ ├── bpxsvc_zos.s │ │ ├── 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 │ │ ├── fcntl.go │ │ ├── fcntl_darwin.go │ │ ├── fcntl_linux_32bit.go │ │ ├── fdset.go │ │ ├── gccgo.go │ │ ├── gccgo_c.c │ │ ├── gccgo_linux_amd64.go │ │ ├── ifreq_linux.go │ │ ├── ioctl_linux.go │ │ ├── ioctl_signed.go │ │ ├── ioctl_unsigned.go │ │ ├── ioctl_zos.go │ │ ├── mkall.sh │ │ ├── mkerrors.sh │ │ ├── mmap_nomremap.go │ │ ├── mremap.go │ │ ├── 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 │ │ ├── sockcmsg_zos.go │ │ ├── symaddr_zos_s390x.s │ │ ├── syscall.go │ │ ├── syscall_aix.go │ │ ├── syscall_aix_ppc.go │ │ ├── syscall_aix_ppc64.go │ │ ├── syscall_bsd.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_freebsd_riscv64.go │ │ ├── syscall_hurd.go │ │ ├── syscall_hurd_386.go │ │ ├── syscall_illumos.go │ │ ├── syscall_linux.go │ │ ├── syscall_linux_386.go │ │ ├── syscall_linux_alarm.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_loong64.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_libc.go │ │ ├── syscall_openbsd_mips64.go │ │ ├── syscall_openbsd_ppc64.go │ │ ├── syscall_openbsd_riscv64.go │ │ ├── syscall_solaris.go │ │ ├── syscall_solaris_amd64.go │ │ ├── syscall_unix.go │ │ ├── syscall_unix_gc.go │ │ ├── syscall_unix_gc_ppc64x.go │ │ ├── syscall_zos_s390x.go │ │ ├── sysvshm_linux.go │ │ ├── sysvshm_unix.go │ │ ├── sysvshm_unix_other.go │ │ ├── timestruct.go │ │ ├── unveil_openbsd.go │ │ ├── vgetrandom_linux.go │ │ ├── vgetrandom_unsupported.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_freebsd_riscv64.go │ │ ├── zerrors_linux.go │ │ ├── zerrors_linux_386.go │ │ ├── zerrors_linux_amd64.go │ │ ├── zerrors_linux_arm.go │ │ ├── zerrors_linux_arm64.go │ │ ├── zerrors_linux_loong64.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_openbsd_ppc64.go │ │ ├── zerrors_openbsd_riscv64.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 │ │ ├── zsymaddr_zos_s390x.s │ │ ├── zsyscall_aix_ppc.go │ │ ├── zsyscall_aix_ppc64.go │ │ ├── zsyscall_aix_ppc64_gc.go │ │ ├── zsyscall_aix_ppc64_gccgo.go │ │ ├── zsyscall_darwin_amd64.go │ │ ├── zsyscall_darwin_amd64.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_freebsd_riscv64.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_loong64.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_386.s │ │ ├── zsyscall_openbsd_amd64.go │ │ ├── zsyscall_openbsd_amd64.s │ │ ├── zsyscall_openbsd_arm.go │ │ ├── zsyscall_openbsd_arm.s │ │ ├── zsyscall_openbsd_arm64.go │ │ ├── zsyscall_openbsd_arm64.s │ │ ├── zsyscall_openbsd_mips64.go │ │ ├── zsyscall_openbsd_mips64.s │ │ ├── zsyscall_openbsd_ppc64.go │ │ ├── zsyscall_openbsd_ppc64.s │ │ ├── zsyscall_openbsd_riscv64.go │ │ ├── zsyscall_openbsd_riscv64.s │ │ ├── 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 │ │ ├── zsysctl_openbsd_ppc64.go │ │ ├── zsysctl_openbsd_riscv64.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_freebsd_riscv64.go │ │ ├── zsysnum_linux_386.go │ │ ├── zsysnum_linux_amd64.go │ │ ├── zsysnum_linux_arm.go │ │ ├── zsysnum_linux_arm64.go │ │ ├── zsysnum_linux_loong64.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_openbsd_ppc64.go │ │ ├── zsysnum_openbsd_riscv64.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_freebsd_riscv64.go │ │ ├── ztypes_linux.go │ │ ├── ztypes_linux_386.go │ │ ├── ztypes_linux_amd64.go │ │ ├── ztypes_linux_arm.go │ │ ├── ztypes_linux_arm64.go │ │ ├── ztypes_linux_loong64.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_openbsd_ppc64.go │ │ ├── ztypes_openbsd_riscv64.go │ │ ├── ztypes_solaris_amd64.go │ │ └── ztypes_zos_s390x.go │ └── windows │ │ ├── aliases.go │ │ ├── dll_windows.go │ │ ├── env_windows.go │ │ ├── eventlog.go │ │ ├── exec_windows.go │ │ ├── memory_windows.go │ │ ├── mkerrors.bash │ │ ├── mkknownfolderids.bash │ │ ├── mksyscall.go │ │ ├── race.go │ │ ├── race0.go │ │ ├── security_windows.go │ │ ├── service.go │ │ ├── setupapi_windows.go │ │ ├── str.go │ │ ├── syscall.go │ │ ├── syscall_windows.go │ │ ├── types_windows.go │ │ ├── types_windows_386.go │ │ ├── types_windows_amd64.go │ │ ├── types_windows_arm.go │ │ ├── types_windows_arm64.go │ │ ├── zerrors_windows.go │ │ ├── zknownfolderids_windows.go │ │ └── zsyscall_windows.go │ ├── text │ ├── 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 │ │ ├── tables15.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 │ │ ├── tables15.0.0.go │ │ ├── tables9.0.0.go │ │ ├── transform.go │ │ └── trie.go │ └── tools │ ├── LICENSE │ ├── PATENTS │ ├── go │ ├── gcexportdata │ │ ├── gcexportdata.go │ │ └── importer.go │ ├── packages │ │ ├── doc.go │ │ ├── external.go │ │ ├── golist.go │ │ ├── golist_overlay.go │ │ ├── loadmode_string.go │ │ ├── packages.go │ │ └── visit.go │ └── types │ │ ├── objectpath │ │ └── objectpath.go │ │ └── typeutil │ │ ├── callee.go │ │ ├── imports.go │ │ ├── map.go │ │ ├── methodsetcache.go │ │ └── ui.go │ └── internal │ ├── aliases │ ├── aliases.go │ └── aliases_go122.go │ ├── event │ ├── core │ │ ├── event.go │ │ ├── export.go │ │ └── fast.go │ ├── doc.go │ ├── event.go │ ├── keys │ │ ├── keys.go │ │ ├── standard.go │ │ └── util.go │ └── label │ │ └── label.go │ ├── gcimporter │ ├── bimport.go │ ├── exportdata.go │ ├── gcimporter.go │ ├── iexport.go │ ├── iimport.go │ ├── predeclared.go │ └── ureader_yes.go │ ├── gocommand │ ├── invoke.go │ ├── vendor.go │ └── version.go │ ├── packagesinternal │ └── packages.go │ ├── pkgbits │ ├── codes.go │ ├── decoder.go │ ├── doc.go │ ├── encoder.go │ ├── flags.go │ ├── reloc.go │ ├── support.go │ ├── sync.go │ ├── syncmarker_string.go │ └── version.go │ ├── stdlib │ ├── manifest.go │ └── stdlib.go │ ├── typeparams │ ├── common.go │ ├── coretype.go │ ├── free.go │ ├── normalize.go │ ├── termlist.go │ └── typeterm.go │ ├── typesinternal │ ├── element.go │ ├── errorcode.go │ ├── errorcode_string.go │ ├── recv.go │ ├── toonew.go │ └── types.go │ └── versions │ ├── constraint.go │ ├── constraint_go121.go │ ├── features.go │ ├── gover.go │ ├── types.go │ └── versions.go ├── google.golang.org ├── appengine │ ├── 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 │ ├── 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 │ ├── namespace.go │ └── timeout.go ├── genproto │ └── googleapis │ │ └── rpc │ │ ├── LICENSE │ │ └── status │ │ └── status.pb.go ├── grpc │ ├── AUTHORS │ ├── CODE-OF-CONDUCT.md │ ├── CONTRIBUTING.md │ ├── GOVERNANCE.md │ ├── LICENSE │ ├── MAINTAINERS.md │ ├── Makefile │ ├── NOTICE.txt │ ├── README.md │ ├── SECURITY.md │ ├── attributes │ │ └── attributes.go │ ├── backoff.go │ ├── backoff │ │ └── backoff.go │ ├── balancer │ │ ├── balancer.go │ │ ├── base │ │ │ ├── balancer.go │ │ │ └── base.go │ │ ├── conn_state_evaluator.go │ │ ├── grpclb │ │ │ └── state │ │ │ │ └── state.go │ │ ├── pickfirst │ │ │ └── pickfirst.go │ │ └── roundrobin │ │ │ └── roundrobin.go │ ├── balancer_wrapper.go │ ├── binarylog │ │ └── grpc_binarylog_v1 │ │ │ └── binarylog.pb.go │ ├── call.go │ ├── channelz │ │ └── channelz.go │ ├── clientconn.go │ ├── codec.go │ ├── codes │ │ ├── code_string.go │ │ └── codes.go │ ├── connectivity │ │ └── connectivity.go │ ├── credentials │ │ ├── credentials.go │ │ ├── insecure │ │ │ └── insecure.go │ │ └── tls.go │ ├── dialoptions.go │ ├── doc.go │ ├── encoding │ │ ├── encoding.go │ │ ├── encoding_v2.go │ │ └── proto │ │ │ └── proto.go │ ├── experimental │ │ └── stats │ │ │ ├── metricregistry.go │ │ │ └── metrics.go │ ├── grpclog │ │ ├── component.go │ │ ├── grpclog.go │ │ ├── internal │ │ │ ├── grpclog.go │ │ │ ├── logger.go │ │ │ └── loggerv2.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 │ │ ├── balancer │ │ │ └── gracefulswitch │ │ │ │ ├── config.go │ │ │ │ └── gracefulswitch.go │ │ ├── balancerload │ │ │ └── load.go │ │ ├── binarylog │ │ │ ├── binarylog.go │ │ │ ├── binarylog_testutil.go │ │ │ ├── env_config.go │ │ │ ├── method_logger.go │ │ │ └── sink.go │ │ ├── buffer │ │ │ └── unbounded.go │ │ ├── channelz │ │ │ ├── channel.go │ │ │ ├── channelmap.go │ │ │ ├── funcs.go │ │ │ ├── logging.go │ │ │ ├── server.go │ │ │ ├── socket.go │ │ │ ├── subchannel.go │ │ │ ├── syscall_linux.go │ │ │ ├── syscall_nonlinux.go │ │ │ └── trace.go │ │ ├── credentials │ │ │ ├── credentials.go │ │ │ ├── spiffe.go │ │ │ ├── syscallconn.go │ │ │ └── util.go │ │ ├── envconfig │ │ │ ├── envconfig.go │ │ │ ├── observability.go │ │ │ └── xds.go │ │ ├── experimental.go │ │ ├── grpclog │ │ │ └── prefix_logger.go │ │ ├── grpcsync │ │ │ ├── callback_serializer.go │ │ │ ├── event.go │ │ │ ├── oncefunc.go │ │ │ └── pubsub.go │ │ ├── grpcutil │ │ │ ├── compressor.go │ │ │ ├── encode_duration.go │ │ │ ├── grpcutil.go │ │ │ ├── metadata.go │ │ │ ├── method.go │ │ │ └── regex.go │ │ ├── idle │ │ │ └── idle.go │ │ ├── internal.go │ │ ├── metadata │ │ │ └── metadata.go │ │ ├── pretty │ │ │ └── pretty.go │ │ ├── resolver │ │ │ ├── config_selector.go │ │ │ ├── dns │ │ │ │ ├── dns_resolver.go │ │ │ │ └── internal │ │ │ │ │ └── internal.go │ │ │ ├── passthrough │ │ │ │ └── passthrough.go │ │ │ └── unix │ │ │ │ └── unix.go │ │ ├── serviceconfig │ │ │ ├── duration.go │ │ │ └── serviceconfig.go │ │ ├── stats │ │ │ ├── labels.go │ │ │ └── metrics_recorder_list.go │ │ ├── status │ │ │ └── status.go │ │ ├── syscall │ │ │ ├── syscall_linux.go │ │ │ └── syscall_nonlinux.go │ │ ├── tcp_keepalive_others.go │ │ ├── tcp_keepalive_unix.go │ │ ├── tcp_keepalive_windows.go │ │ └── transport │ │ │ ├── bdp_estimator.go │ │ │ ├── controlbuf.go │ │ │ ├── defaults.go │ │ │ ├── flowcontrol.go │ │ │ ├── handler_server.go │ │ │ ├── http2_client.go │ │ │ ├── http2_server.go │ │ │ ├── http_util.go │ │ │ ├── logging.go │ │ │ ├── networktype │ │ │ └── networktype.go │ │ │ ├── proxy.go │ │ │ └── transport.go │ ├── keepalive │ │ └── keepalive.go │ ├── mem │ │ ├── buffer_pool.go │ │ ├── buffer_slice.go │ │ └── buffers.go │ ├── metadata │ │ └── metadata.go │ ├── peer │ │ └── peer.go │ ├── picker_wrapper.go │ ├── preloader.go │ ├── reflection │ │ ├── README.md │ │ ├── adapt.go │ │ ├── grpc_reflection_v1 │ │ │ ├── reflection.pb.go │ │ │ └── reflection_grpc.pb.go │ │ ├── grpc_reflection_v1alpha │ │ │ ├── reflection.pb.go │ │ │ └── reflection_grpc.pb.go │ │ ├── internal │ │ │ └── internal.go │ │ └── serverreflection.go │ ├── resolver │ │ ├── dns │ │ │ └── dns_resolver.go │ │ ├── map.go │ │ └── resolver.go │ ├── resolver_wrapper.go │ ├── rpc_util.go │ ├── server.go │ ├── service_config.go │ ├── serviceconfig │ │ └── serviceconfig.go │ ├── stats │ │ ├── handlers.go │ │ └── stats.go │ ├── status │ │ └── status.go │ ├── stream.go │ ├── stream_interfaces.go │ ├── tap │ │ └── tap.go │ ├── trace.go │ ├── trace_notrace.go │ ├── trace_withtrace.go │ └── version.go └── protobuf │ ├── LICENSE │ ├── PATENTS │ ├── encoding │ ├── protojson │ │ ├── decode.go │ │ ├── doc.go │ │ ├── encode.go │ │ └── well_known_types.go │ ├── prototext │ │ ├── decode.go │ │ ├── doc.go │ │ └── encode.go │ └── protowire │ │ └── wire.go │ ├── internal │ ├── descfmt │ │ └── stringer.go │ ├── descopts │ │ └── options.go │ ├── detrand │ │ └── rand.go │ ├── editiondefaults │ │ ├── defaults.go │ │ └── editions_defaults.binpb │ ├── editionssupport │ │ └── editions.go │ ├── encoding │ │ ├── defval │ │ │ └── default.go │ │ ├── json │ │ │ ├── decode.go │ │ │ ├── decode_number.go │ │ │ ├── decode_string.go │ │ │ ├── decode_token.go │ │ │ └── encode.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 │ ├── filedesc │ │ ├── build.go │ │ ├── desc.go │ │ ├── desc_init.go │ │ ├── desc_lazy.go │ │ ├── desc_list.go │ │ ├── desc_list_gen.go │ │ ├── editions.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 │ │ ├── go_features_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_tables.go │ │ ├── codec_unsafe.go │ │ ├── convert.go │ │ ├── convert_list.go │ │ ├── convert_map.go │ │ ├── decode.go │ │ ├── encode.go │ │ ├── enum.go │ │ ├── equal.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_unsafe.go │ │ ├── validate.go │ │ └── weak.go │ ├── order │ │ ├── order.go │ │ └── range.go │ ├── pragma │ │ └── pragma.go │ ├── set │ │ └── ints.go │ ├── strs │ │ ├── strings.go │ │ ├── strings_unsafe_go120.go │ │ └── strings_unsafe_go121.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 │ ├── protoadapt │ └── convert.go │ ├── reflect │ ├── protodesc │ │ ├── desc.go │ │ ├── desc_init.go │ │ ├── desc_resolve.go │ │ ├── desc_validate.go │ │ ├── editions.go │ │ └── proto.go │ ├── protoreflect │ │ ├── methods.go │ │ ├── proto.go │ │ ├── source.go │ │ ├── source_gen.go │ │ ├── type.go │ │ ├── value.go │ │ ├── value_equal.go │ │ ├── value_union.go │ │ ├── value_unsafe_go120.go │ │ └── value_unsafe_go121.go │ └── protoregistry │ │ └── registry.go │ ├── runtime │ ├── protoiface │ │ ├── legacy.go │ │ └── methods.go │ └── protoimpl │ │ ├── impl.go │ │ └── version.go │ └── types │ ├── descriptorpb │ └── descriptor.pb.go │ ├── gofeaturespb │ └── go_features.pb.go │ └── known │ ├── anypb │ └── any.pb.go │ ├── durationpb │ └── duration.pb.go │ ├── emptypb │ └── empty.pb.go │ └── timestamppb │ └── timestamp.pb.go └── modules.txt /.gitignore: -------------------------------------------------------------------------------- 1 | # operating system files 2 | **/.DS_Store 3 | 4 | # Binaries for programs and plugins 5 | *.exe 6 | *.exe~ 7 | *.dll 8 | *.so 9 | *.dylib 10 | 11 | # Test binary, built with `go test -c` 12 | *.test 13 | 14 | # Output of the go coverage tool, specifically when used with LiteIDE 15 | *.out 16 | 17 | # Dependency directories (remove the comment below to include it) 18 | # vendor/ 19 | .idea 20 | examples/.terraform 21 | examples/.terraform.lock.hcl 22 | 23 | # temporary ignoring 24 | cmd 25 | examples -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "flag" 5 | 6 | "github.com/hashicorp/terraform-plugin-sdk/v2/plugin" 7 | 8 | "github.com/lukasaron/terraform-provider-stripe/stripe" 9 | ) 10 | 11 | func main() { 12 | var debugMode bool 13 | var providerAddress string 14 | 15 | flag.BoolVar(&debugMode, 16 | "debug", 17 | false, 18 | "set to true to run the provider with the debug support") 19 | flag.StringVar(&providerAddress, 20 | "providerAddress", 21 | "lukasaron/stripe", 22 | "set the provider address to run the provider with the debug support") 23 | flag.Parse() 24 | 25 | opts := &plugin.ServeOpts{ 26 | ProviderFunc: stripe.Provider, 27 | Debug: debugMode, 28 | ProviderAddr: providerAddress, 29 | } 30 | 31 | plugin.Serve(opts) 32 | } 33 | -------------------------------------------------------------------------------- /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.14.x 7 | env: TEST_METHOD=goveralls 8 | - go: 1.13.x 9 | - go: 1.12.x 10 | - go: 1.11.x 11 | - go: 1.10.x 12 | - go: tip 13 | - go: 1.9.x 14 | - go: 1.8.x 15 | - go: 1.7.x 16 | - go: 1.6.x 17 | - go: 1.5.x 18 | allow_failures: 19 | - go: tip 20 | - go: 1.11.x 21 | - go: 1.10.x 22 | - go: 1.9.x 23 | - go: 1.8.x 24 | - go: 1.7.x 25 | - go: 1.6.x 26 | - go: 1.5.x 27 | script: ./test.sh $TEST_METHOD 28 | notifications: 29 | email: 30 | on_success: never 31 | -------------------------------------------------------------------------------- /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/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/v15/textseg/all_tokens.go: -------------------------------------------------------------------------------- 1 | package textseg 2 | 3 | import ( 4 | "bufio" 5 | "bytes" 6 | ) 7 | 8 | // AllTokens is a utility that uses a bufio.SplitFunc to produce a slice of 9 | // all of the recognized tokens in the given buffer. 10 | func AllTokens(buf []byte, splitFunc bufio.SplitFunc) ([][]byte, error) { 11 | scanner := bufio.NewScanner(bytes.NewReader(buf)) 12 | scanner.Split(splitFunc) 13 | var ret [][]byte 14 | for scanner.Scan() { 15 | ret = append(ret, scanner.Bytes()) 16 | } 17 | return ret, scanner.Err() 18 | } 19 | 20 | // TokenCount is a utility that uses a bufio.SplitFunc to count the number of 21 | // recognized tokens in the given buffer. 22 | func TokenCount(buf []byte, splitFunc bufio.SplitFunc) (int, error) { 23 | scanner := bufio.NewScanner(bytes.NewReader(buf)) 24 | scanner.Split(splitFunc) 25 | var ret int 26 | for scanner.Scan() { 27 | ret++ 28 | } 29 | return ret, scanner.Err() 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/apparentlymart/go-textseg/v15/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/15.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/15.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/v15/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/fatih/color/color_windows.go: -------------------------------------------------------------------------------- 1 | package color 2 | 3 | import ( 4 | "os" 5 | 6 | "golang.org/x/sys/windows" 7 | ) 8 | 9 | func init() { 10 | // Opt-in for ansi color support for current process. 11 | // https://learn.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences#output-sequences 12 | var outMode uint32 13 | out := windows.Handle(os.Stdout.Fd()) 14 | if err := windows.GetConsoleMode(out, &outMode); err != nil { 15 | return 16 | } 17 | outMode |= windows.ENABLE_PROCESSED_OUTPUT | windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING 18 | _ = windows.SetConsoleMode(out, outMode) 19 | } 20 | -------------------------------------------------------------------------------- /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/google/go-cmp/cmp/internal/diff/debug_disable.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017, The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !cmp_debug 6 | // +build !cmp_debug 7 | 8 | package diff 9 | 10 | var debug debugger 11 | 12 | type debugger struct{} 13 | 14 | func (debugger) Begin(_, _ int, f EqualFunc, _, _ *EditScript) EqualFunc { 15 | return f 16 | } 17 | func (debugger) Update() {} 18 | func (debugger) Finish() {} 19 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-cmp/cmp/internal/flags/flags.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019, The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package flags 6 | 7 | // Deterministic controls whether the output of Diff should be deterministic. 8 | // This is only used for testing. 9 | var Deterministic bool 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-cty/cty/convert/conversion_capsule.go: -------------------------------------------------------------------------------- 1 | package convert 2 | 3 | import ( 4 | "github.com/hashicorp/go-cty/cty" 5 | ) 6 | 7 | func conversionToCapsule(inTy, outTy cty.Type, fn func(inTy cty.Type) func(cty.Value, cty.Path) (interface{}, error)) conversion { 8 | rawConv := fn(inTy) 9 | if rawConv == nil { 10 | return nil 11 | } 12 | 13 | return func(in cty.Value, path cty.Path) (cty.Value, error) { 14 | rawV, err := rawConv(in, path) 15 | if err != nil { 16 | return cty.NilVal, err 17 | } 18 | return cty.CapsuleVal(outTy, rawV), nil 19 | } 20 | } 21 | 22 | func conversionFromCapsule(inTy, outTy cty.Type, fn func(outTy cty.Type) func(interface{}, cty.Path) (cty.Value, error)) conversion { 23 | rawConv := fn(outTy) 24 | if rawConv == nil { 25 | return nil 26 | } 27 | 28 | return func(in cty.Value, path cty.Path) (cty.Value, error) { 29 | return rawConv(in.EncapsulatedValue(), path) 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-cty/cty/convert/doc.go: -------------------------------------------------------------------------------- 1 | // Package convert contains some routines for converting between cty types. 2 | // The intent of providing this package is to encourage applications using 3 | // cty to have consistent type conversion behavior for maximal interoperability 4 | // when Values pass from one application to another. 5 | // 6 | // The conversions are categorized into two categories. "Safe" conversions are 7 | // ones that are guaranteed to succeed if given a non-null value of the 8 | // appropriate source type. "Unsafe" conversions, on the other hand, are valid 9 | // for only a subset of input values, and thus may fail with an error when 10 | // called for values outside of that valid subset. 11 | // 12 | // The functions whose names end in Unsafe support all of the conversions that 13 | // are supported by the corresponding functions whose names do not have that 14 | // suffix, and then additional unsafe conversions as well. 15 | package convert 16 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-cty/cty/doc.go: -------------------------------------------------------------------------------- 1 | // Package cty (pronounced see-tie) provides some infrastructure for a type 2 | // system that might be useful for applications that need to represent 3 | // configuration values provided by the user whose types are not known 4 | // at compile time, particularly if the calling application also allows 5 | // such values to be used in expressions. 6 | // 7 | // The type system consists of primitive types Number, String and Bool, as 8 | // well as List and Map collection types and Object types that can have 9 | // arbitrarily-typed sets of attributes. 10 | // 11 | // A set of operations is defined on these types, which is accessible via 12 | // the wrapper struct Value, which annotates the raw, internal representation 13 | // of a value with its corresponding type. 14 | // 15 | // This package is oriented towards being a building block for configuration 16 | // languages used to bootstrap an application. It is not optimized for use 17 | // in tight loops where CPU time or memory pressure are a concern. 18 | package cty 19 | -------------------------------------------------------------------------------- /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/dynamic.go: -------------------------------------------------------------------------------- 1 | package msgpack 2 | 3 | import ( 4 | "bytes" 5 | 6 | "github.com/hashicorp/go-cty/cty" 7 | "github.com/vmihailenco/msgpack" 8 | ) 9 | 10 | type dynamicVal struct { 11 | Value cty.Value 12 | Path cty.Path 13 | } 14 | 15 | func (dv *dynamicVal) MarshalMsgpack() ([]byte, error) { 16 | // Rather than defining a msgpack-specific serialization of types, 17 | // instead we use the existing JSON serialization. 18 | typeJSON, err := dv.Value.Type().MarshalJSON() 19 | if err != nil { 20 | return nil, dv.Path.NewErrorf("failed to serialize type: %s", err) 21 | } 22 | var buf bytes.Buffer 23 | enc := msgpack.NewEncoder(&buf) 24 | enc.EncodeArrayLen(2) 25 | enc.EncodeBytes(typeJSON) 26 | err = marshal(dv.Value, dv.Value.Type(), dv.Path, enc) 27 | if err != nil { 28 | return nil, err 29 | } 30 | return buf.Bytes(), nil 31 | } 32 | -------------------------------------------------------------------------------- /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-hclog/.gitignore: -------------------------------------------------------------------------------- 1 | .idea* -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .idea 3 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/buf.gen.yaml: -------------------------------------------------------------------------------- 1 | # Copyright (c) HashiCorp, Inc. 2 | # SPDX-License-Identifier: MPL-2.0 3 | 4 | version: v1 5 | plugins: 6 | - plugin: buf.build/protocolbuffers/go 7 | out: . 8 | opt: 9 | - paths=source_relative 10 | - plugin: buf.build/grpc/go:v1.3.0 11 | out: . 12 | opt: 13 | - paths=source_relative 14 | - require_unimplemented_servers=false 15 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/buf.yaml: -------------------------------------------------------------------------------- 1 | # Copyright (c) HashiCorp, Inc. 2 | # SPDX-License-Identifier: MPL-2.0 3 | 4 | version: v1 5 | build: 6 | excludes: 7 | - examples/ -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package plugin 5 | 6 | const ( 7 | // EnvUnixSocketDir specifies the directory that _plugins_ should create unix 8 | // sockets in. Does not affect client behavior. 9 | EnvUnixSocketDir = "PLUGIN_UNIX_SOCKET_DIR" 10 | 11 | // EnvUnixSocketGroup specifies the owning, writable group to set for Unix 12 | // sockets created by _plugins_. Does not affect client behavior. 13 | EnvUnixSocketGroup = "PLUGIN_UNIX_SOCKET_GROUP" 14 | 15 | envMultiplexGRPC = "PLUGIN_MULTIPLEX_GRPC" 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/discover.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package plugin 5 | 6 | import ( 7 | "path/filepath" 8 | ) 9 | 10 | // Discover discovers plugins that are in a given directory. 11 | // 12 | // The directory doesn't need to be absolute. For example, "." will work fine. 13 | // 14 | // This currently assumes any file matching the glob is a plugin. 15 | // In the future this may be smarter about checking that a file is 16 | // executable and so on. 17 | // 18 | // TODO: test 19 | func Discover(glob, dir string) ([]string, error) { 20 | var err error 21 | 22 | // Make the directory absolute if it isn't already 23 | if !filepath.IsAbs(dir) { 24 | dir, err = filepath.Abs(dir) 25 | if err != nil { 26 | return nil, err 27 | } 28 | } 29 | 30 | return filepath.Glob(filepath.Join(dir, glob)) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/error.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package plugin 5 | 6 | // This is a type that wraps error types so that they can be messaged 7 | // across RPC channels. Since "error" is an interface, we can't always 8 | // gob-encode the underlying structure. This is a valid error interface 9 | // implementer that we will push across. 10 | type BasicError struct { 11 | Message string 12 | } 13 | 14 | // NewBasicError is used to create a BasicError. 15 | // 16 | // err is allowed to be nil. 17 | func NewBasicError(err error) *BasicError { 18 | if err == nil { 19 | return nil 20 | } 21 | 22 | return &BasicError{err.Error()} 23 | } 24 | 25 | func (e *BasicError) Error() string { 26 | return e.Message 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/grpc_controller.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package plugin 5 | 6 | import ( 7 | "context" 8 | 9 | "github.com/hashicorp/go-plugin/internal/plugin" 10 | ) 11 | 12 | // GRPCControllerServer handles shutdown calls to terminate the server when the 13 | // plugin client is closed. 14 | type grpcControllerServer struct { 15 | server *GRPCServer 16 | } 17 | 18 | // Shutdown stops the grpc server. It first will attempt a graceful stop, then a 19 | // full stop on the server. 20 | func (s *grpcControllerServer) Shutdown(ctx context.Context, _ *plugin.Empty) (*plugin.Empty, error) { 21 | resp := &plugin.Empty{} 22 | 23 | // TODO: figure out why GracefullStop doesn't work. 24 | s.server.Stop() 25 | return resp, nil 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/internal/cmdrunner/addr_translator.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package cmdrunner 5 | 6 | // addrTranslator implements stateless identity functions, as the host and plugin 7 | // run in the same context wrt Unix and network addresses. 8 | type addrTranslator struct{} 9 | 10 | func (*addrTranslator) PluginToHost(pluginNet, pluginAddr string) (string, string, error) { 11 | return pluginNet, pluginAddr, nil 12 | } 13 | 14 | func (*addrTranslator) HostToPlugin(hostNet, hostAddr string) (string, string, error) { 15 | return hostNet, hostAddr, nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/internal/cmdrunner/process.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package cmdrunner 5 | 6 | import "time" 7 | 8 | // pidAlive checks whether a pid is alive. 9 | func pidAlive(pid int) bool { 10 | return _pidAlive(pid) 11 | } 12 | 13 | // pidWait blocks for a process to exit. 14 | func pidWait(pid int) error { 15 | ticker := time.NewTicker(1 * time.Second) 16 | defer ticker.Stop() 17 | 18 | for range ticker.C { 19 | if !pidAlive(pid) { 20 | break 21 | } 22 | } 23 | 24 | return nil 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/internal/cmdrunner/process_posix.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | //go:build !windows 5 | // +build !windows 6 | 7 | package cmdrunner 8 | 9 | import ( 10 | "os" 11 | "syscall" 12 | ) 13 | 14 | // _pidAlive tests whether a process is alive or not by sending it Signal 0, 15 | // since Go otherwise has no way to test this. 16 | func _pidAlive(pid int) bool { 17 | proc, err := os.FindProcess(pid) 18 | if err == nil { 19 | err = proc.Signal(syscall.Signal(0)) 20 | } 21 | 22 | return err == nil 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/internal/cmdrunner/process_windows.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package cmdrunner 5 | 6 | import ( 7 | "syscall" 8 | ) 9 | 10 | const ( 11 | // Weird name but matches the MSDN docs 12 | exit_STILL_ACTIVE = 259 13 | 14 | processDesiredAccess = syscall.STANDARD_RIGHTS_READ | 15 | syscall.PROCESS_QUERY_INFORMATION | 16 | syscall.SYNCHRONIZE 17 | ) 18 | 19 | // _pidAlive tests whether a process is alive or not 20 | func _pidAlive(pid int) bool { 21 | h, err := syscall.OpenProcess(processDesiredAccess, false, uint32(pid)) 22 | if err != nil { 23 | return false 24 | } 25 | defer syscall.CloseHandle(h) 26 | 27 | var ec uint32 28 | if e := syscall.GetExitCodeProcess(h, &ec); e != nil { 29 | return false 30 | } 31 | 32 | return ec == exit_STILL_ACTIVE 33 | } 34 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/internal/plugin/grpc_broker.proto: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | syntax = "proto3"; 5 | package plugin; 6 | option go_package = "./plugin"; 7 | 8 | message ConnInfo { 9 | uint32 service_id = 1; 10 | string network = 2; 11 | string address = 3; 12 | message Knock { 13 | bool knock = 1; 14 | bool ack = 2; 15 | string error = 3; 16 | } 17 | Knock knock = 4; 18 | } 19 | 20 | service GRPCBroker { 21 | rpc StartStream(stream ConnInfo) returns (stream ConnInfo); 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/internal/plugin/grpc_controller.proto: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | syntax = "proto3"; 5 | package plugin; 6 | option go_package = "./plugin"; 7 | 8 | message Empty { 9 | } 10 | 11 | // The GRPCController is responsible for telling the plugin server to shutdown. 12 | service GRPCController { 13 | rpc Shutdown(Empty) returns (Empty); 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/process.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package plugin 5 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/server_mux.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package plugin 5 | 6 | import ( 7 | "fmt" 8 | "os" 9 | ) 10 | 11 | // ServeMuxMap is the type that is used to configure ServeMux 12 | type ServeMuxMap map[string]*ServeConfig 13 | 14 | // ServeMux is like Serve, but serves multiple types of plugins determined 15 | // by the argument given on the command-line. 16 | // 17 | // This command doesn't return until the plugin is done being executed. Any 18 | // errors are logged or output to stderr. 19 | func ServeMux(m ServeMuxMap) { 20 | if len(os.Args) != 2 { 21 | fmt.Fprintf(os.Stderr, 22 | "Invoked improperly. This is an internal command that shouldn't\n"+ 23 | "be manually invoked.\n") 24 | os.Exit(1) 25 | } 26 | 27 | opts, ok := m[os.Args[1]] 28 | if !ok { 29 | fmt.Fprintf(os.Stderr, "Unknown plugin: %s\n", os.Args[1]) 30 | os.Exit(1) 31 | } 32 | 33 | Serve(opts) 34 | } 35 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-plugin/stream.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package plugin 5 | 6 | import ( 7 | "io" 8 | "log" 9 | ) 10 | 11 | func copyStream(name string, dst io.Writer, src io.Reader) { 12 | if src == nil { 13 | panic(name + ": src is nil") 14 | } 15 | if dst == nil { 16 | panic(name + ": dst is nil") 17 | } 18 | if _, err := io.Copy(dst, src); err != nil && err != io.EOF { 19 | log.Printf("[ERR] plugin: stream copy '%s' error: %s", name, err) 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /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-version/version_collection.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package version 5 | 6 | // Collection is a type that implements the sort.Interface interface 7 | // so that versions can be sorted. 8 | type Collection []*Version 9 | 10 | func (v Collection) Len() int { 11 | return len(v) 12 | } 13 | 14 | func (v Collection) Less(i, j int) bool { 15 | return v[i].LessThan(v[j]) 16 | } 17 | 18 | func (v Collection) Swap(i, j int) { 19 | v[i], v[j] = v[j], v[i] 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/v2/.copywrite.hcl: -------------------------------------------------------------------------------- 1 | schema_version = 1 2 | 3 | project { 4 | license = "MPL-2.0" 5 | copyright_year = 2014 6 | 7 | # (OPTIONAL) A list of globs that should not have copyright/license headers. 8 | # Supports doublestar glob patterns for more flexibility in defining which 9 | # files or folders should be ignored 10 | header_ignore = [ 11 | "hclsyntax/fuzz/testdata/**", 12 | "hclwrite/fuzz/testdata/**", 13 | "json/fuzz/testdata/**", 14 | "specsuite/tests/**", 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/v2/Makefile: -------------------------------------------------------------------------------- 1 | fmtcheck: 2 | "$(CURDIR)/scripts/gofmtcheck.sh" 3 | 4 | fmtfix: 5 | gofmt -w ./ 6 | 7 | vetcheck: 8 | go vet ./... 9 | 10 | copyrightcheck: 11 | go run github.com/hashicorp/copywrite@latest headers --plan 12 | 13 | copyrightfix: 14 | go run github.com/hashicorp/copywrite@latest headers 15 | 16 | check: copyrightcheck vetcheck fmtcheck 17 | 18 | fix: copyrightfix fmtfix 19 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/v2/didyoumean.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package hcl 5 | 6 | import ( 7 | "github.com/agext/levenshtein" 8 | ) 9 | 10 | // nameSuggestion tries to find a name from the given slice of suggested names 11 | // that is close to the given name and returns it if found. If no suggestion 12 | // is close enough, returns the empty string. 13 | // 14 | // The suggestions are tried in order, so earlier suggestions take precedence 15 | // if the given string is similar to two or more suggestions. 16 | // 17 | // This function is intended to be used with a relatively-small number of 18 | // suggestions. It's not optimized for hundreds or thousands of them. 19 | func nameSuggestion(given string, suggestions []string) string { 20 | for _, suggestion := range suggestions { 21 | dist := levenshtein.Distance(given, suggestion, nil) 22 | if dist < 3 { // threshold determined experimentally 23 | return suggestion 24 | } 25 | } 26 | return "" 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/v2/eval_context.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package hcl 5 | 6 | import ( 7 | "github.com/zclconf/go-cty/cty" 8 | "github.com/zclconf/go-cty/cty/function" 9 | ) 10 | 11 | // An EvalContext provides the variables and functions that should be used 12 | // to evaluate an expression. 13 | type EvalContext struct { 14 | Variables map[string]cty.Value 15 | Functions map[string]function.Function 16 | parent *EvalContext 17 | } 18 | 19 | // NewChild returns a new EvalContext that is a child of the receiver. 20 | func (ctx *EvalContext) NewChild() *EvalContext { 21 | return &EvalContext{parent: ctx} 22 | } 23 | 24 | // Parent returns the parent of the receiver, or nil if the receiver has 25 | // no parent. 26 | func (ctx *EvalContext) Parent() *EvalContext { 27 | return ctx.parent 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/v2/hclsyntax/diagnostics.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package hclsyntax 5 | 6 | import ( 7 | "github.com/hashicorp/hcl/v2" 8 | ) 9 | 10 | // setDiagEvalContext is an internal helper that will impose a particular 11 | // EvalContext on a set of diagnostics in-place, for any diagnostic that 12 | // does not already have an EvalContext set. 13 | // 14 | // We generally expect diagnostics to be immutable, but this is safe to use 15 | // on any Diagnostics where none of the contained Diagnostic objects have yet 16 | // been seen by a caller. Its purpose is to apply additional context to a 17 | // set of diagnostics produced by a "deeper" component as the stack unwinds 18 | // during expression evaluation. 19 | func setDiagEvalContext(diags hcl.Diagnostics, expr hcl.Expression, ctx *hcl.EvalContext) { 20 | for _, diag := range diags { 21 | if diag.Expression == nil { 22 | diag.Expression = expr 23 | diag.EvalContext = ctx 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/v2/hclsyntax/didyoumean.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package hclsyntax 5 | 6 | import ( 7 | "github.com/agext/levenshtein" 8 | ) 9 | 10 | // nameSuggestion tries to find a name from the given slice of suggested names 11 | // that is close to the given name and returns it if found. If no suggestion 12 | // is close enough, returns the empty string. 13 | // 14 | // The suggestions are tried in order, so earlier suggestions take precedence 15 | // if the given string is similar to two or more suggestions. 16 | // 17 | // This function is intended to be used with a relatively-small number of 18 | // suggestions. It's not optimized for hundreds or thousands of them. 19 | func nameSuggestion(given string, suggestions []string) string { 20 | for _, suggestion := range suggestions { 21 | dist := levenshtein.Distance(given, suggestion, nil) 22 | if dist < 3 { // threshold determined experimentally 23 | return suggestion 24 | } 25 | } 26 | return "" 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/v2/hclsyntax/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package hclsyntax contains the parser, AST, etc for HCL's native language, 5 | // as opposed to the JSON variant. 6 | // 7 | // In normal use applications should rarely depend on this package directly, 8 | // instead preferring the higher-level interface of the main hcl package and 9 | // its companion package hclparse. 10 | package hclsyntax 11 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/v2/hclsyntax/file.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package hclsyntax 5 | 6 | import ( 7 | "github.com/hashicorp/hcl/v2" 8 | ) 9 | 10 | // File is the top-level object resulting from parsing a configuration file. 11 | type File struct { 12 | Body *Body 13 | Bytes []byte 14 | } 15 | 16 | func (f *File) AsHCLFile() *hcl.File { 17 | return &hcl.File{ 18 | Body: f.Body, 19 | Bytes: f.Bytes, 20 | 21 | // TODO: The Nav object, once we have an implementation of it 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/v2/hclsyntax/generate.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package hclsyntax 5 | 6 | //go:generate go run expression_vars_gen.go 7 | //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 8 | //go:generate ragel -Z scan_tokens.rl 9 | //go:generate gofmt -w scan_tokens.go 10 | //go:generate ragel -Z scan_string_lit.rl 11 | //go:generate gofmt -w scan_string_lit.go 12 | //go:generate go run golang.org/x/tools/cmd/stringer -type TokenType -output token_type_string.go 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/v2/hclsyntax/keywords.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package hclsyntax 5 | 6 | import ( 7 | "bytes" 8 | ) 9 | 10 | type Keyword []byte 11 | 12 | var forKeyword = Keyword([]byte{'f', 'o', 'r'}) 13 | var inKeyword = Keyword([]byte{'i', 'n'}) 14 | var ifKeyword = Keyword([]byte{'i', 'f'}) 15 | var elseKeyword = Keyword([]byte{'e', 'l', 's', 'e'}) 16 | var endifKeyword = Keyword([]byte{'e', 'n', 'd', 'i', 'f'}) 17 | var endforKeyword = Keyword([]byte{'e', 'n', 'd', 'f', 'o', 'r'}) 18 | 19 | func (kw Keyword) TokenMatches(token Token) bool { 20 | if token.Type != TokenIdent { 21 | return false 22 | } 23 | return bytes.Equal([]byte(kw), token.Bytes) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/v2/hclsyntax/node.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package hclsyntax 5 | 6 | import ( 7 | "github.com/hashicorp/hcl/v2" 8 | ) 9 | 10 | // Node is the abstract type that every AST node implements. 11 | // 12 | // This is a closed interface, so it cannot be implemented from outside of 13 | // this package. 14 | type Node interface { 15 | // This is the mechanism by which the public-facing walk functions 16 | // are implemented. Implementations should call the given function 17 | // for each child node and then replace that node with its return value. 18 | // The return value might just be the same node, for non-transforming 19 | // walks. 20 | walkChildNodes(w internalWalkFunc) 21 | 22 | Range() hcl.Range 23 | } 24 | 25 | type internalWalkFunc func(Node) 26 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/v2/schema.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package hcl 5 | 6 | // BlockHeaderSchema represents the shape of a block header, and is 7 | // used for matching blocks within bodies. 8 | type BlockHeaderSchema struct { 9 | Type string 10 | LabelNames []string 11 | } 12 | 13 | // AttributeSchema represents the requirements for an attribute, and is used 14 | // for matching attributes within bodies. 15 | type AttributeSchema struct { 16 | Name string 17 | Required bool 18 | } 19 | 20 | // BodySchema represents the desired shallow structure of a body. 21 | type BodySchema struct { 22 | Attributes []AttributeSchema 23 | Blocks []BlockHeaderSchema 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/hcl/v2/tools.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | //go:build tools 5 | // +build tools 6 | 7 | package hcl 8 | 9 | import ( 10 | _ "golang.org/x/tools/cmd/stringer" 11 | ) 12 | -------------------------------------------------------------------------------- /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/terraform-plugin-go/internal/logging/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package logging contains shared environment variable and log functionality. 5 | package logging 6 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/internal/logging/provider.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package logging 5 | 6 | import ( 7 | "log" 8 | "strings" 9 | 10 | tfaddr "github.com/hashicorp/terraform-registry-address" 11 | ) 12 | 13 | func ProviderLoggerName(providerAddress string) string { 14 | provider, err := tfaddr.ParseProviderSource(providerAddress) 15 | if err != nil { 16 | log.Printf("[ERROR] Error parsing provider name %q: %s", providerAddress, err) 17 | return "" 18 | } 19 | 20 | return strings.ReplaceAll(provider.Type, "-", "_") 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/function_error.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tfprotov5 5 | 6 | // FunctionError is used to convey information back to the user running Terraform. 7 | type FunctionError struct { 8 | // Text is the description of the error. 9 | Text string 10 | 11 | // FunctionArgument is the positional function argument for aligning 12 | // configuration source. 13 | FunctionArgument *int64 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/diag/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package diag contains diagnostics helpers. These implementations are 5 | // intentionally outside the public API. 6 | package diag 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/fromproto/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package fromproto converts Protocol Buffers generated tfplugin5 types into 5 | // terraform-plugin-go tfprotov5 types. 6 | package fromproto 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/fromproto/dynamic_value.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package fromproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov5" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5" 9 | ) 10 | 11 | func DynamicValue(in *tfplugin5.DynamicValue) *tfprotov5.DynamicValue { 12 | if in == nil { 13 | return nil 14 | } 15 | 16 | resp := &tfprotov5.DynamicValue{ 17 | MsgPack: in.Msgpack, 18 | JSON: in.Json, 19 | } 20 | 21 | return resp 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/fromproto/function.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package fromproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov5" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5" 9 | ) 10 | 11 | func CallFunctionRequest(in *tfplugin5.CallFunction_Request) *tfprotov5.CallFunctionRequest { 12 | if in == nil { 13 | return nil 14 | } 15 | 16 | resp := &tfprotov5.CallFunctionRequest{ 17 | Arguments: make([]*tfprotov5.DynamicValue, 0, len(in.Arguments)), 18 | Name: in.Name, 19 | } 20 | 21 | for _, argument := range in.Arguments { 22 | resp.Arguments = append(resp.Arguments, DynamicValue(argument)) 23 | } 24 | 25 | return resp 26 | } 27 | 28 | func GetFunctionsRequest(in *tfplugin5.GetFunctions_Request) *tfprotov5.GetFunctionsRequest { 29 | if in == nil { 30 | return nil 31 | } 32 | 33 | resp := &tfprotov5.GetFunctionsRequest{} 34 | 35 | return resp 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/fromproto/raw_state.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package fromproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov5" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5" 9 | ) 10 | 11 | func RawState(in *tfplugin5.RawState) *tfprotov5.RawState { 12 | if in == nil { 13 | return nil 14 | } 15 | 16 | resp := &tfprotov5.RawState{ 17 | JSON: in.Json, 18 | Flatmap: in.Flatmap, 19 | } 20 | 21 | return resp 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/funcerr/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package funcerr contains function error helpers. These implementations are 5 | // intentionally outside the public API. 6 | package funcerr 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/context_keys.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tf5serverlogging 5 | 6 | // Context key types. 7 | // Reference: https://staticcheck.io/docs/checks/#SA1029 8 | 9 | // ContextKeyDownstreamRequestStartTime is a context.Context key to store the 10 | // time.Time when the server began a downstream request. 11 | type ContextKeyDownstreamRequestStartTime struct{} 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/deferred.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tf5serverlogging 5 | 6 | import ( 7 | "context" 8 | 9 | "github.com/hashicorp/terraform-plugin-go/internal/logging" 10 | "github.com/hashicorp/terraform-plugin-go/tfprotov5" 11 | ) 12 | 13 | // Deferred generates a TRACE "Received downstream deferred response" log if populated. 14 | func Deferred(ctx context.Context, deferred *tfprotov5.Deferred) { 15 | if deferred == nil { 16 | return 17 | } 18 | 19 | responseFields := map[string]interface{}{ 20 | logging.KeyDeferredReason: deferred.Reason.String(), 21 | } 22 | 23 | logging.ProtocolTrace(ctx, "Received downstream deferred response", responseFields) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tf5serverlogging/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package tf5serverlogging contains logging functionality specific to 5 | // tf5server and tfprotov5 types. 6 | package tf5serverlogging 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/deferred.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package toproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov5" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5" 9 | ) 10 | 11 | func Deferred(in *tfprotov5.Deferred) *tfplugin5.Deferred { 12 | if in == nil { 13 | return nil 14 | } 15 | 16 | resp := &tfplugin5.Deferred{ 17 | Reason: tfplugin5.Deferred_Reason(in.Reason), 18 | } 19 | 20 | return resp 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package toproto converts terraform-plugin-go tfprotov5 types to Protocol 5 | // Buffers generated tfplugin5 types. 6 | package toproto 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/dynamic_value.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package toproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov5" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5" 9 | "github.com/hashicorp/terraform-plugin-go/tftypes" 10 | ) 11 | 12 | func DynamicValue(in *tfprotov5.DynamicValue) *tfplugin5.DynamicValue { 13 | if in == nil { 14 | return nil 15 | } 16 | 17 | resp := &tfplugin5.DynamicValue{ 18 | Msgpack: in.MsgPack, 19 | Json: in.JSON, 20 | } 21 | 22 | return resp 23 | } 24 | 25 | func CtyType(in tftypes.Type) []byte { 26 | if in == nil { 27 | return nil 28 | } 29 | 30 | // MarshalJSON is always error safe. 31 | // nolint:staticcheck // Intended first-party usage 32 | resp, _ := in.MarshalJSON() 33 | 34 | return resp 35 | } 36 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/function_error.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package toproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov5" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5" 9 | ) 10 | 11 | func FunctionError(in *tfprotov5.FunctionError) *tfplugin5.FunctionError { 12 | if in == nil { 13 | return nil 14 | } 15 | 16 | resp := &tfplugin5.FunctionError{ 17 | FunctionArgument: in.FunctionArgument, 18 | Text: ForceValidUTF8(in.Text), 19 | } 20 | 21 | return resp 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/server_capabilities.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package toproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov5" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5" 9 | ) 10 | 11 | func ServerCapabilities(in *tfprotov5.ServerCapabilities) *tfplugin5.ServerCapabilities { 12 | if in == nil { 13 | return nil 14 | } 15 | 16 | resp := &tfplugin5.ServerCapabilities{ 17 | GetProviderSchemaOptional: in.GetProviderSchemaOptional, 18 | MoveResourceState: in.MoveResourceState, 19 | PlanDestroy: in.PlanDestroy, 20 | } 21 | 22 | return resp 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/toproto/string_kind.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package toproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov5" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5" 9 | ) 10 | 11 | func StringKind(in tfprotov5.StringKind) tfplugin5.StringKind { 12 | return tfplugin5.StringKind(in) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/string_kind.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tfprotov5 5 | 6 | const ( 7 | // StringKindPlain indicates a string is plaintext, and should be 8 | // interpreted as having no formatting information. 9 | StringKindPlain StringKind = 0 10 | 11 | // StringKindMarkdown indicates a string is markdown-formatted, and 12 | // should be rendered using a Markdown renderer to correctly display 13 | // its formatting. 14 | StringKindMarkdown StringKind = 1 15 | ) 16 | 17 | // StringKind indicates a formatting or encoding scheme for a string. 18 | type StringKind int32 19 | 20 | func (s StringKind) String() string { 21 | switch s { 22 | case 0: 23 | return "PLAIN" 24 | case 1: 25 | return "MARKDOWN" 26 | } 27 | return "UNKNOWN" 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package tf5server implements a server implementation to run 5 | // tfprotov5.ProviderServers as gRPC servers. 6 | // 7 | // Providers will likely be calling tf5server.Serve from their main function to 8 | // start the server so Terraform can connect to it. 9 | package tf5server 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/function_error.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tfprotov6 5 | 6 | // FunctionError is used to convey information back to the user running Terraform. 7 | type FunctionError struct { 8 | // Text is the description of the error. 9 | Text string 10 | 11 | // FunctionArgument is the positional function argument for aligning 12 | // configuration source. 13 | FunctionArgument *int64 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/diag/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package diag contains diagnostics helpers. These implementations are 5 | // intentionally outside the public API. 6 | package diag 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/fromproto/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package fromproto converts Protocol Buffers generated tfplugin6 types into 5 | // terraform-plugin-go tfprotov6 types. 6 | package fromproto 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/fromproto/dynamic_value.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package fromproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov6" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6" 9 | ) 10 | 11 | func DynamicValue(in *tfplugin6.DynamicValue) *tfprotov6.DynamicValue { 12 | if in == nil { 13 | return nil 14 | } 15 | 16 | resp := &tfprotov6.DynamicValue{ 17 | MsgPack: in.Msgpack, 18 | JSON: in.Json, 19 | } 20 | 21 | return resp 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/fromproto/function.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package fromproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov6" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6" 9 | ) 10 | 11 | func CallFunctionRequest(in *tfplugin6.CallFunction_Request) *tfprotov6.CallFunctionRequest { 12 | if in == nil { 13 | return nil 14 | } 15 | 16 | resp := &tfprotov6.CallFunctionRequest{ 17 | Arguments: make([]*tfprotov6.DynamicValue, 0, len(in.Arguments)), 18 | Name: in.Name, 19 | } 20 | 21 | for _, argument := range in.Arguments { 22 | resp.Arguments = append(resp.Arguments, DynamicValue(argument)) 23 | } 24 | 25 | return resp 26 | } 27 | 28 | func GetFunctionsRequest(in *tfplugin6.GetFunctions_Request) *tfprotov6.GetFunctionsRequest { 29 | if in == nil { 30 | return nil 31 | } 32 | 33 | resp := &tfprotov6.GetFunctionsRequest{} 34 | 35 | return resp 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/fromproto/raw_state.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package fromproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov6" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6" 9 | ) 10 | 11 | func RawState(in *tfplugin6.RawState) *tfprotov6.RawState { 12 | if in == nil { 13 | return nil 14 | } 15 | 16 | resp := &tfprotov6.RawState{ 17 | JSON: in.Json, 18 | Flatmap: in.Flatmap, 19 | } 20 | 21 | return resp 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/funcerr/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package funcerr contains function error helpers. These implementations are 5 | // intentionally outside the public API. 6 | package funcerr 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tf6serverlogging/context_keys.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tf6serverlogging 5 | 6 | // Context key types. 7 | // Reference: https://staticcheck.io/docs/checks/#SA1029 8 | 9 | // ContextKeyDownstreamRequestStartTime is a context.Context key to store the 10 | // time.Time when the server began a downstream request. 11 | type ContextKeyDownstreamRequestStartTime struct{} 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tf6serverlogging/deferred.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tf6serverlogging 5 | 6 | import ( 7 | "context" 8 | 9 | "github.com/hashicorp/terraform-plugin-go/internal/logging" 10 | "github.com/hashicorp/terraform-plugin-go/tfprotov6" 11 | ) 12 | 13 | // Deferred generates a TRACE "Received downstream deferred response" log if populated. 14 | func Deferred(ctx context.Context, deferred *tfprotov6.Deferred) { 15 | if deferred == nil { 16 | return 17 | } 18 | 19 | responseFields := map[string]interface{}{ 20 | logging.KeyDeferredReason: deferred.Reason.String(), 21 | } 22 | 23 | logging.ProtocolTrace(ctx, "Received downstream deferred response", responseFields) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tf6serverlogging/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package tf5serverlogging contains logging functionality specific to 5 | // tf5server and tfprotov5 types. 6 | package tf6serverlogging 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/deferred.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package toproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov6" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6" 9 | ) 10 | 11 | func Deferred(in *tfprotov6.Deferred) *tfplugin6.Deferred { 12 | if in == nil { 13 | return nil 14 | } 15 | 16 | resp := &tfplugin6.Deferred{ 17 | Reason: tfplugin6.Deferred_Reason(in.Reason), 18 | } 19 | 20 | return resp 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package toproto converts terraform-plugin-go tfprotov6 types to Protocol 5 | // Buffers generated tfplugin6 types. 6 | package toproto 7 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/dynamic_value.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package toproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov6" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6" 9 | "github.com/hashicorp/terraform-plugin-go/tftypes" 10 | ) 11 | 12 | func DynamicValue(in *tfprotov6.DynamicValue) *tfplugin6.DynamicValue { 13 | if in == nil { 14 | return nil 15 | } 16 | 17 | resp := &tfplugin6.DynamicValue{ 18 | Msgpack: in.MsgPack, 19 | Json: in.JSON, 20 | } 21 | 22 | return resp 23 | } 24 | 25 | func CtyType(in tftypes.Type) []byte { 26 | if in == nil { 27 | return nil 28 | } 29 | 30 | // MarshalJSON is always error safe. 31 | // nolint:staticcheck // Intended first-party usage 32 | resp, _ := in.MarshalJSON() 33 | 34 | return resp 35 | } 36 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/function_error.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package toproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov6" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6" 9 | ) 10 | 11 | func FunctionError(in *tfprotov6.FunctionError) *tfplugin6.FunctionError { 12 | if in == nil { 13 | return nil 14 | } 15 | 16 | resp := &tfplugin6.FunctionError{ 17 | FunctionArgument: in.FunctionArgument, 18 | Text: ForceValidUTF8(in.Text), 19 | } 20 | 21 | return resp 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/server_capabilities.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package toproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov6" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6" 9 | ) 10 | 11 | func ServerCapabilities(in *tfprotov6.ServerCapabilities) *tfplugin6.ServerCapabilities { 12 | if in == nil { 13 | return nil 14 | } 15 | 16 | resp := &tfplugin6.ServerCapabilities{ 17 | GetProviderSchemaOptional: in.GetProviderSchemaOptional, 18 | MoveResourceState: in.MoveResourceState, 19 | PlanDestroy: in.PlanDestroy, 20 | } 21 | 22 | return resp 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/toproto/string_kind.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package toproto 5 | 6 | import ( 7 | "github.com/hashicorp/terraform-plugin-go/tfprotov6" 8 | "github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6" 9 | ) 10 | 11 | func StringKind(in tfprotov6.StringKind) tfplugin6.StringKind { 12 | return tfplugin6.StringKind(in) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/string_kind.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tfprotov6 5 | 6 | const ( 7 | // StringKindPlain indicates a string is plaintext, and should be 8 | // interpreted as having no formatting information. 9 | StringKindPlain StringKind = 0 10 | 11 | // StringKindMarkdown indicates a string is markdown-formatted, and 12 | // should be rendered using a Markdown renderer to correctly display 13 | // its formatting. 14 | StringKindMarkdown StringKind = 1 15 | ) 16 | 17 | // StringKind indicates a formatting or encoding scheme for a string. 18 | type StringKind int32 19 | 20 | func (s StringKind) String() string { 21 | switch s { 22 | case 0: 23 | return "PLAIN" 24 | case 1: 25 | return "MARKDOWN" 26 | } 27 | return "UNKNOWN" 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package tf6server implements a server implementation to run 5 | // tfprotov6.ProviderServers as gRPC servers. 6 | // 7 | // Providers will likely be calling tf6server.Serve from their main function to 8 | // start the server so Terraform can connect to it. 9 | package tf6server 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-go/tftypes/unknown_value.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tftypes 5 | 6 | const ( 7 | // UnknownValue represents a value that is not yet known. It can be the 8 | // value of any type. 9 | UnknownValue = unknown(0) 10 | ) 11 | 12 | type unknown byte 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-log/internal/hclogutils/args.go: -------------------------------------------------------------------------------- 1 | package hclogutils 2 | 3 | import ( 4 | "github.com/hashicorp/terraform-plugin-log/internal/fieldutils" 5 | ) 6 | 7 | // FieldMapsToArgs will shallow merge field maps into a slice of key/value pairs 8 | // arguments (i.e. `[k1, v1, k2, v2, ...]`) expected by hc-log.Logger methods. 9 | func FieldMapsToArgs(maps ...map[string]interface{}) []interface{} { 10 | switch len(maps) { 11 | case 0: 12 | return nil 13 | case 1: 14 | result := make([]interface{}, 0, len(maps[0])*2) 15 | 16 | for k, v := range maps[0] { 17 | result = append(result, k, v) 18 | } 19 | 20 | return result 21 | default: 22 | // As we merge all maps into one, we can use this 23 | // same function recursively, falling back on the `switch case 1`. 24 | return FieldMapsToArgs(fieldutils.MergeFieldMaps(maps...)) 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-log/tflog/doc.go: -------------------------------------------------------------------------------- 1 | // Package tflog provides helper functions for writing log output and creating 2 | // loggers for Terraform plugins. 3 | // 4 | // For most plugin authors, building on an SDK or framework, the SDK or 5 | // framework will take care of injecting a logger using New. 6 | // 7 | // tflog also allows plugin authors to create subsystem loggers, which are 8 | // loggers for sufficiently distinct areas of the codebase or concerns. The 9 | // benefit of using distinct loggers for these concerns is doing so allows 10 | // plugin authors and practitioners to configure different log levels for each 11 | // subsystem's log, allowing log output to be turned on or off without 12 | // recompiling. 13 | package tflog 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-log/tfsdklog/doc.go: -------------------------------------------------------------------------------- 1 | // Package tfsdklog provides helper functions for logging from SDKs and 2 | // frameworks for building Terraform plugins. 3 | // 4 | // Plugin authors shouldn't need to use this package; it is meant for authors 5 | // of the frameworks and SDKs for plugins. Plugin authors should use the tflog 6 | // package. 7 | // 8 | // This package provides very similar functionality to tflog, except it uses a 9 | // separate namespace for its logs. 10 | package tfsdklog 11 | -------------------------------------------------------------------------------- /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 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package schema 5 | 6 | type Key string 7 | 8 | var ( 9 | StopContextKey = Key("StopContext") 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/equal.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package schema 5 | 6 | // Equal is an interface that checks for deep equality between two objects. 7 | type Equal interface { 8 | Equal(interface{}) bool 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/field_writer.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package schema 5 | 6 | // FieldWriters are responsible for writing fields by address into 7 | // a proper typed representation. ResourceData uses this to write new data 8 | // into existing sources. 9 | type FieldWriter interface { 10 | WriteField([]string, interface{}) error 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/json.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package schema 5 | 6 | import ( 7 | "bytes" 8 | "encoding/json" 9 | ) 10 | 11 | func unmarshalJSON(data []byte, v interface{}) error { 12 | dec := json.NewDecoder(bytes.NewReader(data)) 13 | dec.UseNumber() 14 | return dec.Decode(v) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource_data_get_source.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package schema 5 | 6 | // This code was previously generated with a go:generate directive calling: 7 | // go run golang.org/x/tools/cmd/stringer -type=getSource resource_data_get_source.go 8 | // However, it is now considered frozen and the tooling dependency has been 9 | // removed. The String method can be manually updated if necessary. 10 | 11 | // getSource represents the level we want to get for a value (internally). 12 | // Any source less than or equal to the level will be loaded (whichever 13 | // has a value first). 14 | type getSource byte 15 | 16 | const ( 17 | getSourceState getSource = 1 << iota 18 | getSourceConfig 19 | getSourceDiff 20 | getSourceSet 21 | getSourceExact // Only get from the _exact_ level 22 | getSourceLevelMask getSource = getSourceState | getSourceConfig | getSourceDiff | getSourceSet 23 | ) 24 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/testing.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package schema 5 | 6 | import ( 7 | "context" 8 | 9 | testing "github.com/mitchellh/go-testing-interface" 10 | 11 | "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" 12 | ) 13 | 14 | // TestResourceDataRaw creates a ResourceData from a raw configuration map. 15 | func TestResourceDataRaw(t testing.T, schema map[string]*Schema, raw map[string]interface{}) *ResourceData { 16 | t.Helper() 17 | 18 | c := terraform.NewResourceConfigRaw(raw) 19 | 20 | sm := schemaMap(schema) 21 | diff, err := sm.Diff(context.Background(), nil, c, nil, nil, true) 22 | if err != nil { 23 | t.Fatalf("err: %s", err) 24 | } 25 | 26 | result, err := sm.Data(nil, diff) 27 | if err != nil { 28 | t.Fatalf("err: %s", err) 29 | } 30 | 31 | return result 32 | } 33 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/valuetype.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package schema 5 | 6 | // This code was previously generated with a go:generate directive calling: 7 | // go run golang.org/x/tools/cmd/stringer -type=ValueType valuetype.go 8 | // However, it is now considered frozen and the tooling dependency has been 9 | // removed. The String method can be manually updated if necessary. 10 | 11 | // ValueType is an enum of the type that can be represented by a schema. 12 | type ValueType int 13 | 14 | const ( 15 | TypeInvalid ValueType = iota 16 | TypeBool 17 | TypeInt 18 | TypeFloat 19 | TypeString 20 | TypeList 21 | TypeMap 22 | TypeSet 23 | typeObject 24 | ) 25 | 26 | // NOTE: ValueType has more functions defined on it in schema.go. We can't 27 | // put them here because we reference other files. 28 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/addrs/module.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package addrs 5 | 6 | // Module is an address for a module call within configuration. This is 7 | // the static counterpart of ModuleInstance, representing a traversal through 8 | // the static module call tree in configuration and does not take into account 9 | // the potentially-multiple instances of a module that might be created by 10 | // "count" and "for_each" arguments within those calls. 11 | // 12 | // This type should be used only in very specialized cases when working with 13 | // the static module call tree. Type ModuleInstance is appropriate in more cases. 14 | // 15 | // Although Module is a slice, it should be treated as immutable after creation. 16 | type Module []string 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/configschema/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package configschema contains types for describing the expected structure 5 | // of a configuration block whose shape is not known until runtime. 6 | // 7 | // For example, this is used to describe the expected contents of a resource 8 | // configuration block, which is defined by the corresponding provider plugin 9 | // and thus not compiled into Terraform core. 10 | // 11 | // A configschema primarily describes the shape of configuration, but it is 12 | // also suitable for use with other structures derived from the configuration, 13 | // such as the cached state of a resource or a resource diff. 14 | // 15 | // This package should not be confused with the package helper/schema, which 16 | // is the higher-level helper library used to implement providers themselves. 17 | package configschema 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/configschema/nestingmode_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=NestingMode"; DO NOT EDIT. 2 | 3 | package configschema 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[nestingModeInvalid-0] 12 | _ = x[NestingSingle-1] 13 | _ = x[NestingGroup-2] 14 | _ = x[NestingList-3] 15 | _ = x[NestingSet-4] 16 | _ = x[NestingMap-5] 17 | } 18 | 19 | const _NestingMode_name = "nestingModeInvalidNestingSingleNestingGroupNestingListNestingSetNestingMap" 20 | 21 | var _NestingMode_index = [...]uint8{0, 18, 31, 43, 54, 64, 74} 22 | 23 | func (i NestingMode) String() string { 24 | if i < 0 || i >= NestingMode(len(_NestingMode_index)-1) { 25 | return "NestingMode(" + strconv.FormatInt(int64(i), 10) + ")" 26 | } 27 | return _NestingMode_name[_NestingMode_index[i]:_NestingMode_index[i+1]] 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/helper/hashcode/hashcode.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package hashcode 5 | 6 | import ( 7 | "bytes" 8 | "fmt" 9 | "hash/crc32" 10 | ) 11 | 12 | // String hashes a string to a unique hashcode. 13 | // 14 | // crc32 returns a uint32, but for our use we need 15 | // and non negative integer. Here we cast to an integer 16 | // and invert it if the result is negative. 17 | func String(s string) int { 18 | v := int(crc32.ChecksumIEEE([]byte(s))) 19 | if v >= 0 { 20 | return v 21 | } 22 | if -v >= 0 { 23 | return -v 24 | } 25 | // v == MinInt 26 | return 0 27 | } 28 | 29 | // Strings hashes a list of strings to a unique hashcode. 30 | func Strings(strings []string) string { 31 | var buf bytes.Buffer 32 | 33 | for _, s := range strings { 34 | buf.WriteString(fmt.Sprintf("%s-", s)) 35 | } 36 | 37 | return fmt.Sprintf("%d", String(buf.String())) 38 | } 39 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/tfdiags/diagnostic.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tfdiags 5 | 6 | type Diagnostic interface { 7 | Severity() Severity 8 | Description() Description 9 | } 10 | 11 | type Severity rune 12 | 13 | // This code was previously generated with a go:generate directive calling: 14 | // go run golang.org/x/tools/cmd/stringer -type=Severity 15 | // However, it is now considered frozen and the tooling dependency has been 16 | // removed. The String method can be manually updated if necessary. 17 | 18 | const ( 19 | Error Severity = 'E' 20 | Warning Severity = 'W' 21 | ) 22 | 23 | type Description struct { 24 | Summary string 25 | Detail string 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/tfdiags/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | // Package tfdiags is a utility package for representing errors and 5 | // warnings in a manner that allows us to produce good messages for the 6 | // user. 7 | // 8 | // "diag" is short for "diagnostics", and is meant as a general word for 9 | // feedback to a user about potential or actual problems. 10 | // 11 | // A design goal for this package is for it to be able to provide rich 12 | // messaging where possible but to also be pragmatic about dealing with 13 | // generic errors produced by system components that _can't_ provide 14 | // such rich messaging. As a consequence, the main types in this package -- 15 | // Diagnostics and Diagnostic -- are designed so that they can be "smuggled" 16 | // over an error channel and then be unpacked at the other end, so that 17 | // error diagnostics (at least) can transit through APIs that are not 18 | // aware of this package. 19 | package tfdiags 20 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/internal/tfdiags/error.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tfdiags 5 | 6 | // nativeError is a Diagnostic implementation that wraps a normal Go error 7 | type nativeError struct { 8 | err error 9 | } 10 | 11 | var _ Diagnostic = nativeError{} 12 | 13 | func (e nativeError) Severity() Severity { 14 | return Error 15 | } 16 | 17 | func (e nativeError) Description() Description { 18 | return Description{ 19 | Summary: FormatError(e.err), 20 | } 21 | } 22 | 23 | func FromError(err error) Diagnostic { 24 | return &nativeError{ 25 | err: err, 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /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 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tfdiags 5 | 6 | type simpleWarning string 7 | 8 | var _ Diagnostic = simpleWarning("") 9 | 10 | // SimpleWarning constructs a simple (summary-only) warning diagnostic. 11 | func SimpleWarning(msg string) Diagnostic { 12 | return simpleWarning(msg) 13 | } 14 | 15 | func (e simpleWarning) Severity() Severity { 16 | return Warning 17 | } 18 | 19 | func (e simpleWarning) Description() Description { 20 | return Description{ 21 | Summary: string(e), 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/instancetype.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package terraform 5 | 6 | // This code was previously generated with a go:generate directive calling: 7 | // go run golang.org/x/tools/cmd/stringer -type=instanceType instancetype.go 8 | // However, it is now considered frozen and the tooling dependency has been 9 | // removed. The String method can be manually updated if necessary. 10 | 11 | // instanceType is an enum of the various types of instances store in the State 12 | type instanceType int 13 | 14 | const ( 15 | typeInvalid instanceType = iota 16 | typePrimary 17 | typeTainted 18 | typeDeposed 19 | ) 20 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/instancetype_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=instanceType instancetype.go"; DO NOT EDIT. 2 | 3 | package terraform 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[typeInvalid-0] 12 | _ = x[typePrimary-1] 13 | _ = x[typeTainted-2] 14 | _ = x[typeDeposed-3] 15 | } 16 | 17 | const _instanceType_name = "typeInvalidtypePrimarytypeTaintedtypeDeposed" 18 | 19 | var _instanceType_index = [...]uint8{0, 11, 22, 33, 44} 20 | 21 | func (i instanceType) String() string { 22 | if i < 0 || i >= instanceType(len(_instanceType_index)-1) { 23 | return "instanceType(" + strconv.FormatInt(int64(i), 10) + ")" 24 | } 25 | return _instanceType_name[_instanceType_index[i]:_instanceType_index[i+1]] 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/resource_mode.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package terraform 5 | 6 | // This code was previously generated with a go:generate directive calling: 7 | // go run golang.org/x/tools/cmd/stringer -type=ResourceMode -output=resource_mode_string.go resource_mode.go 8 | // However, it is now considered frozen and the tooling dependency has been 9 | // removed. The String method can be manually updated if necessary. 10 | 11 | // ResourceMode is deprecated, use addrs.ResourceMode instead. 12 | // It has been preserved for backwards compatibility. 13 | type ResourceMode int 14 | 15 | const ( 16 | ManagedResourceMode ResourceMode = iota 17 | DataResourceMode 18 | ) 19 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/resource_mode_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=ResourceMode -output=resource_mode_string.go resource_mode.go"; DO NOT EDIT. 2 | 3 | package terraform 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[ManagedResourceMode-0] 12 | _ = x[DataResourceMode-1] 13 | } 14 | 15 | const _ResourceMode_name = "ManagedResourceModeDataResourceMode" 16 | 17 | var _ResourceMode_index = [...]uint8{0, 19, 35} 18 | 19 | func (i ResourceMode) String() string { 20 | if i < 0 || i >= ResourceMode(len(_ResourceMode_index)-1) { 21 | return "ResourceMode(" + strconv.FormatInt(int64(i), 10) + ")" 22 | } 23 | return _ResourceMode_name[_ResourceMode_index[i]:_ResourceMode_index[i+1]] 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-plugin-sdk/v2/terraform/util.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package terraform 5 | 6 | import ( 7 | "sort" 8 | ) 9 | 10 | // deduplicate a slice of strings 11 | func uniqueStrings(s []string) []string { 12 | if len(s) < 2 { 13 | return s 14 | } 15 | 16 | sort.Strings(s) 17 | result := make([]string, 1, len(s)) 18 | result[0] = s[0] 19 | for i := 1; i < len(s); i++ { 20 | if s[i] != result[len(result)-1] { 21 | result = append(result, s[i]) 22 | } 23 | } 24 | return result 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-registry-address/.copywrite.hcl: -------------------------------------------------------------------------------- 1 | schema_version = 1 2 | 3 | project { 4 | license = "MPL-2.0" 5 | copyright_year = 2021 6 | header_ignore = [] 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-registry-address/.go-version: -------------------------------------------------------------------------------- 1 | 1.19 2 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-registry-address/errors.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package tfaddr 5 | 6 | import ( 7 | "fmt" 8 | ) 9 | 10 | type ParserError struct { 11 | Summary string 12 | Detail string 13 | } 14 | 15 | func (pe *ParserError) Error() string { 16 | return fmt.Sprintf("%s: %s", pe.Summary, pe.Detail) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-svchost/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## v0.1.1 2 | 3 | The `disco.Disco` and `auth.CachingCredentialsSource` implementations are now safe for concurrent calls. Previously concurrent calls could potentially corrupt the internal cache maps or cause the Go runtime to panic. 4 | 5 | ## v0.1.0 6 | 7 | #### Features: 8 | 9 | - Adds hostname `Alias` method to service discovery, making it possible to interpret one hostname as another. 10 | 11 | ## v0.0.1 12 | 13 | Initial release 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-svchost/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to the svchost library 2 | 3 | If you find an issue or would like to add a feature, please add an issue in GitHub. We welcome your contributions - fork the repo and submit a pull request. 4 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/terraform-svchost/README.md: -------------------------------------------------------------------------------- 1 | # terraform-svchost 2 | 3 | [![CI Tests](https://github.com/hashicorp/terraform-svchost/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/hashicorp/terraform-svchost/actions/workflows/ci.yml) 4 | [![GitHub license](https://img.shields.io/github/license/hashicorp/terraform-svchost.svg)](https://github.com/hashicorp/terraform-svchost/blob/main/LICENSE) 5 | [![GoDoc](https://godoc.org/github.com/hashicorp/terraform-svchost?status.svg)](https://godoc.org/github.com/hashicorp/terraform-svchost) 6 | [![Go Report Card](https://goreportcard.com/badge/github.com/hashicorp/terraform-svchost)](https://goreportcard.com/report/github.com/hashicorp/terraform-svchost) 7 | [![GitHub issues](https://img.shields.io/github/issues/hashicorp/terraform-svchost.svg)](https://github.com/hashicorp/terraform-svchost/issues) 8 | 9 | This package provides friendly hostnames, and is used by [terraform](https://github.com/hashicorp/terraform). 10 | -------------------------------------------------------------------------------- /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/util.go: -------------------------------------------------------------------------------- 1 | package yamux 2 | 3 | import ( 4 | "sync" 5 | "time" 6 | ) 7 | 8 | // Logger is a abstract of *log.Logger 9 | type Logger interface { 10 | Print(v ...interface{}) 11 | Printf(format string, v ...interface{}) 12 | Println(v ...interface{}) 13 | } 14 | 15 | var ( 16 | timerPool = &sync.Pool{ 17 | New: func() interface{} { 18 | timer := time.NewTimer(time.Hour * 1e6) 19 | timer.Stop() 20 | return timer 21 | }, 22 | } 23 | ) 24 | 25 | // asyncSendErr is used to try an async send of an error 26 | func asyncSendErr(ch chan error, err error) { 27 | if ch == nil { 28 | return 29 | } 30 | select { 31 | case ch <- err: 32 | default: 33 | } 34 | } 35 | 36 | // asyncNotify is used to signal a waiting goroutine 37 | func asyncNotify(ch chan struct{}) { 38 | select { 39 | case ch <- struct{}{}: 40 | default: 41 | } 42 | } 43 | 44 | // min computes the minimum of two values 45 | func min(a, b uint32) uint32 { 46 | if a < b { 47 | return a 48 | } 49 | return b 50 | } 51 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/colorable_appengine.go: -------------------------------------------------------------------------------- 1 | //go:build appengine 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 | 32 | // EnableColorsStdout enable colors if possible. 33 | func EnableColorsStdout(enabled *bool) func() { 34 | if enabled != nil { 35 | *enabled = true 36 | } 37 | return func() {} 38 | } 39 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/colorable_others.go: -------------------------------------------------------------------------------- 1 | //go:build !windows && !appengine 2 | // +build !windows,!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 | 32 | // EnableColorsStdout enable colors if possible. 33 | func EnableColorsStdout(enabled *bool) func() { 34 | if enabled != nil { 35 | *enabled = true 36 | } 37 | return func() {} 38 | } 39 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/go.test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -race -coverprofile=profile.out -covermode=atomic "$d" 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /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.test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -race -coverprofile=profile.out -covermode=atomic "$d" 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_bsd.go: -------------------------------------------------------------------------------- 1 | //go:build (darwin || freebsd || openbsd || netbsd || dragonfly || hurd) && !appengine && !tinygo 2 | // +build darwin freebsd openbsd netbsd dragonfly hurd 3 | // +build !appengine 4 | // +build !tinygo 5 | 6 | package isatty 7 | 8 | import "golang.org/x/sys/unix" 9 | 10 | // IsTerminal return true if the file descriptor is terminal. 11 | func IsTerminal(fd uintptr) bool { 12 | _, err := unix.IoctlGetTermios(int(fd), unix.TIOCGETA) 13 | return err == nil 14 | } 15 | 16 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 17 | // terminal. This is also always false on this environment. 18 | func IsCygwinTerminal(fd uintptr) bool { 19 | return false 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_others.go: -------------------------------------------------------------------------------- 1 | //go:build (appengine || js || nacl || tinygo || wasm) && !windows 2 | // +build appengine js nacl tinygo wasm 3 | // +build !windows 4 | 5 | package isatty 6 | 7 | // IsTerminal returns true if the file descriptor is terminal which 8 | // is always false on js and appengine classic which is a sandboxed PaaS. 9 | func IsTerminal(fd uintptr) bool { 10 | return false 11 | } 12 | 13 | // IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2 14 | // terminal. This is also always false on this environment. 15 | func IsCygwinTerminal(fd uintptr) bool { 16 | return false 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_plan9.go: -------------------------------------------------------------------------------- 1 | //go:build plan9 2 | // +build plan9 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | ) 9 | 10 | // IsTerminal returns true if the given file descriptor is a terminal. 11 | func IsTerminal(fd uintptr) bool { 12 | path, err := syscall.Fd2path(int(fd)) 13 | if err != nil { 14 | return false 15 | } 16 | return path == "/dev/cons" || path == "/mnt/term/dev/cons" 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_solaris.go: -------------------------------------------------------------------------------- 1 | //go:build solaris && !appengine 2 | // +build solaris,!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: https://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libc/port/gen/isatty.c 12 | func IsTerminal(fd uintptr) bool { 13 | _, err := unix.IoctlGetTermio(int(fd), unix.TCGETA) 14 | return err == nil 15 | } 16 | 17 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 18 | // terminal. This is also always false on this environment. 19 | func IsCygwinTerminal(fd uintptr) bool { 20 | return false 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_tcgets.go: -------------------------------------------------------------------------------- 1 | //go:build (linux || aix || zos) && !appengine && !tinygo 2 | // +build linux aix zos 3 | // +build !appengine 4 | // +build !tinygo 5 | 6 | package isatty 7 | 8 | import "golang.org/x/sys/unix" 9 | 10 | // IsTerminal return true if the file descriptor is terminal. 11 | func IsTerminal(fd uintptr) bool { 12 | _, err := unix.IoctlGetTermios(int(fd), unix.TCGETS) 13 | return err == nil 14 | } 15 | 16 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 17 | // terminal. This is also always false on this environment. 18 | func IsCygwinTerminal(fd uintptr) bool { 19 | return false 20 | } 21 | -------------------------------------------------------------------------------- /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/go-testing-interface/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.x 5 | - tip 6 | 7 | script: 8 | - go test 9 | 10 | matrix: 11 | allow_failures: 12 | - go: tip 13 | -------------------------------------------------------------------------------- /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/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/stripe/stripe-go/v78/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .env 3 | *.test 4 | *.coverprofile 5 | /.idea 6 | -------------------------------------------------------------------------------- /vendor/github.com/stripe/stripe-go/v78/CHANGELOG: -------------------------------------------------------------------------------- 1 | CHANGELOG has changed to be Markdown-formatted. Please see CHANGELOG.md. 2 | -------------------------------------------------------------------------------- /vendor/github.com/stripe/stripe-go/v78/OPENAPI_VERSION: -------------------------------------------------------------------------------- 1 | v1083 -------------------------------------------------------------------------------- /vendor/github.com/stripe/stripe-go/v78/VERSION: -------------------------------------------------------------------------------- 1 | 78.12.0 2 | -------------------------------------------------------------------------------- /vendor/github.com/stripe/stripe-go/v78/api_version.go: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // File generated from our OpenAPI spec 4 | // 5 | // 6 | 7 | package stripe 8 | 9 | const ( 10 | apiVersion string = "2024-04-10" 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/stripe/stripe-go/v78/application.go: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // File generated from our OpenAPI spec 4 | // 5 | // 6 | 7 | package stripe 8 | 9 | import "encoding/json" 10 | 11 | type Application struct { 12 | Deleted bool `json:"deleted"` 13 | // Unique identifier for the object. 14 | ID string `json:"id"` 15 | // The name of the application. 16 | Name string `json:"name"` 17 | // String representing the object's type. Objects of the same type share the same value. 18 | Object string `json:"object"` 19 | } 20 | 21 | // UnmarshalJSON handles deserialization of an Application. 22 | // This custom unmarshaling is needed because the resulting 23 | // property may be an id or the full struct if it was expanded. 24 | func (a *Application) UnmarshalJSON(data []byte) error { 25 | if id, ok := ParseID(data); ok { 26 | a.ID = id 27 | return nil 28 | } 29 | 30 | type application Application 31 | var v application 32 | if err := json.Unmarshal(data, &v); err != nil { 33 | return err 34 | } 35 | 36 | *a = Application(v) 37 | return nil 38 | } 39 | -------------------------------------------------------------------------------- /vendor/github.com/stripe/stripe-go/v78/entitlements_activeentitlementsummary.go: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // File generated from our OpenAPI spec 4 | // 5 | // 6 | 7 | package stripe 8 | 9 | // A summary of a customer's active entitlements. 10 | type EntitlementsActiveEntitlementSummary struct { 11 | // The customer that is entitled to this feature. 12 | Customer string `json:"customer"` 13 | // The list of entitlements this customer has. 14 | Entitlements *EntitlementsActiveEntitlementList `json:"entitlements"` 15 | // Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. 16 | Livemode bool `json:"livemode"` 17 | // String representing the object's type. Objects of the same type share the same value. 18 | Object string `json:"object"` 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/stripe/stripe-go/v78/file/test_data.pdf: -------------------------------------------------------------------------------- 1 | %PDF-1.1 2 | %¥±ë 3 | 4 | 1 0 obj 5 | << /Type /Catalog 6 | /Pages 2 0 R 7 | >> 8 | endobj 9 | 10 | 2 0 obj 11 | << /Type /Pages 12 | /Kids [3 0 R] 13 | /Count 1 14 | /MediaBox [0 0 300 144] 15 | >> 16 | endobj 17 | 18 | 3 0 obj 19 | << /Type /Page 20 | /Parent 2 0 R 21 | /Resources 22 | << /Font 23 | << /F1 24 | << /Type /Font 25 | /Subtype /Type1 26 | /BaseFont /Times-Roman 27 | >> 28 | >> 29 | >> 30 | /Contents 4 0 R 31 | >> 32 | endobj 33 | 34 | 4 0 obj 35 | << /Length 55 >> 36 | stream 37 | BT 38 | /F1 18 Tf 39 | 0 0 Td 40 | (Hello World) Tj 41 | ET 42 | endstream 43 | endobj 44 | 45 | xref 46 | 0 5 47 | 0000000000 65535 f 48 | 0000000018 00000 n 49 | 0000000077 00000 n 50 | 0000000178 00000 n 51 | 0000000457 00000 n 52 | trailer 53 | << /Root 1 0 R 54 | /Size 5 55 | >> 56 | startxref 57 | 565 58 | %%EOF 59 | -------------------------------------------------------------------------------- /vendor/github.com/stripe/stripe-go/v78/mandate/client.go: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // File generated from our OpenAPI spec 4 | // 5 | // 6 | 7 | // Package mandate provides the /mandates APIs 8 | package mandate 9 | 10 | import ( 11 | "net/http" 12 | 13 | stripe "github.com/stripe/stripe-go/v78" 14 | ) 15 | 16 | // Client is used to invoke /mandates APIs. 17 | type Client struct { 18 | B stripe.Backend 19 | Key string 20 | } 21 | 22 | // Retrieves a Mandate object. 23 | func Get(id string, params *stripe.MandateParams) (*stripe.Mandate, error) { 24 | return getC().Get(id, params) 25 | } 26 | 27 | // Retrieves a Mandate object. 28 | func (c Client) Get(id string, params *stripe.MandateParams) (*stripe.Mandate, error) { 29 | path := stripe.FormatURLPath("/v1/mandates/%s", id) 30 | mandate := &stripe.Mandate{} 31 | err := c.B.Call(http.MethodGet, path, c.Key, params, mandate) 32 | return mandate, err 33 | } 34 | 35 | func getC() Client { 36 | return Client{stripe.GetBackend(stripe.APIBackend), stripe.Key} 37 | } 38 | -------------------------------------------------------------------------------- /vendor/github.com/stripe/stripe-go/v78/staticcheck.conf: -------------------------------------------------------------------------------- 1 | checks = ["all", "-ST1005", "-ST1021"] 2 | -------------------------------------------------------------------------------- /vendor/github.com/stripe/stripe-go/v78/testhelpers_refund.go: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // File generated from our OpenAPI spec 4 | // 5 | // 6 | 7 | package stripe 8 | 9 | // Expire a refund with a status of requires_action. 10 | type TestHelpersRefundExpireParams struct { 11 | Params `form:"*"` 12 | // Specifies which fields in the response should be expanded. 13 | Expand []*string `form:"expand"` 14 | } 15 | 16 | // AddExpand appends a new field to expand. 17 | func (p *TestHelpersRefundExpireParams) AddExpand(f string) { 18 | p.Expand = append(p.Expand, &f) 19 | } 20 | -------------------------------------------------------------------------------- /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/vmihailenco/msgpack/tag.go: -------------------------------------------------------------------------------- 1 | package msgpack 2 | 3 | import ( 4 | "strings" 5 | ) 6 | 7 | type tagOptions string 8 | 9 | func (o tagOptions) Get(name string) (string, bool) { 10 | s := string(o) 11 | for len(s) > 0 { 12 | var next string 13 | idx := strings.IndexByte(s, ',') 14 | if idx >= 0 { 15 | s, next = s[:idx], s[idx+1:] 16 | } 17 | if strings.HasPrefix(s, name) { 18 | return s[len(name):], true 19 | } 20 | s = next 21 | } 22 | return "", false 23 | } 24 | 25 | func (o tagOptions) Contains(name string) bool { 26 | _, ok := o.Get(name) 27 | return ok 28 | } 29 | 30 | func parseTag(tag string) (string, tagOptions) { 31 | if idx := strings.IndexByte(tag, ','); idx != -1 { 32 | name := tag[:idx] 33 | if strings.IndexByte(name, ':') == -1 { 34 | return name, tagOptions(tag[idx+1:]) 35 | } 36 | } 37 | 38 | if strings.IndexByte(tag, ':') == -1 { 39 | return tag, "" 40 | } 41 | return "", tagOptions(tag) 42 | } 43 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/msgpack/v5/.prettierrc: -------------------------------------------------------------------------------- 1 | semi: false 2 | singleQuote: true 3 | proseWrap: always 4 | printWidth: 100 5 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/msgpack/v5/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | 4 | go: 5 | - 1.15.x 6 | - 1.16.x 7 | - tip 8 | 9 | matrix: 10 | allow_failures: 11 | - go: tip 12 | 13 | env: 14 | - GO111MODULE=on 15 | 16 | go_import_path: github.com/vmihailenco/msgpack 17 | 18 | before_install: 19 | - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go 20 | env GOPATH)/bin v1.31.0 21 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/msgpack/v5/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | go test ./... 3 | go test ./... -short -race 4 | go test ./... -run=NONE -bench=. -benchmem 5 | env GOOS=linux GOARCH=386 go test ./... 6 | go vet 7 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/msgpack/v5/commitlint.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { extends: ['@commitlint/config-conventional'] } 2 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/msgpack/v5/decode_typgen.go: -------------------------------------------------------------------------------- 1 | package msgpack 2 | 3 | import ( 4 | "reflect" 5 | "sync" 6 | ) 7 | 8 | var cachedValues struct { 9 | m map[reflect.Type]chan reflect.Value 10 | sync.RWMutex 11 | } 12 | 13 | func cachedValue(t reflect.Type) reflect.Value { 14 | cachedValues.RLock() 15 | ch := cachedValues.m[t] 16 | cachedValues.RUnlock() 17 | if ch != nil { 18 | return <-ch 19 | } 20 | 21 | cachedValues.Lock() 22 | defer cachedValues.Unlock() 23 | if ch = cachedValues.m[t]; ch != nil { 24 | return <-ch 25 | } 26 | 27 | ch = make(chan reflect.Value, 256) 28 | go func() { 29 | for { 30 | ch <- reflect.New(t) 31 | } 32 | }() 33 | if cachedValues.m == nil { 34 | cachedValues.m = make(map[reflect.Type]chan reflect.Value, 8) 35 | } 36 | cachedValues.m[t] = ch 37 | return <-ch 38 | } 39 | 40 | func (d *Decoder) newValue(t reflect.Type) reflect.Value { 41 | if d.flags&usePreallocateValues == 0 { 42 | return reflect.New(t) 43 | } 44 | 45 | return cachedValue(t) 46 | } 47 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/msgpack/v5/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "msgpack", 3 | "version": "5.4.1" 4 | } 5 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/msgpack/v5/safe.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package msgpack 4 | 5 | // bytesToString converts byte slice to string. 6 | func bytesToString(b []byte) string { 7 | return string(b) 8 | } 9 | 10 | // stringToBytes converts string to byte slice. 11 | func stringToBytes(s string) []byte { 12 | return []byte(s) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/msgpack/v5/unsafe.go: -------------------------------------------------------------------------------- 1 | // +build !appengine 2 | 3 | package msgpack 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | // bytesToString converts byte slice to string. 10 | func bytesToString(b []byte) string { 11 | return *(*string)(unsafe.Pointer(&b)) 12 | } 13 | 14 | // stringToBytes converts string to byte slice. 15 | func stringToBytes(s string) []byte { 16 | return *(*[]byte)(unsafe.Pointer( 17 | &struct { 18 | string 19 | Cap int 20 | }{s, len(s)}, 21 | )) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/msgpack/v5/version.go: -------------------------------------------------------------------------------- 1 | package msgpack 2 | 3 | // Version is the current release version. 4 | func Version() string { 5 | return "5.4.1" 6 | } 7 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/tagparser/v2/.travis.yml: -------------------------------------------------------------------------------- 1 | dist: xenial 2 | language: go 3 | 4 | go: 5 | - 1.14.x 6 | - 1.15.x 7 | - tip 8 | 9 | matrix: 10 | allow_failures: 11 | - go: tip 12 | 13 | env: 14 | - GO111MODULE=on 15 | 16 | go_import_path: github.com/vmihailenco/tagparser 17 | 18 | before_install: 19 | - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.17.1 20 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/tagparser/v2/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | go test ./... 3 | go test ./... -short -race 4 | go test ./... -run=NONE -bench=. -benchmem 5 | env GOOS=linux GOARCH=386 go test ./... 6 | go vet ./... 7 | go get github.com/gordonklaus/ineffassign 8 | ineffassign . 9 | golangci-lint run 10 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/tagparser/v2/README.md: -------------------------------------------------------------------------------- 1 | # Opinionated Golang tag parser 2 | 3 | [![Build Status](https://travis-ci.org/vmihailenco/tagparser.png?branch=master)](https://travis-ci.org/vmihailenco/tagparser) 4 | [![GoDoc](https://godoc.org/github.com/vmihailenco/tagparser?status.svg)](https://godoc.org/github.com/vmihailenco/tagparser) 5 | 6 | ## Installation 7 | 8 | Install: 9 | 10 | ```shell 11 | go get github.com/vmihailenco/tagparser/v2 12 | ``` 13 | 14 | ## Quickstart 15 | 16 | ```go 17 | func ExampleParse() { 18 | tag := tagparser.Parse("some_name,key:value,key2:'complex value'") 19 | fmt.Println(tag.Name) 20 | fmt.Println(tag.Options) 21 | // Output: some_name 22 | // map[key:value key2:'complex value'] 23 | } 24 | ``` 25 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/tagparser/v2/internal/safe.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package internal 4 | 5 | func BytesToString(b []byte) string { 6 | return string(b) 7 | } 8 | 9 | func StringToBytes(s string) []byte { 10 | return []byte(s) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/vmihailenco/tagparser/v2/internal/unsafe.go: -------------------------------------------------------------------------------- 1 | // +build !appengine 2 | 3 | package internal 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | // BytesToString converts byte slice to string. 10 | func BytesToString(b []byte) string { 11 | return *(*string)(unsafe.Pointer(&b)) 12 | } 13 | 14 | // StringToBytes converts string to byte slice. 15 | func StringToBytes(s string) []byte { 16 | return *(*[]byte)(unsafe.Pointer( 17 | &struct { 18 | string 19 | Cap int 20 | }{s, len(s)}, 21 | )) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/convert/conversion_capsule.go: -------------------------------------------------------------------------------- 1 | package convert 2 | 3 | import ( 4 | "github.com/zclconf/go-cty/cty" 5 | ) 6 | 7 | func conversionToCapsule(inTy, outTy cty.Type, fn func(inTy cty.Type) func(cty.Value, cty.Path) (interface{}, error)) conversion { 8 | rawConv := fn(inTy) 9 | if rawConv == nil { 10 | return nil 11 | } 12 | 13 | return func(in cty.Value, path cty.Path) (cty.Value, error) { 14 | rawV, err := rawConv(in, path) 15 | if err != nil { 16 | return cty.NilVal, err 17 | } 18 | return cty.CapsuleVal(outTy, rawV), nil 19 | } 20 | } 21 | 22 | func conversionFromCapsule(inTy, outTy cty.Type, fn func(outTy cty.Type) func(interface{}, cty.Path) (cty.Value, error)) conversion { 23 | rawConv := fn(outTy) 24 | if rawConv == nil { 25 | return nil 26 | } 27 | 28 | return func(in cty.Value, path cty.Path) (cty.Value, error) { 29 | return rawConv(in.EncapsulatedValue(), path) 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/convert/doc.go: -------------------------------------------------------------------------------- 1 | // Package convert contains some routines for converting between cty types. 2 | // The intent of providing this package is to encourage applications using 3 | // cty to have consistent type conversion behavior for maximal interoperability 4 | // when Values pass from one application to another. 5 | // 6 | // The conversions are categorized into two categories. "Safe" conversions are 7 | // ones that are guaranteed to succeed if given a non-null value of the 8 | // appropriate source type. "Unsafe" conversions, on the other hand, are valid 9 | // for only a subset of input values, and thus may fail with an error when 10 | // called for values outside of that valid subset. 11 | // 12 | // The functions whose names end in Unsafe support all of the conversions that 13 | // are supported by the corresponding functions whose names do not have that 14 | // suffix, and then additional unsafe conversions as well. 15 | package convert 16 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/ctystrings/normalize.go: -------------------------------------------------------------------------------- 1 | package ctystrings 2 | 3 | import ( 4 | "golang.org/x/text/unicode/norm" 5 | ) 6 | 7 | // Normalize applies NFC normalization to the given string, returning the 8 | // transformed string. 9 | // 10 | // This function achieves the same effect as wrapping a string in a value 11 | // using [cty.StringVal] and then unwrapping it again using [Value.AsString]. 12 | func Normalize(str string) string { 13 | return norm.NFC.String(str) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/zclconf/go-cty/cty/doc.go: -------------------------------------------------------------------------------- 1 | // Package cty (pronounced see-tie) provides some infrastructure for a type 2 | // system that might be useful for applications that need to represent 3 | // configuration values provided by the user whose types are not known 4 | // at compile time, particularly if the calling application also allows 5 | // such values to be used in expressions. 6 | // 7 | // The type system consists of primitive types Number, String and Bool, as 8 | // well as List and Map collection types and Object types that can have 9 | // arbitrarily-typed sets of attributes. 10 | // 11 | // A set of operations is defined on these types, which is accessible via 12 | // the wrapper struct Value, which annotates the raw, internal representation 13 | // of a value with its corresponding type. 14 | // 15 | // This package is oriented towards being a building block for configuration 16 | // languages used to bootstrap an application. It is not optimized for use 17 | // in tight loops where CPU time or memory pressure are a concern. 18 | package cty 19 | -------------------------------------------------------------------------------- /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[T any] struct { 4 | vals []T 5 | idx int 6 | } 7 | 8 | func (it *Iterator[T]) Value() T { 9 | return it.vals[it.idx] 10 | } 11 | 12 | func (it *Iterator[T]) Next() bool { 13 | it.idx++ 14 | return it.idx < len(it.vals) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | h2i/h2i 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/config_pre_go124.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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.24 6 | 7 | package http2 8 | 9 | import "net/http" 10 | 11 | // Pre-Go 1.24 fallback. 12 | // The Server.HTTP2 and Transport.HTTP2 config fields were added in Go 1.24. 13 | 14 | func fillNetHTTPServerConfig(conf *http2Config, srv *http.Server) {} 15 | 16 | func fillNetHTTPTransportConfig(conf *http2Config, tr *http.Transport) {} 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/timer.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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 | package http2 5 | 6 | import "time" 7 | 8 | // A timer is a time.Timer, as an interface which can be replaced in tests. 9 | type timer = interface { 10 | C() <-chan time.Time 11 | Reset(d time.Duration) bool 12 | Stop() bool 13 | } 14 | 15 | // timeTimer adapts a time.Timer to the timer interface. 16 | type timeTimer struct { 17 | *time.Timer 18 | } 19 | 20 | func (t timeTimer) C() <-chan time.Time { return t.Timer.C } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/idna/go118.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | // Copyright 2021 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | //go:build go1.18 8 | 9 | package idna 10 | 11 | // Transitional processing is disabled by default in Go 1.18. 12 | // https://golang.org/issue/47510 13 | const transitionalLookup = false 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/idna/pre_go118.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | // Copyright 2021 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | //go:build !go1.18 8 | 9 | package idna 10 | 11 | const transitionalLookup = true 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/idna/trie12.0.0.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | // Copyright 2016 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | //go:build !go1.16 8 | 9 | package idna 10 | 11 | // appendMapping appends the mapping for the respective rune. isMapped must be 12 | // true. A mapping is a categorization of a rune as defined in UTS #46. 13 | func (c info) appendMapping(b []byte, s string) []byte { 14 | index := int(c >> indexShift) 15 | if c&xorBit == 0 { 16 | s := mappings[index:] 17 | return append(b, s[1:s[0]+1]...) 18 | } 19 | b = append(b, s...) 20 | if c&inlineXOR == inlineXOR { 21 | // TODO: support and handle two-byte inline masks 22 | b[len(b)-1] ^= byte(index) 23 | } else { 24 | for p := len(b) - int(xorData[index]); p < len(b); p++ { 25 | index++ 26 | b[p] ^= xorData[index] 27 | } 28 | } 29 | return b 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/idna/trie13.0.0.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | // Copyright 2016 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | //go:build go1.16 8 | 9 | package idna 10 | 11 | // appendMapping appends the mapping for the respective rune. isMapped must be 12 | // true. A mapping is a categorization of a rune as defined in UTS #46. 13 | func (c info) appendMapping(b []byte, s string) []byte { 14 | index := int(c >> indexShift) 15 | if c&xorBit == 0 { 16 | p := index 17 | return append(b, mappings[mappingIndex[p]:mappingIndex[p+1]]...) 18 | } 19 | b = append(b, s...) 20 | if c&inlineXOR == inlineXOR { 21 | // TODO: support and handle two-byte inline masks 22 | b[len(b)-1] ^= byte(index) 23 | } else { 24 | for p := len(b) - int(xorData[index]); p < len(b); p++ { 25 | index++ 26 | b[p] ^= xorData[index] 27 | } 28 | } 29 | return b 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sync/errgroup/go120.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 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.20 6 | 7 | package errgroup 8 | 9 | import "context" 10 | 11 | func withCancelCause(parent context.Context) (context.Context, func(error)) { 12 | return context.WithCancelCause(parent) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sync/errgroup/pre_go120.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 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.20 6 | 7 | package errgroup 8 | 9 | import "context" 10 | 11 | func withCancelCause(parent context.Context) (context.Context, func(error)) { 12 | ctx, cancel := context.WithCancel(parent) 13 | return ctx, func(error) { cancel() } 14 | } 15 | -------------------------------------------------------------------------------- /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 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | type Signal = syscall.Signal 12 | type Errno = syscall.Errno 13 | type SysProcAttr = syscall.SysProcAttr 14 | -------------------------------------------------------------------------------- /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 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 11 | // 12 | 13 | TEXT ·syscall6(SB),NOSPLIT,$0-88 14 | JMP syscall·syscall6(SB) 15 | 16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSyscall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_386.s: -------------------------------------------------------------------------------- 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 (freebsd || netbsd || openbsd) && gc 6 | 7 | #include "textflag.h" 8 | 9 | // System call support for 386 BSD 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-28 15 | JMP syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 18 | JMP syscall·Syscall6(SB) 19 | 20 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 21 | JMP syscall·Syscall9(SB) 22 | 23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 24 | JMP syscall·RawSyscall(SB) 25 | 26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 27 | JMP syscall·RawSyscall6(SB) 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_amd64.s: -------------------------------------------------------------------------------- 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 (darwin || dragonfly || freebsd || netbsd || openbsd) && gc 6 | 7 | #include "textflag.h" 8 | 9 | // System call support for AMD64 BSD 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-56 15 | JMP syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 18 | JMP syscall·Syscall6(SB) 19 | 20 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 21 | JMP syscall·Syscall9(SB) 22 | 23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 24 | JMP syscall·RawSyscall(SB) 25 | 26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 27 | JMP syscall·RawSyscall6(SB) 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_arm.s: -------------------------------------------------------------------------------- 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 (freebsd || netbsd || openbsd) && gc 6 | 7 | #include "textflag.h" 8 | 9 | // System call support for ARM BSD 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-28 15 | B syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 18 | B syscall·Syscall6(SB) 19 | 20 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 21 | B syscall·Syscall9(SB) 22 | 23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 24 | B syscall·RawSyscall(SB) 25 | 26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 27 | B syscall·RawSyscall6(SB) 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_arm64.s: -------------------------------------------------------------------------------- 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 (darwin || freebsd || netbsd || openbsd) && gc 6 | 7 | #include "textflag.h" 8 | 9 | // System call support for ARM64 BSD 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-56 15 | JMP syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 18 | JMP syscall·Syscall6(SB) 19 | 20 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 21 | JMP syscall·Syscall9(SB) 22 | 23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 24 | JMP syscall·RawSyscall(SB) 25 | 26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 27 | JMP syscall·RawSyscall6(SB) 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2022 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 || netbsd || openbsd) && gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for ppc64, BSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_riscv64.s: -------------------------------------------------------------------------------- 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 (darwin || freebsd || netbsd || openbsd) && gc 6 | 7 | #include "textflag.h" 8 | 9 | // System call support for RISCV64 BSD 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-56 15 | JMP syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 18 | JMP syscall·Syscall6(SB) 19 | 20 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 21 | JMP syscall·Syscall9(SB) 22 | 23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 24 | JMP syscall·RawSyscall(SB) 25 | 26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 27 | JMP syscall·RawSyscall6(SB) 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s: -------------------------------------------------------------------------------- 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 gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for mips64, OpenBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /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 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 11 | // 12 | 13 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 14 | JMP syscall·sysvicall6(SB) 15 | 16 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSysvicall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/bluetooth_linux.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 | // Bluetooth sockets and messages 6 | 7 | package unix 8 | 9 | // Bluetooth Protocols 10 | const ( 11 | BTPROTO_L2CAP = 0 12 | BTPROTO_HCI = 1 13 | BTPROTO_SCO = 2 14 | BTPROTO_RFCOMM = 3 15 | BTPROTO_BNEP = 4 16 | BTPROTO_CMTP = 5 17 | BTPROTO_HIDP = 6 18 | BTPROTO_AVDTP = 7 19 | ) 20 | 21 | const ( 22 | HCI_CHANNEL_RAW = 0 23 | HCI_CHANNEL_USER = 1 24 | HCI_CHANNEL_MONITOR = 2 25 | HCI_CHANNEL_CONTROL = 3 26 | HCI_CHANNEL_LOGGING = 4 27 | ) 28 | 29 | // Socketoption Level 30 | const ( 31 | SOL_BLUETOOTH = 0x112 32 | SOL_HCI = 0x0 33 | SOL_L2CAP = 0x6 34 | SOL_RFCOMM = 0x12 35 | SOL_SCO = 0x11 36 | ) 37 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | const ( 10 | R_OK = 0x4 11 | W_OK = 0x2 12 | X_OK = 0x1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_aix_ppc.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 && ppc 6 | 7 | // Functions to access/create device major and minor numbers matching the 8 | // encoding used by AIX. 9 | 10 | package unix 11 | 12 | // Major returns the major component of a Linux device number. 13 | func Major(dev uint64) uint32 { 14 | return uint32((dev >> 16) & 0xffff) 15 | } 16 | 17 | // Minor returns the minor component of a Linux device number. 18 | func Minor(dev uint64) uint32 { 19 | return uint32(dev & 0xffff) 20 | } 21 | 22 | // Mkdev returns a Linux device number generated from the given major and minor 23 | // components. 24 | func Mkdev(major, minor uint32) uint64 { 25 | return uint64(((major) << 16) | (minor)) 26 | } 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_aix_ppc64.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 && ppc64 6 | 7 | // Functions to access/create device major and minor numbers matching the 8 | // encoding used AIX. 9 | 10 | package unix 11 | 12 | // Major returns the major component of a Linux device number. 13 | func Major(dev uint64) uint32 { 14 | return uint32((dev & 0x3fffffff00000000) >> 32) 15 | } 16 | 17 | // Minor returns the minor component of a Linux device number. 18 | func Minor(dev uint64) uint32 { 19 | return uint32((dev & 0x00000000ffffffff) >> 0) 20 | } 21 | 22 | // Mkdev returns a Linux device number generated from the given major and minor 23 | // components. 24 | func Mkdev(major, minor uint32) uint64 { 25 | var DEVNO64 uint64 26 | DEVNO64 = 0x8000000000000000 27 | return ((uint64(major) << 32) | (uint64(minor) & 0x00000000FFFFFFFF) | DEVNO64) 28 | } 29 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_darwin.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 | // Functions to access/create device major and minor numbers matching the 6 | // encoding used in Darwin's sys/types.h header. 7 | 8 | package unix 9 | 10 | // Major returns the major component of a Darwin device number. 11 | func Major(dev uint64) uint32 { 12 | return uint32((dev >> 24) & 0xff) 13 | } 14 | 15 | // Minor returns the minor component of a Darwin device number. 16 | func Minor(dev uint64) uint32 { 17 | return uint32(dev & 0xffffff) 18 | } 19 | 20 | // Mkdev returns a Darwin device number generated from the given major and minor 21 | // components. 22 | func Mkdev(major, minor uint32) uint64 { 23 | return (uint64(major) << 24) | uint64(minor) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_zos.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 zos && s390x 6 | 7 | // Functions to access/create device major and minor numbers matching the 8 | // encoding used by z/OS. 9 | // 10 | // The information below is extracted and adapted from macros. 11 | 12 | package unix 13 | 14 | // Major returns the major component of a z/OS device number. 15 | func Major(dev uint64) uint32 { 16 | return uint32((dev >> 16) & 0x0000FFFF) 17 | } 18 | 19 | // Minor returns the minor component of a z/OS device number. 20 | func Minor(dev uint64) uint32 { 21 | return uint32(dev & 0x0000FFFF) 22 | } 23 | 24 | // Mkdev returns a z/OS device number generated from the given major and minor 25 | // components. 26 | func Mkdev(major, minor uint32) uint64 { 27 | return (uint64(major) << 16) | uint64(minor) 28 | } 29 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | const isBigEndian = true 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh 6 | 7 | package unix 8 | 9 | const isBigEndian = false 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/env_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | 7 | // Unix environment variables. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getenv(key string) (value string, found bool) { 14 | return syscall.Getenv(key) 15 | } 16 | 17 | func Setenv(key, value string) error { 18 | return syscall.Setenv(key, value) 19 | } 20 | 21 | func Clearenv() { 22 | syscall.Clearenv() 23 | } 24 | 25 | func Environ() []string { 26 | return syscall.Environ() 27 | } 28 | 29 | func Unsetenv(key string) error { 30 | return syscall.Unsetenv(key) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package unix 6 | 7 | import "unsafe" 8 | 9 | // FcntlInt performs a fcntl syscall on fd with the provided command and argument. 10 | func FcntlInt(fd uintptr, cmd, arg int) (int, error) { 11 | return fcntl(int(fd), cmd, arg) 12 | } 13 | 14 | // FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. 15 | func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { 16 | _, err := fcntl(int(fd), cmd, int(uintptr(unsafe.Pointer(lk)))) 17 | return err 18 | } 19 | 20 | // FcntlFstore performs a fcntl syscall for the F_PREALLOCATE command. 21 | func FcntlFstore(fd uintptr, cmd int, fstore *Fstore_t) error { 22 | _, err := fcntl(int(fd), cmd, int(uintptr(unsafe.Pointer(fstore)))) 23 | return err 24 | } 25 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | func init() { 10 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 11 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 12 | fcntl64Syscall = SYS_FCNTL64 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fdset.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 || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | // Set adds fd to the set fds. 10 | func (fds *FdSet) Set(fd int) { 11 | fds.Bits[fd/NFDBITS] |= (1 << (uintptr(fd) % NFDBITS)) 12 | } 13 | 14 | // Clear removes fd from the set fds. 15 | func (fds *FdSet) Clear(fd int) { 16 | fds.Bits[fd/NFDBITS] &^= (1 << (uintptr(fd) % NFDBITS)) 17 | } 18 | 19 | // IsSet returns whether fd is in the set fds. 20 | func (fds *FdSet) IsSet(fd int) bool { 21 | return fds.Bits[fd/NFDBITS]&(1<<(uintptr(fd)%NFDBITS)) != 0 22 | } 23 | 24 | // Zero clears the set fds. 25 | func (fds *FdSet) Zero() { 26 | for i := range fds.Bits { 27 | fds.Bits[i] = 0 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //extern gettimeofday 12 | func realGettimeofday(*Timeval, *byte) int32 13 | 14 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 15 | r := realGettimeofday(tv, nil) 16 | if r < 0 { 17 | return syscall.GetErrno() 18 | } 19 | return 0 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/mmap_nomremap.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 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 || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | var mapper = &mmapper{ 10 | active: make(map[*byte][]byte), 11 | mmap: mmap, 12 | munmap: munmap, 13 | } 14 | -------------------------------------------------------------------------------- /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 || zos 6 | 7 | // For Unix, get the pagesize from the runtime. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getpagesize() int { 14 | return syscall.Getpagesize() 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/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 | 7 | package unix 8 | 9 | func ptrace(request int, pid int, addr uintptr, data uintptr) error { 10 | return ptrace1(request, pid, addr, data) 11 | } 12 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { 10 | return ENOTSUP 11 | } 12 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | import ( 10 | "runtime" 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = true 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | runtime.RaceAcquire(addr) 18 | } 19 | 20 | func raceReleaseMerge(addr unsafe.Pointer) { 21 | runtime.RaceReleaseMerge(addr) 22 | } 23 | 24 | func raceReadRange(addr unsafe.Pointer, len int) { 25 | runtime.RaceReadRange(addr, len) 26 | } 27 | 28 | func raceWriteRange(addr unsafe.Pointer, len int) { 29 | runtime.RaceWriteRange(addr, len) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || (darwin && !race) || (linux && !race) || (freebsd && !race) || netbsd || openbsd || solaris || dragonfly || zos 6 | 7 | package unix 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdents.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || dragonfly || freebsd || linux || netbsd || openbsd 6 | 7 | package unix 8 | 9 | // ReadDirent reads directory entries from fd and writes them into buf. 10 | func ReadDirent(fd int, buf []byte) (n int, err error) { 11 | return Getdents(fd, buf) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdirentries.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 darwin || zos 6 | 7 | package unix 8 | 9 | import "unsafe" 10 | 11 | // ReadDirent reads directory entries from fd and writes them into buf. 12 | func ReadDirent(fd int, buf []byte) (n int, err error) { 13 | // Final argument is (basep *uintptr) and the syscall doesn't take nil. 14 | // 64 bits should be enough. (32 bits isn't even on 386). Since the 15 | // actual system call is getdirentries64, 64 is a good guess. 16 | // TODO(rsc): Can we use a single global basep for all calls? 17 | var base = (*uintptr)(unsafe.Pointer(new(uint64))) 18 | return Getdirentries(fd, buf, base) 19 | } 20 | -------------------------------------------------------------------------------- /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_hurd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 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 hurd 6 | 7 | package unix 8 | 9 | /* 10 | #include 11 | int ioctl(int, unsigned long int, uintptr_t); 12 | */ 13 | import "C" 14 | import "unsafe" 15 | 16 | func ioctl(fd int, req uint, arg uintptr) (err error) { 17 | r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(arg)) 18 | if r0 == -1 && er != nil { 19 | err = er 20 | } 21 | return 22 | } 23 | 24 | func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { 25 | r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(uintptr(arg))) 26 | if r0 == -1 && er != nil { 27 | err = er 28 | } 29 | return 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_hurd_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 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 && hurd 6 | 7 | package unix 8 | 9 | const ( 10 | TIOCGETA = 0x62251713 11 | ) 12 | 13 | type Winsize struct { 14 | Row uint16 15 | Col uint16 16 | Xpixel uint16 17 | Ypixel uint16 18 | } 19 | 20 | type Termios struct { 21 | Iflag uint32 22 | Oflag uint32 23 | Cflag uint32 24 | Lflag uint32 25 | Cc [20]uint8 26 | Ispeed int32 27 | Ospeed int32 28 | } 29 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_alarm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 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 || amd64 || mips || mipsle || mips64 || mipsle || ppc64 || ppc64le || ppc || s390x || sparc64) 6 | 7 | package unix 8 | 9 | // SYS_ALARM is not defined on arm or riscv, but is available for other GOARCH 10 | // values. 11 | 12 | //sys Alarm(seconds uint) (remaining uint, err error) 13 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //go:noescape 12 | func gettimeofday(tv *Timeval) (err syscall.Errno) 13 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 10 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 11 | 12 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 13 | // fail. 14 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gc && 386 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | 15 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 16 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_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 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | import ( 10 | "syscall" 11 | "unsafe" 12 | ) 13 | 14 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { 15 | var newoffset int64 16 | offsetLow := uint32(offset & 0xffffffff) 17 | offsetHigh := uint32((offset >> 32) & 0xffffffff) 18 | _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0) 19 | return newoffset, err 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_netbsd_386.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 386 && netbsd 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: int32(nsec)} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: int32(usec)} 15 | } 16 | 17 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 18 | k.Ident = uint32(fd) 19 | k.Filter = uint32(mode) 20 | k.Flags = uint32(flags) 21 | } 22 | 23 | func (iov *Iovec) SetLen(length int) { 24 | iov.Len = uint32(length) 25 | } 26 | 27 | func (msghdr *Msghdr) SetControllen(length int) { 28 | msghdr.Controllen = uint32(length) 29 | } 30 | 31 | func (msghdr *Msghdr) SetIovlen(length int) { 32 | msghdr.Iovlen = int32(length) 33 | } 34 | 35 | func (cmsg *Cmsghdr) SetLen(length int) { 36 | cmsg.Len = uint32(length) 37 | } 38 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_netbsd_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 && netbsd 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: nsec} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: int32(usec)} 15 | } 16 | 17 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 18 | k.Ident = uint64(fd) 19 | k.Filter = uint32(mode) 20 | k.Flags = uint32(flags) 21 | } 22 | 23 | func (iov *Iovec) SetLen(length int) { 24 | iov.Len = uint64(length) 25 | } 26 | 27 | func (msghdr *Msghdr) SetControllen(length int) { 28 | msghdr.Controllen = uint32(length) 29 | } 30 | 31 | func (msghdr *Msghdr) SetIovlen(length int) { 32 | msghdr.Iovlen = int32(length) 33 | } 34 | 35 | func (cmsg *Cmsghdr) SetLen(length int) { 36 | cmsg.Len = uint32(length) 37 | } 38 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 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 && netbsd 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: int32(nsec)} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: int32(usec)} 15 | } 16 | 17 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 18 | k.Ident = uint32(fd) 19 | k.Filter = uint32(mode) 20 | k.Flags = uint32(flags) 21 | } 22 | 23 | func (iov *Iovec) SetLen(length int) { 24 | iov.Len = uint32(length) 25 | } 26 | 27 | func (msghdr *Msghdr) SetControllen(length int) { 28 | msghdr.Controllen = uint32(length) 29 | } 30 | 31 | func (msghdr *Msghdr) SetIovlen(length int) { 32 | msghdr.Iovlen = int32(length) 33 | } 34 | 35 | func (cmsg *Cmsghdr) SetLen(length int) { 36 | cmsg.Len = uint32(length) 37 | } 38 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.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 arm64 && netbsd 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: nsec} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: int32(usec)} 15 | } 16 | 17 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 18 | k.Ident = uint64(fd) 19 | k.Filter = uint32(mode) 20 | k.Flags = uint32(flags) 21 | } 22 | 23 | func (iov *Iovec) SetLen(length int) { 24 | iov.Len = uint64(length) 25 | } 26 | 27 | func (msghdr *Msghdr) SetControllen(length int) { 28 | msghdr.Controllen = uint32(length) 29 | } 30 | 31 | func (msghdr *Msghdr) SetIovlen(length int) { 32 | msghdr.Iovlen = int32(length) 33 | } 34 | 35 | func (cmsg *Cmsghdr) SetLen(length int) { 36 | cmsg.Len = uint32(length) 37 | } 38 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: nsec} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: usec} 15 | } 16 | 17 | func (iov *Iovec) SetLen(length int) { 18 | iov.Len = uint64(length) 19 | } 20 | 21 | func (msghdr *Msghdr) SetIovlen(length int) { 22 | msghdr.Iovlen = int32(length) 23 | } 24 | 25 | func (cmsg *Cmsghdr) SetLen(length int) { 26 | cmsg.Len = uint32(length) 27 | } 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_unix_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin || dragonfly || freebsd || (linux && !ppc64 && !ppc64le) || netbsd || openbsd || solaris) && gc 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 12 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 13 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 14 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.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 && (ppc64le || ppc64) && gc 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) { 12 | return syscall.Syscall(trap, a1, a2, a3) 13 | } 14 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) { 15 | return syscall.Syscall6(trap, a1, a2, a3, a4, a5, a6) 16 | } 17 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) { 18 | return syscall.RawSyscall(trap, a1, a2, a3) 19 | } 20 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) { 21 | return syscall.RawSyscall6(trap, a1, a2, a3, a4, a5, a6) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_linux.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 linux 6 | 7 | package unix 8 | 9 | import "runtime" 10 | 11 | // SysvShmCtl performs control operations on the shared memory segment 12 | // specified by id. 13 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 14 | if runtime.GOARCH == "arm" || 15 | runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" { 16 | cmd |= ipc_64 17 | } 18 | 19 | return shmctl(id, cmd, desc) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_unix_other.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 (darwin && !ios) || zos 6 | 7 | package unix 8 | 9 | // SysvShmCtl performs control operations on the shared memory segment 10 | // specified by id. 11 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 12 | return shmctl(id, cmd, desc) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/vgetrandom_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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 && go1.24 6 | 7 | package unix 8 | 9 | import _ "unsafe" 10 | 11 | //go:linkname vgetrandom runtime.vgetrandom 12 | //go:noescape 13 | func vgetrandom(p []byte, flags uint32) (ret int, supported bool) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/vgetrandom_unsupported.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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 || !go1.24 6 | 7 | package unix 8 | 9 | func vgetrandom(p []byte, flags uint32) (ret int, supported bool) { 10 | return -1, false 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go: -------------------------------------------------------------------------------- 1 | // Code generated by linux/mkall.go generatePtraceRegSet("arm64"). DO NOT EDIT. 2 | 3 | package unix 4 | 5 | import "unsafe" 6 | 7 | // PtraceGetRegSetArm64 fetches the registers used by arm64 binaries. 8 | func PtraceGetRegSetArm64(pid, addr int, regsout *PtraceRegsArm64) error { 9 | iovec := Iovec{(*byte)(unsafe.Pointer(regsout)), uint64(unsafe.Sizeof(*regsout))} 10 | return ptracePtr(PTRACE_GETREGSET, pid, uintptr(addr), unsafe.Pointer(&iovec)) 11 | } 12 | 13 | // PtraceSetRegSetArm64 sets the registers used by arm64 binaries. 14 | func PtraceSetRegSetArm64(pid, addr int, regs *PtraceRegsArm64) error { 15 | iovec := Iovec{(*byte)(unsafe.Pointer(regs)), uint64(unsafe.Sizeof(*regs))} 16 | return ptracePtr(PTRACE_SETREGSET, pid, uintptr(addr), unsafe.Pointer(&iovec)) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/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 windows 6 | 7 | package windows 8 | 9 | import "syscall" 10 | 11 | type Errno = syscall.Errno 12 | type SysProcAttr = syscall.SysProcAttr 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/eventlog.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 windows 6 | 7 | package windows 8 | 9 | const ( 10 | EVENTLOG_SUCCESS = 0 11 | EVENTLOG_ERROR_TYPE = 1 12 | EVENTLOG_WARNING_TYPE = 2 13 | EVENTLOG_INFORMATION_TYPE = 4 14 | EVENTLOG_AUDIT_SUCCESS = 8 15 | EVENTLOG_AUDIT_FAILURE = 16 16 | ) 17 | 18 | //sys RegisterEventSource(uncServerName *uint16, sourceName *uint16) (handle Handle, err error) [failretval==0] = advapi32.RegisterEventSourceW 19 | //sys DeregisterEventSource(handle Handle) (err error) = advapi32.DeregisterEventSource 20 | //sys ReportEvent(log Handle, etype uint16, category uint16, eventId uint32, usrSId uintptr, numStrings uint16, dataSize uint32, strings **uint16, rawData *byte) (err error) = advapi32.ReportEventW 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/mksyscall.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 generate 6 | 7 | package windows 8 | 9 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go setupapi_windows.go 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/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 windows && race 6 | 7 | package windows 8 | 9 | import ( 10 | "runtime" 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = true 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | runtime.RaceAcquire(addr) 18 | } 19 | 20 | func raceReleaseMerge(addr unsafe.Pointer) { 21 | runtime.RaceReleaseMerge(addr) 22 | } 23 | 24 | func raceReadRange(addr unsafe.Pointer, len int) { 25 | runtime.RaceReadRange(addr, len) 26 | } 27 | 28 | func raceWriteRange(addr unsafe.Pointer, len int) { 29 | runtime.RaceWriteRange(addr, len) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/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 windows && !race 6 | 7 | package windows 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows 6 | 7 | package windows 8 | 9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 10 | if val < 0 { 11 | return "-" + itoa(-val) 12 | } 13 | var buf [32]byte // big enough for int64 14 | i := len(buf) - 1 15 | for val >= 10 { 16 | buf[i] = byte(val%10 + '0') 17 | i-- 18 | val /= 10 19 | } 20 | buf[i] = byte(val + '0') 21 | return string(buf[i:]) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/types_windows_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 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 windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | MaxSockets uint16 11 | MaxUdpDg uint16 12 | VendorInfo *byte 13 | Description [WSADESCRIPTION_LEN + 1]byte 14 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Proto *byte 21 | Port uint16 22 | } 23 | 24 | type JOBOBJECT_BASIC_LIMIT_INFORMATION struct { 25 | PerProcessUserTimeLimit int64 26 | PerJobUserTimeLimit int64 27 | LimitFlags uint32 28 | MinimumWorkingSetSize uintptr 29 | MaximumWorkingSetSize uintptr 30 | ActiveProcessLimit uint32 31 | Affinity uintptr 32 | PriorityClass uint32 33 | SchedulingClass uint32 34 | } 35 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/types_windows_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 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 windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | MaxSockets uint16 11 | MaxUdpDg uint16 12 | VendorInfo *byte 13 | Description [WSADESCRIPTION_LEN + 1]byte 14 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Proto *byte 21 | Port uint16 22 | } 23 | 24 | type JOBOBJECT_BASIC_LIMIT_INFORMATION struct { 25 | PerProcessUserTimeLimit int64 26 | PerJobUserTimeLimit int64 27 | LimitFlags uint32 28 | MinimumWorkingSetSize uintptr 29 | MaximumWorkingSetSize uintptr 30 | ActiveProcessLimit uint32 31 | Affinity uintptr 32 | PriorityClass uint32 33 | SchedulingClass uint32 34 | } 35 | -------------------------------------------------------------------------------- /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 | 7 | package bidirule 8 | 9 | func (t *Transformer) isFinal() bool { 10 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.10 6 | 7 | package bidirule 8 | 9 | func (t *Transformer) isFinal() bool { 10 | if !t.isRTL() { 11 | return true 12 | } 13 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/types/typeutil/imports.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 | package typeutil 6 | 7 | import "go/types" 8 | 9 | // Dependencies returns all dependencies of the specified packages. 10 | // 11 | // Dependent packages appear in topological order: if package P imports 12 | // package Q, Q appears earlier than P in the result. 13 | // The algorithm follows import statements in the order they 14 | // appear in the source code, so the result is a total order. 15 | func Dependencies(pkgs ...*types.Package) []*types.Package { 16 | var result []*types.Package 17 | seen := make(map[*types.Package]bool) 18 | var visit func(pkgs []*types.Package) 19 | visit = func(pkgs []*types.Package) { 20 | for _, p := range pkgs { 21 | if !seen[p] { 22 | seen[p] = true 23 | visit(p.Imports()) 24 | result = append(result, p) 25 | } 26 | } 27 | } 28 | visit(pkgs) 29 | return result 30 | } 31 | -------------------------------------------------------------------------------- /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/event/keys/util.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 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 keys 6 | 7 | import ( 8 | "sort" 9 | "strings" 10 | ) 11 | 12 | // Join returns a canonical join of the keys in S: 13 | // a sorted comma-separated string list. 14 | func Join[S ~[]T, T ~string](s S) string { 15 | strs := make([]string, 0, len(s)) 16 | for _, v := range s { 17 | strs = append(strs, string(v)) 18 | } 19 | sort.Strings(strs) 20 | return strings.Join(strs, ",") 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/packagesinternal/packages.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 | // Package packagesinternal exposes internal-only fields from go/packages. 6 | package packagesinternal 7 | 8 | var GetForTest = func(p interface{}) string { return "" } 9 | var GetDepsErrors = func(p interface{}) []*PackageError { return nil } 10 | 11 | type PackageError struct { 12 | ImportStack []string // shortest path from package named on command line to this one 13 | Pos string // position of error (if present, file:line:col) 14 | Err string // the error itself 15 | } 16 | 17 | var TypecheckCgo int 18 | var DepsErrors int // must be set as a LoadMode to call GetDepsErrors 19 | var ForTest int // must be set as a LoadMode to call GetForTest 20 | 21 | var SetModFlag = func(config interface{}, value string) {} 22 | var SetModFile = func(config interface{}, value string) {} 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/pkgbits/flags.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 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 pkgbits 6 | 7 | const ( 8 | flagSyncMarkers = 1 << iota // file format contains sync markers 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/pkgbits/reloc.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 | package pkgbits 6 | 7 | // A RelocKind indicates a particular section within a unified IR export. 8 | type RelocKind int32 9 | 10 | // An Index represents a bitstream element index within a particular 11 | // section. 12 | type Index int32 13 | 14 | // A relocEnt (relocation entry) is an entry in an element's local 15 | // reference table. 16 | // 17 | // TODO(mdempsky): Rename this too. 18 | type RelocEnt struct { 19 | Kind RelocKind 20 | Idx Index 21 | } 22 | 23 | // Reserved indices within the meta relocation section. 24 | const ( 25 | PublicRootIdx Index = 0 26 | PrivateRootIdx Index = 1 27 | ) 28 | 29 | const ( 30 | RelocString RelocKind = iota 31 | RelocMeta 32 | RelocPosBase 33 | RelocPkg 34 | RelocName 35 | RelocType 36 | RelocObj 37 | RelocObjExt 38 | RelocObjDict 39 | RelocBody 40 | 41 | numRelocs = iota 42 | ) 43 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/pkgbits/support.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 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 pkgbits 6 | 7 | import "fmt" 8 | 9 | func assert(b bool) { 10 | if !b { 11 | panic("assertion failed") 12 | } 13 | } 14 | 15 | func panicf(format string, args ...any) { 16 | panic(fmt.Errorf(format, args...)) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/versions/constraint.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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 versions 6 | 7 | import "go/build/constraint" 8 | 9 | // ConstraintGoVersion is constraint.GoVersion (if built with go1.21+). 10 | // Otherwise nil. 11 | // 12 | // Deprecate once x/tools is after go1.21. 13 | var ConstraintGoVersion func(x constraint.Expr) string 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/versions/constraint_go121.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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.21 6 | // +build go1.21 7 | 8 | package versions 9 | 10 | import "go/build/constraint" 11 | 12 | func init() { 13 | ConstraintGoVersion = constraint.GoVersion 14 | } 15 | -------------------------------------------------------------------------------- /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 | //go:build !appengine 6 | // +build !appengine 7 | 8 | package appengine 9 | 10 | import ( 11 | "context" 12 | ) 13 | 14 | // BackgroundContext returns a context not associated with a request. 15 | // 16 | // Deprecated: App Engine no longer has a special background context. 17 | // Just use context.Background(). 18 | func BackgroundContext() context.Context { 19 | return context.Background() 20 | } 21 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/internal/app_id.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 | package internal 6 | 7 | import ( 8 | "strings" 9 | ) 10 | 11 | func parseFullAppID(appid string) (partition, domain, displayID string) { 12 | if i := strings.Index(appid, "~"); i != -1 { 13 | partition, appid = appid[:i], appid[i+1:] 14 | } 15 | if i := strings.Index(appid, ":"); i != -1 { 16 | domain, appid = appid[:i], appid[i+1:] 17 | } 18 | return partition, domain, appid 19 | } 20 | 21 | // appID returns "appid" or "domain.com:appid". 22 | func appID(fullAppID string) string { 23 | _, dom, dis := parseFullAppID(fullAppID) 24 | if dom != "" { 25 | return dom + ":" + dis 26 | } 27 | return dis 28 | } 29 | -------------------------------------------------------------------------------- /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 | //go:build appenginevm 6 | // +build appenginevm 7 | 8 | package internal 9 | 10 | func init() { 11 | appengineFlex = true 12 | } 13 | -------------------------------------------------------------------------------- /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 | //go:build appengine 6 | // +build appengine 7 | 8 | package internal 9 | 10 | import ( 11 | "appengine_internal" 12 | ) 13 | 14 | func Main() { 15 | MainPath = "" 16 | appengine_internal.Main() 17 | } 18 | -------------------------------------------------------------------------------- /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/namespace.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 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 ( 8 | "context" 9 | "fmt" 10 | "regexp" 11 | 12 | "google.golang.org/appengine/internal" 13 | ) 14 | 15 | // Namespace returns a replacement context that operates within the given namespace. 16 | func Namespace(c context.Context, namespace string) (context.Context, error) { 17 | if !validNamespace.MatchString(namespace) { 18 | return nil, fmt.Errorf("appengine: namespace %q does not match /%s/", namespace, validNamespace) 19 | } 20 | return internal.NamespacedContext(c, namespace), nil 21 | } 22 | 23 | // validNamespace matches valid namespace names. 24 | var validNamespace = regexp.MustCompile(`^[0-9A-Za-z._-]{0,100}$`) 25 | -------------------------------------------------------------------------------- /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 "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/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/NOTICE.txt: -------------------------------------------------------------------------------- 1 | Copyright 2014 gRPC authors. 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/google.golang.org/grpc/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | For information on gRPC Security Policy and reporting potential security issues, please see [gRPC CVE Process](https://github.com/grpc/proposal/blob/master/P4-grpc-cve-process.md). 4 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2015 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 | //go:generate ./scripts/regenerate.sh 20 | 21 | /* 22 | Package grpc implements an RPC system called gRPC. 23 | 24 | See grpc.io for more information about gRPC. 25 | */ 26 | package grpc // import "google.golang.org/grpc" 27 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/grpclog/internal/grpclog.go: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2024 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 internal contains functionality internal to the grpclog package. 20 | package internal 21 | 22 | // LoggerV2Impl is the logger used for the non-depth log functions. 23 | var LoggerV2Impl LoggerV2 24 | 25 | // DepthLoggerV2Impl is the logger used for the depth log functions. 26 | var DepthLoggerV2Impl DepthLoggerV2 27 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/health/logging.go: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2020 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 health 20 | 21 | import "google.golang.org/grpc/grpclog" 22 | 23 | var logger = grpclog.Component("health_service") 24 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/internal/grpcsync/oncefunc.go: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2022 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 grpcsync 20 | 21 | import ( 22 | "sync" 23 | ) 24 | 25 | // OnceFunc returns a function wrapping f which ensures f is only executed 26 | // once even if the returned function is executed multiple times. 27 | func OnceFunc(f func()) func() { 28 | var once sync.Once 29 | return func() { 30 | once.Do(f) 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/internal/grpcutil/grpcutil.go: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright 2021 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 grpcutil provides utility functions used across the gRPC codebase. 20 | package grpcutil 21 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/internal/tcp_keepalive_others.go: -------------------------------------------------------------------------------- 1 | //go:build !unix && !windows 2 | 3 | /* 4 | * Copyright 2023 gRPC authors. 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | * 18 | */ 19 | 20 | package internal 21 | 22 | import ( 23 | "net" 24 | ) 25 | 26 | // NetDialerWithTCPKeepalive returns a vanilla net.Dialer on non-unix platforms. 27 | func NetDialerWithTCPKeepalive() *net.Dialer { 28 | return &net.Dialer{} 29 | } 30 | -------------------------------------------------------------------------------- /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/v1/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.67.1" 23 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/encoding/protojson/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 protojson marshals and unmarshals protocol buffer messages as JSON 6 | // format. It follows the guide at 7 | // https://protobuf.dev/programming-guides/proto3#json. 8 | // 9 | // This package produces a different output than the standard [encoding/json] 10 | // package, which does not operate correctly on protocol buffer messages. 11 | package protojson 12 | -------------------------------------------------------------------------------- /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/editiondefaults/defaults.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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 editiondefaults contains the binary representation of the editions 6 | // defaults. 7 | package editiondefaults 8 | 9 | import _ "embed" 10 | 11 | //go:embed editions_defaults.binpb 12 | var Defaults []byte 13 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukasaron/terraform-provider-stripe/e4cdb23d72d1e5aae47cbb28b1e9297f49b49292/vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/editionssupport/editions.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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 editionssupport defines constants for editions that are supported. 6 | package editionssupport 7 | 8 | import "google.golang.org/protobuf/types/descriptorpb" 9 | 10 | const ( 11 | Minimum = descriptorpb.Edition_EDITION_PROTO2 12 | Maximum = descriptorpb.Edition_EDITION_2023 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/errors/is_go112.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 !go1.13 6 | // +build !go1.13 7 | 8 | package errors 9 | 10 | import "reflect" 11 | 12 | // Is is a copy of Go 1.13's errors.Is for use with older Go versions. 13 | func Is(err, target error) bool { 14 | if target == nil { 15 | return err == target 16 | } 17 | 18 | isComparable := reflect.TypeOf(target).Comparable() 19 | for { 20 | if isComparable && err == target { 21 | return true 22 | } 23 | if x, ok := err.(interface{ Is(error) bool }); ok && x.Is(target) { 24 | return true 25 | } 26 | if err = unwrap(err); err == nil { 27 | return false 28 | } 29 | } 30 | } 31 | 32 | func unwrap(err error) error { 33 | u, ok := err.(interface { 34 | Unwrap() error 35 | }) 36 | if !ok { 37 | return nil 38 | } 39 | return u.Unwrap() 40 | } 41 | -------------------------------------------------------------------------------- /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 | //go:build go1.13 6 | // +build go1.13 7 | 8 | package errors 9 | 10 | import "errors" 11 | 12 | // Is is errors.Is. 13 | func Is(err, target error) bool { return errors.Is(err, target) } 14 | -------------------------------------------------------------------------------- /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 | //go:build !protolegacy 6 | // +build !protolegacy 7 | 8 | package flags 9 | 10 | const protoLegacy = false 11 | -------------------------------------------------------------------------------- /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 | //go:build protolegacy 6 | // +build protolegacy 7 | 8 | package flags 9 | 10 | const protoLegacy = true 11 | -------------------------------------------------------------------------------- /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 "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/goname.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 | // Go names of implementation-specific struct fields in generated messages. 8 | const ( 9 | State_goname = "state" 10 | 11 | SizeCache_goname = "sizeCache" 12 | SizeCacheA_goname = "XXX_sizecache" 13 | 14 | WeakFields_goname = "weakFields" 15 | WeakFieldsA_goname = "XXX_weak" 16 | 17 | UnknownFields_goname = "unknownFields" 18 | UnknownFieldsA_goname = "XXX_unrecognized" 19 | 20 | ExtensionFields_goname = "extensionFields" 21 | ExtensionFieldsA_goname = "XXX_InternalExtensions" 22 | ExtensionFieldsB_goname = "XXX_extensions" 23 | 24 | WeakFieldPrefix_goname = "XXX_weak_" 25 | ) 26 | -------------------------------------------------------------------------------- /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 "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 "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_go111.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 !go1.12 6 | // +build !go1.12 7 | 8 | package impl 9 | 10 | import "reflect" 11 | 12 | type mapIter struct { 13 | v reflect.Value 14 | keys []reflect.Value 15 | } 16 | 17 | // mapRange provides a less-efficient equivalent to 18 | // the Go 1.12 reflect.Value.MapRange method. 19 | func mapRange(v reflect.Value) *mapIter { 20 | return &mapIter{v: v} 21 | } 22 | 23 | func (i *mapIter) Next() bool { 24 | if i.keys == nil { 25 | i.keys = i.v.MapKeys() 26 | } else { 27 | i.keys = i.keys[1:] 28 | } 29 | return len(i.keys) > 0 30 | } 31 | 32 | func (i *mapIter) Key() reflect.Value { 33 | return i.keys[0] 34 | } 35 | 36 | func (i *mapIter) Value() reflect.Value { 37 | return i.v.MapIndex(i.keys[0]) 38 | } 39 | -------------------------------------------------------------------------------- /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 | //go:build go1.12 6 | // +build go1.12 7 | 8 | package impl 9 | 10 | import "reflect" 11 | 12 | func mapRange(v reflect.Value) *reflect.MapIter { return v.MapRange() } 13 | -------------------------------------------------------------------------------- /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 | package impl 6 | 7 | // When using unsafe pointers, we can just treat enum values as int32s. 8 | 9 | var ( 10 | coderEnumNoZero = coderInt32NoZero 11 | coderEnum = coderInt32 12 | coderEnumPtr = coderInt32Ptr 13 | coderEnumSlice = coderInt32Slice 14 | coderEnumPackedSlice = coderInt32PackedSlice 15 | ) 16 | -------------------------------------------------------------------------------- /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 | "google.golang.org/protobuf/reflect/protoreflect" 11 | ) 12 | 13 | type EnumInfo struct { 14 | GoReflectType reflect.Type // int32 kind 15 | Desc protoreflect.EnumDescriptor 16 | } 17 | 18 | func (t *EnumInfo) New(n protoreflect.EnumNumber) protoreflect.Enum { 19 | return reflect.ValueOf(n).Convert(t.GoReflectType).Interface().(protoreflect.Enum) 20 | } 21 | func (t *EnumInfo) Descriptor() protoreflect.EnumDescriptor { return t.Desc } 22 | -------------------------------------------------------------------------------- /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 | //go:build !protoreflect 7 | // +build !protoreflect 8 | 9 | package proto 10 | 11 | import ( 12 | "google.golang.org/protobuf/reflect/protoreflect" 13 | "google.golang.org/protobuf/runtime/protoiface" 14 | ) 15 | 16 | const hasProtoMethods = true 17 | 18 | func protoMethods(m protoreflect.Message) *protoiface.Methods { 19 | return m.ProtoMethods() 20 | } 21 | -------------------------------------------------------------------------------- /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 | //go:build protoreflect 7 | // +build protoreflect 8 | 9 | package proto 10 | 11 | import ( 12 | "google.golang.org/protobuf/reflect/protoreflect" 13 | "google.golang.org/protobuf/runtime/protoiface" 14 | ) 15 | 16 | const hasProtoMethods = false 17 | 18 | func protoMethods(m protoreflect.Message) *protoiface.Methods { 19 | return nil 20 | } 21 | -------------------------------------------------------------------------------- /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 | --------------------------------------------------------------------------------