├── .github └── workflows │ ├── codeql.yml │ ├── format.yml │ ├── lint.yml │ └── test.yml ├── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── MAINTAINERS.md ├── Makefile ├── README.md ├── access ├── access_mock_test.go ├── codemode.go ├── codemode_test.go ├── config_defaulter.go ├── controller │ ├── cluster.go │ ├── cluster_test.go │ ├── metric.go │ ├── mock_test.go │ ├── service.go │ ├── service_test.go │ ├── volume.go │ └── volume_test.go ├── controller_mock_test.go ├── limiter.go ├── limiter_test.go ├── metric.go ├── server.go ├── server_location.go ├── server_location_test.go ├── server_test.go ├── service.go ├── stream.go ├── stream_alloc.go ├── stream_alloc_test.go ├── stream_get.go ├── stream_get_test.go ├── stream_loop.go ├── stream_mock_test.go ├── stream_put.go ├── stream_put_test.go ├── stream_putat.go ├── stream_putat_test.go ├── stream_test.go └── stream_time.go ├── allocator ├── bidmgr.go ├── bidmgr_test.go ├── cmcli_mock_test.go ├── metric_task.go ├── metric_task_test.go ├── service.go ├── service_test.go ├── volume.go ├── volume_task.go ├── volume_task_test.go ├── volumemgr.go └── volumemgr_test.go ├── api ├── access │ ├── client.go │ ├── client_reqid.go │ ├── client_test.go │ ├── proto.go │ └── proto_test.go ├── allocator │ ├── client.go │ └── client_test.go ├── blobnode │ ├── chunk.go │ ├── chunk_test.go │ ├── client.go │ ├── client_test.go │ ├── datainfo.go │ ├── iostat.go │ ├── iostat_test.go │ ├── shard.go │ └── shard_test.go ├── clustermgr │ ├── client.go │ ├── config.go │ ├── disk.go │ ├── proto.go │ ├── service.go │ ├── volume.go │ └── volume_test.go ├── mqproxy │ ├── client.go │ └── client_test.go ├── scheduler │ ├── client.go │ ├── service.go │ └── task.go ├── tinker │ └── client.go └── worker │ ├── api.go │ └── client.go ├── bin └── .gitkeep ├── blobnode ├── base │ ├── flow │ │ ├── iostat.go │ │ └── viewer.go │ ├── io.go │ ├── limitio │ │ ├── controller.go │ │ ├── controller_bench_test.go │ │ ├── controller_test.go │ │ └── util.go │ ├── priority │ │ ├── priority.go │ │ └── priority_test.go │ ├── qos │ │ ├── config.go │ │ ├── io_bps.go │ │ ├── io_bps_test.go │ │ ├── io_iops.go │ │ ├── io_iops_test.go │ │ ├── level_qos.go │ │ ├── level_qos_test.go │ │ └── qos.go │ ├── util.go │ └── util_test.go ├── chunk.go ├── chunk_test.go ├── chunkcheck.go ├── chunkcheck_test.go ├── chunkreport.go ├── chunkreport_test.go ├── compact.go ├── config.go ├── core │ ├── blobfile.go │ ├── blobfile_test.go │ ├── chunk │ │ ├── chunk.go │ │ ├── chunk_test.go │ │ ├── chunkstat.go │ │ ├── chunkstat_test.go │ │ ├── compact.go │ │ └── compact_test.go │ ├── config.go │ ├── config_test.go │ ├── consistency.go │ ├── consistency_test.go │ ├── disk │ │ ├── chunkinspect.go │ │ ├── chunkinspect_test.go │ │ ├── compact.go │ │ ├── compact_test.go │ │ ├── disk.go │ │ ├── disk_test.go │ │ ├── metrics.go │ │ ├── metrics_test.go │ │ ├── superblock.go │ │ ├── superblock_test.go │ │ ├── trash.go │ │ └── trash_test.go │ ├── errors.go │ ├── format.go │ ├── format_test.go │ ├── option.go │ ├── proto.go │ ├── shard.go │ ├── shard_test.go │ └── storage │ │ ├── datafile.go │ │ ├── datafile_test.go │ │ ├── metadb.go │ │ ├── metadb_test.go │ │ ├── storage.go │ │ ├── storage_cp.go │ │ ├── storage_cp_test.go │ │ ├── storage_test.go │ │ └── storage_tinyfile.go ├── db │ ├── config.go │ ├── metadb.go │ ├── metadb_bench_test.go │ ├── metadb_test.go │ ├── request.go │ └── request_test.go ├── disk.go ├── disk_test.go ├── heartbeat.go ├── heartbeat_test.go ├── iostat.go ├── iostat_test.go ├── service.go ├── shard.go ├── shard_test.go ├── startup.go ├── svr.go ├── svr_test.go └── sys │ ├── disk.go │ ├── fallocate.go │ ├── fallocate_linux.go │ ├── fallocate_linux_test.go │ ├── fallocate_others.go │ ├── stat_linux.go │ ├── stat_linux_test.go │ └── stat_others.go ├── blobstore.go ├── build.sh ├── cli ├── access │ ├── access.go │ ├── cluster.go │ ├── del.go │ ├── ec.go │ ├── get.go │ └── put.go ├── app.go ├── cli │ ├── cli.conf │ └── main.go ├── clustermgr │ ├── clustermgr.go │ ├── config.go │ ├── diskmgr.go │ ├── list_all.go │ ├── raft_wal.go │ ├── service.go │ └── volumemgr.go ├── common │ ├── args │ │ └── args.go │ ├── cfmt │ │ ├── access.go │ │ ├── access_test.go │ │ ├── blobnode.go │ │ ├── blobnode_test.go │ │ ├── cfmt.go │ │ ├── cluster.go │ │ ├── cluster_test.go │ │ └── proto.go │ ├── color.go │ ├── color_test.go │ ├── common.go │ ├── common_test.go │ ├── flags │ │ └── flags.go │ ├── json.go │ ├── json_test.go │ ├── progress.go │ └── progress_test.go ├── config.go ├── config │ ├── cache.go │ └── config.go ├── history.go └── util.go ├── clustermgr ├── base │ ├── proto.go │ ├── raftnode.go │ ├── raftproto.go │ ├── raftproto_mock_test.go │ ├── raftproto_test.go │ ├── raftsnapshot.go │ ├── raftsnapshot_test.go │ ├── taskdistribute.go │ └── taskdistribute_test.go ├── config.go ├── config_test.go ├── configmgr │ ├── applier.go │ ├── applier_test.go │ ├── configmgr.go │ └── configmgr_test.go ├── disk.go ├── disk_test.go ├── diskmgr │ ├── .gitkeep │ ├── alloc.go │ ├── alloc_test.go │ ├── applier.go │ ├── applier_test.go │ ├── diskmgr.go │ ├── diskmgr_test.go │ ├── metric.go │ ├── metric_test.go │ └── refresh.go ├── handler.go ├── manage.go ├── manage_test.go ├── metric.go ├── mock │ ├── configmgr.go │ ├── mock.go │ └── scopemgr.go ├── persistence │ ├── normaldb │ │ ├── configtbl.go │ │ ├── configtbl_test.go │ │ ├── disktbl.go │ │ ├── disktbl_test.go │ │ ├── droppeddisktbl.go │ │ ├── droppeddisktbl_test.go │ │ ├── normaldb.go │ │ ├── scopetbl.go │ │ ├── scopetbl_test.go │ │ ├── servicetbl.go │ │ └── servicetbl_test.go │ ├── raftdb │ │ └── raftdb.go │ └── volumedb │ │ ├── transitedtbl.go │ │ ├── transitedtbl_test.go │ │ ├── volumemgrdb.go │ │ ├── volumemgrdb_test.go │ │ ├── volumetbl.go │ │ └── volumetbl_test.go ├── scopemgr │ ├── .gitkeep │ ├── applier.go │ ├── scopemgr.go │ └── scopemgr_test.go ├── service.go ├── service_test.go ├── servicemgr │ ├── .gitkeep │ ├── applier.go │ ├── servicemgr.go │ └── servicemgr_test.go ├── statemachine.go ├── statemachine_test.go ├── svr.go ├── svr_test.go ├── volume.go ├── volume_test.go └── volumemgr │ ├── .gitkeep │ ├── alloc.go │ ├── applier.go │ ├── applier_test.go │ ├── createvolume.go │ ├── createvolume_test.go │ ├── diskmgr_mock_test.go │ ├── metric.go │ ├── proto.go │ ├── startup.go │ ├── task_manager.go │ ├── task_manager_test.go │ ├── volume_stat.go │ ├── volume_task.go │ ├── volume_task_test.go │ ├── volumemgr.go │ ├── volumemgr_test.go │ ├── volumeunit.go │ └── volumeunit_test.go ├── cmd ├── access │ ├── access.conf │ ├── access.conf.default │ └── main.go ├── allocator │ ├── allocator.conf │ └── main.go ├── blobnode │ ├── blobnode.conf │ └── main.go ├── clustermgr │ ├── clustermgr.conf │ ├── clustermgr.conf.simple │ ├── clustermgr1.conf │ ├── clustermgr2.conf │ └── main.go ├── cmd.go ├── mqproxy │ ├── main.go │ └── mqproxy.conf ├── scheduler │ ├── main.go │ └── scheduler.conf ├── tinker │ ├── main.go │ └── tinker.conf └── worker │ ├── main.go │ └── worker.conf ├── code_check.sh ├── common ├── codemode │ ├── codemode.go │ ├── codemode_test.go │ └── policy.go ├── config │ ├── conf_test_file.conf │ ├── load_conf.go │ ├── load_conf_test.go │ ├── load_conf_test2.conf │ ├── validate.go │ └── validate_test.go ├── consul │ ├── consul.go │ └── consul_test.go ├── counter │ ├── counter.go │ └── counter_test.go ├── crc32block │ ├── block.go │ ├── decode.go │ ├── decode_test.go │ ├── encode.go │ ├── encode_test.go │ ├── request_body.go │ ├── request_body_test.go │ ├── util.go │ └── util_test.go ├── diskutil │ ├── lostdiskchecker.go │ └── lostdiskchecker_test.go ├── ec │ ├── buf.go │ ├── buf_test.go │ ├── doc.go │ ├── encoder.go │ ├── encoder_test.go │ └── lrcencoder.go ├── errors │ ├── access.go │ ├── allocator.go │ ├── blobnode.go │ ├── clustermgr.go │ ├── common.go │ ├── errors.go │ └── scheduler_sys.go ├── fileutil │ ├── lock.go │ ├── lock_nix.go │ ├── lock_others.go │ └── lock_test.go ├── interrupt │ └── interrrupt.go ├── iostat │ ├── iostat.go │ ├── iostat_darwin.go │ ├── iostat_other.go │ ├── purge.go │ ├── reader.go │ ├── viewer.go │ └── writer.go ├── kafka │ ├── kafkamonitor.go │ ├── kafkamonitor_test.go │ └── kafkamsg_sender.go ├── kvstore │ ├── .gitignore │ ├── db.go │ ├── db_test.go │ ├── options.go │ ├── proto.go │ └── table.go ├── memcache │ ├── memcache.go │ └── memcache_test.go ├── mongoutil │ └── mongoutil.go ├── profile │ ├── doc.go │ ├── gen.go │ ├── profile.go │ ├── profile_test.go │ ├── profile_with.go │ └── profile_without.go ├── proto │ ├── basic.go │ ├── basic_test.go │ ├── const.go │ ├── const_test.go │ ├── mqproxy_types.go │ ├── mqproxy_types_test.go │ ├── scheduler_types.go │ ├── tinker_types.go │ ├── vuid.go │ ├── vuid_test.go │ └── worker_types.go ├── raftserver │ ├── config.go │ ├── config_test.go │ ├── errors.go │ ├── example │ │ ├── build.sh │ │ ├── clean.sh │ │ ├── main.go │ │ ├── raft1.cfg │ │ ├── raft2.cfg │ │ ├── raft3.cfg │ │ ├── service.go │ │ └── storage.go │ ├── id.go │ ├── id_test.go │ ├── proto.go │ ├── proto_test.go │ ├── server.go │ ├── server_test.go │ ├── snapshotter.go │ ├── snapshotter_test.go │ ├── statemachine.go │ ├── storage.go │ ├── storage_test.go │ ├── transport.go │ ├── transport_sender.go │ ├── util.go │ ├── util_test.go │ ├── wait_time.go │ ├── wait_time_test.go │ └── wal │ │ ├── file_cache.go │ │ ├── file_cache_test.go │ │ ├── fileutil.go │ │ ├── fileutil_test.go │ │ ├── log_file.go │ │ ├── log_file_test.go │ │ ├── log_index.go │ │ ├── log_index_test.go │ │ ├── log_storage.go │ │ ├── log_storage_test.go │ │ ├── meta.go │ │ ├── meta_test.go │ │ ├── record.go │ │ ├── record_reader.go │ │ ├── record_reader_test.go │ │ ├── record_test.go │ │ ├── record_writer.go │ │ ├── record_writer_test.go │ │ ├── wal.go │ │ └── wal_test.go ├── recordlog │ ├── recordlog.go │ └── recordlog_test.go ├── redis │ ├── redis.go │ └── redis_test.go ├── resourcepool │ ├── chan_pool.go │ ├── chan_pool_test.go │ ├── mempool.go │ ├── mempool_test.go │ ├── pool.go │ └── pool_test.go ├── rpc │ ├── argument.go │ ├── argument_test.go │ ├── auditlog │ │ ├── auditlog.go │ │ ├── auditlog_test.go │ │ ├── decoder.go │ │ ├── prometheus_metric.go │ │ ├── proto.go │ │ ├── request_row.go │ │ ├── response.go │ │ └── util.go │ ├── auth │ │ ├── auth.go │ │ ├── auth_test.go │ │ ├── authhandler.go │ │ └── authtransport.go │ ├── codec.go │ ├── codec_test.go │ ├── config.go │ ├── context.go │ ├── context_test.go │ ├── error.go │ ├── error_test.go │ ├── example │ │ ├── app.go │ │ ├── client.go │ │ ├── file.go │ │ ├── main │ │ │ ├── main.conf │ │ │ └── main.go │ │ └── service.go │ ├── lb.go │ ├── lb_test.go │ ├── middleware.go │ ├── middleware_test.go │ ├── proto.go │ ├── recovery.go │ ├── recovery_test.go │ ├── route.go │ ├── route_test.go │ ├── selector.go │ ├── server.go │ ├── server_test.go │ ├── simple.go │ └── simple_test.go ├── taskswitch │ ├── task_switch.go │ └── task_switch_test.go ├── trace │ ├── ext │ │ ├── tags.go │ │ └── tags_test.go │ ├── propagation.go │ ├── propagation_test.go │ ├── span.go │ ├── span_context.go │ ├── span_test.go │ ├── tracer.go │ ├── tracer_options.go │ └── tracer_test.go └── uptoken │ ├── token.go │ └── token_test.go ├── env.sh ├── go.mod ├── go.sum ├── mqproxy ├── base_for_test.go ├── blob_delete.go ├── blob_delete_test.go ├── client │ ├── cluster_mgr.go │ └── cluster_mgr_test.go ├── client_mock_test.go ├── mqproxy_mock_test.go ├── service.go ├── service_test.go ├── shard_repair.go └── shard_repair_test.go ├── scheduler ├── balance_mgr.go ├── balance_mgr_test.go ├── base │ ├── error_group.go │ ├── error_group_test.go │ ├── queue.go │ ├── queue_test.go │ ├── statistics_metrics.go │ ├── statistics_metrics_test.go │ ├── task_types.go │ ├── task_types_test.go │ ├── utils.go │ └── utils_test.go ├── base_for_test.go ├── client │ ├── cm_cli.go │ ├── cm_cli_test.go │ ├── mqproxy_cli.go │ ├── mqproxy_cli_test.go │ ├── tinker_cli.go │ └── tinker_cli_test.go ├── cluster_topology.go ├── cluster_topology_test.go ├── config_defaulter.go ├── db │ ├── database.go │ ├── inspect_checpoint_tbl.go │ ├── migrate_task_tbl.go │ ├── repair_task_tbl.go │ ├── svr_register_tbl.go │ ├── task_archive_store.go │ └── task_archive_store_test.go ├── disk_drop_mgr.go ├── disk_drop_mgr_test.go ├── inspect_mgr.go ├── inspect_mgr_test.go ├── manual_migrate_test.go ├── manual_migtate.go ├── migrate.go ├── migrate_test.go ├── repair_mgr.go ├── repair_mgr_test.go ├── service.go ├── service_test.go ├── startup.go ├── startup_test.go ├── vol_task_locker.go └── vol_task_locker_test.go ├── testing ├── mocks.go └── mocks │ ├── api_access.go │ ├── api_allocator.go │ ├── api_blobnode.go │ ├── api_clustermgr.go │ ├── api_mqproxy.go │ ├── api_scheduler.go │ ├── api_tinker.go │ ├── api_worker.go │ ├── raft_server.go │ ├── rpc_client.go │ └── util_selector.go ├── tinker ├── base │ ├── base.go │ ├── base_test.go │ ├── kafka_consumer.go │ ├── kafka_consumer_test.go │ ├── kafka_topic_monitor.go │ ├── kafka_topic_monitor_test.go │ ├── msg_sender.go │ ├── msg_sender_test.go │ ├── priority_consumer.go │ ├── priority_consumer_test.go │ ├── statistics_metrics.go │ └── statistics_metrics_test.go ├── base_mock_test.go ├── client │ ├── blobnode.go │ ├── clustermgr.go │ ├── scheduler.go │ └── worker.go ├── client_mock_test.go ├── db │ ├── database.go │ ├── kafka_offset.go │ └── orphan_shard.go ├── db_mock_test.go ├── deleter.go ├── deleter_test.go ├── do_with_check.go ├── do_with_check_test.go ├── repairer.go ├── repairer_test.go ├── service.go ├── service_test.go ├── tinker_test.go ├── volume_cache.go └── volume_cache_test.go ├── util ├── bytespool │ └── pool.go ├── defaulter │ ├── defaulter.go │ └── defaulter_test.go ├── errors │ ├── error_info.go │ ├── error_info_test.go │ ├── errors.go │ └── errors_test.go ├── graceful │ ├── graceful.go │ ├── procmaster.go │ └── procslave.go ├── largefile │ ├── large_file.go │ ├── large_file_log.go │ ├── large_file_log_test.go │ └── large_file_test.go ├── limit │ ├── count │ │ ├── count.go │ │ └── count_test.go │ ├── keycount │ │ ├── keycount.go │ │ └── keycount_test.go │ ├── limit.go │ └── null │ │ ├── null.go │ │ └── null_test.go ├── log │ ├── log.go │ ├── log_test.go │ ├── logext.go │ └── logext_test.go ├── mergetask │ ├── merge.go │ └── merge_test.go ├── retry │ ├── insist.go │ ├── insist_test.go │ ├── retry.go │ └── retry_test.go ├── selector │ ├── selector.go │ └── selector_test.go ├── task │ ├── concurrent.go │ ├── concurrent_test.go │ ├── task.go │ └── task_test.go ├── taskpool │ ├── taskpool.go │ └── taskpool_test.go └── version │ └── version.go ├── vendor ├── github.com │ ├── DataDog │ │ └── zstd │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── ZSTD_LICENSE │ │ │ ├── bitstream.h │ │ │ ├── compiler.h │ │ │ ├── cover.c │ │ │ ├── cover.h │ │ │ ├── cpu.h │ │ │ ├── debug.c │ │ │ ├── debug.h │ │ │ ├── divsufsort.c │ │ │ ├── divsufsort.h │ │ │ ├── entropy_common.c │ │ │ ├── error_private.c │ │ │ ├── error_private.h │ │ │ ├── errors.go │ │ │ ├── fastcover.c │ │ │ ├── fse.h │ │ │ ├── fse_compress.c │ │ │ ├── fse_decompress.c │ │ │ ├── hist.c │ │ │ ├── hist.h │ │ │ ├── huf.h │ │ │ ├── huf_compress.c │ │ │ ├── huf_decompress.c │ │ │ ├── mem.h │ │ │ ├── pool.c │ │ │ ├── pool.h │ │ │ ├── threading.c │ │ │ ├── threading.h │ │ │ ├── travis_test_32.sh │ │ │ ├── update.txt │ │ │ ├── xxhash.c │ │ │ ├── xxhash.h │ │ │ ├── zbuff.h │ │ │ ├── zbuff_common.c │ │ │ ├── zbuff_compress.c │ │ │ ├── zbuff_decompress.c │ │ │ ├── zdict.c │ │ │ ├── zdict.h │ │ │ ├── zstd.go │ │ │ ├── zstd.h │ │ │ ├── zstd_common.c │ │ │ ├── zstd_compress.c │ │ │ ├── zstd_compress_internal.h │ │ │ ├── zstd_ddict.c │ │ │ ├── zstd_ddict.h │ │ │ ├── zstd_decompress.c │ │ │ ├── zstd_decompress_block.c │ │ │ ├── zstd_decompress_block.h │ │ │ ├── zstd_decompress_internal.h │ │ │ ├── zstd_double_fast.c │ │ │ ├── zstd_double_fast.h │ │ │ ├── zstd_errors.h │ │ │ ├── zstd_fast.c │ │ │ ├── zstd_fast.h │ │ │ ├── zstd_internal.h │ │ │ ├── zstd_lazy.c │ │ │ ├── zstd_lazy.h │ │ │ ├── zstd_ldm.c │ │ │ ├── zstd_ldm.h │ │ │ ├── zstd_legacy.h │ │ │ ├── zstd_opt.c │ │ │ ├── zstd_opt.h │ │ │ ├── zstd_stream.go │ │ │ ├── zstd_v01.c │ │ │ ├── zstd_v01.h │ │ │ ├── zstd_v02.c │ │ │ ├── zstd_v02.h │ │ │ ├── zstd_v03.c │ │ │ ├── zstd_v03.h │ │ │ ├── zstd_v04.c │ │ │ ├── zstd_v04.h │ │ │ ├── zstd_v05.c │ │ │ ├── zstd_v05.h │ │ │ ├── zstd_v06.c │ │ │ ├── zstd_v06.h │ │ │ ├── zstd_v07.c │ │ │ ├── zstd_v07.h │ │ │ ├── zstdmt_compress.c │ │ │ └── zstdmt_compress.h │ ├── Shopify │ │ └── sarama │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── Vagrantfile │ │ │ ├── acl_bindings.go │ │ │ ├── acl_create_request.go │ │ │ ├── acl_create_response.go │ │ │ ├── acl_delete_request.go │ │ │ ├── acl_delete_response.go │ │ │ ├── acl_describe_request.go │ │ │ ├── acl_describe_response.go │ │ │ ├── acl_filter.go │ │ │ ├── acl_types.go │ │ │ ├── add_offsets_to_txn_request.go │ │ │ ├── add_offsets_to_txn_response.go │ │ │ ├── add_partitions_to_txn_request.go │ │ │ ├── add_partitions_to_txn_response.go │ │ │ ├── admin.go │ │ │ ├── alter_configs_request.go │ │ │ ├── alter_configs_response.go │ │ │ ├── api_versions_request.go │ │ │ ├── api_versions_response.go │ │ │ ├── async_producer.go │ │ │ ├── balance_strategy.go │ │ │ ├── broker.go │ │ │ ├── client.go │ │ │ ├── compress.go │ │ │ ├── config.go │ │ │ ├── config_resource_type.go │ │ │ ├── consumer.go │ │ │ ├── consumer_group.go │ │ │ ├── consumer_group_members.go │ │ │ ├── consumer_metadata_request.go │ │ │ ├── consumer_metadata_response.go │ │ │ ├── control_record.go │ │ │ ├── crc32_field.go │ │ │ ├── create_partitions_request.go │ │ │ ├── create_partitions_response.go │ │ │ ├── create_topics_request.go │ │ │ ├── create_topics_response.go │ │ │ ├── decompress.go │ │ │ ├── delete_groups_request.go │ │ │ ├── delete_groups_response.go │ │ │ ├── delete_records_request.go │ │ │ ├── delete_records_response.go │ │ │ ├── delete_topics_request.go │ │ │ ├── delete_topics_response.go │ │ │ ├── describe_configs_request.go │ │ │ ├── describe_configs_response.go │ │ │ ├── describe_groups_request.go │ │ │ ├── describe_groups_response.go │ │ │ ├── dev.yml │ │ │ ├── encoder_decoder.go │ │ │ ├── end_txn_request.go │ │ │ ├── end_txn_response.go │ │ │ ├── errors.go │ │ │ ├── fetch_request.go │ │ │ ├── fetch_response.go │ │ │ ├── find_coordinator_request.go │ │ │ ├── find_coordinator_response.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── heartbeat_request.go │ │ │ ├── heartbeat_response.go │ │ │ ├── init_producer_id_request.go │ │ │ ├── init_producer_id_response.go │ │ │ ├── join_group_request.go │ │ │ ├── join_group_response.go │ │ │ ├── leave_group_request.go │ │ │ ├── leave_group_response.go │ │ │ ├── length_field.go │ │ │ ├── list_groups_request.go │ │ │ ├── list_groups_response.go │ │ │ ├── message.go │ │ │ ├── message_set.go │ │ │ ├── metadata_request.go │ │ │ ├── metadata_response.go │ │ │ ├── metrics.go │ │ │ ├── mockbroker.go │ │ │ ├── mockresponses.go │ │ │ ├── offset_commit_request.go │ │ │ ├── offset_commit_response.go │ │ │ ├── offset_fetch_request.go │ │ │ ├── offset_fetch_response.go │ │ │ ├── offset_manager.go │ │ │ ├── offset_request.go │ │ │ ├── offset_response.go │ │ │ ├── packet_decoder.go │ │ │ ├── packet_encoder.go │ │ │ ├── partitioner.go │ │ │ ├── prep_encoder.go │ │ │ ├── produce_request.go │ │ │ ├── produce_response.go │ │ │ ├── produce_set.go │ │ │ ├── real_decoder.go │ │ │ ├── real_encoder.go │ │ │ ├── record.go │ │ │ ├── record_batch.go │ │ │ ├── records.go │ │ │ ├── request.go │ │ │ ├── response_header.go │ │ │ ├── sarama.go │ │ │ ├── sasl_authenticate_request.go │ │ │ ├── sasl_authenticate_response.go │ │ │ ├── sasl_handshake_request.go │ │ │ ├── sasl_handshake_response.go │ │ │ ├── sync_group_request.go │ │ │ ├── sync_group_response.go │ │ │ ├── sync_producer.go │ │ │ ├── timestamp.go │ │ │ ├── txn_offset_commit_request.go │ │ │ ├── txn_offset_commit_response.go │ │ │ ├── utils.go │ │ │ ├── zstd_cgo.go │ │ │ └── zstd_fallback.go │ ├── afex │ │ └── hystrix-go │ │ │ ├── LICENSE │ │ │ └── hystrix │ │ │ ├── circuit.go │ │ │ ├── doc.go │ │ │ ├── eventstream.go │ │ │ ├── hystrix.go │ │ │ ├── logger.go │ │ │ ├── metric_collector │ │ │ ├── default_metric_collector.go │ │ │ └── metric_collector.go │ │ │ ├── metrics.go │ │ │ ├── pool.go │ │ │ ├── pool_metrics.go │ │ │ ├── rolling │ │ │ ├── rolling.go │ │ │ └── rolling_timing.go │ │ │ └── settings.go │ ├── alicebob │ │ ├── gopher-json │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── doc.go │ │ │ └── json.go │ │ └── miniredis │ │ │ └── v2 │ │ │ ├── .gitignore │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── check.go │ │ │ ├── cmd_cluster.go │ │ │ ├── cmd_command.go │ │ │ ├── cmd_connection.go │ │ │ ├── cmd_generic.go │ │ │ ├── cmd_geo.go │ │ │ ├── cmd_hash.go │ │ │ ├── cmd_hll.go │ │ │ ├── cmd_list.go │ │ │ ├── cmd_pubsub.go │ │ │ ├── cmd_scripting.go │ │ │ ├── cmd_server.go │ │ │ ├── cmd_set.go │ │ │ ├── cmd_sorted_set.go │ │ │ ├── cmd_stream.go │ │ │ ├── cmd_string.go │ │ │ ├── cmd_transactions.go │ │ │ ├── db.go │ │ │ ├── direct.go │ │ │ ├── geo.go │ │ │ ├── geohash │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── base32.go │ │ │ └── geohash.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── hll.go │ │ │ ├── hyperloglog │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── compressed.go │ │ │ ├── hyperloglog.go │ │ │ ├── registers.go │ │ │ ├── sparse.go │ │ │ └── utils.go │ │ │ ├── keys.go │ │ │ ├── lua.go │ │ │ ├── metro │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ └── metro64.go │ │ │ ├── miniredis.go │ │ │ ├── pubsub.go │ │ │ ├── redis.go │ │ │ ├── server │ │ │ ├── Makefile │ │ │ ├── proto.go │ │ │ └── server.go │ │ │ ├── sorted_set.go │ │ │ └── stream.go │ ├── armon │ │ └── go-metrics │ │ │ ├── .gitignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── const_unix.go │ │ │ ├── const_windows.go │ │ │ ├── inmem.go │ │ │ ├── inmem_endpoint.go │ │ │ ├── inmem_signal.go │ │ │ ├── metrics.go │ │ │ ├── sink.go │ │ │ ├── start.go │ │ │ ├── statsd.go │ │ │ └── statsite.go │ ├── benbjohnson │ │ └── clock │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── clock.go │ │ │ ├── context.go │ │ │ └── go.mod │ ├── beorn7 │ │ └── perks │ │ │ ├── LICENSE │ │ │ └── quantile │ │ │ ├── exampledata.txt │ │ │ └── stream.go │ ├── cespare │ │ └── xxhash │ │ │ └── v2 │ │ │ ├── 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 │ ├── davecgh │ │ └── go-spew │ │ │ ├── LICENSE │ │ │ └── spew │ │ │ ├── bypass.go │ │ │ ├── bypasssafe.go │ │ │ ├── common.go │ │ │ ├── config.go │ │ │ ├── doc.go │ │ │ ├── dump.go │ │ │ ├── format.go │ │ │ └── spew.go │ ├── deniswernert │ │ └── go-fstab │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── fstab.go │ │ │ └── mount.go │ ├── desertbit │ │ ├── closer │ │ │ └── v3 │ │ │ │ ├── .gitignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── AUTHORS │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── closer.go │ │ │ │ ├── go.mod │ │ │ │ └── go.sum │ │ ├── columnize │ │ │ ├── .travis.yml │ │ │ ├── COPYING │ │ │ ├── README.md │ │ │ └── columnize.go │ │ ├── go-shlex │ │ │ ├── .gitignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ └── shlex.go │ │ ├── grumble │ │ │ ├── .gitignore │ │ │ ├── AUTHORS │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── app.go │ │ │ ├── argmap.go │ │ │ ├── argopt.go │ │ │ ├── args.go │ │ │ ├── command.go │ │ │ ├── commands.go │ │ │ ├── completer.go │ │ │ ├── config.go │ │ │ ├── context.go │ │ │ ├── flagmap.go │ │ │ ├── flags.go │ │ │ ├── functions.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ └── grumble.go │ │ └── readline │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── ansi_windows.go │ │ │ ├── complete.go │ │ │ ├── complete_helper.go │ │ │ ├── complete_segment.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── history.go │ │ │ ├── operation.go │ │ │ ├── password.go │ │ │ ├── rawreader_windows.go │ │ │ ├── readline.go │ │ │ ├── remote.go │ │ │ ├── runebuf.go │ │ │ ├── runes.go │ │ │ ├── search.go │ │ │ ├── std.go │ │ │ ├── std_windows.go │ │ │ ├── term.go │ │ │ ├── term_bsd.go │ │ │ ├── term_linux.go │ │ │ ├── term_solaris.go │ │ │ ├── term_unix.go │ │ │ ├── term_windows.go │ │ │ ├── terminal.go │ │ │ ├── utils.go │ │ │ ├── utils_unix.go │ │ │ ├── utils_windows.go │ │ │ ├── vim.go │ │ │ └── windows_api.go │ ├── dgryski │ │ └── go-rendezvous │ │ │ ├── LICENSE │ │ │ └── rdv.go │ ├── dustin │ │ └── go-humanize │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.markdown │ │ │ ├── big.go │ │ │ ├── bigbytes.go │ │ │ ├── bytes.go │ │ │ ├── comma.go │ │ │ ├── commaf.go │ │ │ ├── ftoa.go │ │ │ ├── humanize.go │ │ │ ├── number.go │ │ │ ├── ordinals.go │ │ │ ├── si.go │ │ │ └── times.go │ ├── eapache │ │ ├── go-resiliency │ │ │ ├── LICENSE │ │ │ └── breaker │ │ │ │ ├── README.md │ │ │ │ └── breaker.go │ │ ├── go-xerial-snappy │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── fuzz.go │ │ │ └── snappy.go │ │ └── queue │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ └── queue.go │ ├── fatih │ │ └── color │ │ │ ├── LICENSE.md │ │ │ ├── README.md │ │ │ ├── color.go │ │ │ ├── doc.go │ │ │ ├── go.mod │ │ │ └── go.sum │ ├── globalsign │ │ └── mgo │ │ │ ├── LICENSE │ │ │ ├── bson │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── bson.go │ │ │ ├── compatibility.go │ │ │ ├── decimal.go │ │ │ ├── decode.go │ │ │ ├── encode.go │ │ │ ├── json.go │ │ │ └── stream.go │ │ │ └── internal │ │ │ └── json │ │ │ ├── LICENSE │ │ │ ├── decode.go │ │ │ ├── encode.go │ │ │ ├── extension.go │ │ │ ├── fold.go │ │ │ ├── indent.go │ │ │ ├── scanner.go │ │ │ ├── stream.go │ │ │ └── tags.go │ ├── go-playground │ │ ├── locales │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── currency │ │ │ │ └── currency.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── logo.png │ │ │ └── rules.go │ │ └── universal-translator │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── errors.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── import_export.go │ │ │ ├── logo.png │ │ │ ├── translator.go │ │ │ └── universal_translator.go │ ├── go-redis │ │ └── redis │ │ │ └── v8 │ │ │ ├── .gitignore │ │ │ ├── .golangci.yml │ │ │ ├── .prettierrc.yml │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── RELEASING.md │ │ │ ├── cluster.go │ │ │ ├── cluster_commands.go │ │ │ ├── command.go │ │ │ ├── commands.go │ │ │ ├── doc.go │ │ │ ├── error.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── internal │ │ │ ├── arg.go │ │ │ ├── hashtag │ │ │ │ └── hashtag.go │ │ │ ├── hscan │ │ │ │ ├── hscan.go │ │ │ │ └── structmap.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 │ │ │ ├── package.json │ │ │ ├── pipeline.go │ │ │ ├── pubsub.go │ │ │ ├── redis.go │ │ │ ├── result.go │ │ │ ├── ring.go │ │ │ ├── script.go │ │ │ ├── sentinel.go │ │ │ ├── tx.go │ │ │ ├── universal.go │ │ │ └── version.go │ ├── go-stack │ │ └── stack │ │ │ ├── .travis.yml │ │ │ ├── LICENSE.md │ │ │ ├── README.md │ │ │ ├── go.mod │ │ │ └── stack.go │ ├── gogo │ │ └── protobuf │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ ├── LICENSE │ │ │ ├── gogoproto │ │ │ ├── Makefile │ │ │ ├── doc.go │ │ │ ├── gogo.pb.go │ │ │ ├── gogo.pb.golden │ │ │ ├── gogo.proto │ │ │ └── helper.go │ │ │ ├── proto │ │ │ ├── Makefile │ │ │ ├── clone.go │ │ │ ├── custom_gogo.go │ │ │ ├── decode.go │ │ │ ├── deprecated.go │ │ │ ├── discard.go │ │ │ ├── duration.go │ │ │ ├── duration_gogo.go │ │ │ ├── encode.go │ │ │ ├── encode_gogo.go │ │ │ ├── equal.go │ │ │ ├── extensions.go │ │ │ ├── extensions_gogo.go │ │ │ ├── lib.go │ │ │ ├── lib_gogo.go │ │ │ ├── message_set.go │ │ │ ├── pointer_reflect.go │ │ │ ├── pointer_reflect_gogo.go │ │ │ ├── pointer_unsafe.go │ │ │ ├── pointer_unsafe_gogo.go │ │ │ ├── properties.go │ │ │ ├── properties_gogo.go │ │ │ ├── skip_gogo.go │ │ │ ├── table_marshal.go │ │ │ ├── table_marshal_gogo.go │ │ │ ├── table_merge.go │ │ │ ├── table_unmarshal.go │ │ │ ├── table_unmarshal_gogo.go │ │ │ ├── text.go │ │ │ ├── text_gogo.go │ │ │ ├── text_parser.go │ │ │ ├── timestamp.go │ │ │ ├── timestamp_gogo.go │ │ │ ├── wrappers.go │ │ │ └── wrappers_gogo.go │ │ │ └── protoc-gen-gogo │ │ │ └── descriptor │ │ │ ├── Makefile │ │ │ ├── descriptor.go │ │ │ ├── descriptor.pb.go │ │ │ ├── descriptor_gostring.gen.go │ │ │ └── helper.go │ ├── golang │ │ ├── mock │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ ├── LICENSE │ │ │ ├── gomock │ │ │ │ ├── call.go │ │ │ │ ├── callset.go │ │ │ │ ├── controller.go │ │ │ │ └── matchers.go │ │ │ └── mockgen │ │ │ │ └── model │ │ │ │ └── model.go │ │ ├── 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 │ │ └── snappy │ │ │ ├── .gitignore │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ ├── LICENSE │ │ │ ├── README │ │ │ ├── decode.go │ │ │ ├── decode_amd64.go │ │ │ ├── decode_amd64.s │ │ │ ├── decode_other.go │ │ │ ├── encode.go │ │ │ ├── encode_amd64.go │ │ │ ├── encode_amd64.s │ │ │ ├── encode_other.go │ │ │ ├── go.mod │ │ │ └── snappy.go │ ├── google │ │ └── uuid │ │ │ ├── .travis.yml │ │ │ ├── CONTRIBUTING.md │ │ │ ├── CONTRIBUTORS │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── dce.go │ │ │ ├── doc.go │ │ │ ├── go.mod │ │ │ ├── hash.go │ │ │ ├── marshal.go │ │ │ ├── node.go │ │ │ ├── node_js.go │ │ │ ├── node_net.go │ │ │ ├── null.go │ │ │ ├── sql.go │ │ │ ├── time.go │ │ │ ├── util.go │ │ │ ├── uuid.go │ │ │ ├── version1.go │ │ │ └── version4.go │ ├── gorilla │ │ └── mux │ │ │ ├── AUTHORS │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── doc.go │ │ │ ├── go.mod │ │ │ ├── middleware.go │ │ │ ├── mux.go │ │ │ ├── regexp.go │ │ │ ├── route.go │ │ │ └── test_helpers.go │ ├── hashicorp │ │ ├── consul │ │ │ └── api │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── acl.go │ │ │ │ ├── agent.go │ │ │ │ ├── api.go │ │ │ │ ├── catalog.go │ │ │ │ ├── config_entry.go │ │ │ │ ├── config_entry_cluster.go │ │ │ │ ├── config_entry_discoverychain.go │ │ │ │ ├── config_entry_gateways.go │ │ │ │ ├── config_entry_intentions.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 │ │ ├── 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 │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── edges.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── iradix.go │ │ │ ├── iter.go │ │ │ ├── node.go │ │ │ └── raw_iter.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-rootcerts │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── doc.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── rootcerts.go │ │ │ ├── rootcerts_base.go │ │ │ └── rootcerts_darwin.go │ │ ├── golang-lru │ │ │ ├── .gitignore │ │ │ ├── 2q.go │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── arc.go │ │ │ ├── doc.go │ │ │ ├── go.mod │ │ │ ├── lru.go │ │ │ └── simplelru │ │ │ │ ├── lru.go │ │ │ │ └── lru_interface.go │ │ └── serf │ │ │ ├── LICENSE │ │ │ └── coordinate │ │ │ ├── client.go │ │ │ ├── config.go │ │ │ ├── coordinate.go │ │ │ └── phantom.go │ ├── julienschmidt │ │ └── httprouter │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── go.mod │ │ │ ├── path.go │ │ │ ├── router.go │ │ │ └── tree.go │ ├── klauspost │ │ ├── cpuid │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── CONTRIBUTING.txt │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── cpuid.go │ │ │ ├── cpuid_386.s │ │ │ ├── cpuid_amd64.s │ │ │ ├── cpuid_arm64.s │ │ │ ├── detect_arm64.go │ │ │ ├── detect_intel.go │ │ │ ├── detect_ref.go │ │ │ └── go.mod │ │ └── reedsolomon │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── appveyor.yml │ │ │ ├── galois.go │ │ │ ├── galoisAvx512_amd64.go │ │ │ ├── galoisAvx512_amd64.s │ │ │ ├── galois_amd64.go │ │ │ ├── galois_amd64.s │ │ │ ├── galois_arm64.go │ │ │ ├── galois_arm64.s │ │ │ ├── galois_noasm.go │ │ │ ├── galois_ppc64le.go │ │ │ ├── galois_ppc64le.s │ │ │ ├── inversion_tree.go │ │ │ ├── matrix.go │ │ │ ├── options.go │ │ │ ├── reedsolomon.go │ │ │ └── streaming.go │ ├── leodido │ │ └── go-urn │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── machine.go │ │ │ ├── machine.go.rl │ │ │ ├── makefile │ │ │ └── urn.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 │ │ │ ├── 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 │ ├── matttproud │ │ └── golang_protobuf_extensions │ │ │ ├── LICENSE │ │ │ ├── NOTICE │ │ │ └── pbutil │ │ │ ├── .gitignore │ │ │ ├── Makefile │ │ │ ├── decode.go │ │ │ ├── doc.go │ │ │ └── encode.go │ ├── mitchellh │ │ ├── go-homedir │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── go.mod │ │ │ └── homedir.go │ │ └── mapstructure │ │ │ ├── .travis.yml │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── decode_hooks.go │ │ │ ├── error.go │ │ │ ├── go.mod │ │ │ └── mapstructure.go │ ├── opentracing │ │ └── opentracing-go │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── ext.go │ │ │ ├── ext │ │ │ ├── field.go │ │ │ └── tags.go │ │ │ ├── globaltracer.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── gocontext.go │ │ │ ├── log │ │ │ ├── field.go │ │ │ └── util.go │ │ │ ├── mocktracer │ │ │ ├── mocklogrecord.go │ │ │ ├── mockspan.go │ │ │ ├── mocktracer.go │ │ │ └── propagation.go │ │ │ ├── noop.go │ │ │ ├── propagation.go │ │ │ ├── span.go │ │ │ └── tracer.go │ ├── pierrec │ │ └── lz4 │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── block.go │ │ │ ├── debug.go │ │ │ ├── debug_stub.go │ │ │ ├── decode_amd64.go │ │ │ ├── decode_amd64.s │ │ │ ├── decode_other.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── internal │ │ │ └── xxh32 │ │ │ │ └── xxh32zero.go │ │ │ ├── lz4.go │ │ │ ├── lz4_go1.10.go │ │ │ ├── lz4_notgo1.10.go │ │ │ ├── reader.go │ │ │ └── writer.go │ ├── pmezard │ │ └── go-difflib │ │ │ ├── LICENSE │ │ │ └── difflib │ │ │ └── difflib.go │ ├── prometheus │ │ ├── client_golang │ │ │ ├── LICENSE │ │ │ ├── NOTICE │ │ │ └── prometheus │ │ │ │ ├── .gitignore │ │ │ │ ├── README.md │ │ │ │ ├── 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 │ │ │ │ ├── promhttp │ │ │ │ ├── delegator.go │ │ │ │ ├── http.go │ │ │ │ ├── instrument_client.go │ │ │ │ └── instrument_server.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 │ │ │ ├── CODE_OF_CONDUCT.md │ │ │ ├── CONTRIBUTING.md │ │ │ ├── LICENSE │ │ │ ├── MAINTAINERS.md │ │ │ ├── Makefile │ │ │ ├── Makefile.common │ │ │ ├── NOTICE │ │ │ ├── README.md │ │ │ ├── SECURITY.md │ │ │ ├── arp.go │ │ │ ├── buddyinfo.go │ │ │ ├── cpuinfo.go │ │ │ ├── cpuinfo_armx.go │ │ │ ├── cpuinfo_mipsx.go │ │ │ ├── cpuinfo_others.go │ │ │ ├── cpuinfo_ppcx.go │ │ │ ├── cpuinfo_riscvx.go │ │ │ ├── cpuinfo_s390x.go │ │ │ ├── cpuinfo_x86.go │ │ │ ├── crypto.go │ │ │ ├── doc.go │ │ │ ├── fixtures.ttar │ │ │ ├── fs.go │ │ │ ├── fscache.go │ │ │ ├── go.mod │ │ │ ├── go.sum │ │ │ ├── internal │ │ │ ├── fs │ │ │ │ └── fs.go │ │ │ └── util │ │ │ │ ├── parse.go │ │ │ │ ├── readfile.go │ │ │ │ ├── sysreadfile.go │ │ │ │ ├── sysreadfile_compat.go │ │ │ │ └── valueparser.go │ │ │ ├── ipvs.go │ │ │ ├── kernel_random.go │ │ │ ├── loadavg.go │ │ │ ├── mdstat.go │ │ │ ├── meminfo.go │ │ │ ├── mountinfo.go │ │ │ ├── mountstats.go │ │ │ ├── net_conntrackstat.go │ │ │ ├── net_dev.go │ │ │ ├── net_ip_socket.go │ │ │ ├── net_protocols.go │ │ │ ├── net_sockstat.go │ │ │ ├── net_softnet.go │ │ │ ├── net_tcp.go │ │ │ ├── net_udp.go │ │ │ ├── net_unix.go │ │ │ ├── proc.go │ │ │ ├── proc_cgroup.go │ │ │ ├── proc_environ.go │ │ │ ├── proc_fdinfo.go │ │ │ ├── proc_io.go │ │ │ ├── proc_limits.go │ │ │ ├── proc_maps.go │ │ │ ├── proc_ns.go │ │ │ ├── proc_psi.go │ │ │ ├── proc_smaps.go │ │ │ ├── proc_stat.go │ │ │ ├── proc_status.go │ │ │ ├── schedstat.go │ │ │ ├── slab.go │ │ │ ├── stat.go │ │ │ ├── swaps.go │ │ │ ├── ttar │ │ │ ├── vm.go │ │ │ ├── xfrm.go │ │ │ └── zoneinfo.go │ ├── rcrowley │ │ └── go-metrics │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── counter.go │ │ │ ├── debug.go │ │ │ ├── ewma.go │ │ │ ├── gauge.go │ │ │ ├── gauge_float64.go │ │ │ ├── graphite.go │ │ │ ├── healthcheck.go │ │ │ ├── histogram.go │ │ │ ├── json.go │ │ │ ├── log.go │ │ │ ├── memory.md │ │ │ ├── meter.go │ │ │ ├── metrics.go │ │ │ ├── opentsdb.go │ │ │ ├── registry.go │ │ │ ├── runtime.go │ │ │ ├── runtime_cgo.go │ │ │ ├── runtime_gccpufraction.go │ │ │ ├── runtime_no_cgo.go │ │ │ ├── runtime_no_gccpufraction.go │ │ │ ├── sample.go │ │ │ ├── syslog.go │ │ │ ├── timer.go │ │ │ ├── validate.sh │ │ │ └── writer.go │ ├── stretchr │ │ └── testify │ │ │ ├── LICENSE │ │ │ ├── assert │ │ │ ├── assertion_compare.go │ │ │ ├── assertion_format.go │ │ │ ├── assertion_format.go.tmpl │ │ │ ├── assertion_forward.go │ │ │ ├── assertion_forward.go.tmpl │ │ │ ├── assertion_order.go │ │ │ ├── assertions.go │ │ │ ├── doc.go │ │ │ ├── errors.go │ │ │ ├── forward_assertions.go │ │ │ └── http_assertions.go │ │ │ └── require │ │ │ ├── doc.go │ │ │ ├── forward_requirements.go │ │ │ ├── require.go │ │ │ ├── require.go.tmpl │ │ │ ├── require_forward.go │ │ │ ├── require_forward.go.tmpl │ │ │ └── requirements.go │ ├── tecbot │ │ └── gorocksdb │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── array.go │ │ │ ├── backup.go │ │ │ ├── cache.go │ │ │ ├── cf_handle.go │ │ │ ├── checkpoint.go │ │ │ ├── compaction_filter.go │ │ │ ├── comparator.go │ │ │ ├── cow.go │ │ │ ├── db.go │ │ │ ├── dbpath.go │ │ │ ├── doc.go │ │ │ ├── dynflag.go │ │ │ ├── env.go │ │ │ ├── filter_policy.go │ │ │ ├── gorocksdb.c │ │ │ ├── gorocksdb.h │ │ │ ├── iterator.go │ │ │ ├── memory_usage.go │ │ │ ├── merge_operator.go │ │ │ ├── options.go │ │ │ ├── options_block_based_table.go │ │ │ ├── options_compaction.go │ │ │ ├── options_compression.go │ │ │ ├── options_env.go │ │ │ ├── options_flush.go │ │ │ ├── options_ingest.go │ │ │ ├── options_read.go │ │ │ ├── options_transaction.go │ │ │ ├── options_transactiondb.go │ │ │ ├── options_write.go │ │ │ ├── ratelimiter.go │ │ │ ├── slice.go │ │ │ ├── slice_transform.go │ │ │ ├── snapshot.go │ │ │ ├── sst_file_writer.go │ │ │ ├── staticflag_linux.go │ │ │ ├── transaction.go │ │ │ ├── transactiondb.go │ │ │ ├── util.go │ │ │ ├── wal_iterator.go │ │ │ └── write_batch.go │ ├── xdg │ │ ├── scram │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── client.go │ │ │ ├── client_conv.go │ │ │ ├── common.go │ │ │ ├── doc.go │ │ │ ├── parse.go │ │ │ ├── scram.go │ │ │ ├── server.go │ │ │ └── server_conv.go │ │ └── stringprep │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── bidi.go │ │ │ ├── doc.go │ │ │ ├── error.go │ │ │ ├── map.go │ │ │ ├── profile.go │ │ │ ├── saslprep.go │ │ │ ├── set.go │ │ │ └── tables.go │ └── yuin │ │ └── gopher-lua │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.rst │ │ ├── _state.go │ │ ├── _vm.go │ │ ├── alloc.go │ │ ├── ast │ │ ├── ast.go │ │ ├── expr.go │ │ ├── misc.go │ │ ├── stmt.go │ │ └── token.go │ │ ├── auxlib.go │ │ ├── baselib.go │ │ ├── channellib.go │ │ ├── compile.go │ │ ├── config.go │ │ ├── coroutinelib.go │ │ ├── debuglib.go │ │ ├── function.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── iolib.go │ │ ├── linit.go │ │ ├── loadlib.go │ │ ├── mathlib.go │ │ ├── opcode.go │ │ ├── oslib.go │ │ ├── package.go │ │ ├── parse │ │ ├── Makefile │ │ ├── lexer.go │ │ ├── parser.go │ │ └── parser.go.y │ │ ├── pm │ │ └── pm.go │ │ ├── state.go │ │ ├── stringlib.go │ │ ├── table.go │ │ ├── tablelib.go │ │ ├── utils.go │ │ ├── value.go │ │ └── vm.go ├── go.etcd.io │ └── etcd │ │ └── raft │ │ └── v3 │ │ ├── LICENSE │ │ ├── OWNERS │ │ ├── README.md │ │ ├── bootstrap.go │ │ ├── confchange │ │ ├── confchange.go │ │ └── restore.go │ │ ├── design.md │ │ ├── doc.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── log.go │ │ ├── log_unstable.go │ │ ├── logger.go │ │ ├── node.go │ │ ├── quorum │ │ ├── joint.go │ │ ├── majority.go │ │ ├── quorum.go │ │ └── voteresult_string.go │ │ ├── raft.go │ │ ├── raftpb │ │ ├── confchange.go │ │ ├── confstate.go │ │ ├── raft.pb.go │ │ └── raft.proto │ │ ├── rawnode.go │ │ ├── read_only.go │ │ ├── status.go │ │ ├── storage.go │ │ ├── tracker │ │ ├── inflights.go │ │ ├── progress.go │ │ ├── state.go │ │ └── tracker.go │ │ └── util.go ├── go.mongodb.org │ └── mongo-driver │ │ ├── LICENSE │ │ ├── bson │ │ ├── bson.go │ │ ├── bson_1_8.go │ │ ├── bsoncodec │ │ │ ├── bsoncodec.go │ │ │ ├── default_value_decoders.go │ │ │ ├── default_value_encoders.go │ │ │ ├── doc.go │ │ │ ├── mode.go │ │ │ ├── pointer_codec.go │ │ │ ├── proxy.go │ │ │ ├── registry.go │ │ │ ├── struct_codec.go │ │ │ ├── struct_tag_parser.go │ │ │ └── types.go │ │ ├── bsonrw │ │ │ ├── copier.go │ │ │ ├── doc.go │ │ │ ├── extjson_parser.go │ │ │ ├── extjson_reader.go │ │ │ ├── extjson_tables.go │ │ │ ├── extjson_wrappers.go │ │ │ ├── extjson_writer.go │ │ │ ├── json_scanner.go │ │ │ ├── mode.go │ │ │ ├── reader.go │ │ │ ├── value_reader.go │ │ │ ├── value_writer.go │ │ │ └── writer.go │ │ ├── bsontype │ │ │ └── bsontype.go │ │ ├── decoder.go │ │ ├── doc.go │ │ ├── encoder.go │ │ ├── marshal.go │ │ ├── primitive │ │ │ ├── decimal.go │ │ │ ├── objectid.go │ │ │ └── primitive.go │ │ ├── primitive_codecs.go │ │ ├── raw.go │ │ ├── raw_element.go │ │ ├── raw_value.go │ │ ├── registry.go │ │ ├── types.go │ │ └── unmarshal.go │ │ ├── event │ │ └── monitoring.go │ │ ├── internal │ │ ├── const.go │ │ ├── error.go │ │ └── semaphore.go │ │ ├── mongo │ │ ├── batch_cursor.go │ │ ├── bulk_write.go │ │ ├── bulk_write_models.go │ │ ├── change_stream.go │ │ ├── client.go │ │ ├── collection.go │ │ ├── cursor.go │ │ ├── database.go │ │ ├── doc.go │ │ ├── errors.go │ │ ├── index_options_builder.go │ │ ├── index_view.go │ │ ├── mongo.go │ │ ├── options │ │ │ ├── aggregateoptions.go │ │ │ ├── bulkwriteoptions.go │ │ │ ├── changestreamoptions.go │ │ │ ├── clientoptions.go │ │ │ ├── clientoptions_1_10.go │ │ │ ├── clientoptions_1_9.go │ │ │ ├── collectionoptions.go │ │ │ ├── countoptions.go │ │ │ ├── dboptions.go │ │ │ ├── deleteoptions.go │ │ │ ├── distinctoptions.go │ │ │ ├── estimatedcountoptions.go │ │ │ ├── findoptions.go │ │ │ ├── gridfsoptions.go │ │ │ ├── indexoptions.go │ │ │ ├── insertoptions.go │ │ │ ├── listcollectionsoptions.go │ │ │ ├── listdatabasesoptions.go │ │ │ ├── mongooptions.go │ │ │ ├── replaceoptions.go │ │ │ ├── runcmdoptions.go │ │ │ ├── sessionoptions.go │ │ │ ├── transactionoptions.go │ │ │ └── updateoptions.go │ │ ├── readconcern │ │ │ └── readconcern.go │ │ ├── readpref │ │ │ ├── mode.go │ │ │ ├── options.go │ │ │ └── readpref.go │ │ ├── results.go │ │ ├── session.go │ │ ├── single_result.go │ │ ├── util.go │ │ └── writeconcern │ │ │ └── writeconcern.go │ │ ├── tag │ │ └── tag.go │ │ ├── version │ │ └── version.go │ │ └── x │ │ ├── bsonx │ │ ├── array.go │ │ ├── bsoncore │ │ │ ├── bsoncore.go │ │ │ ├── document.go │ │ │ ├── document_sequence.go │ │ │ ├── element.go │ │ │ ├── tables.go │ │ │ └── value.go │ │ ├── constructor.go │ │ ├── document.go │ │ ├── element.go │ │ ├── mdocument.go │ │ ├── primitive_codecs.go │ │ ├── registry.go │ │ └── value.go │ │ └── mongo │ │ └── driver │ │ ├── DESIGN.md │ │ ├── address │ │ └── addr.go │ │ ├── auth │ │ ├── auth.go │ │ ├── cred.go │ │ ├── default.go │ │ ├── doc.go │ │ ├── gssapi.go │ │ ├── gssapi_not_enabled.go │ │ ├── gssapi_not_supported.go │ │ ├── internal │ │ │ └── gssapi │ │ │ │ ├── gss.go │ │ │ │ ├── gss_wrapper.c │ │ │ │ ├── gss_wrapper.h │ │ │ │ ├── sspi.go │ │ │ │ ├── sspi_wrapper.c │ │ │ │ └── sspi_wrapper.h │ │ ├── mongodbcr.go │ │ ├── plain.go │ │ ├── sasl.go │ │ ├── scram.go │ │ ├── util.go │ │ └── x509.go │ │ ├── batch_cursor.go │ │ ├── batches.go │ │ ├── connstring │ │ └── connstring.go │ │ ├── description │ │ ├── description.go │ │ ├── feature.go │ │ ├── server.go │ │ ├── server_kind.go │ │ ├── server_selector.go │ │ ├── topology.go │ │ ├── topology_kind.go │ │ ├── version.go │ │ └── version_range.go │ │ ├── dns │ │ └── dns.go │ │ ├── driver.go │ │ ├── errors.go │ │ ├── legacy.go │ │ ├── list_collections_batch_cursor.go │ │ ├── operation.go │ │ ├── operation │ │ ├── abort_transaction.go │ │ ├── abort_transaction.toml │ │ ├── aggregate.go │ │ ├── aggregate.toml │ │ ├── command.go │ │ ├── commit_transaction.go │ │ ├── commit_transaction.toml │ │ ├── count.go │ │ ├── count.toml │ │ ├── createIndexes.go │ │ ├── createIndexes.toml │ │ ├── delete.go │ │ ├── delete.toml │ │ ├── distinct.go │ │ ├── distinct.toml │ │ ├── drop_collection.go │ │ ├── drop_collection.toml │ │ ├── drop_database.go │ │ ├── drop_database.toml │ │ ├── drop_indexes.go │ │ ├── drop_indexes.toml │ │ ├── end_sessions.go │ │ ├── end_sessions.toml │ │ ├── find.go │ │ ├── find.toml │ │ ├── find_and_modify.go │ │ ├── find_and_modify.toml │ │ ├── insert.go │ │ ├── insert.toml │ │ ├── ismaster.go │ │ ├── listDatabases.go │ │ ├── listDatabases.toml │ │ ├── list_collections.go │ │ ├── list_collections.toml │ │ ├── list_indexes.go │ │ ├── list_indexes.toml │ │ ├── operation.go │ │ ├── update.go │ │ └── update.toml │ │ ├── operation_legacy.go │ │ ├── session │ │ ├── client_session.go │ │ ├── cluster_clock.go │ │ ├── options.go │ │ ├── server_session.go │ │ └── session_pool.go │ │ ├── topology │ │ ├── DESIGN.md │ │ ├── connection.go │ │ ├── connection_legacy.go │ │ ├── connection_legacy_command_metadata.go │ │ ├── connection_options.go │ │ ├── errors.go │ │ ├── fsm.go │ │ ├── pool.go │ │ ├── resource_pool.go │ │ ├── server.go │ │ ├── server_options.go │ │ ├── topology.go │ │ ├── topology_options.go │ │ ├── topology_options_1_10.go │ │ └── topology_options_1_9.go │ │ ├── uuid │ │ └── uuid.go │ │ └── wiremessage │ │ └── wiremessage.go ├── golang.org │ └── x │ │ ├── crypto │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── PATENTS │ │ └── pbkdf2 │ │ │ └── pbkdf2.go │ │ ├── net │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── PATENTS │ │ ├── internal │ │ │ └── socks │ │ │ │ ├── client.go │ │ │ │ └── socks.go │ │ └── proxy │ │ │ ├── dial.go │ │ │ ├── direct.go │ │ │ ├── per_host.go │ │ │ ├── proxy.go │ │ │ └── socks5.go │ │ ├── sync │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── PATENTS │ │ ├── semaphore │ │ │ └── semaphore.go │ │ └── singleflight │ │ │ └── singleflight.go │ │ ├── sys │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── PATENTS │ │ ├── internal │ │ │ └── unsafeheader │ │ │ │ └── unsafeheader.go │ │ ├── unix │ │ │ ├── .gitignore │ │ │ ├── README.md │ │ │ ├── affinity_linux.go │ │ │ ├── aliases.go │ │ │ ├── asm_aix_ppc64.s │ │ │ ├── asm_bsd_386.s │ │ │ ├── asm_bsd_amd64.s │ │ │ ├── asm_bsd_arm.s │ │ │ ├── asm_bsd_arm64.s │ │ │ ├── asm_linux_386.s │ │ │ ├── asm_linux_amd64.s │ │ │ ├── asm_linux_arm.s │ │ │ ├── asm_linux_arm64.s │ │ │ ├── asm_linux_mips64x.s │ │ │ ├── asm_linux_mipsx.s │ │ │ ├── asm_linux_ppc64x.s │ │ │ ├── asm_linux_riscv64.s │ │ │ ├── asm_linux_s390x.s │ │ │ ├── asm_openbsd_mips64.s │ │ │ ├── asm_solaris_amd64.s │ │ │ ├── asm_zos_s390x.s │ │ │ ├── bluetooth_linux.go │ │ │ ├── cap_freebsd.go │ │ │ ├── constants.go │ │ │ ├── dev_aix_ppc.go │ │ │ ├── dev_aix_ppc64.go │ │ │ ├── dev_darwin.go │ │ │ ├── dev_dragonfly.go │ │ │ ├── dev_freebsd.go │ │ │ ├── dev_linux.go │ │ │ ├── dev_netbsd.go │ │ │ ├── dev_openbsd.go │ │ │ ├── dev_zos.go │ │ │ ├── dirent.go │ │ │ ├── endian_big.go │ │ │ ├── endian_little.go │ │ │ ├── env_unix.go │ │ │ ├── epoll_zos.go │ │ │ ├── errors_freebsd_386.go │ │ │ ├── errors_freebsd_amd64.go │ │ │ ├── errors_freebsd_arm.go │ │ │ ├── errors_freebsd_arm64.go │ │ │ ├── fcntl.go │ │ │ ├── fcntl_darwin.go │ │ │ ├── fcntl_linux_32bit.go │ │ │ ├── fdset.go │ │ │ ├── fstatfs_zos.go │ │ │ ├── gccgo.go │ │ │ ├── gccgo_c.c │ │ │ ├── gccgo_linux_amd64.go │ │ │ ├── ioctl.go │ │ │ ├── ioctl_linux.go │ │ │ ├── ioctl_zos.go │ │ │ ├── mkall.sh │ │ │ ├── mkerrors.sh │ │ │ ├── pagesize_unix.go │ │ │ ├── pledge_openbsd.go │ │ │ ├── ptrace_darwin.go │ │ │ ├── ptrace_ios.go │ │ │ ├── race.go │ │ │ ├── race0.go │ │ │ ├── readdirent_getdents.go │ │ │ ├── readdirent_getdirentries.go │ │ │ ├── sockcmsg_dragonfly.go │ │ │ ├── sockcmsg_linux.go │ │ │ ├── sockcmsg_unix.go │ │ │ ├── sockcmsg_unix_other.go │ │ │ ├── str.go │ │ │ ├── syscall.go │ │ │ ├── syscall_aix.go │ │ │ ├── syscall_aix_ppc.go │ │ │ ├── syscall_aix_ppc64.go │ │ │ ├── syscall_bsd.go │ │ │ ├── syscall_darwin.1_12.go │ │ │ ├── syscall_darwin.1_13.go │ │ │ ├── syscall_darwin.go │ │ │ ├── syscall_darwin_amd64.go │ │ │ ├── syscall_darwin_arm64.go │ │ │ ├── syscall_darwin_libSystem.go │ │ │ ├── syscall_dragonfly.go │ │ │ ├── syscall_dragonfly_amd64.go │ │ │ ├── syscall_freebsd.go │ │ │ ├── syscall_freebsd_386.go │ │ │ ├── syscall_freebsd_amd64.go │ │ │ ├── syscall_freebsd_arm.go │ │ │ ├── syscall_freebsd_arm64.go │ │ │ ├── syscall_illumos.go │ │ │ ├── syscall_linux.go │ │ │ ├── syscall_linux_386.go │ │ │ ├── syscall_linux_amd64.go │ │ │ ├── syscall_linux_amd64_gc.go │ │ │ ├── syscall_linux_arm.go │ │ │ ├── syscall_linux_arm64.go │ │ │ ├── syscall_linux_gc.go │ │ │ ├── syscall_linux_gc_386.go │ │ │ ├── syscall_linux_gc_arm.go │ │ │ ├── syscall_linux_gccgo_386.go │ │ │ ├── syscall_linux_gccgo_arm.go │ │ │ ├── syscall_linux_mips64x.go │ │ │ ├── syscall_linux_mipsx.go │ │ │ ├── syscall_linux_ppc.go │ │ │ ├── syscall_linux_ppc64x.go │ │ │ ├── syscall_linux_riscv64.go │ │ │ ├── syscall_linux_s390x.go │ │ │ ├── syscall_linux_sparc64.go │ │ │ ├── syscall_netbsd.go │ │ │ ├── syscall_netbsd_386.go │ │ │ ├── syscall_netbsd_amd64.go │ │ │ ├── syscall_netbsd_arm.go │ │ │ ├── syscall_netbsd_arm64.go │ │ │ ├── syscall_openbsd.go │ │ │ ├── syscall_openbsd_386.go │ │ │ ├── syscall_openbsd_amd64.go │ │ │ ├── syscall_openbsd_arm.go │ │ │ ├── syscall_openbsd_arm64.go │ │ │ ├── syscall_openbsd_mips64.go │ │ │ ├── syscall_solaris.go │ │ │ ├── syscall_solaris_amd64.go │ │ │ ├── syscall_unix.go │ │ │ ├── syscall_unix_gc.go │ │ │ ├── syscall_unix_gc_ppc64x.go │ │ │ ├── syscall_zos_s390x.go │ │ │ ├── timestruct.go │ │ │ ├── unveil_openbsd.go │ │ │ ├── xattr_bsd.go │ │ │ ├── zerrors_aix_ppc.go │ │ │ ├── zerrors_aix_ppc64.go │ │ │ ├── zerrors_darwin_amd64.go │ │ │ ├── zerrors_darwin_arm64.go │ │ │ ├── zerrors_dragonfly_amd64.go │ │ │ ├── zerrors_freebsd_386.go │ │ │ ├── zerrors_freebsd_amd64.go │ │ │ ├── zerrors_freebsd_arm.go │ │ │ ├── zerrors_freebsd_arm64.go │ │ │ ├── zerrors_linux.go │ │ │ ├── zerrors_linux_386.go │ │ │ ├── zerrors_linux_amd64.go │ │ │ ├── zerrors_linux_arm.go │ │ │ ├── zerrors_linux_arm64.go │ │ │ ├── zerrors_linux_mips.go │ │ │ ├── zerrors_linux_mips64.go │ │ │ ├── zerrors_linux_mips64le.go │ │ │ ├── zerrors_linux_mipsle.go │ │ │ ├── zerrors_linux_ppc.go │ │ │ ├── zerrors_linux_ppc64.go │ │ │ ├── zerrors_linux_ppc64le.go │ │ │ ├── zerrors_linux_riscv64.go │ │ │ ├── zerrors_linux_s390x.go │ │ │ ├── zerrors_linux_sparc64.go │ │ │ ├── zerrors_netbsd_386.go │ │ │ ├── zerrors_netbsd_amd64.go │ │ │ ├── zerrors_netbsd_arm.go │ │ │ ├── zerrors_netbsd_arm64.go │ │ │ ├── zerrors_openbsd_386.go │ │ │ ├── zerrors_openbsd_amd64.go │ │ │ ├── zerrors_openbsd_arm.go │ │ │ ├── zerrors_openbsd_arm64.go │ │ │ ├── zerrors_openbsd_mips64.go │ │ │ ├── zerrors_solaris_amd64.go │ │ │ ├── zerrors_zos_s390x.go │ │ │ ├── zptrace_armnn_linux.go │ │ │ ├── zptrace_linux_arm64.go │ │ │ ├── zptrace_mipsnn_linux.go │ │ │ ├── zptrace_mipsnnle_linux.go │ │ │ ├── zptrace_x86_linux.go │ │ │ ├── zsyscall_aix_ppc.go │ │ │ ├── zsyscall_aix_ppc64.go │ │ │ ├── zsyscall_aix_ppc64_gc.go │ │ │ ├── zsyscall_aix_ppc64_gccgo.go │ │ │ ├── zsyscall_darwin_amd64.1_13.go │ │ │ ├── zsyscall_darwin_amd64.1_13.s │ │ │ ├── zsyscall_darwin_amd64.go │ │ │ ├── zsyscall_darwin_amd64.s │ │ │ ├── zsyscall_darwin_arm64.1_13.go │ │ │ ├── zsyscall_darwin_arm64.1_13.s │ │ │ ├── zsyscall_darwin_arm64.go │ │ │ ├── zsyscall_darwin_arm64.s │ │ │ ├── zsyscall_dragonfly_amd64.go │ │ │ ├── zsyscall_freebsd_386.go │ │ │ ├── zsyscall_freebsd_amd64.go │ │ │ ├── zsyscall_freebsd_arm.go │ │ │ ├── zsyscall_freebsd_arm64.go │ │ │ ├── zsyscall_illumos_amd64.go │ │ │ ├── zsyscall_linux.go │ │ │ ├── zsyscall_linux_386.go │ │ │ ├── zsyscall_linux_amd64.go │ │ │ ├── zsyscall_linux_arm.go │ │ │ ├── zsyscall_linux_arm64.go │ │ │ ├── zsyscall_linux_mips.go │ │ │ ├── zsyscall_linux_mips64.go │ │ │ ├── zsyscall_linux_mips64le.go │ │ │ ├── zsyscall_linux_mipsle.go │ │ │ ├── zsyscall_linux_ppc.go │ │ │ ├── zsyscall_linux_ppc64.go │ │ │ ├── zsyscall_linux_ppc64le.go │ │ │ ├── zsyscall_linux_riscv64.go │ │ │ ├── zsyscall_linux_s390x.go │ │ │ ├── zsyscall_linux_sparc64.go │ │ │ ├── zsyscall_netbsd_386.go │ │ │ ├── zsyscall_netbsd_amd64.go │ │ │ ├── zsyscall_netbsd_arm.go │ │ │ ├── zsyscall_netbsd_arm64.go │ │ │ ├── zsyscall_openbsd_386.go │ │ │ ├── zsyscall_openbsd_amd64.go │ │ │ ├── zsyscall_openbsd_arm.go │ │ │ ├── zsyscall_openbsd_arm64.go │ │ │ ├── zsyscall_openbsd_mips64.go │ │ │ ├── zsyscall_solaris_amd64.go │ │ │ ├── zsyscall_zos_s390x.go │ │ │ ├── zsysctl_openbsd_386.go │ │ │ ├── zsysctl_openbsd_amd64.go │ │ │ ├── zsysctl_openbsd_arm.go │ │ │ ├── zsysctl_openbsd_arm64.go │ │ │ ├── zsysctl_openbsd_mips64.go │ │ │ ├── zsysnum_darwin_amd64.go │ │ │ ├── zsysnum_darwin_arm64.go │ │ │ ├── zsysnum_dragonfly_amd64.go │ │ │ ├── zsysnum_freebsd_386.go │ │ │ ├── zsysnum_freebsd_amd64.go │ │ │ ├── zsysnum_freebsd_arm.go │ │ │ ├── zsysnum_freebsd_arm64.go │ │ │ ├── zsysnum_linux_386.go │ │ │ ├── zsysnum_linux_amd64.go │ │ │ ├── zsysnum_linux_arm.go │ │ │ ├── zsysnum_linux_arm64.go │ │ │ ├── zsysnum_linux_mips.go │ │ │ ├── zsysnum_linux_mips64.go │ │ │ ├── zsysnum_linux_mips64le.go │ │ │ ├── zsysnum_linux_mipsle.go │ │ │ ├── zsysnum_linux_ppc.go │ │ │ ├── zsysnum_linux_ppc64.go │ │ │ ├── zsysnum_linux_ppc64le.go │ │ │ ├── zsysnum_linux_riscv64.go │ │ │ ├── zsysnum_linux_s390x.go │ │ │ ├── zsysnum_linux_sparc64.go │ │ │ ├── zsysnum_netbsd_386.go │ │ │ ├── zsysnum_netbsd_amd64.go │ │ │ ├── zsysnum_netbsd_arm.go │ │ │ ├── zsysnum_netbsd_arm64.go │ │ │ ├── zsysnum_openbsd_386.go │ │ │ ├── zsysnum_openbsd_amd64.go │ │ │ ├── zsysnum_openbsd_arm.go │ │ │ ├── zsysnum_openbsd_arm64.go │ │ │ ├── zsysnum_openbsd_mips64.go │ │ │ ├── zsysnum_zos_s390x.go │ │ │ ├── ztypes_aix_ppc.go │ │ │ ├── ztypes_aix_ppc64.go │ │ │ ├── ztypes_darwin_amd64.go │ │ │ ├── ztypes_darwin_arm64.go │ │ │ ├── ztypes_dragonfly_amd64.go │ │ │ ├── ztypes_freebsd_386.go │ │ │ ├── ztypes_freebsd_amd64.go │ │ │ ├── ztypes_freebsd_arm.go │ │ │ ├── ztypes_freebsd_arm64.go │ │ │ ├── ztypes_illumos_amd64.go │ │ │ ├── ztypes_linux.go │ │ │ ├── ztypes_linux_386.go │ │ │ ├── ztypes_linux_amd64.go │ │ │ ├── ztypes_linux_arm.go │ │ │ ├── ztypes_linux_arm64.go │ │ │ ├── ztypes_linux_mips.go │ │ │ ├── ztypes_linux_mips64.go │ │ │ ├── ztypes_linux_mips64le.go │ │ │ ├── ztypes_linux_mipsle.go │ │ │ ├── ztypes_linux_ppc.go │ │ │ ├── ztypes_linux_ppc64.go │ │ │ ├── ztypes_linux_ppc64le.go │ │ │ ├── ztypes_linux_riscv64.go │ │ │ ├── ztypes_linux_s390x.go │ │ │ ├── ztypes_linux_sparc64.go │ │ │ ├── ztypes_netbsd_386.go │ │ │ ├── ztypes_netbsd_amd64.go │ │ │ ├── ztypes_netbsd_arm.go │ │ │ ├── ztypes_netbsd_arm64.go │ │ │ ├── ztypes_openbsd_386.go │ │ │ ├── ztypes_openbsd_amd64.go │ │ │ ├── ztypes_openbsd_arm.go │ │ │ ├── ztypes_openbsd_arm64.go │ │ │ ├── ztypes_openbsd_mips64.go │ │ │ ├── ztypes_solaris_amd64.go │ │ │ └── ztypes_zos_s390x.go │ │ └── 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 │ │ │ ├── setupapierrors_windows.go │ │ │ ├── str.go │ │ │ ├── syscall.go │ │ │ ├── syscall_windows.go │ │ │ ├── types_windows.go │ │ │ ├── types_windows_386.go │ │ │ ├── types_windows_amd64.go │ │ │ ├── types_windows_arm.go │ │ │ ├── types_windows_arm64.go │ │ │ ├── zerrors_windows.go │ │ │ ├── zknownfolderids_windows.go │ │ │ └── zsyscall_windows.go │ │ ├── text │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── PATENTS │ │ ├── transform │ │ │ └── transform.go │ │ └── unicode │ │ │ └── norm │ │ │ ├── composition.go │ │ │ ├── forminfo.go │ │ │ ├── input.go │ │ │ ├── iter.go │ │ │ ├── normalize.go │ │ │ ├── readwriter.go │ │ │ ├── tables10.0.0.go │ │ │ ├── tables11.0.0.go │ │ │ ├── tables12.0.0.go │ │ │ ├── tables13.0.0.go │ │ │ ├── tables9.0.0.go │ │ │ ├── transform.go │ │ │ └── trie.go │ │ └── 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 │ │ ├── filedesc │ │ │ ├── build.go │ │ │ ├── desc.go │ │ │ ├── desc_init.go │ │ │ ├── desc_lazy.go │ │ │ ├── desc_list.go │ │ │ ├── desc_list_gen.go │ │ │ └── placeholder.go │ │ ├── filetype │ │ │ └── build.go │ │ ├── flags │ │ │ ├── flags.go │ │ │ ├── proto_legacy_disable.go │ │ │ └── proto_legacy_enable.go │ │ ├── genid │ │ │ ├── any_gen.go │ │ │ ├── api_gen.go │ │ │ ├── descriptor_gen.go │ │ │ ├── doc.go │ │ │ ├── duration_gen.go │ │ │ ├── empty_gen.go │ │ │ ├── field_mask_gen.go │ │ │ ├── goname.go │ │ │ ├── map_entry.go │ │ │ ├── source_context_gen.go │ │ │ ├── struct_gen.go │ │ │ ├── timestamp_gen.go │ │ │ ├── type_gen.go │ │ │ ├── wrappers.go │ │ │ └── wrappers_gen.go │ │ ├── impl │ │ │ ├── api_export.go │ │ │ ├── checkinit.go │ │ │ ├── codec_extension.go │ │ │ ├── codec_field.go │ │ │ ├── codec_gen.go │ │ │ ├── codec_map.go │ │ │ ├── codec_map_go111.go │ │ │ ├── codec_map_go112.go │ │ │ ├── codec_message.go │ │ │ ├── codec_messageset.go │ │ │ ├── codec_reflect.go │ │ │ ├── codec_tables.go │ │ │ ├── codec_unsafe.go │ │ │ ├── convert.go │ │ │ ├── convert_list.go │ │ │ ├── convert_map.go │ │ │ ├── decode.go │ │ │ ├── encode.go │ │ │ ├── enum.go │ │ │ ├── extension.go │ │ │ ├── legacy_enum.go │ │ │ ├── legacy_export.go │ │ │ ├── legacy_extension.go │ │ │ ├── legacy_file.go │ │ │ ├── legacy_message.go │ │ │ ├── merge.go │ │ │ ├── merge_gen.go │ │ │ ├── message.go │ │ │ ├── message_reflect.go │ │ │ ├── message_reflect_field.go │ │ │ ├── message_reflect_gen.go │ │ │ ├── pointer_reflect.go │ │ │ ├── pointer_unsafe.go │ │ │ ├── validate.go │ │ │ └── weak.go │ │ ├── order │ │ │ ├── order.go │ │ │ └── range.go │ │ ├── pragma │ │ │ └── pragma.go │ │ ├── set │ │ │ └── ints.go │ │ ├── strs │ │ │ ├── strings.go │ │ │ ├── strings_pure.go │ │ │ └── strings_unsafe.go │ │ └── version │ │ │ └── version.go │ │ ├── proto │ │ ├── checkinit.go │ │ ├── decode.go │ │ ├── decode_gen.go │ │ ├── doc.go │ │ ├── encode.go │ │ ├── encode_gen.go │ │ ├── equal.go │ │ ├── extension.go │ │ ├── merge.go │ │ ├── messageset.go │ │ ├── proto.go │ │ ├── proto_methods.go │ │ ├── proto_reflect.go │ │ ├── reset.go │ │ ├── size.go │ │ ├── size_gen.go │ │ └── wrappers.go │ │ ├── reflect │ │ ├── protodesc │ │ │ ├── desc.go │ │ │ ├── desc_init.go │ │ │ ├── desc_resolve.go │ │ │ ├── desc_validate.go │ │ │ └── proto.go │ │ ├── protoreflect │ │ │ ├── methods.go │ │ │ ├── proto.go │ │ │ ├── source.go │ │ │ ├── source_gen.go │ │ │ ├── type.go │ │ │ ├── value.go │ │ │ ├── value_pure.go │ │ │ ├── value_union.go │ │ │ └── value_unsafe.go │ │ └── protoregistry │ │ │ └── registry.go │ │ ├── runtime │ │ ├── protoiface │ │ │ ├── legacy.go │ │ │ └── methods.go │ │ └── protoimpl │ │ │ ├── impl.go │ │ │ └── version.go │ │ └── types │ │ ├── descriptorpb │ │ └── descriptor.pb.go │ │ └── known │ │ ├── anypb │ │ └── any.pb.go │ │ ├── durationpb │ │ └── duration.pb.go │ │ └── timestamppb │ │ └── timestamp.pb.go ├── gopkg.in │ ├── go-playground │ │ └── validator.v9 │ │ │ ├── .gitignore │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── baked_in.go │ │ │ ├── cache.go │ │ │ ├── doc.go │ │ │ ├── errors.go │ │ │ ├── field_level.go │ │ │ ├── logo.png │ │ │ ├── regexes.go │ │ │ ├── struct_level.go │ │ │ ├── translations.go │ │ │ ├── util.go │ │ │ ├── validator.go │ │ │ └── validator_instance.go │ ├── natefinch │ │ └── lumberjack.v2 │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── chown.go │ │ │ ├── chown_linux.go │ │ │ └── lumberjack.go │ ├── yaml.v2 │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── LICENSE.libyaml │ │ ├── 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 │ └── yaml.v3 │ │ ├── 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 └── modules.txt └── worker ├── base ├── dropped_bid_recorder.go ├── dropped_bid_recorder_test.go ├── rs_encoder_pool.go ├── rs_encoder_pool_test.go ├── shard_buf_pool.go ├── shard_buf_pool_test.go ├── statistics_metrics.go ├── statistics_metrics_test.go ├── stripe_utils.go └── stripe_utils_test.go ├── base_for_test.go ├── bid_getter.go ├── bid_getter_test.go ├── client ├── blobnode_cli.go └── scheduler_cli.go ├── inspect_task_mgr.go ├── inspect_task_mgr_test.go ├── migrate_worker_impl.go ├── migrate_worker_impl_test.go ├── repair_shard.go ├── repair_shard_test.go ├── repair_worker_impl.go ├── repair_worker_impl_test.go ├── service.go ├── service_test.go ├── shard_ec_recover.go ├── shard_ec_recover_test.go ├── shards_migrate.go ├── task_lease_renewal.go ├── task_lease_renewal_test.go ├── task_runner.go ├── task_runner_mgr.go ├── task_runner_mgr_test.go └── task_runner_test.go /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | .idea/ 3 | .DS_Store 4 | .version 5 | .cache 6 | .deps/ 7 | bin/ 8 | */*/*/run/ 9 | node_modules/ 10 | package.json 11 | package-lock.json 12 | !.gitkeep -------------------------------------------------------------------------------- /bin/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cubefs/cubefs-blobstore/a9fd240baadbc75ebd567c3d57ce6d9375e9cdf5/bin/.gitkeep -------------------------------------------------------------------------------- /blobnode/base/qos/io_iops_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The CubeFS 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 12 | // implied. See the License for the specific language governing 13 | // permissions and limitations under the License. 14 | 15 | package qos 16 | -------------------------------------------------------------------------------- /blobnode/core/errors.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The CubeFS 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 12 | // implied. See the License for the specific language governing 13 | // permissions and limitations under the License. 14 | 15 | package core 16 | 17 | import ( 18 | "errors" 19 | ) 20 | 21 | var ( 22 | ErrChunkScanEOF = errors.New("chunk scan occur eof") 23 | ErrEnoughShardNumber = errors.New("chunk scan enough shard number") 24 | ) 25 | -------------------------------------------------------------------------------- /cli/cli/cli.conf: -------------------------------------------------------------------------------- 1 | { 2 | "access": { 3 | "conn_mode": 4, 4 | "consul_addr": "http://127.0.0.1:8500", 5 | "max_host_retry": 0, 6 | "max_part_retry": 0, 7 | "max_size_put_once": 0, 8 | "priority_addrs": [ 9 | "http://localhost:9500", 10 | "http://127.0.0.1:9500" 11 | ], 12 | "service_interval_ms": 0 13 | }, 14 | "redis_addrs": [ 15 | "127.0.0.1:6379" 16 | ], 17 | "redis_user": "", 18 | "redis_pass": "", 19 | "cm_addrs": [ 20 | "http://localhost:9998", 21 | "http://127.0.0.1:9998" 22 | ], 23 | "verbose": false, 24 | "vverbose": false 25 | } 26 | -------------------------------------------------------------------------------- /cli/cli/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The CubeFS 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 12 | // implied. See the License for the specific language governing 13 | // permissions and limitations under the License. 14 | 15 | package main 16 | 17 | import ( 18 | "github.com/desertbit/grumble" 19 | 20 | "github.com/cubefs/blobstore/cli" 21 | ) 22 | 23 | func main() { 24 | grumble.Main(cli.App) 25 | } 26 | -------------------------------------------------------------------------------- /clustermgr/diskmgr/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cubefs/cubefs-blobstore/a9fd240baadbc75ebd567c3d57ce6d9375e9cdf5/clustermgr/diskmgr/.gitkeep -------------------------------------------------------------------------------- /clustermgr/scopemgr/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cubefs/cubefs-blobstore/a9fd240baadbc75ebd567c3d57ce6d9375e9cdf5/clustermgr/scopemgr/.gitkeep -------------------------------------------------------------------------------- /clustermgr/servicemgr/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cubefs/cubefs-blobstore/a9fd240baadbc75ebd567c3d57ce6d9375e9cdf5/clustermgr/servicemgr/.gitkeep -------------------------------------------------------------------------------- /clustermgr/volumemgr/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cubefs/cubefs-blobstore/a9fd240baadbc75ebd567c3d57ce6d9375e9cdf5/clustermgr/volumemgr/.gitkeep -------------------------------------------------------------------------------- /cmd/access/access.conf: -------------------------------------------------------------------------------- 1 | { 2 | "bind_addr": ":9500", 3 | "auditlog": { 4 | "logdir": "/tmp/access/" 5 | }, 6 | "consul_agent_addr": "127.0.0.1:8500", 7 | "service_register": { 8 | "consul_addr": "127.0.0.1:8500", 9 | "service_ip": "x.x.x.x" 10 | }, 11 | "stream": { 12 | "idc": "idc", 13 | "cluster_config": { 14 | "region": "region" 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /cmd/access/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The CubeFS 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 12 | // implied. See the License for the specific language governing 13 | // permissions and limitations under the License. 14 | 15 | package main 16 | 17 | import ( 18 | "os" 19 | 20 | "github.com/cubefs/blobstore/cmd" 21 | 22 | _ "github.com/cubefs/blobstore/access" 23 | ) 24 | 25 | func main() { 26 | cmd.Main(os.Args) 27 | } 28 | -------------------------------------------------------------------------------- /cmd/allocator/allocator.conf: -------------------------------------------------------------------------------- 1 | { 2 | "bind_addr": ":9100", 3 | "host": "http://127.0.0.1:9100", 4 | "cluster_id": 1, 5 | "idc": "z0", 6 | "clustermgr": { 7 | "hosts": [ 8 | "http://127.0.0.1:9998", 9 | "http://127.0.0.1:9999", 10 | "http://127.0.0.1:10000" 11 | ] 12 | }, 13 | "log": { 14 | "level": 1 15 | }, 16 | "auditlog": { 17 | "logdir": "/tmp/allocator/" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /cmd/allocator/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The CubeFS 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 12 | // implied. See the License for the specific language governing 13 | // permissions and limitations under the License. 14 | 15 | package main 16 | 17 | import ( 18 | "os" 19 | 20 | "github.com/cubefs/blobstore/cmd" 21 | 22 | _ "github.com/cubefs/blobstore/allocator" 23 | ) 24 | 25 | func main() { 26 | cmd.Main(os.Args) 27 | } 28 | -------------------------------------------------------------------------------- /cmd/blobnode/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The CubeFS 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 12 | // implied. See the License for the specific language governing 13 | // permissions and limitations under the License. 14 | 15 | package main 16 | 17 | import ( 18 | "os" 19 | 20 | "github.com/cubefs/blobstore/cmd" 21 | 22 | _ "github.com/cubefs/blobstore/blobnode" 23 | ) 24 | 25 | func main() { 26 | cmd.Main(os.Args) 27 | } 28 | -------------------------------------------------------------------------------- /cmd/clustermgr/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The CubeFS 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 12 | // implied. See the License for the specific language governing 13 | // permissions and limitations under the License. 14 | 15 | package main 16 | 17 | import ( 18 | "os" 19 | 20 | _ "github.com/cubefs/blobstore/clustermgr" 21 | "github.com/cubefs/blobstore/cmd" 22 | ) 23 | 24 | func main() { 25 | cmd.Main(os.Args) 26 | } 27 | -------------------------------------------------------------------------------- /cmd/mqproxy/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The CubeFS 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 12 | // implied. See the License for the specific language governing 13 | // permissions and limitations under the License. 14 | 15 | package main 16 | 17 | import ( 18 | "os" 19 | 20 | "github.com/cubefs/blobstore/cmd" 21 | 22 | _ "github.com/cubefs/blobstore/mqproxy" 23 | ) 24 | 25 | func main() { 26 | cmd.Main(os.Args) 27 | } 28 | -------------------------------------------------------------------------------- /cmd/mqproxy/mqproxy.conf: -------------------------------------------------------------------------------- 1 | { 2 | "bind_addr": ":9600", 3 | "cluster_id": 1, 4 | "cm_cfg": { 5 | "hosts": ["http://127.0.0.1:7000", "http://127.0.0.1:7010", "http://127.0.0.1:7020"] 6 | }, 7 | "clustermgr": { 8 | "blob_delete_topic": "blob_delete", 9 | "shard_repair_topic": "shard_repair", 10 | "shard_repair_priority_topic": "shard_repair_prior", 11 | "msg_sender": { 12 | "broker_list": ["127.0.0.1:9092"] 13 | } 14 | }, 15 | "service_register": { 16 | "host": "http://127.0.0.1:9600", 17 | "idc": "z0" 18 | }, 19 | "log": { 20 | "level": 0, 21 | "filename": "/tmp/mqproxy.log" 22 | }, 23 | "auditlog": { 24 | "logdir": "./auditlog/mqproxy" 25 | } 26 | } -------------------------------------------------------------------------------- /cmd/scheduler/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The CubeFS 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 12 | // implied. See the License for the specific language governing 13 | // permissions and limitations under the License. 14 | 15 | package main 16 | 17 | import ( 18 | "os" 19 | 20 | "github.com/cubefs/blobstore/cmd" 21 | 22 | _ "github.com/cubefs/blobstore/scheduler" 23 | ) 24 | 25 | func main() { 26 | cmd.Main(os.Args) 27 | } 28 | -------------------------------------------------------------------------------- /cmd/scheduler/scheduler.conf: -------------------------------------------------------------------------------- 1 | { 2 | "bind_host": ":9800", 3 | "cluster_id": 1, 4 | "clustermgr": { 5 | "hosts": ["http://127.0.0.1:7000", "http://127.0.0.1:7010", "http://127.0.0.1:7020"] 6 | }, 7 | "database": { 8 | "mongo": { 9 | "uri": "mongodb://127.0.0.1:27017" 10 | }, 11 | "db_name": "scheduler" 12 | }, 13 | "task_archive_store_db": { 14 | "mongo": { 15 | "uri": "mongodb://127.0.0.1:27017" 16 | }, 17 | "db_name": "task_archive_store", 18 | }, 19 | "log": { 20 | "level": 0, 21 | "filename": "/tmp/scheduler.log" 22 | }, 23 | "auditlog": { 24 | "logdir": "./auditlog/scheduler" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /cmd/tinker/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The CubeFS 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 12 | // implied. See the License for the specific language governing 13 | // permissions and limitations under the License. 14 | 15 | package main 16 | 17 | import ( 18 | "os" 19 | 20 | "github.com/cubefs/blobstore/cmd" 21 | 22 | _ "github.com/cubefs/blobstore/tinker" 23 | ) 24 | 25 | func main() { 26 | cmd.Main(os.Args) 27 | } 28 | -------------------------------------------------------------------------------- /cmd/worker/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The CubeFS 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 12 | // implied. See the License for the specific language governing 13 | // permissions and limitations under the License. 14 | 15 | package main 16 | 17 | import ( 18 | "os" 19 | 20 | "github.com/cubefs/blobstore/cmd" 21 | 22 | _ "github.com/cubefs/blobstore/worker" 23 | ) 24 | 25 | func main() { 26 | cmd.Main(os.Args) 27 | } 28 | -------------------------------------------------------------------------------- /cmd/worker/worker.conf: -------------------------------------------------------------------------------- 1 | { 2 | "bind_addr": ":9910", 3 | "cluster_id": 1, 4 | "service_register": { 5 | "host": "http://127.0.0.1:9910", 6 | "idc": "z0" 7 | }, 8 | "scheduler": { 9 | "host": "http://127.0.0.1:9800" 10 | }, 11 | "dropped_bid_record": { 12 | "dir": "./dropped" 13 | }, 14 | "log": { 15 | "level": 0, 16 | "filename": "/tmp/worker.log" 17 | }, 18 | "auditlog": { 19 | "logdir": "./auditlog/worker/worker" 20 | } 21 | } -------------------------------------------------------------------------------- /common/config/conf_test_file.conf: -------------------------------------------------------------------------------- 1 | { 2 | "debug_level": 0, # debug level 3 | "rs_host": "http://localhost:15001", #RS service 4 | "limit": 5, # 5 | "name": "a//", # 6 | "retryTimes": 56, 7 | // "comment1": 345 8 | "quote0": "###", 9 | "quote": "quo\\\"\\#", 10 | "ant": "ant\\#" #123 11 | } 12 | 13 | -------------------------------------------------------------------------------- /common/config/load_conf_test2.conf: -------------------------------------------------------------------------------- 1 | { 2 | "debug_level": 0, 3 | "rs_host": "http://localhost:15001", 4 | "limit": 5, 5 | "name": "a//", 6 | "retryTimes": 56, 7 | "quote0": "###", 8 | "quote": "quo\\\"\\#", 9 | "ant": "ant\\#" 10 | } 11 | -------------------------------------------------------------------------------- /common/iostat/iostat_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The CubeFS 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 12 | // implied. See the License for the specific language governing 13 | // permissions and limitations under the License. 14 | 15 | //go:build !darwin 16 | // +build !darwin 17 | 18 | package iostat 19 | 20 | const ( 21 | IOSTAT_DIRECTORY = "/dev/shm" 22 | ) 23 | -------------------------------------------------------------------------------- /common/kvstore/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cubefs/cubefs-blobstore/a9fd240baadbc75ebd567c3d57ce6d9375e9cdf5/common/kvstore/.gitignore -------------------------------------------------------------------------------- /common/profile/profile_with.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The CubeFS 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 12 | // implied. See the License for the specific language governing 13 | // permissions and limitations under the License. 14 | 15 | //go:build !noprofile 16 | // +build !noprofile 17 | 18 | package profile 19 | 20 | var without = false 21 | -------------------------------------------------------------------------------- /common/profile/profile_without.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The CubeFS 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 12 | // implied. See the License for the specific language governing 13 | // permissions and limitations under the License. 14 | 15 | //go:build noprofile 16 | // +build noprofile 17 | 18 | package profile 19 | 20 | var without = true 21 | -------------------------------------------------------------------------------- /common/raftserver/example/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | go build -o raftserver 3 | -------------------------------------------------------------------------------- /common/raftserver/example/clean.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | rm -rf wal1/* 3 | rm -rf wal2/* 4 | rm -rf wal3/* 5 | rm -rf data1/* 6 | rm -rf data2/* 7 | rm -rf data3/* 8 | -------------------------------------------------------------------------------- /common/raftserver/example/raft1.cfg: -------------------------------------------------------------------------------- 1 | { 2 | "node_id": 1, 3 | "listen_port": 8080, 4 | "raft_listen_port": 9001, 5 | "data_dir": "./data1", 6 | "wal_dir": "./wal1", 7 | "raft_peers": {"1": "127.0.0.1:9001", "2": "127.0.0.1:9002", "3": "127.0.0.1:9003"}, 8 | "raft_tick_interval": 1, 9 | "raft_heartbeat_tick": 2, 10 | "raft_election_tick": 5, 11 | "raft_propose_timeout": 3, 12 | "concurrent_num": 4 13 | } 14 | -------------------------------------------------------------------------------- /common/raftserver/example/raft2.cfg: -------------------------------------------------------------------------------- 1 | { 2 | "node_id": 2, 3 | "listen_port": 8081, 4 | "raft_listen_port": 9002, 5 | "data_dir": "./data2", 6 | "wal_dir": "./wal2", 7 | "raft_peers": {"1": "127.0.0.1:9001", "2": "127.0.0.1:9002", "3": "127.0.0.1:9003"}, 8 | "raft_tick_interval": 1, 9 | "raft_heartbeat_tick": 2, 10 | "raft_election_tick": 5, 11 | "raft_propose_timeout": 3, 12 | "concurrent_num": 4 13 | } 14 | -------------------------------------------------------------------------------- /common/raftserver/example/raft3.cfg: -------------------------------------------------------------------------------- 1 | { 2 | "node_id": 3, 3 | "listen_port": 8082, 4 | "raft_listen_port": 9003, 5 | "data_dir": "./data3", 6 | "wal_dir": "./wal3", 7 | "raft_peers": {"1": "127.0.0.1:9001", "2": "127.0.0.1:9002", "3": "127.0.0.1:9003"}, 8 | "raft_tick_interval": 1, 9 | "raft_heartbeat_tick": 2, 10 | "raft_election_tick": 5, 11 | "raft_propose_timeout": 3, 12 | "concurrent_num": 4 13 | } 14 | -------------------------------------------------------------------------------- /env.sh: -------------------------------------------------------------------------------- 1 | # Copyright 2022 The CubeFS 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 12 | # implied. See the License for the specific language governing 13 | # permissions and limitations under the License. 14 | 15 | CURRENT_DIR=`pwd` 16 | export CGO_CFLAGS="-I${CURRENT_DIR}/.deps/include" 17 | export CGO_LDFLAGS="-L${CURRENT_DIR}/.deps/lib -lrocksdb -lz -lbz2 -lsnappy -llz4 -lzstd" 18 | 19 | -------------------------------------------------------------------------------- /vendor/github.com/DataDog/zstd/.travis.yml: -------------------------------------------------------------------------------- 1 | dist: xenial 2 | language: go 3 | 4 | go: 5 | - 1.10.x 6 | - 1.11.x 7 | - 1.12.x 8 | 9 | os: 10 | - linux 11 | - osx 12 | 13 | matrix: 14 | include: 15 | name: "Go 1.11.x CentOS 32bits" 16 | language: go 17 | go: 1.11.x 18 | os: linux 19 | services: 20 | - docker 21 | script: 22 | # Please update Go version in travis_test_32 as needed 23 | - "docker run -i -v \"${PWD}:/zstd\" toopher/centos-i386:centos6 /bin/bash -c \"linux32 --32bit i386 /zstd/travis_test_32.sh\"" 24 | 25 | install: 26 | - "wget https://github.com/DataDog/zstd/files/2246767/mr.zip" 27 | - "unzip mr.zip" 28 | script: 29 | - "go build" 30 | - "PAYLOAD=`pwd`/mr go test -v" 31 | - "PAYLOAD=`pwd`/mr go test -bench ." 32 | -------------------------------------------------------------------------------- /vendor/github.com/DataDog/zstd/travis_test_32.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Get utilities 3 | yum -y -q -e 0 install wget tar unzip gcc 4 | 5 | # Get Go 6 | wget -q https://dl.google.com/go/go1.11.1.linux-386.tar.gz 7 | tar -C /usr/local -xzf go1.11.1.linux-386.tar.gz 8 | export PATH=$PATH:/usr/local/go/bin 9 | 10 | # Get payload 11 | wget -q https://github.com/DataDog/zstd/files/2246767/mr.zip 12 | unzip mr.zip 13 | 14 | # Build and run tests 15 | cd zstd 16 | go build 17 | PAYLOAD=$(pwd)/mr go test -v 18 | PAYLOAD=$(pwd)/mr go test -bench . 19 | -------------------------------------------------------------------------------- /vendor/github.com/Shopify/sarama/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | *.test 6 | 7 | # Folders 8 | _obj 9 | _test 10 | .vagrant 11 | 12 | # Architecture specific extensions/prefixes 13 | *.[568vq] 14 | [568vq].out 15 | 16 | *.cgo1.go 17 | *.cgo2.c 18 | _cgo_defun.c 19 | _cgo_gotypes.go 20 | _cgo_export.* 21 | 22 | _testmain.go 23 | 24 | *.exe 25 | 26 | coverage.txt 27 | profile.out 28 | -------------------------------------------------------------------------------- /vendor/github.com/Shopify/sarama/Vagrantfile: -------------------------------------------------------------------------------- 1 | # -*- mode: ruby -*- 2 | # vi: set ft=ruby : 3 | 4 | # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! 5 | VAGRANTFILE_API_VERSION = "2" 6 | 7 | # We have 5 * 192MB ZK processes and 5 * 320MB Kafka processes => 2560MB 8 | MEMORY = 3072 9 | 10 | Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| 11 | config.vm.box = "ubuntu/trusty64" 12 | 13 | config.vm.provision :shell, path: "vagrant/provision.sh" 14 | 15 | config.vm.network "private_network", ip: "192.168.100.67" 16 | 17 | config.vm.provider "virtualbox" do |v| 18 | v.memory = MEMORY 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /vendor/github.com/Shopify/sarama/api_versions_request.go: -------------------------------------------------------------------------------- 1 | package sarama 2 | 3 | //ApiVersionsRequest ... 4 | type ApiVersionsRequest struct { 5 | } 6 | 7 | func (a *ApiVersionsRequest) encode(pe packetEncoder) error { 8 | return nil 9 | } 10 | 11 | func (a *ApiVersionsRequest) decode(pd packetDecoder, version int16) (err error) { 12 | return nil 13 | } 14 | 15 | func (a *ApiVersionsRequest) key() int16 { 16 | return 18 17 | } 18 | 19 | func (a *ApiVersionsRequest) version() int16 { 20 | return 0 21 | } 22 | 23 | func (a *ApiVersionsRequest) requiredVersion() KafkaVersion { 24 | return V0_10_0_0 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/Shopify/sarama/config_resource_type.go: -------------------------------------------------------------------------------- 1 | package sarama 2 | 3 | //ConfigResourceType is a type for config resource 4 | type ConfigResourceType int8 5 | 6 | // Taken from : 7 | // https://cwiki.apache.org/confluence/display/KAFKA/KIP-133%3A+Describe+and+Alter+Configs+Admin+APIs#KIP-133:DescribeandAlterConfigsAdminAPIs-WireFormattypes 8 | 9 | const ( 10 | //UnknownResource constant type 11 | UnknownResource ConfigResourceType = iota 12 | //AnyResource constant type 13 | AnyResource 14 | //TopicResource constant type 15 | TopicResource 16 | //GroupResource constant type 17 | GroupResource 18 | //ClusterResource constant type 19 | ClusterResource 20 | //BrokerResource constant type 21 | BrokerResource 22 | ) 23 | -------------------------------------------------------------------------------- /vendor/github.com/Shopify/sarama/delete_groups_request.go: -------------------------------------------------------------------------------- 1 | package sarama 2 | 3 | type DeleteGroupsRequest struct { 4 | Groups []string 5 | } 6 | 7 | func (r *DeleteGroupsRequest) encode(pe packetEncoder) error { 8 | return pe.putStringArray(r.Groups) 9 | } 10 | 11 | func (r *DeleteGroupsRequest) decode(pd packetDecoder, version int16) (err error) { 12 | r.Groups, err = pd.getStringArray() 13 | return 14 | } 15 | 16 | func (r *DeleteGroupsRequest) key() int16 { 17 | return 42 18 | } 19 | 20 | func (r *DeleteGroupsRequest) version() int16 { 21 | return 0 22 | } 23 | 24 | func (r *DeleteGroupsRequest) requiredVersion() KafkaVersion { 25 | return V1_1_0_0 26 | } 27 | 28 | func (r *DeleteGroupsRequest) AddGroup(group string) { 29 | r.Groups = append(r.Groups, group) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/Shopify/sarama/describe_groups_request.go: -------------------------------------------------------------------------------- 1 | package sarama 2 | 3 | type DescribeGroupsRequest struct { 4 | Groups []string 5 | } 6 | 7 | func (r *DescribeGroupsRequest) encode(pe packetEncoder) error { 8 | return pe.putStringArray(r.Groups) 9 | } 10 | 11 | func (r *DescribeGroupsRequest) decode(pd packetDecoder, version int16) (err error) { 12 | r.Groups, err = pd.getStringArray() 13 | return 14 | } 15 | 16 | func (r *DescribeGroupsRequest) key() int16 { 17 | return 15 18 | } 19 | 20 | func (r *DescribeGroupsRequest) version() int16 { 21 | return 0 22 | } 23 | 24 | func (r *DescribeGroupsRequest) requiredVersion() KafkaVersion { 25 | return V0_9_0_0 26 | } 27 | 28 | func (r *DescribeGroupsRequest) AddGroup(group string) { 29 | r.Groups = append(r.Groups, group) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/Shopify/sarama/dev.yml: -------------------------------------------------------------------------------- 1 | name: sarama 2 | 3 | up: 4 | - go: 5 | version: '1.12' 6 | 7 | commands: 8 | test: 9 | run: make test 10 | desc: 'run unit tests' 11 | -------------------------------------------------------------------------------- /vendor/github.com/Shopify/sarama/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/Shopify/sarama 2 | 3 | require ( 4 | github.com/DataDog/zstd v1.3.6-0.20190409195224-796139022798 5 | github.com/Shopify/toxiproxy v2.1.4+incompatible 6 | github.com/davecgh/go-spew v1.1.1 7 | github.com/eapache/go-resiliency v1.1.0 8 | github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 9 | github.com/eapache/queue v1.1.0 10 | github.com/golang/snappy v0.0.1 // indirect 11 | github.com/pierrec/lz4 v0.0.0-20190327172049-315a67e90e41 12 | github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a 13 | github.com/stretchr/testify v1.3.0 14 | github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c 15 | github.com/xdg/stringprep v1.0.0 // indirect 16 | golang.org/x/crypto v0.0.0-20190404164418-38d8ce5564a5 // indirect 17 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3 18 | ) 19 | -------------------------------------------------------------------------------- /vendor/github.com/Shopify/sarama/heartbeat_response.go: -------------------------------------------------------------------------------- 1 | package sarama 2 | 3 | type HeartbeatResponse struct { 4 | Err KError 5 | } 6 | 7 | func (r *HeartbeatResponse) encode(pe packetEncoder) error { 8 | pe.putInt16(int16(r.Err)) 9 | return nil 10 | } 11 | 12 | func (r *HeartbeatResponse) decode(pd packetDecoder, version int16) error { 13 | kerr, err := pd.getInt16() 14 | if err != nil { 15 | return err 16 | } 17 | r.Err = KError(kerr) 18 | 19 | return nil 20 | } 21 | 22 | func (r *HeartbeatResponse) key() int16 { 23 | return 12 24 | } 25 | 26 | func (r *HeartbeatResponse) version() int16 { 27 | return 0 28 | } 29 | 30 | func (r *HeartbeatResponse) requiredVersion() KafkaVersion { 31 | return V0_9_0_0 32 | } 33 | -------------------------------------------------------------------------------- /vendor/github.com/Shopify/sarama/leave_group_response.go: -------------------------------------------------------------------------------- 1 | package sarama 2 | 3 | type LeaveGroupResponse struct { 4 | Err KError 5 | } 6 | 7 | func (r *LeaveGroupResponse) encode(pe packetEncoder) error { 8 | pe.putInt16(int16(r.Err)) 9 | return nil 10 | } 11 | 12 | func (r *LeaveGroupResponse) decode(pd packetDecoder, version int16) (err error) { 13 | kerr, err := pd.getInt16() 14 | if err != nil { 15 | return err 16 | } 17 | r.Err = KError(kerr) 18 | 19 | return nil 20 | } 21 | 22 | func (r *LeaveGroupResponse) key() int16 { 23 | return 13 24 | } 25 | 26 | func (r *LeaveGroupResponse) version() int16 { 27 | return 0 28 | } 29 | 30 | func (r *LeaveGroupResponse) requiredVersion() KafkaVersion { 31 | return V0_9_0_0 32 | } 33 | -------------------------------------------------------------------------------- /vendor/github.com/Shopify/sarama/list_groups_request.go: -------------------------------------------------------------------------------- 1 | package sarama 2 | 3 | type ListGroupsRequest struct { 4 | } 5 | 6 | func (r *ListGroupsRequest) encode(pe packetEncoder) error { 7 | return nil 8 | } 9 | 10 | func (r *ListGroupsRequest) decode(pd packetDecoder, version int16) (err error) { 11 | return nil 12 | } 13 | 14 | func (r *ListGroupsRequest) key() int16 { 15 | return 16 16 | } 17 | 18 | func (r *ListGroupsRequest) version() int16 { 19 | return 0 20 | } 21 | 22 | func (r *ListGroupsRequest) requiredVersion() KafkaVersion { 23 | return V0_9_0_0 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/Shopify/sarama/response_header.go: -------------------------------------------------------------------------------- 1 | package sarama 2 | 3 | import "fmt" 4 | 5 | const responseLengthSize = 4 6 | const correlationIDSize = 4 7 | 8 | type responseHeader struct { 9 | length int32 10 | correlationID int32 11 | } 12 | 13 | func (r *responseHeader) decode(pd packetDecoder) (err error) { 14 | r.length, err = pd.getInt32() 15 | if err != nil { 16 | return err 17 | } 18 | if r.length <= 4 || r.length > MaxResponseSize { 19 | return PacketDecodingError{fmt.Sprintf("message of length %d too large or too small", r.length)} 20 | } 21 | 22 | r.correlationID, err = pd.getInt32() 23 | return err 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/Shopify/sarama/sasl_authenticate_request.go: -------------------------------------------------------------------------------- 1 | package sarama 2 | 3 | type SaslAuthenticateRequest struct { 4 | SaslAuthBytes []byte 5 | } 6 | 7 | // APIKeySASLAuth is the API key for the SaslAuthenticate Kafka API 8 | const APIKeySASLAuth = 36 9 | 10 | func (r *SaslAuthenticateRequest) encode(pe packetEncoder) error { 11 | return pe.putBytes(r.SaslAuthBytes) 12 | } 13 | 14 | func (r *SaslAuthenticateRequest) decode(pd packetDecoder, version int16) (err error) { 15 | r.SaslAuthBytes, err = pd.getBytes() 16 | return err 17 | } 18 | 19 | func (r *SaslAuthenticateRequest) key() int16 { 20 | return APIKeySASLAuth 21 | } 22 | 23 | func (r *SaslAuthenticateRequest) version() int16 { 24 | return 0 25 | } 26 | 27 | func (r *SaslAuthenticateRequest) requiredVersion() KafkaVersion { 28 | return V1_0_0_0 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/Shopify/sarama/sasl_handshake_request.go: -------------------------------------------------------------------------------- 1 | package sarama 2 | 3 | type SaslHandshakeRequest struct { 4 | Mechanism string 5 | Version int16 6 | } 7 | 8 | func (r *SaslHandshakeRequest) encode(pe packetEncoder) error { 9 | if err := pe.putString(r.Mechanism); err != nil { 10 | return err 11 | } 12 | 13 | return nil 14 | } 15 | 16 | func (r *SaslHandshakeRequest) decode(pd packetDecoder, version int16) (err error) { 17 | if r.Mechanism, err = pd.getString(); err != nil { 18 | return err 19 | } 20 | 21 | return nil 22 | } 23 | 24 | func (r *SaslHandshakeRequest) key() int16 { 25 | return 17 26 | } 27 | 28 | func (r *SaslHandshakeRequest) version() int16 { 29 | return r.Version 30 | } 31 | 32 | func (r *SaslHandshakeRequest) requiredVersion() KafkaVersion { 33 | return V0_10_0_0 34 | } 35 | -------------------------------------------------------------------------------- /vendor/github.com/Shopify/sarama/zstd_cgo.go: -------------------------------------------------------------------------------- 1 | // +build cgo 2 | 3 | package sarama 4 | 5 | import "github.com/DataDog/zstd" 6 | 7 | func zstdDecompress(dst, src []byte) ([]byte, error) { 8 | return zstd.Decompress(dst, src) 9 | } 10 | 11 | func zstdCompressLevel(dst, src []byte, level int) ([]byte, error) { 12 | return zstd.CompressLevel(dst, src, level) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/Shopify/sarama/zstd_fallback.go: -------------------------------------------------------------------------------- 1 | // +build !cgo 2 | 3 | package sarama 4 | 5 | import ( 6 | "errors" 7 | ) 8 | 9 | var errZstdCgo = errors.New("zstd compression requires building with cgo enabled") 10 | 11 | func zstdDecompress(dst, src []byte) ([]byte, error) { 12 | return nil, errZstdCgo 13 | } 14 | 15 | func zstdCompressLevel(dst, src []byte, level int) ([]byte, error) { 16 | return nil, errZstdCgo 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/afex/hystrix-go/hystrix/logger.go: -------------------------------------------------------------------------------- 1 | package hystrix 2 | 3 | type logger interface { 4 | Printf(format string, items ...interface{}) 5 | } 6 | 7 | // NoopLogger does not log anything. 8 | type NoopLogger struct{} 9 | 10 | // Printf does nothing. 11 | func (l NoopLogger) Printf(format string, items ...interface{}) {} 12 | -------------------------------------------------------------------------------- /vendor/github.com/afex/hystrix-go/hystrix/pool.go: -------------------------------------------------------------------------------- 1 | package hystrix 2 | 3 | type executorPool struct { 4 | Name string 5 | Metrics *poolMetrics 6 | Max int 7 | Tickets chan *struct{} 8 | } 9 | 10 | func newExecutorPool(name string) *executorPool { 11 | p := &executorPool{} 12 | p.Name = name 13 | p.Metrics = newPoolMetrics(name) 14 | p.Max = getSettings(name).MaxConcurrentRequests 15 | 16 | p.Tickets = make(chan *struct{}, p.Max) 17 | for i := 0; i < p.Max; i++ { 18 | p.Tickets <- &struct{}{} 19 | } 20 | 21 | return p 22 | } 23 | 24 | func (p *executorPool) Return(ticket *struct{}) { 25 | if ticket == nil { 26 | return 27 | } 28 | 29 | p.Metrics.Updates <- poolMetricsUpdate{ 30 | activeCount: p.ActiveCount(), 31 | } 32 | p.Tickets <- ticket 33 | } 34 | 35 | func (p *executorPool) ActiveCount() int { 36 | return p.Max - len(p.Tickets) 37 | } 38 | -------------------------------------------------------------------------------- /vendor/github.com/alicebob/gopher-json/README.md: -------------------------------------------------------------------------------- 1 | # gopher-json [![GoDoc](https://godoc.org/layeh.com/gopher-json?status.svg)](https://godoc.org/layeh.com/gopher-json) 2 | 3 | Package json is a simple JSON encoder/decoder for [gopher-lua](https://github.com/yuin/gopher-lua). 4 | 5 | ## License 6 | 7 | Public domain 8 | -------------------------------------------------------------------------------- /vendor/github.com/alicebob/miniredis/v2/.gitignore: -------------------------------------------------------------------------------- 1 | /integration/redis_src/ 2 | /integration/dump.rdb 3 | *.swp 4 | /integration/nodes.conf 5 | -------------------------------------------------------------------------------- /vendor/github.com/alicebob/miniredis/v2/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: all test testrace int 2 | 3 | all: test 4 | 5 | test: 6 | go test ./... 7 | 8 | testrace: 9 | go test -race ./... 10 | 11 | int: 12 | ${MAKE} -C integration all 13 | -------------------------------------------------------------------------------- /vendor/github.com/alicebob/miniredis/v2/geohash/README.md: -------------------------------------------------------------------------------- 1 | This is a (selected) copy of github.com/mmcloughlin/geohash with the latitude 2 | range changed from 90 to ~85, to align with the algorithm use by Redis. 3 | -------------------------------------------------------------------------------- /vendor/github.com/alicebob/miniredis/v2/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/alicebob/miniredis/v2 2 | 3 | require ( 4 | github.com/alicebob/gopher-json v0.0.0-20200520072559-a9ecdc9d1d3a 5 | github.com/yuin/gopher-lua v0.0.0-20200816102855-ee81675732da 6 | ) 7 | 8 | go 1.13 9 | -------------------------------------------------------------------------------- /vendor/github.com/alicebob/miniredis/v2/hyperloglog/README.md: -------------------------------------------------------------------------------- 1 | This is a copy of github.com/axiomhq/hyperloglog. -------------------------------------------------------------------------------- /vendor/github.com/alicebob/miniredis/v2/metro/README.md: -------------------------------------------------------------------------------- 1 | This is a partial copy of github.com/dgryski/go-metro. -------------------------------------------------------------------------------- /vendor/github.com/alicebob/miniredis/v2/server/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: all build test 2 | 3 | all: build test 4 | 5 | build: 6 | go build 7 | 8 | test: 9 | go test 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/benbjohnson/clock/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/benbjohnson/clock 2 | 3 | go 1.15 4 | -------------------------------------------------------------------------------- /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/cubefs/cubefs-blobstore/a9fd240baadbc75ebd567c3d57ce6d9375e9cdf5/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/davecgh/go-spew/LICENSE: -------------------------------------------------------------------------------- 1 | ISC License 2 | 3 | Copyright (c) 2012-2016 Dave Collins 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /vendor/github.com/deniswernert/go-fstab/.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/deniswernert/go-fstab/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go -------------------------------------------------------------------------------- /vendor/github.com/deniswernert/go-fstab/README.md: -------------------------------------------------------------------------------- 1 | go-fstab 2 | ======== 3 | 4 | [![Build Status](https://travis-ci.org/deniswernert/go-fstab.svg?branch=master)](https://travis-ci.org/deniswernert/go-fstab) 5 | 6 | Simple fstab parser for Go 7 | -------------------------------------------------------------------------------- /vendor/github.com/desertbit/closer/v3/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | .DS_Store 3 | ._.DS_Store 4 | .idea/ 5 | sample/sample -------------------------------------------------------------------------------- /vendor/github.com/desertbit/closer/v3/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.12.x 5 | - tip 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - go test -race -coverprofile=coverage.txt -covermode=atomic 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) -------------------------------------------------------------------------------- /vendor/github.com/desertbit/closer/v3/AUTHORS: -------------------------------------------------------------------------------- 1 | Roland Singer 2 | Sebastian Borchers 3 | -------------------------------------------------------------------------------- /vendor/github.com/desertbit/closer/v3/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/desertbit/closer/v3 2 | 3 | go 1.12 4 | 5 | require ( 6 | github.com/hashicorp/go-multierror v1.0.0 7 | github.com/stretchr/testify v1.3.0 8 | ) 9 | -------------------------------------------------------------------------------- /vendor/github.com/desertbit/columnize/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - tip 4 | -------------------------------------------------------------------------------- /vendor/github.com/desertbit/go-shlex/.gitignore: -------------------------------------------------------------------------------- 1 | shlex.test 2 | .idea 3 | .vscode 4 | -------------------------------------------------------------------------------- /vendor/github.com/desertbit/go-shlex/README.md: -------------------------------------------------------------------------------- 1 | # go-shlex 2 | 3 | go-shlex is a library to make a lexical analyzer like Unix shell for 4 | Go. 5 | 6 | ## Install 7 | 8 | go get -u "github.com/desertbit/go-shlex" 9 | 10 | ## Usage 11 | 12 | ```go 13 | package main 14 | 15 | import ( 16 | "fmt" 17 | "log" 18 | 19 | "github.com/desertbit/go-shlex" 20 | ) 21 | 22 | func main() { 23 | cmd := `cp -Rdp "file name" 'file name2' dir\ name` 24 | words, err := shlex.Split(cmd, true) 25 | if err != nil { 26 | log.Fatal(err) 27 | } 28 | 29 | for _, w := range words { 30 | fmt.Println(w) 31 | } 32 | } 33 | ``` 34 | 35 | ## Documentation 36 | 37 | http://godoc.org/github.com/desertbit/go-shlex 38 | 39 | -------------------------------------------------------------------------------- /vendor/github.com/desertbit/go-shlex/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/desertbit/go-shlex 2 | 3 | go 1.14 4 | 5 | require github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568 6 | -------------------------------------------------------------------------------- /vendor/github.com/desertbit/go-shlex/go.sum: -------------------------------------------------------------------------------- 1 | github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568 h1:BHsljHzVlRcyQhjrss6TZTdY2VfCqZPbv5k3iBFa2ZQ= 2 | github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= 3 | -------------------------------------------------------------------------------- /vendor/github.com/desertbit/grumble/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | /sample/full/full 3 | /sample/simple/simple 4 | .idea 5 | .vscode 6 | -------------------------------------------------------------------------------- /vendor/github.com/desertbit/grumble/AUTHORS: -------------------------------------------------------------------------------- 1 | Roland Singer 2 | -------------------------------------------------------------------------------- /vendor/github.com/desertbit/readline/.gitignore: -------------------------------------------------------------------------------- 1 | .vscode/* 2 | -------------------------------------------------------------------------------- /vendor/github.com/desertbit/readline/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.x 4 | script: 5 | - GOOS=windows go install github.com/chzyer/readline/example/... 6 | - GOOS=linux go install github.com/chzyer/readline/example/... 7 | - GOOS=darwin go install github.com/chzyer/readline/example/... 8 | - go test -race -v 9 | -------------------------------------------------------------------------------- /vendor/github.com/desertbit/readline/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/desertbit/readline 2 | 3 | go 1.12 4 | 5 | require ( 6 | github.com/chzyer/logex v1.1.10 // indirect 7 | github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1 8 | github.com/nbutton23/zxcvbn-go v0.0.0-20180912185939-ae427f1e4c1d 9 | github.com/stretchr/testify v1.6.1 // indirect 10 | golang.org/x/sys v0.0.0-20201009025420-dfb3f7c4e634 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/desertbit/readline/password.go: -------------------------------------------------------------------------------- 1 | package readline 2 | 3 | type opPassword struct { 4 | o *Operation 5 | backupCfg *Config 6 | } 7 | 8 | func newOpPassword(o *Operation) *opPassword { 9 | return &opPassword{o: o} 10 | } 11 | 12 | func (o *opPassword) ExitPasswordMode() { 13 | o.o.SetConfig(o.backupCfg) 14 | o.backupCfg = nil 15 | } 16 | 17 | func (o *opPassword) EnterPasswordMode(cfg *Config) (err error) { 18 | o.backupCfg, err = o.o.SetConfig(cfg) 19 | return 20 | } 21 | 22 | func (o *opPassword) PasswordConfig() *Config { 23 | return &Config{ 24 | EnableMask: true, 25 | InterruptPrompt: "\n", 26 | EOFPrompt: "\n", 27 | HistoryLimit: -1, 28 | Painter: &defaultPainter{}, 29 | 30 | Stdout: o.o.cfg.Stdout, 31 | Stderr: o.o.cfg.Stderr, 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /vendor/github.com/desertbit/readline/std_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package readline 4 | 5 | func init() { 6 | Stdin = NewRawReader() 7 | Stdout = NewANSIWriter(Stdout) 8 | Stderr = NewANSIWriter(Stderr) 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/desertbit/readline/term_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux,!appengine netbsd openbsd 6 | 7 | package readline 8 | 9 | import ( 10 | "syscall" 11 | "unsafe" 12 | ) 13 | 14 | type Termios syscall.Termios 15 | 16 | // GetSize returns the dimensions of the given terminal. 17 | func GetSize(fd int) (int, int, error) { 18 | var dimensions [4]uint16 19 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, uintptr(fd), uintptr(syscall.TIOCGWINSZ), uintptr(unsafe.Pointer(&dimensions)), 0, 0, 0) 20 | if err != 0 { 21 | return 0, 0, err 22 | } 23 | return int(dimensions[1]), int(dimensions[0]), nil 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/desertbit/readline/utils_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package readline 4 | 5 | import ( 6 | "io" 7 | "syscall" 8 | ) 9 | 10 | func SuspendMe() { 11 | } 12 | 13 | func GetStdin() int { 14 | return int(syscall.Stdin) 15 | } 16 | 17 | func init() { 18 | isWindows = true 19 | } 20 | 21 | // get width of the terminal 22 | func GetScreenWidth() int { 23 | info, _ := GetConsoleScreenBufferInfo() 24 | if info == nil { 25 | return -1 26 | } 27 | return int(info.dwSize.x) 28 | } 29 | 30 | // ClearScreen clears the console screen 31 | func ClearScreen(_ io.Writer) error { 32 | return SetConsoleCursorPosition(&_COORD{0, 0}) 33 | } 34 | 35 | func DefaultIsTerminal() bool { 36 | return true 37 | } 38 | 39 | func DefaultOnWidthChanged(func()) { 40 | 41 | } 42 | -------------------------------------------------------------------------------- /vendor/github.com/dustin/go-humanize/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go: 4 | - 1.3.x 5 | - 1.5.x 6 | - 1.6.x 7 | - 1.7.x 8 | - 1.8.x 9 | - 1.9.x 10 | - master 11 | matrix: 12 | allow_failures: 13 | - go: master 14 | fast_finish: true 15 | install: 16 | - # 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). 17 | script: 18 | - go get -t -v ./... 19 | - diff -u <(echo -n) <(gofmt -d -s .) 20 | - go tool vet . 21 | - go test -v -race ./... 22 | -------------------------------------------------------------------------------- /vendor/github.com/dustin/go-humanize/big.go: -------------------------------------------------------------------------------- 1 | package humanize 2 | 3 | import ( 4 | "math/big" 5 | ) 6 | 7 | // order of magnitude (to a max order) 8 | func oomm(n, b *big.Int, maxmag int) (float64, int) { 9 | mag := 0 10 | m := &big.Int{} 11 | for n.Cmp(b) >= 0 { 12 | n.DivMod(n, b, m) 13 | mag++ 14 | if mag == maxmag && maxmag >= 0 { 15 | break 16 | } 17 | } 18 | return float64(n.Int64()) + (float64(m.Int64()) / float64(b.Int64())), mag 19 | } 20 | 21 | // total order of magnitude 22 | // (same as above, but with no upper limit) 23 | func oom(n, b *big.Int) (float64, int) { 24 | mag := 0 25 | m := &big.Int{} 26 | for n.Cmp(b) >= 0 { 27 | n.DivMod(n, b, m) 28 | mag++ 29 | } 30 | return float64(n.Int64()) + (float64(m.Int64()) / float64(b.Int64())), mag 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/dustin/go-humanize/humanize.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package humanize converts boring ugly numbers to human-friendly strings and back. 3 | 4 | Durations can be turned into strings such as "3 days ago", numbers 5 | representing sizes like 82854982 into useful strings like, "83 MB" or 6 | "79 MiB" (whichever you prefer). 7 | */ 8 | package humanize 9 | -------------------------------------------------------------------------------- /vendor/github.com/dustin/go-humanize/ordinals.go: -------------------------------------------------------------------------------- 1 | package humanize 2 | 3 | import "strconv" 4 | 5 | // Ordinal gives you the input number in a rank/ordinal format. 6 | // 7 | // Ordinal(3) -> 3rd 8 | func Ordinal(x int) string { 9 | suffix := "th" 10 | switch x % 10 { 11 | case 1: 12 | if x%100 != 11 { 13 | suffix = "st" 14 | } 15 | case 2: 16 | if x%100 != 12 { 17 | suffix = "nd" 18 | } 19 | case 3: 20 | if x%100 != 13 { 21 | suffix = "rd" 22 | } 23 | } 24 | return strconv.Itoa(x) + suffix 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/eapache/go-xerial-snappy/.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/eapache/go-xerial-snappy/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.5.4 5 | - 1.6.1 6 | 7 | sudo: false 8 | -------------------------------------------------------------------------------- /vendor/github.com/eapache/go-xerial-snappy/README.md: -------------------------------------------------------------------------------- 1 | # go-xerial-snappy 2 | 3 | [![Build Status](https://travis-ci.org/eapache/go-xerial-snappy.svg?branch=master)](https://travis-ci.org/eapache/go-xerial-snappy) 4 | 5 | Xerial-compatible Snappy framing support for golang. 6 | 7 | Packages using Xerial for snappy encoding use a framing format incompatible with 8 | basically everything else in existence. This package wraps Go's built-in snappy 9 | package to support it. 10 | 11 | Apps that use this format include Apache Kafka (see 12 | https://github.com/dpkp/kafka-python/issues/126#issuecomment-35478921 for 13 | details). 14 | -------------------------------------------------------------------------------- /vendor/github.com/eapache/go-xerial-snappy/fuzz.go: -------------------------------------------------------------------------------- 1 | // +build gofuzz 2 | 3 | package snappy 4 | 5 | func Fuzz(data []byte) int { 6 | decode, err := Decode(data) 7 | if decode == nil && err == nil { 8 | panic("nil error with nil result") 9 | } 10 | 11 | if err != nil { 12 | return 0 13 | } 14 | 15 | return 1 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/eapache/queue/.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/eapache/queue/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | 4 | go: 5 | - 1.2 6 | - 1.3 7 | - 1.4 8 | -------------------------------------------------------------------------------- /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.9 7 | github.com/mattn/go-isatty v0.0.14 8 | ) 9 | -------------------------------------------------------------------------------- /vendor/github.com/globalsign/mgo/bson/README.md: -------------------------------------------------------------------------------- 1 | [![GoDoc](https://godoc.org/github.com/globalsign/mgo/bson?status.svg)](https://godoc.org/github.com/globalsign/mgo/bson) 2 | 3 | An Implementation of BSON for Go 4 | -------------------------------- 5 | 6 | Package bson is an implementation of the [BSON specification](http://bsonspec.org) for Go. 7 | 8 | While the BSON package implements the BSON spec as faithfully as possible, there 9 | is some MongoDB specific behaviour (such as map keys `$in`, `$all`, etc) in the 10 | `bson` package. The priority is for backwards compatibility for the `mgo` 11 | driver, though fixes for obviously buggy behaviour is welcome (and features, etc 12 | behind feature flags). 13 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/locales/.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/go-playground/locales/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.13.1 4 | - tip 5 | matrix: 6 | allow_failures: 7 | - go: tip 8 | 9 | notifications: 10 | email: 11 | recipients: dean.karn@gmail.com 12 | on_success: change 13 | on_failure: always 14 | 15 | before_install: 16 | - go install github.com/mattn/goveralls 17 | 18 | # Only clone the most recent commit. 19 | git: 20 | depth: 1 21 | 22 | script: 23 | - go test -v -race -covermode=atomic -coverprofile=coverage.coverprofile ./... 24 | 25 | after_success: | 26 | goveralls -coverprofile=coverage.coverprofile -service travis-ci -repotoken $COVERALLS_TOKEN -------------------------------------------------------------------------------- /vendor/github.com/go-playground/locales/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/go-playground/locales 2 | 3 | go 1.13 4 | 5 | require golang.org/x/text v0.3.6 6 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/locales/go.sum: -------------------------------------------------------------------------------- 1 | golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M= 2 | golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 3 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 4 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/locales/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cubefs/cubefs-blobstore/a9fd240baadbc75ebd567c3d57ce6d9375e9cdf5/vendor/github.com/go-playground/locales/logo.png -------------------------------------------------------------------------------- /vendor/github.com/go-playground/universal-translator/.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 | *.coverprofile -------------------------------------------------------------------------------- /vendor/github.com/go-playground/universal-translator/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.13.4 4 | - tip 5 | matrix: 6 | allow_failures: 7 | - go: tip 8 | 9 | notifications: 10 | email: 11 | recipients: dean.karn@gmail.com 12 | on_success: change 13 | on_failure: always 14 | 15 | before_install: 16 | - go install github.com/mattn/goveralls 17 | 18 | # Only clone the most recent commit. 19 | git: 20 | depth: 1 21 | 22 | script: 23 | - go test -v -race -covermode=atomic -coverprofile=coverage.coverprofile ./... 24 | 25 | after_success: | 26 | [ $TRAVIS_GO_VERSION = 1.13.4 ] && 27 | goveralls -coverprofile=coverage.coverprofile -service travis-ci -repotoken $COVERALLS_TOKEN -------------------------------------------------------------------------------- /vendor/github.com/go-playground/universal-translator/Makefile: -------------------------------------------------------------------------------- 1 | GOCMD=GO111MODULE=on go 2 | 3 | linters-install: 4 | @golangci-lint --version >/dev/null 2>&1 || { \ 5 | echo "installing linting tools..."; \ 6 | curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.41.1; \ 7 | } 8 | 9 | lint: linters-install 10 | golangci-lint run 11 | 12 | test: 13 | $(GOCMD) test -cover -race ./... 14 | 15 | bench: 16 | $(GOCMD) test -bench=. -benchmem ./... 17 | 18 | .PHONY: test lint linters-install -------------------------------------------------------------------------------- /vendor/github.com/go-playground/universal-translator/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/go-playground/universal-translator 2 | 3 | go 1.13 4 | 5 | require github.com/go-playground/locales v0.14.0 6 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/universal-translator/go.sum: -------------------------------------------------------------------------------- 1 | github.com/go-playground/locales v0.13.0 h1:HyWk6mgj5qFqCT5fjGBuRArbVDfE4hi8+e8ceBS/t7Q= 2 | github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= 3 | github.com/go-playground/locales v0.14.0 h1:u50s323jtVGugKlcYeyzC0etD1HifMjqmJqb8WugfUU= 4 | github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa7l++s0DH+LDiLs= 5 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= 6 | golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 7 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 8 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/universal-translator/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cubefs/cubefs-blobstore/a9fd240baadbc75ebd567c3d57ce6d9375e9cdf5/vendor/github.com/go-playground/universal-translator/logo.png -------------------------------------------------------------------------------- /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 | - nestif 21 | - nlreturn 22 | - exhaustivestruct 23 | - wrapcheck 24 | - errorlint 25 | - cyclop 26 | - forcetypeassert 27 | - forbidigo 28 | -------------------------------------------------------------------------------- /vendor/github.com/go-redis/redis/v8/.prettierrc.yml: -------------------------------------------------------------------------------- 1 | semi: false 2 | singleQuote: true 3 | proseWrap: always 4 | printWidth: 100 5 | -------------------------------------------------------------------------------- /vendor/github.com/go-redis/redis/v8/RELEASING.md: -------------------------------------------------------------------------------- 1 | # Releasing 2 | 3 | 1. Run `release.sh` script which updates versions in go.mod files and pushes a new branch to GitHub: 4 | 5 | ```shell 6 | TAG=v1.0.0 ./scripts/release.sh 7 | ``` 8 | 9 | 2. Open a pull request and wait for the build to finish. 10 | 11 | 3. Merge the pull request and run `tag.sh` to create tags for packages: 12 | 13 | ```shell 14 | TAG=v1.0.0 ./scripts/tag.sh 15 | ``` 16 | -------------------------------------------------------------------------------- /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.13 4 | 5 | require ( 6 | github.com/cespare/xxhash/v2 v2.1.2 7 | github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f 8 | github.com/google/go-cmp v0.5.6 // indirect 9 | github.com/onsi/ginkgo v1.16.4 10 | github.com/onsi/gomega v1.16.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 | if d < minBackoff { 19 | return maxBackoff 20 | } 21 | 22 | d = minBackoff + time.Duration(rand.Int63n(int64(d))) 23 | 24 | if d > maxBackoff || d < minBackoff { 25 | d = maxBackoff 26 | } 27 | 28 | return d 29 | } 30 | -------------------------------------------------------------------------------- /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 | // Logger calls Output to print to the stderr. 23 | // Arguments are handled in the manner of fmt.Print. 24 | var Logger Logging = &logger{ 25 | log: log.New(os.Stderr, "redis: ", log.LstdFlags|log.Lshortfile), 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/go-redis/redis/v8/internal/safe.go: -------------------------------------------------------------------------------- 1 | //go:build appengine 2 | // +build appengine 3 | 4 | package internal 5 | 6 | func String(b []byte) string { 7 | return string(b) 8 | } 9 | 10 | func Bytes(s string) []byte { 11 | return []byte(s) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/go-redis/redis/v8/internal/unsafe.go: -------------------------------------------------------------------------------- 1 | //go:build !appengine 2 | // +build !appengine 3 | 4 | package internal 5 | 6 | import "unsafe" 7 | 8 | // String converts byte slice to string. 9 | func String(b []byte) string { 10 | return *(*string)(unsafe.Pointer(&b)) 11 | } 12 | 13 | // Bytes converts string to byte slice. 14 | func Bytes(s string) []byte { 15 | return *(*[]byte)(unsafe.Pointer( 16 | &struct { 17 | string 18 | Cap int 19 | }{s, len(s)}, 20 | )) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/go-redis/redis/v8/internal/util/safe.go: -------------------------------------------------------------------------------- 1 | //go:build appengine 2 | // +build appengine 3 | 4 | package util 5 | 6 | func BytesToString(b []byte) string { 7 | return string(b) 8 | } 9 | 10 | func StringToBytes(s string) []byte { 11 | return []byte(s) 12 | } 13 | -------------------------------------------------------------------------------- /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 | //go:build !appengine 2 | // +build !appengine 3 | 4 | package util 5 | 6 | import ( 7 | "unsafe" 8 | ) 9 | 10 | // BytesToString converts byte slice to string. 11 | func BytesToString(b []byte) string { 12 | return *(*string)(unsafe.Pointer(&b)) 13 | } 14 | 15 | // StringToBytes converts string to byte slice. 16 | func StringToBytes(s string) []byte { 17 | return *(*[]byte)(unsafe.Pointer( 18 | &struct { 19 | string 20 | Cap int 21 | }{s, len(s)}, 22 | )) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/go-redis/redis/v8/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "redis", 3 | "version": "8.11.4", 4 | "main": "index.js", 5 | "repository": "git@github.com:go-redis/redis.git", 6 | "author": "Vladimir Mihailenco ", 7 | "license": "BSD-2-clause" 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/go-redis/redis/v8/version.go: -------------------------------------------------------------------------------- 1 | package redis 2 | 3 | // Version is the current release version. 4 | func Version() string { 5 | return "8.11.4" 6 | } 7 | -------------------------------------------------------------------------------- /vendor/github.com/go-stack/stack/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.7.x 5 | - 1.8.x 6 | - 1.9.x 7 | - 1.10.x 8 | - 1.11.x 9 | - tip 10 | 11 | before_install: 12 | - go get github.com/mattn/goveralls 13 | 14 | script: 15 | - goveralls -service=travis-ci 16 | -------------------------------------------------------------------------------- /vendor/github.com/go-stack/stack/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/go-stack/stack 2 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of GoGo authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS file, which 3 | # lists people. For example, employees are listed in CONTRIBUTORS, 4 | # but not in AUTHORS, because the employer holds the copyright. 5 | 6 | # Names should be added to this file as one of 7 | # Organization's name 8 | # Individual's name 9 | # Individual's name 10 | 11 | # Please keep the list sorted. 12 | 13 | Sendgrid, Inc 14 | Vastech SA (PTY) LTD 15 | Walter Schulze 16 | -------------------------------------------------------------------------------- /vendor/github.com/golang/mock/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of GoMock authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS files. 3 | # See the latter for an explanation. 4 | 5 | # Names should be added to this file as 6 | # Name or Organization 7 | # The email address is not required for organizations. 8 | 9 | # Please keep the list sorted. 10 | 11 | Alex Reece 12 | Google Inc. 13 | -------------------------------------------------------------------------------- /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 | // 7 | // Deprecated: Well-known types have specialized functionality directly 8 | // injected into the generated packages for each message type. 9 | // See the deprecation notice for each function for the suggested alternative. 10 | package ptypes 11 | -------------------------------------------------------------------------------- /vendor/github.com/golang/snappy/.gitignore: -------------------------------------------------------------------------------- 1 | cmd/snappytool/snappytool 2 | testdata/bench 3 | 4 | # These explicitly listed benchmark data files are for an obsolete version of 5 | # snappy_test.go. 6 | testdata/alice29.txt 7 | testdata/asyoulik.txt 8 | testdata/fireworks.jpeg 9 | testdata/geo.protodata 10 | testdata/html 11 | testdata/html_x_4 12 | testdata/kppkn.gtb 13 | testdata/lcet10.txt 14 | testdata/paper-100k.pdf 15 | testdata/plrabn12.txt 16 | testdata/urls.10K 17 | -------------------------------------------------------------------------------- /vendor/github.com/golang/snappy/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of Snappy-Go authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS files. 3 | # See the latter for an explanation. 4 | 5 | # Names should be added to this file as 6 | # Name or Organization 7 | # The email address is not required for organizations. 8 | 9 | # Please keep the list sorted. 10 | 11 | Damian Gryski 12 | Google Inc. 13 | Jan Mercl <0xjnml@gmail.com> 14 | Rodolfo Carvalho 15 | Sebastien Binet 16 | -------------------------------------------------------------------------------- /vendor/github.com/golang/snappy/decode_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Snappy-Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !appengine 6 | // +build gc 7 | // +build !noasm 8 | 9 | package snappy 10 | 11 | // decode has the same semantics as in decode_other.go. 12 | // 13 | //go:noescape 14 | func decode(dst, src []byte) int 15 | -------------------------------------------------------------------------------- /vendor/github.com/golang/snappy/encode_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Snappy-Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !appengine 6 | // +build gc 7 | // +build !noasm 8 | 9 | package snappy 10 | 11 | // emitLiteral has the same semantics as in encode_other.go. 12 | // 13 | //go:noescape 14 | func emitLiteral(dst, lit []byte) int 15 | 16 | // emitCopy has the same semantics as in encode_other.go. 17 | // 18 | //go:noescape 19 | func emitCopy(dst []byte, offset, length int) int 20 | 21 | // extendMatch has the same semantics as in encode_other.go. 22 | // 23 | //go:noescape 24 | func extendMatch(src []byte, i, j int) int 25 | 26 | // encodeBlock has the same semantics as in encode_other.go. 27 | // 28 | //go:noescape 29 | func encodeBlock(dst, src []byte) (d int) 30 | -------------------------------------------------------------------------------- /vendor/github.com/golang/snappy/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/golang/snappy 2 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.4.3 5 | - 1.5.3 6 | - tip 7 | 8 | script: 9 | - go test -v ./... 10 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # How to contribute 2 | 3 | We definitely welcome patches and contribution to this project! 4 | 5 | ### Legal requirements 6 | 7 | In order to protect both you and ourselves, you will need to sign the 8 | [Contributor License Agreement](https://cla.developers.google.com/clas). 9 | 10 | You may have already signed it for other Google projects. 11 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Paul Borman 2 | bmatsuo 3 | shawnps 4 | theory 5 | jboverfelt 6 | dsymonds 7 | cd1 8 | wallclockbuilder 9 | dansouza 10 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 Google Inc. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package uuid generates and inspects UUIDs. 6 | // 7 | // UUIDs are based on RFC 4122 and DCE 1.1: Authentication and Security 8 | // Services. 9 | // 10 | // A UUID is a 16 byte (128 bit) array. UUIDs may be used as keys to 11 | // maps or compared directly. 12 | package uuid 13 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/google/uuid 2 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/node_js.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build js 6 | 7 | package uuid 8 | 9 | // getHardwareInterface returns nil values for the JS version of the code. 10 | // This remvoves the "net" dependency, because it is not used in the browser. 11 | // Using the "net" library inflates the size of the transpiled JS code by 673k bytes. 12 | func getHardwareInterface(name string) (string, []byte) { return "", nil } 13 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/mux/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of gorilla/mux authors for copyright purposes. 2 | # 3 | # Please keep the list sorted. 4 | 5 | Google LLC (https://opensource.google.com/) 6 | Kamil Kisielk 7 | Matt Silverlock 8 | Rodrigo Moraes (https://github.com/moraes) 9 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/mux/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/gorilla/mux 2 | 3 | go 1.12 4 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/mux/test_helpers.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Gorilla Authors. All rights reserved. 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 mux 6 | 7 | import "net/http" 8 | 9 | // SetURLVars sets the URL variables for the given request, to be accessed via 10 | // mux.Vars for testing route behaviour. Arguments are not modified, a shallow 11 | // copy is returned. 12 | // 13 | // This API should only be used for testing purposes; it provides a way to 14 | // inject variables into the request context. Alternatively, URL variables 15 | // can be set by making a route that captures the required variables, 16 | // starting a server and sending the request to that server. 17 | func SetURLVars(r *http.Request, val map[string]string) *http.Request { 18 | return requestWithVars(r, val) 19 | } 20 | -------------------------------------------------------------------------------- /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.8.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.5 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/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/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - tip 4 | -------------------------------------------------------------------------------- /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/format.go: -------------------------------------------------------------------------------- 1 | package multierror 2 | 3 | import ( 4 | "fmt" 5 | "strings" 6 | ) 7 | 8 | // ErrorFormatFunc is a function callback that is called by Error to 9 | // turn the list of errors into a string. 10 | type ErrorFormatFunc func([]error) string 11 | 12 | // ListFormatFunc is a basic formatter that outputs the number of errors 13 | // that occurred along with a bullet point list of the errors. 14 | func ListFormatFunc(es []error) string { 15 | if len(es) == 1 { 16 | return fmt.Sprintf("1 error occurred:\n\t* %s\n\n", es[0]) 17 | } 18 | 19 | points := make([]string, len(es)) 20 | for i, err := range es { 21 | points[i] = fmt.Sprintf("* %s", err) 22 | } 23 | 24 | return fmt.Sprintf( 25 | "%d errors occurred:\n\t%s\n\n", 26 | len(es), strings.Join(points, "\n\t")) 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hashicorp/go-multierror 2 | 3 | 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-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/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/julienschmidt/httprouter/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go: 4 | - 1.7.x 5 | - 1.8.x 6 | - 1.9.x 7 | - 1.10.x 8 | - 1.11.x 9 | - 1.12.x 10 | - 1.13.x 11 | - master 12 | before_install: 13 | - go get github.com/mattn/goveralls 14 | script: 15 | - go test -v -covermode=count -coverprofile=coverage.out 16 | - go vet ./... 17 | - test -z "$(gofmt -d -s . | tee /dev/stderr)" 18 | - $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci 19 | -------------------------------------------------------------------------------- /vendor/github.com/julienschmidt/httprouter/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/julienschmidt/httprouter 2 | 3 | go 1.7 4 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/cpuid/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/cpuid/detect_ref.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file. 2 | 3 | //+build !amd64,!386,!arm64 gccgo noasm appengine 4 | 5 | package cpuid 6 | 7 | func initCPU() { 8 | cpuid = func(uint32) (a, b, c, d uint32) { return 0, 0, 0, 0 } 9 | cpuidex = func(x, y uint32) (a, b, c, d uint32) { return 0, 0, 0, 0 } 10 | xgetbv = func(uint32) (a, b uint32) { return 0, 0 } 11 | rdtscpAsm = func() (a, b, c, d uint32) { return 0, 0, 0, 0 } 12 | } 13 | 14 | func addInfo(info *CPUInfo) {} 15 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/cpuid/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/klauspost/cpuid 2 | 3 | go 1.12 4 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/reedsolomon/.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 | 26 | .idea -------------------------------------------------------------------------------- /vendor/github.com/klauspost/reedsolomon/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | sudo: false 4 | 5 | os: 6 | - linux 7 | - osx 8 | 9 | go: 10 | - 1.9.x 11 | - 1.10.x 12 | - 1.11.x 13 | - 1.12.x 14 | - master 15 | 16 | install: 17 | - go get ./... 18 | 19 | script: 20 | - go vet ./... 21 | - go test -v -cpu=1,2,4 . 22 | - go test -v -cpu=1,2,4 -short -race . 23 | - go test -tags=noasm -v -cpu=1,2,4 -short -race . 24 | - go build examples/simple-decoder.go 25 | - go build examples/simple-encoder.go 26 | - go build examples/stream-decoder.go 27 | - go build examples/stream-encoder.go 28 | - diff <(gofmt -d .) <("") 29 | 30 | matrix: 31 | allow_failures: 32 | - go: 'master' 33 | fast_finish: true 34 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/reedsolomon/appveyor.yml: -------------------------------------------------------------------------------- 1 | os: Visual Studio 2015 2 | 3 | platform: x64 4 | 5 | clone_folder: c:\gopath\src\github.com\klauspost\reedsolomon 6 | 7 | # environment variables 8 | environment: 9 | GOPATH: c:\gopath 10 | 11 | install: 12 | - echo %PATH% 13 | - echo %GOPATH% 14 | - go version 15 | - go env 16 | - go get -d ./... 17 | 18 | build_script: 19 | - go test -v -cpu=2 ./... 20 | - go test -cpu=1,2,4 -short -race ./... 21 | -------------------------------------------------------------------------------- /vendor/github.com/leodido/go-urn/.gitignore: -------------------------------------------------------------------------------- 1 | *.exe 2 | *.dll 3 | *.so 4 | *.dylib 5 | 6 | *.test 7 | 8 | *.out 9 | *.txt 10 | 11 | vendor/ -------------------------------------------------------------------------------- /vendor/github.com/leodido/go-urn/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.13.x 5 | - 1.14.x 6 | - 1.15.x 7 | - tip 8 | 9 | before_install: 10 | - go get -t -v ./... 11 | 12 | script: 13 | - go test -race -coverprofile=coverage.txt -covermode=atomic 14 | 15 | after_success: 16 | - bash <(curl -s https://codecov.io/bash) -------------------------------------------------------------------------------- /vendor/github.com/leodido/go-urn/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/leodido/go-urn 2 | 3 | go 1.13 4 | 5 | require github.com/stretchr/testify v1.6.1 6 | -------------------------------------------------------------------------------- /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/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-20210630005230-0f9fa26af87c 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 | //go:build (darwin || freebsd || openbsd || netbsd || dragonfly) && !appengine 2 | // +build darwin freebsd openbsd netbsd dragonfly 3 | // +build !appengine 4 | 5 | package isatty 6 | 7 | import "golang.org/x/sys/unix" 8 | 9 | // IsTerminal return true if the file descriptor is terminal. 10 | func IsTerminal(fd uintptr) bool { 11 | _, err := unix.IoctlGetTermios(int(fd), unix.TIOCGETA) 12 | return err == nil 13 | } 14 | 15 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 16 | // terminal. This is also always false on this environment. 17 | func IsCygwinTerminal(fd uintptr) bool { 18 | return false 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_others.go: -------------------------------------------------------------------------------- 1 | //go:build appengine || js || nacl || wasm 2 | // +build appengine js nacl wasm 3 | 4 | package isatty 5 | 6 | // IsTerminal returns true if the file descriptor is terminal which 7 | // is always false on js and appengine classic which is a sandboxed PaaS. 8 | func IsTerminal(fd uintptr) bool { 9 | return false 10 | } 11 | 12 | // IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2 13 | // terminal. This is also always false on this environment. 14 | func IsCygwinTerminal(fd uintptr) bool { 15 | return false 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_plan9.go: -------------------------------------------------------------------------------- 1 | //go:build plan9 2 | // +build plan9 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | ) 9 | 10 | // IsTerminal returns true if the given file descriptor is a terminal. 11 | func IsTerminal(fd uintptr) bool { 12 | path, err := syscall.Fd2path(int(fd)) 13 | if err != nil { 14 | return false 15 | } 16 | return path == "/dev/cons" || path == "/mnt/term/dev/cons" 17 | } 18 | 19 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 20 | // terminal. This is also always false on this environment. 21 | func IsCygwinTerminal(fd uintptr) bool { 22 | return false 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_solaris.go: -------------------------------------------------------------------------------- 1 | //go:build solaris && !appengine 2 | // +build solaris,!appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | // IsTerminal returns true if the given file descriptor is a terminal. 11 | // see: https://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libc/port/gen/isatty.c 12 | func IsTerminal(fd uintptr) bool { 13 | _, err := unix.IoctlGetTermio(int(fd), unix.TCGETA) 14 | return err == nil 15 | } 16 | 17 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 18 | // terminal. This is also always false on this environment. 19 | func IsCygwinTerminal(fd uintptr) bool { 20 | return false 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_tcgets.go: -------------------------------------------------------------------------------- 1 | //go:build (linux || aix || zos) && !appengine 2 | // +build linux aix zos 3 | // +build !appengine 4 | 5 | package isatty 6 | 7 | import "golang.org/x/sys/unix" 8 | 9 | // IsTerminal return true if the file descriptor is terminal. 10 | func IsTerminal(fd uintptr) bool { 11 | _, err := unix.IoctlGetTermios(int(fd), unix.TCGETS) 12 | return err == nil 13 | } 14 | 15 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 16 | // terminal. This is also always false on this environment. 17 | func IsCygwinTerminal(fd uintptr) bool { 18 | return false 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/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/matttproud/golang_protobuf_extensions/pbutil/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 Matt T. Proud 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 pbutil provides record length-delimited Protocol Buffer streaming. 16 | package pbutil 17 | -------------------------------------------------------------------------------- /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/mapstructure/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - "1.11.x" 5 | - tip 6 | 7 | script: 8 | - go test 9 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/mapstructure/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 1.1.2 2 | 3 | * Fix error when decode hook decodes interface implementation into interface 4 | type. [GH-140] 5 | 6 | ## 1.1.1 7 | 8 | * Fix panic that can happen in `decodePtr` 9 | 10 | ## 1.1.0 11 | 12 | * Added `StringToIPHookFunc` to convert `string` to `net.IP` and `net.IPNet` [GH-133] 13 | * Support struct to struct decoding [GH-137] 14 | * If source map value is nil, then destination map value is nil (instead of empty) 15 | * If source slice value is nil, then destination slice value is nil (instead of empty) 16 | * If source pointer is nil, then destination pointer is set to nil (instead of 17 | allocated zero value of type) 18 | 19 | ## 1.0.0 20 | 21 | * Initial tagged stable release. 22 | -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/mapstructure/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/mitchellh/mapstructure 2 | -------------------------------------------------------------------------------- /vendor/github.com/opentracing/opentracing-go/.gitignore: -------------------------------------------------------------------------------- 1 | coverage.txt 2 | -------------------------------------------------------------------------------- /vendor/github.com/opentracing/opentracing-go/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | matrix: 4 | include: 5 | - go: "1.13.x" 6 | - go: "1.14.x" 7 | - go: "tip" 8 | env: 9 | - LINT=true 10 | - COVERAGE=true 11 | 12 | install: 13 | - if [ "$LINT" == true ]; then go get -u golang.org/x/lint/golint/... ; else echo 'skipping lint'; fi 14 | - go get -u github.com/stretchr/testify/... 15 | 16 | script: 17 | - make test 18 | - go build ./... 19 | - if [ "$LINT" == true ]; then make lint ; else echo 'skipping lint'; fi 20 | - if [ "$COVERAGE" == true ]; then make cover && bash <(curl -s https://codecov.io/bash) ; else echo 'skipping coverage'; fi 21 | -------------------------------------------------------------------------------- /vendor/github.com/opentracing/opentracing-go/Makefile: -------------------------------------------------------------------------------- 1 | .DEFAULT_GOAL := test-and-lint 2 | 3 | .PHONY: test-and-lint 4 | test-and-lint: test lint 5 | 6 | .PHONY: test 7 | test: 8 | go test -v -cover -race ./... 9 | 10 | .PHONY: cover 11 | cover: 12 | go test -v -coverprofile=coverage.txt -covermode=atomic -race ./... 13 | 14 | .PHONY: lint 15 | lint: 16 | go fmt ./... 17 | golint ./... 18 | @# Run again with magic to exit non-zero if golint outputs anything. 19 | @! (golint ./... | read dummy) 20 | go vet ./... 21 | -------------------------------------------------------------------------------- /vendor/github.com/opentracing/opentracing-go/ext/field.go: -------------------------------------------------------------------------------- 1 | package ext 2 | 3 | import ( 4 | "github.com/opentracing/opentracing-go" 5 | "github.com/opentracing/opentracing-go/log" 6 | ) 7 | 8 | // LogError sets the error=true tag on the Span and logs err as an "error" event. 9 | func LogError(span opentracing.Span, err error, fields ...log.Field) { 10 | Error.Set(span, true) 11 | ef := []log.Field{ 12 | log.Event("error"), 13 | log.Error(err), 14 | } 15 | ef = append(ef, fields...) 16 | span.LogFields(ef...) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/opentracing/opentracing-go/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/opentracing/opentracing-go 2 | 3 | go 1.14 4 | 5 | require github.com/stretchr/testify v1.3.0 6 | -------------------------------------------------------------------------------- /vendor/github.com/opentracing/opentracing-go/go.sum: -------------------------------------------------------------------------------- 1 | github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= 2 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 3 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 4 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 5 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 6 | github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q= 7 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 8 | -------------------------------------------------------------------------------- /vendor/github.com/pierrec/lz4/.gitignore: -------------------------------------------------------------------------------- 1 | # Created by https://www.gitignore.io/api/macos 2 | 3 | ### macOS ### 4 | *.DS_Store 5 | .AppleDouble 6 | .LSOverride 7 | 8 | # Icon must end with two \r 9 | Icon 10 | 11 | 12 | # Thumbnails 13 | ._* 14 | 15 | # Files that might appear in the root of a volume 16 | .DocumentRevisions-V100 17 | .fseventsd 18 | .Spotlight-V100 19 | .TemporaryItems 20 | .Trashes 21 | .VolumeIcon.icns 22 | .com.apple.timemachine.donotpresent 23 | 24 | # Directories potentially created on remote AFP share 25 | .AppleDB 26 | .AppleDesktop 27 | Network Trash Folder 28 | Temporary Items 29 | .apdisk 30 | 31 | # End of https://www.gitignore.io/api/macos 32 | 33 | lz4c/lz4c 34 | -------------------------------------------------------------------------------- /vendor/github.com/pierrec/lz4/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | env: 4 | - GO111MODULE=off 5 | - GO111MODULE=on 6 | 7 | go: 8 | - 1.9.x 9 | - 1.10.x 10 | - 1.11.x 11 | - master 12 | 13 | matrix: 14 | fast_finish: true 15 | allow_failures: 16 | - go: master 17 | 18 | sudo: false 19 | 20 | script: 21 | - go test -v -cpu=2 22 | - go test -v -cpu=2 -race 23 | - go test -v -cpu=2 -tags noasm 24 | - go test -v -cpu=2 -race -tags noasm 25 | -------------------------------------------------------------------------------- /vendor/github.com/pierrec/lz4/debug.go: -------------------------------------------------------------------------------- 1 | // +build lz4debug 2 | 3 | package lz4 4 | 5 | import ( 6 | "fmt" 7 | "os" 8 | "path/filepath" 9 | "runtime" 10 | ) 11 | 12 | const debugFlag = true 13 | 14 | func debug(args ...interface{}) { 15 | _, file, line, _ := runtime.Caller(1) 16 | file = filepath.Base(file) 17 | 18 | f := fmt.Sprintf("LZ4: %s:%d %s", file, line, args[0]) 19 | if f[len(f)-1] != '\n' { 20 | f += "\n" 21 | } 22 | fmt.Fprintf(os.Stderr, f, args[1:]...) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/pierrec/lz4/debug_stub.go: -------------------------------------------------------------------------------- 1 | // +build !lz4debug 2 | 3 | package lz4 4 | 5 | const debugFlag = false 6 | 7 | func debug(args ...interface{}) {} 8 | -------------------------------------------------------------------------------- /vendor/github.com/pierrec/lz4/decode_amd64.go: -------------------------------------------------------------------------------- 1 | // +build !appengine 2 | // +build gc 3 | // +build !noasm 4 | 5 | package lz4 6 | 7 | //go:noescape 8 | func decodeBlock(dst, src []byte) int 9 | -------------------------------------------------------------------------------- /vendor/github.com/pierrec/lz4/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/pierrec/lz4 2 | 3 | require github.com/pkg/profile v1.2.1 4 | -------------------------------------------------------------------------------- /vendor/github.com/pierrec/lz4/go.sum: -------------------------------------------------------------------------------- 1 | github.com/pkg/profile v1.2.1 h1:F++O52m40owAmADcojzM+9gyjmMOY/T4oYJkgFDH8RE= 2 | github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= 3 | -------------------------------------------------------------------------------- /vendor/github.com/pierrec/lz4/lz4_go1.10.go: -------------------------------------------------------------------------------- 1 | //+build go1.10 2 | 3 | package lz4 4 | 5 | import ( 6 | "fmt" 7 | "strings" 8 | ) 9 | 10 | func (h Header) String() string { 11 | var s strings.Builder 12 | 13 | s.WriteString(fmt.Sprintf("%T{", h)) 14 | if h.BlockChecksum { 15 | s.WriteString("BlockChecksum: true ") 16 | } 17 | if h.NoChecksum { 18 | s.WriteString("NoChecksum: true ") 19 | } 20 | if bs := h.BlockMaxSize; bs != 0 && bs != 4<<20 { 21 | s.WriteString(fmt.Sprintf("BlockMaxSize: %d ", bs)) 22 | } 23 | if l := h.CompressionLevel; l != 0 { 24 | s.WriteString(fmt.Sprintf("CompressionLevel: %d ", l)) 25 | } 26 | s.WriteByte('}') 27 | 28 | return s.String() 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/pierrec/lz4/lz4_notgo1.10.go: -------------------------------------------------------------------------------- 1 | //+build !go1.10 2 | 3 | package lz4 4 | 5 | import ( 6 | "bytes" 7 | "fmt" 8 | ) 9 | 10 | func (h Header) String() string { 11 | var s bytes.Buffer 12 | 13 | s.WriteString(fmt.Sprintf("%T{", h)) 14 | if h.BlockChecksum { 15 | s.WriteString("BlockChecksum: true ") 16 | } 17 | if h.NoChecksum { 18 | s.WriteString("NoChecksum: true ") 19 | } 20 | if bs := h.BlockMaxSize; bs != 0 && bs != 4<<20 { 21 | s.WriteString(fmt.Sprintf("BlockMaxSize: %d ", bs)) 22 | } 23 | if l := h.CompressionLevel; l != 0 { 24 | s.WriteString(fmt.Sprintf("CompressionLevel: %d ", l)) 25 | } 26 | s.WriteByte('}') 27 | 28 | return s.String() 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/client_golang/prometheus/.gitignore: -------------------------------------------------------------------------------- 1 | command-line-arguments.test 2 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/client_golang/prometheus/README.md: -------------------------------------------------------------------------------- 1 | See [![go-doc](https://godoc.org/github.com/prometheus/client_golang/prometheus?status.svg)](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/common/model/model.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Prometheus Authors 2 | // Licensed under the Apache License, Version 2.0 (the "License"); 3 | // you may not use this file except in compliance with the License. 4 | // You may obtain a copy of the License at 5 | // 6 | // http://www.apache.org/licenses/LICENSE-2.0 7 | // 8 | // Unless required by applicable law or agreed to in writing, software 9 | // distributed under the License is distributed on an "AS IS" BASIS, 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | // See the License for the specific language governing permissions and 12 | // limitations under the License. 13 | 14 | // Package model contains common data structures that are shared across 15 | // Prometheus components and libraries. 16 | package model 17 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/.gitignore: -------------------------------------------------------------------------------- 1 | /fixtures/ 2 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/.golangci.yml: -------------------------------------------------------------------------------- 1 | --- 2 | linters: 3 | enable: 4 | - golint 5 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | ## Prometheus Community Code of Conduct 2 | 3 | Prometheus follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md). 4 | -------------------------------------------------------------------------------- /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/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Reporting a security issue 2 | 3 | The Prometheus security policy, including how to report vulnerabilities, can be 4 | found here: 5 | 6 | https://prometheus.io/docs/operating/security/ 7 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/cpuinfo_armx.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Prometheus Authors 2 | // Licensed under the Apache License, Version 2.0 (the "License"); 3 | // you may not use this file except in compliance with the License. 4 | // You may obtain a copy of the License at 5 | // 6 | // http://www.apache.org/licenses/LICENSE-2.0 7 | // 8 | // Unless required by applicable law or agreed to in writing, software 9 | // distributed under the License is distributed on an "AS IS" BASIS, 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | // See the License for the specific language governing permissions and 12 | // limitations under the License. 13 | 14 | // +build linux 15 | // +build arm arm64 16 | 17 | package procfs 18 | 19 | var parseCPUInfo = parseCPUInfoARM 20 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/cpuinfo_mipsx.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Prometheus Authors 2 | // Licensed under the Apache License, Version 2.0 (the "License"); 3 | // you may not use this file except in compliance with the License. 4 | // You may obtain a copy of the License at 5 | // 6 | // http://www.apache.org/licenses/LICENSE-2.0 7 | // 8 | // Unless required by applicable law or agreed to in writing, software 9 | // distributed under the License is distributed on an "AS IS" BASIS, 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | // See the License for the specific language governing permissions and 12 | // limitations under the License. 13 | 14 | // +build linux 15 | // +build mips mipsle mips64 mips64le 16 | 17 | package procfs 18 | 19 | var parseCPUInfo = parseCPUInfoMips 20 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/cpuinfo_others.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Prometheus Authors 2 | // Licensed under the Apache License, Version 2.0 (the "License"); 3 | // you may not use this file except in compliance with the License. 4 | // You may obtain a copy of the License at 5 | // 6 | // http://www.apache.org/licenses/LICENSE-2.0 7 | // 8 | // Unless required by applicable law or agreed to in writing, software 9 | // distributed under the License is distributed on an "AS IS" BASIS, 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | // See the License for the specific language governing permissions and 12 | // limitations under the License. 13 | 14 | // +build linux 15 | // +build !386,!amd64,!arm,!arm64,!mips,!mips64,!mips64le,!mipsle,!ppc64,!ppc64le,!riscv64,!s390x 16 | 17 | package procfs 18 | 19 | var parseCPUInfo = parseCPUInfoDummy 20 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/cpuinfo_ppcx.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Prometheus Authors 2 | // Licensed under the Apache License, Version 2.0 (the "License"); 3 | // you may not use this file except in compliance with the License. 4 | // You may obtain a copy of the License at 5 | // 6 | // http://www.apache.org/licenses/LICENSE-2.0 7 | // 8 | // Unless required by applicable law or agreed to in writing, software 9 | // distributed under the License is distributed on an "AS IS" BASIS, 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | // See the License for the specific language governing permissions and 12 | // limitations under the License. 13 | 14 | // +build linux 15 | // +build ppc64 ppc64le 16 | 17 | package procfs 18 | 19 | var parseCPUInfo = parseCPUInfoPPC 20 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/cpuinfo_riscvx.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Prometheus Authors 2 | // Licensed under the Apache License, Version 2.0 (the "License"); 3 | // you may not use this file except in compliance with the License. 4 | // You may obtain a copy of the License at 5 | // 6 | // http://www.apache.org/licenses/LICENSE-2.0 7 | // 8 | // Unless required by applicable law or agreed to in writing, software 9 | // distributed under the License is distributed on an "AS IS" BASIS, 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | // See the License for the specific language governing permissions and 12 | // limitations under the License. 13 | 14 | // +build linux 15 | // +build riscv riscv64 16 | 17 | package procfs 18 | 19 | var parseCPUInfo = parseCPUInfoRISCV 20 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/cpuinfo_s390x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Prometheus Authors 2 | // Licensed under the Apache License, Version 2.0 (the "License"); 3 | // you may not use this file except in compliance with the License. 4 | // You may obtain a copy of the License at 5 | // 6 | // http://www.apache.org/licenses/LICENSE-2.0 7 | // 8 | // Unless required by applicable law or agreed to in writing, software 9 | // distributed under the License is distributed on an "AS IS" BASIS, 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | // See the License for the specific language governing permissions and 12 | // limitations under the License. 13 | 14 | // +build linux 15 | 16 | package procfs 17 | 18 | var parseCPUInfo = parseCPUInfoS390X 19 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/cpuinfo_x86.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Prometheus Authors 2 | // Licensed under the Apache License, Version 2.0 (the "License"); 3 | // you may not use this file except in compliance with the License. 4 | // You may obtain a copy of the License at 5 | // 6 | // http://www.apache.org/licenses/LICENSE-2.0 7 | // 8 | // Unless required by applicable law or agreed to in writing, software 9 | // distributed under the License is distributed on an "AS IS" BASIS, 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | // See the License for the specific language governing permissions and 12 | // limitations under the License. 13 | 14 | // +build linux 15 | // +build 386 amd64 16 | 17 | package procfs 18 | 19 | var parseCPUInfo = parseCPUInfoX86 20 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/prometheus/procfs 2 | 3 | go 1.13 4 | 5 | require ( 6 | github.com/google/go-cmp v0.5.4 7 | golang.org/x/sync v0.0.0-20201207232520-09787c993a3a 8 | golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/go.sum: -------------------------------------------------------------------------------- 1 | github.com/google/go-cmp v0.5.4 h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M= 2 | github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 3 | golang.org/x/sync v0.0.0-20201207232520-09787c993a3a h1:DcqTD9SDLc+1P/r1EmRBwnVsrOwW+kk2vWf9n+1sGhs= 4 | golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 5 | golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c h1:VwygUrnw9jn88c4u8GD3rZQbqrP/tgas88tPUbBxQrk= 6 | golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 7 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= 8 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 9 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/.gitignore: -------------------------------------------------------------------------------- 1 | *.[68] 2 | *.a 3 | *.out 4 | *.swp 5 | _obj 6 | _testmain.go 7 | cmd/metrics-bench/metrics-bench 8 | cmd/metrics-example/metrics-example 9 | cmd/never-read/never-read 10 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.3 5 | - 1.4 6 | - 1.5 7 | - 1.6 8 | - 1.7 9 | - 1.8 10 | - 1.9 11 | 12 | script: 13 | - ./validate.sh 14 | 15 | # this should give us faster builds according to 16 | # http://docs.travis-ci.com/user/migrating-from-legacy/ 17 | sudo: false 18 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/metrics.go: -------------------------------------------------------------------------------- 1 | // Go port of Coda Hale's Metrics library 2 | // 3 | // 4 | // 5 | // Coda Hale's original work: 6 | package metrics 7 | 8 | // UseNilMetrics is checked by the constructor functions for all of the 9 | // standard metrics. If it is true, the metric returned is a stub. 10 | // 11 | // This global kill-switch helps quantify the observer effect and makes 12 | // for less cluttered pprof profiles. 13 | var UseNilMetrics bool = false 14 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/runtime_cgo.go: -------------------------------------------------------------------------------- 1 | // +build cgo 2 | // +build !appengine 3 | 4 | package metrics 5 | 6 | import "runtime" 7 | 8 | func numCgoCall() int64 { 9 | return runtime.NumCgoCall() 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/runtime_gccpufraction.go: -------------------------------------------------------------------------------- 1 | // +build go1.5 2 | 3 | package metrics 4 | 5 | import "runtime" 6 | 7 | func gcCPUFraction(memStats *runtime.MemStats) float64 { 8 | return memStats.GCCPUFraction 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/runtime_no_cgo.go: -------------------------------------------------------------------------------- 1 | // +build !cgo appengine 2 | 3 | package metrics 4 | 5 | func numCgoCall() int64 { 6 | return 0 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/runtime_no_gccpufraction.go: -------------------------------------------------------------------------------- 1 | // +build !go1.5 2 | 3 | package metrics 4 | 5 | import "runtime" 6 | 7 | func gcCPUFraction(memStats *runtime.MemStats) float64 { 8 | return 0 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/validate.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | # check there are no formatting issues 6 | GOFMT_LINES=`gofmt -l . | wc -l | xargs` 7 | test $GOFMT_LINES -eq 0 || echo "gofmt needs to be run, ${GOFMT_LINES} files have issues" 8 | 9 | # run the tests for the root package 10 | go test -race . 11 | -------------------------------------------------------------------------------- /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/tecbot/gorocksdb/.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | -------------------------------------------------------------------------------- /vendor/github.com/tecbot/gorocksdb/dynflag.go: -------------------------------------------------------------------------------- 1 | // +build !linux !static 2 | 3 | package gorocksdb 4 | 5 | // #cgo LDFLAGS: -lrocksdb -lstdc++ -lm -ldl 6 | import "C" 7 | -------------------------------------------------------------------------------- /vendor/github.com/tecbot/gorocksdb/options_compression.go: -------------------------------------------------------------------------------- 1 | package gorocksdb 2 | 3 | // CompressionOptions represents options for different compression algorithms like Zlib. 4 | type CompressionOptions struct { 5 | WindowBits int 6 | Level int 7 | Strategy int 8 | MaxDictBytes int 9 | } 10 | 11 | // NewDefaultCompressionOptions creates a default CompressionOptions object. 12 | func NewDefaultCompressionOptions() *CompressionOptions { 13 | return NewCompressionOptions(-14, -1, 0, 0) 14 | } 15 | 16 | // NewCompressionOptions creates a CompressionOptions object. 17 | func NewCompressionOptions(windowBits, level, strategy, maxDictBytes int) *CompressionOptions { 18 | return &CompressionOptions{ 19 | WindowBits: windowBits, 20 | Level: level, 21 | Strategy: strategy, 22 | MaxDictBytes: maxDictBytes, 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/tecbot/gorocksdb/options_env.go: -------------------------------------------------------------------------------- 1 | package gorocksdb 2 | 3 | // #include "rocksdb/c.h" 4 | import "C" 5 | 6 | // EnvOptions represents options for env. 7 | type EnvOptions struct { 8 | c *C.rocksdb_envoptions_t 9 | } 10 | 11 | // NewDefaultEnvOptions creates a default EnvOptions object. 12 | func NewDefaultEnvOptions() *EnvOptions { 13 | return NewNativeEnvOptions(C.rocksdb_envoptions_create()) 14 | } 15 | 16 | // NewNativeEnvOptions creates a EnvOptions object. 17 | func NewNativeEnvOptions(c *C.rocksdb_envoptions_t) *EnvOptions { 18 | return &EnvOptions{c: c} 19 | } 20 | 21 | // Destroy deallocates the EnvOptions object. 22 | func (opts *EnvOptions) Destroy() { 23 | C.rocksdb_envoptions_destroy(opts.c) 24 | opts.c = nil 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/tecbot/gorocksdb/snapshot.go: -------------------------------------------------------------------------------- 1 | package gorocksdb 2 | 3 | // #include "rocksdb/c.h" 4 | import "C" 5 | 6 | // Snapshot provides a consistent view of read operations in a DB. 7 | type Snapshot struct { 8 | c *C.rocksdb_snapshot_t 9 | } 10 | 11 | // NewNativeSnapshot creates a Snapshot object. 12 | func NewNativeSnapshot(c *C.rocksdb_snapshot_t) *Snapshot { 13 | return &Snapshot{c} 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/tecbot/gorocksdb/staticflag_linux.go: -------------------------------------------------------------------------------- 1 | // +build static 2 | 3 | package gorocksdb 4 | 5 | // #cgo LDFLAGS: -l:librocksdb.a -l:libstdc++.a -lm -ldl 6 | import "C" 7 | -------------------------------------------------------------------------------- /vendor/github.com/xdg/scram/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cubefs/cubefs-blobstore/a9fd240baadbc75ebd567c3d57ce6d9375e9cdf5/vendor/github.com/xdg/scram/.gitignore -------------------------------------------------------------------------------- /vendor/github.com/xdg/scram/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - "1.7" 5 | - "1.8" 6 | - "1.9" 7 | - "1.10" 8 | - master 9 | matrix: 10 | allow_failures: 11 | - go: master 12 | -------------------------------------------------------------------------------- /vendor/github.com/xdg/stringprep/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cubefs/cubefs-blobstore/a9fd240baadbc75ebd567c3d57ce6d9375e9cdf5/vendor/github.com/xdg/stringprep/.gitignore -------------------------------------------------------------------------------- /vendor/github.com/xdg/stringprep/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.7 5 | - 1.8 6 | - 1.9 7 | - master 8 | matrix: 9 | allow_failures: 10 | - go: master 11 | -------------------------------------------------------------------------------- /vendor/github.com/xdg/stringprep/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 by David A. Golden. All rights reserved. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | // Package stringprep provides data tables and algorithms for RFC-3454, 8 | // including errata (as of 2018-02). It also provides a profile for 9 | // SASLprep as defined in RFC-4013. 10 | package stringprep 11 | -------------------------------------------------------------------------------- /vendor/github.com/xdg/stringprep/error.go: -------------------------------------------------------------------------------- 1 | package stringprep 2 | 3 | import "fmt" 4 | 5 | // Error describes problems encountered during stringprep, including what rune 6 | // was problematic. 7 | type Error struct { 8 | Msg string 9 | Rune rune 10 | } 11 | 12 | func (e Error) Error() string { 13 | return fmt.Sprintf("%s (rune: '\\u%04x')", e.Msg, e.Rune) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/xdg/stringprep/map.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 by David A. Golden. All rights reserved. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | package stringprep 8 | 9 | // Mapping represents a stringprep mapping, from a single rune to zero or more 10 | // runes. 11 | type Mapping map[rune][]rune 12 | 13 | // Map maps a rune to a (possibly empty) rune slice via a stringprep Mapping. 14 | // The ok return value is false if the rune was not found. 15 | func (m Mapping) Map(r rune) (replacement []rune, ok bool) { 16 | rs, ok := m[r] 17 | if !ok { 18 | return nil, false 19 | } 20 | return rs, true 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/yuin/gopher-lua/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - "1.9.x" 5 | - "1.10.x" 6 | - "1.11.x" 7 | env: 8 | global: 9 | GO111MODULE=off 10 | 11 | before_install: 12 | - go get github.com/axw/gocov/gocov 13 | - go get github.com/mattn/goveralls 14 | - if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi 15 | install: 16 | - go get -u -v $(go list -f '{{join .Imports "\n"}}{{"\n"}}{{join .TestImports "\n"}}' ./... | sort | uniq | grep '\.' | grep -v gopher-lua) 17 | script: 18 | - $HOME/gopath/bin/goveralls -service=travis-ci 19 | -------------------------------------------------------------------------------- /vendor/github.com/yuin/gopher-lua/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: build test glua 2 | 3 | build: 4 | ./_tools/go-inline *.go && go fmt . && go build 5 | 6 | glua: *.go pm/*.go cmd/glua/glua.go 7 | ./_tools/go-inline *.go && go fmt . && go build cmd/glua/glua.go 8 | 9 | test: 10 | ./_tools/go-inline *.go && go fmt . && go test 11 | -------------------------------------------------------------------------------- /vendor/github.com/yuin/gopher-lua/ast/ast.go: -------------------------------------------------------------------------------- 1 | package ast 2 | 3 | type PositionHolder interface { 4 | Line() int 5 | SetLine(int) 6 | LastLine() int 7 | SetLastLine(int) 8 | } 9 | 10 | type Node struct { 11 | line int 12 | lastline int 13 | } 14 | 15 | func (self *Node) Line() int { 16 | return self.line 17 | } 18 | 19 | func (self *Node) SetLine(line int) { 20 | self.line = line 21 | } 22 | 23 | func (self *Node) LastLine() int { 24 | return self.lastline 25 | } 26 | 27 | func (self *Node) SetLastLine(line int) { 28 | self.lastline = line 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/yuin/gopher-lua/ast/misc.go: -------------------------------------------------------------------------------- 1 | package ast 2 | 3 | type Field struct { 4 | Key Expr 5 | Value Expr 6 | } 7 | 8 | type ParList struct { 9 | HasVargs bool 10 | Names []string 11 | } 12 | 13 | type FuncName struct { 14 | Func Expr 15 | Receiver Expr 16 | Method string 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/yuin/gopher-lua/ast/token.go: -------------------------------------------------------------------------------- 1 | package ast 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | type Position struct { 8 | Source string 9 | Line int 10 | Column int 11 | } 12 | 13 | type Token struct { 14 | Type int 15 | Name string 16 | Str string 17 | Pos Position 18 | } 19 | 20 | func (self *Token) String() string { 21 | return fmt.Sprintf("", self.Name, self.Str) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/yuin/gopher-lua/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/yuin/gopher-lua 2 | 3 | go 1.14 4 | 5 | require ( 6 | github.com/chzyer/logex v1.1.10 // indirect 7 | github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e 8 | github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1 // indirect 9 | golang.org/x/sys v0.0.0-20190204203706-41f3e6584952 // indirect 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/github.com/yuin/gopher-lua/go.sum: -------------------------------------------------------------------------------- 1 | github.com/chzyer/logex v1.1.10 h1:Swpa1K6QvQznwJRcfTfQJmTE72DqScAa40E+fbHEXEE= 2 | github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= 3 | github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e h1:fY5BOSpyZCqRo5OhCuC+XN+r/bBCmeuuJtjz+bCNIf8= 4 | github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= 5 | github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1 h1:q763qf9huN11kDQavWsoZXJNW3xEE4JJyHa5Q25/sd8= 6 | github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= 7 | golang.org/x/sys v0.0.0-20190204203706-41f3e6584952 h1:FDfvYgoVsA7TTZSbgiqjAbfPbK47CNHdWl3h/PJtii0= 8 | golang.org/x/sys v0.0.0-20190204203706-41f3e6584952/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 9 | -------------------------------------------------------------------------------- /vendor/github.com/yuin/gopher-lua/package.go: -------------------------------------------------------------------------------- 1 | // GopherLua: VM and compiler for Lua in Go 2 | package lua 3 | 4 | const PackageName = "GopherLua" 5 | const PackageVersion = "0.1" 6 | const PackageAuthors = "Yusuke Inuzuka" 7 | const PackageCopyRight = PackageName + " " + PackageVersion + " Copyright (C) 2015 -2017 " + PackageAuthors 8 | -------------------------------------------------------------------------------- /vendor/github.com/yuin/gopher-lua/parse/Makefile: -------------------------------------------------------------------------------- 1 | all : parser.go 2 | 3 | parser.go : parser.go.y 4 | goyacc -o $@ parser.go.y; [ -f y.output ] && ( rm -f y.output ) 5 | -------------------------------------------------------------------------------- /vendor/go.etcd.io/etcd/raft/v3/OWNERS: -------------------------------------------------------------------------------- 1 | approvers: 2 | - heyitsanthony 3 | - philips 4 | - fanminshi 5 | - gyuho 6 | - mitake 7 | - jpbetz 8 | - xiang90 9 | - bdarnell 10 | reviewers: 11 | - heyitsanthony 12 | - philips 13 | - fanminshi 14 | - gyuho 15 | - mitake 16 | - jpbetz 17 | - xiang90 18 | - bdarnell 19 | - tschottdorf 20 | -------------------------------------------------------------------------------- /vendor/go.etcd.io/etcd/raft/v3/go.mod: -------------------------------------------------------------------------------- 1 | module go.etcd.io/etcd/raft/v3 2 | 3 | go 1.16 4 | 5 | require ( 6 | github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054 // indirect 7 | github.com/cockroachdb/datadriven v0.0.0-20200714090401-bf6692d28da5 8 | github.com/gogo/protobuf v1.3.2 9 | github.com/golang/protobuf v1.5.2 10 | github.com/pkg/errors v0.9.1 // indirect 11 | go.etcd.io/etcd/client/pkg/v3 v3.5.1 12 | ) 13 | 14 | // Bad imports are sometimes causing attempts to pull that code. 15 | // This makes the error more explicit. 16 | replace go.etcd.io/etcd => ./FORBIDDEN_DEPENDENCY 17 | 18 | replace go.etcd.io/etcd/v3 => ./FORBIDDEN_DEPENDENCY 19 | 20 | replace go.etcd.io/etcd/client/pkg/v3 => ../client/pkg 21 | -------------------------------------------------------------------------------- /vendor/go.etcd.io/etcd/raft/v3/quorum/voteresult_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type=VoteResult"; DO NOT EDIT. 2 | 3 | package quorum 4 | 5 | import "strconv" 6 | 7 | func _() { 8 | // An "invalid array index" compiler error signifies that the constant values have changed. 9 | // Re-run the stringer command to generate them again. 10 | var x [1]struct{} 11 | _ = x[VotePending-1] 12 | _ = x[VoteLost-2] 13 | _ = x[VoteWon-3] 14 | } 15 | 16 | const _VoteResult_name = "VotePendingVoteLostVoteWon" 17 | 18 | var _VoteResult_index = [...]uint8{0, 11, 19, 26} 19 | 20 | func (i VoteResult) String() string { 21 | i -= 1 22 | if i >= VoteResult(len(_VoteResult_index)-1) { 23 | return "VoteResult(" + strconv.FormatInt(int64(i+1), 10) + ")" 24 | } 25 | return _VoteResult_name[_VoteResult_index[i]:_VoteResult_index[i+1]] 26 | } 27 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/proxy.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | package bsoncodec 8 | 9 | // Proxy is an interface implemented by types that cannot themselves be directly encoded. Types 10 | // that implement this interface with have ProxyBSON called during the encoding process and that 11 | // value will be encoded in place for the implementer. 12 | type Proxy interface { 13 | ProxyBSON() (interface{}, error) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/bson/bsonrw/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | // Package bsonrw contains abstractions for reading and writing 8 | // BSON and BSON like types from sources. 9 | package bsonrw // import "go.mongodb.org/mongo-driver/bson/bsonrw" 10 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/internal/const.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | package internal // import "go.mongodb.org/mongo-driver/internal" 8 | 9 | // Version is the current version of the driver. 10 | var Version = "local build" 11 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/mongo/options/clientoptions_1_10.go: -------------------------------------------------------------------------------- 1 | // +build go1.10 2 | 3 | package options 4 | 5 | import "crypto/x509" 6 | 7 | func x509CertSubject(cert *x509.Certificate) string { 8 | return cert.Subject.String() 9 | } 10 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/mongo/options/clientoptions_1_9.go: -------------------------------------------------------------------------------- 1 | // +build !go1.10 2 | 3 | package options 4 | 5 | import ( 6 | "crypto/x509" 7 | ) 8 | 9 | // We don't support version less then 1.10, but Evergreen needs to be able to compile the driver 10 | // using version 1.8. 11 | func x509CertSubject(cert *x509.Certificate) string { 12 | return "" 13 | } 14 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/mongo/util.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | package mongo 8 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/version/version.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | package version // import "go.mongodb.org/mongo-driver/version" 8 | 9 | // Driver is the current version of the driver. 10 | var Driver = "v1.1.0" 11 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/cred.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | package auth 8 | 9 | // Cred is a user's credential. 10 | type Cred struct { 11 | Source string 12 | Username string 13 | Password string 14 | PasswordSet bool 15 | Props map[string]string 16 | } 17 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/gssapi_not_enabled.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | //+build !gssapi 8 | 9 | package auth 10 | 11 | // GSSAPI is the mechanism name for GSSAPI. 12 | const GSSAPI = "GSSAPI" 13 | 14 | func newGSSAPIAuthenticator(cred *Cred) (Authenticator, error) { 15 | return nil, newAuthError("GSSAPI support not enabled during build (-tags gssapi)", nil) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/gssapi_not_supported.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | //+build gssapi,!windows,!linux,!darwin 8 | 9 | package auth 10 | 11 | import ( 12 | "fmt" 13 | "runtime" 14 | ) 15 | 16 | // GSSAPI is the mechanism name for GSSAPI. 17 | const GSSAPI = "GSSAPI" 18 | 19 | func newGSSAPIAuthenticator(cred *Cred) (Authenticator, error) { 20 | return nil, newAuthError(fmt.Sprintf("GSSAPI is not supported on %s", runtime.GOOS), nil) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/util.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | package auth 8 | 9 | import ( 10 | "crypto/md5" 11 | "fmt" 12 | "io" 13 | ) 14 | 15 | const defaultAuthDB = "admin" 16 | 17 | func mongoPasswordDigest(username, password string) string { 18 | h := md5.New() 19 | _, _ = io.WriteString(h, username) 20 | _, _ = io.WriteString(h, ":mongo:") 21 | _, _ = io.WriteString(h, password) 22 | return fmt.Sprintf("%x", h.Sum(nil)) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/description/description.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | package description // import "go.mongodb.org/mongo-driver/x/mongo/driver/description" 8 | 9 | // Unknown is an unknown server or topology kind. 10 | const Unknown = 0 11 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/legacy.go: -------------------------------------------------------------------------------- 1 | package driver 2 | 3 | // LegacyOperationKind indicates if an operation is a legacy find, getMore, or killCursors. This is used 4 | // in Operation.Execute, which will create legacy OP_QUERY, OP_GET_MORE, or OP_KILL_CURSORS instead 5 | // of sending them as a command. 6 | type LegacyOperationKind uint 7 | 8 | // These constants represent the three different kinds of legacy operations. 9 | const ( 10 | LegacyNone LegacyOperationKind = iota 11 | LegacyFind 12 | LegacyGetMore 13 | LegacyKillCursors 14 | LegacyListCollections 15 | LegacyListIndexes 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/abort_transaction.toml: -------------------------------------------------------------------------------- 1 | version = 0 2 | name = "AbortTransaction" 3 | documentation = "AbortTransaction performs an abortTransaction operation." 4 | 5 | [properties] 6 | enabled = ["write concern"] 7 | retryable = {mode = "once per command", type = "writes"} 8 | 9 | [command] 10 | name = "abortTransaction" 11 | parameter = "database" 12 | 13 | [request.recoveryToken] 14 | type = "document" 15 | documentation = """ 16 | RecoveryToken sets the recovery token to use when committing or aborting a sharded transaction.\ 17 | """ 18 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/commit_transaction.toml: -------------------------------------------------------------------------------- 1 | version = 0 2 | name = "CommitTransaction" 3 | documentation = "CommitTransaction attempts to commit a transaction." 4 | 5 | [properties] 6 | enabled = ["write concern"] 7 | disabled = ["collection"] 8 | retryable = {mode = "once per command", type = "writes"} 9 | 10 | [command] 11 | name = "commitTransaction" 12 | parameter = "database" 13 | 14 | [request.recoveryToken] 15 | type = "document" 16 | documentation = """ 17 | RecoveryToken sets the recovery token to use when committing or aborting a sharded transaction.\ 18 | """ 19 | 20 | [request.maxTimeMS] 21 | type = "int64" 22 | documentation = "MaxTimeMS specifies the maximum amount of time to allow the query to run." 23 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/count.toml: -------------------------------------------------------------------------------- 1 | version = 0 2 | name = "Count" 3 | documentation = "Performs a count operation" 4 | 5 | [properties] 6 | enabled = ["read concern", "read preference"] 7 | retryable = {mode = "once per command", type = "reads"} 8 | 9 | [command] 10 | name = "count" 11 | parameter = "collection" 12 | 13 | [request.maxTimeMS] 14 | type = "int64" 15 | documentation = "MaxTimeMS specifies the maximum amount of time to allow the query to run." 16 | 17 | [request.query] 18 | type = "document" 19 | documentation = "Query determines what results are returned from find." 20 | 21 | [response] 22 | name = "CountResult" 23 | 24 | [response.field.n] 25 | type = "int64" 26 | documentation = "The number of documents found" 27 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/drop_collection.toml: -------------------------------------------------------------------------------- 1 | version = 0 2 | name = "DropCollection" 3 | documentation = "DropCollection performs a drop operation." 4 | 5 | [command] 6 | name = "drop" 7 | parameter = "collection" 8 | 9 | [properties] 10 | enabled = ["write concern"] 11 | 12 | [response] 13 | name = "DropCollectionResult" 14 | 15 | [response.field.ns] 16 | type = "string" 17 | documentation = "The namespace of the dropped collection." 18 | 19 | [response.field.nIndexesWas] 20 | type = "int32" 21 | documentation = "The number of indexes in the dropped collection." 22 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/drop_database.toml: -------------------------------------------------------------------------------- 1 | version = 0 2 | name = "DropDatabase" 3 | documentation = "DropDatabase performs a dropDatabase operation" 4 | 5 | [properties] 6 | enabled = ["write concern"] 7 | disabled = ["collection"] 8 | 9 | [command] 10 | name = "dropDatabase" 11 | parameter = "database" 12 | 13 | [response] 14 | name = "DropDatabaseResult" 15 | 16 | [response.field.dropped] 17 | type = "string" 18 | documentation = "The dropped database." -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/drop_indexes.toml: -------------------------------------------------------------------------------- 1 | version = 0 2 | name = "DropIndexes" 3 | documentation = "DropIndexes performs an dropIndexes operation." 4 | 5 | [properties] 6 | enabled = ["write concern"] 7 | 8 | [command] 9 | name = "dropIndexes" 10 | parameter = "collection" 11 | 12 | [request.index] 13 | type = "string" 14 | constructor = true 15 | documentation = """ 16 | Index specifies the name of the index to drop. If '*' is specified, all indexes will be dropped. 17 | """ 18 | 19 | [request.maxTimeMS] 20 | type = "int64" 21 | documentation = "MaxTimeMS specifies the maximum amount of time to allow the query to run." 22 | 23 | [response] 24 | name = "DropIndexesResult" 25 | 26 | [response.field.nIndexesWas] 27 | type = "int32" 28 | documentation = "Number of indexes that existed before the drop was executed." 29 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/end_sessions.toml: -------------------------------------------------------------------------------- 1 | version = 0 2 | name = "EndSessions" 3 | documentation = "EndSessions performs an endSessions operation." 4 | 5 | [properties] 6 | disabled = ["collection"] 7 | 8 | [command] 9 | name = "endSessions" 10 | parameter = "sessionIDs" 11 | 12 | [request.sessionIDs] 13 | type = "array" 14 | documentation = "sessionIDs specify the sessions to be expired." 15 | skip = true 16 | constructor = true 17 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/list_collections.toml: -------------------------------------------------------------------------------- 1 | version = 0 2 | name = "ListCollections" 3 | documentation = "ListCollections performs a listCollections operation." 4 | response.type = "list collections batch cursor" 5 | 6 | [properties] 7 | enabled = ["read preference"] 8 | disabled = ["collection"] 9 | retryable = {mode = "once per command", type = "reads"} 10 | legacy = "listCollections" 11 | 12 | [command] 13 | name = "listCollections" 14 | parameter = "database" 15 | 16 | [request.filter] 17 | type = "document" 18 | constructor = true 19 | documentation = "Filter determines what results are returned from listCollections." 20 | 21 | [request.nameOnly] 22 | type = "boolean" 23 | documentation = "NameOnly specifies whether to only return collection names." 24 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/list_indexes.toml: -------------------------------------------------------------------------------- 1 | version = 0 2 | name = "ListIndexes" 3 | documentation = "ListIndexes performs a listIndexes operation." 4 | response.type = "batch cursor" 5 | 6 | [properties] 7 | legacy = "listIndexes" 8 | retryable = {mode = "once per command", type = "reads"} 9 | 10 | [command] 11 | name = "listIndexes" 12 | parameter = "collection" 13 | 14 | [request.batchSize] 15 | type = "int32" 16 | documentation = "BatchSize specifies the number of documents to return in every batch." 17 | 18 | [request.maxTimeMS] 19 | type = "int64" 20 | documentation = "MaxTimeMS specifies the maximum amount of time to allow the query to run." 21 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/connection_legacy.go: -------------------------------------------------------------------------------- 1 | package topology 2 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/errors.go: -------------------------------------------------------------------------------- 1 | package topology 2 | 3 | import "fmt" 4 | 5 | // ConnectionError represents a connection error. 6 | type ConnectionError struct { 7 | ConnectionID string 8 | Wrapped error 9 | 10 | // init will be set to true if this error occured during connection initialization or 11 | // during a connection handshake. 12 | init bool 13 | message string 14 | } 15 | 16 | // Error implements the error interface. 17 | func (e ConnectionError) Error() string { 18 | if e.Wrapped != nil { 19 | return fmt.Sprintf("connection(%s) %s: %s", e.ConnectionID, e.message, e.Wrapped.Error()) 20 | } 21 | return fmt.Sprintf("connection(%s) %s", e.ConnectionID, e.message) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/topology_options_1_10.go: -------------------------------------------------------------------------------- 1 | // +build go1.10 2 | 3 | package topology 4 | 5 | import "crypto/x509" 6 | 7 | func x509CertSubject(cert *x509.Certificate) string { 8 | return cert.Subject.String() 9 | } 10 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/topology_options_1_9.go: -------------------------------------------------------------------------------- 1 | // +build !go1.10 2 | 3 | package topology 4 | 5 | import ( 6 | "crypto/x509" 7 | ) 8 | 9 | // We don't support version less then 1.10, but Evergreen needs to be able to compile the driver 10 | // using version 1.8. 11 | func x509CertSubject(cert *x509.Certificate) string { 12 | return "" 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at https://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at https://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sync/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/sync/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/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos) && go1.9 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | // +build go1.9 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | type Signal = syscall.Signal 14 | type Errno = syscall.Errno 15 | type SysProcAttr = syscall.SysProcAttr 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 12 | // 13 | 14 | TEXT ·syscall6(SB),NOSPLIT,$0-88 15 | JMP syscall·syscall6(SB) 16 | 17 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 18 | JMP syscall·rawSyscall6(SB) 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System call support for mips64, OpenBSD 12 | // 13 | 14 | // Just jump to package syscall's implementation for all these functions. 15 | // The runtime may know about them. 16 | 17 | TEXT ·Syscall(SB),NOSPLIT,$0-56 18 | JMP syscall·Syscall(SB) 19 | 20 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 21 | JMP syscall·Syscall6(SB) 22 | 23 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 24 | JMP syscall·Syscall9(SB) 25 | 26 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 27 | JMP syscall·RawSyscall(SB) 28 | 29 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 30 | JMP syscall·RawSyscall6(SB) 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 12 | // 13 | 14 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 15 | JMP syscall·sysvicall6(SB) 16 | 17 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 18 | JMP syscall·rawSysvicall6(SB) 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/bluetooth_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Bluetooth sockets and messages 6 | 7 | package unix 8 | 9 | // Bluetooth Protocols 10 | const ( 11 | BTPROTO_L2CAP = 0 12 | BTPROTO_HCI = 1 13 | BTPROTO_SCO = 2 14 | BTPROTO_RFCOMM = 3 15 | BTPROTO_BNEP = 4 16 | BTPROTO_CMTP = 5 17 | BTPROTO_HIDP = 6 18 | BTPROTO_AVDTP = 7 19 | ) 20 | 21 | const ( 22 | HCI_CHANNEL_RAW = 0 23 | HCI_CHANNEL_USER = 1 24 | HCI_CHANNEL_MONITOR = 2 25 | HCI_CHANNEL_CONTROL = 3 26 | HCI_CHANNEL_LOGGING = 4 27 | ) 28 | 29 | // Socketoption Level 30 | const ( 31 | SOL_BLUETOOTH = 0x112 32 | SOL_HCI = 0x0 33 | SOL_L2CAP = 0x6 34 | SOL_RFCOMM = 0x12 35 | SOL_SCO = 0x11 36 | ) 37 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | 8 | package unix 9 | 10 | const ( 11 | R_OK = 0x4 12 | W_OK = 0x2 13 | X_OK = 0x1 14 | ) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 6 | // +build armbe arm64be m68k mips mips64 mips64p32 ppc ppc64 s390 s390x shbe sparc sparc64 7 | 8 | package unix 9 | 10 | const isBigEndian = true 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh 6 | // +build 386 amd64 amd64p32 alpha arm arm64 mipsle mips64le mips64p32le nios2 ppc64le riscv riscv64 sh 7 | 8 | package unix 9 | 10 | const isBigEndian = false 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/errors_freebsd_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Constants that were deprecated or moved to enums in the FreeBSD headers. Keep 6 | // them here for backwards compatibility. 7 | 8 | package unix 9 | 10 | const ( 11 | DLT_HHDLC = 0x79 12 | IPV6_MIN_MEMBERSHIPS = 0x1f 13 | IP_MAX_SOURCE_FILTER = 0x400 14 | IP_MIN_MEMBERSHIPS = 0x1f 15 | RT_CACHING_CONTEXT = 0x1 16 | RT_NORTREF = 0x2 17 | ) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle) || (linux && ppc) 6 | // +build linux,386 linux,arm linux,mips linux,mipsle linux,ppc 7 | 8 | package unix 9 | 10 | func init() { 11 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 12 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 13 | fcntl64Syscall = SYS_FCNTL64 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gccgo && linux && amd64 6 | // +build gccgo,linux,amd64 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //extern gettimeofday 13 | func realGettimeofday(*Timeval, *byte) int32 14 | 15 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 16 | r := realGettimeofday(tv, nil) 17 | if r < 0 { 18 | return syscall.GetErrno() 19 | } 20 | return 0 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/pagesize_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 7 | 8 | // For Unix, get the pagesize from the runtime. 9 | 10 | package unix 11 | 12 | import "syscall" 13 | 14 | func Getpagesize() int { 15 | return syscall.Getpagesize() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin && !ios 6 | // +build darwin,!ios 7 | 8 | package unix 9 | 10 | func ptrace(request int, pid int, addr uintptr, data uintptr) error { 11 | return ptrace1(request, pid, addr, data) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_ios.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build ios 6 | // +build ios 7 | 8 | package unix 9 | 10 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { 11 | return ENOTSUP 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin && race) || (linux && race) || (freebsd && race) 6 | // +build darwin,race linux,race freebsd,race 7 | 8 | package unix 9 | 10 | import ( 11 | "runtime" 12 | "unsafe" 13 | ) 14 | 15 | const raceenabled = true 16 | 17 | func raceAcquire(addr unsafe.Pointer) { 18 | runtime.RaceAcquire(addr) 19 | } 20 | 21 | func raceReleaseMerge(addr unsafe.Pointer) { 22 | runtime.RaceReleaseMerge(addr) 23 | } 24 | 25 | func raceReadRange(addr unsafe.Pointer, len int) { 26 | runtime.RaceReadRange(addr, len) 27 | } 28 | 29 | func raceWriteRange(addr unsafe.Pointer, len int) { 30 | runtime.RaceWriteRange(addr, len) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || (darwin && !race) || (linux && !race) || (freebsd && !race) || netbsd || openbsd || solaris || dragonfly || zos 6 | // +build aix darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly zos 7 | 8 | package unix 9 | 10 | import ( 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = false 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | } 18 | 19 | func raceReleaseMerge(addr unsafe.Pointer) { 20 | } 21 | 22 | func raceReadRange(addr unsafe.Pointer, len int) { 23 | } 24 | 25 | func raceWriteRange(addr unsafe.Pointer, len int) { 26 | } 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdents.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || dragonfly || freebsd || linux || netbsd || openbsd 6 | // +build aix dragonfly freebsd linux netbsd openbsd 7 | 8 | package unix 9 | 10 | // ReadDirent reads directory entries from fd and writes them into buf. 11 | func ReadDirent(fd int, buf []byte) (n int, err error) { 12 | return Getdents(fd, buf) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdirentries.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin 6 | // +build darwin 7 | 8 | package unix 9 | 10 | import "unsafe" 11 | 12 | // ReadDirent reads directory entries from fd and writes them into buf. 13 | func ReadDirent(fd int, buf []byte) (n int, err error) { 14 | // Final argument is (basep *uintptr) and the syscall doesn't take nil. 15 | // 64 bits should be enough. (32 bits isn't even on 386). Since the 16 | // actual system call is getdirentries64, 64 is a good guess. 17 | // TODO(rsc): Can we use a single global basep for all calls? 18 | var base = (*uintptr)(unsafe.Pointer(new(uint64))) 19 | return Getdirentries(fd, buf, base) 20 | } 21 | -------------------------------------------------------------------------------- /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 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 7 | 8 | package unix 9 | 10 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 11 | if val < 0 { 12 | return "-" + uitoa(uint(-val)) 13 | } 14 | return uitoa(uint(val)) 15 | } 16 | 17 | func uitoa(val uint) string { 18 | var buf [32]byte // big enough for int64 19 | i := len(buf) - 1 20 | for val >= 10 { 21 | buf[i] = byte(val%10 + '0') 22 | i-- 23 | val /= 10 24 | } 25 | buf[i] = byte(val + '0') 26 | return string(buf[i:]) 27 | } 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && linux && gc 6 | // +build amd64,linux,gc 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //go:noescape 13 | func gettimeofday(tv *Timeval) (err syscall.Errno) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gc 6 | // +build linux,gc 7 | 8 | package unix 9 | 10 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 11 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 12 | 13 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 14 | // fail. 15 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gc && 386 6 | // +build linux,gc,386 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | // Underlying system call writes to newoffset via pointer. 13 | // Implemented in assembly to avoid allocation. 14 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 15 | 16 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 17 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build arm && gc && linux 6 | // +build arm,gc,linux 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | // Underlying system call writes to newoffset via pointer. 13 | // Implemented in assembly to avoid allocation. 14 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gccgo && arm 6 | // +build linux,gccgo,arm 7 | 8 | package unix 9 | 10 | import ( 11 | "syscall" 12 | "unsafe" 13 | ) 14 | 15 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { 16 | var newoffset int64 17 | offsetLow := uint32(offset & 0xffffffff) 18 | offsetHigh := uint32((offset >> 32) & 0xffffffff) 19 | _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0) 20 | return newoffset, err 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && solaris 6 | // +build amd64,solaris 7 | 8 | package unix 9 | 10 | func setTimespec(sec, nsec int64) Timespec { 11 | return Timespec{Sec: sec, Nsec: nsec} 12 | } 13 | 14 | func setTimeval(sec, usec int64) Timeval { 15 | return Timeval{Sec: sec, Usec: usec} 16 | } 17 | 18 | func (iov *Iovec) SetLen(length int) { 19 | iov.Len = uint64(length) 20 | } 21 | 22 | func (msghdr *Msghdr) SetIovlen(length int) { 23 | msghdr.Iovlen = int32(length) 24 | } 25 | 26 | func (cmsg *Cmsghdr) SetLen(length int) { 27 | cmsg.Len = uint32(length) 28 | } 29 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_unix_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris) && gc && !ppc64le && !ppc64 6 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 7 | // +build gc 8 | // +build !ppc64le 9 | // +build !ppc64 10 | 11 | package unix 12 | 13 | import "syscall" 14 | 15 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 16 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 17 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 18 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go: -------------------------------------------------------------------------------- 1 | // Code generated by linux/mkall.go generatePtraceRegSet("arm64"). DO NOT EDIT. 2 | 3 | package unix 4 | 5 | import "unsafe" 6 | 7 | // PtraceGetRegSetArm64 fetches the registers used by arm64 binaries. 8 | func PtraceGetRegSetArm64(pid, addr int, regsout *PtraceRegsArm64) error { 9 | iovec := Iovec{(*byte)(unsafe.Pointer(regsout)), uint64(unsafe.Sizeof(*regsout))} 10 | return ptrace(PTRACE_GETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec))) 11 | } 12 | 13 | // PtraceSetRegSetArm64 sets the registers used by arm64 binaries. 14 | func PtraceSetRegSetArm64(pid, addr int, regs *PtraceRegsArm64) error { 15 | iovec := Iovec{(*byte)(unsafe.Pointer(regs)), uint64(unsafe.Sizeof(*regs))} 16 | return ptrace(PTRACE_SETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec))) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ztypes_illumos_amd64.go: -------------------------------------------------------------------------------- 1 | // cgo -godefs types_illumos.go | go run mkpost.go 2 | // Code generated by the command above; see README.md. DO NOT EDIT. 3 | 4 | //go:build amd64 && illumos 5 | // +build amd64,illumos 6 | 7 | package unix 8 | 9 | const ( 10 | TUNNEWPPA = 0x540001 11 | TUNSETPPA = 0x540002 12 | 13 | I_STR = 0x5308 14 | I_POP = 0x5303 15 | I_PUSH = 0x5302 16 | I_PLINK = 0x5316 17 | I_PUNLINK = 0x5317 18 | 19 | IF_UNITSEL = -0x7ffb8cca 20 | ) 21 | 22 | type strbuf struct { 23 | Maxlen int32 24 | Len int32 25 | Buf *int8 26 | } 27 | 28 | type Strioctl struct { 29 | Cmd int32 30 | Timout int32 31 | Len int32 32 | Dp *int8 33 | } 34 | 35 | type Lifreq struct { 36 | Name [32]int8 37 | Lifru1 [4]byte 38 | Type uint32 39 | Lifru [336]byte 40 | } 41 | -------------------------------------------------------------------------------- /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 | //go:build !go1.12 6 | // +build !go1.12 7 | 8 | // This file is here to allow bodyless functions with go:linkname for Go 1.11 9 | // and earlier (see https://golang.org/issue/23311). 10 | -------------------------------------------------------------------------------- /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/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/flags/proto_legacy_disable.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !protolegacy 6 | 7 | package flags 8 | 9 | const protoLegacy = false 10 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/flags/proto_legacy_enable.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build protolegacy 6 | 7 | package flags 8 | 9 | const protoLegacy = true 10 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package genid contains constants for declarations in descriptor.proto 6 | // and the well-known types. 7 | package genid 8 | 9 | import protoreflect "google.golang.org/protobuf/reflect/protoreflect" 10 | 11 | const GoogleProtobuf_package protoreflect.FullName = "google.protobuf" 12 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/empty_gen.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Code generated by generate-protos. DO NOT EDIT. 6 | 7 | package genid 8 | 9 | import ( 10 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 | ) 12 | 13 | const File_google_protobuf_empty_proto = "google/protobuf/empty.proto" 14 | 15 | // Names for google.protobuf.Empty. 16 | const ( 17 | Empty_message_name protoreflect.Name = "Empty" 18 | Empty_message_fullname protoreflect.FullName = "google.protobuf.Empty" 19 | ) 20 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/goname.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package genid 6 | 7 | // Go names of implementation-specific struct fields in generated messages. 8 | const ( 9 | State_goname = "state" 10 | 11 | SizeCache_goname = "sizeCache" 12 | SizeCacheA_goname = "XXX_sizecache" 13 | 14 | WeakFields_goname = "weakFields" 15 | WeakFieldsA_goname = "XXX_weak" 16 | 17 | UnknownFields_goname = "unknownFields" 18 | UnknownFieldsA_goname = "XXX_unrecognized" 19 | 20 | ExtensionFields_goname = "extensionFields" 21 | ExtensionFieldsA_goname = "XXX_InternalExtensions" 22 | ExtensionFieldsB_goname = "XXX_extensions" 23 | 24 | WeakFieldPrefix_goname = "XXX_weak_" 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/map_entry.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package genid 6 | 7 | import protoreflect "google.golang.org/protobuf/reflect/protoreflect" 8 | 9 | // Generic field names and numbers for synthetic map entry messages. 10 | const ( 11 | MapEntry_Key_field_name protoreflect.Name = "key" 12 | MapEntry_Value_field_name protoreflect.Name = "value" 13 | 14 | MapEntry_Key_field_number protoreflect.FieldNumber = 1 15 | MapEntry_Value_field_number protoreflect.FieldNumber = 2 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/wrappers.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package genid 6 | 7 | import protoreflect "google.golang.org/protobuf/reflect/protoreflect" 8 | 9 | // Generic field name and number for messages in wrappers.proto. 10 | const ( 11 | WrapperValue_Value_field_name protoreflect.Name = "value" 12 | WrapperValue_Value_field_number protoreflect.FieldNumber = 1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/impl/codec_map_go112.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.12 6 | 7 | package impl 8 | 9 | import "reflect" 10 | 11 | func mapRange(v reflect.Value) *reflect.MapIter { return v.MapRange() } 12 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !purego,!appengine 6 | 7 | package impl 8 | 9 | // When using unsafe pointers, we can just treat enum values as int32s. 10 | 11 | var ( 12 | coderEnumNoZero = coderInt32NoZero 13 | coderEnum = coderInt32 14 | coderEnumPtr = coderInt32Ptr 15 | coderEnumSlice = coderInt32Slice 16 | coderEnumPackedSlice = coderInt32PackedSlice 17 | ) 18 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/impl/enum.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package impl 6 | 7 | import ( 8 | "reflect" 9 | 10 | pref "google.golang.org/protobuf/reflect/protoreflect" 11 | ) 12 | 13 | type EnumInfo struct { 14 | GoReflectType reflect.Type // int32 kind 15 | Desc pref.EnumDescriptor 16 | } 17 | 18 | func (t *EnumInfo) New(n pref.EnumNumber) pref.Enum { 19 | return reflect.ValueOf(n).Convert(t.GoReflectType).Interface().(pref.Enum) 20 | } 21 | func (t *EnumInfo) Descriptor() pref.EnumDescriptor { return t.Desc } 22 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/strs/strings_pure.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build purego appengine 6 | 7 | package strs 8 | 9 | import pref "google.golang.org/protobuf/reflect/protoreflect" 10 | 11 | func UnsafeString(b []byte) string { 12 | return string(b) 13 | } 14 | 15 | func UnsafeBytes(s string) []byte { 16 | return []byte(s) 17 | } 18 | 19 | type Builder struct{} 20 | 21 | func (*Builder) AppendFullName(prefix pref.FullName, name pref.Name) pref.FullName { 22 | return prefix.Append(name) 23 | } 24 | 25 | func (*Builder) MakeString(b []byte) string { 26 | return string(b) 27 | } 28 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/proto/proto_methods.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // The protoreflect build tag disables use of fast-path methods. 6 | // +build !protoreflect 7 | 8 | package proto 9 | 10 | import ( 11 | "google.golang.org/protobuf/reflect/protoreflect" 12 | "google.golang.org/protobuf/runtime/protoiface" 13 | ) 14 | 15 | const hasProtoMethods = true 16 | 17 | func protoMethods(m protoreflect.Message) *protoiface.Methods { 18 | return m.ProtoMethods() 19 | } 20 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/proto/proto_reflect.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // The protoreflect build tag disables use of fast-path methods. 6 | // +build protoreflect 7 | 8 | package proto 9 | 10 | import ( 11 | "google.golang.org/protobuf/reflect/protoreflect" 12 | "google.golang.org/protobuf/runtime/protoiface" 13 | ) 14 | 15 | const hasProtoMethods = false 16 | 17 | func protoMethods(m protoreflect.Message) *protoiface.Methods { 18 | return nil 19 | } 20 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/runtime/protoiface/legacy.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package protoiface 6 | 7 | type MessageV1 interface { 8 | Reset() 9 | String() string 10 | ProtoMessage() 11 | } 12 | 13 | type ExtensionRangeV1 struct { 14 | Start, End int32 // both inclusive 15 | } 16 | -------------------------------------------------------------------------------- /vendor/gopkg.in/go-playground/validator.v9/.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 | *.test 26 | *.out 27 | *.txt 28 | cover.html 29 | README.html -------------------------------------------------------------------------------- /vendor/gopkg.in/go-playground/validator.v9/Makefile: -------------------------------------------------------------------------------- 1 | GOCMD=go 2 | 3 | linters-install: 4 | @golangci-lint --version >/dev/null 2>&1 || { \ 5 | echo "installing linting tools..."; \ 6 | curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.19.1; \ 7 | } 8 | 9 | lint: linters-install 10 | golangci-lint run 11 | 12 | test: 13 | $(GOCMD) test -cover -race ./... 14 | 15 | bench: 16 | $(GOCMD) test -bench=. -benchmem ./... 17 | 18 | .PHONY: test lint linters-install -------------------------------------------------------------------------------- /vendor/gopkg.in/go-playground/validator.v9/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cubefs/cubefs-blobstore/a9fd240baadbc75ebd567c3d57ce6d9375e9cdf5/vendor/gopkg.in/go-playground/validator.v9/logo.png -------------------------------------------------------------------------------- /vendor/gopkg.in/go-playground/validator.v9/translations.go: -------------------------------------------------------------------------------- 1 | package validator 2 | 3 | import ut "github.com/go-playground/universal-translator" 4 | 5 | // TranslationFunc is the function type used to register or override 6 | // custom translations 7 | type TranslationFunc func(ut ut.Translator, fe FieldError) string 8 | 9 | // RegisterTranslationsFunc allows for registering of translations 10 | // for a 'ut.Translator' for use within the 'TranslationFunc' 11 | type RegisterTranslationsFunc func(ut ut.Translator) error 12 | -------------------------------------------------------------------------------- /vendor/gopkg.in/natefinch/lumberjack.v2/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | -------------------------------------------------------------------------------- /vendor/gopkg.in/natefinch/lumberjack.v2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8 5 | - 1.7 6 | - 1.6 -------------------------------------------------------------------------------- /vendor/gopkg.in/natefinch/lumberjack.v2/chown.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package lumberjack 4 | 5 | import ( 6 | "os" 7 | ) 8 | 9 | func chown(_ string, _ os.FileInfo) error { 10 | return nil 11 | } 12 | -------------------------------------------------------------------------------- /vendor/gopkg.in/natefinch/lumberjack.v2/chown_linux.go: -------------------------------------------------------------------------------- 1 | package lumberjack 2 | 3 | import ( 4 | "os" 5 | "syscall" 6 | ) 7 | 8 | // os_Chown is a var so we can mock it out during tests. 9 | var os_Chown = os.Chown 10 | 11 | func chown(name string, info os.FileInfo) error { 12 | f, err := os.OpenFile(name, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, info.Mode()) 13 | if err != nil { 14 | return err 15 | } 16 | f.Close() 17 | stat := info.Sys().(*syscall.Stat_t) 18 | return os_Chown(name, int(stat.Uid), int(stat.Gid)) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/.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 | - "1.14.x" 15 | - "tip" 16 | 17 | go_import_path: gopkg.in/yaml.v2 18 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/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.v2/go.mod: -------------------------------------------------------------------------------- 1 | module gopkg.in/yaml.v2 2 | 3 | go 1.15 4 | 5 | require gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 6 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/writerc.go: -------------------------------------------------------------------------------- 1 | package yaml 2 | 3 | // Set the writer error and return false. 4 | func yaml_emitter_set_writer_error(emitter *yaml_emitter_t, problem string) bool { 5 | emitter.error = yaml_WRITER_ERROR 6 | emitter.problem = problem 7 | return false 8 | } 9 | 10 | // Flush the output buffer. 11 | func yaml_emitter_flush(emitter *yaml_emitter_t) bool { 12 | if emitter.write_handler == nil { 13 | panic("write handler not set") 14 | } 15 | 16 | // Check if the buffer is empty. 17 | if emitter.buffer_pos == 0 { 18 | return true 19 | } 20 | 21 | if err := emitter.write_handler(emitter, emitter.buffer[:emitter.buffer_pos]); err != nil { 22 | return yaml_emitter_set_writer_error(emitter, "write error: "+err.Error()) 23 | } 24 | emitter.buffer_pos = 0 25 | return true 26 | } 27 | -------------------------------------------------------------------------------- /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 | --------------------------------------------------------------------------------