├── .github
├── ISSUE_TEMPLATE
│ ├── bug_report.md
│ └── feature_request.md
└── workflows
│ ├── release.yml
│ └── test.yml
├── .gitignore
├── Dockerfile
├── LICENSE
├── Makefile
├── README.md
├── app.go
├── core
├── components_e2e_test.go
├── config.go
├── context.go
├── core.go
├── core_e2e_test.go
├── listeners.go
├── metrics.go
├── peers.go
├── peers_test.go
├── proxy.go
├── replication.go
├── role.go
├── service.go
└── structs_e2e_test.go
├── doc.go
├── docs
├── 404.html
├── assets
│ ├── images
│ │ └── favicon.png
│ ├── javascripts
│ │ ├── bundle.b3a72adc.min.js
│ │ ├── bundle.b3a72adc.min.js.map
│ │ ├── lunr
│ │ │ ├── min
│ │ │ │ ├── lunr.ar.min.js
│ │ │ │ ├── lunr.da.min.js
│ │ │ │ ├── lunr.de.min.js
│ │ │ │ ├── lunr.du.min.js
│ │ │ │ ├── lunr.es.min.js
│ │ │ │ ├── lunr.fi.min.js
│ │ │ │ ├── lunr.fr.min.js
│ │ │ │ ├── lunr.hu.min.js
│ │ │ │ ├── lunr.it.min.js
│ │ │ │ ├── lunr.ja.min.js
│ │ │ │ ├── lunr.jp.min.js
│ │ │ │ ├── lunr.multi.min.js
│ │ │ │ ├── lunr.nl.min.js
│ │ │ │ ├── lunr.no.min.js
│ │ │ │ ├── lunr.pt.min.js
│ │ │ │ ├── lunr.ro.min.js
│ │ │ │ ├── lunr.ru.min.js
│ │ │ │ ├── lunr.stemmer.support.min.js
│ │ │ │ ├── lunr.sv.min.js
│ │ │ │ ├── lunr.tr.min.js
│ │ │ │ └── lunr.vi.min.js
│ │ │ └── tinyseg.min.js
│ │ ├── vendor.7e0ee788.min.js
│ │ ├── vendor.7e0ee788.min.js.map
│ │ └── worker
│ │ │ ├── search.4ac00218.min.js
│ │ │ └── search.4ac00218.min.js.map
│ └── stylesheets
│ │ ├── main.358818c7.min.css
│ │ ├── main.358818c7.min.css.map
│ │ ├── palette.f0267088.min.css
│ │ └── palette.f0267088.min.css.map
├── flags.txt
├── images
│ └── manger-writes.jpg
├── index.html
├── search
│ └── search_index.json
├── sitemap.xml
└── sitemap.xml.gz
├── go.mod
├── go.sum
├── main.go
├── mkdocs.sh
├── mkdocs.yml
├── site
├── flags.txt
├── images
│ └── manger-writes.jpg
└── index.md
├── vendor
├── github.com
│ ├── DataDog
│ │ └── datadog-go
│ │ │ ├── LICENSE.txt
│ │ │ └── statsd
│ │ │ ├── README.md
│ │ │ ├── aggregator.go
│ │ │ ├── buffer.go
│ │ │ ├── buffer_pool.go
│ │ │ ├── event.go
│ │ │ ├── fnv1a.go
│ │ │ ├── format.go
│ │ │ ├── metrics.go
│ │ │ ├── noop.go
│ │ │ ├── options.go
│ │ │ ├── sender.go
│ │ │ ├── service_check.go
│ │ │ ├── statsd.go
│ │ │ ├── telemetry.go
│ │ │ ├── udp.go
│ │ │ ├── uds.go
│ │ │ └── worker.go
│ ├── armon
│ │ ├── go-metrics
│ │ │ ├── .gitignore
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── circonus
│ │ │ │ └── circonus.go
│ │ │ ├── const_unix.go
│ │ │ ├── const_windows.go
│ │ │ ├── datadog
│ │ │ │ └── dogstatsd.go
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── inmem.go
│ │ │ ├── inmem_endpoint.go
│ │ │ ├── inmem_signal.go
│ │ │ ├── metrics.go
│ │ │ ├── prometheus
│ │ │ │ └── prometheus.go
│ │ │ ├── sink.go
│ │ │ ├── start.go
│ │ │ ├── statsd.go
│ │ │ └── statsite.go
│ │ └── go-radix
│ │ │ ├── .gitignore
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── go.mod
│ │ │ └── radix.go
│ ├── beorn7
│ │ └── perks
│ │ │ ├── LICENSE
│ │ │ └── quantile
│ │ │ ├── exampledata.txt
│ │ │ └── stream.go
│ ├── cespare
│ │ └── xxhash
│ │ │ └── v2
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE.txt
│ │ │ ├── README.md
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── xxhash.go
│ │ │ ├── xxhash_amd64.go
│ │ │ ├── xxhash_amd64.s
│ │ │ ├── xxhash_other.go
│ │ │ ├── xxhash_safe.go
│ │ │ └── xxhash_unsafe.go
│ ├── circonus-labs
│ │ ├── circonus-gometrics
│ │ │ ├── .gitignore
│ │ │ ├── CHANGELOG.md
│ │ │ ├── Gopkg.lock
│ │ │ ├── Gopkg.toml
│ │ │ ├── LICENSE
│ │ │ ├── OPTIONS.md
│ │ │ ├── README.md
│ │ │ ├── api
│ │ │ │ ├── README.md
│ │ │ │ ├── account.go
│ │ │ │ ├── acknowledgement.go
│ │ │ │ ├── alert.go
│ │ │ │ ├── annotation.go
│ │ │ │ ├── api.go
│ │ │ │ ├── broker.go
│ │ │ │ ├── check.go
│ │ │ │ ├── check_bundle.go
│ │ │ │ ├── check_bundle_metrics.go
│ │ │ │ ├── config
│ │ │ │ │ └── consts.go
│ │ │ │ ├── contact_group.go
│ │ │ │ ├── dashboard.go
│ │ │ │ ├── doc.go
│ │ │ │ ├── graph.go
│ │ │ │ ├── maintenance.go
│ │ │ │ ├── metric.go
│ │ │ │ ├── metric_cluster.go
│ │ │ │ ├── outlier_report.go
│ │ │ │ ├── provision_broker.go
│ │ │ │ ├── rule_set.go
│ │ │ │ ├── rule_set_group.go
│ │ │ │ ├── user.go
│ │ │ │ └── worksheet.go
│ │ │ ├── checkmgr
│ │ │ │ ├── broker.go
│ │ │ │ ├── cert.go
│ │ │ │ ├── check.go
│ │ │ │ ├── checkmgr.go
│ │ │ │ └── metrics.go
│ │ │ ├── circonus-gometrics.go
│ │ │ ├── counter.go
│ │ │ ├── gauge.go
│ │ │ ├── histogram.go
│ │ │ ├── metrics.go
│ │ │ ├── submit.go
│ │ │ ├── text.go
│ │ │ ├── tools.go
│ │ │ └── util.go
│ │ └── circonusllhist
│ │ │ ├── LICENSE
│ │ │ └── circonusllhist.go
│ ├── cpuguy83
│ │ └── go-md2man
│ │ │ └── v2
│ │ │ ├── LICENSE.md
│ │ │ └── md2man
│ │ │ ├── md2man.go
│ │ │ └── roff.go
│ ├── davecgh
│ │ └── go-spew
│ │ │ ├── LICENSE
│ │ │ └── spew
│ │ │ ├── bypass.go
│ │ │ ├── bypasssafe.go
│ │ │ ├── common.go
│ │ │ ├── config.go
│ │ │ ├── doc.go
│ │ │ ├── dump.go
│ │ │ ├── format.go
│ │ │ └── spew.go
│ ├── dgryski
│ │ └── go-rendezvous
│ │ │ ├── LICENSE
│ │ │ └── rdv.go
│ ├── fatih
│ │ └── color
│ │ │ ├── LICENSE.md
│ │ │ ├── README.md
│ │ │ ├── color.go
│ │ │ ├── doc.go
│ │ │ ├── go.mod
│ │ │ └── go.sum
│ ├── go-redis
│ │ └── redis
│ │ │ └── v8
│ │ │ ├── .gitignore
│ │ │ ├── .golangci.yml
│ │ │ ├── .prettierrc
│ │ │ ├── .travis.yml
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── cluster.go
│ │ │ ├── cluster_commands.go
│ │ │ ├── command.go
│ │ │ ├── commands.go
│ │ │ ├── doc.go
│ │ │ ├── error.go
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── internal
│ │ │ ├── arg.go
│ │ │ ├── hashtag
│ │ │ │ └── hashtag.go
│ │ │ ├── instruments.go
│ │ │ ├── internal.go
│ │ │ ├── log.go
│ │ │ ├── once.go
│ │ │ ├── pool
│ │ │ │ ├── conn.go
│ │ │ │ ├── pool.go
│ │ │ │ ├── pool_single.go
│ │ │ │ └── pool_sticky.go
│ │ │ ├── proto
│ │ │ │ ├── reader.go
│ │ │ │ ├── scan.go
│ │ │ │ └── writer.go
│ │ │ ├── rand
│ │ │ │ └── rand.go
│ │ │ ├── safe.go
│ │ │ ├── unsafe.go
│ │ │ ├── util.go
│ │ │ └── util
│ │ │ │ ├── safe.go
│ │ │ │ ├── strconv.go
│ │ │ │ └── unsafe.go
│ │ │ ├── iterator.go
│ │ │ ├── options.go
│ │ │ ├── pipeline.go
│ │ │ ├── pubsub.go
│ │ │ ├── redis.go
│ │ │ ├── renovate.json
│ │ │ ├── result.go
│ │ │ ├── ring.go
│ │ │ ├── script.go
│ │ │ ├── sentinel.go
│ │ │ ├── tx.go
│ │ │ └── universal.go
│ ├── golang
│ │ └── protobuf
│ │ │ ├── AUTHORS
│ │ │ ├── CONTRIBUTORS
│ │ │ ├── LICENSE
│ │ │ ├── proto
│ │ │ ├── buffer.go
│ │ │ ├── defaults.go
│ │ │ ├── deprecated.go
│ │ │ ├── discard.go
│ │ │ ├── extensions.go
│ │ │ ├── properties.go
│ │ │ ├── proto.go
│ │ │ ├── registry.go
│ │ │ ├── text_decode.go
│ │ │ ├── text_encode.go
│ │ │ ├── wire.go
│ │ │ └── wrappers.go
│ │ │ └── ptypes
│ │ │ ├── any.go
│ │ │ ├── any
│ │ │ └── any.pb.go
│ │ │ ├── doc.go
│ │ │ ├── duration.go
│ │ │ ├── duration
│ │ │ └── duration.pb.go
│ │ │ ├── timestamp.go
│ │ │ └── timestamp
│ │ │ └── timestamp.pb.go
│ ├── google
│ │ └── btree
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ └── btree.go
│ ├── hashicorp
│ │ ├── consul
│ │ │ ├── LICENSE
│ │ │ ├── NOTICE.md
│ │ │ ├── acl
│ │ │ │ ├── acl.go
│ │ │ │ ├── acl_oss.go
│ │ │ │ ├── authorizer.go
│ │ │ │ ├── authorizer_oss.go
│ │ │ │ ├── chained_authorizer.go
│ │ │ │ ├── errors.go
│ │ │ │ ├── policy.go
│ │ │ │ ├── policy_authorizer.go
│ │ │ │ ├── policy_authorizer_oss.go
│ │ │ │ ├── policy_merger.go
│ │ │ │ ├── policy_merger_oss.go
│ │ │ │ ├── policy_oss.go
│ │ │ │ └── static_authorizer.go
│ │ │ ├── agent
│ │ │ │ ├── cache
│ │ │ │ │ ├── cache.go
│ │ │ │ │ ├── entry.go
│ │ │ │ │ ├── mock_Request.go
│ │ │ │ │ ├── mock_Type.go
│ │ │ │ │ ├── request.go
│ │ │ │ │ ├── testing.go
│ │ │ │ │ ├── type.go
│ │ │ │ │ └── watch.go
│ │ │ │ ├── connect
│ │ │ │ │ ├── common_names.go
│ │ │ │ │ ├── csr.go
│ │ │ │ │ ├── generate.go
│ │ │ │ │ ├── parsing.go
│ │ │ │ │ ├── sni.go
│ │ │ │ │ ├── testing_ca.go
│ │ │ │ │ ├── testing_spiffe.go
│ │ │ │ │ ├── uri.go
│ │ │ │ │ ├── uri_agent.go
│ │ │ │ │ ├── uri_service.go
│ │ │ │ │ ├── uri_service_oss.go
│ │ │ │ │ └── uri_signing.go
│ │ │ │ ├── consul
│ │ │ │ │ └── autopilot
│ │ │ │ │ │ ├── autopilot.go
│ │ │ │ │ │ ├── promotion.go
│ │ │ │ │ │ └── structs.go
│ │ │ │ └── structs
│ │ │ │ │ ├── acl.go
│ │ │ │ │ ├── acl_cache.go
│ │ │ │ │ ├── acl_legacy.go
│ │ │ │ │ ├── acl_oss.go
│ │ │ │ │ ├── auto_encrypt.go
│ │ │ │ │ ├── catalog.go
│ │ │ │ │ ├── check_definition.go
│ │ │ │ │ ├── check_type.go
│ │ │ │ │ ├── config_entry.go
│ │ │ │ │ ├── config_entry_discoverychain.go
│ │ │ │ │ ├── config_entry_discoverychain_oss.go
│ │ │ │ │ ├── config_entry_gateways.go
│ │ │ │ │ ├── config_entry_oss.go
│ │ │ │ │ ├── connect.go
│ │ │ │ │ ├── connect_ca.go
│ │ │ │ │ ├── connect_oss.go
│ │ │ │ │ ├── connect_proxy_config.go
│ │ │ │ │ ├── connect_proxy_config_oss.go
│ │ │ │ │ ├── discovery_chain.go
│ │ │ │ │ ├── discovery_chain_oss.go
│ │ │ │ │ ├── errors.go
│ │ │ │ │ ├── federation_state.go
│ │ │ │ │ ├── intention.go
│ │ │ │ │ ├── intention_oss.go
│ │ │ │ │ ├── operator.go
│ │ │ │ │ ├── prepared_query.go
│ │ │ │ │ ├── protobuf_compat.go
│ │ │ │ │ ├── sanitize_oss.go
│ │ │ │ │ ├── service_definition.go
│ │ │ │ │ ├── snapshot.go
│ │ │ │ │ ├── structs.go
│ │ │ │ │ ├── structs_oss.go
│ │ │ │ │ ├── testing.go
│ │ │ │ │ ├── testing_catalog.go
│ │ │ │ │ ├── testing_connect_proxy_config.go
│ │ │ │ │ ├── testing_intention.go
│ │ │ │ │ ├── testing_service_definition.go
│ │ │ │ │ └── txn.go
│ │ │ ├── api
│ │ │ │ ├── LICENSE
│ │ │ │ ├── README.md
│ │ │ │ ├── acl.go
│ │ │ │ ├── agent.go
│ │ │ │ ├── api.go
│ │ │ │ ├── catalog.go
│ │ │ │ ├── config_entry.go
│ │ │ │ ├── config_entry_discoverychain.go
│ │ │ │ ├── config_entry_gateways.go
│ │ │ │ ├── connect.go
│ │ │ │ ├── connect_ca.go
│ │ │ │ ├── connect_intention.go
│ │ │ │ ├── coordinate.go
│ │ │ │ ├── debug.go
│ │ │ │ ├── discovery_chain.go
│ │ │ │ ├── event.go
│ │ │ │ ├── go.mod
│ │ │ │ ├── go.sum
│ │ │ │ ├── health.go
│ │ │ │ ├── kv.go
│ │ │ │ ├── lock.go
│ │ │ │ ├── namespace.go
│ │ │ │ ├── operator.go
│ │ │ │ ├── operator_area.go
│ │ │ │ ├── operator_autopilot.go
│ │ │ │ ├── operator_keyring.go
│ │ │ │ ├── operator_license.go
│ │ │ │ ├── operator_raft.go
│ │ │ │ ├── operator_segment.go
│ │ │ │ ├── prepared_query.go
│ │ │ │ ├── raw.go
│ │ │ │ ├── semaphore.go
│ │ │ │ ├── session.go
│ │ │ │ ├── snapshot.go
│ │ │ │ ├── status.go
│ │ │ │ ├── txn.go
│ │ │ │ └── watch
│ │ │ │ │ ├── funcs.go
│ │ │ │ │ ├── plan.go
│ │ │ │ │ └── watch.go
│ │ │ ├── connect
│ │ │ │ ├── resolver.go
│ │ │ │ ├── service.go
│ │ │ │ ├── testing.go
│ │ │ │ └── tls.go
│ │ │ ├── ipaddr
│ │ │ │ ├── detect.go
│ │ │ │ └── ipaddr.go
│ │ │ ├── lib
│ │ │ │ ├── cluster.go
│ │ │ │ ├── decode
│ │ │ │ │ └── decode.go
│ │ │ │ ├── eof.go
│ │ │ │ ├── json.go
│ │ │ │ ├── map_walker.go
│ │ │ │ ├── math.go
│ │ │ │ ├── path.go
│ │ │ │ ├── rand.go
│ │ │ │ ├── retry.go
│ │ │ │ ├── rtt.go
│ │ │ │ ├── serf.go
│ │ │ │ ├── stop_context.go
│ │ │ │ ├── stringslice
│ │ │ │ │ └── stringslice.go
│ │ │ │ ├── telemetry.go
│ │ │ │ ├── testing_httpserver.go
│ │ │ │ ├── translate.go
│ │ │ │ ├── useragent.go
│ │ │ │ └── uuid.go
│ │ │ ├── logging
│ │ │ │ ├── gated_writer.go
│ │ │ │ ├── grpc.go
│ │ │ │ ├── log_levels.go
│ │ │ │ ├── logfile.go
│ │ │ │ ├── logger.go
│ │ │ │ ├── names.go
│ │ │ │ └── syslog.go
│ │ │ ├── sdk
│ │ │ │ ├── LICENSE
│ │ │ │ └── freeport
│ │ │ │ │ ├── ephemeral_darwin.go
│ │ │ │ │ ├── ephemeral_fallback.go
│ │ │ │ │ ├── ephemeral_linux.go
│ │ │ │ │ ├── freeport.go
│ │ │ │ │ ├── systemlimit.go
│ │ │ │ │ └── systemlimit_windows.go
│ │ │ ├── types
│ │ │ │ ├── README.md
│ │ │ │ ├── area.go
│ │ │ │ ├── checks.go
│ │ │ │ └── node_id.go
│ │ │ └── version
│ │ │ │ └── version.go
│ │ ├── errwrap
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── errwrap.go
│ │ │ └── go.mod
│ │ ├── go-cleanhttp
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── cleanhttp.go
│ │ │ ├── doc.go
│ │ │ ├── go.mod
│ │ │ └── handlers.go
│ │ ├── go-hclog
│ │ │ ├── .gitignore
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── colorize_unix.go
│ │ │ ├── colorize_windows.go
│ │ │ ├── context.go
│ │ │ ├── global.go
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── interceptlogger.go
│ │ │ ├── intlogger.go
│ │ │ ├── logger.go
│ │ │ ├── nulllogger.go
│ │ │ ├── stacktrace.go
│ │ │ ├── stdlog.go
│ │ │ └── writer.go
│ │ ├── go-immutable-radix
│ │ │ ├── .gitignore
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── edges.go
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── iradix.go
│ │ │ ├── iter.go
│ │ │ ├── node.go
│ │ │ └── raw_iter.go
│ │ ├── go-msgpack
│ │ │ ├── LICENSE
│ │ │ └── codec
│ │ │ │ ├── 0doc.go
│ │ │ │ ├── README.md
│ │ │ │ ├── binc.go
│ │ │ │ ├── decode.go
│ │ │ │ ├── encode.go
│ │ │ │ ├── helper.go
│ │ │ │ ├── helper_internal.go
│ │ │ │ ├── msgpack.go
│ │ │ │ ├── msgpack_test.py
│ │ │ │ ├── rpc.go
│ │ │ │ ├── simple.go
│ │ │ │ └── time.go
│ │ ├── go-multierror
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── append.go
│ │ │ ├── flatten.go
│ │ │ ├── format.go
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── group.go
│ │ │ ├── multierror.go
│ │ │ ├── prefix.go
│ │ │ └── sort.go
│ │ ├── go-retryablehttp
│ │ │ ├── .gitignore
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── client.go
│ │ │ ├── go.mod
│ │ │ └── go.sum
│ │ ├── go-rootcerts
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── doc.go
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── rootcerts.go
│ │ │ ├── rootcerts_base.go
│ │ │ └── rootcerts_darwin.go
│ │ ├── go-sockaddr
│ │ │ ├── .gitignore
│ │ │ ├── GNUmakefile
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── doc.go
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── ifaddr.go
│ │ │ ├── ifaddrs.go
│ │ │ ├── ifattr.go
│ │ │ ├── ipaddr.go
│ │ │ ├── ipaddrs.go
│ │ │ ├── ipv4addr.go
│ │ │ ├── ipv6addr.go
│ │ │ ├── rfc.go
│ │ │ ├── route_info.go
│ │ │ ├── route_info_android.go
│ │ │ ├── route_info_bsd.go
│ │ │ ├── route_info_default.go
│ │ │ ├── route_info_linux.go
│ │ │ ├── route_info_solaris.go
│ │ │ ├── route_info_windows.go
│ │ │ ├── sockaddr.go
│ │ │ ├── sockaddrs.go
│ │ │ └── unixsock.go
│ │ ├── go-syslog
│ │ │ ├── .gitignore
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── builtin.go
│ │ │ ├── go.mod
│ │ │ ├── syslog.go
│ │ │ ├── unix.go
│ │ │ └── unsupported.go
│ │ ├── go-uuid
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── go.mod
│ │ │ └── uuid.go
│ │ ├── go-version
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── constraint.go
│ │ │ ├── go.mod
│ │ │ ├── version.go
│ │ │ └── version_collection.go
│ │ ├── golang-lru
│ │ │ ├── .gitignore
│ │ │ ├── 2q.go
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── arc.go
│ │ │ ├── doc.go
│ │ │ ├── go.mod
│ │ │ ├── lru.go
│ │ │ └── simplelru
│ │ │ │ ├── lru.go
│ │ │ │ └── lru_interface.go
│ │ ├── hcl
│ │ │ ├── .gitignore
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── appveyor.yml
│ │ │ ├── decoder.go
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── hcl.go
│ │ │ ├── hcl
│ │ │ │ ├── ast
│ │ │ │ │ ├── ast.go
│ │ │ │ │ └── walk.go
│ │ │ │ ├── parser
│ │ │ │ │ ├── error.go
│ │ │ │ │ └── parser.go
│ │ │ │ ├── printer
│ │ │ │ │ ├── nodes.go
│ │ │ │ │ └── printer.go
│ │ │ │ ├── scanner
│ │ │ │ │ └── scanner.go
│ │ │ │ ├── strconv
│ │ │ │ │ └── quote.go
│ │ │ │ └── token
│ │ │ │ │ ├── position.go
│ │ │ │ │ └── token.go
│ │ │ ├── json
│ │ │ │ ├── parser
│ │ │ │ │ ├── flatten.go
│ │ │ │ │ └── parser.go
│ │ │ │ ├── scanner
│ │ │ │ │ └── scanner.go
│ │ │ │ └── token
│ │ │ │ │ ├── position.go
│ │ │ │ │ └── token.go
│ │ │ ├── lex.go
│ │ │ └── parse.go
│ │ ├── memberlist
│ │ │ ├── .gitignore
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── alive_delegate.go
│ │ │ ├── awareness.go
│ │ │ ├── broadcast.go
│ │ │ ├── config.go
│ │ │ ├── conflict_delegate.go
│ │ │ ├── delegate.go
│ │ │ ├── event_delegate.go
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── keyring.go
│ │ │ ├── logging.go
│ │ │ ├── memberlist.go
│ │ │ ├── merge_delegate.go
│ │ │ ├── mock_transport.go
│ │ │ ├── net.go
│ │ │ ├── net_transport.go
│ │ │ ├── ping_delegate.go
│ │ │ ├── queue.go
│ │ │ ├── security.go
│ │ │ ├── state.go
│ │ │ ├── suspicion.go
│ │ │ ├── tag.sh
│ │ │ ├── todo.md
│ │ │ ├── transport.go
│ │ │ └── util.go
│ │ ├── raft
│ │ │ ├── .gitignore
│ │ │ ├── .golangci-lint.yml
│ │ │ ├── .travis.yml
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── api.go
│ │ │ ├── commands.go
│ │ │ ├── commitment.go
│ │ │ ├── config.go
│ │ │ ├── configuration.go
│ │ │ ├── discard_snapshot.go
│ │ │ ├── file_snapshot.go
│ │ │ ├── fsm.go
│ │ │ ├── future.go
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── inmem_snapshot.go
│ │ │ ├── inmem_store.go
│ │ │ ├── inmem_transport.go
│ │ │ ├── log.go
│ │ │ ├── log_cache.go
│ │ │ ├── membership.md
│ │ │ ├── net_transport.go
│ │ │ ├── observer.go
│ │ │ ├── peersjson.go
│ │ │ ├── raft.go
│ │ │ ├── replication.go
│ │ │ ├── snapshot.go
│ │ │ ├── stable.go
│ │ │ ├── state.go
│ │ │ ├── tag.sh
│ │ │ ├── tcp_transport.go
│ │ │ ├── testing.go
│ │ │ ├── testing_batch.go
│ │ │ ├── transport.go
│ │ │ └── util.go
│ │ ├── serf
│ │ │ ├── LICENSE
│ │ │ ├── coordinate
│ │ │ │ ├── client.go
│ │ │ │ ├── config.go
│ │ │ │ ├── coordinate.go
│ │ │ │ └── phantom.go
│ │ │ └── serf
│ │ │ │ ├── broadcast.go
│ │ │ │ ├── coalesce.go
│ │ │ │ ├── coalesce_member.go
│ │ │ │ ├── coalesce_user.go
│ │ │ │ ├── config.go
│ │ │ │ ├── conflict_delegate.go
│ │ │ │ ├── delegate.go
│ │ │ │ ├── event.go
│ │ │ │ ├── event_delegate.go
│ │ │ │ ├── internal_query.go
│ │ │ │ ├── keymanager.go
│ │ │ │ ├── lamport.go
│ │ │ │ ├── merge_delegate.go
│ │ │ │ ├── messages.go
│ │ │ │ ├── ping_delegate.go
│ │ │ │ ├── query.go
│ │ │ │ ├── serf.go
│ │ │ │ └── snapshot.go
│ │ └── yamux
│ │ │ ├── .gitignore
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── addr.go
│ │ │ ├── const.go
│ │ │ ├── go.mod
│ │ │ ├── mux.go
│ │ │ ├── session.go
│ │ │ ├── spec.md
│ │ │ ├── stream.go
│ │ │ └── util.go
│ ├── mattn
│ │ ├── go-colorable
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── colorable_appengine.go
│ │ │ ├── colorable_others.go
│ │ │ ├── colorable_windows.go
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── go.test.sh
│ │ │ └── noncolorable.go
│ │ └── go-isatty
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── doc.go
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── go.test.sh
│ │ │ ├── isatty_bsd.go
│ │ │ ├── isatty_others.go
│ │ │ ├── isatty_plan9.go
│ │ │ ├── isatty_solaris.go
│ │ │ ├── isatty_tcgets.go
│ │ │ ├── isatty_windows.go
│ │ │ └── renovate.json
│ ├── matttproud
│ │ └── golang_protobuf_extensions
│ │ │ ├── LICENSE
│ │ │ ├── NOTICE
│ │ │ └── pbutil
│ │ │ ├── .gitignore
│ │ │ ├── Makefile
│ │ │ ├── decode.go
│ │ │ ├── doc.go
│ │ │ └── encode.go
│ ├── miekg
│ │ └── dns
│ │ │ ├── .codecov.yml
│ │ │ ├── .gitignore
│ │ │ ├── .travis.yml
│ │ │ ├── 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
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── labels.go
│ │ │ ├── listen_go111.go
│ │ │ ├── listen_go_not111.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
│ │ │ ├── singleinflight.go
│ │ │ ├── smimea.go
│ │ │ ├── tlsa.go
│ │ │ ├── tsig.go
│ │ │ ├── types.go
│ │ │ ├── udp.go
│ │ │ ├── udp_windows.go
│ │ │ ├── update.go
│ │ │ ├── version.go
│ │ │ ├── xfr.go
│ │ │ ├── zduplicate.go
│ │ │ ├── zmsg.go
│ │ │ └── ztypes.go
│ ├── mitchellh
│ │ ├── copystructure
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── copier_time.go
│ │ │ ├── copystructure.go
│ │ │ ├── go.mod
│ │ │ └── go.sum
│ │ ├── go-homedir
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── go.mod
│ │ │ └── homedir.go
│ │ ├── go-testing-interface
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── go.mod
│ │ │ └── testing.go
│ │ ├── hashstructure
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── hashstructure.go
│ │ │ └── include.go
│ │ ├── mapstructure
│ │ │ ├── .travis.yml
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── decode_hooks.go
│ │ │ ├── error.go
│ │ │ ├── go.mod
│ │ │ └── mapstructure.go
│ │ └── reflectwalk
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── go.mod
│ │ │ ├── location.go
│ │ │ ├── location_string.go
│ │ │ └── reflectwalk.go
│ ├── pkg
│ │ └── errors
│ │ │ ├── .gitignore
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── appveyor.yml
│ │ │ ├── errors.go
│ │ │ └── stack.go
│ ├── pmezard
│ │ └── go-difflib
│ │ │ ├── LICENSE
│ │ │ └── difflib
│ │ │ └── difflib.go
│ ├── prometheus
│ │ ├── client_golang
│ │ │ ├── LICENSE
│ │ │ ├── NOTICE
│ │ │ └── prometheus
│ │ │ │ ├── .gitignore
│ │ │ │ ├── README.md
│ │ │ │ ├── build_info.go
│ │ │ │ ├── build_info_pre_1.12.go
│ │ │ │ ├── collector.go
│ │ │ │ ├── counter.go
│ │ │ │ ├── desc.go
│ │ │ │ ├── doc.go
│ │ │ │ ├── expvar_collector.go
│ │ │ │ ├── fnv.go
│ │ │ │ ├── gauge.go
│ │ │ │ ├── go_collector.go
│ │ │ │ ├── histogram.go
│ │ │ │ ├── internal
│ │ │ │ └── metric.go
│ │ │ │ ├── labels.go
│ │ │ │ ├── metric.go
│ │ │ │ ├── observer.go
│ │ │ │ ├── process_collector.go
│ │ │ │ ├── process_collector_other.go
│ │ │ │ ├── process_collector_windows.go
│ │ │ │ ├── push
│ │ │ │ └── push.go
│ │ │ │ ├── registry.go
│ │ │ │ ├── summary.go
│ │ │ │ ├── timer.go
│ │ │ │ ├── untyped.go
│ │ │ │ ├── value.go
│ │ │ │ ├── vec.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
│ │ │ ├── internal
│ │ │ │ └── bitbucket.org
│ │ │ │ │ └── ww
│ │ │ │ │ └── goautoneg
│ │ │ │ │ ├── README.txt
│ │ │ │ │ └── autoneg.go
│ │ │ └── model
│ │ │ │ ├── alert.go
│ │ │ │ ├── fingerprinting.go
│ │ │ │ ├── fnv.go
│ │ │ │ ├── labels.go
│ │ │ │ ├── labelset.go
│ │ │ │ ├── metric.go
│ │ │ │ ├── model.go
│ │ │ │ ├── signature.go
│ │ │ │ ├── silence.go
│ │ │ │ ├── time.go
│ │ │ │ └── value.go
│ │ └── procfs
│ │ │ ├── .gitignore
│ │ │ ├── .golangci.yml
│ │ │ ├── CONTRIBUTING.md
│ │ │ ├── LICENSE
│ │ │ ├── MAINTAINERS.md
│ │ │ ├── Makefile
│ │ │ ├── Makefile.common
│ │ │ ├── NOTICE
│ │ │ ├── README.md
│ │ │ ├── arp.go
│ │ │ ├── buddyinfo.go
│ │ │ ├── cpuinfo.go
│ │ │ ├── crypto.go
│ │ │ ├── doc.go
│ │ │ ├── fixtures.ttar
│ │ │ ├── fs.go
│ │ │ ├── go.mod
│ │ │ ├── go.sum
│ │ │ ├── internal
│ │ │ ├── fs
│ │ │ │ └── fs.go
│ │ │ └── util
│ │ │ │ ├── parse.go
│ │ │ │ ├── readfile.go
│ │ │ │ ├── sysreadfile.go
│ │ │ │ ├── sysreadfile_compat.go
│ │ │ │ └── valueparser.go
│ │ │ ├── ipvs.go
│ │ │ ├── mdstat.go
│ │ │ ├── meminfo.go
│ │ │ ├── mountinfo.go
│ │ │ ├── mountstats.go
│ │ │ ├── net_dev.go
│ │ │ ├── net_sockstat.go
│ │ │ ├── net_softnet.go
│ │ │ ├── net_unix.go
│ │ │ ├── proc.go
│ │ │ ├── proc_environ.go
│ │ │ ├── proc_fdinfo.go
│ │ │ ├── proc_io.go
│ │ │ ├── proc_limits.go
│ │ │ ├── proc_ns.go
│ │ │ ├── proc_psi.go
│ │ │ ├── proc_stat.go
│ │ │ ├── proc_status.go
│ │ │ ├── schedstat.go
│ │ │ ├── stat.go
│ │ │ ├── ttar
│ │ │ ├── vm.go
│ │ │ ├── xfrm.go
│ │ │ └── zoneinfo.go
│ ├── russross
│ │ └── blackfriday
│ │ │ └── v2
│ │ │ ├── .gitignore
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE.txt
│ │ │ ├── README.md
│ │ │ ├── block.go
│ │ │ ├── doc.go
│ │ │ ├── esc.go
│ │ │ ├── go.mod
│ │ │ ├── html.go
│ │ │ ├── inline.go
│ │ │ ├── markdown.go
│ │ │ ├── node.go
│ │ │ └── smartypants.go
│ ├── sean-
│ │ └── seed
│ │ │ ├── .gitignore
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ └── init.go
│ ├── shurcooL
│ │ └── sanitized_anchor_name
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── go.mod
│ │ │ └── main.go
│ ├── stretchr
│ │ ├── objx
│ │ │ ├── .codeclimate.yml
│ │ │ ├── .gitignore
│ │ │ ├── .travis.yml
│ │ │ ├── Gopkg.lock
│ │ │ ├── Gopkg.toml
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── Taskfile.yml
│ │ │ ├── accessors.go
│ │ │ ├── constants.go
│ │ │ ├── conversions.go
│ │ │ ├── doc.go
│ │ │ ├── map.go
│ │ │ ├── mutations.go
│ │ │ ├── security.go
│ │ │ ├── tests.go
│ │ │ ├── type_specific_codegen.go
│ │ │ └── value.go
│ │ └── testify
│ │ │ ├── LICENSE
│ │ │ ├── assert
│ │ │ ├── assertion_compare.go
│ │ │ ├── assertion_format.go
│ │ │ ├── assertion_format.go.tmpl
│ │ │ ├── assertion_forward.go
│ │ │ ├── assertion_forward.go.tmpl
│ │ │ ├── assertions.go
│ │ │ ├── doc.go
│ │ │ ├── errors.go
│ │ │ ├── forward_assertions.go
│ │ │ └── http_assertions.go
│ │ │ ├── mock
│ │ │ ├── doc.go
│ │ │ └── mock.go
│ │ │ └── require
│ │ │ ├── doc.go
│ │ │ ├── forward_requirements.go
│ │ │ ├── require.go
│ │ │ ├── require.go.tmpl
│ │ │ ├── require_forward.go
│ │ │ ├── require_forward.go.tmpl
│ │ │ └── requirements.go
│ ├── tv42
│ │ └── httpunix
│ │ │ ├── .gitignore
│ │ │ ├── LICENSE
│ │ │ └── httpunix.go
│ └── urfave
│ │ └── cli
│ │ └── v2
│ │ ├── .flake8
│ │ ├── .gitignore
│ │ ├── CODE_OF_CONDUCT.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── app.go
│ │ ├── args.go
│ │ ├── category.go
│ │ ├── cli.go
│ │ ├── command.go
│ │ ├── context.go
│ │ ├── docs.go
│ │ ├── errors.go
│ │ ├── fish.go
│ │ ├── flag.go
│ │ ├── flag_bool.go
│ │ ├── flag_duration.go
│ │ ├── flag_float64.go
│ │ ├── flag_float64_slice.go
│ │ ├── flag_generic.go
│ │ ├── flag_int.go
│ │ ├── flag_int64.go
│ │ ├── flag_int64_slice.go
│ │ ├── flag_int_slice.go
│ │ ├── flag_path.go
│ │ ├── flag_string.go
│ │ ├── flag_string_slice.go
│ │ ├── flag_timestamp.go
│ │ ├── flag_uint.go
│ │ ├── flag_uint64.go
│ │ ├── funcs.go
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── help.go
│ │ ├── parse.go
│ │ ├── sort.go
│ │ └── template.go
├── go.opentelemetry.io
│ └── otel
│ │ ├── .gitignore
│ │ ├── .gitmodules
│ │ ├── .golangci.yml
│ │ ├── CHANGELOG.md
│ │ ├── CODEOWNERS
│ │ ├── CONTRIBUTING.md
│ │ ├── LICENSE
│ │ ├── Makefile
│ │ ├── Makefile.proto
│ │ ├── README.md
│ │ ├── RELEASING.md
│ │ ├── api
│ │ ├── global
│ │ │ ├── doc.go
│ │ │ ├── handler.go
│ │ │ ├── internal
│ │ │ │ ├── meter.go
│ │ │ │ ├── state.go
│ │ │ │ └── trace.go
│ │ │ ├── metric.go
│ │ │ ├── propagation.go
│ │ │ └── trace.go
│ │ ├── metric
│ │ │ ├── async.go
│ │ │ ├── config.go
│ │ │ ├── counter.go
│ │ │ ├── descriptor.go
│ │ │ ├── doc.go
│ │ │ ├── kind.go
│ │ │ ├── kind_string.go
│ │ │ ├── meter.go
│ │ │ ├── must.go
│ │ │ ├── noop.go
│ │ │ ├── number.go
│ │ │ ├── numberkind_string.go
│ │ │ ├── observer.go
│ │ │ ├── registry
│ │ │ │ └── registry.go
│ │ │ ├── sdkapi.go
│ │ │ ├── sync.go
│ │ │ ├── updowncounter.go
│ │ │ └── valuerecorder.go
│ │ └── trace
│ │ │ ├── api.go
│ │ │ ├── context.go
│ │ │ ├── doc.go
│ │ │ ├── noop_span.go
│ │ │ ├── noop_trace.go
│ │ │ ├── noop_trace_provider.go
│ │ │ └── span_context.go
│ │ ├── baggage.go
│ │ ├── codes
│ │ └── codes.go
│ │ ├── doc.go
│ │ ├── get_main_pkgs.sh
│ │ ├── go.mod
│ │ ├── go.sum
│ │ ├── internal
│ │ ├── baggage
│ │ │ └── baggage.go
│ │ ├── rawhelpers.go
│ │ └── trace
│ │ │ └── noop
│ │ │ └── noop.go
│ │ ├── label
│ │ ├── doc.go
│ │ ├── encoder.go
│ │ ├── iterator.go
│ │ ├── key.go
│ │ ├── kv.go
│ │ ├── set.go
│ │ ├── type_string.go
│ │ └── value.go
│ │ ├── otel.go
│ │ ├── pre_release.sh
│ │ ├── propagation.go
│ │ ├── tag.sh
│ │ ├── unit
│ │ ├── doc.go
│ │ └── unit.go
│ │ └── verify_examples.sh
├── golang.org
│ └── x
│ │ ├── crypto
│ │ ├── AUTHORS
│ │ ├── CONTRIBUTORS
│ │ ├── LICENSE
│ │ ├── PATENTS
│ │ ├── blake2b
│ │ │ ├── blake2b.go
│ │ │ ├── blake2bAVX2_amd64.go
│ │ │ ├── blake2bAVX2_amd64.s
│ │ │ ├── blake2b_amd64.go
│ │ │ ├── blake2b_amd64.s
│ │ │ ├── blake2b_generic.go
│ │ │ ├── blake2b_ref.go
│ │ │ ├── blake2x.go
│ │ │ └── register.go
│ │ └── ed25519
│ │ │ ├── ed25519.go
│ │ │ ├── ed25519_go113.go
│ │ │ └── internal
│ │ │ └── edwards25519
│ │ │ ├── const.go
│ │ │ └── edwards25519.go
│ │ ├── net
│ │ ├── AUTHORS
│ │ ├── CONTRIBUTORS
│ │ ├── LICENSE
│ │ ├── PATENTS
│ │ ├── bpf
│ │ │ ├── asm.go
│ │ │ ├── constants.go
│ │ │ ├── doc.go
│ │ │ ├── instructions.go
│ │ │ ├── setter.go
│ │ │ ├── vm.go
│ │ │ └── vm_instructions.go
│ │ ├── http
│ │ │ └── httpguts
│ │ │ │ ├── guts.go
│ │ │ │ └── httplex.go
│ │ ├── http2
│ │ │ ├── .gitignore
│ │ │ ├── Dockerfile
│ │ │ ├── Makefile
│ │ │ ├── README
│ │ │ ├── ciphers.go
│ │ │ ├── client_conn_pool.go
│ │ │ ├── databuffer.go
│ │ │ ├── errors.go
│ │ │ ├── flow.go
│ │ │ ├── frame.go
│ │ │ ├── go111.go
│ │ │ ├── gotrack.go
│ │ │ ├── headermap.go
│ │ │ ├── hpack
│ │ │ │ ├── encode.go
│ │ │ │ ├── hpack.go
│ │ │ │ ├── huffman.go
│ │ │ │ └── tables.go
│ │ │ ├── http2.go
│ │ │ ├── not_go111.go
│ │ │ ├── pipe.go
│ │ │ ├── server.go
│ │ │ ├── transport.go
│ │ │ ├── write.go
│ │ │ ├── writesched.go
│ │ │ ├── writesched_priority.go
│ │ │ └── writesched_random.go
│ │ ├── idna
│ │ │ ├── idna10.0.0.go
│ │ │ ├── idna9.0.0.go
│ │ │ ├── punycode.go
│ │ │ ├── tables10.0.0.go
│ │ │ ├── tables11.0.0.go
│ │ │ ├── tables12.00.go
│ │ │ ├── tables9.0.0.go
│ │ │ ├── trie.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
│ │ │ │ ├── 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
│ │ │ │ ├── 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_linkname.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_mips.go
│ │ │ │ ├── sys_linux_mips64.go
│ │ │ │ ├── sys_linux_mips64le.go
│ │ │ │ ├── sys_linux_mipsle.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_solaris.go
│ │ │ │ ├── sys_solaris_amd64.s
│ │ │ │ ├── sys_stub.go
│ │ │ │ ├── sys_unix.go
│ │ │ │ ├── sys_windows.go
│ │ │ │ ├── zsys_aix_ppc64.go
│ │ │ │ ├── zsys_darwin_386.go
│ │ │ │ ├── zsys_darwin_amd64.go
│ │ │ │ ├── zsys_darwin_arm.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_linux_386.go
│ │ │ │ ├── zsys_linux_amd64.go
│ │ │ │ ├── zsys_linux_arm.go
│ │ │ │ ├── zsys_linux_arm64.go
│ │ │ │ ├── zsys_linux_mips.go
│ │ │ │ ├── zsys_linux_mips64.go
│ │ │ │ ├── zsys_linux_mips64le.go
│ │ │ │ ├── zsys_linux_mipsle.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_solaris_amd64.go
│ │ ├── ipv4
│ │ │ ├── batch.go
│ │ │ ├── control.go
│ │ │ ├── control_bsd.go
│ │ │ ├── control_pktinfo.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_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
│ │ │ ├── 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_linux_386.go
│ │ │ ├── zsys_linux_amd64.go
│ │ │ ├── zsys_linux_arm.go
│ │ │ ├── zsys_linux_arm64.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
│ │ └── 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
│ │ │ ├── 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
│ │ │ ├── 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_linux_386.go
│ │ │ ├── zsys_linux_amd64.go
│ │ │ ├── zsys_linux_arm.go
│ │ │ ├── zsys_linux_arm64.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
│ │ ├── sys
│ │ ├── AUTHORS
│ │ ├── CONTRIBUTORS
│ │ ├── LICENSE
│ │ ├── PATENTS
│ │ ├── cpu
│ │ │ ├── asm_aix_ppc64.s
│ │ │ ├── byteorder.go
│ │ │ ├── cpu.go
│ │ │ ├── cpu_aix.go
│ │ │ ├── cpu_arm.go
│ │ │ ├── cpu_arm64.go
│ │ │ ├── cpu_arm64.s
│ │ │ ├── cpu_gc_arm64.go
│ │ │ ├── cpu_gc_s390x.go
│ │ │ ├── cpu_gc_x86.go
│ │ │ ├── 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_mips64x.go
│ │ │ ├── cpu_linux_noinit.go
│ │ │ ├── cpu_linux_ppc64x.go
│ │ │ ├── cpu_linux_s390x.go
│ │ │ ├── cpu_mips64x.go
│ │ │ ├── cpu_mipsx.go
│ │ │ ├── cpu_other_arm.go
│ │ │ ├── cpu_other_arm64.go
│ │ │ ├── cpu_ppc64x.go
│ │ │ ├── cpu_riscv64.go
│ │ │ ├── cpu_s390x.go
│ │ │ ├── cpu_s390x.s
│ │ │ ├── cpu_wasm.go
│ │ │ ├── cpu_x86.go
│ │ │ ├── cpu_x86.s
│ │ │ ├── hwcap_linux.go
│ │ │ ├── syscall_aix_gccgo.go
│ │ │ └── syscall_aix_ppc64_gc.go
│ │ ├── internal
│ │ │ └── unsafeheader
│ │ │ │ └── unsafeheader.go
│ │ ├── unix
│ │ │ ├── .gitignore
│ │ │ ├── README.md
│ │ │ ├── affinity_linux.go
│ │ │ ├── aliases.go
│ │ │ ├── asm_aix_ppc64.s
│ │ │ ├── asm_darwin_386.s
│ │ │ ├── asm_darwin_amd64.s
│ │ │ ├── asm_darwin_arm.s
│ │ │ ├── asm_darwin_arm64.s
│ │ │ ├── asm_dragonfly_amd64.s
│ │ │ ├── asm_freebsd_386.s
│ │ │ ├── asm_freebsd_amd64.s
│ │ │ ├── asm_freebsd_arm.s
│ │ │ ├── asm_freebsd_arm64.s
│ │ │ ├── asm_linux_386.s
│ │ │ ├── asm_linux_amd64.s
│ │ │ ├── asm_linux_arm.s
│ │ │ ├── asm_linux_arm64.s
│ │ │ ├── asm_linux_mips64x.s
│ │ │ ├── asm_linux_mipsx.s
│ │ │ ├── asm_linux_ppc64x.s
│ │ │ ├── asm_linux_riscv64.s
│ │ │ ├── asm_linux_s390x.s
│ │ │ ├── asm_netbsd_386.s
│ │ │ ├── asm_netbsd_amd64.s
│ │ │ ├── asm_netbsd_arm.s
│ │ │ ├── asm_netbsd_arm64.s
│ │ │ ├── asm_openbsd_386.s
│ │ │ ├── asm_openbsd_amd64.s
│ │ │ ├── asm_openbsd_arm.s
│ │ │ ├── asm_openbsd_arm64.s
│ │ │ ├── asm_openbsd_mips64.s
│ │ │ ├── asm_solaris_amd64.s
│ │ │ ├── bluetooth_linux.go
│ │ │ ├── cap_freebsd.go
│ │ │ ├── constants.go
│ │ │ ├── dev_aix_ppc.go
│ │ │ ├── dev_aix_ppc64.go
│ │ │ ├── dev_darwin.go
│ │ │ ├── dev_dragonfly.go
│ │ │ ├── dev_freebsd.go
│ │ │ ├── dev_linux.go
│ │ │ ├── dev_netbsd.go
│ │ │ ├── dev_openbsd.go
│ │ │ ├── dirent.go
│ │ │ ├── endian_big.go
│ │ │ ├── endian_little.go
│ │ │ ├── env_unix.go
│ │ │ ├── errors_freebsd_386.go
│ │ │ ├── errors_freebsd_amd64.go
│ │ │ ├── errors_freebsd_arm.go
│ │ │ ├── errors_freebsd_arm64.go
│ │ │ ├── fcntl.go
│ │ │ ├── fcntl_darwin.go
│ │ │ ├── fcntl_linux_32bit.go
│ │ │ ├── fdset.go
│ │ │ ├── gccgo.go
│ │ │ ├── gccgo_c.c
│ │ │ ├── gccgo_linux_amd64.go
│ │ │ ├── ioctl.go
│ │ │ ├── mkall.sh
│ │ │ ├── mkerrors.sh
│ │ │ ├── pagesize_unix.go
│ │ │ ├── pledge_openbsd.go
│ │ │ ├── race.go
│ │ │ ├── race0.go
│ │ │ ├── readdirent_getdents.go
│ │ │ ├── readdirent_getdirentries.go
│ │ │ ├── sockcmsg_dragonfly.go
│ │ │ ├── sockcmsg_linux.go
│ │ │ ├── sockcmsg_unix.go
│ │ │ ├── sockcmsg_unix_other.go
│ │ │ ├── str.go
│ │ │ ├── syscall.go
│ │ │ ├── syscall_aix.go
│ │ │ ├── syscall_aix_ppc.go
│ │ │ ├── syscall_aix_ppc64.go
│ │ │ ├── syscall_bsd.go
│ │ │ ├── syscall_darwin.1_12.go
│ │ │ ├── syscall_darwin.1_13.go
│ │ │ ├── syscall_darwin.go
│ │ │ ├── syscall_darwin_386.go
│ │ │ ├── syscall_darwin_amd64.go
│ │ │ ├── syscall_darwin_arm.go
│ │ │ ├── syscall_darwin_arm64.go
│ │ │ ├── syscall_darwin_libSystem.go
│ │ │ ├── syscall_dragonfly.go
│ │ │ ├── syscall_dragonfly_amd64.go
│ │ │ ├── syscall_freebsd.go
│ │ │ ├── syscall_freebsd_386.go
│ │ │ ├── syscall_freebsd_amd64.go
│ │ │ ├── syscall_freebsd_arm.go
│ │ │ ├── syscall_freebsd_arm64.go
│ │ │ ├── syscall_illumos.go
│ │ │ ├── syscall_linux.go
│ │ │ ├── syscall_linux_386.go
│ │ │ ├── syscall_linux_amd64.go
│ │ │ ├── syscall_linux_amd64_gc.go
│ │ │ ├── syscall_linux_arm.go
│ │ │ ├── syscall_linux_arm64.go
│ │ │ ├── syscall_linux_gc.go
│ │ │ ├── syscall_linux_gc_386.go
│ │ │ ├── syscall_linux_gc_arm.go
│ │ │ ├── syscall_linux_gccgo_386.go
│ │ │ ├── syscall_linux_gccgo_arm.go
│ │ │ ├── syscall_linux_mips64x.go
│ │ │ ├── syscall_linux_mipsx.go
│ │ │ ├── syscall_linux_ppc64x.go
│ │ │ ├── syscall_linux_riscv64.go
│ │ │ ├── syscall_linux_s390x.go
│ │ │ ├── syscall_linux_sparc64.go
│ │ │ ├── syscall_netbsd.go
│ │ │ ├── syscall_netbsd_386.go
│ │ │ ├── syscall_netbsd_amd64.go
│ │ │ ├── syscall_netbsd_arm.go
│ │ │ ├── syscall_netbsd_arm64.go
│ │ │ ├── syscall_openbsd.go
│ │ │ ├── syscall_openbsd_386.go
│ │ │ ├── syscall_openbsd_amd64.go
│ │ │ ├── syscall_openbsd_arm.go
│ │ │ ├── syscall_openbsd_arm64.go
│ │ │ ├── syscall_openbsd_mips64.go
│ │ │ ├── syscall_solaris.go
│ │ │ ├── syscall_solaris_amd64.go
│ │ │ ├── syscall_unix.go
│ │ │ ├── syscall_unix_gc.go
│ │ │ ├── syscall_unix_gc_ppc64x.go
│ │ │ ├── timestruct.go
│ │ │ ├── unveil_openbsd.go
│ │ │ ├── xattr_bsd.go
│ │ │ ├── zerrors_aix_ppc.go
│ │ │ ├── zerrors_aix_ppc64.go
│ │ │ ├── zerrors_darwin_386.go
│ │ │ ├── zerrors_darwin_amd64.go
│ │ │ ├── zerrors_darwin_arm.go
│ │ │ ├── zerrors_darwin_arm64.go
│ │ │ ├── zerrors_dragonfly_amd64.go
│ │ │ ├── zerrors_freebsd_386.go
│ │ │ ├── zerrors_freebsd_amd64.go
│ │ │ ├── zerrors_freebsd_arm.go
│ │ │ ├── zerrors_freebsd_arm64.go
│ │ │ ├── zerrors_linux.go
│ │ │ ├── zerrors_linux_386.go
│ │ │ ├── zerrors_linux_amd64.go
│ │ │ ├── zerrors_linux_arm.go
│ │ │ ├── zerrors_linux_arm64.go
│ │ │ ├── zerrors_linux_mips.go
│ │ │ ├── zerrors_linux_mips64.go
│ │ │ ├── zerrors_linux_mips64le.go
│ │ │ ├── zerrors_linux_mipsle.go
│ │ │ ├── zerrors_linux_ppc64.go
│ │ │ ├── zerrors_linux_ppc64le.go
│ │ │ ├── zerrors_linux_riscv64.go
│ │ │ ├── zerrors_linux_s390x.go
│ │ │ ├── zerrors_linux_sparc64.go
│ │ │ ├── zerrors_netbsd_386.go
│ │ │ ├── zerrors_netbsd_amd64.go
│ │ │ ├── zerrors_netbsd_arm.go
│ │ │ ├── zerrors_netbsd_arm64.go
│ │ │ ├── zerrors_openbsd_386.go
│ │ │ ├── zerrors_openbsd_amd64.go
│ │ │ ├── zerrors_openbsd_arm.go
│ │ │ ├── zerrors_openbsd_arm64.go
│ │ │ ├── zerrors_openbsd_mips64.go
│ │ │ ├── zerrors_solaris_amd64.go
│ │ │ ├── zptrace_armnn_linux.go
│ │ │ ├── zptrace_linux_arm64.go
│ │ │ ├── zptrace_mipsnn_linux.go
│ │ │ ├── zptrace_mipsnnle_linux.go
│ │ │ ├── zptrace_x86_linux.go
│ │ │ ├── zsyscall_aix_ppc.go
│ │ │ ├── zsyscall_aix_ppc64.go
│ │ │ ├── zsyscall_aix_ppc64_gc.go
│ │ │ ├── zsyscall_aix_ppc64_gccgo.go
│ │ │ ├── zsyscall_darwin_386.1_13.go
│ │ │ ├── zsyscall_darwin_386.1_13.s
│ │ │ ├── zsyscall_darwin_386.go
│ │ │ ├── zsyscall_darwin_386.s
│ │ │ ├── zsyscall_darwin_amd64.1_13.go
│ │ │ ├── zsyscall_darwin_amd64.1_13.s
│ │ │ ├── zsyscall_darwin_amd64.go
│ │ │ ├── zsyscall_darwin_amd64.s
│ │ │ ├── zsyscall_darwin_arm.1_13.go
│ │ │ ├── zsyscall_darwin_arm.1_13.s
│ │ │ ├── zsyscall_darwin_arm.go
│ │ │ ├── zsyscall_darwin_arm.s
│ │ │ ├── zsyscall_darwin_arm64.1_13.go
│ │ │ ├── zsyscall_darwin_arm64.1_13.s
│ │ │ ├── zsyscall_darwin_arm64.go
│ │ │ ├── zsyscall_darwin_arm64.s
│ │ │ ├── zsyscall_dragonfly_amd64.go
│ │ │ ├── zsyscall_freebsd_386.go
│ │ │ ├── zsyscall_freebsd_amd64.go
│ │ │ ├── zsyscall_freebsd_arm.go
│ │ │ ├── zsyscall_freebsd_arm64.go
│ │ │ ├── zsyscall_illumos_amd64.go
│ │ │ ├── zsyscall_linux.go
│ │ │ ├── zsyscall_linux_386.go
│ │ │ ├── zsyscall_linux_amd64.go
│ │ │ ├── zsyscall_linux_arm.go
│ │ │ ├── zsyscall_linux_arm64.go
│ │ │ ├── zsyscall_linux_mips.go
│ │ │ ├── zsyscall_linux_mips64.go
│ │ │ ├── zsyscall_linux_mips64le.go
│ │ │ ├── zsyscall_linux_mipsle.go
│ │ │ ├── zsyscall_linux_ppc64.go
│ │ │ ├── zsyscall_linux_ppc64le.go
│ │ │ ├── zsyscall_linux_riscv64.go
│ │ │ ├── zsyscall_linux_s390x.go
│ │ │ ├── zsyscall_linux_sparc64.go
│ │ │ ├── zsyscall_netbsd_386.go
│ │ │ ├── zsyscall_netbsd_amd64.go
│ │ │ ├── zsyscall_netbsd_arm.go
│ │ │ ├── zsyscall_netbsd_arm64.go
│ │ │ ├── zsyscall_openbsd_386.go
│ │ │ ├── zsyscall_openbsd_amd64.go
│ │ │ ├── zsyscall_openbsd_arm.go
│ │ │ ├── zsyscall_openbsd_arm64.go
│ │ │ ├── zsyscall_openbsd_mips64.go
│ │ │ ├── zsyscall_solaris_amd64.go
│ │ │ ├── zsysctl_openbsd_386.go
│ │ │ ├── zsysctl_openbsd_amd64.go
│ │ │ ├── zsysctl_openbsd_arm.go
│ │ │ ├── zsysctl_openbsd_arm64.go
│ │ │ ├── zsysctl_openbsd_mips64.go
│ │ │ ├── zsysnum_dragonfly_amd64.go
│ │ │ ├── zsysnum_freebsd_386.go
│ │ │ ├── zsysnum_freebsd_amd64.go
│ │ │ ├── zsysnum_freebsd_arm.go
│ │ │ ├── zsysnum_freebsd_arm64.go
│ │ │ ├── zsysnum_linux_386.go
│ │ │ ├── zsysnum_linux_amd64.go
│ │ │ ├── zsysnum_linux_arm.go
│ │ │ ├── zsysnum_linux_arm64.go
│ │ │ ├── zsysnum_linux_mips.go
│ │ │ ├── zsysnum_linux_mips64.go
│ │ │ ├── zsysnum_linux_mips64le.go
│ │ │ ├── zsysnum_linux_mipsle.go
│ │ │ ├── zsysnum_linux_ppc64.go
│ │ │ ├── zsysnum_linux_ppc64le.go
│ │ │ ├── zsysnum_linux_riscv64.go
│ │ │ ├── zsysnum_linux_s390x.go
│ │ │ ├── zsysnum_linux_sparc64.go
│ │ │ ├── zsysnum_netbsd_386.go
│ │ │ ├── zsysnum_netbsd_amd64.go
│ │ │ ├── zsysnum_netbsd_arm.go
│ │ │ ├── zsysnum_netbsd_arm64.go
│ │ │ ├── zsysnum_openbsd_386.go
│ │ │ ├── zsysnum_openbsd_amd64.go
│ │ │ ├── zsysnum_openbsd_arm.go
│ │ │ ├── zsysnum_openbsd_arm64.go
│ │ │ ├── zsysnum_openbsd_mips64.go
│ │ │ ├── ztypes_aix_ppc.go
│ │ │ ├── ztypes_aix_ppc64.go
│ │ │ ├── ztypes_darwin_386.go
│ │ │ ├── ztypes_darwin_amd64.go
│ │ │ ├── ztypes_darwin_arm.go
│ │ │ ├── ztypes_darwin_arm64.go
│ │ │ ├── ztypes_dragonfly_amd64.go
│ │ │ ├── ztypes_freebsd_386.go
│ │ │ ├── ztypes_freebsd_amd64.go
│ │ │ ├── ztypes_freebsd_arm.go
│ │ │ ├── ztypes_freebsd_arm64.go
│ │ │ ├── ztypes_linux.go
│ │ │ ├── ztypes_linux_386.go
│ │ │ ├── ztypes_linux_amd64.go
│ │ │ ├── ztypes_linux_arm.go
│ │ │ ├── ztypes_linux_arm64.go
│ │ │ ├── ztypes_linux_mips.go
│ │ │ ├── ztypes_linux_mips64.go
│ │ │ ├── ztypes_linux_mips64le.go
│ │ │ ├── ztypes_linux_mipsle.go
│ │ │ ├── ztypes_linux_ppc64.go
│ │ │ ├── ztypes_linux_ppc64le.go
│ │ │ ├── ztypes_linux_riscv64.go
│ │ │ ├── ztypes_linux_s390x.go
│ │ │ ├── ztypes_linux_sparc64.go
│ │ │ ├── ztypes_netbsd_386.go
│ │ │ ├── ztypes_netbsd_amd64.go
│ │ │ ├── ztypes_netbsd_arm.go
│ │ │ ├── ztypes_netbsd_arm64.go
│ │ │ ├── ztypes_openbsd_386.go
│ │ │ ├── ztypes_openbsd_amd64.go
│ │ │ ├── ztypes_openbsd_arm.go
│ │ │ ├── ztypes_openbsd_arm64.go
│ │ │ ├── ztypes_openbsd_mips64.go
│ │ │ └── ztypes_solaris_amd64.go
│ │ └── windows
│ │ │ ├── aliases.go
│ │ │ ├── dll_windows.go
│ │ │ ├── empty.s
│ │ │ ├── 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
│ │ │ ├── str.go
│ │ │ ├── syscall.go
│ │ │ ├── syscall_windows.go
│ │ │ ├── types_windows.go
│ │ │ ├── types_windows_386.go
│ │ │ ├── types_windows_amd64.go
│ │ │ ├── types_windows_arm.go
│ │ │ ├── zerrors_windows.go
│ │ │ ├── zknownfolderids_windows.go
│ │ │ └── zsyscall_windows.go
│ │ ├── text
│ │ ├── AUTHORS
│ │ ├── CONTRIBUTORS
│ │ ├── LICENSE
│ │ ├── PATENTS
│ │ ├── secure
│ │ │ └── bidirule
│ │ │ │ ├── bidirule.go
│ │ │ │ ├── bidirule10.0.0.go
│ │ │ │ └── bidirule9.0.0.go
│ │ ├── transform
│ │ │ └── transform.go
│ │ └── unicode
│ │ │ ├── bidi
│ │ │ ├── bidi.go
│ │ │ ├── bracket.go
│ │ │ ├── core.go
│ │ │ ├── prop.go
│ │ │ ├── tables10.0.0.go
│ │ │ ├── tables11.0.0.go
│ │ │ ├── tables12.0.0.go
│ │ │ ├── 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
│ │ │ ├── tables9.0.0.go
│ │ │ ├── transform.go
│ │ │ └── trie.go
│ │ └── time
│ │ ├── AUTHORS
│ │ ├── CONTRIBUTORS
│ │ ├── LICENSE
│ │ ├── PATENTS
│ │ └── rate
│ │ └── rate.go
├── google.golang.org
│ └── protobuf
│ │ ├── AUTHORS
│ │ ├── CONTRIBUTORS
│ │ ├── LICENSE
│ │ ├── PATENTS
│ │ ├── encoding
│ │ ├── prototext
│ │ │ ├── decode.go
│ │ │ ├── doc.go
│ │ │ └── encode.go
│ │ └── protowire
│ │ │ └── wire.go
│ │ ├── internal
│ │ ├── descfmt
│ │ │ └── stringer.go
│ │ ├── descopts
│ │ │ └── options.go
│ │ ├── detrand
│ │ │ └── rand.go
│ │ ├── encoding
│ │ │ ├── defval
│ │ │ │ └── default.go
│ │ │ ├── messageset
│ │ │ │ └── messageset.go
│ │ │ ├── tag
│ │ │ │ └── tag.go
│ │ │ └── text
│ │ │ │ ├── decode.go
│ │ │ │ ├── decode_number.go
│ │ │ │ ├── decode_string.go
│ │ │ │ ├── decode_token.go
│ │ │ │ ├── doc.go
│ │ │ │ └── encode.go
│ │ ├── errors
│ │ │ ├── errors.go
│ │ │ ├── is_go112.go
│ │ │ └── is_go113.go
│ │ ├── fieldnum
│ │ │ ├── any_gen.go
│ │ │ ├── api_gen.go
│ │ │ ├── descriptor_gen.go
│ │ │ ├── doc.go
│ │ │ ├── duration_gen.go
│ │ │ ├── empty_gen.go
│ │ │ ├── field_mask_gen.go
│ │ │ ├── source_context_gen.go
│ │ │ ├── struct_gen.go
│ │ │ ├── timestamp_gen.go
│ │ │ ├── type_gen.go
│ │ │ └── wrappers_gen.go
│ │ ├── fieldsort
│ │ │ └── fieldsort.go
│ │ ├── filedesc
│ │ │ ├── build.go
│ │ │ ├── desc.go
│ │ │ ├── desc_init.go
│ │ │ ├── desc_lazy.go
│ │ │ ├── desc_list.go
│ │ │ ├── desc_list_gen.go
│ │ │ └── placeholder.go
│ │ ├── filetype
│ │ │ └── build.go
│ │ ├── flags
│ │ │ ├── flags.go
│ │ │ ├── proto_legacy_disable.go
│ │ │ └── proto_legacy_enable.go
│ │ ├── genname
│ │ │ └── name.go
│ │ ├── impl
│ │ │ ├── api_export.go
│ │ │ ├── checkinit.go
│ │ │ ├── codec_extension.go
│ │ │ ├── codec_field.go
│ │ │ ├── codec_gen.go
│ │ │ ├── codec_map.go
│ │ │ ├── codec_map_go111.go
│ │ │ ├── codec_map_go112.go
│ │ │ ├── codec_message.go
│ │ │ ├── codec_messageset.go
│ │ │ ├── codec_reflect.go
│ │ │ ├── codec_tables.go
│ │ │ ├── codec_unsafe.go
│ │ │ ├── convert.go
│ │ │ ├── convert_list.go
│ │ │ ├── convert_map.go
│ │ │ ├── decode.go
│ │ │ ├── encode.go
│ │ │ ├── enum.go
│ │ │ ├── extension.go
│ │ │ ├── legacy_enum.go
│ │ │ ├── legacy_export.go
│ │ │ ├── legacy_extension.go
│ │ │ ├── legacy_file.go
│ │ │ ├── legacy_message.go
│ │ │ ├── merge.go
│ │ │ ├── merge_gen.go
│ │ │ ├── message.go
│ │ │ ├── message_reflect.go
│ │ │ ├── message_reflect_field.go
│ │ │ ├── message_reflect_gen.go
│ │ │ ├── pointer_reflect.go
│ │ │ ├── pointer_unsafe.go
│ │ │ ├── validate.go
│ │ │ └── weak.go
│ │ ├── mapsort
│ │ │ └── mapsort.go
│ │ ├── pragma
│ │ │ └── pragma.go
│ │ ├── set
│ │ │ └── ints.go
│ │ ├── strs
│ │ │ ├── strings.go
│ │ │ ├── strings_pure.go
│ │ │ └── strings_unsafe.go
│ │ └── version
│ │ │ └── version.go
│ │ ├── proto
│ │ ├── checkinit.go
│ │ ├── decode.go
│ │ ├── decode_gen.go
│ │ ├── doc.go
│ │ ├── encode.go
│ │ ├── encode_gen.go
│ │ ├── equal.go
│ │ ├── extension.go
│ │ ├── merge.go
│ │ ├── messageset.go
│ │ ├── proto.go
│ │ ├── proto_methods.go
│ │ ├── proto_reflect.go
│ │ ├── reset.go
│ │ ├── size.go
│ │ ├── size_gen.go
│ │ └── wrappers.go
│ │ ├── reflect
│ │ ├── protoreflect
│ │ │ ├── methods.go
│ │ │ ├── proto.go
│ │ │ ├── source.go
│ │ │ ├── type.go
│ │ │ ├── value.go
│ │ │ ├── value_pure.go
│ │ │ ├── value_union.go
│ │ │ └── value_unsafe.go
│ │ └── protoregistry
│ │ │ └── registry.go
│ │ ├── runtime
│ │ ├── protoiface
│ │ │ ├── legacy.go
│ │ │ └── methods.go
│ │ └── protoimpl
│ │ │ ├── impl.go
│ │ │ └── version.go
│ │ └── types
│ │ └── known
│ │ ├── anypb
│ │ └── any.pb.go
│ │ ├── durationpb
│ │ └── duration.pb.go
│ │ └── timestamppb
│ │ └── timestamp.pb.go
├── gopkg.in
│ └── yaml.v3
│ │ ├── .travis.yml
│ │ ├── LICENSE
│ │ ├── NOTICE
│ │ ├── README.md
│ │ ├── apic.go
│ │ ├── decode.go
│ │ ├── emitterc.go
│ │ ├── encode.go
│ │ ├── go.mod
│ │ ├── parserc.go
│ │ ├── readerc.go
│ │ ├── resolve.go
│ │ ├── scannerc.go
│ │ ├── sorter.go
│ │ ├── writerc.go
│ │ ├── yaml.go
│ │ ├── yamlh.go
│ │ └── yamlprivateh.go
├── inet.af
│ └── tcpproxy
│ │ ├── .gitignore
│ │ ├── .travis.yml
│ │ ├── CONTRIBUTING.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── http.go
│ │ ├── listener.go
│ │ ├── sni.go
│ │ └── tcpproxy.go
└── modules.txt
└── version
└── version.go
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug Report
3 | about: Report a bug in tile38-cluster-manager
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Describe the bug**
11 | A clear and concise description of what the bug is.
12 |
13 | **To Reproduce**
14 | Steps to reproduce the behavior:
15 |
16 | **Expected behavior**
17 | A clear and concise description of what you expected to happen.
18 |
19 | **Logs**
20 | If applicable, provide logs, panics, system messages to help explain your problem.
21 |
22 | **Environment**
23 |
24 | - OS: [e.g. Linux / Windows / Mac OS]
25 | - Version [e.g. 0.2.1]
26 |
27 | and any other relevant information about the environment.
28 |
29 | **Additional context**
30 | Add any other context about the problem here.
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Is your feature request related to a problem? Please describe.**
11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when ...
12 |
13 | **Describe the solution you'd like**
14 | A clear and concise description of what you want to happen.
15 |
16 | **Describe alternatives you've considered**
17 | A clear and concise description of any alternative solutions or features you've considered.
18 |
19 | **Additional context**
20 | Add any other context or screenshots about the feature request here.
--------------------------------------------------------------------------------
/.github/workflows/test.yml:
--------------------------------------------------------------------------------
1 | name: Test
2 |
3 | on:
4 | push:
5 | branches: [ master ]
6 | pull_request:
7 | branches: [ master ]
8 |
9 | jobs:
10 | build:
11 | name: Build
12 | runs-on: ubuntu-latest
13 | steps:
14 | - name: Set up Go
15 | uses: actions/setup-go@v2
16 | with:
17 | go-version: ^1.15
18 |
19 | - name: Check out code
20 | uses: actions/checkout@v2
21 | with:
22 | fetch-depth: 0
23 |
24 | - name: Test
25 | run: make test build
26 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea
2 | /pkg
3 |
--------------------------------------------------------------------------------
/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM golang:1.15 as build
2 | ADD . /go/tile38-cluster-manager
3 | RUN make --directory /go/tile38-cluster-manager build
4 |
5 | FROM alpine:latest as cert
6 | RUN apk update && apk add ca-certificates
7 |
8 | FROM scratch
9 | COPY --from=cert /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
10 | COPY --from=build /go/tile38-cluster-manager/pkg/tile38-cluster-manager /tile38-cluster-manager
11 | ENTRYPOINT ["/tile38-cluster-manager"]
--------------------------------------------------------------------------------
/core/context.go:
--------------------------------------------------------------------------------
1 | package core
2 |
3 | import (
4 | "context"
5 | "sync"
6 | )
7 |
8 | func NewThreadContext(ctx context.Context) *Context {
9 | return &Context{
10 | wg: new(sync.WaitGroup),
11 | Context: ctx,
12 | }
13 | }
14 |
15 | // Context is used to synchronize how and when various event
16 | // loops shut down.
17 | type Context struct {
18 | wg *sync.WaitGroup
19 | context.Context
20 | }
21 |
22 | // Begin marks the beginning of an async event loop
23 | func (c *Context) Begin() {
24 | c.wg.Add(1)
25 | }
26 |
27 | // End marks the end of an async event loop
28 | func (c *Context) End() {
29 | c.wg.Done()
30 | }
31 |
32 | // Wait waits for all active async goroutines to exit
33 | func (c *Context) Wait() {
34 | c.wg.Wait()
35 | }
36 |
--------------------------------------------------------------------------------
/docs/assets/images/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shuttl-Tech/tile38-cluster-manager/6a248cbc838c60b04da997119572a467e8ab0940/docs/assets/images/favicon.png
--------------------------------------------------------------------------------
/docs/assets/javascripts/lunr/min/lunr.jp.min.js:
--------------------------------------------------------------------------------
1 | module.exports=require("./lunr.ja");
--------------------------------------------------------------------------------
/docs/assets/javascripts/lunr/min/lunr.vi.min.js:
--------------------------------------------------------------------------------
1 | !function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");e.vi=function(){this.pipeline.reset(),this.pipeline.add(e.vi.stopWordFilter,e.vi.trimmer)},e.vi.wordCharacters="[A-Za-ẓ̀͐́͑̉̃̓ÂâÊêÔôĂ-ăĐ-đƠ-ơƯ-ư]",e.vi.trimmer=e.trimmerSupport.generateTrimmer(e.vi.wordCharacters),e.Pipeline.registerFunction(e.vi.trimmer,"trimmer-vi"),e.vi.stopWordFilter=e.generateStopWordFilter("là cái nhưng mà".split(" "))}});
--------------------------------------------------------------------------------
/docs/images/manger-writes.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shuttl-Tech/tile38-cluster-manager/6a248cbc838c60b04da997119572a467e8ab0940/docs/images/manger-writes.jpg
--------------------------------------------------------------------------------
/docs/sitemap.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | https://shuttl-tech.github.io/tile38-cluster-manager/
4 | 2020-11-09
5 | daily
6 |
7 |
--------------------------------------------------------------------------------
/docs/sitemap.xml.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shuttl-Tech/tile38-cluster-manager/6a248cbc838c60b04da997119572a467e8ab0940/docs/sitemap.xml.gz
--------------------------------------------------------------------------------
/go.mod:
--------------------------------------------------------------------------------
1 | module tile38-cluster-manager
2 |
3 | go 1.15
4 |
5 | require (
6 | github.com/DataDog/datadog-go v4.0.1+incompatible
7 | github.com/go-redis/redis/v8 v8.3.2
8 | github.com/hashicorp/consul v1.8.4
9 | github.com/hashicorp/consul/api v1.7.0
10 | github.com/mitchellh/mapstructure v1.3.3
11 | github.com/urfave/cli/v2 v2.2.0
12 | inet.af/tcpproxy v0.0.0-20200125044825-b6bb9b5b8252
13 | )
14 |
--------------------------------------------------------------------------------
/main.go:
--------------------------------------------------------------------------------
1 | // +build !doc
2 |
3 | package main
4 |
5 | import (
6 | "log"
7 | "os"
8 | )
9 |
10 | func main() {
11 | err := App.Run(os.Args)
12 | if err != nil {
13 | log.Fatalf("manager failed with error. %s", err)
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/mkdocs.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | pip install markdown-include
4 |
5 | mkdocs ${@}
6 |
--------------------------------------------------------------------------------
/site/images/manger-writes.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shuttl-Tech/tile38-cluster-manager/6a248cbc838c60b04da997119572a467e8ab0940/site/images/manger-writes.jpg
--------------------------------------------------------------------------------
/vendor/github.com/DataDog/datadog-go/statsd/README.md:
--------------------------------------------------------------------------------
1 | ## Overview
2 |
3 | Package `statsd` provides a Go [dogstatsd](http://docs.datadoghq.com/guides/dogstatsd/) client. Dogstatsd extends Statsd, adding tags
4 | and histograms.
5 |
--------------------------------------------------------------------------------
/vendor/github.com/armon/go-metrics/.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 |
24 | /metrics.out
25 |
26 | .idea
27 |
--------------------------------------------------------------------------------
/vendor/github.com/armon/go-metrics/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 |
3 | go:
4 | - "1.x"
5 |
6 | env:
7 | - GO111MODULE=on
8 |
9 | install:
10 | - go get ./...
11 |
12 | script:
13 | - go test ./...
14 |
--------------------------------------------------------------------------------
/vendor/github.com/armon/go-metrics/const_unix.go:
--------------------------------------------------------------------------------
1 | // +build !windows
2 |
3 | package metrics
4 |
5 | import (
6 | "syscall"
7 | )
8 |
9 | const (
10 | // DefaultSignal is used with DefaultInmemSignal
11 | DefaultSignal = syscall.SIGUSR1
12 | )
13 |
--------------------------------------------------------------------------------
/vendor/github.com/armon/go-metrics/const_windows.go:
--------------------------------------------------------------------------------
1 | // +build windows
2 |
3 | package metrics
4 |
5 | import (
6 | "syscall"
7 | )
8 |
9 | const (
10 | // DefaultSignal is used with DefaultInmemSignal
11 | // Windows has no SIGUSR1, use SIGBREAK
12 | DefaultSignal = syscall.Signal(21)
13 | )
14 |
--------------------------------------------------------------------------------
/vendor/github.com/armon/go-metrics/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/armon/go-metrics
2 |
3 | go 1.12
4 |
5 | require (
6 | github.com/DataDog/datadog-go v3.2.0+incompatible
7 | github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible
8 | github.com/circonus-labs/circonusllhist v0.1.3 // indirect
9 | github.com/golang/protobuf v1.3.2
10 | github.com/hashicorp/go-immutable-radix v1.0.0
11 | github.com/hashicorp/go-retryablehttp v0.5.3 // indirect
12 | github.com/pascaldekloe/goe v0.1.0
13 | github.com/prometheus/client_golang v1.4.0
14 | github.com/prometheus/client_model v0.2.0
15 | github.com/prometheus/common v0.9.1
16 | github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926 // indirect
17 | )
18 |
--------------------------------------------------------------------------------
/vendor/github.com/armon/go-radix/.gitignore:
--------------------------------------------------------------------------------
1 | # Compiled Object files, Static and Dynamic libs (Shared Objects)
2 | *.o
3 | *.a
4 | *.so
5 |
6 | # Folders
7 | _obj
8 | _test
9 |
10 | # Architecture specific extensions/prefixes
11 | *.[568vq]
12 | [568vq].out
13 |
14 | *.cgo1.go
15 | *.cgo2.c
16 | _cgo_defun.c
17 | _cgo_gotypes.go
18 | _cgo_export.*
19 |
20 | _testmain.go
21 |
22 | *.exe
23 |
--------------------------------------------------------------------------------
/vendor/github.com/armon/go-radix/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | go:
3 | - tip
4 |
--------------------------------------------------------------------------------
/vendor/github.com/armon/go-radix/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/armon/go-radix
2 |
--------------------------------------------------------------------------------
/vendor/github.com/cespare/xxhash/v2/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | go:
3 | - "1.x"
4 | - master
5 | env:
6 | - TAGS=""
7 | - TAGS="-tags purego"
8 | script: go test $TAGS -v ./...
9 |
--------------------------------------------------------------------------------
/vendor/github.com/cespare/xxhash/v2/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/cespare/xxhash/v2
2 |
3 | go 1.11
4 |
--------------------------------------------------------------------------------
/vendor/github.com/cespare/xxhash/v2/go.sum:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shuttl-Tech/tile38-cluster-manager/6a248cbc838c60b04da997119572a467e8ab0940/vendor/github.com/cespare/xxhash/v2/go.sum
--------------------------------------------------------------------------------
/vendor/github.com/cespare/xxhash/v2/xxhash_amd64.go:
--------------------------------------------------------------------------------
1 | // +build !appengine
2 | // +build gc
3 | // +build !purego
4 |
5 | package xxhash
6 |
7 | // Sum64 computes the 64-bit xxHash digest of b.
8 | //
9 | //go:noescape
10 | func Sum64(b []byte) uint64
11 |
12 | //go:noescape
13 | func writeBlocks(d *Digest, b []byte) int
14 |
--------------------------------------------------------------------------------
/vendor/github.com/cespare/xxhash/v2/xxhash_safe.go:
--------------------------------------------------------------------------------
1 | // +build appengine
2 |
3 | // This file contains the safe implementations of otherwise unsafe-using code.
4 |
5 | package xxhash
6 |
7 | // Sum64String computes the 64-bit xxHash digest of s.
8 | func Sum64String(s string) uint64 {
9 | return Sum64([]byte(s))
10 | }
11 |
12 | // WriteString adds more data to d. It always returns len(s), nil.
13 | func (d *Digest) WriteString(s string) (n int, err error) {
14 | return d.Write([]byte(s))
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/github.com/circonus-labs/circonus-gometrics/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | env.sh
3 | NOTES.md
4 |
5 | # codecov.io
6 | .codecov
7 | coverage.txt
8 | coverage.xml
9 | coverage.html
10 |
11 | vendor/
12 |
--------------------------------------------------------------------------------
/vendor/github.com/circonus-labs/circonus-gometrics/Gopkg.toml:
--------------------------------------------------------------------------------
1 | [[constraint]]
2 | name = "github.com/circonus-labs/circonusllhist"
3 | version = "0.1.3"
4 |
5 | [[constraint]]
6 | name = "github.com/hashicorp/go-retryablehttp"
7 | version = "=0.5.2"
8 |
9 | [[constraint]]
10 | name = "github.com/pkg/errors"
11 | version = "0.8.1"
12 |
13 | [[constraint]]
14 | branch = "master"
15 | name = "github.com/tv42/httpunix"
16 |
--------------------------------------------------------------------------------
/vendor/github.com/circonus-labs/circonus-gometrics/metrics.go:
--------------------------------------------------------------------------------
1 | // Copyright 2016 Circonus, Inc. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package circonusgometrics
6 |
7 | // SetMetricTags sets the tags for the named metric and flags a check update is needed
8 | func (m *CirconusMetrics) SetMetricTags(name string, tags []string) bool {
9 | return m.check.AddMetricTags(name, tags, false)
10 | }
11 |
12 | // AddMetricTags appends tags to any existing tags for the named metric and flags a check update is needed
13 | func (m *CirconusMetrics) AddMetricTags(name string, tags []string) bool {
14 | return m.check.AddMetricTags(name, tags, true)
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go:
--------------------------------------------------------------------------------
1 | package md2man
2 |
3 | import (
4 | "github.com/russross/blackfriday/v2"
5 | )
6 |
7 | // Render converts a markdown document into a roff formatted document.
8 | func Render(doc []byte) []byte {
9 | renderer := NewRoffRenderer()
10 |
11 | return blackfriday.Run(doc,
12 | []blackfriday.Option{blackfriday.WithRenderer(renderer),
13 | blackfriday.WithExtensions(renderer.GetExtensions())}...)
14 | }
15 |
--------------------------------------------------------------------------------
/vendor/github.com/fatih/color/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/fatih/color
2 |
3 | go 1.13
4 |
5 | require (
6 | github.com/mattn/go-colorable v0.1.4
7 | github.com/mattn/go-isatty v0.0.11
8 | )
9 |
--------------------------------------------------------------------------------
/vendor/github.com/fatih/color/go.sum:
--------------------------------------------------------------------------------
1 | github.com/mattn/go-colorable v0.1.4 h1:snbPLB8fVfU9iwbbo30TPtbLRzwWu6aJS6Xh4eaaviA=
2 | github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
3 | github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
4 | github.com/mattn/go-isatty v0.0.11 h1:FxPOTFNqGkuDUGi3H/qkUbQO4ZiBa2brKq5r0l8TGeM=
5 | github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE=
6 | golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
7 | golang.org/x/sys v0.0.0-20191026070338-33540a1f6037 h1:YyJpGZS1sBuBCzLAR1VEpK193GlqGZbnPFnPV/5Rsb4=
8 | golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
9 |
--------------------------------------------------------------------------------
/vendor/github.com/go-redis/redis/v8/.gitignore:
--------------------------------------------------------------------------------
1 | *.rdb
2 | testdata/*/
3 | .idea/
4 |
--------------------------------------------------------------------------------
/vendor/github.com/go-redis/redis/v8/.golangci.yml:
--------------------------------------------------------------------------------
1 | run:
2 | concurrency: 8
3 | deadline: 5m
4 | tests: false
5 | linters:
6 | enable-all: true
7 | disable:
8 | - funlen
9 | - gochecknoglobals
10 | - gochecknoinits
11 | - gocognit
12 | - goconst
13 | - godox
14 | - gosec
15 | - maligned
16 | - wsl
17 | - gomnd
18 | - goerr113
19 | - exhaustive
20 | - gofumpt
21 | - nestif
22 |
--------------------------------------------------------------------------------
/vendor/github.com/go-redis/redis/v8/.prettierrc:
--------------------------------------------------------------------------------
1 | semi: false
2 | singleQuote: true
3 | proseWrap: always
4 | printWidth: 100
5 |
--------------------------------------------------------------------------------
/vendor/github.com/go-redis/redis/v8/.travis.yml:
--------------------------------------------------------------------------------
1 | dist: xenial
2 | language: go
3 |
4 | services:
5 | - redis-server
6 |
7 | go:
8 | - 1.14.x
9 | - 1.15.x
10 | - tip
11 |
12 | matrix:
13 | allow_failures:
14 | - go: tip
15 |
16 | go_import_path: github.com/go-redis/redis
17 |
18 | before_install:
19 | - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s --
20 | -b $(go env GOPATH)/bin v1.28.3
21 |
--------------------------------------------------------------------------------
/vendor/github.com/go-redis/redis/v8/Makefile:
--------------------------------------------------------------------------------
1 | all: testdeps
2 | go test ./...
3 | go test ./... -short -race
4 | go test ./... -run=NONE -bench=. -benchmem
5 | env GOOS=linux GOARCH=386 go test ./...
6 | go vet
7 | golangci-lint run
8 |
9 | testdeps: testdata/redis/src/redis-server
10 |
11 | bench: testdeps
12 | go test ./... -test.run=NONE -test.bench=. -test.benchmem
13 |
14 | .PHONY: all test testdeps bench
15 |
16 | testdata/redis:
17 | mkdir -p $@
18 | wget -qO- http://download.redis.io/redis-stable.tar.gz | tar xvz --strip-components=1 -C $@
19 |
20 | testdata/redis/src/redis-server: testdata/redis
21 | cd $< && make all
22 |
--------------------------------------------------------------------------------
/vendor/github.com/go-redis/redis/v8/cluster_commands.go:
--------------------------------------------------------------------------------
1 | package redis
2 |
3 | import (
4 | "context"
5 | "sync/atomic"
6 | )
7 |
8 | func (c *ClusterClient) DBSize(ctx context.Context) *IntCmd {
9 | cmd := NewIntCmd(ctx, "dbsize")
10 | var size int64
11 | err := c.ForEachMaster(ctx, func(ctx context.Context, master *Client) error {
12 | n, err := master.DBSize(ctx).Result()
13 | if err != nil {
14 | return err
15 | }
16 | atomic.AddInt64(&size, n)
17 | return nil
18 | })
19 | if err != nil {
20 | cmd.SetErr(err)
21 | return cmd
22 | }
23 | cmd.val = size
24 | return cmd
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/github.com/go-redis/redis/v8/doc.go:
--------------------------------------------------------------------------------
1 | /*
2 | Package redis implements a Redis client.
3 | */
4 | package redis
5 |
--------------------------------------------------------------------------------
/vendor/github.com/go-redis/redis/v8/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/go-redis/redis/v8
2 |
3 | go 1.11
4 |
5 | require (
6 | github.com/cespare/xxhash/v2 v2.1.1
7 | github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f
8 | github.com/onsi/ginkgo v1.14.2
9 | github.com/onsi/gomega v1.10.3
10 | go.opentelemetry.io/otel v0.13.0
11 | )
12 |
--------------------------------------------------------------------------------
/vendor/github.com/go-redis/redis/v8/internal/internal.go:
--------------------------------------------------------------------------------
1 | package internal
2 |
3 | import (
4 | "time"
5 |
6 | "github.com/go-redis/redis/v8/internal/rand"
7 | )
8 |
9 | func RetryBackoff(retry int, minBackoff, maxBackoff time.Duration) time.Duration {
10 | if retry < 0 {
11 | panic("not reached")
12 | }
13 | if minBackoff == 0 {
14 | return 0
15 | }
16 |
17 | d := minBackoff << uint(retry)
18 | d = minBackoff + time.Duration(rand.Int63n(int64(d)))
19 |
20 | if d > maxBackoff || d < minBackoff {
21 | d = maxBackoff
22 | }
23 |
24 | return d
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/github.com/go-redis/redis/v8/internal/log.go:
--------------------------------------------------------------------------------
1 | package internal
2 |
3 | import (
4 | "context"
5 | "fmt"
6 | "log"
7 | "os"
8 | )
9 |
10 | type Logging interface {
11 | Printf(ctx context.Context, format string, v ...interface{})
12 | }
13 |
14 | type logger struct {
15 | log *log.Logger
16 | }
17 |
18 | func (l *logger) Printf(ctx context.Context, format string, v ...interface{}) {
19 | _ = l.log.Output(2, fmt.Sprintf(format, v...))
20 | }
21 |
22 | var Logger Logging = &logger{
23 | log: log.New(os.Stderr, "redis: ", log.LstdFlags|log.Lshortfile),
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/github.com/go-redis/redis/v8/internal/safe.go:
--------------------------------------------------------------------------------
1 | // +build appengine
2 |
3 | package internal
4 |
5 | func String(b []byte) string {
6 | return string(b)
7 | }
8 |
9 | func Bytes(s string) []byte {
10 | return []byte(s)
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/github.com/go-redis/redis/v8/internal/unsafe.go:
--------------------------------------------------------------------------------
1 | // +build !appengine
2 |
3 | package internal
4 |
5 | import "unsafe"
6 |
7 | // String converts byte slice to string.
8 | func String(b []byte) string {
9 | return *(*string)(unsafe.Pointer(&b))
10 | }
11 |
12 | // Bytes converts string to byte slice.
13 | func Bytes(s string) []byte {
14 | return *(*[]byte)(unsafe.Pointer(
15 | &struct {
16 | string
17 | Cap int
18 | }{s, len(s)},
19 | ))
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/github.com/go-redis/redis/v8/internal/util/safe.go:
--------------------------------------------------------------------------------
1 | // +build appengine
2 |
3 | package util
4 |
5 | func BytesToString(b []byte) string {
6 | return string(b)
7 | }
8 |
9 | func StringToBytes(s string) []byte {
10 | return []byte(s)
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/github.com/go-redis/redis/v8/internal/util/strconv.go:
--------------------------------------------------------------------------------
1 | package util
2 |
3 | import "strconv"
4 |
5 | func Atoi(b []byte) (int, error) {
6 | return strconv.Atoi(BytesToString(b))
7 | }
8 |
9 | func ParseInt(b []byte, base int, bitSize int) (int64, error) {
10 | return strconv.ParseInt(BytesToString(b), base, bitSize)
11 | }
12 |
13 | func ParseUint(b []byte, base int, bitSize int) (uint64, error) {
14 | return strconv.ParseUint(BytesToString(b), base, bitSize)
15 | }
16 |
17 | func ParseFloat(b []byte, bitSize int) (float64, error) {
18 | return strconv.ParseFloat(BytesToString(b), bitSize)
19 | }
20 |
--------------------------------------------------------------------------------
/vendor/github.com/go-redis/redis/v8/internal/util/unsafe.go:
--------------------------------------------------------------------------------
1 | // +build !appengine
2 |
3 | package util
4 |
5 | import (
6 | "unsafe"
7 | )
8 |
9 | // BytesToString converts byte slice to string.
10 | func BytesToString(b []byte) string {
11 | return *(*string)(unsafe.Pointer(&b))
12 | }
13 |
14 | // StringToBytes converts string to byte slice.
15 | func StringToBytes(s string) []byte {
16 | return *(*[]byte)(unsafe.Pointer(
17 | &struct {
18 | string
19 | Cap int
20 | }{s, len(s)},
21 | ))
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/github.com/go-redis/redis/v8/renovate.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": [
3 | "config:base"
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/vendor/github.com/golang/protobuf/AUTHORS:
--------------------------------------------------------------------------------
1 | # This source code refers to The Go Authors for copyright purposes.
2 | # The master list of authors is in the main Go distribution,
3 | # visible at http://tip.golang.org/AUTHORS.
4 |
--------------------------------------------------------------------------------
/vendor/github.com/golang/protobuf/CONTRIBUTORS:
--------------------------------------------------------------------------------
1 | # This source code was written by the Go contributors.
2 | # The master list of contributors is in the main Go distribution,
3 | # visible at http://tip.golang.org/CONTRIBUTORS.
4 |
--------------------------------------------------------------------------------
/vendor/github.com/golang/protobuf/ptypes/doc.go:
--------------------------------------------------------------------------------
1 | // Copyright 2016 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // Package ptypes provides functionality for interacting with well-known types.
6 | package ptypes
7 |
--------------------------------------------------------------------------------
/vendor/github.com/google/btree/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 |
--------------------------------------------------------------------------------
/vendor/github.com/google/btree/README.md:
--------------------------------------------------------------------------------
1 | # BTree implementation for Go
2 |
3 | 
4 |
5 | This package provides an in-memory B-Tree implementation for Go, useful as
6 | an ordered, mutable data structure.
7 |
8 | The API is based off of the wonderful
9 | http://godoc.org/github.com/petar/GoLLRB/llrb, and is meant to allow btree to
10 | act as a drop-in replacement for gollrb trees.
11 |
12 | See http://godoc.org/github.com/google/btree for documentation.
13 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/NOTICE.md:
--------------------------------------------------------------------------------
1 | Copyright © 2014-2018 HashiCorp, Inc.
2 |
3 | This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this project, you can obtain one at http://mozilla.org/MPL/2.0/.
4 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/acl/acl_oss.go:
--------------------------------------------------------------------------------
1 | // +build !consulent
2 |
3 | package acl
4 |
5 | type EnterpriseConfig struct {
6 | // no fields in OSS
7 | }
8 |
9 | func (_ *EnterpriseConfig) Close() {
10 | // do nothing
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/acl/authorizer_oss.go:
--------------------------------------------------------------------------------
1 | // +build !consulent
2 |
3 | package acl
4 |
5 | // AuthorizerContext stub
6 | type AuthorizerContext struct{}
7 |
8 | // enterpriseAuthorizer stub interface
9 | type enterpriseAuthorizer interface{}
10 |
11 | func enforceEnterprise(_ Authorizer, _ Resource, _ string, _ string, _ *AuthorizerContext) (bool, EnforcementDecision, error) {
12 | return false, Deny, nil
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/acl/policy_merger_oss.go:
--------------------------------------------------------------------------------
1 | // +build !consulent
2 |
3 | package acl
4 |
5 | type enterprisePolicyRulesMergeContext struct{}
6 |
7 | func (ctx *enterprisePolicyRulesMergeContext) init() {
8 | // do nothing
9 | }
10 |
11 | func (ctx *enterprisePolicyRulesMergeContext) merge(*EnterprisePolicyRules) {
12 | // do nothing
13 | }
14 |
15 | func (ctx *enterprisePolicyRulesMergeContext) update(*EnterprisePolicyRules) {
16 | // do nothing
17 | }
18 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/agent/cache/mock_Request.go:
--------------------------------------------------------------------------------
1 | // Code generated by mockery v1.0.0. DO NOT EDIT.
2 |
3 | package cache
4 |
5 | import mock "github.com/stretchr/testify/mock"
6 |
7 | // MockRequest is an autogenerated mock type for the Request type
8 | type MockRequest struct {
9 | mock.Mock
10 | }
11 |
12 | // CacheInfo provides a mock function with given fields:
13 | func (_m *MockRequest) CacheInfo() RequestInfo {
14 | ret := _m.Called()
15 |
16 | var r0 RequestInfo
17 | if rf, ok := ret.Get(0).(func() RequestInfo); ok {
18 | r0 = rf()
19 | } else {
20 | r0 = ret.Get(0).(RequestInfo)
21 | }
22 |
23 | return r0
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/agent/connect/testing_spiffe.go:
--------------------------------------------------------------------------------
1 | package connect
2 |
3 | import (
4 | "github.com/mitchellh/go-testing-interface"
5 | )
6 |
7 | // TestSpiffeIDService returns a SPIFFE ID representing a service.
8 | func TestSpiffeIDService(t testing.T, service string) *SpiffeIDService {
9 | return TestSpiffeIDServiceWithHost(t, service, TestClusterID+".consul")
10 | }
11 |
12 | // TestSpiffeIDServiceWithHost returns a SPIFFE ID representing a service with
13 | // the specified trust domain.
14 | func TestSpiffeIDServiceWithHost(t testing.T, service, host string) *SpiffeIDService {
15 | return &SpiffeIDService{
16 | Host: host,
17 | Namespace: "default",
18 | Datacenter: "dc1",
19 | Service: service,
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/agent/connect/uri_service_oss.go:
--------------------------------------------------------------------------------
1 | // +build !consulent
2 |
3 | package connect
4 |
5 | import (
6 | "github.com/hashicorp/consul/agent/structs"
7 | )
8 |
9 | // GetEnterpriseMeta will synthesize an EnterpriseMeta struct from the SpiffeIDService.
10 | // in OSS this just returns an empty (but never nil) struct pointer
11 | func (id *SpiffeIDService) GetEnterpriseMeta() *structs.EnterpriseMeta {
12 | return &structs.EnterpriseMeta{}
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/agent/structs/auto_encrypt.go:
--------------------------------------------------------------------------------
1 | package structs
2 |
3 | type SignedResponse struct {
4 | IssuedCert IssuedCert `json:",omitempty"`
5 | ConnectCARoots IndexedCARoots `json:",omitempty"`
6 | ManualCARoots []string `json:",omitempty"`
7 | GossipKey string `json:",omitempty"`
8 | VerifyServerHostname bool `json:",omitempty"`
9 | }
10 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/agent/structs/connect.go:
--------------------------------------------------------------------------------
1 | package structs
2 |
3 | // ConnectAuthorizeRequest is the structure of a request to authorize
4 | // a connection.
5 | type ConnectAuthorizeRequest struct {
6 | // Target is the name of the service that is being requested.
7 | Target string
8 |
9 | // EnterpriseMeta is the embedded Consul Enterprise specific metadata
10 | EnterpriseMeta
11 |
12 | // ClientCertURI is a unique identifier for the requesting client. This
13 | // is currently the URI SAN from the TLS client certificate.
14 | //
15 | // ClientCertSerial is a colon-hex-encoded of the serial number for
16 | // the requesting client cert. This is used to check against revocation
17 | // lists.
18 | ClientCertURI string
19 | ClientCertSerial string
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/agent/structs/connect_oss.go:
--------------------------------------------------------------------------------
1 | // +build !consulent
2 |
3 | package structs
4 |
5 | func (req *ConnectAuthorizeRequest) TargetNamespace() string {
6 | return IntentionDefaultNamespace
7 | }
8 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/agent/structs/connect_proxy_config_oss.go:
--------------------------------------------------------------------------------
1 | // +build !consulent
2 |
3 | package structs
4 |
5 | func (us *Upstream) GetEnterpriseMeta() *EnterpriseMeta {
6 | return DefaultEnterpriseMeta()
7 | }
8 |
9 | func (us *Upstream) DestinationID() ServiceID {
10 | return ServiceID{
11 | ID: us.DestinationName,
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/agent/structs/discovery_chain_oss.go:
--------------------------------------------------------------------------------
1 | // +build !consulent
2 |
3 | package structs
4 |
5 | func (t *DiscoveryTarget) GetEnterpriseMetadata() *EnterpriseMeta {
6 | return DefaultEnterpriseMeta()
7 | }
8 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/agent/structs/testing_intention.go:
--------------------------------------------------------------------------------
1 | package structs
2 |
3 | import (
4 | "github.com/mitchellh/go-testing-interface"
5 | )
6 |
7 | // TestIntention returns a valid, uninserted (no ID set) intention.
8 | func TestIntention(t testing.T) *Intention {
9 | return &Intention{
10 | SourceNS: IntentionDefaultNamespace,
11 | SourceName: "api",
12 | DestinationNS: IntentionDefaultNamespace,
13 | DestinationName: "db",
14 | Action: IntentionActionAllow,
15 | SourceType: IntentionSourceConsul,
16 | Meta: map[string]string{},
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/agent/structs/testing_service_definition.go:
--------------------------------------------------------------------------------
1 | package structs
2 |
3 | import (
4 | "github.com/mitchellh/go-testing-interface"
5 | )
6 |
7 | // TestServiceDefinition returns a ServiceDefinition for a typical service.
8 | func TestServiceDefinition(t testing.T) *ServiceDefinition {
9 | return &ServiceDefinition{
10 | Name: "db",
11 | Port: 1234,
12 | }
13 | }
14 |
15 | // TestServiceDefinitionProxy returns a ServiceDefinition for a proxy.
16 | func TestServiceDefinitionProxy(t testing.T) *ServiceDefinition {
17 | return &ServiceDefinition{
18 | Kind: ServiceKindConnectProxy,
19 | Name: "foo-proxy",
20 | Port: 1234,
21 | Proxy: &ConnectProxyConfig{
22 | DestinationServiceName: "db",
23 | },
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/api/connect.go:
--------------------------------------------------------------------------------
1 | package api
2 |
3 | // Connect can be used to work with endpoints related to Connect, the
4 | // feature for securely connecting services within Consul.
5 | type Connect struct {
6 | c *Client
7 | }
8 |
9 | // Connect returns a handle to the connect-related endpoints
10 | func (c *Client) Connect() *Connect {
11 | return &Connect{c}
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/api/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/hashicorp/consul/api
2 |
3 | go 1.12
4 |
5 | replace github.com/hashicorp/consul/sdk => ../sdk
6 |
7 | require (
8 | github.com/hashicorp/consul/sdk v0.6.0
9 | github.com/hashicorp/go-cleanhttp v0.5.1
10 | github.com/hashicorp/go-hclog v0.12.0
11 | github.com/hashicorp/go-rootcerts v1.0.2
12 | github.com/hashicorp/go-uuid v1.0.1
13 | github.com/hashicorp/serf v0.9.3
14 | github.com/mitchellh/mapstructure v1.1.2
15 | github.com/stretchr/testify v1.4.0
16 | )
17 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/api/operator.go:
--------------------------------------------------------------------------------
1 | package api
2 |
3 | // Operator can be used to perform low-level operator tasks for Consul.
4 | type Operator struct {
5 | c *Client
6 | }
7 |
8 | // Operator returns a handle to the operator endpoints.
9 | func (c *Client) Operator() *Operator {
10 | return &Operator{c}
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/api/operator_segment.go:
--------------------------------------------------------------------------------
1 | package api
2 |
3 | // SegmentList returns all the available LAN segments.
4 | func (op *Operator) SegmentList(q *QueryOptions) ([]string, *QueryMeta, error) {
5 | var out []string
6 | qm, err := op.c.query("/v1/operator/segment", &out, q)
7 | if err != nil {
8 | return nil, nil, err
9 | }
10 | return out, qm, nil
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/lib/eof.go:
--------------------------------------------------------------------------------
1 | package lib
2 |
3 | import (
4 | "io"
5 | "strings"
6 |
7 | "github.com/hashicorp/yamux"
8 | )
9 |
10 | var yamuxStreamClosed = yamux.ErrStreamClosed.Error()
11 | var yamuxSessionShutdown = yamux.ErrSessionShutdown.Error()
12 |
13 | // IsErrEOF returns true if we get an EOF error from the socket itself, or
14 | // an EOF equivalent error from yamux.
15 | func IsErrEOF(err error) bool {
16 | if err == io.EOF {
17 | return true
18 | }
19 |
20 | errStr := err.Error()
21 | if strings.Contains(errStr, yamuxStreamClosed) ||
22 | strings.Contains(errStr, yamuxSessionShutdown) {
23 | return true
24 | }
25 |
26 | return false
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/lib/math.go:
--------------------------------------------------------------------------------
1 | package lib
2 |
3 | func AbsInt(a int) int {
4 | if a > 0 {
5 | return a
6 | }
7 | return a * -1
8 | }
9 |
10 | func MaxInt(a, b int) int {
11 | if a > b {
12 | return a
13 | }
14 | return b
15 | }
16 |
17 | func MinInt(a, b int) int {
18 | if a > b {
19 | return b
20 | }
21 | return a
22 | }
23 |
24 | func MaxUint64(a, b uint64) uint64 {
25 | if a > b {
26 | return a
27 | }
28 | return b
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/lib/path.go:
--------------------------------------------------------------------------------
1 | package lib
2 |
3 | import (
4 | "os"
5 | "path/filepath"
6 | )
7 |
8 | // EnsurePath is used to make sure a path exists
9 | func EnsurePath(path string, dir bool) error {
10 | if !dir {
11 | path = filepath.Dir(path)
12 | }
13 | return os.MkdirAll(path, 0755)
14 | }
15 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/lib/uuid.go:
--------------------------------------------------------------------------------
1 | package lib
2 |
3 | import (
4 | "github.com/hashicorp/go-uuid"
5 | )
6 |
7 | // UUIDCheckFunc should determine whether the given UUID is actually
8 | // unique and allowed to be used
9 | type UUIDCheckFunc func(string) (bool, error)
10 |
11 | func GenerateUUID(checkFn UUIDCheckFunc) (string, error) {
12 | for {
13 | id, err := uuid.GenerateUUID()
14 | if err != nil {
15 | return "", err
16 | }
17 |
18 | if checkFn == nil {
19 | return id, nil
20 | }
21 |
22 | if ok, err := checkFn(id); err != nil {
23 | return "", err
24 | } else if ok {
25 | return id, nil
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/sdk/freeport/ephemeral_fallback.go:
--------------------------------------------------------------------------------
1 | //+build !linux,!darwin
2 |
3 | package freeport
4 |
5 | func getEphemeralPortRange() (int, int, error) {
6 | return 0, 0, nil
7 | }
8 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/sdk/freeport/systemlimit.go:
--------------------------------------------------------------------------------
1 | // +build !windows
2 |
3 | package freeport
4 |
5 | import "golang.org/x/sys/unix"
6 |
7 | func systemLimit() (int, error) {
8 | var limit unix.Rlimit
9 | err := unix.Getrlimit(unix.RLIMIT_NOFILE, &limit)
10 | return int(limit.Cur), err
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/sdk/freeport/systemlimit_windows.go:
--------------------------------------------------------------------------------
1 | // +build windows
2 |
3 | package freeport
4 |
5 | func systemLimit() (int, error) {
6 | return 0, nil
7 | }
8 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/types/area.go:
--------------------------------------------------------------------------------
1 | package types
2 |
3 | // AreaID is a strongly-typed string used to uniquely represent a network area,
4 | // which is a relationship between Consul servers.
5 | type AreaID string
6 |
7 | // This represents the existing WAN area that's built in to Consul. Consul
8 | // Enterprise generalizes areas, which are represented with UUIDs.
9 | const AreaWAN AreaID = "wan"
10 |
11 | // This represents the existing LAN area that's built in to Consul. Consul
12 | // Enterprise generalizes areas, which are represented with UUIDs.
13 | const AreaLAN AreaID = "lan"
14 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/types/checks.go:
--------------------------------------------------------------------------------
1 | package types
2 |
3 | // CheckID is a strongly typed string used to uniquely represent a Consul
4 | // Check on an Agent (a CheckID is not globally unique).
5 | type CheckID string
6 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/consul/types/node_id.go:
--------------------------------------------------------------------------------
1 | package types
2 |
3 | // NodeID is a unique identifier for a node across space and time.
4 | type NodeID string
5 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/errwrap/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/hashicorp/errwrap
2 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-cleanhttp/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/hashicorp/go-cleanhttp
2 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-hclog/.gitignore:
--------------------------------------------------------------------------------
1 | .idea*
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-hclog/colorize_unix.go:
--------------------------------------------------------------------------------
1 | // +build !windows
2 |
3 | package hclog
4 |
5 | import (
6 | "github.com/mattn/go-isatty"
7 | )
8 |
9 | // setColorization will mutate the values of this logger
10 | // to approperately configure colorization options. It provides
11 | // a wrapper to the output stream on Windows systems.
12 | func (l *intLogger) setColorization(opts *LoggerOptions) {
13 | switch opts.Color {
14 | case ColorOff:
15 | fallthrough
16 | case ForceColor:
17 | return
18 | case AutoColor:
19 | fi := l.checkWriterIsFile()
20 | isUnixTerm := isatty.IsTerminal(fi.Fd())
21 | isCygwinTerm := isatty.IsCygwinTerminal(fi.Fd())
22 | isTerm := isUnixTerm || isCygwinTerm
23 | if !isTerm {
24 | l.writer.color = ColorOff
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-hclog/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/hashicorp/go-hclog
2 |
3 | require (
4 | github.com/davecgh/go-spew v1.1.1 // indirect
5 | github.com/fatih/color v1.7.0
6 | github.com/mattn/go-colorable v0.1.4
7 | github.com/mattn/go-isatty v0.0.10
8 | github.com/pmezard/go-difflib v1.0.0 // indirect
9 | github.com/stretchr/testify v1.2.2
10 | )
11 |
12 | go 1.13
13 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-immutable-radix/.gitignore:
--------------------------------------------------------------------------------
1 | # Compiled Object files, Static and Dynamic libs (Shared Objects)
2 | *.o
3 | *.a
4 | *.so
5 |
6 | # Folders
7 | _obj
8 | _test
9 |
10 | # Architecture specific extensions/prefixes
11 | *.[568vq]
12 | [568vq].out
13 |
14 | *.cgo1.go
15 | *.cgo2.c
16 | _cgo_defun.c
17 | _cgo_gotypes.go
18 | _cgo_export.*
19 |
20 | _testmain.go
21 |
22 | *.exe
23 | *.test
24 | *.prof
25 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-immutable-radix/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # UNRELEASED
2 |
3 | FEATURES
4 |
5 | * Add `SeekLowerBound` to allow for range scans. [[GH-24](https://github.com/hashicorp/go-immutable-radix/pull/24)]
6 |
7 | # 1.0.0 (August 30th, 2018)
8 |
9 | * go mod adopted
10 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-immutable-radix/edges.go:
--------------------------------------------------------------------------------
1 | package iradix
2 |
3 | import "sort"
4 |
5 | type edges []edge
6 |
7 | func (e edges) Len() int {
8 | return len(e)
9 | }
10 |
11 | func (e edges) Less(i, j int) bool {
12 | return e[i].label < e[j].label
13 | }
14 |
15 | func (e edges) Swap(i, j int) {
16 | e[i], e[j] = e[j], e[i]
17 | }
18 |
19 | func (e edges) Sort() {
20 | sort.Sort(e)
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-immutable-radix/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/hashicorp/go-immutable-radix
2 |
3 | require (
4 | github.com/hashicorp/go-uuid v1.0.0
5 | github.com/hashicorp/golang-lru v0.5.0
6 | )
7 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-immutable-radix/go.sum:
--------------------------------------------------------------------------------
1 | github.com/hashicorp/go-uuid v1.0.0 h1:RS8zrF7PhGwyNPOtxSClXXj9HA8feRnJzgnI1RJCSnM=
2 | github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
3 | github.com/hashicorp/golang-lru v0.5.0 h1:CL2msUPvZTLb5O648aiLNJw3hnBxN2+1Jq8rCOH9wdo=
4 | github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
5 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-multierror/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 |
3 | language: go
4 |
5 | go:
6 | - 1.x
7 |
8 | branches:
9 | only:
10 | - master
11 |
12 | script: env GO111MODULE=on make test testrace
13 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-multierror/flatten.go:
--------------------------------------------------------------------------------
1 | package multierror
2 |
3 | // Flatten flattens the given error, merging any *Errors together into
4 | // a single *Error.
5 | func Flatten(err error) error {
6 | // If it isn't an *Error, just return the error as-is
7 | if _, ok := err.(*Error); !ok {
8 | return err
9 | }
10 |
11 | // Otherwise, make the result and flatten away!
12 | flatErr := new(Error)
13 | flatten(err, flatErr)
14 | return flatErr
15 | }
16 |
17 | func flatten(err error, flatErr *Error) {
18 | switch err := err.(type) {
19 | case *Error:
20 | for _, e := range err.Errors {
21 | flatten(e, flatErr)
22 | }
23 | default:
24 | flatErr.Errors = append(flatErr.Errors, err)
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-multierror/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/hashicorp/go-multierror
2 |
3 | go 1.14
4 |
5 | require github.com/hashicorp/errwrap v1.0.0
6 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-multierror/go.sum:
--------------------------------------------------------------------------------
1 | github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA=
2 | github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
3 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-multierror/sort.go:
--------------------------------------------------------------------------------
1 | package multierror
2 |
3 | // Len implements sort.Interface function for length
4 | func (err Error) Len() int {
5 | return len(err.Errors)
6 | }
7 |
8 | // Swap implements sort.Interface function for swapping elements
9 | func (err Error) Swap(i, j int) {
10 | err.Errors[i], err.Errors[j] = err.Errors[j], err.Errors[i]
11 | }
12 |
13 | // Less implements sort.Interface function for determining order
14 | func (err Error) Less(i, j int) bool {
15 | return err.Errors[i].Error() < err.Errors[j].Error()
16 | }
17 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-retryablehttp/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/
2 | *.iml
3 | *.test
4 | .vscode/
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-retryablehttp/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 |
3 | language: go
4 |
5 | go:
6 | - 1.12.4
7 |
8 | branches:
9 | only:
10 | - master
11 |
12 | script: make updatedeps test
13 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-retryablehttp/Makefile:
--------------------------------------------------------------------------------
1 | default: test
2 |
3 | test:
4 | go vet ./...
5 | go test -race ./...
6 |
7 | updatedeps:
8 | go get -f -t -u ./...
9 | go get -f -u ./...
10 |
11 | .PHONY: default test updatedeps
12 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-retryablehttp/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/hashicorp/go-retryablehttp
2 |
3 | require github.com/hashicorp/go-cleanhttp v0.5.0
4 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-retryablehttp/go.sum:
--------------------------------------------------------------------------------
1 | github.com/hashicorp/go-cleanhttp v0.5.0 h1:wvCrVc9TjDls6+YGAF2hAifE1E5U1+b4tH6KdvN3Gig=
2 | github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
3 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-rootcerts/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 |
3 | language: go
4 |
5 | go:
6 | - 1.6
7 |
8 | branches:
9 | only:
10 | - master
11 |
12 | script: make test
13 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-rootcerts/Makefile:
--------------------------------------------------------------------------------
1 | TEST?=./...
2 |
3 | test:
4 | go test $(TEST) $(TESTARGS) -timeout=3s -parallel=4
5 | go vet $(TEST)
6 | go test $(TEST) -race
7 |
8 | .PHONY: test
9 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-rootcerts/doc.go:
--------------------------------------------------------------------------------
1 | // Package rootcerts contains functions to aid in loading CA certificates for
2 | // TLS connections.
3 | //
4 | // In addition, its default behavior on Darwin works around an open issue [1]
5 | // in Go's crypto/x509 that prevents certicates from being loaded from the
6 | // System or Login keychains.
7 | //
8 | // [1] https://github.com/golang/go/issues/14514
9 | package rootcerts
10 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-rootcerts/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/hashicorp/go-rootcerts
2 |
3 | go 1.12
4 |
5 | require github.com/mitchellh/go-homedir v1.1.0
6 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-rootcerts/go.sum:
--------------------------------------------------------------------------------
1 | github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
2 | github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
3 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-rootcerts/rootcerts_base.go:
--------------------------------------------------------------------------------
1 | // +build !darwin
2 |
3 | package rootcerts
4 |
5 | import "crypto/x509"
6 |
7 | // LoadSystemCAs does nothing on non-Darwin systems. We return nil so that
8 | // default behavior of standard TLS config libraries is triggered, which is to
9 | // load system certs.
10 | func LoadSystemCAs() (*x509.CertPool, error) {
11 | return nil, nil
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-sockaddr/.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 | .cover.out*
26 | coverage.html
27 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-sockaddr/doc.go:
--------------------------------------------------------------------------------
1 | /*
2 | Package sockaddr is a Go implementation of the UNIX socket family data types and
3 | related helper functions.
4 | */
5 | package sockaddr
6 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-sockaddr/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/hashicorp/go-sockaddr
2 |
3 | require (
4 | github.com/hashicorp/errwrap v1.0.0
5 | github.com/mitchellh/cli v1.0.0
6 | github.com/mitchellh/go-wordwrap v1.0.0
7 | github.com/ryanuber/columnize v2.1.0+incompatible
8 | )
9 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-sockaddr/route_info.go:
--------------------------------------------------------------------------------
1 | package sockaddr
2 |
3 | // RouteInterface specifies an interface for obtaining memoized route table and
4 | // network information from a given OS.
5 | type RouteInterface interface {
6 | // GetDefaultInterfaceName returns the name of the interface that has a
7 | // default route or an error and an empty string if a problem was
8 | // encountered.
9 | GetDefaultInterfaceName() (string, error)
10 | }
11 |
12 | // VisitCommands visits each command used by the platform-specific RouteInfo
13 | // implementation.
14 | func (ri routeInfo) VisitCommands(fn func(name string, cmd []string)) {
15 | for k, v := range ri.cmds {
16 | cmds := append([]string(nil), v...)
17 | fn(k, cmds)
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-sockaddr/route_info_default.go:
--------------------------------------------------------------------------------
1 | // +build android nacl plan9
2 |
3 | package sockaddr
4 |
5 | import "errors"
6 |
7 | // getDefaultIfName is the default interface function for unsupported platforms.
8 | func getDefaultIfName() (string, error) {
9 | return "", errors.New("No default interface found (unsupported platform)")
10 | }
11 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-syslog/.gitignore:
--------------------------------------------------------------------------------
1 | # Compiled Object files, Static and Dynamic libs (Shared Objects)
2 | *.o
3 | *.a
4 | *.so
5 |
6 | # Folders
7 | _obj
8 | _test
9 |
10 | # Architecture specific extensions/prefixes
11 | *.[568vq]
12 | [568vq].out
13 |
14 | *.cgo1.go
15 | *.cgo2.c
16 | _cgo_defun.c
17 | _cgo_gotypes.go
18 | _cgo_export.*
19 |
20 | _testmain.go
21 |
22 | *.exe
23 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-syslog/README.md:
--------------------------------------------------------------------------------
1 | go-syslog
2 | =========
3 |
4 | This repository provides a very simple `gsyslog` package. The point of this
5 | package is to allow safe importing of syslog without introducing cross-compilation
6 | issues. The stdlib `log/syslog` cannot be imported on Windows systems, and without
7 | conditional compilation this adds complications.
8 |
9 | Instead, `gsyslog` provides a very simple wrapper around `log/syslog` but returns
10 | a runtime error if attempting to initialize on a non Linux or OSX system.
11 |
12 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-syslog/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/hashicorp/go-syslog
2 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-syslog/syslog.go:
--------------------------------------------------------------------------------
1 | package gsyslog
2 |
3 | // Priority maps to the syslog priority levels
4 | type Priority int
5 |
6 | const (
7 | LOG_EMERG Priority = iota
8 | LOG_ALERT
9 | LOG_CRIT
10 | LOG_ERR
11 | LOG_WARNING
12 | LOG_NOTICE
13 | LOG_INFO
14 | LOG_DEBUG
15 | )
16 |
17 | // Syslogger interface is used to write log messages to syslog
18 | type Syslogger interface {
19 | // WriteLevel is used to write a message at a given level
20 | WriteLevel(Priority, []byte) error
21 |
22 | // Write is used to write a message at the default level
23 | Write([]byte) (int, error)
24 |
25 | // Close is used to close the connection to the logger
26 | Close() error
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-syslog/unsupported.go:
--------------------------------------------------------------------------------
1 | // +build windows plan9 nacl
2 |
3 | package gsyslog
4 |
5 | import (
6 | "fmt"
7 | )
8 |
9 | // NewLogger is used to construct a new Syslogger
10 | func NewLogger(p Priority, facility, tag string) (Syslogger, error) {
11 | return nil, fmt.Errorf("Platform does not support syslog")
12 | }
13 |
14 | // DialLogger is used to construct a new Syslogger that establishes connection to remote syslog server
15 | func DialLogger(network, raddr string, p Priority, facility, tag string) (Syslogger, error) {
16 | return nil, fmt.Errorf("Platform does not support syslog")
17 | }
18 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-uuid/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 |
3 | sudo: false
4 |
5 | go:
6 | - 1.4
7 | - 1.5
8 | - 1.6
9 | - tip
10 |
11 | script:
12 | - go test -bench . -benchmem -v ./...
13 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-uuid/README.md:
--------------------------------------------------------------------------------
1 | # uuid [](https://travis-ci.org/hashicorp/go-uuid)
2 |
3 | Generates UUID-format strings using high quality, _purely random_ bytes. It is **not** intended to be RFC compliant, merely to use a well-understood string representation of a 128-bit value. It can also parse UUID-format strings into their component bytes.
4 |
5 | Documentation
6 | =============
7 |
8 | The full documentation is available on [Godoc](http://godoc.org/github.com/hashicorp/go-uuid).
9 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-uuid/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/hashicorp/go-uuid
2 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-version/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 |
3 | go:
4 | - 1.2
5 | - 1.3
6 | - 1.4
7 | - 1.9
8 | - "1.10"
9 | - 1.11
10 | - 1.12
11 |
12 | script:
13 | - go test
14 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-version/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/hashicorp/go-version
2 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-version/version_collection.go:
--------------------------------------------------------------------------------
1 | package version
2 |
3 | // Collection is a type that implements the sort.Interface interface
4 | // so that versions can be sorted.
5 | type Collection []*Version
6 |
7 | func (v Collection) Len() int {
8 | return len(v)
9 | }
10 |
11 | func (v Collection) Less(i, j int) bool {
12 | return v[i].LessThan(v[j])
13 | }
14 |
15 | func (v Collection) Swap(i, j int) {
16 | v[i], v[j] = v[j], v[i]
17 | }
18 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/golang-lru/.gitignore:
--------------------------------------------------------------------------------
1 | # Compiled Object files, Static and Dynamic libs (Shared Objects)
2 | *.o
3 | *.a
4 | *.so
5 |
6 | # Folders
7 | _obj
8 | _test
9 |
10 | # Architecture specific extensions/prefixes
11 | *.[568vq]
12 | [568vq].out
13 |
14 | *.cgo1.go
15 | *.cgo2.c
16 | _cgo_defun.c
17 | _cgo_gotypes.go
18 | _cgo_export.*
19 |
20 | _testmain.go
21 |
22 | *.exe
23 | *.test
24 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/golang-lru/README.md:
--------------------------------------------------------------------------------
1 | golang-lru
2 | ==========
3 |
4 | This provides the `lru` package which implements a fixed-size
5 | thread safe LRU cache. It is based on the cache in Groupcache.
6 |
7 | Documentation
8 | =============
9 |
10 | Full docs are available on [Godoc](http://godoc.org/github.com/hashicorp/golang-lru)
11 |
12 | Example
13 | =======
14 |
15 | Using the LRU is very simple:
16 |
17 | ```go
18 | l, _ := New(128)
19 | for i := 0; i < 256; i++ {
20 | l.Add(i, nil)
21 | }
22 | if l.Len() != 128 {
23 | panic(fmt.Sprintf("bad len: %v", l.Len()))
24 | }
25 | ```
26 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/golang-lru/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/hashicorp/golang-lru
2 |
3 | go 1.12
4 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/hcl/.gitignore:
--------------------------------------------------------------------------------
1 | y.output
2 |
3 | # ignore intellij files
4 | .idea
5 | *.iml
6 | *.ipr
7 | *.iws
8 |
9 | *.test
10 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/hcl/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 |
3 | language: go
4 |
5 | go:
6 | - 1.x
7 | - tip
8 |
9 | branches:
10 | only:
11 | - master
12 |
13 | script: make test
14 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/hcl/Makefile:
--------------------------------------------------------------------------------
1 | TEST?=./...
2 |
3 | default: test
4 |
5 | fmt: generate
6 | go fmt ./...
7 |
8 | test: generate
9 | go get -t ./...
10 | go test $(TEST) $(TESTARGS)
11 |
12 | generate:
13 | go generate ./...
14 |
15 | updatedeps:
16 | go get -u golang.org/x/tools/cmd/stringer
17 |
18 | .PHONY: default generate test updatedeps
19 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/hcl/appveyor.yml:
--------------------------------------------------------------------------------
1 | version: "build-{branch}-{build}"
2 | image: Visual Studio 2015
3 | clone_folder: c:\gopath\src\github.com\hashicorp\hcl
4 | environment:
5 | GOPATH: c:\gopath
6 | init:
7 | - git config --global core.autocrlf false
8 | install:
9 | - cmd: >-
10 | echo %Path%
11 |
12 | go version
13 |
14 | go env
15 |
16 | go get -t ./...
17 |
18 | build_script:
19 | - cmd: go test -v ./...
20 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/hcl/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/hashicorp/hcl
2 |
3 | require github.com/davecgh/go-spew v1.1.1
4 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/hcl/go.sum:
--------------------------------------------------------------------------------
1 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
2 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
3 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/hcl/hcl.go:
--------------------------------------------------------------------------------
1 | // Package hcl decodes HCL into usable Go structures.
2 | //
3 | // hcl input can come in either pure HCL format or JSON format.
4 | // It can be parsed into an AST, and then decoded into a structure,
5 | // or it can be decoded directly from a string into a structure.
6 | //
7 | // If you choose to parse HCL into a raw AST, the benefit is that you
8 | // can write custom visitor implementations to implement custom
9 | // semantic checks. By default, HCL does not perform any semantic
10 | // checks.
11 | package hcl
12 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/hcl/hcl/parser/error.go:
--------------------------------------------------------------------------------
1 | package parser
2 |
3 | import (
4 | "fmt"
5 |
6 | "github.com/hashicorp/hcl/hcl/token"
7 | )
8 |
9 | // PosError is a parse error that contains a position.
10 | type PosError struct {
11 | Pos token.Pos
12 | Err error
13 | }
14 |
15 | func (e *PosError) Error() string {
16 | return fmt.Sprintf("At %s: %s", e.Pos, e.Err)
17 | }
18 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/hcl/lex.go:
--------------------------------------------------------------------------------
1 | package hcl
2 |
3 | import (
4 | "unicode"
5 | "unicode/utf8"
6 | )
7 |
8 | type lexModeValue byte
9 |
10 | const (
11 | lexModeUnknown lexModeValue = iota
12 | lexModeHcl
13 | lexModeJson
14 | )
15 |
16 | // lexMode returns whether we're going to be parsing in JSON
17 | // mode or HCL mode.
18 | func lexMode(v []byte) lexModeValue {
19 | var (
20 | r rune
21 | w int
22 | offset int
23 | )
24 |
25 | for {
26 | r, w = utf8.DecodeRune(v[offset:])
27 | offset += w
28 | if unicode.IsSpace(r) {
29 | continue
30 | }
31 | if r == '{' {
32 | return lexModeJson
33 | }
34 | break
35 | }
36 |
37 | return lexModeHcl
38 | }
39 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/memberlist/.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 | .vagrant/
25 |
26 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/memberlist/alive_delegate.go:
--------------------------------------------------------------------------------
1 | package memberlist
2 |
3 | // AliveDelegate is used to involve a client in processing
4 | // a node "alive" message. When a node joins, either through
5 | // a UDP gossip or TCP push/pull, we update the state of
6 | // that node via an alive message. This can be used to filter
7 | // a node out and prevent it from being considered a peer
8 | // using application specific logic.
9 | type AliveDelegate interface {
10 | // NotifyAlive is invoked when a message about a live
11 | // node is received from the network. Returning a non-nil
12 | // error prevents the node from being considered a peer.
13 | NotifyAlive(peer *Node) error
14 | }
15 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/memberlist/conflict_delegate.go:
--------------------------------------------------------------------------------
1 | package memberlist
2 |
3 | // ConflictDelegate is a used to inform a client that
4 | // a node has attempted to join which would result in a
5 | // name conflict. This happens if two clients are configured
6 | // with the same name but different addresses.
7 | type ConflictDelegate interface {
8 | // NotifyConflict is invoked when a name conflict is detected
9 | NotifyConflict(existing, other *Node)
10 | }
11 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/memberlist/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/hashicorp/memberlist
2 |
3 | go 1.12
4 |
5 | require (
6 | github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da
7 | github.com/davecgh/go-spew v1.1.1 // indirect
8 | github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c
9 | github.com/hashicorp/go-immutable-radix v1.0.0 // indirect
10 | github.com/hashicorp/go-msgpack v0.5.3
11 | github.com/hashicorp/go-multierror v1.0.0
12 | github.com/hashicorp/go-sockaddr v1.0.0
13 | github.com/miekg/dns v1.1.26
14 | github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c // indirect
15 | github.com/pmezard/go-difflib v1.0.0 // indirect
16 | github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529
17 | github.com/stretchr/testify v1.2.2
18 | )
19 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/memberlist/logging.go:
--------------------------------------------------------------------------------
1 | package memberlist
2 |
3 | import (
4 | "fmt"
5 | "net"
6 | )
7 |
8 | func LogAddress(addr net.Addr) string {
9 | if addr == nil {
10 | return "from="
11 | }
12 |
13 | return fmt.Sprintf("from=%s", addr.String())
14 | }
15 |
16 | func LogStringAddress(addr string) string {
17 | if addr == "" {
18 | return "from="
19 | }
20 |
21 | return fmt.Sprintf("from=%s", addr)
22 | }
23 |
24 | func LogConn(conn net.Conn) string {
25 | if conn == nil {
26 | return LogAddress(nil)
27 | }
28 |
29 | return LogAddress(conn.RemoteAddr())
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/memberlist/merge_delegate.go:
--------------------------------------------------------------------------------
1 | package memberlist
2 |
3 | // MergeDelegate is used to involve a client in
4 | // a potential cluster merge operation. Namely, when
5 | // a node does a TCP push/pull (as part of a join),
6 | // the delegate is involved and allowed to cancel the join
7 | // based on custom logic. The merge delegate is NOT invoked
8 | // as part of the push-pull anti-entropy.
9 | type MergeDelegate interface {
10 | // NotifyMerge is invoked when a merge could take place.
11 | // Provides a list of the nodes known by the peer. If
12 | // the return value is non-nil, the merge is canceled.
13 | NotifyMerge(peers []*Node) error
14 | }
15 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/memberlist/ping_delegate.go:
--------------------------------------------------------------------------------
1 | package memberlist
2 |
3 | import "time"
4 |
5 | // PingDelegate is used to notify an observer how long it took for a ping message to
6 | // complete a round trip. It can also be used for writing arbitrary byte slices
7 | // into ack messages. Note that in order to be meaningful for RTT estimates, this
8 | // delegate does not apply to indirect pings, nor fallback pings sent over TCP.
9 | type PingDelegate interface {
10 | // AckPayload is invoked when an ack is being sent; the returned bytes will be appended to the ack
11 | AckPayload() []byte
12 | // NotifyPing is invoked when an ack for a ping is received
13 | NotifyPingComplete(other *Node, rtt time.Duration, payload []byte)
14 | }
15 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/memberlist/tag.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | set -e
3 |
4 | # The version must be supplied from the environment. Do not include the
5 | # leading "v".
6 | if [ -z $VERSION ]; then
7 | echo "Please specify a version."
8 | exit 1
9 | fi
10 |
11 | # Generate the tag.
12 | echo "==> Tagging version $VERSION..."
13 | git commit --allow-empty -a --gpg-sign=348FFC4C -m "Release v$VERSION"
14 | git tag -a -m "Version $VERSION" -s -u 348FFC4C "v${VERSION}" master
15 |
16 | exit 0
17 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/memberlist/todo.md:
--------------------------------------------------------------------------------
1 | # TODO
2 | * Dynamic RTT discovery
3 | * Compute 99th percentile for ping/ack
4 | * Better lower bound for ping/ack, faster failure detection
5 | * Dynamic MTU discovery
6 | * Prevent lost updates, increases efficiency
7 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/raft/.gitignore:
--------------------------------------------------------------------------------
1 | # Compiled Object files, Static and Dynamic libs (Shared Objects)
2 | *.o
3 | *.a
4 | *.so
5 |
6 | # Folders
7 | _obj
8 | _test
9 |
10 | # Architecture specific extensions/prefixes
11 | *.[568vq]
12 | [568vq].out
13 |
14 | *.cgo1.go
15 | *.cgo2.c
16 | _cgo_defun.c
17 | _cgo_gotypes.go
18 | _cgo_export.*
19 |
20 | _testmain.go
21 |
22 | *.exe
23 | *.test
24 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/raft/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 |
3 | go:
4 | # Disabled until https://github.com/armon/go-metrics/issues/59 is fixed
5 | # - 1.6
6 | - 1.8
7 | - 1.9
8 | - 1.12
9 | - tip
10 |
11 | install:
12 | - make deps
13 | - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest
14 |
15 | script:
16 | - make integ
17 |
18 | notifications:
19 | flowdock:
20 | secure: fZrcf9rlh2IrQrlch1sHkn3YI7SKvjGnAl/zyV5D6NROe1Bbr6d3QRMuCXWWdhJHzjKmXk5rIzbqJhUc0PNF7YjxGNKSzqWMQ56KcvN1k8DzlqxpqkcA3Jbs6fXCWo2fssRtZ7hj/wOP1f5n6cc7kzHDt9dgaYJ6nO2fqNPJiTc=
21 |
22 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/raft/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/hashicorp/raft
2 |
3 | go 1.12
4 |
5 | require (
6 | github.com/armon/go-metrics v0.0.0-20190430140413-ec5e00d3c878
7 | github.com/boltdb/bolt v1.3.1 // indirect
8 | github.com/hashicorp/go-hclog v0.9.1
9 | github.com/hashicorp/go-msgpack v0.5.5
10 | github.com/hashicorp/raft-boltdb v0.0.0-20171010151810-6e5ba93211ea
11 | github.com/stretchr/testify v1.3.0
12 | golang.org/x/sys v0.0.0-20190523142557-0e01d883c5c5 // indirect
13 | )
14 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/raft/stable.go:
--------------------------------------------------------------------------------
1 | package raft
2 |
3 | // StableStore is used to provide stable storage
4 | // of key configurations to ensure safety.
5 | type StableStore interface {
6 | Set(key []byte, val []byte) error
7 |
8 | // Get returns the value for key, or an empty byte slice if key was not found.
9 | Get(key []byte) ([]byte, error)
10 |
11 | SetUint64(key []byte, val uint64) error
12 |
13 | // GetUint64 returns the uint64 value for key, or 0 if key was not found.
14 | GetUint64(key []byte) (uint64, error)
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/raft/tag.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | set -e
3 |
4 | # The version must be supplied from the environment. Do not include the
5 | # leading "v".
6 | if [ -z $VERSION ]; then
7 | echo "Please specify a version."
8 | exit 1
9 | fi
10 |
11 | # Generate the tag.
12 | echo "==> Tagging version $VERSION..."
13 | git commit --allow-empty -a --gpg-sign=348FFC4C -m "Release v$VERSION"
14 | git tag -a -m "Version $VERSION" -s -u 348FFC4C "v${VERSION}" master
15 |
16 | exit 0
17 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/raft/testing_batch.go:
--------------------------------------------------------------------------------
1 | // +build batchtest
2 |
3 | package raft
4 |
5 | func init() {
6 | userSnapshotErrorsOnNoData = false
7 | }
8 |
9 | // ApplyBatch enables MockFSM to satisfy the BatchingFSM interface. This
10 | // function is gated by the batchtest build flag.
11 | //
12 | // NOTE: This is exposed for middleware testing purposes and is not a stable API
13 | func (m *MockFSM) ApplyBatch(logs []*Log) []interface{} {
14 | m.Lock()
15 | defer m.Unlock()
16 |
17 | ret := make([]interface{}, len(logs))
18 | for i, log := range logs {
19 | switch log.Type {
20 | case LogCommand:
21 | m.logs = append(m.logs, log.Data)
22 | ret[i] = len(m.logs)
23 | default:
24 | ret[i] = nil
25 | }
26 | }
27 |
28 | return ret
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/serf/serf/broadcast.go:
--------------------------------------------------------------------------------
1 | package serf
2 |
3 | import (
4 | "github.com/hashicorp/memberlist"
5 | )
6 |
7 | // broadcast is an implementation of memberlist.Broadcast and is used
8 | // to manage broadcasts across the memberlist channel that are related
9 | // only to Serf.
10 | type broadcast struct {
11 | msg []byte
12 | notify chan<- struct{}
13 | }
14 |
15 | func (b *broadcast) Invalidates(other memberlist.Broadcast) bool {
16 | return false
17 | }
18 |
19 | // implements memberlist.UniqueBroadcast
20 | func (b *broadcast) UniqueBroadcast() {}
21 |
22 | func (b *broadcast) Message() []byte {
23 | return b.msg
24 | }
25 |
26 | func (b *broadcast) Finished() {
27 | if b.notify != nil {
28 | close(b.notify)
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/serf/serf/conflict_delegate.go:
--------------------------------------------------------------------------------
1 | package serf
2 |
3 | import (
4 | "github.com/hashicorp/memberlist"
5 | )
6 |
7 | type conflictDelegate struct {
8 | serf *Serf
9 | }
10 |
11 | func (c *conflictDelegate) NotifyConflict(existing, other *memberlist.Node) {
12 | c.serf.handleNodeConflict(existing, other)
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/serf/serf/event_delegate.go:
--------------------------------------------------------------------------------
1 | package serf
2 |
3 | import (
4 | "github.com/hashicorp/memberlist"
5 | )
6 |
7 | type eventDelegate struct {
8 | serf *Serf
9 | }
10 |
11 | func (e *eventDelegate) NotifyJoin(n *memberlist.Node) {
12 | e.serf.handleNodeJoin(n)
13 | }
14 |
15 | func (e *eventDelegate) NotifyLeave(n *memberlist.Node) {
16 | e.serf.handleNodeLeave(n)
17 | }
18 |
19 | func (e *eventDelegate) NotifyUpdate(n *memberlist.Node) {
20 | e.serf.handleNodeUpdate(n)
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/yamux/.gitignore:
--------------------------------------------------------------------------------
1 | # Compiled Object files, Static and Dynamic libs (Shared Objects)
2 | *.o
3 | *.a
4 | *.so
5 |
6 | # Folders
7 | _obj
8 | _test
9 |
10 | # Architecture specific extensions/prefixes
11 | *.[568vq]
12 | [568vq].out
13 |
14 | *.cgo1.go
15 | *.cgo2.c
16 | _cgo_defun.c
17 | _cgo_gotypes.go
18 | _cgo_export.*
19 |
20 | _testmain.go
21 |
22 | *.exe
23 | *.test
24 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/yamux/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/hashicorp/yamux
2 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-colorable/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | sudo: false
3 | go:
4 | - 1.13.x
5 | - tip
6 |
7 | before_install:
8 | - go get -t -v ./...
9 |
10 | script:
11 | - ./go.test.sh
12 |
13 | after_success:
14 | - bash <(curl -s https://codecov.io/bash)
15 |
16 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-colorable/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/mattn/go-colorable
2 |
3 | require (
4 | github.com/mattn/go-isatty v0.0.12
5 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae // indirect
6 | )
7 |
8 | go 1.13
9 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-colorable/go.sum:
--------------------------------------------------------------------------------
1 | github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
2 | github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
3 | golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
4 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae h1:/WDfKMnPU+m5M4xB+6x4kaepxRw6jWvR5iDRdvjHgy8=
5 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
6 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-colorable/go.test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -e
4 | echo "" > coverage.txt
5 |
6 | for d in $(go list ./... | grep -v vendor); do
7 | go test -race -coverprofile=profile.out -covermode=atomic "$d"
8 | if [ -f profile.out ]; then
9 | cat profile.out >> coverage.txt
10 | rm profile.out
11 | fi
12 | done
13 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-isatty/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | sudo: false
3 | go:
4 | - 1.13.x
5 | - tip
6 |
7 | before_install:
8 | - go get -t -v ./...
9 |
10 | script:
11 | - ./go.test.sh
12 |
13 | after_success:
14 | - bash <(curl -s https://codecov.io/bash)
15 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-isatty/doc.go:
--------------------------------------------------------------------------------
1 | // Package isatty implements interface to isatty
2 | package isatty
3 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-isatty/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/mattn/go-isatty
2 |
3 | go 1.12
4 |
5 | require golang.org/x/sys v0.0.0-20200116001909-b77594299b42
6 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-isatty/go.sum:
--------------------------------------------------------------------------------
1 | golang.org/x/sys v0.0.0-20200116001909-b77594299b42 h1:vEOn+mP2zCOVzKckCZy6YsCtDblrpj/w7B9nxGNELpg=
2 | golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
3 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-isatty/go.test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -e
4 | echo "" > coverage.txt
5 |
6 | for d in $(go list ./... | grep -v vendor); do
7 | go test -race -coverprofile=profile.out -covermode=atomic "$d"
8 | if [ -f profile.out ]; then
9 | cat profile.out >> coverage.txt
10 | rm profile.out
11 | fi
12 | done
13 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-isatty/isatty_bsd.go:
--------------------------------------------------------------------------------
1 | // +build darwin freebsd openbsd netbsd dragonfly
2 | // +build !appengine
3 |
4 | package isatty
5 |
6 | import "golang.org/x/sys/unix"
7 |
8 | // IsTerminal return true if the file descriptor is terminal.
9 | func IsTerminal(fd uintptr) bool {
10 | _, err := unix.IoctlGetTermios(int(fd), unix.TIOCGETA)
11 | return err == nil
12 | }
13 |
14 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2
15 | // terminal. This is also always false on this environment.
16 | func IsCygwinTerminal(fd uintptr) bool {
17 | return false
18 | }
19 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-isatty/isatty_others.go:
--------------------------------------------------------------------------------
1 | // +build appengine js nacl
2 |
3 | package isatty
4 |
5 | // IsTerminal returns true if the file descriptor is terminal which
6 | // is always false on js and appengine classic which is a sandboxed PaaS.
7 | func IsTerminal(fd uintptr) bool {
8 | return false
9 | }
10 |
11 | // IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2
12 | // terminal. This is also always false on this environment.
13 | func IsCygwinTerminal(fd uintptr) bool {
14 | return false
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-isatty/isatty_plan9.go:
--------------------------------------------------------------------------------
1 | // +build plan9
2 |
3 | package isatty
4 |
5 | import (
6 | "syscall"
7 | )
8 |
9 | // IsTerminal returns true if the given file descriptor is a terminal.
10 | func IsTerminal(fd uintptr) bool {
11 | path, err := syscall.Fd2path(int(fd))
12 | if err != nil {
13 | return false
14 | }
15 | return path == "/dev/cons" || path == "/mnt/term/dev/cons"
16 | }
17 |
18 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2
19 | // terminal. This is also always false on this environment.
20 | func IsCygwinTerminal(fd uintptr) bool {
21 | return false
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-isatty/isatty_solaris.go:
--------------------------------------------------------------------------------
1 | // +build solaris
2 | // +build !appengine
3 |
4 | package isatty
5 |
6 | import (
7 | "golang.org/x/sys/unix"
8 | )
9 |
10 | // IsTerminal returns true if the given file descriptor is a terminal.
11 | // see: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libbc/libc/gen/common/isatty.c
12 | func IsTerminal(fd uintptr) bool {
13 | var termio unix.Termio
14 | err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio)
15 | return err == nil
16 | }
17 |
18 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2
19 | // terminal. This is also always false on this environment.
20 | func IsCygwinTerminal(fd uintptr) bool {
21 | return false
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-isatty/isatty_tcgets.go:
--------------------------------------------------------------------------------
1 | // +build linux aix
2 | // +build !appengine
3 |
4 | package isatty
5 |
6 | import "golang.org/x/sys/unix"
7 |
8 | // IsTerminal return true if the file descriptor is terminal.
9 | func IsTerminal(fd uintptr) bool {
10 | _, err := unix.IoctlGetTermios(int(fd), unix.TCGETS)
11 | return err == nil
12 | }
13 |
14 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2
15 | // terminal. This is also always false on this environment.
16 | func IsCygwinTerminal(fd uintptr) bool {
17 | return false
18 | }
19 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-isatty/renovate.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": [
3 | "config:base"
4 | ],
5 | "postUpdateOptions": [
6 | "gomodTidy"
7 | ]
8 | }
9 |
--------------------------------------------------------------------------------
/vendor/github.com/matttproud/golang_protobuf_extensions/NOTICE:
--------------------------------------------------------------------------------
1 | Copyright 2012 Matt T. Proud (matt.proud@gmail.com)
2 |
--------------------------------------------------------------------------------
/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/.gitignore:
--------------------------------------------------------------------------------
1 | cover.dat
2 |
--------------------------------------------------------------------------------
/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/Makefile:
--------------------------------------------------------------------------------
1 | all:
2 |
3 | cover:
4 | go test -cover -v -coverprofile=cover.dat ./...
5 | go tool cover -func cover.dat
6 |
7 | .PHONY: cover
8 |
--------------------------------------------------------------------------------
/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/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | sudo: false
3 |
4 | go:
5 | - "1.12.x"
6 | - "1.13.x"
7 | - tip
8 |
9 | env:
10 | - GO111MODULE=on
11 |
12 | script:
13 | - go test -race -v -bench=. -coverprofile=coverage.txt -covermode=atomic ./...
14 |
15 | after_success:
16 | - bash <(curl -s https://codecov.io/bash)
17 |
--------------------------------------------------------------------------------
/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 | // +build fuzz
2 |
3 | package dns
4 |
5 | import "strings"
6 |
7 | func Fuzz(data []byte) int {
8 | msg := new(Msg)
9 |
10 | if err := msg.Unpack(data); err != nil {
11 | return 0
12 | }
13 | if _, err := msg.Pack(); err != nil {
14 | return 0
15 | }
16 |
17 | return 1
18 | }
19 |
20 | func FuzzNewRR(data []byte) int {
21 | str := string(data)
22 | // Do not fuzz lines that include the $INCLUDE keyword and hint the fuzzer
23 | // at avoiding them.
24 | // See GH#1025 for context.
25 | if strings.Contains(strings.ToUpper(str), "$INCLUDE") {
26 | return -1
27 | }
28 | if _, err := NewRR(str); err != nil {
29 | return 0
30 | }
31 | return 1
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/github.com/miekg/dns/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/miekg/dns
2 |
3 | go 1.12
4 |
5 | require (
6 | golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392
7 | golang.org/x/net v0.0.0-20190923162816-aa69164e4478
8 | golang.org/x/sync v0.0.0-20190423024810-112230192c58
9 | golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe
10 | golang.org/x/text v0.3.2 // indirect
11 | golang.org/x/tools v0.0.0-20190907020128-2ca718005c18 // indirect
12 | )
13 |
--------------------------------------------------------------------------------
/vendor/github.com/miekg/dns/listen_go_not111.go:
--------------------------------------------------------------------------------
1 | // +build !go1.11 !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd
2 |
3 | package dns
4 |
5 | import "net"
6 |
7 | const supportsReusePort = false
8 |
9 | func listenTCP(network, addr string, reuseport bool) (net.Listener, error) {
10 | if reuseport {
11 | // TODO(tmthrgd): return an error?
12 | }
13 |
14 | return net.Listen(network, addr)
15 | }
16 |
17 | func listenUDP(network, addr string, reuseport bool) (net.PacketConn, error) {
18 | if reuseport {
19 | // TODO(tmthrgd): return an error?
20 | }
21 |
22 | return net.ListenPacket(network, addr)
23 | }
24 |
--------------------------------------------------------------------------------
/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, 26}
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/mitchellh/copystructure/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 |
3 | go:
4 | - 1.7
5 | - tip
6 |
7 | script:
8 | - go test
9 |
10 | matrix:
11 | allow_failures:
12 | - go: tip
13 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/copystructure/README.md:
--------------------------------------------------------------------------------
1 | # copystructure
2 |
3 | copystructure is a Go library for deep copying values in Go.
4 |
5 | This allows you to copy Go values that may contain reference values
6 | such as maps, slices, or pointers, and copy their data as well instead
7 | of just their references.
8 |
9 | ## Installation
10 |
11 | Standard `go get`:
12 |
13 | ```
14 | $ go get github.com/mitchellh/copystructure
15 | ```
16 |
17 | ## Usage & Example
18 |
19 | For usage and examples see the [Godoc](http://godoc.org/github.com/mitchellh/copystructure).
20 |
21 | The `Copy` function has examples associated with it there.
22 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/copystructure/copier_time.go:
--------------------------------------------------------------------------------
1 | package copystructure
2 |
3 | import (
4 | "reflect"
5 | "time"
6 | )
7 |
8 | func init() {
9 | Copiers[reflect.TypeOf(time.Time{})] = timeCopier
10 | }
11 |
12 | func timeCopier(v interface{}) (interface{}, error) {
13 | // Just... copy it.
14 | return v.(time.Time), nil
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/copystructure/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/mitchellh/copystructure
2 |
3 | require github.com/mitchellh/reflectwalk v1.0.0
4 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/copystructure/go.sum:
--------------------------------------------------------------------------------
1 | github.com/mitchellh/reflectwalk v1.0.0 h1:9D+8oIskB4VJBN5SFlmc27fSlIBZaov1Wpk/IfikLNY=
2 | github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
3 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/go-homedir/README.md:
--------------------------------------------------------------------------------
1 | # go-homedir
2 |
3 | This is a Go library for detecting the user's home directory without
4 | the use of cgo, so the library can be used in cross-compilation environments.
5 |
6 | Usage is incredibly simple, just call `homedir.Dir()` to get the home directory
7 | for a user, and `homedir.Expand()` to expand the `~` in a path to the home
8 | directory.
9 |
10 | **Why not just use `os/user`?** The built-in `os/user` package requires
11 | cgo on Darwin systems. This means that any Go code that uses that package
12 | cannot cross compile. But 99% of the time the use for `os/user` is just to
13 | retrieve the home directory, which we can do for the current user without
14 | cgo. This library does that, enabling cross-compilation.
15 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/go-homedir/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/mitchellh/go-homedir
2 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/go-testing-interface/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 |
3 | go:
4 | - 1.8
5 | - 1.x
6 | - tip
7 |
8 | script:
9 | - go test
10 |
11 | matrix:
12 | allow_failures:
13 | - go: tip
14 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/go-testing-interface/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/mitchellh/go-testing-interface
2 |
3 | go 1.14
4 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/hashstructure/include.go:
--------------------------------------------------------------------------------
1 | package hashstructure
2 |
3 | // Includable is an interface that can optionally be implemented by
4 | // a struct. It will be called for each field in the struct to check whether
5 | // it should be included in the hash.
6 | type Includable interface {
7 | HashInclude(field string, v interface{}) (bool, error)
8 | }
9 |
10 | // IncludableMap is an interface that can optionally be implemented by
11 | // a struct. It will be called when a map-type field is found to ask the
12 | // struct if the map item should be included in the hash.
13 | type IncludableMap interface {
14 | HashIncludeMap(field string, k, v interface{}) (bool, error)
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/mapstructure/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 |
3 | go:
4 | - "1.14.x"
5 | - tip
6 |
7 | script:
8 | - go test
9 | - go test -bench . -benchmem
10 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/mapstructure/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/mitchellh/mapstructure
2 |
3 | go 1.14
4 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/reflectwalk/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/reflectwalk/README.md:
--------------------------------------------------------------------------------
1 | # reflectwalk
2 |
3 | reflectwalk is a Go library for "walking" a value in Go using reflection,
4 | in the same way a directory tree can be "walked" on the filesystem. Walking
5 | a complex structure can allow you to do manipulations on unknown structures
6 | such as those decoded from JSON.
7 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/reflectwalk/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/mitchellh/reflectwalk
2 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/reflectwalk/location.go:
--------------------------------------------------------------------------------
1 | package reflectwalk
2 |
3 | //go:generate stringer -type=Location location.go
4 |
5 | type Location uint
6 |
7 | const (
8 | None Location = iota
9 | Map
10 | MapKey
11 | MapValue
12 | Slice
13 | SliceElem
14 | Array
15 | ArrayElem
16 | Struct
17 | StructField
18 | WalkLoc
19 | )
20 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/reflectwalk/location_string.go:
--------------------------------------------------------------------------------
1 | // Code generated by "stringer -type=Location location.go"; DO NOT EDIT.
2 |
3 | package reflectwalk
4 |
5 | import "fmt"
6 |
7 | const _Location_name = "NoneMapMapKeyMapValueSliceSliceElemArrayArrayElemStructStructFieldWalkLoc"
8 |
9 | var _Location_index = [...]uint8{0, 4, 7, 13, 21, 26, 35, 40, 49, 55, 66, 73}
10 |
11 | func (i Location) String() string {
12 | if i >= Location(len(_Location_index)-1) {
13 | return fmt.Sprintf("Location(%d)", i)
14 | }
15 | return _Location_name[_Location_index[i]:_Location_index[i+1]]
16 | }
17 |
--------------------------------------------------------------------------------
/vendor/github.com/pkg/errors/.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/pkg/errors/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | go_import_path: github.com/pkg/errors
3 | go:
4 | - 1.4.x
5 | - 1.5.x
6 | - 1.6.x
7 | - 1.7.x
8 | - 1.8.x
9 | - 1.9.x
10 | - 1.10.x
11 | - 1.11.x
12 | - tip
13 |
14 | script:
15 | - go test -v ./...
16 |
--------------------------------------------------------------------------------
/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://godoc.org/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 | /fixtures/
2 |
--------------------------------------------------------------------------------
/vendor/github.com/prometheus/procfs/.golangci.yml:
--------------------------------------------------------------------------------
1 | linters:
2 | enable:
3 | - staticcheck
4 | - govet
5 |
--------------------------------------------------------------------------------
/vendor/github.com/prometheus/procfs/MAINTAINERS.md:
--------------------------------------------------------------------------------
1 | * Johannes 'fish' Ziemke @discordianfish
2 | * Paul Gier @pgier
3 |
--------------------------------------------------------------------------------
/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/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/prometheus/procfs
2 |
3 | go 1.12
4 |
5 | require (
6 | github.com/google/go-cmp v0.3.1
7 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
8 | )
9 |
--------------------------------------------------------------------------------
/vendor/github.com/prometheus/procfs/go.sum:
--------------------------------------------------------------------------------
1 | github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg=
2 | github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
3 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY=
4 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
5 |
--------------------------------------------------------------------------------
/vendor/github.com/russross/blackfriday/v2/.gitignore:
--------------------------------------------------------------------------------
1 | *.out
2 | *.swp
3 | *.8
4 | *.6
5 | _obj
6 | _test*
7 | markdown
8 | tags
9 |
--------------------------------------------------------------------------------
/vendor/github.com/russross/blackfriday/v2/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 | language: go
3 | go:
4 | - "1.10.x"
5 | - "1.11.x"
6 | - tip
7 | matrix:
8 | fast_finish: true
9 | allow_failures:
10 | - go: tip
11 | install:
12 | - # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step).
13 | script:
14 | - go get -t -v ./...
15 | - diff -u <(echo -n) <(gofmt -d -s .)
16 | - go tool vet .
17 | - go test -v ./...
18 |
--------------------------------------------------------------------------------
/vendor/github.com/russross/blackfriday/v2/esc.go:
--------------------------------------------------------------------------------
1 | package blackfriday
2 |
3 | import (
4 | "html"
5 | "io"
6 | )
7 |
8 | var htmlEscaper = [256][]byte{
9 | '&': []byte("&"),
10 | '<': []byte("<"),
11 | '>': []byte(">"),
12 | '"': []byte("""),
13 | }
14 |
15 | func escapeHTML(w io.Writer, s []byte) {
16 | var start, end int
17 | for end < len(s) {
18 | escSeq := htmlEscaper[s[end]]
19 | if escSeq != nil {
20 | w.Write(s[start:end])
21 | w.Write(escSeq)
22 | start = end + 1
23 | }
24 | end++
25 | }
26 | if start < len(s) && end <= len(s) {
27 | w.Write(s[start:end])
28 | }
29 | }
30 |
31 | func escLink(w io.Writer, text []byte) {
32 | unesc := html.UnescapeString(string(text))
33 | escapeHTML(w, []byte(unesc))
34 | }
35 |
--------------------------------------------------------------------------------
/vendor/github.com/russross/blackfriday/v2/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/russross/blackfriday/v2
2 |
--------------------------------------------------------------------------------
/vendor/github.com/sean-/seed/.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/shurcooL/sanitized_anchor_name/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 | language: go
3 | go:
4 | - 1.x
5 | - master
6 | matrix:
7 | allow_failures:
8 | - go: master
9 | fast_finish: true
10 | install:
11 | - # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step).
12 | script:
13 | - go get -t -v ./...
14 | - diff -u <(echo -n) <(gofmt -d -s .)
15 | - go tool vet .
16 | - go test -v -race ./...
17 |
--------------------------------------------------------------------------------
/vendor/github.com/shurcooL/sanitized_anchor_name/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/shurcooL/sanitized_anchor_name
2 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/objx/.codeclimate.yml:
--------------------------------------------------------------------------------
1 | engines:
2 | gofmt:
3 | enabled: true
4 | golint:
5 | enabled: true
6 | govet:
7 | enabled: true
8 |
9 | exclude_patterns:
10 | - ".github/"
11 | - "vendor/"
12 | - "codegen/"
13 | - "doc.go"
14 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/objx/.gitignore:
--------------------------------------------------------------------------------
1 | # Binaries for programs and plugins
2 | *.exe
3 | *.dll
4 | *.so
5 | *.dylib
6 |
7 | # Test binary, build with `go test -c`
8 | *.test
9 |
10 | # Output of the go coverage tool, specifically when used with LiteIDE
11 | *.out
12 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/objx/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | go:
3 | - 1.8
4 | - 1.9
5 | - tip
6 |
7 | env:
8 | global:
9 | - CC_TEST_REPORTER_ID=68feaa3410049ce73e145287acbcdacc525087a30627f96f04e579e75bd71c00
10 |
11 | before_script:
12 | - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
13 | - chmod +x ./cc-test-reporter
14 | - ./cc-test-reporter before-build
15 |
16 | install:
17 | - go get github.com/go-task/task/cmd/task
18 |
19 | script:
20 | - task dl-deps
21 | - task lint
22 | - task test-coverage
23 |
24 | after_script:
25 | - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
26 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/objx/Gopkg.toml:
--------------------------------------------------------------------------------
1 | [prune]
2 | unused-packages = true
3 | non-go = true
4 | go-tests = true
5 |
6 | [[constraint]]
7 | name = "github.com/stretchr/testify"
8 | version = "~1.2.0"
9 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/objx/Taskfile.yml:
--------------------------------------------------------------------------------
1 | default:
2 | deps: [test]
3 |
4 | dl-deps:
5 | desc: Downloads cli dependencies
6 | cmds:
7 | - go get -u github.com/golang/lint/golint
8 | - go get -u github.com/golang/dep/cmd/dep
9 |
10 | update-deps:
11 | desc: Updates dependencies
12 | cmds:
13 | - dep ensure
14 | - dep ensure -update
15 |
16 | lint:
17 | desc: Runs golint
18 | cmds:
19 | - go fmt $(go list ./... | grep -v /vendor/)
20 | - go vet $(go list ./... | grep -v /vendor/)
21 | - golint $(ls *.go | grep -v "doc.go")
22 | silent: true
23 |
24 | test:
25 | desc: Runs go tests
26 | cmds:
27 | - go test -race .
28 |
29 | test-coverage:
30 | desc: Runs go tests and calucates test coverage
31 | cmds:
32 | - go test -coverprofile=c.out .
33 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/objx/constants.go:
--------------------------------------------------------------------------------
1 | package objx
2 |
3 | const (
4 | // PathSeparator is the character used to separate the elements
5 | // of the keypath.
6 | //
7 | // For example, `location.address.city`
8 | PathSeparator string = "."
9 |
10 | // SignatureSeparator is the character that is used to
11 | // separate the Base64 string from the security signature.
12 | SignatureSeparator = "_"
13 | )
14 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/objx/security.go:
--------------------------------------------------------------------------------
1 | package objx
2 |
3 | import (
4 | "crypto/sha1"
5 | "encoding/hex"
6 | )
7 |
8 | // HashWithKey hashes the specified string using the security key
9 | func HashWithKey(data, key string) string {
10 | d := sha1.Sum([]byte(data + ":" + key))
11 | return hex.EncodeToString(d[:])
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/objx/tests.go:
--------------------------------------------------------------------------------
1 | package objx
2 |
3 | // Has gets whether there is something at the specified selector
4 | // or not.
5 | //
6 | // If m is nil, Has will always return false.
7 | func (m Map) Has(selector string) bool {
8 | if m == nil {
9 | return false
10 | }
11 | return !m.Get(selector).IsNil()
12 | }
13 |
14 | // IsNil gets whether the data is nil or not.
15 | func (v *Value) IsNil() bool {
16 | return v == nil || v.data == nil
17 | }
18 |
--------------------------------------------------------------------------------
/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/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 | {{.Comment}}
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/tv42/httpunix/.gitignore:
--------------------------------------------------------------------------------
1 | *.test
2 |
--------------------------------------------------------------------------------
/vendor/github.com/urfave/cli/v2/.flake8:
--------------------------------------------------------------------------------
1 | [flake8]
2 | max-line-length = 120
3 |
--------------------------------------------------------------------------------
/vendor/github.com/urfave/cli/v2/.gitignore:
--------------------------------------------------------------------------------
1 | *.coverprofile
2 | *.orig
3 | node_modules/
4 | vendor
5 | .idea
6 | internal/*/built-example
7 | coverage.txt
8 |
--------------------------------------------------------------------------------
/vendor/github.com/urfave/cli/v2/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/urfave/cli/v2
2 |
3 | go 1.11
4 |
5 | require (
6 | github.com/BurntSushi/toml v0.3.1
7 | github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d
8 | gopkg.in/yaml.v2 v2.2.2
9 | )
10 |
--------------------------------------------------------------------------------
/vendor/github.com/urfave/cli/v2/sort.go:
--------------------------------------------------------------------------------
1 | package cli
2 |
3 | import "unicode"
4 |
5 | // lexicographicLess compares strings alphabetically considering case.
6 | func lexicographicLess(i, j string) bool {
7 | iRunes := []rune(i)
8 | jRunes := []rune(j)
9 |
10 | lenShared := len(iRunes)
11 | if lenShared > len(jRunes) {
12 | lenShared = len(jRunes)
13 | }
14 |
15 | for index := 0; index < lenShared; index++ {
16 | ir := iRunes[index]
17 | jr := jRunes[index]
18 |
19 | if lir, ljr := unicode.ToLower(ir), unicode.ToLower(jr); lir != ljr {
20 | return lir < ljr
21 | }
22 |
23 | if ir != jr {
24 | return ir < jr
25 | }
26 | }
27 |
28 | return i < j
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/go.opentelemetry.io/otel/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | Thumbs.db
3 |
4 | .tools/
5 | .idea/
6 | .vscode/
7 | *.iml
8 | *.so
9 | coverage.*
10 |
11 | gen/
12 |
13 | /example/basic/basic
14 | /example/grpc/client/client
15 | /example/grpc/server/server
16 | /example/http/client/client
17 | /example/http/server/server
18 | /example/jaeger/jaeger
19 | /example/namedtracer/namedtracer
20 | /example/prometheus/prometheus
21 | /example/zipkin/zipkin
22 | /example/otel-collector/otel-collector
23 |
--------------------------------------------------------------------------------
/vendor/go.opentelemetry.io/otel/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "opentelemetry-proto"]
2 | path = exporters/otlp/internal/opentelemetry-proto
3 | url = https://github.com/open-telemetry/opentelemetry-proto
4 |
--------------------------------------------------------------------------------
/vendor/go.opentelemetry.io/otel/CODEOWNERS:
--------------------------------------------------------------------------------
1 | #####################################################
2 | #
3 | # List of approvers for this repository
4 | #
5 | #####################################################
6 | #
7 | # Learn about membership in OpenTelemetry community:
8 | # https://github.com/open-telemetry/community/blob/master/community-membership.md
9 | #
10 | #
11 | # Learn about CODEOWNERS file format:
12 | # https://help.github.com/en/articles/about-code-owners
13 | #
14 |
15 | * @jmacd @lizthegrey @MrAlias @Aneurysm9 @evantorrie @XSAM
16 |
17 | CODEOWNERS @MrAlias @Aneurysm9
18 |
--------------------------------------------------------------------------------
/vendor/go.opentelemetry.io/otel/doc.go:
--------------------------------------------------------------------------------
1 | // Copyright The OpenTelemetry Authors
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | // Package otel contains OpenTelemetry Go packages.
16 | package otel // import "go.opentelemetry.io/otel"
17 |
--------------------------------------------------------------------------------
/vendor/go.opentelemetry.io/otel/go.mod:
--------------------------------------------------------------------------------
1 | module go.opentelemetry.io/otel
2 |
3 | go 1.14
4 |
5 | require (
6 | github.com/google/go-cmp v0.5.2
7 | github.com/stretchr/testify v1.6.1
8 | )
9 |
--------------------------------------------------------------------------------
/vendor/go.opentelemetry.io/otel/label/doc.go:
--------------------------------------------------------------------------------
1 | // Copyright The OpenTelemetry Authors
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | // Package label provides key and value labels.
16 | package label // import "go.opentelemetry.io/otel/label"
17 |
--------------------------------------------------------------------------------
/vendor/go.opentelemetry.io/otel/unit/doc.go:
--------------------------------------------------------------------------------
1 | // Copyright The OpenTelemetry Authors
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | // Package unit provides units.
16 | package unit // import "go.opentelemetry.io/otel/unit"
17 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/AUTHORS:
--------------------------------------------------------------------------------
1 | # This source code refers to The Go Authors for copyright purposes.
2 | # The master list of authors is in the main Go distribution,
3 | # visible at https://tip.golang.org/AUTHORS.
4 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/CONTRIBUTORS:
--------------------------------------------------------------------------------
1 | # This source code was written by the Go contributors.
2 | # The master list of contributors is in the main Go distribution,
3 | # visible at https://tip.golang.org/CONTRIBUTORS.
4 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/blake2b/blake2b_amd64.go:
--------------------------------------------------------------------------------
1 | // Copyright 2016 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build !go1.7,amd64,!gccgo,!appengine
6 |
7 | package blake2b
8 |
9 | import "golang.org/x/sys/cpu"
10 |
11 | func init() {
12 | useSSE4 = cpu.X86.HasSSE41
13 | }
14 |
15 | //go:noescape
16 | func hashBlocksSSE4(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte)
17 |
18 | func hashBlocks(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte) {
19 | if useSSE4 {
20 | hashBlocksSSE4(h, c, flag, blocks)
21 | } else {
22 | hashBlocksGeneric(h, c, flag, blocks)
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/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 | // +build !amd64 appengine gccgo
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 | // +build go1.9
6 |
7 | package blake2b
8 |
9 | import (
10 | "crypto"
11 | "hash"
12 | )
13 |
14 | func init() {
15 | newHash256 := func() hash.Hash {
16 | h, _ := New256(nil)
17 | return h
18 | }
19 | newHash384 := func() hash.Hash {
20 | h, _ := New384(nil)
21 | return h
22 | }
23 |
24 | newHash512 := func() hash.Hash {
25 | h, _ := New512(nil)
26 | return h
27 | }
28 |
29 | crypto.RegisterHash(crypto.BLAKE2b_256, newHash256)
30 | crypto.RegisterHash(crypto.BLAKE2b_384, newHash384)
31 | crypto.RegisterHash(crypto.BLAKE2b_512, newHash512)
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/AUTHORS:
--------------------------------------------------------------------------------
1 | # This source code refers to The Go Authors for copyright purposes.
2 | # The master list of authors is in the main Go distribution,
3 | # visible at http://tip.golang.org/AUTHORS.
4 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/CONTRIBUTORS:
--------------------------------------------------------------------------------
1 | # This source code was written by the Go contributors.
2 | # The master list of contributors is in the main Go distribution,
3 | # visible at http://tip.golang.org/CONTRIBUTORS.
4 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/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/http2/.gitignore:
--------------------------------------------------------------------------------
1 | *~
2 | h2i/h2i
3 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/http2/Makefile:
--------------------------------------------------------------------------------
1 | curlimage:
2 | docker build -t gohttp2/curl .
3 |
4 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/http2/README:
--------------------------------------------------------------------------------
1 | This is a work-in-progress HTTP/2 implementation for Go.
2 |
3 | It will eventually live in the Go standard library and won't require
4 | any changes to your code to use. It will just be automatic.
5 |
6 | Status:
7 |
8 | * The server support is pretty good. A few things are missing
9 | but are being worked on.
10 | * The client work has just started but shares a lot of code
11 | is coming along much quicker.
12 |
13 | Docs are at https://godoc.org/golang.org/x/net/http2
14 |
15 | Demo test server at https://http2.golang.org/
16 |
17 | Help & bug reports welcome!
18 |
19 | Contributing: https://golang.org/doc/contribute.html
20 | Bugs: https://golang.org/issue/new?title=x/net/http2:+
21 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/http2/not_go111.go:
--------------------------------------------------------------------------------
1 | // Copyright 2018 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build !go1.11
6 |
7 | package http2
8 |
9 | import (
10 | "net/http/httptrace"
11 | "net/textproto"
12 | )
13 |
14 | func traceHasWroteHeaderField(trace *httptrace.ClientTrace) bool { return false }
15 |
16 | func traceWroteHeaderField(trace *httptrace.ClientTrace, k, v string) {}
17 |
18 | func traceGot1xxResponseFunc(trace *httptrace.ClientTrace) func(int, textproto.MIMEHeader) error {
19 | return nil
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/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 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
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 | // +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 | // +build arm mips mipsle 386
6 | // +build linux
7 |
8 | package socket
9 |
10 | func (h *cmsghdr) set(l, lvl, typ int) {
11 | h.Len = uint32(l)
12 | h.Level = int32(lvl)
13 | h.Type = int32(typ)
14 | }
15 |
--------------------------------------------------------------------------------
/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 | // +build arm64 amd64 ppc64 ppc64le mips64 mips64le riscv64 s390x
6 | // +build linux
7 |
8 | package socket
9 |
10 | func (h *cmsghdr) set(l, lvl, typ int) {
11 | h.Len = uint64(l)
12 | h.Level = int32(lvl)
13 | h.Type = int32(typ)
14 | }
15 |
--------------------------------------------------------------------------------
/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 | // +build amd64
6 | // +build solaris
7 |
8 | package socket
9 |
10 | func (h *cmsghdr) set(l, lvl, typ int) {
11 | h.Len = uint32(l)
12 | h.Level = int32(lvl)
13 | h.Type = int32(typ)
14 | }
15 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/net/internal/socket/cmsghdr_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 | // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris
6 |
7 | package socket
8 |
9 | func controlHeaderLen() int {
10 | return 0
11 | }
12 |
13 | func controlMessageLen(dataLen int) int {
14 | return 0
15 | }
16 |
17 | func controlMessageSpace(dataLen int) int {
18 | return 0
19 | }
20 |
21 | type cmsghdr struct{}
22 |
23 | func (h *cmsghdr) len() int { return 0 }
24 | func (h *cmsghdr) lvl() int { return 0 }
25 | func (h *cmsghdr) typ() int { return 0 }
26 |
27 | func (h *cmsghdr) set(l, lvl, typ int) {}
28 |
--------------------------------------------------------------------------------
/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 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
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/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 | // +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 | // +build arm mips mipsle 386
6 | // +build darwin dragonfly freebsd linux netbsd openbsd
7 |
8 | package socket
9 |
10 | import "unsafe"
11 |
12 | func (v *iovec) set(b []byte) {
13 | l := len(b)
14 | if l == 0 {
15 | return
16 | }
17 | v.Base = (*byte)(unsafe.Pointer(&b[0]))
18 | v.Len = uint32(l)
19 | }
20 |
--------------------------------------------------------------------------------
/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 | // +build arm64 amd64 ppc64 ppc64le mips64 mips64le riscv64 s390x
6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd
7 |
8 | package socket
9 |
10 | import "unsafe"
11 |
12 | func (v *iovec) set(b []byte) {
13 | l := len(b)
14 | if l == 0 {
15 | return
16 | }
17 | v.Base = (*byte)(unsafe.Pointer(&b[0]))
18 | v.Len = uint64(l)
19 | }
20 |
--------------------------------------------------------------------------------
/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 | // +build amd64
6 | // +build solaris
7 |
8 | package socket
9 |
10 | import "unsafe"
11 |
12 | func (v *iovec) set(b []byte) {
13 | l := len(b)
14 | if l == 0 {
15 | return
16 | }
17 | v.Base = (*int8)(unsafe.Pointer(&b[0]))
18 | v.Len = uint64(l)
19 | }
20 |
--------------------------------------------------------------------------------
/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 | // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris
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 | // +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 | // +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 | // +build arm mips mipsle 386
6 | // +build linux
7 |
8 | package socket
9 |
10 | import "unsafe"
11 |
12 | func (h *msghdr) setIov(vs []iovec) {
13 | l := len(vs)
14 | if l == 0 {
15 | return
16 | }
17 | h.Iov = &vs[0]
18 | h.Iovlen = uint32(l)
19 | }
20 |
21 | func (h *msghdr) setControl(b []byte) {
22 | h.Control = (*byte)(unsafe.Pointer(&b[0]))
23 | h.Controllen = uint32(len(b))
24 | }
25 |
--------------------------------------------------------------------------------
/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 | // +build arm64 amd64 ppc64 ppc64le mips64 mips64le riscv64 s390x
6 | // +build linux
7 |
8 | package socket
9 |
10 | import "unsafe"
11 |
12 | func (h *msghdr) setIov(vs []iovec) {
13 | l := len(vs)
14 | if l == 0 {
15 | return
16 | }
17 | h.Iov = &vs[0]
18 | h.Iovlen = uint64(l)
19 | }
20 |
21 | func (h *msghdr) setControl(b []byte) {
22 | h.Control = (*byte)(unsafe.Pointer(&b[0]))
23 | h.Controllen = uint64(len(b))
24 | }
25 |
--------------------------------------------------------------------------------
/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 | // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris
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 | // +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 | // +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 | // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows
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 | // +build aix darwin dragonfly freebsd openbsd
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 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
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 |
--------------------------------------------------------------------------------
/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_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_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 | // +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_solaris_amd64.s:
--------------------------------------------------------------------------------
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 | #include "textflag.h"
6 |
7 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88
8 | JMP syscall·sysvicall6(SB)
9 |
10 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88
11 | JMP syscall·rawSysvicall6(SB)
12 |
--------------------------------------------------------------------------------
/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 | // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows
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 | // +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_asmreq_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 | // +build !aix,!darwin,!dragonfly,!freebsd,!netbsd,!openbsd,!solaris,!windows
6 |
7 | package ipv4
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 |
19 | func (so *sockOpt) getMulticastIf(c *socket.Conn) (*net.Interface, error) {
20 | return nil, errNotImplemented
21 | }
22 |
23 | func (so *sockOpt) setMulticastIf(c *socket.Conn, ifi *net.Interface) error {
24 | return errNotImplemented
25 | }
26 |
--------------------------------------------------------------------------------
/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 | // +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 | // +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 | // +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 | // +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 | // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows
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_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 | sysIP_OPTIONS = 0x1
8 | sysIP_HDRINCL = 0x2
9 | sysIP_TOS = 0x3
10 | sysIP_TTL = 0x4
11 | sysIP_RECVOPTS = 0x5
12 | sysIP_RECVRETOPTS = 0x6
13 | sysIP_RECVDSTADDR = 0x7
14 | sysIP_RETOPTS = 0x8
15 | sysIP_RECVIF = 0x14
16 | sysIP_RECVTTL = 0x17
17 |
18 | sysIP_MULTICAST_IF = 0x9
19 | sysIP_MULTICAST_TTL = 0xa
20 | sysIP_MULTICAST_LOOP = 0xb
21 | sysIP_ADD_MEMBERSHIP = 0xc
22 | sysIP_DROP_MEMBERSHIP = 0xd
23 |
24 | sizeofIPMreq = 0x8
25 | )
26 |
27 | type ipMreq struct {
28 | Multiaddr [4]byte /* in_addr */
29 | Interface [4]byte /* in_addr */
30 | }
31 |
--------------------------------------------------------------------------------
/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 | sysIP_OPTIONS = 0x1
8 | sysIP_HDRINCL = 0x2
9 | sysIP_TOS = 0x3
10 | sysIP_TTL = 0x4
11 | sysIP_RECVOPTS = 0x5
12 | sysIP_RECVRETOPTS = 0x6
13 | sysIP_RECVDSTADDR = 0x7
14 | sysIP_RETOPTS = 0x8
15 | sysIP_RECVIF = 0x1e
16 | sysIP_RECVTTL = 0x1f
17 |
18 | sysIP_MULTICAST_IF = 0x9
19 | sysIP_MULTICAST_TTL = 0xa
20 | sysIP_MULTICAST_LOOP = 0xb
21 | sysIP_ADD_MEMBERSHIP = 0xc
22 | sysIP_DROP_MEMBERSHIP = 0xd
23 |
24 | sizeofIPMreq = 0x8
25 | )
26 |
27 | type ipMreq struct {
28 | Multiaddr [4]byte /* in_addr */
29 | Interface [4]byte /* in_addr */
30 | }
31 |
--------------------------------------------------------------------------------
/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 | // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows
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 | // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows
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/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 | // +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 | // +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 | // +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 | // +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 | // +build !aix,!darwin,!freebsd,!linux,!solaris
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 | // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows
6 |
7 | package ipv6
8 |
9 | var (
10 | ctlOpts = [ctlMax]ctlOpt{}
11 |
12 | sockOpts = map[int]*sockOpt{}
13 | )
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/AUTHORS:
--------------------------------------------------------------------------------
1 | # This source code refers to The Go Authors for copyright purposes.
2 | # The master list of authors is in the main Go distribution,
3 | # visible at http://tip.golang.org/AUTHORS.
4 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/CONTRIBUTORS:
--------------------------------------------------------------------------------
1 | # This source code was written by the Go contributors.
2 | # The master list of contributors is in the main Go distribution,
3 | # visible at http://tip.golang.org/CONTRIBUTORS.
4 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/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 | // +build !gccgo
6 |
7 | #include "textflag.h"
8 |
9 | //
10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go
11 | //
12 |
13 | TEXT ·syscall6(SB),NOSPLIT,$0-88
14 | JMP syscall·syscall6(SB)
15 |
16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88
17 | JMP syscall·rawSyscall6(SB)
18 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_aix.go:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build aix
6 |
7 | package cpu
8 |
9 | const (
10 | // getsystemcfg constants
11 | _SC_IMPL = 2
12 | _IMPL_POWER8 = 0x10000
13 | _IMPL_POWER9 = 0x20000
14 | )
15 |
16 | func archInit() {
17 | impl := getsystemcfg(_SC_IMPL)
18 | if impl&_IMPL_POWER8 != 0 {
19 | PPC64.IsPOWER8 = true
20 | }
21 | if impl&_IMPL_POWER9 != 0 {
22 | PPC64.IsPOWER9 = true
23 | }
24 |
25 | Initialized = true
26 | }
27 |
28 | func getsystemcfg(label int) (n uint64) {
29 | r0, _ := callgetsystemcfg(label)
30 | n = uint64(r0)
31 | return
32 | }
33 |
--------------------------------------------------------------------------------
/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 | // +build !gccgo
6 |
7 | package cpu
8 |
9 | func getisar0() uint64
10 | func getisar1() uint64
11 | func getpfr0() uint64
12 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/cpu/cpu_gc_s390x.go:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build !gccgo
6 |
7 | package cpu
8 |
9 | // haveAsmFunctions reports whether the other functions in this file can
10 | // be safely called.
11 | func haveAsmFunctions() bool { return true }
12 |
13 | // The following feature detection functions are defined in cpu_s390x.s.
14 | // They are likely to be expensive to call so the results should be cached.
15 | func stfle() facilityList
16 | func kmQuery() queryResult
17 | func kmcQuery() queryResult
18 | func kmctrQuery() queryResult
19 | func kmaQuery() queryResult
20 | func kimdQuery() queryResult
21 | func klmdQuery() queryResult
22 |
--------------------------------------------------------------------------------
/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 | // +build 386 amd64 amd64p32
6 | // +build !gccgo
7 |
8 | package cpu
9 |
10 | // cpuid is implemented in cpu_x86.s for gc compiler
11 | // and in cpu_gccgo.c for gccgo.
12 | func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32)
13 |
14 | // xgetbv with ecx = 0 is implemented in cpu_x86.s for gc compiler
15 | // and in cpu_gccgo.c for gccgo.
16 | func xgetbv() (eax, edx uint32)
17 |
--------------------------------------------------------------------------------
/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 | // +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_gccgo_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 | // +build 386 amd64 amd64p32
6 | // +build gccgo
7 |
8 | package cpu
9 |
10 | //extern gccgoGetCpuidCount
11 | func gccgoGetCpuidCount(eaxArg, ecxArg uint32, eax, ebx, ecx, edx *uint32)
12 |
13 | func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) {
14 | var a, b, c, d uint32
15 | gccgoGetCpuidCount(eaxArg, ecxArg, &a, &b, &c, &d)
16 | return a, b, c, d
17 | }
18 |
19 | //extern gccgoXgetbv
20 | func gccgoXgetbv(eax, edx *uint32)
21 |
22 | func xgetbv() (eax, edx uint32) {
23 | var a, d uint32
24 | gccgoXgetbv(&a, &d)
25 | return a, d
26 | }
27 |
--------------------------------------------------------------------------------
/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 | // +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_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 | // +build linux
6 | // +build mips64 mips64le
7 |
8 | package cpu
9 |
10 | // HWCAP bits. These are exposed by the Linux kernel 5.4.
11 | const (
12 | // CPU features
13 | hwcap_MIPS_MSA = 1 << 1
14 | )
15 |
16 | func doinit() {
17 | // HWCAP feature bits
18 | MIPS64X.HasMSA = isSet(hwCap, hwcap_MIPS_MSA)
19 | }
20 |
21 | func isSet(hwc uint, value uint) bool {
22 | return hwc&value != 0
23 | }
24 |
--------------------------------------------------------------------------------
/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 | // +build linux,!arm,!arm64,!mips64,!mips64le,!ppc64,!ppc64le,!s390x
6 |
7 | package cpu
8 |
9 | func doinit() {}
10 |
--------------------------------------------------------------------------------
/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 | // +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 | // +build mips mipsle
6 |
7 | package cpu
8 |
9 | const cacheLineSize = 32
10 |
11 | func initOptions() {}
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 | // +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 | // +build !linux,arm64
6 |
7 | package cpu
8 |
9 | func doinit() {}
10 |
--------------------------------------------------------------------------------
/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 | // +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 | // +build riscv64
6 |
7 | package cpu
8 |
9 | const cacheLineSize = 32
10 |
11 | func initOptions() {}
12 |
--------------------------------------------------------------------------------
/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 | // +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_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 | // +build 386 amd64 amd64p32
6 | // +build !gccgo
7 |
8 | #include "textflag.h"
9 |
10 | // func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32)
11 | TEXT ·cpuid(SB), NOSPLIT, $0-24
12 | MOVL eaxArg+0(FP), AX
13 | MOVL ecxArg+4(FP), CX
14 | CPUID
15 | MOVL AX, eax+8(FP)
16 | MOVL BX, ebx+12(FP)
17 | MOVL CX, ecx+16(FP)
18 | MOVL DX, edx+20(FP)
19 | RET
20 |
21 | // func xgetbv() (eax, edx uint32)
22 | TEXT ·xgetbv(SB),NOSPLIT,$0-8
23 | MOVL $0, CX
24 | XGETBV
25 | MOVL AX, eax+0(FP)
26 | MOVL DX, edx+4(FP)
27 | RET
28 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/.gitignore:
--------------------------------------------------------------------------------
1 | _obj/
2 | unix.test
3 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/aliases.go:
--------------------------------------------------------------------------------
1 | // Copyright 2018 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
6 | // +build go1.9
7 |
8 | package unix
9 |
10 | import "syscall"
11 |
12 | type Signal = syscall.Signal
13 | type Errno = syscall.Errno
14 | type SysProcAttr = syscall.SysProcAttr
15 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/asm_aix_ppc64.s:
--------------------------------------------------------------------------------
1 | // Copyright 2018 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build !gccgo
6 |
7 | #include "textflag.h"
8 |
9 | //
10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go
11 | //
12 |
13 | TEXT ·syscall6(SB),NOSPLIT,$0-88
14 | JMP syscall·syscall6(SB)
15 |
16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88
17 | JMP syscall·rawSyscall6(SB)
18 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/asm_solaris_amd64.s:
--------------------------------------------------------------------------------
1 | // Copyright 2014 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build !gccgo
6 |
7 | #include "textflag.h"
8 |
9 | //
10 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go
11 | //
12 |
13 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88
14 | JMP syscall·sysvicall6(SB)
15 |
16 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88
17 | JMP syscall·rawSysvicall6(SB)
18 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/constants.go:
--------------------------------------------------------------------------------
1 | // Copyright 2015 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
6 |
7 | package unix
8 |
9 | const (
10 | R_OK = 0x4
11 | W_OK = 0x2
12 | X_OK = 0x1
13 | )
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/endian_big.go:
--------------------------------------------------------------------------------
1 | // Copyright 2016 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 | //
5 | // +build ppc64 s390x mips mips64
6 |
7 | package unix
8 |
9 | const isBigEndian = true
10 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/endian_little.go:
--------------------------------------------------------------------------------
1 | // Copyright 2016 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 | //
5 | // +build 386 amd64 amd64p32 arm arm64 ppc64le mipsle mips64le riscv64
6 |
7 | package unix
8 |
9 | const isBigEndian = false
10 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/env_unix.go:
--------------------------------------------------------------------------------
1 | // Copyright 2010 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
6 |
7 | // Unix environment variables.
8 |
9 | package unix
10 |
11 | import "syscall"
12 |
13 | func Getenv(key string) (value string, found bool) {
14 | return syscall.Getenv(key)
15 | }
16 |
17 | func Setenv(key, value string) error {
18 | return syscall.Setenv(key, value)
19 | }
20 |
21 | func Clearenv() {
22 | syscall.Clearenv()
23 | }
24 |
25 | func Environ() []string {
26 | return syscall.Environ()
27 | }
28 |
29 | func Unsetenv(key string) error {
30 | return syscall.Unsetenv(key)
31 | }
32 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/errors_freebsd_arm64.go:
--------------------------------------------------------------------------------
1 | // Copyright 2020 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // Constants that were deprecated or moved to enums in the FreeBSD headers. Keep
6 | // them here for backwards compatibility.
7 |
8 | package unix
9 |
10 | const (
11 | DLT_HHDLC = 0x79
12 | IPV6_MIN_MEMBERSHIPS = 0x1f
13 | IP_MAX_SOURCE_FILTER = 0x400
14 | IP_MIN_MEMBERSHIPS = 0x1f
15 | RT_CACHING_CONTEXT = 0x1
16 | RT_NORTREF = 0x2
17 | )
18 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go:
--------------------------------------------------------------------------------
1 | // +build linux,386 linux,arm linux,mips linux,mipsle
2 |
3 | // Copyright 2014 The Go Authors. All rights reserved.
4 | // Use of this source code is governed by a BSD-style
5 | // license that can be found in the LICENSE file.
6 |
7 | package unix
8 |
9 | func init() {
10 | // On 32-bit Linux systems, the fcntl syscall that matches Go's
11 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL.
12 | fcntl64Syscall = SYS_FCNTL64
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go:
--------------------------------------------------------------------------------
1 | // Copyright 2015 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build gccgo,linux,amd64
6 |
7 | package unix
8 |
9 | import "syscall"
10 |
11 | //extern gettimeofday
12 | func realGettimeofday(*Timeval, *byte) int32
13 |
14 | func gettimeofday(tv *Timeval) (err syscall.Errno) {
15 | r := realGettimeofday(tv, nil)
16 | if r < 0 {
17 | return syscall.GetErrno()
18 | }
19 | return 0
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/pagesize_unix.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
6 |
7 | // For Unix, get the pagesize from the runtime.
8 |
9 | package unix
10 |
11 | import "syscall"
12 |
13 | func Getpagesize() int {
14 | return syscall.Getpagesize()
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/race.go:
--------------------------------------------------------------------------------
1 | // Copyright 2012 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build darwin,race linux,race freebsd,race
6 |
7 | package unix
8 |
9 | import (
10 | "runtime"
11 | "unsafe"
12 | )
13 |
14 | const raceenabled = true
15 |
16 | func raceAcquire(addr unsafe.Pointer) {
17 | runtime.RaceAcquire(addr)
18 | }
19 |
20 | func raceReleaseMerge(addr unsafe.Pointer) {
21 | runtime.RaceReleaseMerge(addr)
22 | }
23 |
24 | func raceReadRange(addr unsafe.Pointer, len int) {
25 | runtime.RaceReadRange(addr, len)
26 | }
27 |
28 | func raceWriteRange(addr unsafe.Pointer, len int) {
29 | runtime.RaceWriteRange(addr, len)
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/race0.go:
--------------------------------------------------------------------------------
1 | // Copyright 2012 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build aix darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly
6 |
7 | package unix
8 |
9 | import (
10 | "unsafe"
11 | )
12 |
13 | const raceenabled = false
14 |
15 | func raceAcquire(addr unsafe.Pointer) {
16 | }
17 |
18 | func raceReleaseMerge(addr unsafe.Pointer) {
19 | }
20 |
21 | func raceReadRange(addr unsafe.Pointer, len int) {
22 | }
23 |
24 | func raceWriteRange(addr unsafe.Pointer, len int) {
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/readdirent_getdents.go:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build aix dragonfly freebsd linux netbsd openbsd
6 |
7 | package unix
8 |
9 | // ReadDirent reads directory entries from fd and writes them into buf.
10 | func ReadDirent(fd int, buf []byte) (n int, err error) {
11 | return Getdents(fd, buf)
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/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/str.go:
--------------------------------------------------------------------------------
1 | // Copyright 2009 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
6 |
7 | package unix
8 |
9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency
10 | if val < 0 {
11 | return "-" + uitoa(uint(-val))
12 | }
13 | return uitoa(uint(val))
14 | }
15 |
16 | func uitoa(val uint) string {
17 | var buf [32]byte // big enough for int64
18 | i := len(buf) - 1
19 | for val >= 10 {
20 | buf[i] = byte(val%10 + '0')
21 | i--
22 | val /= 10
23 | }
24 | buf[i] = byte(val + '0')
25 | return string(buf[i:])
26 | }
27 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go:
--------------------------------------------------------------------------------
1 | // Copyright 2016 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build amd64,linux
6 | // +build !gccgo
7 |
8 | package unix
9 |
10 | import "syscall"
11 |
12 | //go:noescape
13 | func gettimeofday(tv *Timeval) (err syscall.Errno)
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_linux_gc.go:
--------------------------------------------------------------------------------
1 | // Copyright 2018 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build linux,!gccgo
6 |
7 | package unix
8 |
9 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail.
10 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr)
11 |
12 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't
13 | // fail.
14 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr)
15 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go:
--------------------------------------------------------------------------------
1 | // Copyright 2018 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build linux,!gccgo,386
6 |
7 | package unix
8 |
9 | import "syscall"
10 |
11 | // Underlying system call writes to newoffset via pointer.
12 | // Implemented in assembly to avoid allocation.
13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno)
14 |
15 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno)
16 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno)
17 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_linux_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 | // +build arm,!gccgo,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 | // +build linux,gccgo,arm
6 |
7 | package unix
8 |
9 | import (
10 | "syscall"
11 | "unsafe"
12 | )
13 |
14 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) {
15 | var newoffset int64
16 | offsetLow := uint32(offset & 0xffffffff)
17 | offsetHigh := uint32((offset >> 32) & 0xffffffff)
18 | _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0)
19 | return newoffset, err
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go:
--------------------------------------------------------------------------------
1 | // Copyright 2009 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build amd64,solaris
6 |
7 | package unix
8 |
9 | func setTimespec(sec, nsec int64) Timespec {
10 | return Timespec{Sec: sec, Nsec: nsec}
11 | }
12 |
13 | func setTimeval(sec, usec int64) Timeval {
14 | return Timeval{Sec: sec, Usec: usec}
15 | }
16 |
17 | func (iov *Iovec) SetLen(length int) {
18 | iov.Len = uint64(length)
19 | }
20 |
21 | func (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 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris
6 | // +build !gccgo,!ppc64le,!ppc64
7 |
8 | package unix
9 |
10 | import "syscall"
11 |
12 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno)
13 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
14 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno)
15 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
16 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_13.s:
--------------------------------------------------------------------------------
1 | // go run mkasm_darwin.go 386
2 | // Code generated by the command above; DO NOT EDIT.
3 |
4 | // +build go1.13
5 |
6 | #include "textflag.h"
7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0
8 | JMP libc_fdopendir(SB)
9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0
10 | JMP libc_closedir(SB)
11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0
12 | JMP libc_readdir_r(SB)
13 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.s:
--------------------------------------------------------------------------------
1 | // go run mkasm_darwin.go amd64
2 | // Code generated by the command above; DO NOT EDIT.
3 |
4 | // +build go1.13
5 |
6 | #include "textflag.h"
7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0
8 | JMP libc_fdopendir(SB)
9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0
10 | JMP libc_closedir(SB)
11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0
12 | JMP libc_readdir_r(SB)
13 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_13.s:
--------------------------------------------------------------------------------
1 | // go run mkasm_darwin.go arm
2 | // Code generated by the command above; DO NOT EDIT.
3 |
4 | // +build go1.13
5 |
6 | #include "textflag.h"
7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0
8 | JMP libc_fdopendir(SB)
9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0
10 | JMP libc_closedir(SB)
11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0
12 | JMP libc_readdir_r(SB)
13 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.s:
--------------------------------------------------------------------------------
1 | // go run mkasm_darwin.go arm64
2 | // Code generated by the command above; DO NOT EDIT.
3 |
4 | // +build go1.13
5 |
6 | #include "textflag.h"
7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0
8 | JMP libc_fdopendir(SB)
9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0
10 | JMP libc_closedir(SB)
11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0
12 | JMP libc_readdir_r(SB)
13 |
--------------------------------------------------------------------------------
/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 | // +build windows
6 | // +build go1.9
7 |
8 | package windows
9 |
10 | import "syscall"
11 |
12 | type Errno = syscall.Errno
13 | type SysProcAttr = syscall.SysProcAttr
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/empty.s:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build !go1.12
6 |
7 | // This file is here to allow bodyless functions with go:linkname for Go 1.11
8 | // and earlier (see https://golang.org/issue/23311).
9 |
--------------------------------------------------------------------------------
/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 | // +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
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 | // +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 | // +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 | // +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/AUTHORS:
--------------------------------------------------------------------------------
1 | # This source code refers to The Go Authors for copyright purposes.
2 | # The master list of authors is in the main Go distribution,
3 | # visible at http://tip.golang.org/AUTHORS.
4 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/text/CONTRIBUTORS:
--------------------------------------------------------------------------------
1 | # This source code was written by the Go contributors.
2 | # The master list of contributors is in the main Go distribution,
3 | # visible at http://tip.golang.org/CONTRIBUTORS.
4 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.go:
--------------------------------------------------------------------------------
1 | // Copyright 2016 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build go1.10
6 |
7 | package bidirule
8 |
9 | func (t *Transformer) isFinal() bool {
10 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go:
--------------------------------------------------------------------------------
1 | // Copyright 2016 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build !go1.10
6 |
7 | package bidirule
8 |
9 | func (t *Transformer) isFinal() bool {
10 | if !t.isRTL() {
11 | return true
12 | }
13 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial
14 | }
15 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/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/golang.org/x/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/google.golang.org/protobuf/AUTHORS:
--------------------------------------------------------------------------------
1 | # This source code refers to The Go Authors for copyright purposes.
2 | # The master list of authors is in the main Go distribution,
3 | # visible at https://tip.golang.org/AUTHORS.
4 |
--------------------------------------------------------------------------------
/vendor/google.golang.org/protobuf/CONTRIBUTORS:
--------------------------------------------------------------------------------
1 | # This source code was written by the Go contributors.
2 | # The master list of contributors is in the main Go distribution,
3 | # visible at https://tip.golang.org/CONTRIBUTORS.
4 |
--------------------------------------------------------------------------------
/vendor/google.golang.org/protobuf/encoding/prototext/doc.go:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // Package prototext marshals and unmarshals protocol buffer messages as the
6 | // textproto format.
7 | package prototext
8 |
--------------------------------------------------------------------------------
/vendor/google.golang.org/protobuf/internal/errors/is_go113.go:
--------------------------------------------------------------------------------
1 | // Copyright 2020 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build go1.13
6 |
7 | package errors
8 |
9 | import "errors"
10 |
11 | // Is is errors.Is.
12 | func Is(err, target error) bool { return errors.Is(err, target) }
13 |
--------------------------------------------------------------------------------
/vendor/google.golang.org/protobuf/internal/fieldnum/any_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 fieldnum
8 |
9 | // Field numbers for google.protobuf.Any.
10 | const (
11 | Any_TypeUrl = 1 // optional string
12 | Any_Value = 2 // optional bytes
13 | )
14 |
--------------------------------------------------------------------------------
/vendor/google.golang.org/protobuf/internal/fieldnum/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 fieldnum contains constants for field numbers of fields in messages
6 | // declared in descriptor.proto and any of the well-known types.
7 | package fieldnum
8 |
--------------------------------------------------------------------------------
/vendor/google.golang.org/protobuf/internal/fieldnum/duration_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 fieldnum
8 |
9 | // Field numbers for google.protobuf.Duration.
10 | const (
11 | Duration_Seconds = 1 // optional int64
12 | Duration_Nanos = 2 // optional int32
13 | )
14 |
--------------------------------------------------------------------------------
/vendor/google.golang.org/protobuf/internal/fieldnum/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 fieldnum
8 |
9 | // Field numbers for google.protobuf.Empty.
10 | const ()
11 |
--------------------------------------------------------------------------------
/vendor/google.golang.org/protobuf/internal/fieldnum/field_mask_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 fieldnum
8 |
9 | // Field numbers for google.protobuf.FieldMask.
10 | const (
11 | FieldMask_Paths = 1 // repeated string
12 | )
13 |
--------------------------------------------------------------------------------
/vendor/google.golang.org/protobuf/internal/fieldnum/source_context_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 fieldnum
8 |
9 | // Field numbers for google.protobuf.SourceContext.
10 | const (
11 | SourceContext_FileName = 1 // optional string
12 | )
13 |
--------------------------------------------------------------------------------
/vendor/google.golang.org/protobuf/internal/fieldnum/timestamp_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 fieldnum
8 |
9 | // Field numbers for google.protobuf.Timestamp.
10 | const (
11 | Timestamp_Seconds = 1 // optional int64
12 | Timestamp_Nanos = 2 // optional int32
13 | )
14 |
--------------------------------------------------------------------------------
/vendor/google.golang.org/protobuf/internal/flags/proto_legacy_disable.go:
--------------------------------------------------------------------------------
1 | // Copyright 2018 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build !protolegacy
6 |
7 | package flags
8 |
9 | const protoLegacy = false
10 |
--------------------------------------------------------------------------------
/vendor/google.golang.org/protobuf/internal/flags/proto_legacy_enable.go:
--------------------------------------------------------------------------------
1 | // Copyright 2018 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build protolegacy
6 |
7 | package flags
8 |
9 | const protoLegacy = true
10 |
--------------------------------------------------------------------------------
/vendor/google.golang.org/protobuf/internal/genname/name.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 genname contains constants for generated names.
6 | package genname
7 |
8 | const (
9 | State = "state"
10 |
11 | SizeCache = "sizeCache"
12 | SizeCacheA = "XXX_sizecache"
13 |
14 | WeakFields = "weakFields"
15 | WeakFieldsA = "XXX_weak"
16 |
17 | UnknownFields = "unknownFields"
18 | UnknownFieldsA = "XXX_unrecognized"
19 |
20 | ExtensionFields = "extensionFields"
21 | ExtensionFieldsA = "XXX_InternalExtensions"
22 | ExtensionFieldsB = "XXX_extensions"
23 |
24 | WeakFieldPrefix = "XXX_weak_"
25 | )
26 |
--------------------------------------------------------------------------------
/vendor/google.golang.org/protobuf/internal/impl/codec_map_go112.go:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build go1.12
6 |
7 | package impl
8 |
9 | import "reflect"
10 |
11 | func mapRange(v reflect.Value) *reflect.MapIter { return v.MapRange() }
12 |
--------------------------------------------------------------------------------
/vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build !purego,!appengine
6 |
7 | package impl
8 |
9 | // When using unsafe pointers, we can just treat enum values as int32s.
10 |
11 | var (
12 | coderEnumNoZero = coderInt32NoZero
13 | coderEnum = coderInt32
14 | coderEnumPtr = coderInt32Ptr
15 | coderEnumSlice = coderInt32Slice
16 | coderEnumPackedSlice = coderInt32PackedSlice
17 | )
18 |
--------------------------------------------------------------------------------
/vendor/google.golang.org/protobuf/internal/impl/enum.go:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package impl
6 |
7 | import (
8 | "reflect"
9 |
10 | pref "google.golang.org/protobuf/reflect/protoreflect"
11 | )
12 |
13 | type EnumInfo struct {
14 | GoReflectType reflect.Type // int32 kind
15 | Desc pref.EnumDescriptor
16 | }
17 |
18 | func (t *EnumInfo) New(n pref.EnumNumber) pref.Enum {
19 | return reflect.ValueOf(n).Convert(t.GoReflectType).Interface().(pref.Enum)
20 | }
21 | func (t *EnumInfo) Descriptor() pref.EnumDescriptor { return t.Desc }
22 |
--------------------------------------------------------------------------------
/vendor/google.golang.org/protobuf/internal/strs/strings_pure.go:
--------------------------------------------------------------------------------
1 | // Copyright 2018 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build purego appengine
6 |
7 | package strs
8 |
9 | import pref "google.golang.org/protobuf/reflect/protoreflect"
10 |
11 | func UnsafeString(b []byte) string {
12 | return string(b)
13 | }
14 |
15 | func UnsafeBytes(s string) []byte {
16 | return []byte(s)
17 | }
18 |
19 | type Builder struct{}
20 |
21 | func (*Builder) AppendFullName(prefix pref.FullName, name pref.Name) pref.FullName {
22 | return prefix.Append(name)
23 | }
24 |
25 | func (*Builder) MakeString(b []byte) string {
26 | return string(b)
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/google.golang.org/protobuf/proto/proto_methods.go:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // The protoreflect build tag disables use of fast-path methods.
6 | // +build !protoreflect
7 |
8 | package proto
9 |
10 | import (
11 | "google.golang.org/protobuf/reflect/protoreflect"
12 | "google.golang.org/protobuf/runtime/protoiface"
13 | )
14 |
15 | const hasProtoMethods = true
16 |
17 | func protoMethods(m protoreflect.Message) *protoiface.Methods {
18 | return m.ProtoMethods()
19 | }
20 |
--------------------------------------------------------------------------------
/vendor/google.golang.org/protobuf/proto/proto_reflect.go:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // The protoreflect build tag disables use of fast-path methods.
6 | // +build protoreflect
7 |
8 | package proto
9 |
10 | import (
11 | "google.golang.org/protobuf/reflect/protoreflect"
12 | "google.golang.org/protobuf/runtime/protoiface"
13 | )
14 |
15 | const hasProtoMethods = false
16 |
17 | func protoMethods(m protoreflect.Message) *protoiface.Methods {
18 | return nil
19 | }
20 |
--------------------------------------------------------------------------------
/vendor/google.golang.org/protobuf/runtime/protoiface/legacy.go:
--------------------------------------------------------------------------------
1 | // Copyright 2018 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package protoiface
6 |
7 | type MessageV1 interface {
8 | Reset()
9 | String() string
10 | ProtoMessage()
11 | }
12 |
13 | type ExtensionRangeV1 struct {
14 | Start, End int32 // both inclusive
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/yaml.v3/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 |
3 | go:
4 | - "1.4.x"
5 | - "1.5.x"
6 | - "1.6.x"
7 | - "1.7.x"
8 | - "1.8.x"
9 | - "1.9.x"
10 | - "1.10.x"
11 | - "1.11.x"
12 | - "1.12.x"
13 | - "1.13.x"
14 | - "tip"
15 |
16 | go_import_path: gopkg.in/yaml.v3
17 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/yaml.v3/go.mod:
--------------------------------------------------------------------------------
1 | module "gopkg.in/yaml.v3"
2 |
3 | require (
4 | "gopkg.in/check.v1" v0.0.0-20161208181325-20d25e280405
5 | )
6 |
--------------------------------------------------------------------------------
/vendor/inet.af/tcpproxy/.gitignore:
--------------------------------------------------------------------------------
1 | tlsrouter
2 | tlsrouter.test
3 |
--------------------------------------------------------------------------------
/vendor/inet.af/tcpproxy/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | Contributions are welcome by pull request.
2 |
3 | You need to sign the Google Contributor License Agreement before your
4 | contributions can be accepted. You can find the individual and organization
5 | level CLAs here:
6 |
7 | Individual: https://cla.developers.google.com/about/google-individual
8 | Organization: https://cla.developers.google.com/about/google-corporate
9 |
--------------------------------------------------------------------------------
/vendor/inet.af/tcpproxy/README.md:
--------------------------------------------------------------------------------
1 | # tcpproxy
2 |
3 | For library usage, see https://godoc.org/inet.af/tcpproxy/
4 |
5 | For CLI usage, see https://github.com/inetaf/tcpproxy/blob/master/cmd/tlsrouter/README.md
6 |
--------------------------------------------------------------------------------
/version/version.go:
--------------------------------------------------------------------------------
1 | package version
2 |
3 | import "fmt"
4 |
5 | var (
6 | SHA string
7 | Tag string
8 | )
9 |
10 | func String() string {
11 | if Tag == "" {
12 | return SHA
13 | }
14 |
15 | return fmt.Sprintf("%s (%s)", Tag, SHA)
16 | }
17 |
--------------------------------------------------------------------------------