├── .dockerignore
├── .github
├── CODEOWNERS
├── FUNDING.yml
├── dependabot.yml
└── workflows
│ ├── ci-site.yml
│ └── ci.yml
├── .gitignore
├── .golangci.yml
├── .goreleaser.yml
├── Dockerfile
├── Dockerfile.artifacts
├── Dockerfile.site
├── LICENSE
├── Makefile
├── README.md
├── SECURITY.md
├── app
├── discovery
│ ├── discovery.go
│ ├── discovery_test.go
│ ├── provider
│ │ ├── consulcatalog
│ │ │ ├── client.go
│ │ │ ├── client_test.go
│ │ │ ├── consul_client_mock.go
│ │ │ ├── consulcatalog.go
│ │ │ └── consulcatalog_test.go
│ │ ├── docker.go
│ │ ├── docker_client_mock.go
│ │ ├── docker_test.go
│ │ ├── file.go
│ │ ├── file_test.go
│ │ ├── static.go
│ │ ├── static_test.go
│ │ └── testdata
│ │ │ ├── config.yml
│ │ │ └── containers.json
│ └── provider_mock.go
├── main.go
├── main_test.go
├── mgmt
│ ├── informer_mock.go
│ ├── metrics.go
│ ├── server.go
│ └── server_test.go
├── plugin
│ ├── client_mock.go
│ ├── conductor.go
│ ├── conductor_test.go
│ └── dialer_mock.go
└── proxy
│ ├── acmetest
│ └── ca.go
│ ├── cache_control.go
│ ├── cache_control_test.go
│ ├── dns_provider_mock.go
│ ├── error_reporter.go
│ ├── error_reporter_test.go
│ ├── handlers.go
│ ├── handlers_test.go
│ ├── health.go
│ ├── health_test.go
│ ├── lb_selector.go
│ ├── lb_selector_test.go
│ ├── matcher_mock.go
│ ├── only_from.go
│ ├── only_from_test.go
│ ├── proxy.go
│ ├── proxy_test.go
│ ├── ssl.go
│ ├── ssl_test.go
│ └── testdata
│ ├── 1.html
│ ├── 404.html
│ ├── errtmpl.html
│ ├── index.html
│ ├── localhost.crt
│ └── localhost.key
├── examples
├── assets
│ ├── README.md
│ ├── embed
│ │ ├── Dockerfile
│ │ ├── assets
│ │ │ ├── 1.html
│ │ │ └── index.html
│ │ └── docker-compose.yml
│ └── external
│ │ ├── Dockerfile
│ │ ├── assets
│ │ ├── 1.html
│ │ └── index.html
│ │ └── docker-compose.yml
├── docker
│ ├── README.md
│ ├── docker-compose.yml
│ └── web
│ │ ├── 1.html
│ │ └── index.html
├── file
│ ├── Makefile
│ ├── README.md
│ ├── reproxy.yml
│ ├── web
│ │ ├── 1.html
│ │ └── index.html
│ └── web2
│ │ ├── 1.html
│ │ └── index.html
├── metrics
│ ├── docker-compose.yml
│ └── prometheus
│ │ └── prometheus.yml
├── plugin
│ ├── Dockerfile
│ ├── README.md
│ ├── docker-compose.yml
│ ├── go.mod
│ ├── go.sum
│ ├── main.go
│ └── vendor
│ │ ├── github.com
│ │ ├── go-pkgz
│ │ │ ├── lgr
│ │ │ │ ├── .gitignore
│ │ │ │ ├── .golangci.yml
│ │ │ │ ├── LICENSE
│ │ │ │ ├── README.md
│ │ │ │ ├── adaptor.go
│ │ │ │ ├── interface.go
│ │ │ │ ├── logger.go
│ │ │ │ ├── mapper.go
│ │ │ │ └── options.go
│ │ │ └── repeater
│ │ │ │ ├── .gitignore
│ │ │ │ ├── .golangci.yml
│ │ │ │ ├── .travis.yml
│ │ │ │ ├── LICENSE
│ │ │ │ ├── README.md
│ │ │ │ ├── repeater.go
│ │ │ │ └── strategy
│ │ │ │ ├── backoff.go
│ │ │ │ ├── fixed.go
│ │ │ │ └── strategy.go
│ │ └── umputun
│ │ │ └── reproxy
│ │ │ ├── LICENSE
│ │ │ └── lib
│ │ │ ├── plugin.go
│ │ │ └── rpc.go
│ │ └── modules.txt
├── ssl
│ ├── README.md
│ └── docker-compose.yml
└── static
│ ├── README.md
│ └── custom
│ ├── Dockerfile
│ └── docker-compose.yml
├── go.mod
├── go.sum
├── lib
├── plugin.go
├── plugin_test.go
└── rpc.go
├── reproxy-example.yml
├── reproxy.service
├── scripts
├── postinstall.sh
└── preremove.sh
├── site
├── docs
│ ├── favicon.svg
│ ├── icon.png
│ ├── logo.png
│ └── stylesheets
│ │ └── extra.css
├── logo-bg.svg
├── mkdocs.yml
└── overrides
│ └── partials
│ └── integrations
│ └── analytics
│ └── custom.html
└── vendor
├── github.com
├── aws
│ ├── aws-sdk-go-v2
│ │ ├── LICENSE.txt
│ │ ├── NOTICE.txt
│ │ ├── aws
│ │ │ ├── accountid_endpoint_mode.go
│ │ │ ├── checksum.go
│ │ │ ├── config.go
│ │ │ ├── context.go
│ │ │ ├── credential_cache.go
│ │ │ ├── credentials.go
│ │ │ ├── defaults
│ │ │ │ ├── auto.go
│ │ │ │ ├── configuration.go
│ │ │ │ ├── defaults.go
│ │ │ │ └── doc.go
│ │ │ ├── defaultsmode.go
│ │ │ ├── doc.go
│ │ │ ├── endpoints.go
│ │ │ ├── errors.go
│ │ │ ├── from_ptr.go
│ │ │ ├── go_module_metadata.go
│ │ │ ├── logging.go
│ │ │ ├── logging_generate.go
│ │ │ ├── middleware
│ │ │ │ ├── metadata.go
│ │ │ │ ├── middleware.go
│ │ │ │ ├── osname.go
│ │ │ │ ├── osname_go115.go
│ │ │ │ ├── recursion_detection.go
│ │ │ │ ├── request_id.go
│ │ │ │ ├── request_id_retriever.go
│ │ │ │ └── user_agent.go
│ │ │ ├── protocol
│ │ │ │ ├── query
│ │ │ │ │ ├── array.go
│ │ │ │ │ ├── encoder.go
│ │ │ │ │ ├── map.go
│ │ │ │ │ ├── middleware.go
│ │ │ │ │ ├── object.go
│ │ │ │ │ └── value.go
│ │ │ │ ├── restjson
│ │ │ │ │ └── decoder_util.go
│ │ │ │ └── xml
│ │ │ │ │ └── error_utils.go
│ │ │ ├── ratelimit
│ │ │ │ ├── none.go
│ │ │ │ ├── token_bucket.go
│ │ │ │ └── token_rate_limit.go
│ │ │ ├── request.go
│ │ │ ├── retry
│ │ │ │ ├── adaptive.go
│ │ │ │ ├── adaptive_ratelimit.go
│ │ │ │ ├── adaptive_token_bucket.go
│ │ │ │ ├── attempt_metrics.go
│ │ │ │ ├── doc.go
│ │ │ │ ├── errors.go
│ │ │ │ ├── jitter_backoff.go
│ │ │ │ ├── metadata.go
│ │ │ │ ├── middleware.go
│ │ │ │ ├── retry.go
│ │ │ │ ├── retryable_error.go
│ │ │ │ ├── standard.go
│ │ │ │ ├── throttle_error.go
│ │ │ │ └── timeout_error.go
│ │ │ ├── retryer.go
│ │ │ ├── runtime.go
│ │ │ ├── signer
│ │ │ │ ├── internal
│ │ │ │ │ └── v4
│ │ │ │ │ │ ├── cache.go
│ │ │ │ │ │ ├── const.go
│ │ │ │ │ │ ├── header_rules.go
│ │ │ │ │ │ ├── headers.go
│ │ │ │ │ │ ├── hmac.go
│ │ │ │ │ │ ├── host.go
│ │ │ │ │ │ ├── scope.go
│ │ │ │ │ │ ├── time.go
│ │ │ │ │ │ └── util.go
│ │ │ │ └── v4
│ │ │ │ │ ├── middleware.go
│ │ │ │ │ ├── presign_middleware.go
│ │ │ │ │ ├── stream.go
│ │ │ │ │ └── v4.go
│ │ │ ├── to_ptr.go
│ │ │ ├── transport
│ │ │ │ └── http
│ │ │ │ │ ├── client.go
│ │ │ │ │ ├── content_type.go
│ │ │ │ │ ├── response_error.go
│ │ │ │ │ ├── response_error_middleware.go
│ │ │ │ │ └── timeout_read_closer.go
│ │ │ ├── types.go
│ │ │ └── version.go
│ │ ├── config
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE.txt
│ │ │ ├── config.go
│ │ │ ├── defaultsmode.go
│ │ │ ├── doc.go
│ │ │ ├── env_config.go
│ │ │ ├── generate.go
│ │ │ ├── go_module_metadata.go
│ │ │ ├── load_options.go
│ │ │ ├── local.go
│ │ │ ├── provider.go
│ │ │ ├── resolve.go
│ │ │ ├── resolve_bearer_token.go
│ │ │ ├── resolve_credentials.go
│ │ │ └── shared_config.go
│ │ ├── credentials
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE.txt
│ │ │ ├── doc.go
│ │ │ ├── ec2rolecreds
│ │ │ │ ├── doc.go
│ │ │ │ └── provider.go
│ │ │ ├── endpointcreds
│ │ │ │ ├── internal
│ │ │ │ │ └── client
│ │ │ │ │ │ ├── auth.go
│ │ │ │ │ │ ├── client.go
│ │ │ │ │ │ ├── endpoints.go
│ │ │ │ │ │ └── middleware.go
│ │ │ │ └── provider.go
│ │ │ ├── go_module_metadata.go
│ │ │ ├── processcreds
│ │ │ │ ├── doc.go
│ │ │ │ └── provider.go
│ │ │ ├── ssocreds
│ │ │ │ ├── doc.go
│ │ │ │ ├── sso_cached_token.go
│ │ │ │ ├── sso_credentials_provider.go
│ │ │ │ └── sso_token_provider.go
│ │ │ ├── static_provider.go
│ │ │ └── stscreds
│ │ │ │ ├── assume_role_provider.go
│ │ │ │ └── web_identity_provider.go
│ │ ├── feature
│ │ │ └── ec2
│ │ │ │ └── imds
│ │ │ │ ├── CHANGELOG.md
│ │ │ │ ├── LICENSE.txt
│ │ │ │ ├── api_client.go
│ │ │ │ ├── api_op_GetDynamicData.go
│ │ │ │ ├── api_op_GetIAMInfo.go
│ │ │ │ ├── api_op_GetInstanceIdentityDocument.go
│ │ │ │ ├── api_op_GetMetadata.go
│ │ │ │ ├── api_op_GetRegion.go
│ │ │ │ ├── api_op_GetToken.go
│ │ │ │ ├── api_op_GetUserData.go
│ │ │ │ ├── auth.go
│ │ │ │ ├── doc.go
│ │ │ │ ├── endpoints.go
│ │ │ │ ├── go_module_metadata.go
│ │ │ │ ├── internal
│ │ │ │ └── config
│ │ │ │ │ └── resolvers.go
│ │ │ │ ├── request_middleware.go
│ │ │ │ └── token_provider.go
│ │ ├── internal
│ │ │ ├── auth
│ │ │ │ ├── auth.go
│ │ │ │ ├── scheme.go
│ │ │ │ └── smithy
│ │ │ │ │ ├── bearer_token_adapter.go
│ │ │ │ │ ├── bearer_token_signer_adapter.go
│ │ │ │ │ ├── credentials_adapter.go
│ │ │ │ │ ├── smithy.go
│ │ │ │ │ └── v4signer_adapter.go
│ │ │ ├── configsources
│ │ │ │ ├── CHANGELOG.md
│ │ │ │ ├── LICENSE.txt
│ │ │ │ ├── config.go
│ │ │ │ ├── endpoints.go
│ │ │ │ └── go_module_metadata.go
│ │ │ ├── context
│ │ │ │ └── context.go
│ │ │ ├── endpoints
│ │ │ │ ├── awsrulesfn
│ │ │ │ │ ├── arn.go
│ │ │ │ │ ├── doc.go
│ │ │ │ │ ├── generate.go
│ │ │ │ │ ├── host.go
│ │ │ │ │ ├── partition.go
│ │ │ │ │ ├── partitions.go
│ │ │ │ │ └── partitions.json
│ │ │ │ ├── endpoints.go
│ │ │ │ └── v2
│ │ │ │ │ ├── CHANGELOG.md
│ │ │ │ │ ├── LICENSE.txt
│ │ │ │ │ ├── endpoints.go
│ │ │ │ │ └── go_module_metadata.go
│ │ │ ├── ini
│ │ │ │ ├── CHANGELOG.md
│ │ │ │ ├── LICENSE.txt
│ │ │ │ ├── errors.go
│ │ │ │ ├── go_module_metadata.go
│ │ │ │ ├── ini.go
│ │ │ │ ├── parse.go
│ │ │ │ ├── sections.go
│ │ │ │ ├── strings.go
│ │ │ │ ├── token.go
│ │ │ │ ├── tokenize.go
│ │ │ │ └── value.go
│ │ │ ├── middleware
│ │ │ │ └── middleware.go
│ │ │ ├── rand
│ │ │ │ └── rand.go
│ │ │ ├── sdk
│ │ │ │ ├── interfaces.go
│ │ │ │ └── time.go
│ │ │ ├── sdkio
│ │ │ │ └── byte.go
│ │ │ ├── shareddefaults
│ │ │ │ └── shared_config.go
│ │ │ ├── strings
│ │ │ │ └── strings.go
│ │ │ ├── sync
│ │ │ │ └── singleflight
│ │ │ │ │ ├── LICENSE
│ │ │ │ │ ├── docs.go
│ │ │ │ │ └── singleflight.go
│ │ │ └── timeconv
│ │ │ │ └── duration.go
│ │ └── service
│ │ │ ├── internal
│ │ │ ├── accept-encoding
│ │ │ │ ├── CHANGELOG.md
│ │ │ │ ├── LICENSE.txt
│ │ │ │ ├── accept_encoding_gzip.go
│ │ │ │ ├── doc.go
│ │ │ │ └── go_module_metadata.go
│ │ │ └── presigned-url
│ │ │ │ ├── CHANGELOG.md
│ │ │ │ ├── LICENSE.txt
│ │ │ │ ├── context.go
│ │ │ │ ├── doc.go
│ │ │ │ ├── go_module_metadata.go
│ │ │ │ └── middleware.go
│ │ │ ├── route53
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE.txt
│ │ │ ├── api_client.go
│ │ │ ├── api_op_ActivateKeySigningKey.go
│ │ │ ├── api_op_AssociateVPCWithHostedZone.go
│ │ │ ├── api_op_ChangeCidrCollection.go
│ │ │ ├── api_op_ChangeResourceRecordSets.go
│ │ │ ├── api_op_ChangeTagsForResource.go
│ │ │ ├── api_op_CreateCidrCollection.go
│ │ │ ├── api_op_CreateHealthCheck.go
│ │ │ ├── api_op_CreateHostedZone.go
│ │ │ ├── api_op_CreateKeySigningKey.go
│ │ │ ├── api_op_CreateQueryLoggingConfig.go
│ │ │ ├── api_op_CreateReusableDelegationSet.go
│ │ │ ├── api_op_CreateTrafficPolicy.go
│ │ │ ├── api_op_CreateTrafficPolicyInstance.go
│ │ │ ├── api_op_CreateTrafficPolicyVersion.go
│ │ │ ├── api_op_CreateVPCAssociationAuthorization.go
│ │ │ ├── api_op_DeactivateKeySigningKey.go
│ │ │ ├── api_op_DeleteCidrCollection.go
│ │ │ ├── api_op_DeleteHealthCheck.go
│ │ │ ├── api_op_DeleteHostedZone.go
│ │ │ ├── api_op_DeleteKeySigningKey.go
│ │ │ ├── api_op_DeleteQueryLoggingConfig.go
│ │ │ ├── api_op_DeleteReusableDelegationSet.go
│ │ │ ├── api_op_DeleteTrafficPolicy.go
│ │ │ ├── api_op_DeleteTrafficPolicyInstance.go
│ │ │ ├── api_op_DeleteVPCAssociationAuthorization.go
│ │ │ ├── api_op_DisableHostedZoneDNSSEC.go
│ │ │ ├── api_op_DisassociateVPCFromHostedZone.go
│ │ │ ├── api_op_EnableHostedZoneDNSSEC.go
│ │ │ ├── api_op_GetAccountLimit.go
│ │ │ ├── api_op_GetChange.go
│ │ │ ├── api_op_GetCheckerIpRanges.go
│ │ │ ├── api_op_GetDNSSEC.go
│ │ │ ├── api_op_GetGeoLocation.go
│ │ │ ├── api_op_GetHealthCheck.go
│ │ │ ├── api_op_GetHealthCheckCount.go
│ │ │ ├── api_op_GetHealthCheckLastFailureReason.go
│ │ │ ├── api_op_GetHealthCheckStatus.go
│ │ │ ├── api_op_GetHostedZone.go
│ │ │ ├── api_op_GetHostedZoneCount.go
│ │ │ ├── api_op_GetHostedZoneLimit.go
│ │ │ ├── api_op_GetQueryLoggingConfig.go
│ │ │ ├── api_op_GetReusableDelegationSet.go
│ │ │ ├── api_op_GetReusableDelegationSetLimit.go
│ │ │ ├── api_op_GetTrafficPolicy.go
│ │ │ ├── api_op_GetTrafficPolicyInstance.go
│ │ │ ├── api_op_GetTrafficPolicyInstanceCount.go
│ │ │ ├── api_op_ListCidrBlocks.go
│ │ │ ├── api_op_ListCidrCollections.go
│ │ │ ├── api_op_ListCidrLocations.go
│ │ │ ├── api_op_ListGeoLocations.go
│ │ │ ├── api_op_ListHealthChecks.go
│ │ │ ├── api_op_ListHostedZones.go
│ │ │ ├── api_op_ListHostedZonesByName.go
│ │ │ ├── api_op_ListHostedZonesByVPC.go
│ │ │ ├── api_op_ListQueryLoggingConfigs.go
│ │ │ ├── api_op_ListResourceRecordSets.go
│ │ │ ├── api_op_ListReusableDelegationSets.go
│ │ │ ├── api_op_ListTagsForResource.go
│ │ │ ├── api_op_ListTagsForResources.go
│ │ │ ├── api_op_ListTrafficPolicies.go
│ │ │ ├── api_op_ListTrafficPolicyInstances.go
│ │ │ ├── api_op_ListTrafficPolicyInstancesByHostedZone.go
│ │ │ ├── api_op_ListTrafficPolicyInstancesByPolicy.go
│ │ │ ├── api_op_ListTrafficPolicyVersions.go
│ │ │ ├── api_op_ListVPCAssociationAuthorizations.go
│ │ │ ├── api_op_TestDNSAnswer.go
│ │ │ ├── api_op_UpdateHealthCheck.go
│ │ │ ├── api_op_UpdateHostedZoneComment.go
│ │ │ ├── api_op_UpdateTrafficPolicyComment.go
│ │ │ ├── api_op_UpdateTrafficPolicyInstance.go
│ │ │ ├── auth.go
│ │ │ ├── deserializers.go
│ │ │ ├── doc.go
│ │ │ ├── endpoints.go
│ │ │ ├── generated.json
│ │ │ ├── go_module_metadata.go
│ │ │ ├── handwritten_paginators.go
│ │ │ ├── internal
│ │ │ │ ├── customizations
│ │ │ │ │ ├── custom_error_deser.go
│ │ │ │ │ ├── doc.go
│ │ │ │ │ └── sanitizeurl.go
│ │ │ │ └── endpoints
│ │ │ │ │ └── endpoints.go
│ │ │ ├── options.go
│ │ │ ├── serializers.go
│ │ │ ├── types
│ │ │ │ ├── enums.go
│ │ │ │ ├── errors.go
│ │ │ │ └── types.go
│ │ │ └── validators.go
│ │ │ ├── sso
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE.txt
│ │ │ ├── api_client.go
│ │ │ ├── api_op_GetRoleCredentials.go
│ │ │ ├── api_op_ListAccountRoles.go
│ │ │ ├── api_op_ListAccounts.go
│ │ │ ├── api_op_Logout.go
│ │ │ ├── auth.go
│ │ │ ├── deserializers.go
│ │ │ ├── doc.go
│ │ │ ├── endpoints.go
│ │ │ ├── generated.json
│ │ │ ├── go_module_metadata.go
│ │ │ ├── internal
│ │ │ │ └── endpoints
│ │ │ │ │ └── endpoints.go
│ │ │ ├── options.go
│ │ │ ├── serializers.go
│ │ │ ├── types
│ │ │ │ ├── errors.go
│ │ │ │ └── types.go
│ │ │ └── validators.go
│ │ │ ├── ssooidc
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE.txt
│ │ │ ├── api_client.go
│ │ │ ├── api_op_CreateToken.go
│ │ │ ├── api_op_CreateTokenWithIAM.go
│ │ │ ├── api_op_RegisterClient.go
│ │ │ ├── api_op_StartDeviceAuthorization.go
│ │ │ ├── auth.go
│ │ │ ├── deserializers.go
│ │ │ ├── doc.go
│ │ │ ├── endpoints.go
│ │ │ ├── generated.json
│ │ │ ├── go_module_metadata.go
│ │ │ ├── internal
│ │ │ │ └── endpoints
│ │ │ │ │ └── endpoints.go
│ │ │ ├── options.go
│ │ │ ├── serializers.go
│ │ │ ├── types
│ │ │ │ ├── errors.go
│ │ │ │ └── types.go
│ │ │ └── validators.go
│ │ │ └── sts
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE.txt
│ │ │ ├── api_client.go
│ │ │ ├── api_op_AssumeRole.go
│ │ │ ├── api_op_AssumeRoleWithSAML.go
│ │ │ ├── api_op_AssumeRoleWithWebIdentity.go
│ │ │ ├── api_op_AssumeRoot.go
│ │ │ ├── api_op_DecodeAuthorizationMessage.go
│ │ │ ├── api_op_GetAccessKeyInfo.go
│ │ │ ├── api_op_GetCallerIdentity.go
│ │ │ ├── api_op_GetFederationToken.go
│ │ │ ├── api_op_GetSessionToken.go
│ │ │ ├── auth.go
│ │ │ ├── deserializers.go
│ │ │ ├── doc.go
│ │ │ ├── endpoints.go
│ │ │ ├── generated.json
│ │ │ ├── go_module_metadata.go
│ │ │ ├── internal
│ │ │ └── endpoints
│ │ │ │ └── endpoints.go
│ │ │ ├── options.go
│ │ │ ├── serializers.go
│ │ │ ├── types
│ │ │ ├── errors.go
│ │ │ └── types.go
│ │ │ └── validators.go
│ └── smithy-go
│ │ ├── .gitignore
│ │ ├── .travis.yml
│ │ ├── CHANGELOG.md
│ │ ├── CODE_OF_CONDUCT.md
│ │ ├── CONTRIBUTING.md
│ │ ├── LICENSE
│ │ ├── Makefile
│ │ ├── NOTICE
│ │ ├── README.md
│ │ ├── auth
│ │ ├── auth.go
│ │ ├── bearer
│ │ │ ├── docs.go
│ │ │ ├── middleware.go
│ │ │ ├── token.go
│ │ │ └── token_cache.go
│ │ ├── identity.go
│ │ ├── option.go
│ │ └── scheme_id.go
│ │ ├── changelog-template.json
│ │ ├── context
│ │ └── suppress_expired.go
│ │ ├── doc.go
│ │ ├── document.go
│ │ ├── document
│ │ ├── doc.go
│ │ ├── document.go
│ │ └── errors.go
│ │ ├── encoding
│ │ ├── doc.go
│ │ ├── encoding.go
│ │ ├── httpbinding
│ │ │ ├── encode.go
│ │ │ ├── header.go
│ │ │ ├── path_replace.go
│ │ │ ├── query.go
│ │ │ └── uri.go
│ │ ├── json
│ │ │ ├── array.go
│ │ │ ├── constants.go
│ │ │ ├── decoder_util.go
│ │ │ ├── encoder.go
│ │ │ ├── escape.go
│ │ │ ├── object.go
│ │ │ └── value.go
│ │ └── xml
│ │ │ ├── array.go
│ │ │ ├── constants.go
│ │ │ ├── doc.go
│ │ │ ├── element.go
│ │ │ ├── encoder.go
│ │ │ ├── error_utils.go
│ │ │ ├── escape.go
│ │ │ ├── map.go
│ │ │ ├── value.go
│ │ │ └── xml_decoder.go
│ │ ├── endpoints
│ │ └── endpoint.go
│ │ ├── errors.go
│ │ ├── go_module_metadata.go
│ │ ├── internal
│ │ └── sync
│ │ │ └── singleflight
│ │ │ ├── LICENSE
│ │ │ ├── docs.go
│ │ │ └── singleflight.go
│ │ ├── io
│ │ ├── byte.go
│ │ ├── doc.go
│ │ ├── reader.go
│ │ └── ringbuffer.go
│ │ ├── local-mod-replace.sh
│ │ ├── logging
│ │ └── logger.go
│ │ ├── metrics
│ │ ├── metrics.go
│ │ └── nop.go
│ │ ├── middleware
│ │ ├── context.go
│ │ ├── doc.go
│ │ ├── logging.go
│ │ ├── metadata.go
│ │ ├── middleware.go
│ │ ├── ordered_group.go
│ │ ├── stack.go
│ │ ├── stack_values.go
│ │ ├── step_build.go
│ │ ├── step_deserialize.go
│ │ ├── step_finalize.go
│ │ ├── step_initialize.go
│ │ └── step_serialize.go
│ │ ├── modman.toml
│ │ ├── private
│ │ └── requestcompression
│ │ │ ├── gzip.go
│ │ │ ├── middleware_capture_request_compression.go
│ │ │ └── request_compression.go
│ │ ├── properties.go
│ │ ├── ptr
│ │ ├── doc.go
│ │ ├── from_ptr.go
│ │ ├── gen_scalars.go
│ │ └── to_ptr.go
│ │ ├── rand
│ │ ├── doc.go
│ │ ├── rand.go
│ │ └── uuid.go
│ │ ├── time
│ │ └── time.go
│ │ ├── tracing
│ │ ├── context.go
│ │ ├── nop.go
│ │ └── tracing.go
│ │ ├── transport
│ │ └── http
│ │ │ ├── auth.go
│ │ │ ├── auth_schemes.go
│ │ │ ├── checksum_middleware.go
│ │ │ ├── client.go
│ │ │ ├── doc.go
│ │ │ ├── headerlist.go
│ │ │ ├── host.go
│ │ │ ├── internal
│ │ │ └── io
│ │ │ │ └── safe.go
│ │ │ ├── md5_checksum.go
│ │ │ ├── metrics.go
│ │ │ ├── middleware_close_response_body.go
│ │ │ ├── middleware_content_length.go
│ │ │ ├── middleware_header_comment.go
│ │ │ ├── middleware_headers.go
│ │ │ ├── middleware_http_logging.go
│ │ │ ├── middleware_metadata.go
│ │ │ ├── middleware_min_proto.go
│ │ │ ├── properties.go
│ │ │ ├── request.go
│ │ │ ├── response.go
│ │ │ ├── time.go
│ │ │ ├── url.go
│ │ │ └── user_agent.go
│ │ ├── validation.go
│ │ └── waiter
│ │ ├── logger.go
│ │ └── waiter.go
├── beorn7
│ └── perks
│ │ ├── LICENSE
│ │ └── quantile
│ │ ├── exampledata.txt
│ │ └── stream.go
├── caddyserver
│ ├── certmagic
│ │ ├── .gitignore
│ │ ├── LICENSE.txt
│ │ ├── README.md
│ │ ├── account.go
│ │ ├── acmeclient.go
│ │ ├── acmeissuer.go
│ │ ├── async.go
│ │ ├── cache.go
│ │ ├── certificates.go
│ │ ├── certmagic.go
│ │ ├── config.go
│ │ ├── crypto.go
│ │ ├── dnsutil.go
│ │ ├── filestorage.go
│ │ ├── handshake.go
│ │ ├── httphandlers.go
│ │ ├── maintain.go
│ │ ├── ocsp.go
│ │ ├── ratelimiter.go
│ │ ├── solvers.go
│ │ ├── storage.go
│ │ └── zerosslissuer.go
│ └── zerossl
│ │ ├── .gitignore
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── client.go
│ │ ├── endpoints.go
│ │ ├── models.go
│ │ └── zerossl.go
├── cespare
│ └── xxhash
│ │ └── v2
│ │ ├── LICENSE.txt
│ │ ├── README.md
│ │ ├── testall.sh
│ │ ├── xxhash.go
│ │ ├── xxhash_amd64.s
│ │ ├── xxhash_arm64.s
│ │ ├── xxhash_asm.go
│ │ ├── xxhash_other.go
│ │ ├── xxhash_safe.go
│ │ └── xxhash_unsafe.go
├── davecgh
│ └── go-spew
│ │ ├── LICENSE
│ │ └── spew
│ │ ├── bypass.go
│ │ ├── bypasssafe.go
│ │ ├── common.go
│ │ ├── config.go
│ │ ├── doc.go
│ │ ├── dump.go
│ │ ├── format.go
│ │ └── spew.go
├── didip
│ └── tollbooth
│ │ └── v7
│ │ ├── .gitignore
│ │ ├── .golangci.yml
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── errors
│ │ └── errors.go
│ │ ├── internal
│ │ └── time
│ │ │ ├── AUTHORS
│ │ │ ├── CONTRIBUTORS
│ │ │ ├── LICENSE
│ │ │ ├── PATENTS
│ │ │ └── rate
│ │ │ └── rate.go
│ │ ├── libstring
│ │ └── libstring.go
│ │ ├── limiter
│ │ ├── limiter.go
│ │ └── limiter_options.go
│ │ └── tollbooth.go
├── felixge
│ └── httpsnoop
│ │ ├── .gitignore
│ │ ├── LICENSE.txt
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── capture_metrics.go
│ │ ├── docs.go
│ │ ├── wrap_generated_gteq_1.8.go
│ │ └── wrap_generated_lt_1.8.go
├── go-pkgz
│ ├── expirable-cache
│ │ └── v3
│ │ │ ├── LICENSE
│ │ │ ├── cache.go
│ │ │ └── options.go
│ ├── lgr
│ │ ├── .gitignore
│ │ ├── .golangci.yml
│ │ ├── CODEOWNERS
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── adaptor.go
│ │ ├── interface.go
│ │ ├── logger.go
│ │ ├── mapper.go
│ │ ├── options.go
│ │ └── slog.go
│ ├── repeater
│ │ ├── .gitignore
│ │ ├── .golangci.yml
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── repeater.go
│ │ └── strategy
│ │ │ ├── backoff.go
│ │ │ ├── fixed.go
│ │ │ └── strategy.go
│ └── rest
│ │ ├── .gitignore
│ │ ├── .golangci.yml
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── basic_auth.go
│ │ ├── benchmarks.go
│ │ ├── blackwords.go
│ │ ├── cache_control.go
│ │ ├── depricattion.go
│ │ ├── file_server.go
│ │ ├── gzip.go
│ │ ├── httperrors.go
│ │ ├── logger
│ │ ├── logger.go
│ │ └── options.go
│ │ ├── metrics.go
│ │ ├── middleware.go
│ │ ├── nocache.go
│ │ ├── onlyfrom.go
│ │ ├── profiler.go
│ │ ├── realip
│ │ └── real.go
│ │ ├── rest.go
│ │ ├── rewrite.go
│ │ ├── sizelimit.go
│ │ ├── throttle.go
│ │ └── trace.go
├── gorilla
│ └── handlers
│ │ ├── .editorconfig
│ │ ├── .gitignore
│ │ ├── LICENSE
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── canonical.go
│ │ ├── compress.go
│ │ ├── cors.go
│ │ ├── doc.go
│ │ ├── handlers.go
│ │ ├── logging.go
│ │ ├── proxy_headers.go
│ │ └── recovery.go
├── klauspost
│ └── cpuid
│ │ └── v2
│ │ ├── .gitignore
│ │ ├── .goreleaser.yml
│ │ ├── CONTRIBUTING.txt
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── cpuid.go
│ │ ├── cpuid_386.s
│ │ ├── cpuid_amd64.s
│ │ ├── cpuid_arm64.s
│ │ ├── detect_arm64.go
│ │ ├── detect_ref.go
│ │ ├── detect_x86.go
│ │ ├── featureid_string.go
│ │ ├── os_darwin_arm64.go
│ │ ├── os_linux_arm64.go
│ │ ├── os_other_arm64.go
│ │ ├── os_safe_linux_arm64.go
│ │ ├── os_unsafe_linux_arm64.go
│ │ └── test-architectures.sh
├── libdns
│ ├── cloudflare
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── client.go
│ │ ├── models.go
│ │ └── provider.go
│ ├── gandi
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── client.go
│ │ ├── gandi.go
│ │ └── provider.go
│ ├── libdns
│ │ ├── .gitignore
│ │ ├── LICENSE
│ │ ├── README.md
│ │ └── libdns.go
│ └── route53
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── client.go
│ │ ├── provider.go
│ │ └── quote.go
├── mholt
│ └── acmez
│ │ └── v2
│ │ ├── .gitignore
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── THIRD-PARTY
│ │ ├── acme
│ │ ├── account.go
│ │ ├── ari.go
│ │ ├── authorization.go
│ │ ├── certificate.go
│ │ ├── challenge.go
│ │ ├── client.go
│ │ ├── http.go
│ │ ├── jws.go
│ │ ├── order.go
│ │ └── problem.go
│ │ ├── client.go
│ │ ├── csr.go
│ │ ├── mailreply00.go
│ │ ├── solver.go
│ │ └── tlsalpn01.go
├── miekg
│ └── dns
│ │ ├── .codecov.yml
│ │ ├── .gitignore
│ │ ├── AUTHORS
│ │ ├── CODEOWNERS
│ │ ├── CONTRIBUTORS
│ │ ├── COPYRIGHT
│ │ ├── LICENSE
│ │ ├── Makefile.fuzz
│ │ ├── Makefile.release
│ │ ├── README.md
│ │ ├── acceptfunc.go
│ │ ├── client.go
│ │ ├── clientconfig.go
│ │ ├── dane.go
│ │ ├── defaults.go
│ │ ├── dns.go
│ │ ├── dnssec.go
│ │ ├── dnssec_keygen.go
│ │ ├── dnssec_keyscan.go
│ │ ├── dnssec_privkey.go
│ │ ├── doc.go
│ │ ├── duplicate.go
│ │ ├── edns.go
│ │ ├── format.go
│ │ ├── fuzz.go
│ │ ├── generate.go
│ │ ├── hash.go
│ │ ├── labels.go
│ │ ├── listen_no_reuseport.go
│ │ ├── listen_reuseport.go
│ │ ├── msg.go
│ │ ├── msg_helpers.go
│ │ ├── msg_truncate.go
│ │ ├── nsecx.go
│ │ ├── privaterr.go
│ │ ├── reverse.go
│ │ ├── sanitize.go
│ │ ├── scan.go
│ │ ├── scan_rr.go
│ │ ├── serve_mux.go
│ │ ├── server.go
│ │ ├── sig0.go
│ │ ├── smimea.go
│ │ ├── svcb.go
│ │ ├── tlsa.go
│ │ ├── tools.go
│ │ ├── tsig.go
│ │ ├── types.go
│ │ ├── udp.go
│ │ ├── udp_windows.go
│ │ ├── update.go
│ │ ├── version.go
│ │ ├── xfr.go
│ │ ├── zduplicate.go
│ │ ├── zmsg.go
│ │ └── ztypes.go
├── munnerz
│ └── goautoneg
│ │ ├── LICENSE
│ │ ├── Makefile
│ │ ├── README.txt
│ │ └── autoneg.go
├── pmezard
│ └── go-difflib
│ │ ├── LICENSE
│ │ └── difflib
│ │ └── difflib.go
├── prometheus
│ ├── client_golang
│ │ ├── LICENSE
│ │ ├── NOTICE
│ │ ├── internal
│ │ │ └── github.com
│ │ │ │ └── golang
│ │ │ │ └── gddo
│ │ │ │ ├── LICENSE
│ │ │ │ └── httputil
│ │ │ │ ├── header
│ │ │ │ └── header.go
│ │ │ │ └── negotiate.go
│ │ └── prometheus
│ │ │ ├── .gitignore
│ │ │ ├── README.md
│ │ │ ├── build_info_collector.go
│ │ │ ├── collector.go
│ │ │ ├── collectorfunc.go
│ │ │ ├── counter.go
│ │ │ ├── desc.go
│ │ │ ├── doc.go
│ │ │ ├── expvar_collector.go
│ │ │ ├── fnv.go
│ │ │ ├── gauge.go
│ │ │ ├── get_pid.go
│ │ │ ├── get_pid_gopherjs.go
│ │ │ ├── go_collector.go
│ │ │ ├── go_collector_go116.go
│ │ │ ├── go_collector_latest.go
│ │ │ ├── histogram.go
│ │ │ ├── internal
│ │ │ ├── almost_equal.go
│ │ │ ├── difflib.go
│ │ │ ├── go_collector_options.go
│ │ │ ├── go_runtime_metrics.go
│ │ │ └── metric.go
│ │ │ ├── labels.go
│ │ │ ├── metric.go
│ │ │ ├── num_threads.go
│ │ │ ├── num_threads_gopherjs.go
│ │ │ ├── observer.go
│ │ │ ├── process_collector.go
│ │ │ ├── process_collector_darwin.go
│ │ │ ├── process_collector_mem_cgo_darwin.c
│ │ │ ├── process_collector_mem_cgo_darwin.go
│ │ │ ├── process_collector_mem_nocgo_darwin.go
│ │ │ ├── process_collector_not_supported.go
│ │ │ ├── process_collector_procfsenabled.go
│ │ │ ├── process_collector_windows.go
│ │ │ ├── promhttp
│ │ │ ├── delegator.go
│ │ │ ├── http.go
│ │ │ ├── instrument_client.go
│ │ │ ├── instrument_server.go
│ │ │ ├── internal
│ │ │ │ └── compression.go
│ │ │ └── option.go
│ │ │ ├── registry.go
│ │ │ ├── summary.go
│ │ │ ├── timer.go
│ │ │ ├── untyped.go
│ │ │ ├── value.go
│ │ │ ├── vec.go
│ │ │ ├── vnext.go
│ │ │ └── wrap.go
│ ├── client_model
│ │ ├── LICENSE
│ │ ├── NOTICE
│ │ └── go
│ │ │ └── metrics.pb.go
│ ├── common
│ │ ├── LICENSE
│ │ ├── NOTICE
│ │ ├── expfmt
│ │ │ ├── decode.go
│ │ │ ├── encode.go
│ │ │ ├── expfmt.go
│ │ │ ├── fuzz.go
│ │ │ ├── openmetrics_create.go
│ │ │ ├── text_create.go
│ │ │ └── text_parse.go
│ │ └── model
│ │ │ ├── alert.go
│ │ │ ├── fingerprinting.go
│ │ │ ├── fnv.go
│ │ │ ├── labels.go
│ │ │ ├── labelset.go
│ │ │ ├── labelset_string.go
│ │ │ ├── metadata.go
│ │ │ ├── metric.go
│ │ │ ├── model.go
│ │ │ ├── signature.go
│ │ │ ├── silence.go
│ │ │ ├── time.go
│ │ │ ├── value.go
│ │ │ ├── value_float.go
│ │ │ ├── value_histogram.go
│ │ │ └── value_type.go
│ └── procfs
│ │ ├── .gitignore
│ │ ├── .golangci.yml
│ │ ├── CODE_OF_CONDUCT.md
│ │ ├── CONTRIBUTING.md
│ │ ├── LICENSE
│ │ ├── MAINTAINERS.md
│ │ ├── Makefile
│ │ ├── Makefile.common
│ │ ├── NOTICE
│ │ ├── README.md
│ │ ├── SECURITY.md
│ │ ├── arp.go
│ │ ├── buddyinfo.go
│ │ ├── cmdline.go
│ │ ├── cpuinfo.go
│ │ ├── cpuinfo_armx.go
│ │ ├── cpuinfo_loong64.go
│ │ ├── cpuinfo_mipsx.go
│ │ ├── cpuinfo_others.go
│ │ ├── cpuinfo_ppcx.go
│ │ ├── cpuinfo_riscvx.go
│ │ ├── cpuinfo_s390x.go
│ │ ├── cpuinfo_x86.go
│ │ ├── crypto.go
│ │ ├── doc.go
│ │ ├── fs.go
│ │ ├── fs_statfs_notype.go
│ │ ├── fs_statfs_type.go
│ │ ├── fscache.go
│ │ ├── internal
│ │ ├── fs
│ │ │ └── fs.go
│ │ └── util
│ │ │ ├── parse.go
│ │ │ ├── readfile.go
│ │ │ ├── sysreadfile.go
│ │ │ ├── sysreadfile_compat.go
│ │ │ └── valueparser.go
│ │ ├── ipvs.go
│ │ ├── kernel_random.go
│ │ ├── loadavg.go
│ │ ├── mdstat.go
│ │ ├── meminfo.go
│ │ ├── mountinfo.go
│ │ ├── mountstats.go
│ │ ├── net_conntrackstat.go
│ │ ├── net_dev.go
│ │ ├── net_dev_snmp6.go
│ │ ├── net_ip_socket.go
│ │ ├── net_protocols.go
│ │ ├── net_route.go
│ │ ├── net_sockstat.go
│ │ ├── net_softnet.go
│ │ ├── net_tcp.go
│ │ ├── net_tls_stat.go
│ │ ├── net_udp.go
│ │ ├── net_unix.go
│ │ ├── net_wireless.go
│ │ ├── net_xfrm.go
│ │ ├── netstat.go
│ │ ├── proc.go
│ │ ├── proc_cgroup.go
│ │ ├── proc_cgroups.go
│ │ ├── proc_environ.go
│ │ ├── proc_fdinfo.go
│ │ ├── proc_interrupts.go
│ │ ├── proc_io.go
│ │ ├── proc_limits.go
│ │ ├── proc_maps.go
│ │ ├── proc_netstat.go
│ │ ├── proc_ns.go
│ │ ├── proc_psi.go
│ │ ├── proc_smaps.go
│ │ ├── proc_snmp.go
│ │ ├── proc_snmp6.go
│ │ ├── proc_stat.go
│ │ ├── proc_status.go
│ │ ├── proc_sys.go
│ │ ├── schedstat.go
│ │ ├── slab.go
│ │ ├── softirqs.go
│ │ ├── stat.go
│ │ ├── swaps.go
│ │ ├── thread.go
│ │ ├── ttar
│ │ ├── vm.go
│ │ └── zoneinfo.go
├── stretchr
│ └── testify
│ │ ├── LICENSE
│ │ ├── assert
│ │ ├── assertion_compare.go
│ │ ├── assertion_format.go
│ │ ├── assertion_format.go.tmpl
│ │ ├── assertion_forward.go
│ │ ├── assertion_forward.go.tmpl
│ │ ├── assertion_order.go
│ │ ├── assertions.go
│ │ ├── doc.go
│ │ ├── errors.go
│ │ ├── forward_assertions.go
│ │ ├── http_assertions.go
│ │ └── yaml
│ │ │ ├── yaml_custom.go
│ │ │ ├── yaml_default.go
│ │ │ └── yaml_fail.go
│ │ └── require
│ │ ├── doc.go
│ │ ├── forward_requirements.go
│ │ ├── require.go
│ │ ├── require.go.tmpl
│ │ ├── require_forward.go
│ │ ├── require_forward.go.tmpl
│ │ └── requirements.go
├── umputun
│ └── go-flags
│ │ ├── .travis.yml
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── arg.go
│ │ ├── check_crosscompile.sh
│ │ ├── closest.go
│ │ ├── command.go
│ │ ├── completion.go
│ │ ├── convert.go
│ │ ├── error.go
│ │ ├── flags.go
│ │ ├── group.go
│ │ ├── help.go
│ │ ├── ini.go
│ │ ├── man.go
│ │ ├── multitag.go
│ │ ├── option.go
│ │ ├── optstyle_other.go
│ │ ├── optstyle_windows.go
│ │ ├── parser.go
│ │ ├── termsize.go
│ │ ├── termsize_nosysioctl.go
│ │ ├── termsize_windows.go
│ │ ├── tiocgwinsz_bsdish.go
│ │ ├── tiocgwinsz_linux.go
│ │ └── tiocgwinsz_other.go
└── zeebo
│ └── blake3
│ ├── .gitignore
│ ├── LICENSE
│ ├── Makefile
│ ├── README.md
│ ├── api.go
│ ├── blake3.go
│ ├── digest.go
│ └── internal
│ ├── alg
│ ├── alg.go
│ ├── compress
│ │ ├── compress.go
│ │ ├── compress_pure
│ │ │ └── compress.go
│ │ └── compress_sse41
│ │ │ ├── impl_amd64.s
│ │ │ ├── impl_other.go
│ │ │ └── stubs.go
│ └── hash
│ │ ├── hash.go
│ │ ├── hash_avx2
│ │ ├── impl_amd64.s
│ │ ├── impl_other.go
│ │ └── stubs.go
│ │ └── hash_pure
│ │ ├── hashf.go
│ │ └── hashp.go
│ ├── consts
│ ├── consts.go
│ ├── cpu.go
│ ├── cpu_little.go
│ ├── cpu_other.go
│ └── cpu_purego.go
│ └── utils
│ └── utils.go
├── go.uber.org
├── multierr
│ ├── .codecov.yml
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── LICENSE.txt
│ ├── Makefile
│ ├── README.md
│ ├── error.go
│ ├── error_post_go120.go
│ └── error_pre_go120.go
└── zap
│ ├── .codecov.yml
│ ├── .gitignore
│ ├── .golangci.yml
│ ├── .readme.tmpl
│ ├── CHANGELOG.md
│ ├── CODE_OF_CONDUCT.md
│ ├── CONTRIBUTING.md
│ ├── FAQ.md
│ ├── LICENSE
│ ├── Makefile
│ ├── README.md
│ ├── array.go
│ ├── buffer
│ ├── buffer.go
│ └── pool.go
│ ├── checklicense.sh
│ ├── config.go
│ ├── doc.go
│ ├── encoder.go
│ ├── error.go
│ ├── field.go
│ ├── flag.go
│ ├── glide.yaml
│ ├── global.go
│ ├── http_handler.go
│ ├── internal
│ ├── bufferpool
│ │ └── bufferpool.go
│ ├── color
│ │ └── color.go
│ ├── exit
│ │ └── exit.go
│ ├── level_enabler.go
│ ├── pool
│ │ └── pool.go
│ └── stacktrace
│ │ └── stack.go
│ ├── level.go
│ ├── logger.go
│ ├── options.go
│ ├── sink.go
│ ├── sugar.go
│ ├── time.go
│ ├── writer.go
│ └── zapcore
│ ├── buffered_write_syncer.go
│ ├── clock.go
│ ├── console_encoder.go
│ ├── core.go
│ ├── doc.go
│ ├── encoder.go
│ ├── entry.go
│ ├── error.go
│ ├── field.go
│ ├── hook.go
│ ├── increase_level.go
│ ├── json_encoder.go
│ ├── lazy_with.go
│ ├── level.go
│ ├── level_strings.go
│ ├── marshaler.go
│ ├── memory_encoder.go
│ ├── reflected_encoder.go
│ ├── sampler.go
│ ├── tee.go
│ └── write_syncer.go
├── golang.org
└── x
│ ├── crypto
│ ├── LICENSE
│ ├── PATENTS
│ ├── argon2
│ │ ├── argon2.go
│ │ ├── blake2b.go
│ │ ├── blamka_amd64.go
│ │ ├── blamka_amd64.s
│ │ ├── blamka_generic.go
│ │ └── blamka_ref.go
│ ├── bcrypt
│ │ ├── base64.go
│ │ └── bcrypt.go
│ ├── blake2b
│ │ ├── blake2b.go
│ │ ├── blake2bAVX2_amd64.go
│ │ ├── blake2bAVX2_amd64.s
│ │ ├── blake2b_amd64.s
│ │ ├── blake2b_generic.go
│ │ ├── blake2b_ref.go
│ │ ├── blake2x.go
│ │ └── register.go
│ ├── blowfish
│ │ ├── block.go
│ │ ├── cipher.go
│ │ └── const.go
│ ├── cryptobyte
│ │ ├── asn1.go
│ │ ├── asn1
│ │ │ └── asn1.go
│ │ ├── builder.go
│ │ └── string.go
│ └── ocsp
│ │ └── ocsp.go
│ ├── mod
│ ├── LICENSE
│ ├── PATENTS
│ └── semver
│ │ └── semver.go
│ ├── net
│ ├── LICENSE
│ ├── PATENTS
│ ├── bpf
│ │ ├── asm.go
│ │ ├── constants.go
│ │ ├── doc.go
│ │ ├── instructions.go
│ │ ├── setter.go
│ │ ├── vm.go
│ │ └── vm_instructions.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
│ │ ├── iana
│ │ │ └── const.go
│ │ └── socket
│ │ │ ├── cmsghdr.go
│ │ │ ├── cmsghdr_bsd.go
│ │ │ ├── cmsghdr_linux_32bit.go
│ │ │ ├── cmsghdr_linux_64bit.go
│ │ │ ├── cmsghdr_solaris_64bit.go
│ │ │ ├── cmsghdr_stub.go
│ │ │ ├── cmsghdr_unix.go
│ │ │ ├── cmsghdr_zos_s390x.go
│ │ │ ├── complete_dontwait.go
│ │ │ ├── complete_nodontwait.go
│ │ │ ├── empty.s
│ │ │ ├── error_unix.go
│ │ │ ├── error_windows.go
│ │ │ ├── iovec_32bit.go
│ │ │ ├── iovec_64bit.go
│ │ │ ├── iovec_solaris_64bit.go
│ │ │ ├── iovec_stub.go
│ │ │ ├── mmsghdr_stub.go
│ │ │ ├── mmsghdr_unix.go
│ │ │ ├── msghdr_bsd.go
│ │ │ ├── msghdr_bsdvar.go
│ │ │ ├── msghdr_linux.go
│ │ │ ├── msghdr_linux_32bit.go
│ │ │ ├── msghdr_linux_64bit.go
│ │ │ ├── msghdr_openbsd.go
│ │ │ ├── msghdr_solaris_64bit.go
│ │ │ ├── msghdr_stub.go
│ │ │ ├── msghdr_zos_s390x.go
│ │ │ ├── norace.go
│ │ │ ├── race.go
│ │ │ ├── rawconn.go
│ │ │ ├── rawconn_mmsg.go
│ │ │ ├── rawconn_msg.go
│ │ │ ├── rawconn_nommsg.go
│ │ │ ├── rawconn_nomsg.go
│ │ │ ├── socket.go
│ │ │ ├── sys.go
│ │ │ ├── sys_bsd.go
│ │ │ ├── sys_const_unix.go
│ │ │ ├── sys_linux.go
│ │ │ ├── sys_linux_386.go
│ │ │ ├── sys_linux_386.s
│ │ │ ├── sys_linux_amd64.go
│ │ │ ├── sys_linux_arm.go
│ │ │ ├── sys_linux_arm64.go
│ │ │ ├── sys_linux_loong64.go
│ │ │ ├── sys_linux_mips.go
│ │ │ ├── sys_linux_mips64.go
│ │ │ ├── sys_linux_mips64le.go
│ │ │ ├── sys_linux_mipsle.go
│ │ │ ├── sys_linux_ppc.go
│ │ │ ├── sys_linux_ppc64.go
│ │ │ ├── sys_linux_ppc64le.go
│ │ │ ├── sys_linux_riscv64.go
│ │ │ ├── sys_linux_s390x.go
│ │ │ ├── sys_linux_s390x.s
│ │ │ ├── sys_netbsd.go
│ │ │ ├── sys_posix.go
│ │ │ ├── sys_stub.go
│ │ │ ├── sys_unix.go
│ │ │ ├── sys_windows.go
│ │ │ ├── sys_zos_s390x.go
│ │ │ ├── sys_zos_s390x.s
│ │ │ ├── zsys_aix_ppc64.go
│ │ │ ├── zsys_darwin_amd64.go
│ │ │ ├── zsys_darwin_arm64.go
│ │ │ ├── zsys_dragonfly_amd64.go
│ │ │ ├── zsys_freebsd_386.go
│ │ │ ├── zsys_freebsd_amd64.go
│ │ │ ├── zsys_freebsd_arm.go
│ │ │ ├── zsys_freebsd_arm64.go
│ │ │ ├── zsys_freebsd_riscv64.go
│ │ │ ├── zsys_linux_386.go
│ │ │ ├── zsys_linux_amd64.go
│ │ │ ├── zsys_linux_arm.go
│ │ │ ├── zsys_linux_arm64.go
│ │ │ ├── zsys_linux_loong64.go
│ │ │ ├── zsys_linux_mips.go
│ │ │ ├── zsys_linux_mips64.go
│ │ │ ├── zsys_linux_mips64le.go
│ │ │ ├── zsys_linux_mipsle.go
│ │ │ ├── zsys_linux_ppc.go
│ │ │ ├── zsys_linux_ppc64.go
│ │ │ ├── zsys_linux_ppc64le.go
│ │ │ ├── zsys_linux_riscv64.go
│ │ │ ├── zsys_linux_s390x.go
│ │ │ ├── zsys_netbsd_386.go
│ │ │ ├── zsys_netbsd_amd64.go
│ │ │ ├── zsys_netbsd_arm.go
│ │ │ ├── zsys_netbsd_arm64.go
│ │ │ ├── zsys_openbsd_386.go
│ │ │ ├── zsys_openbsd_amd64.go
│ │ │ ├── zsys_openbsd_arm.go
│ │ │ ├── zsys_openbsd_arm64.go
│ │ │ ├── zsys_openbsd_mips64.go
│ │ │ ├── zsys_openbsd_ppc64.go
│ │ │ ├── zsys_openbsd_riscv64.go
│ │ │ ├── zsys_solaris_amd64.go
│ │ │ └── zsys_zos_s390x.go
│ ├── ipv4
│ │ ├── batch.go
│ │ ├── control.go
│ │ ├── control_bsd.go
│ │ ├── control_pktinfo.go
│ │ ├── control_stub.go
│ │ ├── control_unix.go
│ │ ├── control_windows.go
│ │ ├── control_zos.go
│ │ ├── dgramopt.go
│ │ ├── doc.go
│ │ ├── endpoint.go
│ │ ├── genericopt.go
│ │ ├── header.go
│ │ ├── helper.go
│ │ ├── iana.go
│ │ ├── icmp.go
│ │ ├── icmp_linux.go
│ │ ├── icmp_stub.go
│ │ ├── packet.go
│ │ ├── payload.go
│ │ ├── payload_cmsg.go
│ │ ├── payload_nocmsg.go
│ │ ├── sockopt.go
│ │ ├── sockopt_posix.go
│ │ ├── sockopt_stub.go
│ │ ├── sys_aix.go
│ │ ├── sys_asmreq.go
│ │ ├── sys_asmreq_stub.go
│ │ ├── sys_asmreqn.go
│ │ ├── sys_asmreqn_stub.go
│ │ ├── sys_bpf.go
│ │ ├── sys_bpf_stub.go
│ │ ├── sys_bsd.go
│ │ ├── sys_darwin.go
│ │ ├── sys_dragonfly.go
│ │ ├── sys_freebsd.go
│ │ ├── sys_linux.go
│ │ ├── sys_solaris.go
│ │ ├── sys_ssmreq.go
│ │ ├── sys_ssmreq_stub.go
│ │ ├── sys_stub.go
│ │ ├── sys_windows.go
│ │ ├── sys_zos.go
│ │ ├── zsys_aix_ppc64.go
│ │ ├── zsys_darwin.go
│ │ ├── zsys_dragonfly.go
│ │ ├── zsys_freebsd_386.go
│ │ ├── zsys_freebsd_amd64.go
│ │ ├── zsys_freebsd_arm.go
│ │ ├── zsys_freebsd_arm64.go
│ │ ├── zsys_freebsd_riscv64.go
│ │ ├── zsys_linux_386.go
│ │ ├── zsys_linux_amd64.go
│ │ ├── zsys_linux_arm.go
│ │ ├── zsys_linux_arm64.go
│ │ ├── zsys_linux_loong64.go
│ │ ├── zsys_linux_mips.go
│ │ ├── zsys_linux_mips64.go
│ │ ├── zsys_linux_mips64le.go
│ │ ├── zsys_linux_mipsle.go
│ │ ├── zsys_linux_ppc.go
│ │ ├── zsys_linux_ppc64.go
│ │ ├── zsys_linux_ppc64le.go
│ │ ├── zsys_linux_riscv64.go
│ │ ├── zsys_linux_s390x.go
│ │ ├── zsys_netbsd.go
│ │ ├── zsys_openbsd.go
│ │ ├── zsys_solaris.go
│ │ └── zsys_zos_s390x.go
│ └── ipv6
│ │ ├── batch.go
│ │ ├── control.go
│ │ ├── control_rfc2292_unix.go
│ │ ├── control_rfc3542_unix.go
│ │ ├── control_stub.go
│ │ ├── control_unix.go
│ │ ├── control_windows.go
│ │ ├── dgramopt.go
│ │ ├── doc.go
│ │ ├── endpoint.go
│ │ ├── genericopt.go
│ │ ├── header.go
│ │ ├── helper.go
│ │ ├── iana.go
│ │ ├── icmp.go
│ │ ├── icmp_bsd.go
│ │ ├── icmp_linux.go
│ │ ├── icmp_solaris.go
│ │ ├── icmp_stub.go
│ │ ├── icmp_windows.go
│ │ ├── icmp_zos.go
│ │ ├── payload.go
│ │ ├── payload_cmsg.go
│ │ ├── payload_nocmsg.go
│ │ ├── sockopt.go
│ │ ├── sockopt_posix.go
│ │ ├── sockopt_stub.go
│ │ ├── sys_aix.go
│ │ ├── sys_asmreq.go
│ │ ├── sys_asmreq_stub.go
│ │ ├── sys_bpf.go
│ │ ├── sys_bpf_stub.go
│ │ ├── sys_bsd.go
│ │ ├── sys_darwin.go
│ │ ├── sys_freebsd.go
│ │ ├── sys_linux.go
│ │ ├── sys_solaris.go
│ │ ├── sys_ssmreq.go
│ │ ├── sys_ssmreq_stub.go
│ │ ├── sys_stub.go
│ │ ├── sys_windows.go
│ │ ├── sys_zos.go
│ │ ├── zsys_aix_ppc64.go
│ │ ├── zsys_darwin.go
│ │ ├── zsys_dragonfly.go
│ │ ├── zsys_freebsd_386.go
│ │ ├── zsys_freebsd_amd64.go
│ │ ├── zsys_freebsd_arm.go
│ │ ├── zsys_freebsd_arm64.go
│ │ ├── zsys_freebsd_riscv64.go
│ │ ├── zsys_linux_386.go
│ │ ├── zsys_linux_amd64.go
│ │ ├── zsys_linux_arm.go
│ │ ├── zsys_linux_arm64.go
│ │ ├── zsys_linux_loong64.go
│ │ ├── zsys_linux_mips.go
│ │ ├── zsys_linux_mips64.go
│ │ ├── zsys_linux_mips64le.go
│ │ ├── zsys_linux_mipsle.go
│ │ ├── zsys_linux_ppc.go
│ │ ├── zsys_linux_ppc64.go
│ │ ├── zsys_linux_ppc64le.go
│ │ ├── zsys_linux_riscv64.go
│ │ ├── zsys_linux_s390x.go
│ │ ├── zsys_netbsd.go
│ │ ├── zsys_openbsd.go
│ │ ├── zsys_solaris.go
│ │ └── zsys_zos_s390x.go
│ ├── sync
│ ├── LICENSE
│ ├── PATENTS
│ └── errgroup
│ │ └── errgroup.go
│ ├── sys
│ ├── LICENSE
│ ├── PATENTS
│ ├── cpu
│ │ ├── asm_aix_ppc64.s
│ │ ├── asm_darwin_x86_gc.s
│ │ ├── byteorder.go
│ │ ├── cpu.go
│ │ ├── cpu_aix.go
│ │ ├── cpu_arm.go
│ │ ├── cpu_arm64.go
│ │ ├── cpu_arm64.s
│ │ ├── cpu_darwin_x86.go
│ │ ├── cpu_gc_arm64.go
│ │ ├── cpu_gc_s390x.go
│ │ ├── cpu_gc_x86.go
│ │ ├── cpu_gc_x86.s
│ │ ├── cpu_gccgo_arm64.go
│ │ ├── cpu_gccgo_s390x.go
│ │ ├── cpu_gccgo_x86.c
│ │ ├── cpu_gccgo_x86.go
│ │ ├── cpu_linux.go
│ │ ├── cpu_linux_arm.go
│ │ ├── cpu_linux_arm64.go
│ │ ├── cpu_linux_loong64.go
│ │ ├── cpu_linux_mips64x.go
│ │ ├── cpu_linux_noinit.go
│ │ ├── cpu_linux_ppc64x.go
│ │ ├── cpu_linux_riscv64.go
│ │ ├── cpu_linux_s390x.go
│ │ ├── cpu_loong64.go
│ │ ├── cpu_loong64.s
│ │ ├── cpu_mips64x.go
│ │ ├── cpu_mipsx.go
│ │ ├── cpu_netbsd_arm64.go
│ │ ├── cpu_openbsd_arm64.go
│ │ ├── cpu_openbsd_arm64.s
│ │ ├── cpu_other_arm.go
│ │ ├── cpu_other_arm64.go
│ │ ├── cpu_other_mips64x.go
│ │ ├── cpu_other_ppc64x.go
│ │ ├── cpu_other_riscv64.go
│ │ ├── cpu_other_x86.go
│ │ ├── cpu_ppc64x.go
│ │ ├── cpu_riscv64.go
│ │ ├── cpu_s390x.go
│ │ ├── cpu_s390x.s
│ │ ├── cpu_wasm.go
│ │ ├── cpu_x86.go
│ │ ├── cpu_zos.go
│ │ ├── cpu_zos_s390x.go
│ │ ├── endian_big.go
│ │ ├── endian_little.go
│ │ ├── hwcap_linux.go
│ │ ├── parse.go
│ │ ├── proc_cpuinfo_linux.go
│ │ ├── runtime_auxv.go
│ │ ├── runtime_auxv_go121.go
│ │ ├── syscall_aix_gccgo.go
│ │ ├── syscall_aix_ppc64_gc.go
│ │ └── syscall_darwin_x86_gc.go
│ ├── unix
│ │ ├── .gitignore
│ │ ├── README.md
│ │ ├── affinity_linux.go
│ │ ├── aliases.go
│ │ ├── asm_aix_ppc64.s
│ │ ├── asm_bsd_386.s
│ │ ├── asm_bsd_amd64.s
│ │ ├── asm_bsd_arm.s
│ │ ├── asm_bsd_arm64.s
│ │ ├── asm_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
│ │ ├── auxv.go
│ │ ├── auxv_unsupported.go
│ │ ├── 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
│ ├── iimport_go122.go
│ ├── predeclared.go
│ ├── support.go
│ └── ureader_yes.go
│ ├── gocommand
│ ├── invoke.go
│ ├── invoke_notunix.go
│ ├── invoke_unix.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
│ ├── deps.go
│ ├── import.go
│ ├── manifest.go
│ └── stdlib.go
│ ├── typeparams
│ ├── common.go
│ ├── coretype.go
│ ├── free.go
│ ├── normalize.go
│ ├── termlist.go
│ └── typeterm.go
│ ├── typesinternal
│ ├── classify_call.go
│ ├── element.go
│ ├── errorcode.go
│ ├── errorcode_string.go
│ ├── qualifier.go
│ ├── recv.go
│ ├── toonew.go
│ ├── types.go
│ ├── varkind.go
│ └── zerovalue.go
│ └── versions
│ ├── features.go
│ ├── gover.go
│ ├── types.go
│ └── versions.go
├── google.golang.org
└── protobuf
│ ├── LICENSE
│ ├── PATENTS
│ ├── encoding
│ ├── protodelim
│ │ └── protodelim.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
│ ├── encoding
│ │ ├── defval
│ │ │ └── default.go
│ │ ├── messageset
│ │ │ └── messageset.go
│ │ ├── tag
│ │ │ └── tag.go
│ │ └── text
│ │ │ ├── decode.go
│ │ │ ├── decode_number.go
│ │ │ ├── decode_string.go
│ │ │ ├── decode_token.go
│ │ │ ├── doc.go
│ │ │ └── encode.go
│ ├── errors
│ │ └── errors.go
│ ├── 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
│ │ ├── name.go
│ │ ├── source_context_gen.go
│ │ ├── struct_gen.go
│ │ ├── timestamp_gen.go
│ │ ├── type_gen.go
│ │ ├── wrappers.go
│ │ └── wrappers_gen.go
│ ├── impl
│ │ ├── api_export.go
│ │ ├── api_export_opaque.go
│ │ ├── bitmap.go
│ │ ├── bitmap_race.go
│ │ ├── checkinit.go
│ │ ├── codec_extension.go
│ │ ├── codec_field.go
│ │ ├── codec_field_opaque.go
│ │ ├── codec_gen.go
│ │ ├── codec_map.go
│ │ ├── codec_message.go
│ │ ├── codec_message_opaque.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
│ │ ├── lazy.go
│ │ ├── legacy_enum.go
│ │ ├── legacy_export.go
│ │ ├── legacy_extension.go
│ │ ├── legacy_file.go
│ │ ├── legacy_message.go
│ │ ├── merge.go
│ │ ├── merge_gen.go
│ │ ├── message.go
│ │ ├── message_opaque.go
│ │ ├── message_opaque_gen.go
│ │ ├── message_reflect.go
│ │ ├── message_reflect_field.go
│ │ ├── message_reflect_field_gen.go
│ │ ├── message_reflect_gen.go
│ │ ├── pointer_unsafe.go
│ │ ├── pointer_unsafe_opaque.go
│ │ ├── presence.go
│ │ └── validate.go
│ ├── order
│ │ ├── order.go
│ │ └── range.go
│ ├── pragma
│ │ └── pragma.go
│ ├── protolazy
│ │ ├── bufferreader.go
│ │ ├── lazy.go
│ │ └── pointer_unsafe.go
│ ├── set
│ │ └── ints.go
│ ├── strs
│ │ ├── strings.go
│ │ └── strings_unsafe.go
│ └── version
│ │ └── version.go
│ ├── proto
│ ├── checkinit.go
│ ├── decode.go
│ ├── decode_gen.go
│ ├── doc.go
│ ├── encode.go
│ ├── encode_gen.go
│ ├── equal.go
│ ├── extension.go
│ ├── merge.go
│ ├── messageset.go
│ ├── proto.go
│ ├── proto_methods.go
│ ├── proto_reflect.go
│ ├── reset.go
│ ├── size.go
│ ├── size_gen.go
│ ├── wrapperopaque.go
│ └── wrappers.go
│ ├── reflect
│ ├── protoreflect
│ │ ├── methods.go
│ │ ├── proto.go
│ │ ├── source.go
│ │ ├── source_gen.go
│ │ ├── type.go
│ │ ├── value.go
│ │ ├── value_equal.go
│ │ ├── value_union.go
│ │ └── value_unsafe.go
│ └── protoregistry
│ │ └── registry.go
│ ├── runtime
│ ├── protoiface
│ │ ├── legacy.go
│ │ └── methods.go
│ └── protoimpl
│ │ ├── impl.go
│ │ └── version.go
│ └── types
│ └── known
│ └── timestamppb
│ └── timestamp.pb.go
├── gopkg.in
├── natefinch
│ └── lumberjack.v2
│ │ ├── .gitignore
│ │ ├── .travis.yml
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── chown.go
│ │ ├── chown_linux.go
│ │ └── lumberjack.go
└── yaml.v3
│ ├── LICENSE
│ ├── NOTICE
│ ├── README.md
│ ├── apic.go
│ ├── decode.go
│ ├── emitterc.go
│ ├── encode.go
│ ├── parserc.go
│ ├── readerc.go
│ ├── resolve.go
│ ├── scannerc.go
│ ├── sorter.go
│ ├── writerc.go
│ ├── yaml.go
│ ├── yamlh.go
│ └── yamlprivateh.go
└── modules.txt
/.dockerignore:
--------------------------------------------------------------------------------
1 | dist/
--------------------------------------------------------------------------------
/.github/CODEOWNERS:
--------------------------------------------------------------------------------
1 | # These owners will be the default owners for everything in the repo.
2 | # Unless a later match takes precedence, @umputun will be requested for
3 | # review when someone opens a pull request.
4 |
5 | * @umputun
6 |
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [umputun]
4 |
--------------------------------------------------------------------------------
/.github/dependabot.yml:
--------------------------------------------------------------------------------
1 | # To get started with Dependabot version updates, you'll need to specify which
2 | # package ecosystems to update and where the package manifests are located.
3 | # Please see the documentation for all configuration options:
4 | # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5 |
6 | version: 2
7 | updates:
8 | - package-ecosystem: "gomod"
9 | directory: "/"
10 | schedule:
11 | interval: "weekly"
12 | open-pull-requests-limit: 0
13 | - package-ecosystem: "gomod"
14 | directory: "/examples/plugin"
15 | schedule:
16 | interval: "weekly"
17 | open-pull-requests-limit: 0
18 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.test
2 | *.out
3 | access.log
4 | var/
5 | dist/
6 | docker-compose-private.yml
7 | .vscode
8 | .idea
9 | *.gpg
10 | reproxy-private.yml
11 | .env
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Security Policy
2 |
3 | Please report (suspected) security vulnerabilities to umputun@gmail.com. You will receive a response from us within 48 hours.
4 | If the issue is confirmed, we will release a patch as soon as possible depending on complexity but historically within a few days.
5 |
--------------------------------------------------------------------------------
/app/discovery/provider/testdata/config.yml:
--------------------------------------------------------------------------------
1 | default:
2 | - {route: "^/api/svc1/(.*)", dest: "http://127.0.0.1:8080/blah1/$1"}
3 | - {route: "/api/svc3/xyz", dest: "http://127.0.0.3:8080/blah3/xyz", "ping": "http://127.0.0.3:8080/ping"}
4 | - {route: "/web/", dest: "/var/web", "assets": yes, "keep-host": yes, "remote": "192.168.1.0/24, 124.0.0.1"}
5 | - {route: "/web2/", dest: "/var/web2", "spa": yes, "keep-host": no}
6 | srv.example.com:
7 | - {route: "^/api/svc2/(.*)", dest: "http://127.0.0.2:8080/blah2/$1/abc"}
8 |
--------------------------------------------------------------------------------
/app/proxy/testdata/1.html:
--------------------------------------------------------------------------------
1 | test html
--------------------------------------------------------------------------------
/app/proxy/testdata/404.html:
--------------------------------------------------------------------------------
1 | not found! blah blah blah
2 | there is no spoon
--------------------------------------------------------------------------------
/app/proxy/testdata/errtmpl.html:
--------------------------------------------------------------------------------
1 | oh my! {{.ErrCode}} - {{.ErrMessage}}
--------------------------------------------------------------------------------
/app/proxy/testdata/index.html:
--------------------------------------------------------------------------------
1 | index html
--------------------------------------------------------------------------------
/examples/assets/README.md:
--------------------------------------------------------------------------------
1 | # Assets (static files) server
2 |
3 | The example demonstrates how to use reproxy.io for static content serving
4 |
5 | - [embed](embed) is a Dockerfile embedding assets into container and serving them with reproxy.
6 | Build it with `docker build -t example .` and run with `docker run -it --rm -p 80:80 example`. Hit `http://localhost/index.html` (or `http://localhost`) and `http://localhost/1.html`. Alternatively use `docker-compose build && docker-compose up`
7 | - [external](external) demonstrates how to serve assets from docker's volume (host's file system). The same as above, but you can also edit files inside `assets` and see the changed responses.
--------------------------------------------------------------------------------
/examples/assets/embed/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM umputun/reproxy:master
2 | ENV TZ=America/Chicago
3 | COPY assets /web
4 | EXPOSE 80
5 | CMD ["--assets.location=/web", "--listen=0.0.0.0:80"]
--------------------------------------------------------------------------------
/examples/assets/embed/assets/1.html:
--------------------------------------------------------------------------------
1 | 1.html
--------------------------------------------------------------------------------
/examples/assets/embed/assets/index.html:
--------------------------------------------------------------------------------
1 | index
--------------------------------------------------------------------------------
/examples/assets/embed/docker-compose.yml:
--------------------------------------------------------------------------------
1 | services:
2 | reproxy-embed:
3 | build: .
4 | container_name: reproxy-embed
5 | hostname: reproxy-embed
6 | ports:
7 | - "80:80"
--------------------------------------------------------------------------------
/examples/assets/external/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM umputun/reproxy:master
2 | ENV TIME_ZONE=America/Chicago
3 | EXPOSE 80
4 | CMD ["--assets.location=/web", "--listen=0.0.0.0:80"]
--------------------------------------------------------------------------------
/examples/assets/external/assets/1.html:
--------------------------------------------------------------------------------
1 | 1.html
--------------------------------------------------------------------------------
/examples/assets/external/assets/index.html:
--------------------------------------------------------------------------------
1 | index
--------------------------------------------------------------------------------
/examples/assets/external/docker-compose.yml:
--------------------------------------------------------------------------------
1 | services:
2 | reproxy-external:
3 | build: .
4 | container_name: reproxy-external
5 | hostname: reproxy-external
6 | ports:
7 | - "80:80"
8 | volumes:
9 | - ./assets:/web
10 |
--------------------------------------------------------------------------------
/examples/docker/README.md:
--------------------------------------------------------------------------------
1 | # Example of a docker provider
2 |
3 | run this example with `docker-compose up` and try to hit containers:
4 |
5 | - `curl http://localhost/api/svc1/123`
6 | - `curl http://localhost/api/svc2/345`
7 | - `curl http://localhost/whoami/test`
8 |
9 | you can also try the assets server:
10 |
11 | - `curl http://localhost/1.html`
12 | - `curl http://localhost/`
13 |
--------------------------------------------------------------------------------
/examples/docker/web/1.html:
--------------------------------------------------------------------------------
1 | 1.html
--------------------------------------------------------------------------------
/examples/docker/web/index.html:
--------------------------------------------------------------------------------
1 | index
--------------------------------------------------------------------------------
/examples/file/Makefile:
--------------------------------------------------------------------------------
1 | run: install
2 | echo-http --listen=0.0.0.0:8081 --message=svc1 &
3 | echo-http --listen=0.0.0.0:8082 --message=svc2 &
4 | echo-http --listen=0.0.0.0:8083 --message=svc3 &
5 | ../../dist/reproxy --file.enabled --file.name=reproxy.yml --assets.location=./web --assets.root=/static --dbg --logger.stdout
6 | pkill -9 echo-http
7 |
8 | run_assets_only: install
9 | ../../dist/reproxy --assets.location=./web --assets.root=/
10 | pkill -9 echo-http
11 |
12 | kill:
13 | pkill -9 echo-http
14 |
15 | install:
16 | cd ../../app && CGO_ENABLED=0 go build -o ../dist/reproxy
17 | cd /tmp && go install github.com/umputun/echo-http@latest
18 |
--------------------------------------------------------------------------------
/examples/file/README.md:
--------------------------------------------------------------------------------
1 | # Example of a file provider
2 |
3 | To run it do `make run` and try to hit it, for example
4 | - `curl localhost:8080/api/svc1/aaaaa`
5 | - `curl localhost:8080/api/svc1`
6 | - `curl localhost:8080/api/svc2/something`
7 | - `curl localhost:8080/api/svc3/something`
8 | - `curl 127.0.0.1:8080/api/svc3/something`
9 | - `curl 127.0.0.1:8080/static/1.html`
10 |
11 | for health check try - `curl localhost:8080/health`
12 |
13 | In order to kill all services run `make kill`
14 |
--------------------------------------------------------------------------------
/examples/file/reproxy.yml:
--------------------------------------------------------------------------------
1 | default:
2 | - {route: "^/api/svc1/(.*)", dest: "http://127.0.0.1:8081/api/$1","ping": "http://127.0.0.1:8081/health"}
3 | - {route: "/api/svc2", dest: "http://127.0.0.1:8082/api", "ping": "http://127.0.0.1:8082/health"}
4 | localhost:
5 | - {route: "^/api/svc3/(.*)", dest: "http://localhost:8083/$1","ping": "http://127.0.0.1:8083/health"}
6 | - {route: "/www", dest: "web2", "assets": true}
7 |
--------------------------------------------------------------------------------
/examples/file/web/1.html:
--------------------------------------------------------------------------------
1 | 1.html
--------------------------------------------------------------------------------
/examples/file/web/index.html:
--------------------------------------------------------------------------------
1 | index
--------------------------------------------------------------------------------
/examples/file/web2/1.html:
--------------------------------------------------------------------------------
1 | 1.html web2
--------------------------------------------------------------------------------
/examples/file/web2/index.html:
--------------------------------------------------------------------------------
1 | index web2
--------------------------------------------------------------------------------
/examples/metrics/prometheus/prometheus.yml:
--------------------------------------------------------------------------------
1 | global:
2 | scrape_interval: 15s
3 | evaluation_interval: 15s
4 |
5 | scrape_configs:
6 | - job_name: prometheus
7 | static_configs:
8 | - targets: ['localhost:9090']
9 | - job_name: reproxy
10 | metrics_path: /metrics
11 | static_configs:
12 | - targets:
13 | - reproxy:8081
14 |
--------------------------------------------------------------------------------
/examples/plugin/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM golang:1.22-alpine as build
2 |
3 | ENV CGO_ENABLED=0
4 |
5 | ADD . /build
6 | WORKDIR /build
7 |
8 | RUN go build -o /build/plugin-example -ldflags "-X main.revision=${version} -s -w"
9 |
10 |
11 | FROM scratch
12 |
13 | COPY --from=build /build/plugin-example /srv/plugin-example
14 |
15 | WORKDIR /srv
16 | ENTRYPOINT ["/srv/plugin-example"]
17 |
--------------------------------------------------------------------------------
/examples/plugin/README.md:
--------------------------------------------------------------------------------
1 | # Example of plugin
2 |
3 |
--------------------------------------------------------------------------------
/examples/plugin/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/umputun/reproxy/plugin
2 |
3 | go 1.22
4 |
5 | require github.com/umputun/reproxy v0.999.0
6 |
7 | require (
8 | github.com/go-pkgz/lgr v0.11.1 // indirect
9 | github.com/go-pkgz/repeater v1.1.3 // indirect
10 | )
11 |
12 | replace github.com/umputun/reproxy => ../../
13 |
--------------------------------------------------------------------------------
/examples/plugin/vendor/github.com/go-pkgz/lgr/.gitignore:
--------------------------------------------------------------------------------
1 | # Binaries for programs and plugins
2 | *.exe
3 | *.exe~
4 | *.dll
5 | *.so
6 | *.dylib
7 |
8 | # Test binary, build with `go test -c`
9 | *.test
10 |
11 | # Output of the go coverage tool, specifically when used with LiteIDE
12 | *.out
13 | vendor
14 |
--------------------------------------------------------------------------------
/examples/plugin/vendor/github.com/go-pkgz/repeater/.gitignore:
--------------------------------------------------------------------------------
1 | # Binaries for programs and plugins
2 | *.exe
3 | *.exe~
4 | *.dll
5 | *.so
6 | *.dylib
7 |
8 | # Test binary, build with `go test -c`
9 | *.test
10 |
11 | # Output of the go coverage tool, specifically when used with LiteIDE
12 | *.out
13 |
--------------------------------------------------------------------------------
/examples/plugin/vendor/modules.txt:
--------------------------------------------------------------------------------
1 | # github.com/go-pkgz/lgr v0.11.1
2 | ## explicit; go 1.20
3 | github.com/go-pkgz/lgr
4 | # github.com/go-pkgz/repeater v1.1.3
5 | ## explicit; go 1.12
6 | github.com/go-pkgz/repeater
7 | github.com/go-pkgz/repeater/strategy
8 | # github.com/umputun/reproxy v0.999.0 => ../../
9 | ## explicit; go 1.22
10 | github.com/umputun/reproxy/lib
11 | # github.com/umputun/reproxy => ../../
12 |
--------------------------------------------------------------------------------
/examples/ssl/README.md:
--------------------------------------------------------------------------------
1 | # Example of a docker provider with an automatic SSL (Let's Encrypt)
2 |
3 | This example should run on the machine with resolvable FQDN. All files use example.com, make sure you **replace it with your domain**.
4 |
5 | run this example with `docker-compose up` and try to hit containers:
6 |
7 | - `curl https://example.com/api/svc1/123`
8 | - `curl http://example.com/api/svc2/345`
9 | - `curl http://example.com/whoami/test`
10 |
--------------------------------------------------------------------------------
/examples/static/README.md:
--------------------------------------------------------------------------------
1 | # Example of a static provider within docker compose
2 |
3 |
4 | The example under `custom` shows how to make a web-serving container built on top of reproxy image and routing api request to another container directly, without the actual docker discovery.
5 |
6 |
--------------------------------------------------------------------------------
/examples/static/custom/Dockerfile:
--------------------------------------------------------------------------------
1 | # example of a Dockerfile using reproxy as a base for the custom container
2 | FROM klakegg/hugo:0.83.1-ext-alpine as build
3 |
4 | ADD . /build
5 | WORKDIR /build
6 | RUN hugo --minify
7 |
8 | FROM ghcr.io/umputun/reproxy:latest
9 | COPY --from=build /build/public /www
10 | EXPOSE 8080
11 | USER app
12 | ENTRYPOINT ["/srv/reproxy"]
13 |
--------------------------------------------------------------------------------
/reproxy-example.yml:
--------------------------------------------------------------------------------
1 | default:
2 | - {route: "^/api/svc1/(.*)", dest: "http://127.0.0.1:8080/blah1/$1"}
3 | - {route: "/api/svc3/xyz", dest: "http://127.0.0.3:8080/blah3/xyz", "ping": "http://127.0.0.3:8080/ping"}
4 | srv.example.com:
5 | - {route: "^/api/svc2/(.*)", dest: "http://127.0.0.2:8080/blah2/$1/abc"}
6 |
--------------------------------------------------------------------------------
/reproxy.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=Reverse proxy service
3 | After=network.target
4 | StartLimitIntervalSec=0
5 |
6 | [Service]
7 | Type=simple
8 | Restart=always
9 | RestartSec=1
10 | User=root
11 | ExecStart=/usr/bin/reproxy --file.enabled --file.name=/etc/reproxy.yml
12 |
13 | [Install]
14 | WantedBy=multi-user.target
--------------------------------------------------------------------------------
/scripts/postinstall.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | systemctl start reproxy
3 | systemctl enable reproxy
4 |
--------------------------------------------------------------------------------
/scripts/preremove.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | systemctl stop reproxy
3 | systemctl disable reproxy
4 |
--------------------------------------------------------------------------------
/site/docs/favicon.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/site/docs/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umputun/reproxy/b56560f72cb1dd195a96bf82bf6d9c4efbee359d/site/docs/icon.png
--------------------------------------------------------------------------------
/site/docs/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umputun/reproxy/b56560f72cb1dd195a96bf82bf6d9c4efbee359d/site/docs/logo.png
--------------------------------------------------------------------------------
/site/docs/stylesheets/extra.css:
--------------------------------------------------------------------------------
1 | .md-typeset h1,
2 | .md-content__button {
3 | display: none;
4 | }
5 | .md-nav__title {
6 | display: none;
7 | }
8 |
9 |
--------------------------------------------------------------------------------
/site/overrides/partials/integrations/analytics/custom.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/NOTICE.txt:
--------------------------------------------------------------------------------
1 | AWS SDK for Go
2 | Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 | Copyright 2014-2015 Stripe, Inc.
4 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/aws/context.go:
--------------------------------------------------------------------------------
1 | package aws
2 |
3 | import (
4 | "context"
5 | "time"
6 | )
7 |
8 | type suppressedContext struct {
9 | context.Context
10 | }
11 |
12 | func (s *suppressedContext) Deadline() (deadline time.Time, ok bool) {
13 | return time.Time{}, false
14 | }
15 |
16 | func (s *suppressedContext) Done() <-chan struct{} {
17 | return nil
18 | }
19 |
20 | func (s *suppressedContext) Err() error {
21 | return nil
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/aws/defaults/doc.go:
--------------------------------------------------------------------------------
1 | // Package defaults provides recommended configuration values for AWS SDKs and CLIs.
2 | package defaults
3 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/aws/errors.go:
--------------------------------------------------------------------------------
1 | package aws
2 |
3 | // MissingRegionError is an error that is returned if region configuration
4 | // value was not found.
5 | type MissingRegionError struct{}
6 |
7 | func (*MissingRegionError) Error() string {
8 | return "an AWS region is required, but was not found"
9 | }
10 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/aws/go_module_metadata.go:
--------------------------------------------------------------------------------
1 | // Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
2 |
3 | package aws
4 |
5 | // goModuleVersion is the tagged release for this module
6 | const goModuleVersion = "1.36.3"
7 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/osname.go:
--------------------------------------------------------------------------------
1 | //go:build go1.16
2 | // +build go1.16
3 |
4 | package middleware
5 |
6 | import "runtime"
7 |
8 | func getNormalizedOSName() (os string) {
9 | switch runtime.GOOS {
10 | case "android":
11 | os = "android"
12 | case "linux":
13 | os = "linux"
14 | case "windows":
15 | os = "windows"
16 | case "darwin":
17 | os = "macos"
18 | case "ios":
19 | os = "ios"
20 | default:
21 | os = "other"
22 | }
23 | return os
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/osname_go115.go:
--------------------------------------------------------------------------------
1 | //go:build !go1.16
2 | // +build !go1.16
3 |
4 | package middleware
5 |
6 | import "runtime"
7 |
8 | func getNormalizedOSName() (os string) {
9 | switch runtime.GOOS {
10 | case "android":
11 | os = "android"
12 | case "linux":
13 | os = "linux"
14 | case "windows":
15 | os = "windows"
16 | case "darwin":
17 | // Due to Apple M1 we can't distinguish between macOS and iOS when GOOS/GOARCH is darwin/amd64
18 | // For now declare this as "other" until we have a better detection mechanism.
19 | fallthrough
20 | default:
21 | os = "other"
22 | }
23 | return os
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/aws/ratelimit/none.go:
--------------------------------------------------------------------------------
1 | package ratelimit
2 |
3 | import "context"
4 |
5 | // None implements a no-op rate limiter which effectively disables client-side
6 | // rate limiting (also known as "retry quotas").
7 | //
8 | // GetToken does nothing and always returns a nil error. The returned
9 | // token-release function does nothing, and always returns a nil error.
10 | //
11 | // AddTokens does nothing and always returns a nil error.
12 | var None = &none{}
13 |
14 | type none struct{}
15 |
16 | func (*none) GetToken(ctx context.Context, cost uint) (func() error, error) {
17 | return func() error { return nil }, nil
18 | }
19 |
20 | func (*none) AddTokens(v uint) error { return nil }
21 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/errors.go:
--------------------------------------------------------------------------------
1 | package retry
2 |
3 | import "fmt"
4 |
5 | // MaxAttemptsError provides the error when the maximum number of attempts have
6 | // been exceeded.
7 | type MaxAttemptsError struct {
8 | Attempt int
9 | Err error
10 | }
11 |
12 | func (e *MaxAttemptsError) Error() string {
13 | return fmt.Sprintf("exceeded maximum number of attempts, %d, %v", e.Attempt, e.Err)
14 | }
15 |
16 | // Unwrap returns the nested error causing the max attempts error. Provides the
17 | // implementation for errors.Is and errors.As to unwrap nested errors.
18 | func (e *MaxAttemptsError) Unwrap() error {
19 | return e.Err
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/aws/runtime.go:
--------------------------------------------------------------------------------
1 | package aws
2 |
3 | // ExecutionEnvironmentID is the AWS execution environment runtime identifier.
4 | type ExecutionEnvironmentID string
5 |
6 | // RuntimeEnvironment is a collection of values that are determined at runtime
7 | // based on the environment that the SDK is executing in. Some of these values
8 | // may or may not be present based on the executing environment and certain SDK
9 | // configuration properties that drive whether these values are populated..
10 | type RuntimeEnvironment struct {
11 | EnvironmentIdentifier ExecutionEnvironmentID
12 | Region string
13 | EC2InstanceMetadataRegion string
14 | }
15 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/hmac.go:
--------------------------------------------------------------------------------
1 | package v4
2 |
3 | import (
4 | "crypto/hmac"
5 | "crypto/sha256"
6 | )
7 |
8 | // HMACSHA256 computes a HMAC-SHA256 of data given the provided key.
9 | func HMACSHA256(key []byte, data []byte) []byte {
10 | hash := hmac.New(sha256.New, key)
11 | hash.Write(data)
12 | return hash.Sum(nil)
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/scope.go:
--------------------------------------------------------------------------------
1 | package v4
2 |
3 | import "strings"
4 |
5 | // BuildCredentialScope builds the Signature Version 4 (SigV4) signing scope
6 | func BuildCredentialScope(signingTime SigningTime, region, service string) string {
7 | return strings.Join([]string{
8 | signingTime.ShortTimeFormat(),
9 | region,
10 | service,
11 | "aws4_request",
12 | }, "/")
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/aws/version.go:
--------------------------------------------------------------------------------
1 | // Package aws provides core functionality for making requests to AWS services.
2 | package aws
3 |
4 | // SDKName is the name of this AWS SDK
5 | const SDKName = "aws-sdk-go-v2"
6 |
7 | // SDKVersion is the version of this SDK
8 | const SDKVersion = goModuleVersion
9 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/config/generate.go:
--------------------------------------------------------------------------------
1 | package config
2 |
3 | //go:generate go run -tags codegen ./codegen -output=provider_assert_test.go
4 | //go:generate gofmt -s -w ./
5 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/config/go_module_metadata.go:
--------------------------------------------------------------------------------
1 | // Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
2 |
3 | package config
4 |
5 | // goModuleVersion is the tagged release for this module
6 | const goModuleVersion = "1.29.14"
7 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/credentials/doc.go:
--------------------------------------------------------------------------------
1 | /*
2 | Package credentials provides types for retrieving credentials from credentials sources.
3 | */
4 | package credentials
5 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client/endpoints.go:
--------------------------------------------------------------------------------
1 | package client
2 |
3 | import (
4 | "context"
5 | "github.com/aws/smithy-go/middleware"
6 | )
7 |
8 | type resolveEndpointV2Middleware struct {
9 | options Options
10 | }
11 |
12 | func (*resolveEndpointV2Middleware) ID() string {
13 | return "ResolveEndpointV2"
14 | }
15 |
16 | func (m *resolveEndpointV2Middleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
17 | out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
18 | ) {
19 | return next.HandleFinalize(ctx, in)
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/credentials/go_module_metadata.go:
--------------------------------------------------------------------------------
1 | // Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
2 |
3 | package credentials
4 |
5 | // goModuleVersion is the tagged release for this module
6 | const goModuleVersion = "1.17.67"
7 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/doc.go:
--------------------------------------------------------------------------------
1 | // Package imds provides the API client for interacting with the Amazon EC2
2 | // Instance Metadata Service.
3 | //
4 | // All Client operation calls have a default timeout. If the operation is not
5 | // completed before this timeout expires, the operation will be canceled. This
6 | // timeout can be overridden through the following:
7 | // - Set the options flag DisableDefaultTimeout
8 | // - Provide a Context with a timeout or deadline with calling the client's operations.
9 | //
10 | // See the EC2 IMDS user guide for more information on using the API.
11 | // https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
12 | package imds
13 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/endpoints.go:
--------------------------------------------------------------------------------
1 | package imds
2 |
3 | import (
4 | "context"
5 | "github.com/aws/smithy-go/middleware"
6 | )
7 |
8 | type resolveEndpointV2Middleware struct {
9 | options Options
10 | }
11 |
12 | func (*resolveEndpointV2Middleware) ID() string {
13 | return "ResolveEndpointV2"
14 | }
15 |
16 | func (m *resolveEndpointV2Middleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
17 | out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
18 | ) {
19 | return next.HandleFinalize(ctx, in)
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/go_module_metadata.go:
--------------------------------------------------------------------------------
1 | // Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
2 |
3 | package imds
4 |
5 | // goModuleVersion is the tagged release for this module
6 | const goModuleVersion = "1.16.30"
7 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/internal/auth/smithy/smithy.go:
--------------------------------------------------------------------------------
1 | // Package smithy adapts concrete AWS auth and signing types to the generic smithy versions.
2 | package smithy
3 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/go_module_metadata.go:
--------------------------------------------------------------------------------
1 | // Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
2 |
3 | package configsources
4 |
5 | // goModuleVersion is the tagged release for this module
6 | const goModuleVersion = "1.3.34"
7 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/doc.go:
--------------------------------------------------------------------------------
1 | // Package awsrulesfn provides AWS focused endpoint rule functions for
2 | // evaluating endpoint resolution rules.
3 | package awsrulesfn
4 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/generate.go:
--------------------------------------------------------------------------------
1 | //go:build codegen
2 | // +build codegen
3 |
4 | package awsrulesfn
5 |
6 | //go:generate go run -tags codegen ./internal/partition/codegen.go -model partitions.json -output partitions.go
7 | //go:generate gofmt -w -s .
8 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/go_module_metadata.go:
--------------------------------------------------------------------------------
1 | // Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
2 |
3 | package endpoints
4 |
5 | // goModuleVersion is the tagged release for this module
6 | const goModuleVersion = "2.6.34"
7 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/errors.go:
--------------------------------------------------------------------------------
1 | package ini
2 |
3 | import "fmt"
4 |
5 | // UnableToReadFile is an error indicating that a ini file could not be read
6 | type UnableToReadFile struct {
7 | Err error
8 | }
9 |
10 | // Error returns an error message and the underlying error message if present
11 | func (e *UnableToReadFile) Error() string {
12 | base := "unable to read file"
13 | if e.Err == nil {
14 | return base
15 | }
16 | return fmt.Sprintf("%s: %v", base, e.Err)
17 | }
18 |
19 | // Unwrap returns the underlying error
20 | func (e *UnableToReadFile) Unwrap() error {
21 | return e.Err
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/go_module_metadata.go:
--------------------------------------------------------------------------------
1 | // Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
2 |
3 | package ini
4 |
5 | // goModuleVersion is the tagged release for this module
6 | const goModuleVersion = "1.8.3"
7 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/token.go:
--------------------------------------------------------------------------------
1 | package ini
2 |
3 | type lineToken interface {
4 | isLineToken()
5 | }
6 |
7 | type lineTokenProfile struct {
8 | Type string
9 | Name string
10 | }
11 |
12 | func (*lineTokenProfile) isLineToken() {}
13 |
14 | type lineTokenProperty struct {
15 | Key string
16 | Value string
17 | }
18 |
19 | func (*lineTokenProperty) isLineToken() {}
20 |
21 | type lineTokenContinuation struct {
22 | Value string
23 | }
24 |
25 | func (*lineTokenContinuation) isLineToken() {}
26 |
27 | type lineTokenSubProperty struct {
28 | Key string
29 | Value string
30 | }
31 |
32 | func (*lineTokenSubProperty) isLineToken() {}
33 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/internal/sdk/interfaces.go:
--------------------------------------------------------------------------------
1 | package sdk
2 |
3 | // Invalidator provides access to a type's invalidate method to make it
4 | // invalidate it cache.
5 | //
6 | // e.g aws.SafeCredentialsProvider's Invalidate method.
7 | type Invalidator interface {
8 | Invalidate()
9 | }
10 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/internal/sdkio/byte.go:
--------------------------------------------------------------------------------
1 | package sdkio
2 |
3 | const (
4 | // Byte is 8 bits
5 | Byte int64 = 1
6 | // KibiByte (KiB) is 1024 Bytes
7 | KibiByte = Byte * 1024
8 | // MebiByte (MiB) is 1024 KiB
9 | MebiByte = KibiByte * 1024
10 | // GibiByte (GiB) is 1024 MiB
11 | GibiByte = MebiByte * 1024
12 | )
13 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/internal/strings/strings.go:
--------------------------------------------------------------------------------
1 | package strings
2 |
3 | import (
4 | "strings"
5 | )
6 |
7 | // HasPrefixFold tests whether the string s begins with prefix, interpreted as UTF-8 strings,
8 | // under Unicode case-folding.
9 | func HasPrefixFold(s, prefix string) bool {
10 | return len(s) >= len(prefix) && strings.EqualFold(s[0:len(prefix)], prefix)
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/internal/sync/singleflight/docs.go:
--------------------------------------------------------------------------------
1 | // Package singleflight provides a duplicate function call suppression
2 | // mechanism. This package is a fork of the Go golang.org/x/sync/singleflight
3 | // package. The package is forked, because the package a part of the unstable
4 | // and unversioned golang.org/x/sync module.
5 | //
6 | // https://github.com/golang/sync/tree/67f06af15bc961c363a7260195bcd53487529a21/singleflight
7 | package singleflight
8 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/internal/timeconv/duration.go:
--------------------------------------------------------------------------------
1 | package timeconv
2 |
3 | import "time"
4 |
5 | // FloatSecondsDur converts a fractional seconds to duration.
6 | func FloatSecondsDur(v float64) time.Duration {
7 | return time.Duration(v * float64(time.Second))
8 | }
9 |
10 | // DurSecondsFloat converts a duration into fractional seconds.
11 | func DurSecondsFloat(d time.Duration) float64 {
12 | return float64(d) / float64(time.Second)
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding/go_module_metadata.go:
--------------------------------------------------------------------------------
1 | // Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
2 |
3 | package acceptencoding
4 |
5 | // goModuleVersion is the tagged release for this module
6 | const goModuleVersion = "1.12.3"
7 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/doc.go:
--------------------------------------------------------------------------------
1 | // Package presignedurl provides the customizations for API clients to fill in
2 | // presigned URLs into input parameters.
3 | package presignedurl
4 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/go_module_metadata.go:
--------------------------------------------------------------------------------
1 | // Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
2 |
3 | package presignedurl
4 |
5 | // goModuleVersion is the tagged release for this module
6 | const goModuleVersion = "1.12.15"
7 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/service/route53/go_module_metadata.go:
--------------------------------------------------------------------------------
1 | // Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
2 |
3 | package route53
4 |
5 | // goModuleVersion is the tagged release for this module
6 | const goModuleVersion = "1.51.1"
7 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/service/sso/go_module_metadata.go:
--------------------------------------------------------------------------------
1 | // Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
2 |
3 | package sso
4 |
5 | // goModuleVersion is the tagged release for this module
6 | const goModuleVersion = "1.25.3"
7 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/go_module_metadata.go:
--------------------------------------------------------------------------------
1 | // Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
2 |
3 | package ssooidc
4 |
5 | // goModuleVersion is the tagged release for this module
6 | const goModuleVersion = "1.30.1"
7 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/service/sts/doc.go:
--------------------------------------------------------------------------------
1 | // Code generated by smithy-go-codegen DO NOT EDIT.
2 |
3 | // Package sts provides the API client, operations, and parameter types for AWS
4 | // Security Token Service.
5 | //
6 | // # Security Token Service
7 | //
8 | // Security Token Service (STS) enables you to request temporary,
9 | // limited-privilege credentials for users. This guide provides descriptions of the
10 | // STS API. For more information about using this service, see [Temporary Security Credentials].
11 | //
12 | // [Temporary Security Credentials]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html
13 | package sts
14 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/aws-sdk-go-v2/service/sts/go_module_metadata.go:
--------------------------------------------------------------------------------
1 | // Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
2 |
3 | package sts
4 |
5 | // goModuleVersion is the tagged release for this module
6 | const goModuleVersion = "1.33.19"
7 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/.gitignore:
--------------------------------------------------------------------------------
1 | # Eclipse
2 | .classpath
3 | .project
4 | .settings/
5 |
6 | # Intellij
7 | .idea/
8 | *.iml
9 | *.iws
10 |
11 | # Mac
12 | .DS_Store
13 |
14 | # Maven
15 | target/
16 | **/dependency-reduced-pom.xml
17 |
18 | # Gradle
19 | /.gradle
20 | build/
21 | */out/
22 | */*/out/
23 |
24 | # VS Code
25 | bin/
26 | .vscode/
27 |
28 | # make
29 | c.out
30 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | sudo: true
3 | dist: bionic
4 |
5 | branches:
6 | only:
7 | - main
8 |
9 | os:
10 | - linux
11 | - osx
12 | # Travis doesn't work with windows and Go tip
13 | #- windows
14 |
15 | go:
16 | - tip
17 |
18 | matrix:
19 | allow_failures:
20 | - go: tip
21 |
22 | before_install:
23 | - if [ "$TRAVIS_OS_NAME" = "windows" ]; then choco install make; fi
24 | - (cd /tmp/; go get golang.org/x/lint/golint)
25 |
26 | script:
27 | - make go test -v ./...;
28 |
29 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | ## Code of Conduct
2 | This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
3 | For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
4 | opensource-codeofconduct@amazon.com with any additional questions or comments.
5 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/NOTICE:
--------------------------------------------------------------------------------
1 | Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/auth/auth.go:
--------------------------------------------------------------------------------
1 | // Package auth defines protocol-agnostic authentication types for smithy
2 | // clients.
3 | package auth
4 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/auth/bearer/docs.go:
--------------------------------------------------------------------------------
1 | // Package bearer provides middleware and utilities for authenticating API
2 | // operation calls with a Bearer Token.
3 | package bearer
4 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/auth/option.go:
--------------------------------------------------------------------------------
1 | package auth
2 |
3 | import "github.com/aws/smithy-go"
4 |
5 | type (
6 | authOptionsKey struct{}
7 | )
8 |
9 | // Option represents a possible authentication method for an operation.
10 | type Option struct {
11 | SchemeID string
12 | IdentityProperties smithy.Properties
13 | SignerProperties smithy.Properties
14 | }
15 |
16 | // GetAuthOptions gets auth Options from Properties.
17 | func GetAuthOptions(p *smithy.Properties) ([]*Option, bool) {
18 | v, ok := p.Get(authOptionsKey{}).([]*Option)
19 | return v, ok
20 | }
21 |
22 | // SetAuthOptions sets auth Options on Properties.
23 | func SetAuthOptions(p *smithy.Properties, options []*Option) {
24 | p.Set(authOptionsKey{}, options)
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/auth/scheme_id.go:
--------------------------------------------------------------------------------
1 | package auth
2 |
3 | // Anonymous
4 | const (
5 | SchemeIDAnonymous = "smithy.api#noAuth"
6 | )
7 |
8 | // HTTP auth schemes
9 | const (
10 | SchemeIDHTTPBasic = "smithy.api#httpBasicAuth"
11 | SchemeIDHTTPDigest = "smithy.api#httpDigestAuth"
12 | SchemeIDHTTPBearer = "smithy.api#httpBearerAuth"
13 | SchemeIDHTTPAPIKey = "smithy.api#httpApiKeyAuth"
14 | )
15 |
16 | // AWS auth schemes
17 | const (
18 | SchemeIDSigV4 = "aws.auth#sigv4"
19 | SchemeIDSigV4A = "aws.auth#sigv4a"
20 | )
21 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/changelog-template.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "00000000-0000-0000-0000-000000000000",
3 | "type": "feature|bugfix|dependency",
4 | "description": "Description of your changes",
5 | "collapse": false,
6 | "modules": [
7 | "."
8 | ]
9 | }
10 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/doc.go:
--------------------------------------------------------------------------------
1 | // Package smithy provides the core components for a Smithy SDK.
2 | package smithy
3 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/document.go:
--------------------------------------------------------------------------------
1 | package smithy
2 |
3 | // Document provides access to loosely structured data in a document-like
4 | // format.
5 | //
6 | // Deprecated: See the github.com/aws/smithy-go/document package.
7 | type Document interface {
8 | UnmarshalDocument(interface{}) error
9 | GetValue() (interface{}, error)
10 | }
11 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/encoding/doc.go:
--------------------------------------------------------------------------------
1 | // Package encoding provides utilities for encoding values for specific
2 | // document encodings.
3 |
4 | package encoding
5 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/encoding/json/constants.go:
--------------------------------------------------------------------------------
1 | package json
2 |
3 | const (
4 | leftBrace = '{'
5 | rightBrace = '}'
6 |
7 | leftBracket = '['
8 | rightBracket = ']'
9 |
10 | comma = ','
11 | quote = '"'
12 | colon = ':'
13 |
14 | null = "null"
15 | )
16 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/encoding/json/encoder.go:
--------------------------------------------------------------------------------
1 | package json
2 |
3 | import (
4 | "bytes"
5 | )
6 |
7 | // Encoder is JSON encoder that supports construction of JSON values
8 | // using methods.
9 | type Encoder struct {
10 | w *bytes.Buffer
11 | Value
12 | }
13 |
14 | // NewEncoder returns a new JSON encoder
15 | func NewEncoder() *Encoder {
16 | writer := bytes.NewBuffer(nil)
17 | scratch := make([]byte, 64)
18 |
19 | return &Encoder{w: writer, Value: newValue(writer, &scratch)}
20 | }
21 |
22 | // String returns the String output of the JSON encoder
23 | func (e Encoder) String() string {
24 | return e.w.String()
25 | }
26 |
27 | // Bytes returns the []byte slice of the JSON encoder
28 | func (e Encoder) Bytes() []byte {
29 | return e.w.Bytes()
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/encoding/xml/constants.go:
--------------------------------------------------------------------------------
1 | package xml
2 |
3 | const (
4 | leftAngleBracket = '<'
5 | rightAngleBracket = '>'
6 | forwardSlash = '/'
7 | colon = ':'
8 | equals = '='
9 | quote = '"'
10 | )
11 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/endpoints/endpoint.go:
--------------------------------------------------------------------------------
1 | package transport
2 |
3 | import (
4 | "net/http"
5 | "net/url"
6 |
7 | "github.com/aws/smithy-go"
8 | )
9 |
10 | // Endpoint is the endpoint object returned by Endpoint resolution V2
11 | type Endpoint struct {
12 | // The complete URL minimally specfiying the scheme and host.
13 | // May optionally specify the port and base path component.
14 | URI url.URL
15 |
16 | // An optional set of headers to be sent using transport layer headers.
17 | Headers http.Header
18 |
19 | // A grab-bag property map of endpoint attributes. The
20 | // values present here are subject to change, or being add/removed at any
21 | // time.
22 | Properties smithy.Properties
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/go_module_metadata.go:
--------------------------------------------------------------------------------
1 | // Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
2 |
3 | package smithy
4 |
5 | // goModuleVersion is the tagged release for this module
6 | const goModuleVersion = "1.22.3"
7 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/internal/sync/singleflight/docs.go:
--------------------------------------------------------------------------------
1 | // Package singleflight provides a duplicate function call suppression
2 | // mechanism. This package is a fork of the Go golang.org/x/sync/singleflight
3 | // package. The package is forked, because the package a part of the unstable
4 | // and unversioned golang.org/x/sync module.
5 | //
6 | // https://github.com/golang/sync/tree/67f06af15bc961c363a7260195bcd53487529a21/singleflight
7 |
8 | package singleflight
9 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/io/byte.go:
--------------------------------------------------------------------------------
1 | package io
2 |
3 | const (
4 | // Byte is 8 bits
5 | Byte int64 = 1
6 | // KibiByte (KiB) is 1024 Bytes
7 | KibiByte = Byte * 1024
8 | // MebiByte (MiB) is 1024 KiB
9 | MebiByte = KibiByte * 1024
10 | // GibiByte (GiB) is 1024 MiB
11 | GibiByte = MebiByte * 1024
12 | )
13 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/io/doc.go:
--------------------------------------------------------------------------------
1 | // Package io provides utilities for Smithy generated API clients.
2 | package io
3 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/io/reader.go:
--------------------------------------------------------------------------------
1 | package io
2 |
3 | import (
4 | "io"
5 | )
6 |
7 | // ReadSeekNopCloser wraps an io.ReadSeeker with an additional Close method
8 | // that does nothing.
9 | type ReadSeekNopCloser struct {
10 | io.ReadSeeker
11 | }
12 |
13 | // Close does nothing.
14 | func (ReadSeekNopCloser) Close() error {
15 | return nil
16 | }
17 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/modman.toml:
--------------------------------------------------------------------------------
1 | [dependencies]
2 | "github.com/jmespath/go-jmespath" = "v0.4.0"
3 |
4 | [modules]
5 |
6 | [modules.codegen]
7 | no_tag = true
8 |
9 | [modules."codegen/smithy-go-codegen/build/test-generated/go/internal/testmodule"]
10 | no_tag = true
11 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/ptr/doc.go:
--------------------------------------------------------------------------------
1 | // Package ptr provides utilities for converting scalar literal type values to and from pointers inline.
2 | package ptr
3 |
4 | //go:generate go run -tags codegen generate.go
5 | //go:generate gofmt -w -s .
6 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/rand/doc.go:
--------------------------------------------------------------------------------
1 | // Package rand provides utilities for creating and working with random value
2 | // generators.
3 | package rand
4 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/transport/http/auth.go:
--------------------------------------------------------------------------------
1 | package http
2 |
3 | import (
4 | "context"
5 |
6 | smithy "github.com/aws/smithy-go"
7 | "github.com/aws/smithy-go/auth"
8 | )
9 |
10 | // AuthScheme defines an HTTP authentication scheme.
11 | type AuthScheme interface {
12 | SchemeID() string
13 | IdentityResolver(auth.IdentityResolverOptions) auth.IdentityResolver
14 | Signer() Signer
15 | }
16 |
17 | // Signer defines the interface through which HTTP requests are supplemented
18 | // with an Identity.
19 | type Signer interface {
20 | SignRequest(context.Context, *Request, auth.Identity, smithy.Properties) error
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/transport/http/doc.go:
--------------------------------------------------------------------------------
1 | /*
2 | Package http provides the HTTP transport client and request/response types
3 | needed to round trip API operation calls with an service.
4 | */
5 | package http
6 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/transport/http/md5_checksum.go:
--------------------------------------------------------------------------------
1 | package http
2 |
3 | import (
4 | "crypto/md5"
5 | "encoding/base64"
6 | "fmt"
7 | "io"
8 | )
9 |
10 | // computeMD5Checksum computes base64 md5 checksum of an io.Reader's contents.
11 | // Returns the byte slice of md5 checksum and an error.
12 | func computeMD5Checksum(r io.Reader) ([]byte, error) {
13 | h := md5.New()
14 | // copy errors may be assumed to be from the body.
15 | _, err := io.Copy(h, r)
16 | if err != nil {
17 | return nil, fmt.Errorf("failed to read body: %w", err)
18 | }
19 |
20 | // encode the md5 checksum in base64.
21 | sum := h.Sum(nil)
22 | sum64 := make([]byte, base64.StdEncoding.EncodedLen(len(sum)))
23 | base64.StdEncoding.Encode(sum64, sum)
24 | return sum64, nil
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/github.com/aws/smithy-go/transport/http/time.go:
--------------------------------------------------------------------------------
1 | package http
2 |
3 | import (
4 | "time"
5 |
6 | smithytime "github.com/aws/smithy-go/time"
7 | )
8 |
9 | // ParseTime parses a time string like the HTTP Date header. This uses a more
10 | // relaxed rule set for date parsing compared to the standard library.
11 | func ParseTime(text string) (t time.Time, err error) {
12 | return smithytime.ParseHTTPDate(text)
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/github.com/caddyserver/certmagic/.gitignore:
--------------------------------------------------------------------------------
1 | _gitignore/
2 |
--------------------------------------------------------------------------------
/vendor/github.com/caddyserver/zerossl/.gitignore:
--------------------------------------------------------------------------------
1 | _gitignore
2 | .DS_Store
--------------------------------------------------------------------------------
/vendor/github.com/caddyserver/zerossl/README.md:
--------------------------------------------------------------------------------
1 | ZeroSSL API client [](https://pkg.go.dev/github.com/caddyserver/zerossl)
2 | ==================
3 |
4 | This package implements the [ZeroSSL REST API](https://zerossl.com/documentation/api/) in Go.
5 |
6 | The REST API is distinct from the [ACME endpoint](https://zerossl.com/documentation/acme/), which is a standardized way of obtaining certificates.
7 |
--------------------------------------------------------------------------------
/vendor/github.com/cespare/xxhash/v2/testall.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | set -eu -o pipefail
3 |
4 | # Small convenience script for running the tests with various combinations of
5 | # arch/tags. This assumes we're running on amd64 and have qemu available.
6 |
7 | go test ./...
8 | go test -tags purego ./...
9 | GOARCH=arm64 go test
10 | GOARCH=arm64 go test -tags purego
11 |
--------------------------------------------------------------------------------
/vendor/github.com/cespare/xxhash/v2/xxhash_asm.go:
--------------------------------------------------------------------------------
1 | //go:build (amd64 || arm64) && !appengine && gc && !purego
2 | // +build amd64 arm64
3 | // +build !appengine
4 | // +build gc
5 | // +build !purego
6 |
7 | package xxhash
8 |
9 | // Sum64 computes the 64-bit xxHash digest of b with a zero seed.
10 | //
11 | //go:noescape
12 | func Sum64(b []byte) uint64
13 |
14 | //go:noescape
15 | func writeBlocks(d *Digest, b []byte) int
16 |
--------------------------------------------------------------------------------
/vendor/github.com/cespare/xxhash/v2/xxhash_safe.go:
--------------------------------------------------------------------------------
1 | //go:build appengine
2 | // +build appengine
3 |
4 | // This file contains the safe implementations of otherwise unsafe-using code.
5 |
6 | package xxhash
7 |
8 | // Sum64String computes the 64-bit xxHash digest of s with a zero seed.
9 | func Sum64String(s string) uint64 {
10 | return Sum64([]byte(s))
11 | }
12 |
13 | // WriteString adds more data to d. It always returns len(s), nil.
14 | func (d *Digest) WriteString(s string) (n int, err error) {
15 | return d.Write([]byte(s))
16 | }
17 |
--------------------------------------------------------------------------------
/vendor/github.com/didip/tollbooth/v7/.gitignore:
--------------------------------------------------------------------------------
1 | /debug
2 | /.vscode
3 | /.idea
--------------------------------------------------------------------------------
/vendor/github.com/didip/tollbooth/v7/.golangci.yml:
--------------------------------------------------------------------------------
1 | linters:
2 | enable:
3 | - revive
4 | - govet
5 | - unconvert
6 | - megacheck
7 | - gas
8 | - gocyclo
9 | - dupl
10 | - misspell
11 | - unparam
12 | - unused
13 | - typecheck
14 | - ineffassign
15 | - stylecheck
16 | - gochecknoinits
17 | - exportloopref
18 | - gocritic
19 | - nakedret
20 | - gosimple
21 | - prealloc
22 | fast: false
23 | disable-all: true
24 |
25 | issues:
26 | exclude-rules:
27 | - path: _test\.go
28 | linters:
29 | - dupl
30 | - text: "Errors unhandled"
31 | linters:
32 | - gosec
33 | exclude-use-default: false
34 |
--------------------------------------------------------------------------------
/vendor/github.com/didip/tollbooth/v7/errors/errors.go:
--------------------------------------------------------------------------------
1 | // Package errors provide data structure for errors.
2 | package errors
3 |
4 | import "fmt"
5 |
6 | // HTTPError is an error struct that returns both message and status code.
7 | type HTTPError struct {
8 | Message string
9 | StatusCode int
10 | }
11 |
12 | // Error returns error message.
13 | func (httperror *HTTPError) Error() string {
14 | return fmt.Sprintf("%v: %v", httperror.StatusCode, httperror.Message)
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/github.com/didip/tollbooth/v7/internal/time/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/didip/tollbooth/v7/internal/time/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/didip/tollbooth/v7/limiter/limiter_options.go:
--------------------------------------------------------------------------------
1 | package limiter
2 |
3 | import (
4 | "time"
5 | )
6 |
7 | // ExpirableOptions are options used for new limiter creation
8 | type ExpirableOptions struct {
9 | DefaultExpirationTTL time.Duration
10 |
11 | // How frequently expire job triggers
12 | // Deprecated: not used anymore
13 | ExpireJobInterval time.Duration
14 | }
15 |
--------------------------------------------------------------------------------
/vendor/github.com/felixge/httpsnoop/.gitignore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/umputun/reproxy/b56560f72cb1dd195a96bf82bf6d9c4efbee359d/vendor/github.com/felixge/httpsnoop/.gitignore
--------------------------------------------------------------------------------
/vendor/github.com/felixge/httpsnoop/Makefile:
--------------------------------------------------------------------------------
1 | .PHONY: ci generate clean
2 |
3 | ci: clean generate
4 | go test -race -v ./...
5 |
6 | generate:
7 | go generate .
8 |
9 | clean:
10 | rm -rf *_generated*.go
11 |
--------------------------------------------------------------------------------
/vendor/github.com/felixge/httpsnoop/docs.go:
--------------------------------------------------------------------------------
1 | // Package httpsnoop provides an easy way to capture http related metrics (i.e.
2 | // response time, bytes written, and http status code) from your application's
3 | // http.Handlers.
4 | //
5 | // Doing this requires non-trivial wrapping of the http.ResponseWriter
6 | // interface, which is also exposed for users interested in a more low-level
7 | // API.
8 | package httpsnoop
9 |
10 | //go:generate go run codegen/main.go
11 |
--------------------------------------------------------------------------------
/vendor/github.com/go-pkgz/lgr/.gitignore:
--------------------------------------------------------------------------------
1 | # Binaries for programs and plugins
2 | *.exe
3 | *.exe~
4 | *.dll
5 | *.so
6 | *.dylib
7 |
8 | # Test binary, build with `go test -c`
9 | *.test
10 |
11 | # Output of the go coverage tool, specifically when used with LiteIDE
12 | *.out
13 | vendor
14 |
--------------------------------------------------------------------------------
/vendor/github.com/go-pkgz/lgr/CODEOWNERS:
--------------------------------------------------------------------------------
1 | # These owners will be the default owners for everything in the repo.
2 | # Unless a later match takes precedence, @umputun will be requested for
3 | # review when someone opens a pull request.
4 |
5 | * @umputun
6 |
--------------------------------------------------------------------------------
/vendor/github.com/go-pkgz/repeater/.gitignore:
--------------------------------------------------------------------------------
1 | # Binaries for programs and plugins
2 | *.exe
3 | *.exe~
4 | *.dll
5 | *.so
6 | *.dylib
7 |
8 | # Test binary, build with `go test -c`
9 | *.test
10 |
11 | # Output of the go coverage tool, specifically when used with LiteIDE
12 | *.out
13 |
--------------------------------------------------------------------------------
/vendor/github.com/go-pkgz/rest/.gitignore:
--------------------------------------------------------------------------------
1 | # Binaries for programs and plugins
2 | *.exe
3 | *.exe~
4 | *.dll
5 | *.so
6 | *.dylib
7 |
8 | # Test binary, build with `go test -c`
9 | *.test
10 |
11 | # Output of the go coverage tool, specifically when used with LiteIDE
12 | *.out
13 | vendor
--------------------------------------------------------------------------------
/vendor/github.com/go-pkgz/rest/depricattion.go:
--------------------------------------------------------------------------------
1 | package rest
2 |
3 | import (
4 | "fmt"
5 | "net/http"
6 | "time"
7 | )
8 |
9 | // Deprecation adds a header 'Deprecation: version="version", date="date" header'
10 | // see https://tools.ietf.org/id/draft-dalal-deprecation-header-00.html
11 | func Deprecation(version string, date time.Time) func(http.Handler) http.Handler {
12 | f := func(h http.Handler) http.Handler {
13 | fn := func(w http.ResponseWriter, r *http.Request) {
14 | headerVal := fmt.Sprintf("version=%q, date=%q", version, date.Format(time.RFC3339))
15 | w.Header().Set("Deprecation", headerVal)
16 | h.ServeHTTP(w, r)
17 | }
18 | return http.HandlerFunc(fn)
19 | }
20 | return f
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/github.com/gorilla/handlers/.editorconfig:
--------------------------------------------------------------------------------
1 | ; https://editorconfig.org/
2 |
3 | root = true
4 |
5 | [*]
6 | insert_final_newline = true
7 | charset = utf-8
8 | trim_trailing_whitespace = true
9 | indent_style = space
10 | indent_size = 2
11 |
12 | [{Makefile,go.mod,go.sum,*.go,.gitmodules}]
13 | indent_style = tab
14 | indent_size = 4
15 |
16 | [*.md]
17 | indent_size = 4
18 | trim_trailing_whitespace = false
19 |
20 | eclint_indent_style = unset
--------------------------------------------------------------------------------
/vendor/github.com/gorilla/handlers/.gitignore:
--------------------------------------------------------------------------------
1 | # Output of the go test coverage tool
2 | coverage.coverprofile
3 |
--------------------------------------------------------------------------------
/vendor/github.com/gorilla/handlers/doc.go:
--------------------------------------------------------------------------------
1 | /*
2 | Package handlers is a collection of handlers (aka "HTTP middleware") for use
3 | with Go's net/http package (or any framework supporting http.Handler).
4 |
5 | The package includes handlers for logging in standardised formats, compressing
6 | HTTP responses, validating content types and other useful tools for manipulating
7 | requests and responses.
8 | */
9 | package handlers
10 |
--------------------------------------------------------------------------------
/vendor/github.com/klauspost/cpuid/v2/.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 | *.prof
25 |
--------------------------------------------------------------------------------
/vendor/github.com/klauspost/cpuid/v2/detect_ref.go:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file.
2 |
3 | //go:build (!amd64 && !386 && !arm64) || gccgo || noasm || appengine
4 | // +build !amd64,!386,!arm64 gccgo noasm appengine
5 |
6 | package cpuid
7 |
8 | func initCPU() {
9 | cpuid = func(uint32) (a, b, c, d uint32) { return 0, 0, 0, 0 }
10 | cpuidex = func(x, y uint32) (a, b, c, d uint32) { return 0, 0, 0, 0 }
11 | xgetbv = func(uint32) (a, b uint32) { return 0, 0 }
12 | rdtscpAsm = func() (a, b, c, d uint32) { return 0, 0, 0, 0 }
13 |
14 | }
15 |
16 | func addInfo(info *CPUInfo, safe bool) {}
17 | func getVectorLength() (vl, pl uint64) { return 0, 0 }
18 |
--------------------------------------------------------------------------------
/vendor/github.com/klauspost/cpuid/v2/os_other_arm64.go:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2020 Klaus Post, released under MIT License. See LICENSE file.
2 |
3 | //go:build arm64 && !linux && !darwin
4 | // +build arm64,!linux,!darwin
5 |
6 | package cpuid
7 |
8 | import "runtime"
9 |
10 | func detectOS(c *CPUInfo) bool {
11 | c.PhysicalCores = runtime.NumCPU()
12 | // For now assuming 1 thread per core...
13 | c.ThreadsPerCore = 1
14 | c.LogicalCores = c.PhysicalCores
15 | return false
16 | }
17 |
--------------------------------------------------------------------------------
/vendor/github.com/klauspost/cpuid/v2/os_safe_linux_arm64.go:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2021 Klaus Post, released under MIT License. See LICENSE file.
2 |
3 | //go:build nounsafe
4 | // +build nounsafe
5 |
6 | package cpuid
7 |
8 | var hwcap uint
9 |
--------------------------------------------------------------------------------
/vendor/github.com/klauspost/cpuid/v2/os_unsafe_linux_arm64.go:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2021 Klaus Post, released under MIT License. See LICENSE file.
2 |
3 | //go:build !nounsafe
4 | // +build !nounsafe
5 |
6 | package cpuid
7 |
8 | import _ "unsafe" // needed for go:linkname
9 |
10 | //go:linkname hwcap internal/cpu.HWCap
11 | var hwcap uint
12 |
--------------------------------------------------------------------------------
/vendor/github.com/klauspost/cpuid/v2/test-architectures.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -e
4 |
5 | go tool dist list | while IFS=/ read os arch; do
6 | echo "Checking $os/$arch..."
7 | echo " normal"
8 | GOARCH=$arch GOOS=$os go build -o /dev/null .
9 | echo " noasm"
10 | GOARCH=$arch GOOS=$os go build -tags noasm -o /dev/null .
11 | echo " appengine"
12 | GOARCH=$arch GOOS=$os go build -tags appengine -o /dev/null .
13 | echo " noasm,appengine"
14 | GOARCH=$arch GOOS=$os go build -tags 'appengine noasm' -o /dev/null .
15 | done
16 |
--------------------------------------------------------------------------------
/vendor/github.com/libdns/libdns/.gitignore:
--------------------------------------------------------------------------------
1 | _gitignore/
2 |
--------------------------------------------------------------------------------
/vendor/github.com/mholt/acmez/v2/.gitignore:
--------------------------------------------------------------------------------
1 | _gitignore/
2 |
--------------------------------------------------------------------------------
/vendor/github.com/miekg/dns/.codecov.yml:
--------------------------------------------------------------------------------
1 | coverage:
2 | status:
3 | project:
4 | default:
5 | target: 40%
6 | threshold: null
7 | patch: false
8 | changes: false
9 |
--------------------------------------------------------------------------------
/vendor/github.com/miekg/dns/.gitignore:
--------------------------------------------------------------------------------
1 | *.6
2 | tags
3 | test.out
4 | a.out
5 |
--------------------------------------------------------------------------------
/vendor/github.com/miekg/dns/AUTHORS:
--------------------------------------------------------------------------------
1 | Miek Gieben
2 |
--------------------------------------------------------------------------------
/vendor/github.com/miekg/dns/CODEOWNERS:
--------------------------------------------------------------------------------
1 | * @miekg @tmthrgd
2 |
--------------------------------------------------------------------------------
/vendor/github.com/miekg/dns/CONTRIBUTORS:
--------------------------------------------------------------------------------
1 | Alex A. Skinner
2 | Andrew Tunnell-Jones
3 | Ask Bjørn Hansen
4 | Dave Cheney
5 | Dusty Wilson
6 | Marek Majkowski
7 | Peter van Dijk
8 | Omri Bahumi
9 | Alex Sergeyev
10 | James Hartig
11 |
--------------------------------------------------------------------------------
/vendor/github.com/miekg/dns/COPYRIGHT:
--------------------------------------------------------------------------------
1 | Copyright 2009 The Go Authors. All rights reserved. Use of this source code
2 | is governed by a BSD-style license that can be found in the LICENSE file.
3 | Extensions of the original work are copyright (c) 2011 Miek Gieben
4 |
5 | Copyright 2011 Miek Gieben. All rights reserved. Use of this source code is
6 | governed by a BSD-style license that can be found in the LICENSE file.
7 |
8 | Copyright 2014 CloudFlare. All rights reserved. Use of this source code is
9 | governed by a BSD-style license that can be found in the LICENSE file.
10 |
--------------------------------------------------------------------------------
/vendor/github.com/miekg/dns/fuzz.go:
--------------------------------------------------------------------------------
1 | //go:build fuzz
2 | // +build fuzz
3 |
4 | package dns
5 |
6 | import "strings"
7 |
8 | func Fuzz(data []byte) int {
9 | msg := new(Msg)
10 |
11 | if err := msg.Unpack(data); err != nil {
12 | return 0
13 | }
14 | if _, err := msg.Pack(); err != nil {
15 | return 0
16 | }
17 |
18 | return 1
19 | }
20 |
21 | func FuzzNewRR(data []byte) int {
22 | str := string(data)
23 | // Do not fuzz lines that include the $INCLUDE keyword and hint the fuzzer
24 | // at avoiding them.
25 | // See GH#1025 for context.
26 | if strings.Contains(strings.ToUpper(str), "$INCLUDE") {
27 | return -1
28 | }
29 | if _, err := NewRR(str); err != nil {
30 | return 0
31 | }
32 | return 1
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/github.com/miekg/dns/tools.go:
--------------------------------------------------------------------------------
1 | //go:build tools
2 | // +build tools
3 |
4 | // We include our tool dependencies for `go generate` here to ensure they're
5 | // properly tracked by the go tool. See the Go Wiki for the rationale behind this:
6 | // https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module.
7 |
8 | package dns
9 |
10 | import _ "golang.org/x/tools/go/packages"
11 |
--------------------------------------------------------------------------------
/vendor/github.com/miekg/dns/version.go:
--------------------------------------------------------------------------------
1 | package dns
2 |
3 | import "fmt"
4 |
5 | // Version is current version of this library.
6 | var Version = v{1, 1, 58}
7 |
8 | // v holds the version of this library.
9 | type v struct {
10 | Major, Minor, Patch int
11 | }
12 |
13 | func (v v) String() string {
14 | return fmt.Sprintf("%d.%d.%d", v.Major, v.Minor, v.Patch)
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/github.com/munnerz/goautoneg/Makefile:
--------------------------------------------------------------------------------
1 | include $(GOROOT)/src/Make.inc
2 |
3 | TARG=bitbucket.org/ww/goautoneg
4 | GOFILES=autoneg.go
5 |
6 | include $(GOROOT)/src/Make.pkg
7 |
8 | format:
9 | gofmt -w *.go
10 |
11 | docs:
12 | gomake clean
13 | godoc ${TARG} > README.txt
14 |
--------------------------------------------------------------------------------
/vendor/github.com/prometheus/client_golang/NOTICE:
--------------------------------------------------------------------------------
1 | Prometheus instrumentation library for Go applications
2 | Copyright 2012-2015 The Prometheus Authors
3 |
4 | This product includes software developed at
5 | SoundCloud Ltd. (http://soundcloud.com/).
6 |
7 |
8 | The following components are included in this product:
9 |
10 | perks - a fork of https://github.com/bmizerany/perks
11 | https://github.com/beorn7/perks
12 | Copyright 2013-2015 Blake Mizerany, Björn Rabenstein
13 | See https://github.com/beorn7/perks/blob/master/README.md for license details.
14 |
15 | Go support for Protocol Buffers - Google's data interchange format
16 | http://github.com/golang/protobuf/
17 | Copyright 2010 The Go Authors
18 | See source code for license details.
19 |
--------------------------------------------------------------------------------
/vendor/github.com/prometheus/client_golang/prometheus/.gitignore:
--------------------------------------------------------------------------------
1 | command-line-arguments.test
2 |
--------------------------------------------------------------------------------
/vendor/github.com/prometheus/client_golang/prometheus/README.md:
--------------------------------------------------------------------------------
1 | See [](https://pkg.go.dev/github.com/prometheus/client_golang/prometheus).
2 |
--------------------------------------------------------------------------------
/vendor/github.com/prometheus/client_model/NOTICE:
--------------------------------------------------------------------------------
1 | Data model artifacts for Prometheus.
2 | Copyright 2012-2015 The Prometheus Authors
3 |
4 | This product includes software developed at
5 | SoundCloud Ltd. (http://soundcloud.com/).
6 |
--------------------------------------------------------------------------------
/vendor/github.com/prometheus/common/NOTICE:
--------------------------------------------------------------------------------
1 | Common libraries shared by Prometheus Go components.
2 | Copyright 2015 The Prometheus Authors
3 |
4 | This product includes software developed at
5 | SoundCloud Ltd. (http://soundcloud.com/).
6 |
--------------------------------------------------------------------------------
/vendor/github.com/prometheus/procfs/.gitignore:
--------------------------------------------------------------------------------
1 | /testdata/fixtures/
2 | /fixtures
3 |
--------------------------------------------------------------------------------
/vendor/github.com/prometheus/procfs/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Prometheus Community Code of Conduct
2 |
3 | Prometheus follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md).
4 |
--------------------------------------------------------------------------------
/vendor/github.com/prometheus/procfs/MAINTAINERS.md:
--------------------------------------------------------------------------------
1 | * Johannes 'fish' Ziemke @discordianfish
2 | * Paul Gier @pgier
3 | * Ben Kochie @SuperQ
4 |
--------------------------------------------------------------------------------
/vendor/github.com/prometheus/procfs/NOTICE:
--------------------------------------------------------------------------------
1 | procfs provides functions to retrieve system, kernel and process
2 | metrics from the pseudo-filesystem proc.
3 |
4 | Copyright 2014-2015 The Prometheus Authors
5 |
6 | This product includes software developed at
7 | SoundCloud Ltd. (http://soundcloud.com/).
8 |
--------------------------------------------------------------------------------
/vendor/github.com/prometheus/procfs/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Reporting a security issue
2 |
3 | The Prometheus security policy, including how to report vulnerabilities, can be
4 | found here:
5 |
6 |
7 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl:
--------------------------------------------------------------------------------
1 | {{.CommentFormat}}
2 | func {{.DocInfo.Name}}f(t TestingT, {{.ParamsFormat}}) bool {
3 | if h, ok := t.(tHelper); ok { h.Helper() }
4 | return {{.DocInfo.Name}}(t, {{.ForwardedParamsFormat}})
5 | }
6 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl:
--------------------------------------------------------------------------------
1 | {{.CommentWithoutT "a"}}
2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) bool {
3 | if h, ok := a.t.(tHelper); ok { h.Helper() }
4 | return {{.DocInfo.Name}}(a.t, {{.ForwardedParams}})
5 | }
6 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/assert/errors.go:
--------------------------------------------------------------------------------
1 | package assert
2 |
3 | import (
4 | "errors"
5 | )
6 |
7 | // AnError is an error instance useful for testing. If the code does not care
8 | // about error specifics, and only needs to return the error for example, this
9 | // error should be used to make the test code more readable.
10 | var AnError = errors.New("assert.AnError general error for testing")
11 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/assert/forward_assertions.go:
--------------------------------------------------------------------------------
1 | package assert
2 |
3 | // Assertions provides assertion methods around the
4 | // TestingT interface.
5 | type Assertions struct {
6 | t TestingT
7 | }
8 |
9 | // New makes a new Assertions object for the specified TestingT.
10 | func New(t TestingT) *Assertions {
11 | return &Assertions{
12 | t: t,
13 | }
14 | }
15 |
16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs"
17 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/assert/yaml/yaml_fail.go:
--------------------------------------------------------------------------------
1 | //go:build testify_yaml_fail && !testify_yaml_custom && !testify_yaml_default
2 | // +build testify_yaml_fail,!testify_yaml_custom,!testify_yaml_default
3 |
4 | // Package yaml is an implementation of YAML functions that always fail.
5 | //
6 | // This implementation can be used at build time to replace the default implementation
7 | // to avoid linking with [gopkg.in/yaml.v3]:
8 | //
9 | // go test -tags testify_yaml_fail
10 | package yaml
11 |
12 | import "errors"
13 |
14 | var errNotImplemented = errors.New("YAML functions are not available (see https://pkg.go.dev/github.com/stretchr/testify/assert/yaml)")
15 |
16 | func Unmarshal([]byte, interface{}) error {
17 | return errNotImplemented
18 | }
19 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/require/forward_requirements.go:
--------------------------------------------------------------------------------
1 | package require
2 |
3 | // Assertions provides assertion methods around the
4 | // TestingT interface.
5 | type Assertions struct {
6 | t TestingT
7 | }
8 |
9 | // New makes a new Assertions object for the specified TestingT.
10 | func New(t TestingT) *Assertions {
11 | return &Assertions{
12 | t: t,
13 | }
14 | }
15 |
16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=require -template=require_forward.go.tmpl -include-format-funcs"
17 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/require/require.go.tmpl:
--------------------------------------------------------------------------------
1 | {{ replace .Comment "assert." "require."}}
2 | func {{.DocInfo.Name}}(t TestingT, {{.Params}}) {
3 | if h, ok := t.(tHelper); ok { h.Helper() }
4 | if assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { return }
5 | t.FailNow()
6 | }
7 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/require/require_forward.go.tmpl:
--------------------------------------------------------------------------------
1 | {{.CommentWithoutT "a"}}
2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) {
3 | if h, ok := a.t.(tHelper); ok { h.Helper() }
4 | {{.DocInfo.Name}}(a.t, {{.ForwardedParams}})
5 | }
6 |
--------------------------------------------------------------------------------
/vendor/github.com/umputun/go-flags/arg.go:
--------------------------------------------------------------------------------
1 | package flags
2 |
3 | import (
4 | "reflect"
5 | )
6 |
7 | // Arg represents a positional argument on the command line.
8 | type Arg struct {
9 | // The name of the positional argument (used in the help)
10 | Name string
11 |
12 | // A description of the positional argument (used in the help)
13 | Description string
14 |
15 | // The minimal number of required positional arguments
16 | Required int
17 |
18 | // The maximum number of required positional arguments
19 | RequiredMaximum int
20 |
21 | value reflect.Value
22 | tag multiTag
23 | }
24 |
25 | func (a *Arg) isRemaining() bool {
26 | return a.value.Type().Kind() == reflect.Slice
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/github.com/umputun/go-flags/check_crosscompile.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 |
5 | echo '# linux arm7'
6 | GOARM=7 GOARCH=arm GOOS=linux go build
7 | echo '# linux arm5'
8 | GOARM=5 GOARCH=arm GOOS=linux go build
9 | echo '# windows 386'
10 | GOARCH=386 GOOS=windows go build
11 | echo '# windows amd64'
12 | GOARCH=amd64 GOOS=windows go build
13 | echo '# darwin'
14 | GOARCH=amd64 GOOS=darwin go build
15 | echo '# freebsd'
16 | GOARCH=amd64 GOOS=freebsd go build
17 |
--------------------------------------------------------------------------------
/vendor/github.com/umputun/go-flags/termsize.go:
--------------------------------------------------------------------------------
1 | // +build !windows,!plan9,!solaris,!appengine,!wasm
2 |
3 | package flags
4 |
5 | import (
6 | "syscall"
7 | "unsafe"
8 | )
9 |
10 | type winsize struct {
11 | row, col uint16
12 | xpixel, ypixel uint16
13 | }
14 |
15 | func getTerminalColumns() int {
16 | ws := winsize{}
17 |
18 | if tIOCGWINSZ != 0 {
19 | syscall.Syscall(syscall.SYS_IOCTL,
20 | uintptr(0),
21 | uintptr(tIOCGWINSZ),
22 | uintptr(unsafe.Pointer(&ws)))
23 |
24 | return int(ws.col)
25 | }
26 |
27 | return 80
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/github.com/umputun/go-flags/termsize_nosysioctl.go:
--------------------------------------------------------------------------------
1 | // +build plan9 solaris appengine wasm
2 |
3 | package flags
4 |
5 | func getTerminalColumns() int {
6 | return 80
7 | }
8 |
--------------------------------------------------------------------------------
/vendor/github.com/umputun/go-flags/tiocgwinsz_bsdish.go:
--------------------------------------------------------------------------------
1 | // +build darwin freebsd netbsd openbsd
2 |
3 | package flags
4 |
5 | const (
6 | tIOCGWINSZ = 0x40087468
7 | )
8 |
--------------------------------------------------------------------------------
/vendor/github.com/umputun/go-flags/tiocgwinsz_linux.go:
--------------------------------------------------------------------------------
1 | // +build linux
2 |
3 | package flags
4 |
5 | const (
6 | tIOCGWINSZ = 0x5413
7 | )
8 |
--------------------------------------------------------------------------------
/vendor/github.com/umputun/go-flags/tiocgwinsz_other.go:
--------------------------------------------------------------------------------
1 | // +build !darwin,!freebsd,!netbsd,!openbsd,!linux
2 |
3 | package flags
4 |
5 | const (
6 | tIOCGWINSZ = 0
7 | )
8 |
--------------------------------------------------------------------------------
/vendor/github.com/zeebo/blake3/.gitignore:
--------------------------------------------------------------------------------
1 | *.pprof
2 | *.test
3 | *.txt
4 | *.out
5 |
6 | /upstream
7 | /go.work
8 |
--------------------------------------------------------------------------------
/vendor/github.com/zeebo/blake3/internal/alg/alg.go:
--------------------------------------------------------------------------------
1 | package alg
2 |
3 | import (
4 | "github.com/zeebo/blake3/internal/alg/compress"
5 | "github.com/zeebo/blake3/internal/alg/hash"
6 | )
7 |
8 | func HashF(input *[8192]byte, length, counter uint64, flags uint32, key *[8]uint32, out *[64]uint32, chain *[8]uint32) {
9 | hash.HashF(input, length, counter, flags, key, out, chain)
10 | }
11 |
12 | func HashP(left, right *[64]uint32, flags uint32, key *[8]uint32, out *[64]uint32, n int) {
13 | hash.HashP(left, right, flags, key, out, n)
14 | }
15 |
16 | func Compress(chain *[8]uint32, block *[16]uint32, counter uint64, blen uint32, flags uint32, out *[16]uint32) {
17 | compress.Compress(chain, block, counter, blen, flags, out)
18 | }
19 |
--------------------------------------------------------------------------------
/vendor/github.com/zeebo/blake3/internal/alg/compress/compress.go:
--------------------------------------------------------------------------------
1 | package compress
2 |
3 | import (
4 | "github.com/zeebo/blake3/internal/alg/compress/compress_pure"
5 | "github.com/zeebo/blake3/internal/alg/compress/compress_sse41"
6 | "github.com/zeebo/blake3/internal/consts"
7 | )
8 |
9 | func Compress(chain *[8]uint32, block *[16]uint32, counter uint64, blen uint32, flags uint32, out *[16]uint32) {
10 | if consts.HasSSE41 {
11 | compress_sse41.Compress(chain, block, counter, blen, flags, out)
12 | } else {
13 | compress_pure.Compress(chain, block, counter, blen, flags, out)
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/github.com/zeebo/blake3/internal/alg/compress/compress_sse41/impl_other.go:
--------------------------------------------------------------------------------
1 | //go:build !amd64
2 | // +build !amd64
3 |
4 | package compress_sse41
5 |
6 | import "github.com/zeebo/blake3/internal/alg/compress/compress_pure"
7 |
8 | func Compress(chain *[8]uint32, block *[16]uint32, counter uint64, blen uint32, flags uint32, out *[16]uint32) {
9 | compress_pure.Compress(chain, block, counter, blen, flags, out)
10 | }
11 |
--------------------------------------------------------------------------------
/vendor/github.com/zeebo/blake3/internal/alg/compress/compress_sse41/stubs.go:
--------------------------------------------------------------------------------
1 | //go:build amd64
2 | // +build amd64
3 |
4 | package compress_sse41
5 |
6 | //go:noescape
7 | func Compress(chain *[8]uint32, block *[16]uint32, counter uint64, blen uint32, flags uint32, out *[16]uint32)
8 |
--------------------------------------------------------------------------------
/vendor/github.com/zeebo/blake3/internal/alg/hash/hash_avx2/impl_other.go:
--------------------------------------------------------------------------------
1 | //go:build !amd64
2 | // +build !amd64
3 |
4 | package hash_avx2
5 |
6 | import "github.com/zeebo/blake3/internal/alg/hash/hash_pure"
7 |
8 | func HashF(input *[8192]byte, length, counter uint64, flags uint32, key *[8]uint32, out *[64]uint32, chain *[8]uint32) {
9 | hash_pure.HashF(input, length, counter, flags, key, out, chain)
10 | }
11 |
12 | func HashP(left, right *[64]uint32, flags uint32, key *[8]uint32, out *[64]uint32, n int) {
13 | hash_pure.HashP(left, right, flags, key, out, n)
14 | }
15 |
--------------------------------------------------------------------------------
/vendor/github.com/zeebo/blake3/internal/alg/hash/hash_avx2/stubs.go:
--------------------------------------------------------------------------------
1 | //go:build amd64
2 | // +build amd64
3 |
4 | package hash_avx2
5 |
6 | //go:noescape
7 | func HashF(input *[8192]byte, length, counter uint64, flags uint32, key *[8]uint32, out *[64]uint32, chain *[8]uint32)
8 |
9 | //go:noescape
10 | func HashP(left, right *[64]uint32, flags uint32, key *[8]uint32, out *[64]uint32, n int)
11 |
--------------------------------------------------------------------------------
/vendor/github.com/zeebo/blake3/internal/consts/consts.go:
--------------------------------------------------------------------------------
1 | package consts
2 |
3 | var IV = [...]uint32{IV0, IV1, IV2, IV3, IV4, IV5, IV6, IV7}
4 |
5 | const (
6 | IV0 = 0x6A09E667
7 | IV1 = 0xBB67AE85
8 | IV2 = 0x3C6EF372
9 | IV3 = 0xA54FF53A
10 | IV4 = 0x510E527F
11 | IV5 = 0x9B05688C
12 | IV6 = 0x1F83D9AB
13 | IV7 = 0x5BE0CD19
14 | )
15 |
16 | const (
17 | Flag_ChunkStart uint32 = 1 << 0
18 | Flag_ChunkEnd uint32 = 1 << 1
19 | Flag_Parent uint32 = 1 << 2
20 | Flag_Root uint32 = 1 << 3
21 | Flag_Keyed uint32 = 1 << 4
22 | Flag_DeriveKeyContext uint32 = 1 << 5
23 | Flag_DeriveKeyMaterial uint32 = 1 << 6
24 | )
25 |
26 | const (
27 | BlockLen = 64
28 | ChunkLen = 1024
29 | )
30 |
--------------------------------------------------------------------------------
/vendor/github.com/zeebo/blake3/internal/consts/cpu.go:
--------------------------------------------------------------------------------
1 | //go:build !purego
2 |
3 | package consts
4 |
5 | import (
6 | "os"
7 |
8 | "github.com/klauspost/cpuid/v2"
9 | )
10 |
11 | var (
12 | HasAVX2 = cpuid.CPU.Has(cpuid.AVX2) &&
13 | os.Getenv("BLAKE3_DISABLE_AVX2") == "" &&
14 | os.Getenv("BLAKE3_PUREGO") == ""
15 |
16 | HasSSE41 = cpuid.CPU.Has(cpuid.SSE4) &&
17 | os.Getenv("BLAKE3_DISABLE_SSE41") == "" &&
18 | os.Getenv("BLAKE3_PUREGO") == ""
19 | )
20 |
--------------------------------------------------------------------------------
/vendor/github.com/zeebo/blake3/internal/consts/cpu_little.go:
--------------------------------------------------------------------------------
1 | //go:build amd64 || 386 || arm || arm64 || mipsle || mips64le || ppc64le || riscv64 || wasm
2 | // +build amd64 386 arm arm64 mipsle mips64le ppc64le riscv64 wasm
3 |
4 | package consts
5 |
6 | const OptimizeLittleEndian = true
7 |
--------------------------------------------------------------------------------
/vendor/github.com/zeebo/blake3/internal/consts/cpu_other.go:
--------------------------------------------------------------------------------
1 | //go:build !amd64 && !386 && !arm && !arm64 && !mipsle && !mips64le && !ppc64le && !riscv64 && !wasm
2 | // +build !amd64,!386,!arm,!arm64,!mipsle,!mips64le,!ppc64le,!riscv64,!wasm
3 |
4 | package consts
5 |
6 | const OptimizeLittleEndian = false
7 |
--------------------------------------------------------------------------------
/vendor/github.com/zeebo/blake3/internal/consts/cpu_purego.go:
--------------------------------------------------------------------------------
1 | //go:build purego
2 |
3 | package consts
4 |
5 | const (
6 | HasAVX2 = false
7 | HasSSE41 = false
8 | )
9 |
--------------------------------------------------------------------------------
/vendor/go.uber.org/multierr/.gitignore:
--------------------------------------------------------------------------------
1 | /vendor
2 | cover.html
3 | cover.out
4 | /bin
5 |
--------------------------------------------------------------------------------
/vendor/go.uber.org/zap/.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 | vendor
10 |
11 | # Architecture specific extensions/prefixes
12 | *.[568vq]
13 | [568vq].out
14 |
15 | *.cgo1.go
16 | *.cgo2.c
17 | _cgo_defun.c
18 | _cgo_gotypes.go
19 | _cgo_export.*
20 |
21 | _testmain.go
22 |
23 | *.exe
24 | *.test
25 | *.prof
26 | *.pprof
27 | *.out
28 | *.log
29 |
30 | /bin
31 | cover.out
32 | cover.html
33 |
--------------------------------------------------------------------------------
/vendor/go.uber.org/zap/checklicense.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash -e
2 |
3 | ERROR_COUNT=0
4 | while read -r file
5 | do
6 | case "$(head -1 "${file}")" in
7 | *"Copyright (c) "*" Uber Technologies, Inc.")
8 | # everything's cool
9 | ;;
10 | *)
11 | echo "$file is missing license header."
12 | (( ERROR_COUNT++ ))
13 | ;;
14 | esac
15 | done < <(git ls-files "*\.go")
16 |
17 | exit $ERROR_COUNT
18 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/argon2/blamka_ref.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 !amd64 || purego || !gc
6 |
7 | package argon2
8 |
9 | func processBlock(out, in1, in2 *block) {
10 | processBlockGeneric(out, in1, in2, false)
11 | }
12 |
13 | func processBlockXOR(out, in1, in2 *block) {
14 | processBlockGeneric(out, in1, in2, true)
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/blake2b/blake2b_ref.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 || purego || !gc
6 |
7 | package blake2b
8 |
9 | func hashBlocks(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte) {
10 | hashBlocksGeneric(h, c, flag, blocks)
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/blake2b/register.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package blake2b
6 |
7 | import (
8 | "crypto"
9 | "hash"
10 | )
11 |
12 | func init() {
13 | newHash256 := func() hash.Hash {
14 | h, _ := New256(nil)
15 | return h
16 | }
17 | newHash384 := func() hash.Hash {
18 | h, _ := New384(nil)
19 | return h
20 | }
21 |
22 | newHash512 := func() hash.Hash {
23 | h, _ := New512(nil)
24 | return h
25 | }
26 |
27 | crypto.RegisterHash(crypto.BLAKE2b_256, newHash256)
28 | crypto.RegisterHash(crypto.BLAKE2b_384, newHash384)
29 | crypto.RegisterHash(crypto.BLAKE2b_512, newHash512)
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/bpf/setter.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package bpf
6 |
7 | // A Setter is a type which can attach a compiled BPF filter to itself.
8 | type Setter interface {
9 | SetBPF(filter []RawInstruction) error
10 | }
11 |
--------------------------------------------------------------------------------
/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/internal/socket/cmsghdr.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 | package socket
8 |
9 | func (h *cmsghdr) len() int { return int(h.Len) }
10 | func (h *cmsghdr) lvl() int { return int(h.Level) }
11 | func (h *cmsghdr) typ() int { return int(h.Type) }
12 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/cmsghdr_bsd.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 || netbsd || openbsd
6 |
7 | package socket
8 |
9 | func (h *cmsghdr) set(l, lvl, typ int) {
10 | h.Len = uint32(l)
11 | h.Level = int32(lvl)
12 | h.Type = int32(typ)
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/cmsghdr_linux_32bit.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 (arm || mips || mipsle || 386 || ppc) && linux
6 |
7 | package socket
8 |
9 | func (h *cmsghdr) set(l, lvl, typ int) {
10 | h.Len = uint32(l)
11 | h.Level = int32(lvl)
12 | h.Type = int32(typ)
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/cmsghdr_linux_64bit.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 (arm64 || amd64 || loong64 || ppc64 || ppc64le || mips64 || mips64le || riscv64 || s390x) && linux
6 |
7 | package socket
8 |
9 | func (h *cmsghdr) set(l, lvl, typ int) {
10 | h.Len = uint64(l)
11 | h.Level = int32(lvl)
12 | h.Type = int32(typ)
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/cmsghdr_solaris_64bit.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 amd64 && solaris
6 |
7 | package socket
8 |
9 | func (h *cmsghdr) set(l, lvl, typ int) {
10 | h.Len = uint32(l)
11 | h.Level = int32(lvl)
12 | h.Type = int32(typ)
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/cmsghdr_unix.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 aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
6 |
7 | package socket
8 |
9 | import "golang.org/x/sys/unix"
10 |
11 | func controlHeaderLen() int {
12 | return unix.CmsgLen(0)
13 | }
14 |
15 | func controlMessageLen(dataLen int) int {
16 | return unix.CmsgLen(dataLen)
17 | }
18 |
19 | func controlMessageSpace(dataLen int) int {
20 | return unix.CmsgSpace(dataLen)
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/cmsghdr_zos_s390x.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 socket
6 |
7 | func (h *cmsghdr) set(l, lvl, typ int) {
8 | h.Len = int32(l)
9 | h.Level = int32(lvl)
10 | h.Type = int32(typ)
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/complete_nodontwait.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 aix || windows || zos
6 |
7 | package socket
8 |
9 | import (
10 | "syscall"
11 | )
12 |
13 | // ioComplete checks the flags and result of a syscall, to be used as return
14 | // value in a syscall.RawConn.Read or Write callback.
15 | func ioComplete(flags int, operr error) bool {
16 | if operr == syscall.EAGAIN || operr == syscall.EWOULDBLOCK {
17 | // No data available, block for I/O and try again.
18 | return false
19 | }
20 | return true
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/empty.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 darwin && go1.12
6 |
7 | // This exists solely so we can linkname in symbols from syscall.
8 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/error_windows.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package socket
6 |
7 | import "syscall"
8 |
9 | var (
10 | errERROR_IO_PENDING error = syscall.ERROR_IO_PENDING
11 | errEINVAL error = syscall.EINVAL
12 | )
13 |
14 | // errnoErr returns common boxed Errno values, to prevent allocations
15 | // at runtime.
16 | func errnoErr(errno syscall.Errno) error {
17 | switch errno {
18 | case 0:
19 | return nil
20 | case syscall.ERROR_IO_PENDING:
21 | return errERROR_IO_PENDING
22 | case syscall.EINVAL:
23 | return errEINVAL
24 | }
25 | return errno
26 | }
27 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/iovec_32bit.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 (arm || mips || mipsle || 386 || ppc) && (darwin || dragonfly || freebsd || linux || netbsd || openbsd)
6 |
7 | package socket
8 |
9 | import "unsafe"
10 |
11 | func (v *iovec) set(b []byte) {
12 | l := len(b)
13 | if l == 0 {
14 | return
15 | }
16 | v.Base = (*byte)(unsafe.Pointer(&b[0]))
17 | v.Len = uint32(l)
18 | }
19 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/iovec_64bit.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 (arm64 || amd64 || loong64 || ppc64 || ppc64le || mips64 || mips64le || riscv64 || s390x) && (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || zos)
6 |
7 | package socket
8 |
9 | import "unsafe"
10 |
11 | func (v *iovec) set(b []byte) {
12 | l := len(b)
13 | if l == 0 {
14 | return
15 | }
16 | v.Base = (*byte)(unsafe.Pointer(&b[0]))
17 | v.Len = uint64(l)
18 | }
19 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/iovec_solaris_64bit.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 amd64 && solaris
6 |
7 | package socket
8 |
9 | import "unsafe"
10 |
11 | func (v *iovec) set(b []byte) {
12 | l := len(b)
13 | if l == 0 {
14 | return
15 | }
16 | v.Base = (*int8)(unsafe.Pointer(&b[0]))
17 | v.Len = uint64(l)
18 | }
19 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/iovec_stub.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 | package socket
8 |
9 | type iovec struct{}
10 |
11 | func (v *iovec) set(b []byte) {}
12 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/mmsghdr_stub.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 && !linux && !netbsd
6 |
7 | package socket
8 |
9 | import "net"
10 |
11 | type mmsghdr struct{}
12 |
13 | type mmsghdrs []mmsghdr
14 |
15 | func (hs mmsghdrs) pack(ms []Message, parseFn func([]byte, string) (net.Addr, error), marshalFn func(net.Addr) []byte) error {
16 | return nil
17 | }
18 |
19 | func (hs mmsghdrs) unpack(ms []Message, parseFn func([]byte, string) (net.Addr, error), hint string) error {
20 | return nil
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/msghdr_bsdvar.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 || netbsd
6 |
7 | package socket
8 |
9 | func (h *msghdr) setIov(vs []iovec) {
10 | l := len(vs)
11 | if l == 0 {
12 | return
13 | }
14 | h.Iov = &vs[0]
15 | h.Iovlen = int32(l)
16 | }
17 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/msghdr_linux_32bit.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 (arm || mips || mipsle || 386 || ppc) && linux
6 |
7 | package socket
8 |
9 | import "unsafe"
10 |
11 | func (h *msghdr) setIov(vs []iovec) {
12 | l := len(vs)
13 | if l == 0 {
14 | return
15 | }
16 | h.Iov = &vs[0]
17 | h.Iovlen = uint32(l)
18 | }
19 |
20 | func (h *msghdr) setControl(b []byte) {
21 | h.Control = (*byte)(unsafe.Pointer(&b[0]))
22 | h.Controllen = uint32(len(b))
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/msghdr_linux_64bit.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 (arm64 || amd64 || loong64 || ppc64 || ppc64le || mips64 || mips64le || riscv64 || s390x) && linux
6 |
7 | package socket
8 |
9 | import "unsafe"
10 |
11 | func (h *msghdr) setIov(vs []iovec) {
12 | l := len(vs)
13 | if l == 0 {
14 | return
15 | }
16 | h.Iov = &vs[0]
17 | h.Iovlen = uint64(l)
18 | }
19 |
20 | func (h *msghdr) setControl(b []byte) {
21 | h.Control = (*byte)(unsafe.Pointer(&b[0]))
22 | h.Controllen = uint64(len(b))
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/msghdr_openbsd.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package socket
6 |
7 | func (h *msghdr) setIov(vs []iovec) {
8 | l := len(vs)
9 | if l == 0 {
10 | return
11 | }
12 | h.Iov = &vs[0]
13 | h.Iovlen = uint32(l)
14 | }
15 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/msghdr_stub.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 | package socket
8 |
9 | type msghdr struct{}
10 |
11 | func (h *msghdr) pack(vs []iovec, bs [][]byte, oob []byte, sa []byte) {}
12 | func (h *msghdr) name() []byte { return nil }
13 | func (h *msghdr) controllen() int { return 0 }
14 | func (h *msghdr) flags() int { return 0 }
15 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/norace.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 !race
6 |
7 | package socket
8 |
9 | func (m *Message) raceRead() {
10 | }
11 | func (m *Message) raceWrite() {
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/rawconn_nommsg.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 !linux
6 |
7 | package socket
8 |
9 | func (c *Conn) recvMsgs(ms []Message, flags int) (int, error) {
10 | return 0, errNotImplemented
11 | }
12 |
13 | func (c *Conn) sendMsgs(ms []Message, flags int) (int, error) {
14 | return 0, errNotImplemented
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/rawconn_nomsg.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 && !windows && !zos
6 |
7 | package socket
8 |
9 | func (c *Conn) recvMsg(m *Message, flags int) error {
10 | return errNotImplemented
11 | }
12 |
13 | func (c *Conn) sendMsg(m *Message, flags int) error {
14 | return errNotImplemented
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/sys.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package socket
6 |
7 | import (
8 | "encoding/binary"
9 | "unsafe"
10 | )
11 |
12 | // NativeEndian is the machine native endian implementation of ByteOrder.
13 | var NativeEndian binary.ByteOrder
14 |
15 | func init() {
16 | i := uint32(1)
17 | b := (*[4]byte)(unsafe.Pointer(&i))
18 | if b[0] == 1 {
19 | NativeEndian = binary.LittleEndian
20 | } else {
21 | NativeEndian = binary.BigEndian
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/sys_bsd.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 || openbsd || solaris
6 |
7 | package socket
8 |
9 | func recvmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) {
10 | return 0, errNotImplemented
11 | }
12 |
13 | func sendmmsg(s uintptr, hs []mmsghdr, flags int) (int, error) {
14 | return 0, errNotImplemented
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/sys_const_unix.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 socket
8 |
9 | import "golang.org/x/sys/unix"
10 |
11 | const (
12 | sysAF_UNSPEC = unix.AF_UNSPEC
13 | sysAF_INET = unix.AF_INET
14 | sysAF_INET6 = unix.AF_INET6
15 |
16 | sysSOCK_RAW = unix.SOCK_RAW
17 |
18 | sizeofSockaddrInet4 = unix.SizeofSockaddrInet4
19 | sizeofSockaddrInet6 = unix.SizeofSockaddrInet6
20 | )
21 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/sys_linux_386.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 | #include "textflag.h"
6 |
7 | TEXT ·socketcall(SB),NOSPLIT,$0-36
8 | JMP syscall·socketcall(SB)
9 |
10 | TEXT ·rawsocketcall(SB),NOSPLIT,$0-36
11 | JMP syscall·rawsocketcall(SB)
12 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/sys_linux_amd64.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package socket
6 |
7 | const (
8 | sysRECVMMSG = 0x12b
9 | sysSENDMMSG = 0x133
10 | )
11 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/sys_linux_arm.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package socket
6 |
7 | const (
8 | sysRECVMMSG = 0x16d
9 | sysSENDMMSG = 0x176
10 | )
11 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/sys_linux_arm64.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package socket
6 |
7 | const (
8 | sysRECVMMSG = 0xf3
9 | sysSENDMMSG = 0x10d
10 | )
11 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/sys_linux_loong64.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 loong64
6 |
7 | package socket
8 |
9 | const (
10 | sysRECVMMSG = 0xf3
11 | sysSENDMMSG = 0x10d
12 | )
13 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/sys_linux_mips.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package socket
6 |
7 | const (
8 | sysRECVMMSG = 0x10ef
9 | sysSENDMMSG = 0x10f7
10 | )
11 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/sys_linux_mips64.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package socket
6 |
7 | const (
8 | sysRECVMMSG = 0x14ae
9 | sysSENDMMSG = 0x14b6
10 | )
11 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/sys_linux_mips64le.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package socket
6 |
7 | const (
8 | sysRECVMMSG = 0x14ae
9 | sysSENDMMSG = 0x14b6
10 | )
11 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/sys_linux_mipsle.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package socket
6 |
7 | const (
8 | sysRECVMMSG = 0x10ef
9 | sysSENDMMSG = 0x10f7
10 | )
11 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/sys_linux_ppc.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 socket
6 |
7 | const (
8 | sysRECVMMSG = 0x157
9 | sysSENDMMSG = 0x15d
10 | )
11 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/sys_linux_ppc64.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package socket
6 |
7 | const (
8 | sysRECVMMSG = 0x157
9 | sysSENDMMSG = 0x15d
10 | )
11 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/sys_linux_ppc64le.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package socket
6 |
7 | const (
8 | sysRECVMMSG = 0x157
9 | sysSENDMMSG = 0x15d
10 | )
11 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/sys_linux_riscv64.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 riscv64
6 |
7 | package socket
8 |
9 | const (
10 | sysRECVMMSG = 0xf3
11 | sysSENDMMSG = 0x10d
12 | )
13 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/sys_linux_s390x.s:
--------------------------------------------------------------------------------
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 | #include "textflag.h"
6 |
7 | TEXT ·socketcall(SB),NOSPLIT,$0-72
8 | JMP syscall·socketcall(SB)
9 |
10 | TEXT ·rawsocketcall(SB),NOSPLIT,$0-72
11 | JMP syscall·rawsocketcall(SB)
12 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/sys_zos_s390x.s:
--------------------------------------------------------------------------------
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 | #include "textflag.h"
6 |
7 | TEXT ·syscall_syscall(SB),NOSPLIT,$0
8 | JMP syscall·_syscall(SB)
9 |
10 | TEXT ·syscall_syscall6(SB),NOSPLIT,$0
11 | JMP syscall·_syscall6(SB)
12 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_aix_ppc64.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_aix.go
3 |
4 | // Added for go1.11 compatibility
5 | //go:build aix
6 |
7 | package socket
8 |
9 | type iovec struct {
10 | Base *byte
11 | Len uint64
12 | }
13 |
14 | type msghdr struct {
15 | Name *byte
16 | Namelen uint32
17 | Iov *iovec
18 | Iovlen int32
19 | Control *byte
20 | Controllen uint32
21 | Flags int32
22 | }
23 |
24 | type mmsghdr struct {
25 | Hdr msghdr
26 | Len uint32
27 | Pad_cgo_0 [4]byte
28 | }
29 |
30 | type cmsghdr struct {
31 | Len uint32
32 | Level int32
33 | Type int32
34 | }
35 |
36 | const (
37 | sizeofIovec = 0x10
38 | sizeofMsghdr = 0x30
39 | )
40 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_darwin_amd64.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_darwin.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint64
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Pad_cgo_0 [4]byte
15 | Iov *iovec
16 | Iovlen int32
17 | Pad_cgo_1 [4]byte
18 | Control *byte
19 | Controllen uint32
20 | Flags int32
21 | }
22 |
23 | type cmsghdr struct {
24 | Len uint32
25 | Level int32
26 | Type int32
27 | }
28 |
29 | const (
30 | sizeofIovec = 0x10
31 | sizeofMsghdr = 0x30
32 | )
33 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_darwin_arm64.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_darwin.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint64
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Pad_cgo_0 [4]byte
15 | Iov *iovec
16 | Iovlen int32
17 | Pad_cgo_1 [4]byte
18 | Control *byte
19 | Controllen uint32
20 | Flags int32
21 | }
22 |
23 | type cmsghdr struct {
24 | Len uint32
25 | Level int32
26 | Type int32
27 | }
28 |
29 | const (
30 | sizeofIovec = 0x10
31 | sizeofMsghdr = 0x30
32 | )
33 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_dragonfly_amd64.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_dragonfly.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint64
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Pad_cgo_0 [4]byte
15 | Iov *iovec
16 | Iovlen int32
17 | Pad_cgo_1 [4]byte
18 | Control *byte
19 | Controllen uint32
20 | Flags int32
21 | }
22 |
23 | type cmsghdr struct {
24 | Len uint32
25 | Level int32
26 | Type int32
27 | }
28 |
29 | const (
30 | sizeofIovec = 0x10
31 | sizeofMsghdr = 0x30
32 | )
33 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_freebsd_386.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_freebsd.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint32
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Iov *iovec
15 | Iovlen int32
16 | Control *byte
17 | Controllen uint32
18 | Flags int32
19 | }
20 |
21 | type cmsghdr struct {
22 | Len uint32
23 | Level int32
24 | Type int32
25 | }
26 |
27 | const (
28 | sizeofIovec = 0x8
29 | sizeofMsghdr = 0x1c
30 | )
31 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_freebsd_amd64.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_freebsd.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint64
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Pad_cgo_0 [4]byte
15 | Iov *iovec
16 | Iovlen int32
17 | Pad_cgo_1 [4]byte
18 | Control *byte
19 | Controllen uint32
20 | Flags int32
21 | }
22 |
23 | type cmsghdr struct {
24 | Len uint32
25 | Level int32
26 | Type int32
27 | }
28 |
29 | const (
30 | sizeofIovec = 0x10
31 | sizeofMsghdr = 0x30
32 | )
33 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_freebsd_arm.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_freebsd.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint32
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Iov *iovec
15 | Iovlen int32
16 | Control *byte
17 | Controllen uint32
18 | Flags int32
19 | }
20 |
21 | type cmsghdr struct {
22 | Len uint32
23 | Level int32
24 | Type int32
25 | }
26 |
27 | const (
28 | sizeofIovec = 0x8
29 | sizeofMsghdr = 0x1c
30 | )
31 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_freebsd_arm64.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_freebsd.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint64
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Pad_cgo_0 [4]byte
15 | Iov *iovec
16 | Iovlen int32
17 | Pad_cgo_1 [4]byte
18 | Control *byte
19 | Controllen uint32
20 | Flags int32
21 | }
22 |
23 | type cmsghdr struct {
24 | Len uint32
25 | Level int32
26 | Type int32
27 | }
28 |
29 | const (
30 | sizeofIovec = 0x10
31 | sizeofMsghdr = 0x30
32 | )
33 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_freebsd_riscv64.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_freebsd.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint64
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Iov *iovec
15 | Iovlen int32
16 | Control *byte
17 | Controllen uint32
18 | Flags int32
19 | }
20 |
21 | type cmsghdr struct {
22 | Len uint32
23 | Level int32
24 | Type int32
25 | }
26 |
27 | const (
28 | sizeofIovec = 0x10
29 | sizeofMsghdr = 0x30
30 | )
31 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_linux_386.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_linux.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint32
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Iov *iovec
15 | Iovlen uint32
16 | Control *byte
17 | Controllen uint32
18 | Flags int32
19 | }
20 |
21 | type mmsghdr struct {
22 | Hdr msghdr
23 | Len uint32
24 | }
25 |
26 | type cmsghdr struct {
27 | Len uint32
28 | Level int32
29 | Type int32
30 | }
31 |
32 | const (
33 | sizeofIovec = 0x8
34 | sizeofMsghdr = 0x1c
35 | )
36 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_linux_amd64.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_linux.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint64
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Pad_cgo_0 [4]byte
15 | Iov *iovec
16 | Iovlen uint64
17 | Control *byte
18 | Controllen uint64
19 | Flags int32
20 | Pad_cgo_1 [4]byte
21 | }
22 |
23 | type mmsghdr struct {
24 | Hdr msghdr
25 | Len uint32
26 | Pad_cgo_0 [4]byte
27 | }
28 |
29 | type cmsghdr struct {
30 | Len uint64
31 | Level int32
32 | Type int32
33 | }
34 |
35 | const (
36 | sizeofIovec = 0x10
37 | sizeofMsghdr = 0x38
38 | )
39 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_linux_arm.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_linux.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint32
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Iov *iovec
15 | Iovlen uint32
16 | Control *byte
17 | Controllen uint32
18 | Flags int32
19 | }
20 |
21 | type mmsghdr struct {
22 | Hdr msghdr
23 | Len uint32
24 | }
25 |
26 | type cmsghdr struct {
27 | Len uint32
28 | Level int32
29 | Type int32
30 | }
31 |
32 | const (
33 | sizeofIovec = 0x8
34 | sizeofMsghdr = 0x1c
35 | )
36 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_linux_arm64.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_linux.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint64
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Pad_cgo_0 [4]byte
15 | Iov *iovec
16 | Iovlen uint64
17 | Control *byte
18 | Controllen uint64
19 | Flags int32
20 | Pad_cgo_1 [4]byte
21 | }
22 |
23 | type mmsghdr struct {
24 | Hdr msghdr
25 | Len uint32
26 | Pad_cgo_0 [4]byte
27 | }
28 |
29 | type cmsghdr struct {
30 | Len uint64
31 | Level int32
32 | Type int32
33 | }
34 |
35 | const (
36 | sizeofIovec = 0x10
37 | sizeofMsghdr = 0x38
38 | )
39 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_linux_loong64.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_linux.go
3 |
4 | //go:build loong64
5 |
6 | package socket
7 |
8 | type iovec struct {
9 | Base *byte
10 | Len uint64
11 | }
12 |
13 | type msghdr struct {
14 | Name *byte
15 | Namelen uint32
16 | Iov *iovec
17 | Iovlen uint64
18 | Control *byte
19 | Controllen uint64
20 | Flags int32
21 | Pad_cgo_0 [4]byte
22 | }
23 |
24 | type mmsghdr struct {
25 | Hdr msghdr
26 | Len uint32
27 | Pad_cgo_0 [4]byte
28 | }
29 |
30 | type cmsghdr struct {
31 | Len uint64
32 | Level int32
33 | Type int32
34 | }
35 |
36 | const (
37 | sizeofIovec = 0x10
38 | sizeofMsghdr = 0x38
39 | )
40 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_linux_mips.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_linux.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint32
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Iov *iovec
15 | Iovlen uint32
16 | Control *byte
17 | Controllen uint32
18 | Flags int32
19 | }
20 |
21 | type mmsghdr struct {
22 | Hdr msghdr
23 | Len uint32
24 | }
25 |
26 | type cmsghdr struct {
27 | Len uint32
28 | Level int32
29 | Type int32
30 | }
31 |
32 | const (
33 | sizeofIovec = 0x8
34 | sizeofMsghdr = 0x1c
35 | )
36 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_linux_mips64.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_linux.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint64
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Pad_cgo_0 [4]byte
15 | Iov *iovec
16 | Iovlen uint64
17 | Control *byte
18 | Controllen uint64
19 | Flags int32
20 | Pad_cgo_1 [4]byte
21 | }
22 |
23 | type mmsghdr struct {
24 | Hdr msghdr
25 | Len uint32
26 | Pad_cgo_0 [4]byte
27 | }
28 |
29 | type cmsghdr struct {
30 | Len uint64
31 | Level int32
32 | Type int32
33 | }
34 |
35 | const (
36 | sizeofIovec = 0x10
37 | sizeofMsghdr = 0x38
38 | )
39 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_linux_mips64le.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_linux.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint64
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Pad_cgo_0 [4]byte
15 | Iov *iovec
16 | Iovlen uint64
17 | Control *byte
18 | Controllen uint64
19 | Flags int32
20 | Pad_cgo_1 [4]byte
21 | }
22 |
23 | type mmsghdr struct {
24 | Hdr msghdr
25 | Len uint32
26 | Pad_cgo_0 [4]byte
27 | }
28 |
29 | type cmsghdr struct {
30 | Len uint64
31 | Level int32
32 | Type int32
33 | }
34 |
35 | const (
36 | sizeofIovec = 0x10
37 | sizeofMsghdr = 0x38
38 | )
39 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_linux_mipsle.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_linux.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint32
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Iov *iovec
15 | Iovlen uint32
16 | Control *byte
17 | Controllen uint32
18 | Flags int32
19 | }
20 |
21 | type mmsghdr struct {
22 | Hdr msghdr
23 | Len uint32
24 | }
25 |
26 | type cmsghdr struct {
27 | Len uint32
28 | Level int32
29 | Type int32
30 | }
31 |
32 | const (
33 | sizeofIovec = 0x8
34 | sizeofMsghdr = 0x1c
35 | )
36 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_linux_ppc.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_linux.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint32
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Iov *iovec
15 | Iovlen uint32
16 | Control *byte
17 | Controllen uint32
18 | Flags int32
19 | }
20 |
21 | type mmsghdr struct {
22 | Hdr msghdr
23 | Len uint32
24 | }
25 |
26 | type cmsghdr struct {
27 | Len uint32
28 | Level int32
29 | Type int32
30 | }
31 |
32 | const (
33 | sizeofIovec = 0x8
34 | sizeofMsghdr = 0x1c
35 | )
36 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_linux_ppc64.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_linux.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint64
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Pad_cgo_0 [4]byte
15 | Iov *iovec
16 | Iovlen uint64
17 | Control *byte
18 | Controllen uint64
19 | Flags int32
20 | Pad_cgo_1 [4]byte
21 | }
22 |
23 | type mmsghdr struct {
24 | Hdr msghdr
25 | Len uint32
26 | Pad_cgo_0 [4]byte
27 | }
28 |
29 | type cmsghdr struct {
30 | Len uint64
31 | Level int32
32 | Type int32
33 | }
34 |
35 | const (
36 | sizeofIovec = 0x10
37 | sizeofMsghdr = 0x38
38 | )
39 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_linux_ppc64le.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_linux.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint64
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Pad_cgo_0 [4]byte
15 | Iov *iovec
16 | Iovlen uint64
17 | Control *byte
18 | Controllen uint64
19 | Flags int32
20 | Pad_cgo_1 [4]byte
21 | }
22 |
23 | type mmsghdr struct {
24 | Hdr msghdr
25 | Len uint32
26 | Pad_cgo_0 [4]byte
27 | }
28 |
29 | type cmsghdr struct {
30 | Len uint64
31 | Level int32
32 | Type int32
33 | }
34 |
35 | const (
36 | sizeofIovec = 0x10
37 | sizeofMsghdr = 0x38
38 | )
39 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_linux_riscv64.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_linux.go
3 |
4 | //go:build riscv64
5 |
6 | package socket
7 |
8 | type iovec struct {
9 | Base *byte
10 | Len uint64
11 | }
12 |
13 | type msghdr struct {
14 | Name *byte
15 | Namelen uint32
16 | Iov *iovec
17 | Iovlen uint64
18 | Control *byte
19 | Controllen uint64
20 | Flags int32
21 | Pad_cgo_0 [4]byte
22 | }
23 |
24 | type mmsghdr struct {
25 | Hdr msghdr
26 | Len uint32
27 | Pad_cgo_0 [4]byte
28 | }
29 |
30 | type cmsghdr struct {
31 | Len uint64
32 | Level int32
33 | Type int32
34 | }
35 |
36 | const (
37 | sizeofIovec = 0x10
38 | sizeofMsghdr = 0x38
39 | )
40 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_linux_s390x.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_linux.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint64
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Pad_cgo_0 [4]byte
15 | Iov *iovec
16 | Iovlen uint64
17 | Control *byte
18 | Controllen uint64
19 | Flags int32
20 | Pad_cgo_1 [4]byte
21 | }
22 |
23 | type mmsghdr struct {
24 | Hdr msghdr
25 | Len uint32
26 | Pad_cgo_0 [4]byte
27 | }
28 |
29 | type cmsghdr struct {
30 | Len uint64
31 | Level int32
32 | Type int32
33 | }
34 |
35 | const (
36 | sizeofIovec = 0x10
37 | sizeofMsghdr = 0x38
38 | )
39 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_netbsd_386.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_netbsd.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint32
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Iov *iovec
15 | Iovlen int32
16 | Control *byte
17 | Controllen uint32
18 | Flags int32
19 | }
20 |
21 | type mmsghdr struct {
22 | Hdr msghdr
23 | Len uint32
24 | }
25 |
26 | type cmsghdr struct {
27 | Len uint32
28 | Level int32
29 | Type int32
30 | }
31 |
32 | const (
33 | sizeofIovec = 0x8
34 | sizeofMsghdr = 0x1c
35 | )
36 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_netbsd_amd64.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_netbsd.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint64
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Pad_cgo_0 [4]byte
15 | Iov *iovec
16 | Iovlen int32
17 | Pad_cgo_1 [4]byte
18 | Control *byte
19 | Controllen uint32
20 | Flags int32
21 | }
22 |
23 | type mmsghdr struct {
24 | Hdr msghdr
25 | Len uint32
26 | Pad_cgo_0 [4]byte
27 | }
28 |
29 | type cmsghdr struct {
30 | Len uint32
31 | Level int32
32 | Type int32
33 | }
34 |
35 | const (
36 | sizeofIovec = 0x10
37 | sizeofMsghdr = 0x30
38 | )
39 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_netbsd_arm.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_netbsd.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint32
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Iov *iovec
15 | Iovlen int32
16 | Control *byte
17 | Controllen uint32
18 | Flags int32
19 | }
20 |
21 | type mmsghdr struct {
22 | Hdr msghdr
23 | Len uint32
24 | }
25 |
26 | type cmsghdr struct {
27 | Len uint32
28 | Level int32
29 | Type int32
30 | }
31 |
32 | const (
33 | sizeofIovec = 0x8
34 | sizeofMsghdr = 0x1c
35 | )
36 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_netbsd_arm64.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_netbsd.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint64
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Pad_cgo_0 [4]byte
15 | Iov *iovec
16 | Iovlen int32
17 | Pad_cgo_1 [4]byte
18 | Control *byte
19 | Controllen uint32
20 | Flags int32
21 | }
22 |
23 | type mmsghdr struct {
24 | Hdr msghdr
25 | Len uint32
26 | Pad_cgo_0 [4]byte
27 | }
28 |
29 | type cmsghdr struct {
30 | Len uint32
31 | Level int32
32 | Type int32
33 | }
34 |
35 | const (
36 | sizeofIovec = 0x10
37 | sizeofMsghdr = 0x30
38 | )
39 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_openbsd_386.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_openbsd.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint32
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Iov *iovec
15 | Iovlen uint32
16 | Control *byte
17 | Controllen uint32
18 | Flags int32
19 | }
20 |
21 | type cmsghdr struct {
22 | Len uint32
23 | Level int32
24 | Type int32
25 | }
26 |
27 | const (
28 | sizeofIovec = 0x8
29 | sizeofMsghdr = 0x1c
30 | )
31 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_openbsd_amd64.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_openbsd.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint64
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Pad_cgo_0 [4]byte
15 | Iov *iovec
16 | Iovlen uint32
17 | Pad_cgo_1 [4]byte
18 | Control *byte
19 | Controllen uint32
20 | Flags int32
21 | }
22 |
23 | type cmsghdr struct {
24 | Len uint32
25 | Level int32
26 | Type int32
27 | }
28 |
29 | const (
30 | sizeofIovec = 0x10
31 | sizeofMsghdr = 0x30
32 | )
33 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_openbsd_arm.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_openbsd.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint32
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Iov *iovec
15 | Iovlen uint32
16 | Control *byte
17 | Controllen uint32
18 | Flags int32
19 | }
20 |
21 | type cmsghdr struct {
22 | Len uint32
23 | Level int32
24 | Type int32
25 | }
26 |
27 | const (
28 | sizeofIovec = 0x8
29 | sizeofMsghdr = 0x1c
30 | )
31 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_openbsd_arm64.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_openbsd.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint64
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Pad_cgo_0 [4]byte
15 | Iov *iovec
16 | Iovlen uint32
17 | Pad_cgo_1 [4]byte
18 | Control *byte
19 | Controllen uint32
20 | Flags int32
21 | }
22 |
23 | type cmsghdr struct {
24 | Len uint32
25 | Level int32
26 | Type int32
27 | }
28 |
29 | const (
30 | sizeofIovec = 0x10
31 | sizeofMsghdr = 0x30
32 | )
33 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_openbsd_mips64.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_openbsd.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint64
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Iov *iovec
15 | Iovlen uint32
16 | Control *byte
17 | Controllen uint32
18 | Flags int32
19 | }
20 |
21 | type cmsghdr struct {
22 | Len uint32
23 | Level int32
24 | Type int32
25 | }
26 |
27 | const (
28 | sizeofIovec = 0x10
29 | sizeofMsghdr = 0x30
30 | )
31 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_openbsd_ppc64.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_openbsd.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint64
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Iov *iovec
15 | Iovlen uint32
16 | Control *byte
17 | Controllen uint32
18 | Flags int32
19 | }
20 |
21 | type cmsghdr struct {
22 | Len uint32
23 | Level int32
24 | Type int32
25 | }
26 |
27 | const (
28 | sizeofIovec = 0x10
29 | sizeofMsghdr = 0x30
30 | )
31 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_openbsd_riscv64.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_openbsd.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *byte
8 | Len uint64
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Iov *iovec
15 | Iovlen uint32
16 | Control *byte
17 | Controllen uint32
18 | Flags int32
19 | }
20 |
21 | type cmsghdr struct {
22 | Len uint32
23 | Level int32
24 | Type int32
25 | }
26 |
27 | const (
28 | sizeofIovec = 0x10
29 | sizeofMsghdr = 0x30
30 | )
31 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_solaris_amd64.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_solaris.go
3 |
4 | package socket
5 |
6 | type iovec struct {
7 | Base *int8
8 | Len uint64
9 | }
10 |
11 | type msghdr struct {
12 | Name *byte
13 | Namelen uint32
14 | Pad_cgo_0 [4]byte
15 | Iov *iovec
16 | Iovlen int32
17 | Pad_cgo_1 [4]byte
18 | Accrights *int8
19 | Accrightslen int32
20 | Pad_cgo_2 [4]byte
21 | }
22 |
23 | type cmsghdr struct {
24 | Len uint32
25 | Level int32
26 | Type int32
27 | }
28 |
29 | const (
30 | sizeofIovec = 0x10
31 | sizeofMsghdr = 0x30
32 | )
33 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/zsys_zos_s390x.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 socket
6 |
7 | type iovec struct {
8 | Base *byte
9 | Len uint64
10 | }
11 |
12 | type msghdr struct {
13 | Name *byte
14 | Iov *iovec
15 | Control *byte
16 | Flags int32
17 | Namelen uint32
18 | Iovlen int32
19 | Controllen uint32
20 | }
21 |
22 | type cmsghdr struct {
23 | Len int32
24 | Level int32
25 | Type int32
26 | }
27 |
28 | const sizeofCmsghdr = 12
29 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv4/control_stub.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 && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows && !zos
6 |
7 | package ipv4
8 |
9 | import "golang.org/x/net/internal/socket"
10 |
11 | func setControlMessage(c *socket.Conn, opt *rawOpt, cf ControlFlags, on bool) error {
12 | return errNotImplemented
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv4/control_windows.go:
--------------------------------------------------------------------------------
1 | // Copyright 2012 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package ipv4
6 |
7 | import "golang.org/x/net/internal/socket"
8 |
9 | func setControlMessage(c *socket.Conn, opt *rawOpt, cf ControlFlags, on bool) error {
10 | // TODO(mikio): implement this
11 | return errNotImplemented
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv4/icmp_linux.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 ipv4
6 |
7 | func (f *icmpFilter) accept(typ ICMPType) {
8 | f.Data &^= 1 << (uint32(typ) & 31)
9 | }
10 |
11 | func (f *icmpFilter) block(typ ICMPType) {
12 | f.Data |= 1 << (uint32(typ) & 31)
13 | }
14 |
15 | func (f *icmpFilter) setAll(block bool) {
16 | if block {
17 | f.Data = 1<<32 - 1
18 | } else {
19 | f.Data = 0
20 | }
21 | }
22 |
23 | func (f *icmpFilter) willBlock(typ ICMPType) bool {
24 | return f.Data&(1<<(uint32(typ)&31)) != 0
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv4/icmp_stub.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
6 |
7 | package ipv4
8 |
9 | const sizeofICMPFilter = 0x0
10 |
11 | type icmpFilter struct {
12 | }
13 |
14 | func (f *icmpFilter) accept(typ ICMPType) {
15 | }
16 |
17 | func (f *icmpFilter) block(typ ICMPType) {
18 | }
19 |
20 | func (f *icmpFilter) setAll(block bool) {
21 | }
22 |
23 | func (f *icmpFilter) willBlock(typ ICMPType) bool {
24 | return false
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv4/payload.go:
--------------------------------------------------------------------------------
1 | // Copyright 2012 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package ipv4
6 |
7 | import (
8 | "net"
9 |
10 | "golang.org/x/net/internal/socket"
11 | )
12 |
13 | // BUG(mikio): On Windows, the ControlMessage for ReadFrom and WriteTo
14 | // methods of PacketConn is not implemented.
15 |
16 | // A payloadHandler represents the IPv4 datagram payload handler.
17 | type payloadHandler struct {
18 | net.PacketConn
19 | *socket.Conn
20 | rawOpt
21 | }
22 |
23 | func (c *payloadHandler) ok() bool { return c != nil && c.PacketConn != nil && c.Conn != nil }
24 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv4/sys_asmreqn_stub.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 !darwin && !freebsd && !linux
6 |
7 | package ipv4
8 |
9 | import (
10 | "net"
11 |
12 | "golang.org/x/net/internal/socket"
13 | )
14 |
15 | func (so *sockOpt) getIPMreqn(c *socket.Conn) (*net.Interface, error) {
16 | return nil, errNotImplemented
17 | }
18 |
19 | func (so *sockOpt) setIPMreqn(c *socket.Conn, ifi *net.Interface, grp net.IP) error {
20 | return errNotImplemented
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv4/sys_bpf.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 linux
6 |
7 | package ipv4
8 |
9 | import (
10 | "unsafe"
11 |
12 | "golang.org/x/net/bpf"
13 | "golang.org/x/net/internal/socket"
14 | "golang.org/x/sys/unix"
15 | )
16 |
17 | func (so *sockOpt) setAttachFilter(c *socket.Conn, f []bpf.RawInstruction) error {
18 | prog := unix.SockFprog{
19 | Len: uint16(len(f)),
20 | Filter: (*unix.SockFilter)(unsafe.Pointer(&f[0])),
21 | }
22 | b := (*[unix.SizeofSockFprog]byte)(unsafe.Pointer(&prog))[:unix.SizeofSockFprog]
23 | return so.Set(c, b)
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv4/sys_bpf_stub.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 !linux
6 |
7 | package ipv4
8 |
9 | import (
10 | "golang.org/x/net/bpf"
11 | "golang.org/x/net/internal/socket"
12 | )
13 |
14 | func (so *sockOpt) setAttachFilter(c *socket.Conn, f []bpf.RawInstruction) error {
15 | return errNotImplemented
16 | }
17 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv4/sys_ssmreq_stub.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 !darwin && !freebsd && !linux && !solaris
6 |
7 | package ipv4
8 |
9 | import (
10 | "net"
11 |
12 | "golang.org/x/net/internal/socket"
13 | )
14 |
15 | func (so *sockOpt) setGroupReq(c *socket.Conn, ifi *net.Interface, grp net.IP) error {
16 | return errNotImplemented
17 | }
18 |
19 | func (so *sockOpt) setGroupSourceReq(c *socket.Conn, ifi *net.Interface, grp, src net.IP) error {
20 | return errNotImplemented
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv4/sys_stub.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 !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows && !zos
6 |
7 | package ipv4
8 |
9 | var (
10 | ctlOpts = [ctlMax]ctlOpt{}
11 |
12 | sockOpts = map[int]*sockOpt{}
13 | )
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv4/zsys_aix_ppc64.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_aix.go
3 |
4 | // Added for go1.11 compatibility
5 | //go:build aix
6 |
7 | package ipv4
8 |
9 | const (
10 | sizeofIPMreq = 0x8
11 | )
12 |
13 | type ipMreq struct {
14 | Multiaddr [4]byte /* in_addr */
15 | Interface [4]byte /* in_addr */
16 | }
17 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv4/zsys_dragonfly.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_dragonfly.go
3 |
4 | package ipv4
5 |
6 | const (
7 | sizeofIPMreq = 0x8
8 | )
9 |
10 | type ipMreq struct {
11 | Multiaddr [4]byte /* in_addr */
12 | Interface [4]byte /* in_addr */
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv4/zsys_netbsd.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_netbsd.go
3 |
4 | package ipv4
5 |
6 | const (
7 | sizeofIPMreq = 0x8
8 | )
9 |
10 | type ipMreq struct {
11 | Multiaddr [4]byte /* in_addr */
12 | Interface [4]byte /* in_addr */
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv4/zsys_openbsd.go:
--------------------------------------------------------------------------------
1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT.
2 | // cgo -godefs defs_openbsd.go
3 |
4 | package ipv4
5 |
6 | const (
7 | sizeofIPMreq = 0x8
8 | )
9 |
10 | type ipMreq struct {
11 | Multiaddr [4]byte /* in_addr */
12 | Interface [4]byte /* in_addr */
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv6/control_stub.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 !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows && !zos
6 |
7 | package ipv6
8 |
9 | import "golang.org/x/net/internal/socket"
10 |
11 | func setControlMessage(c *socket.Conn, opt *rawOpt, cf ControlFlags, on bool) error {
12 | return errNotImplemented
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv6/control_windows.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 | package ipv6
6 |
7 | import "golang.org/x/net/internal/socket"
8 |
9 | func setControlMessage(c *socket.Conn, opt *rawOpt, cf ControlFlags, on bool) error {
10 | // TODO(mikio): implement this
11 | return errNotImplemented
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv6/icmp_linux.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 | package ipv6
6 |
7 | func (f *icmpv6Filter) accept(typ ICMPType) {
8 | f.Data[typ>>5] &^= 1 << (uint32(typ) & 31)
9 | }
10 |
11 | func (f *icmpv6Filter) block(typ ICMPType) {
12 | f.Data[typ>>5] |= 1 << (uint32(typ) & 31)
13 | }
14 |
15 | func (f *icmpv6Filter) setAll(block bool) {
16 | for i := range f.Data {
17 | if block {
18 | f.Data[i] = 1<<32 - 1
19 | } else {
20 | f.Data[i] = 0
21 | }
22 | }
23 | }
24 |
25 | func (f *icmpv6Filter) willBlock(typ ICMPType) bool {
26 | return f.Data[typ>>5]&(1<<(uint32(typ)&31)) != 0
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv6/icmp_stub.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 !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows && !zos
6 |
7 | package ipv6
8 |
9 | type icmpv6Filter struct {
10 | }
11 |
12 | func (f *icmpv6Filter) accept(typ ICMPType) {
13 | }
14 |
15 | func (f *icmpv6Filter) block(typ ICMPType) {
16 | }
17 |
18 | func (f *icmpv6Filter) setAll(block bool) {
19 | }
20 |
21 | func (f *icmpv6Filter) willBlock(typ ICMPType) bool {
22 | return false
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv6/icmp_windows.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 | package ipv6
6 |
7 | func (f *icmpv6Filter) accept(typ ICMPType) {
8 | // TODO(mikio): implement this
9 | }
10 |
11 | func (f *icmpv6Filter) block(typ ICMPType) {
12 | // TODO(mikio): implement this
13 | }
14 |
15 | func (f *icmpv6Filter) setAll(block bool) {
16 | // TODO(mikio): implement this
17 | }
18 |
19 | func (f *icmpv6Filter) willBlock(typ ICMPType) bool {
20 | // TODO(mikio): implement this
21 | return false
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv6/icmp_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 | package ipv6
6 |
7 | func (f *icmpv6Filter) accept(typ ICMPType) {
8 | f.Filt[typ>>5] |= 1 << (uint32(typ) & 31)
9 |
10 | }
11 |
12 | func (f *icmpv6Filter) block(typ ICMPType) {
13 | f.Filt[typ>>5] &^= 1 << (uint32(typ) & 31)
14 |
15 | }
16 |
17 | func (f *icmpv6Filter) setAll(block bool) {
18 | for i := range f.Filt {
19 | if block {
20 | f.Filt[i] = 0
21 | } else {
22 | f.Filt[i] = 1<<32 - 1
23 | }
24 | }
25 | }
26 |
27 | func (f *icmpv6Filter) willBlock(typ ICMPType) bool {
28 | return f.Filt[typ>>5]&(1<<(uint32(typ)&31)) == 0
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv6/payload.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 | package ipv6
6 |
7 | import (
8 | "net"
9 |
10 | "golang.org/x/net/internal/socket"
11 | )
12 |
13 | // BUG(mikio): On Windows, the ControlMessage for ReadFrom and WriteTo
14 | // methods of PacketConn is not implemented.
15 |
16 | // A payloadHandler represents the IPv6 datagram payload handler.
17 | type payloadHandler struct {
18 | net.PacketConn
19 | *socket.Conn
20 | rawOpt
21 | }
22 |
23 | func (c *payloadHandler) ok() bool { return c != nil && c.PacketConn != nil && c.Conn != nil }
24 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv6/sys_asmreq.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 aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || windows
6 |
7 | package ipv6
8 |
9 | import (
10 | "net"
11 | "unsafe"
12 |
13 | "golang.org/x/net/internal/socket"
14 | )
15 |
16 | func (so *sockOpt) setIPMreq(c *socket.Conn, ifi *net.Interface, grp net.IP) error {
17 | var mreq ipv6Mreq
18 | copy(mreq.Multiaddr[:], grp)
19 | if ifi != nil {
20 | mreq.setIfindex(ifi.Index)
21 | }
22 | b := (*[sizeofIPv6Mreq]byte)(unsafe.Pointer(&mreq))[:sizeofIPv6Mreq]
23 | return so.Set(c, b)
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv6/sys_asmreq_stub.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 !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows
6 |
7 | package ipv6
8 |
9 | import (
10 | "net"
11 |
12 | "golang.org/x/net/internal/socket"
13 | )
14 |
15 | func (so *sockOpt) setIPMreq(c *socket.Conn, ifi *net.Interface, grp net.IP) error {
16 | return errNotImplemented
17 | }
18 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv6/sys_bpf.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 linux
6 |
7 | package ipv6
8 |
9 | import (
10 | "unsafe"
11 |
12 | "golang.org/x/net/bpf"
13 | "golang.org/x/net/internal/socket"
14 | "golang.org/x/sys/unix"
15 | )
16 |
17 | func (so *sockOpt) setAttachFilter(c *socket.Conn, f []bpf.RawInstruction) error {
18 | prog := unix.SockFprog{
19 | Len: uint16(len(f)),
20 | Filter: (*unix.SockFilter)(unsafe.Pointer(&f[0])),
21 | }
22 | b := (*[unix.SizeofSockFprog]byte)(unsafe.Pointer(&prog))[:unix.SizeofSockFprog]
23 | return so.Set(c, b)
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv6/sys_bpf_stub.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 !linux
6 |
7 | package ipv6
8 |
9 | import (
10 | "golang.org/x/net/bpf"
11 | "golang.org/x/net/internal/socket"
12 | )
13 |
14 | func (so *sockOpt) setAttachFilter(c *socket.Conn, f []bpf.RawInstruction) error {
15 | return errNotImplemented
16 | }
17 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv6/sys_ssmreq_stub.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 !aix && !darwin && !freebsd && !linux && !solaris && !zos
6 |
7 | package ipv6
8 |
9 | import (
10 | "net"
11 |
12 | "golang.org/x/net/internal/socket"
13 | )
14 |
15 | func (so *sockOpt) setGroupReq(c *socket.Conn, ifi *net.Interface, grp net.IP) error {
16 | return errNotImplemented
17 | }
18 |
19 | func (so *sockOpt) setGroupSourceReq(c *socket.Conn, ifi *net.Interface, grp, src net.IP) error {
20 | return errNotImplemented
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/ipv6/sys_stub.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 !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows && !zos
6 |
7 | package ipv6
8 |
9 | var (
10 | ctlOpts = [ctlMax]ctlOpt{}
11 |
12 | sockOpts = map[int]*sockOpt{}
13 | )
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/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/cpu/asm_darwin_x86_gc.s:
--------------------------------------------------------------------------------
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 darwin && amd64 && gc
6 |
7 | #include "textflag.h"
8 |
9 | TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0
10 | JMP libc_sysctl(SB)
11 | GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8
12 | DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB)
13 |
14 | TEXT libc_sysctlbyname_trampoline<>(SB),NOSPLIT,$0-0
15 | JMP libc_sysctlbyname(SB)
16 | GLOBL ·libc_sysctlbyname_trampoline_addr(SB), RODATA, $8
17 | DATA ·libc_sysctlbyname_trampoline_addr(SB)/8, $libc_sysctlbyname_trampoline<>(SB)
18 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_gc_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 gc
6 |
7 | package cpu
8 |
9 | func getisar0() uint64
10 | func getisar1() uint64
11 | func getpfr0() uint64
12 | func getzfr0() uint64
13 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_gc_x86.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 (386 || amd64 || amd64p32) && gc
6 |
7 | package cpu
8 |
9 | // cpuid is implemented in cpu_gc_x86.s for gc compiler
10 | // and in cpu_gccgo.c for gccgo.
11 | func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32)
12 |
13 | // xgetbv with ecx = 0 is implemented in cpu_gc_x86.s for gc compiler
14 | // and in cpu_gccgo.c for gccgo.
15 | func xgetbv() (eax, edx uint32)
16 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_gc_x86.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 (386 || amd64 || amd64p32) && gc
6 |
7 | #include "textflag.h"
8 |
9 | // func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32)
10 | TEXT ·cpuid(SB), NOSPLIT, $0-24
11 | MOVL eaxArg+0(FP), AX
12 | MOVL ecxArg+4(FP), CX
13 | CPUID
14 | MOVL AX, eax+8(FP)
15 | MOVL BX, ebx+12(FP)
16 | MOVL CX, ecx+16(FP)
17 | MOVL DX, edx+20(FP)
18 | RET
19 |
20 | // func xgetbv() (eax, edx uint32)
21 | TEXT ·xgetbv(SB), NOSPLIT, $0-8
22 | MOVL $0, CX
23 | XGETBV
24 | MOVL AX, eax+0(FP)
25 | MOVL DX, edx+4(FP)
26 | RET
27 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_gccgo_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 gccgo
6 |
7 | package cpu
8 |
9 | func getisar0() uint64 { return 0 }
10 | func getisar1() uint64 { return 0 }
11 | func getpfr0() uint64 { return 0 }
12 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_linux.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 !386 && !amd64 && !amd64p32 && !arm64
6 |
7 | package cpu
8 |
9 | func archInit() {
10 | if err := readHWCAP(); err != nil {
11 | return
12 | }
13 | doinit()
14 | Initialized = true
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_linux_loong64.go:
--------------------------------------------------------------------------------
1 | // Copyright 2025 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 cpu
6 |
7 | // HWCAP bits. These are exposed by the Linux kernel.
8 | const (
9 | hwcap_LOONGARCH_LSX = 1 << 4
10 | hwcap_LOONGARCH_LASX = 1 << 5
11 | )
12 |
13 | func doinit() {
14 | // TODO: Features that require kernel support like LSX and LASX can
15 | // be detected here once needed in std library or by the compiler.
16 | Loong64.HasLSX = hwcIsSet(hwCap, hwcap_LOONGARCH_LSX)
17 | Loong64.HasLASX = hwcIsSet(hwCap, hwcap_LOONGARCH_LASX)
18 | }
19 |
20 | func hwcIsSet(hwc uint, val uint) bool {
21 | return hwc&val != 0
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_linux_mips64x.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 linux && (mips64 || mips64le)
6 |
7 | package cpu
8 |
9 | // HWCAP bits. These are exposed by the Linux kernel 5.4.
10 | const (
11 | // CPU features
12 | hwcap_MIPS_MSA = 1 << 1
13 | )
14 |
15 | func doinit() {
16 | // HWCAP feature bits
17 | MIPS64X.HasMSA = isSet(hwCap, hwcap_MIPS_MSA)
18 | }
19 |
20 | func isSet(hwc uint, value uint) bool {
21 | return hwc&value != 0
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_linux_noinit.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 linux && !arm && !arm64 && !loong64 && !mips64 && !mips64le && !ppc64 && !ppc64le && !s390x && !riscv64
6 |
7 | package cpu
8 |
9 | func doinit() {}
10 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_loong64.s:
--------------------------------------------------------------------------------
1 | // Copyright 2025 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 | #include "textflag.h"
6 |
7 | // func get_cpucfg(reg uint32) uint32
8 | TEXT ·get_cpucfg(SB), NOSPLIT|NOFRAME, $0
9 | MOVW reg+0(FP), R5
10 | // CPUCFG R5, R4 = 0x00006ca4
11 | WORD $0x00006ca4
12 | MOVW R4, ret+8(FP)
13 | RET
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_mips64x.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 mips64 || mips64le
6 |
7 | package cpu
8 |
9 | const cacheLineSize = 32
10 |
11 | func initOptions() {
12 | options = []option{
13 | {Name: "msa", Feature: &MIPS64X.HasMSA},
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_mipsx.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 mips || mipsle
6 |
7 | package cpu
8 |
9 | const cacheLineSize = 32
10 |
11 | func initOptions() {}
12 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.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 | #include "textflag.h"
6 |
7 | TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0
8 | JMP libc_sysctl(SB)
9 |
10 | GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8
11 | DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB)
12 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_other_arm.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 !linux && arm
6 |
7 | package cpu
8 |
9 | func archInit() {}
10 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_other_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 !linux && !netbsd && !openbsd && arm64
6 |
7 | package cpu
8 |
9 | func doinit() {}
10 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_other_mips64x.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 !linux && (mips64 || mips64le)
6 |
7 | package cpu
8 |
9 | func archInit() {
10 | Initialized = true
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_other_ppc64x.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 !aix && !linux && (ppc64 || ppc64le)
6 |
7 | package cpu
8 |
9 | func archInit() {
10 | PPC64.IsPOWER8 = true
11 | Initialized = true
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_other_riscv64.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 && riscv64
6 |
7 | package cpu
8 |
9 | func archInit() {
10 | Initialized = true
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_other_x86.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 386 || amd64p32 || (amd64 && (!darwin || !gc))
6 |
7 | package cpu
8 |
9 | func darwinSupportsAVX512() bool {
10 | panic("only implemented for gc && amd64 && darwin")
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_ppc64x.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 ppc64 || ppc64le
6 |
7 | package cpu
8 |
9 | const cacheLineSize = 128
10 |
11 | func initOptions() {
12 | options = []option{
13 | {Name: "darn", Feature: &PPC64.HasDARN},
14 | {Name: "scv", Feature: &PPC64.HasSCV},
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_riscv64.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 riscv64
6 |
7 | package cpu
8 |
9 | const cacheLineSize = 64
10 |
11 | func initOptions() {
12 | options = []option{
13 | {Name: "fastmisaligned", Feature: &RISCV64.HasFastMisaligned},
14 | {Name: "c", Feature: &RISCV64.HasC},
15 | {Name: "v", Feature: &RISCV64.HasV},
16 | {Name: "zba", Feature: &RISCV64.HasZba},
17 | {Name: "zbb", Feature: &RISCV64.HasZbb},
18 | {Name: "zbs", Feature: &RISCV64.HasZbs},
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_wasm.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 wasm
6 |
7 | package cpu
8 |
9 | // We're compiling the cpu package for an unknown (software-abstracted) CPU.
10 | // Make CacheLinePad an empty struct and hope that the usual struct alignment
11 | // rules are good enough.
12 |
13 | const cacheLineSize = 0
14 |
15 | func initOptions() {}
16 |
17 | func archInit() {}
18 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_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 | package cpu
6 |
7 | func archInit() {
8 | doinit()
9 | Initialized = true
10 | }
11 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/endian_big.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 armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64
6 |
7 | package cpu
8 |
9 | // IsBigEndian records whether the GOARCH's byte order is big endian.
10 | const IsBigEndian = true
11 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/endian_little.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 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh || wasm
6 |
7 | package cpu
8 |
9 | // IsBigEndian records whether the GOARCH's byte order is big endian.
10 | const IsBigEndian = false
11 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/runtime_auxv.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 cpu
6 |
7 | // getAuxvFn is non-nil on Go 1.21+ (via runtime_auxv_go121.go init)
8 | // on platforms that use auxv.
9 | var getAuxvFn func() []uintptr
10 |
11 | func getAuxv() []uintptr {
12 | if getAuxvFn == nil {
13 | return nil
14 | }
15 | return getAuxvFn()
16 | }
17 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/runtime_auxv_go121.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.21
6 |
7 | package cpu
8 |
9 | import (
10 | _ "unsafe" // for linkname
11 | )
12 |
13 | //go:linkname runtime_getAuxv runtime.getAuxv
14 | func runtime_getAuxv() []uintptr
15 |
16 | func init() {
17 | getAuxvFn = runtime_getAuxv
18 | }
19 |
--------------------------------------------------------------------------------
/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_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/auxv_unsupported.go:
--------------------------------------------------------------------------------
1 | // Copyright 2025 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 && (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos)
6 |
7 | package unix
8 |
9 | import "syscall"
10 |
11 | func Auxv() ([][2]uintptr, error) {
12 | return nil, syscall.ENOTSUP
13 | }
14 |
--------------------------------------------------------------------------------
/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/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/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/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/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/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_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_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/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/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/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/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/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/gocommand/invoke_notunix.go:
--------------------------------------------------------------------------------
1 | // Copyright 2025 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 !unix
6 |
7 | package gocommand
8 |
9 | import "os"
10 |
11 | // sigStuckProcess is the signal to send to kill a hanging subprocess.
12 | // On Unix we send SIGQUIT, but on non-Unix we only have os.Kill.
13 | var sigStuckProcess = os.Kill
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/tools/internal/gocommand/invoke_unix.go:
--------------------------------------------------------------------------------
1 | // Copyright 2025 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 unix
6 |
7 | package gocommand
8 |
9 | import "syscall"
10 |
11 | // Sigstuckprocess is the signal to send to kill a hanging subprocess.
12 | // Send SIGQUIT to get a stack trace.
13 | var sigStuckProcess = syscall.SIGQUIT
14 |
--------------------------------------------------------------------------------
/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/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/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/umputun/reproxy/b56560f72cb1dd195a96bf82bf6d9c4efbee359d/vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb
--------------------------------------------------------------------------------
/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 | UnknownFields_goname = "unknownFields"
15 | UnknownFieldsA_goname = "XXX_unrecognized"
16 |
17 | ExtensionFields_goname = "extensionFields"
18 | ExtensionFieldsA_goname = "XXX_InternalExtensions"
19 | ExtensionFieldsB_goname = "XXX_extensions"
20 | )
21 |
--------------------------------------------------------------------------------
/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/name.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 genid
6 |
7 | const (
8 | NoUnkeyedLiteral_goname = "noUnkeyedLiteral"
9 | NoUnkeyedLiteralA_goname = "XXX_NoUnkeyedLiteral"
10 |
11 | BuilderSuffix_goname = "_builder"
12 | )
13 |
--------------------------------------------------------------------------------
/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_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/internal/protolazy/pointer_unsafe.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 protolazy
6 |
7 | import (
8 | "sync/atomic"
9 | "unsafe"
10 | )
11 |
12 | func atomicLoadIndex(p **[]IndexEntry) *[]IndexEntry {
13 | return (*[]IndexEntry)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(p))))
14 | }
15 | func atomicStoreIndex(p **[]IndexEntry, v *[]IndexEntry) {
16 | atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(p)), unsafe.Pointer(v))
17 | }
18 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/natefinch/lumberjack.v2/.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/gopkg.in/natefinch/lumberjack.v2/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 |
3 | go:
4 | - tip
5 | - 1.15.x
6 | - 1.14.x
7 | - 1.13.x
8 | - 1.12.x
9 |
10 | env:
11 | - GO111MODULE=on
12 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/natefinch/lumberjack.v2/chown.go:
--------------------------------------------------------------------------------
1 | // +build !linux
2 |
3 | package lumberjack
4 |
5 | import (
6 | "os"
7 | )
8 |
9 | func chown(_ string, _ os.FileInfo) error {
10 | return nil
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/natefinch/lumberjack.v2/chown_linux.go:
--------------------------------------------------------------------------------
1 | package lumberjack
2 |
3 | import (
4 | "os"
5 | "syscall"
6 | )
7 |
8 | // osChown is a var so we can mock it out during tests.
9 | var osChown = os.Chown
10 |
11 | func chown(name string, info os.FileInfo) error {
12 | f, err := os.OpenFile(name, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, info.Mode())
13 | if err != nil {
14 | return err
15 | }
16 | f.Close()
17 | stat := info.Sys().(*syscall.Stat_t)
18 | return osChown(name, int(stat.Uid), int(stat.Gid))
19 | }
20 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/yaml.v3/NOTICE:
--------------------------------------------------------------------------------
1 | Copyright 2011-2016 Canonical Ltd.
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 |
--------------------------------------------------------------------------------